clash_for_linux/dashboard/public/assets/index.esm.edbe839b.js

2 lines
11 KiB
JavaScript
Raw Normal View History

2022-02-17 14:30:03 +08:00
import{r as F}from"./vendor.38e754a4.js";function A(){return A=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},A.apply(this,arguments)}function it(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t}function P(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function nt(n,t){if(n.length!==t.length)return!1;for(var r=0;r<n.length;r++)if(n[r]!==t[r])return!1;return!0}function D(n,t){t===void 0&&(t=nt);var r,i=[],a,s=!1;function c(){for(var u=[],v=0;v<arguments.length;v++)u[v]=arguments[v];return s&&r===this&&t(u,i)||(a=n.apply(this,u),s=!0,r=this,i=u),a}return c}function $(n,t){if(n==null)return{};var r={},i=Object.keys(n),a,s;for(s=0;s<i.length;s++)a=i[s],!(t.indexOf(a)>=0)&&(r[a]=n[a]);return r}var at=typeof performance=="object"&&typeof performance.now=="function",q=at?function(){return performance.now()}:function(){return Date.now()};function j(n){cancelAnimationFrame(n.id)}function ot(n,t){var r=q();function i(){q()-r>=t?n.call(null):a.id=requestAnimationFrame(i)}var a={id:requestAnimationFrame(i)};return a}var C=null;function H(n){if(n===void 0&&(n=!1),C===null||n){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var i=document.createElement("div"),a=i.style;return a.width="100px",a.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?C="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?C="negative":C="positive-ascending"),document.body.removeChild(t),C}return C}var st=150,lt=function(t,r){return t};function K(n){var t,r,i=n.getItemOffset,a=n.getEstimatedTotalSize,s=n.getItemSize,c=n.getOffsetForIndexAndAlignment,u=n.getStartIndexForOffset,v=n.getStopIndexForStartIndex,O=n.initInstanceProps,S=n.shouldResetStyleCacheOnItemSizeChange,M=n.validateProps;return r=t=function(g){it(x,g);function x(f){var e;return e=g.call(this,f)||this,e._instanceProps=O(e.props,P(P(e))),e._outerRef=void 0,e._resetIsScrollingTimeoutId=null,e.state={instance:P(P(e)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof e.props.initialScrollOffset=="number"?e.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},e._callOnItemsRendered=void 0,e._callOnItemsRendered=D(function(o,l,d,m){return e.props.onItemsRendered({overscanStartIndex:o,overscanStopIndex:l,visibleStartIndex:d,visibleStopIndex:m})}),e._callOnScroll=void 0,e._callOnScroll=D(function(o,l,d){return e.props.onScroll({scrollDirection:o,scrollOffset:l,scrollUpdateWasRequested:d})}),e._getItemStyle=void 0,e._getItemStyle=function(o){var l=e.props,d=l.direction,m=l.itemSize,z=l.layout,h=e._getItemStyleCache(S&&m,S&&z,S&&d),I;if(h.hasOwnProperty(o))I=h[o];else{var y=i(e.props,o,e._instanceProps),T=s(e.props,o,e._instanceProps),_=d==="horizontal"||z==="horizontal",b=d==="rtl",E=_?y:0;h[o]=I={position:"absolute",left:b?void 0:E,right:b?E:void 0,top:_?0:y,height:_?"100%":T,width:_?T:"100%"}}return I},e._getItemStyleCache=void 0,e._getItemStyleCache=D(function(o,l,d){return{}}),e._onScrollHorizontal=function(o){var l=o.currentTarget,d=l.clientWidth,m=l.scrollLeft,z=l.scrollWidth;e.setState(function(h){if(h.scrollOffset===m)return null;var I=e.props.direction,y=m;if(I==="rtl")switch(H()){case"negative":y=-m;break;case"positive-descending":y=z-d-m;break}return y=Math.max(0,Math.min(y,z-d)),{isScrolling:!0,scrollDirection:h.scrollOffset<m?"forward":"backward",scrollOffset:y,scrollUpdateWasRequested:!1}},e._resetIsScrollingDebounced)},e._onScrollVertical=function(o){var l=o.currentTarget,d=l.clientHeight,m=l.scrollHeight,z=l.scrollTop;e.setState(function(h){if(h.scrollOffset===z)return null;var I=Math.max(0,Math.min(z,m-d));return{isScrolling:!0,scrollDirection:h.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},e._resetIsScrollingDebounced)},e._outerRefSetter=function(o){var l=e.props.outerRef;e._outerRef=o,typeof l=="function"?l(o):l!=null&&typeof l=="obj