@guihz/trading-vue-editor-tes 0.0.138 → 0.0.139

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
- */var Ki;function pp(){if(Ki)return as;Ki=1;var a=O,n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function m(_,g,b){var h,T={},P=null,B=null;b!==void 0&&(P=""+b),g.key!==void 0&&(P=""+g.key),g.ref!==void 0&&(B=g.ref);for(h in g)o.call(g,h)&&!c.hasOwnProperty(h)&&(T[h]=g[h]);if(_&&_.defaultProps)for(h in g=_.defaultProps,g)T[h]===void 0&&(T[h]=g[h]);return{$$typeof:n,type:_,key:P,ref:B,props:T,_owner:l.current}}return as.Fragment=s,as.jsx=m,as.jsxs=m,as}var ns={};/**
11
+ */var Ki;function pp(){if(Ki)return as;Ki=1;var a=O,n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function m(_,f,b){var h,T={},P=null,B=null;b!==void 0&&(P=""+b),f.key!==void 0&&(P=""+f.key),f.ref!==void 0&&(B=f.ref);for(h in f)o.call(f,h)&&!l.hasOwnProperty(h)&&(T[h]=f[h]);if(_&&_.defaultProps)for(h in f=_.defaultProps,f)T[h]===void 0&&(T[h]=f[h]);return{$$typeof:n,type:_,key:P,ref:B,props:T,_owner:c.current}}return as.Fragment=s,as.jsx=m,as.jsxs=m,as}var ns={};/**
12
12
  * @license React
13
13
  * react-jsx-runtime.development.js
14
14
  *
@@ -16,18 +16,18 @@
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var $i;function dp(){return $i||($i=1,process.env.NODE_ENV!=="production"&&function(){var a=O,n=Symbol.for("react.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),_=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),R=Symbol.iterator,N="@@iterator";function W(f){if(f===null||typeof f!="object")return null;var M=R&&f[R]||f[N];return typeof M=="function"?M:null}var V=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function G(f){{for(var M=arguments.length,K=new Array(M>1?M-1:0),ee=1;ee<M;ee++)K[ee-1]=arguments[ee];F("error",f,K)}}function F(f,M,K){{var ee=V.ReactDebugCurrentFrame,fe=ee.getStackAddendum();fe!==""&&(M+="%s",K=K.concat([fe]));var we=K.map(function(me){return String(me)});we.unshift("Warning: "+M),Function.prototype.apply.call(console[f],console,we)}}var k=!1,q=!1,U=!1,j=!1,ae=!1,ye;ye=Symbol.for("react.module.reference");function le(f){return!!(typeof f=="string"||typeof f=="function"||f===o||f===c||ae||f===l||f===b||f===h||j||f===B||k||q||U||typeof f=="object"&&f!==null&&(f.$$typeof===P||f.$$typeof===T||f.$$typeof===m||f.$$typeof===_||f.$$typeof===g||f.$$typeof===ye||f.getModuleId!==void 0))}function xt(f,M,K){var ee=f.displayName;if(ee)return ee;var fe=M.displayName||M.name||"";return fe!==""?K+"("+fe+")":K}function St(f){return f.displayName||"Context"}function $e(f){if(f==null)return null;if(typeof f.tag=="number"&&G("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case o:return"Fragment";case s:return"Portal";case c:return"Profiler";case l:return"StrictMode";case b:return"Suspense";case h:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case _:var M=f;return St(M)+".Consumer";case m:var K=f;return St(K._context)+".Provider";case g:return xt(f,f.render,"ForwardRef");case T:var ee=f.displayName||null;return ee!==null?ee:$e(f.type)||"Memo";case P:{var fe=f,we=fe._payload,me=fe._init;try{return $e(me(we))}catch{return null}}}return null}var Be=Object.assign,Q=0,ge,Ne,Pe,ct,Et,te,he;function Fe(){}Fe.__reactDisabledLog=!0;function ht(){{if(Q===0){ge=console.log,Ne=console.info,Pe=console.warn,ct=console.error,Et=console.group,te=console.groupCollapsed,he=console.groupEnd;var f={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}Q++}}function Ae(){{if(Q--,Q===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Be({},f,{value:ge}),info:Be({},f,{value:Ne}),warn:Be({},f,{value:Pe}),error:Be({},f,{value:ct}),group:Be({},f,{value:Et}),groupCollapsed:Be({},f,{value:te}),groupEnd:Be({},f,{value:he})})}Q<0&&G("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var nr=V.ReactCurrentDispatcher,ys;function Bt(f,M,K){{if(ys===void 0)try{throw Error()}catch(fe){var ee=fe.stack.trim().match(/\n( *(at )?)/);ys=ee&&ee[1]||""}return`
20
- `+ys+f}}var Ht=!1,Mr;{var Pr=typeof WeakMap=="function"?WeakMap:Map;Mr=new Pr}function xr(f,M){if(!f||Ht)return"";{var K=Mr.get(f);if(K!==void 0)return K}var ee;Ht=!0;var fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var we;we=nr.current,nr.current=null,ht();try{if(M){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(rt){ee=rt}Reflect.construct(f,[],me)}else{try{me.call()}catch(rt){ee=rt}f.call(me.prototype)}}else{try{throw Error()}catch(rt){ee=rt}f()}}catch(rt){if(rt&&ee&&typeof rt.stack=="string"){for(var pe=rt.stack.split(`
19
+ */var $i;function dp(){return $i||($i=1,process.env.NODE_ENV!=="production"&&function(){var a=O,n=Symbol.for("react.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),R=Symbol.iterator,N="@@iterator";function H(g){if(g===null||typeof g!="object")return null;var M=R&&g[R]||g[N];return typeof M=="function"?M:null}var V=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function G(g){{for(var M=arguments.length,K=new Array(M>1?M-1:0),ee=1;ee<M;ee++)K[ee-1]=arguments[ee];F("error",g,K)}}function F(g,M,K){{var ee=V.ReactDebugCurrentFrame,fe=ee.getStackAddendum();fe!==""&&(M+="%s",K=K.concat([fe]));var we=K.map(function(me){return String(me)});we.unshift("Warning: "+M),Function.prototype.apply.call(console[g],console,we)}}var k=!1,q=!1,U=!1,j=!1,ae=!1,ye;ye=Symbol.for("react.module.reference");function le(g){return!!(typeof g=="string"||typeof g=="function"||g===o||g===l||ae||g===c||g===b||g===h||j||g===B||k||q||U||typeof g=="object"&&g!==null&&(g.$$typeof===P||g.$$typeof===T||g.$$typeof===m||g.$$typeof===_||g.$$typeof===f||g.$$typeof===ye||g.getModuleId!==void 0))}function xt(g,M,K){var ee=g.displayName;if(ee)return ee;var fe=M.displayName||M.name||"";return fe!==""?K+"("+fe+")":K}function St(g){return g.displayName||"Context"}function $e(g){if(g==null)return null;if(typeof g.tag=="number"&&G("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case o:return"Fragment";case s:return"Portal";case l:return"Profiler";case c:return"StrictMode";case b:return"Suspense";case h:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case _:var M=g;return St(M)+".Consumer";case m:var K=g;return St(K._context)+".Provider";case f:return xt(g,g.render,"ForwardRef");case T:var ee=g.displayName||null;return ee!==null?ee:$e(g.type)||"Memo";case P:{var fe=g,we=fe._payload,me=fe._init;try{return $e(me(we))}catch{return null}}}return null}var Be=Object.assign,Q=0,ge,Ne,Pe,ct,Et,te,he;function Fe(){}Fe.__reactDisabledLog=!0;function ht(){{if(Q===0){ge=console.log,Ne=console.info,Pe=console.warn,ct=console.error,Et=console.group,te=console.groupCollapsed,he=console.groupEnd;var g={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}Q++}}function Ae(){{if(Q--,Q===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Be({},g,{value:ge}),info:Be({},g,{value:Ne}),warn:Be({},g,{value:Pe}),error:Be({},g,{value:ct}),group:Be({},g,{value:Et}),groupCollapsed:Be({},g,{value:te}),groupEnd:Be({},g,{value:he})})}Q<0&&G("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var nr=V.ReactCurrentDispatcher,ys;function Bt(g,M,K){{if(ys===void 0)try{throw Error()}catch(fe){var ee=fe.stack.trim().match(/\n( *(at )?)/);ys=ee&&ee[1]||""}return`
20
+ `+ys+g}}var Ht=!1,Mr;{var Pr=typeof WeakMap=="function"?WeakMap:Map;Mr=new Pr}function hr(g,M){if(!g||Ht)return"";{var K=Mr.get(g);if(K!==void 0)return K}var ee;Ht=!0;var fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var we;we=nr.current,nr.current=null,ht();try{if(M){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(rt){ee=rt}Reflect.construct(g,[],me)}else{try{me.call()}catch(rt){ee=rt}g.call(me.prototype)}}else{try{throw Error()}catch(rt){ee=rt}g()}}catch(rt){if(rt&&ee&&typeof rt.stack=="string"){for(var pe=rt.stack.split(`
21
21
  `),He=ee.stack.split(`
22
22
  `),ze=pe.length-1,Le=He.length-1;ze>=1&&Le>=0&&pe[ze]!==He[Le];)Le--;for(;ze>=1&&Le>=0;ze--,Le--)if(pe[ze]!==He[Le]){if(ze!==1||Le!==1)do if(ze--,Le--,Le<0||pe[ze]!==He[Le]){var tt=`
23
- `+pe[ze].replace(" at new "," at ");return f.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",f.displayName)),typeof f=="function"&&Mr.set(f,tt),tt}while(ze>=1&&Le>=0);break}}}finally{Ht=!1,nr.current=we,Ae(),Error.prepareStackTrace=fe}var Lt=f?f.displayName||f.name:"",ua=Lt?Bt(Lt):"";return typeof f=="function"&&Mr.set(f,ua),ua}function aa(f,M,K){return xr(f,!1)}function pt(f){var M=f.prototype;return!!(M&&M.isReactComponent)}function Ut(f,M,K){if(f==null)return"";if(typeof f=="function")return xr(f,pt(f));if(typeof f=="string")return Bt(f);switch(f){case b:return Bt("Suspense");case h:return Bt("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case g:return aa(f.render);case T:return Ut(f.type,M,K);case P:{var ee=f,fe=ee._payload,we=ee._init;try{return Ut(we(fe),M,K)}catch{}}}return""}var Or=Object.prototype.hasOwnProperty,wt={},_s=V.ReactDebugCurrentFrame;function Rr(f){if(f){var M=f._owner,K=Ut(f.type,f._source,M?M.type:null);_s.setExtraStackFrame(K)}else _s.setExtraStackFrame(null)}function hr(f,M,K,ee,fe){{var we=Function.call.bind(Or);for(var me in f)if(we(f,me)){var pe=void 0;try{if(typeof f[me]!="function"){var He=Error((ee||"React class")+": "+K+" type `"+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw He.name="Invariant Violation",He}pe=f[me](M,me,ee,K,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ze){pe=ze}pe&&!(pe instanceof Error)&&(Rr(fe),G("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ee||"React class",K,me,typeof pe),Rr(null)),pe instanceof Error&&!(pe.message in wt)&&(wt[pe.message]=!0,Rr(fe),G("Failed %s type: %s",K,pe.message),Rr(null))}}}var dt=Array.isArray;function Wt(f){return dt(f)}function Fr(f){{var M=typeof Symbol=="function"&&Symbol.toStringTag,K=M&&f[Symbol.toStringTag]||f.constructor.name||"Object";return K}}function Tn(f){try{return ir(f),!1}catch{return!0}}function ir(f){return""+f}function na(f){if(Tn(f))return G("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fr(f)),ir(f)}var Nt=V.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Br,Ur,wr;wr={};function fs(f){if(Or.call(f,"ref")){var M=Object.getOwnPropertyDescriptor(f,"ref").get;if(M&&M.isReactWarning)return!1}return f.ref!==void 0}function gs(f){if(Or.call(f,"key")){var M=Object.getOwnPropertyDescriptor(f,"key").get;if(M&&M.isReactWarning)return!1}return f.key!==void 0}function bs(f,M){if(typeof f.ref=="string"&&Nt.current&&M&&Nt.current.stateNode!==M){var K=$e(Nt.current.type);wr[K]||(G('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',$e(Nt.current.type),f.ref),wr[K]=!0)}}function xs(f,M){{var K=function(){Br||(Br=!0,G("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};K.isReactWarning=!0,Object.defineProperty(f,"key",{get:K,configurable:!0})}}function hs(f,M){{var K=function(){Ur||(Ur=!0,G("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};K.isReactWarning=!0,Object.defineProperty(f,"ref",{get:K,configurable:!0})}}var ws=function(f,M,K,ee,fe,we,me){var pe={$$typeof:n,type:f,key:M,ref:K,props:me,_owner:we};return pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.defineProperty(pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe};function Dn(f,M,K,ee,fe){{var we,me={},pe=null,He=null;K!==void 0&&(na(K),pe=""+K),gs(M)&&(na(M.key),pe=""+M.key),fs(M)&&(He=M.ref,bs(M,fe));for(we in M)Or.call(M,we)&&!or.hasOwnProperty(we)&&(me[we]=M[we]);if(f&&f.defaultProps){var ze=f.defaultProps;for(we in ze)me[we]===void 0&&(me[we]=ze[we])}if(pe||He){var Le=typeof f=="function"?f.displayName||f.name||"Unknown":f;pe&&xs(me,Le),He&&hs(me,Le)}return ws(f,pe,He,fe,ee,Nt.current,me)}}var vs=V.ReactCurrentOwner,ia=V.ReactDebugCurrentFrame;function Gt(f){if(f){var M=f._owner,K=Ut(f.type,f._source,M?M.type:null);ia.setExtraStackFrame(K)}else ia.setExtraStackFrame(null)}var Kr;Kr=!1;function Ts(f){return typeof f=="object"&&f!==null&&f.$$typeof===n}function oa(){{if(vs.current){var f=$e(vs.current.type);if(f)return`
23
+ `+pe[ze].replace(" at new "," at ");return g.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",g.displayName)),typeof g=="function"&&Mr.set(g,tt),tt}while(ze>=1&&Le>=0);break}}}finally{Ht=!1,nr.current=we,Ae(),Error.prepareStackTrace=fe}var Lt=g?g.displayName||g.name:"",ua=Lt?Bt(Lt):"";return typeof g=="function"&&Mr.set(g,ua),ua}function aa(g,M,K){return hr(g,!1)}function pt(g){var M=g.prototype;return!!(M&&M.isReactComponent)}function Ut(g,M,K){if(g==null)return"";if(typeof g=="function")return hr(g,pt(g));if(typeof g=="string")return Bt(g);switch(g){case b:return Bt("Suspense");case h:return Bt("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case f:return aa(g.render);case T:return Ut(g.type,M,K);case P:{var ee=g,fe=ee._payload,we=ee._init;try{return Ut(we(fe),M,K)}catch{}}}return""}var Or=Object.prototype.hasOwnProperty,wt={},_s=V.ReactDebugCurrentFrame;function Rr(g){if(g){var M=g._owner,K=Ut(g.type,g._source,M?M.type:null);_s.setExtraStackFrame(K)}else _s.setExtraStackFrame(null)}function wr(g,M,K,ee,fe){{var we=Function.call.bind(Or);for(var me in g)if(we(g,me)){var pe=void 0;try{if(typeof g[me]!="function"){var He=Error((ee||"React class")+": "+K+" type `"+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw He.name="Invariant Violation",He}pe=g[me](M,me,ee,K,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ze){pe=ze}pe&&!(pe instanceof Error)&&(Rr(fe),G("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ee||"React class",K,me,typeof pe),Rr(null)),pe instanceof Error&&!(pe.message in wt)&&(wt[pe.message]=!0,Rr(fe),G("Failed %s type: %s",K,pe.message),Rr(null))}}}var dt=Array.isArray;function Wt(g){return dt(g)}function Fr(g){{var M=typeof Symbol=="function"&&Symbol.toStringTag,K=M&&g[Symbol.toStringTag]||g.constructor.name||"Object";return K}}function Tn(g){try{return ir(g),!1}catch{return!0}}function ir(g){return""+g}function na(g){if(Tn(g))return G("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fr(g)),ir(g)}var Nt=V.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Br,Ur,vr;vr={};function fs(g){if(Or.call(g,"ref")){var M=Object.getOwnPropertyDescriptor(g,"ref").get;if(M&&M.isReactWarning)return!1}return g.ref!==void 0}function gs(g){if(Or.call(g,"key")){var M=Object.getOwnPropertyDescriptor(g,"key").get;if(M&&M.isReactWarning)return!1}return g.key!==void 0}function bs(g,M){if(typeof g.ref=="string"&&Nt.current&&M&&Nt.current.stateNode!==M){var K=$e(Nt.current.type);vr[K]||(G('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',$e(Nt.current.type),g.ref),vr[K]=!0)}}function xs(g,M){{var K=function(){Br||(Br=!0,G("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};K.isReactWarning=!0,Object.defineProperty(g,"key",{get:K,configurable:!0})}}function hs(g,M){{var K=function(){Ur||(Ur=!0,G("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};K.isReactWarning=!0,Object.defineProperty(g,"ref",{get:K,configurable:!0})}}var ws=function(g,M,K,ee,fe,we,me){var pe={$$typeof:n,type:g,key:M,ref:K,props:me,_owner:we};return pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.defineProperty(pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe};function Dn(g,M,K,ee,fe){{var we,me={},pe=null,He=null;K!==void 0&&(na(K),pe=""+K),gs(M)&&(na(M.key),pe=""+M.key),fs(M)&&(He=M.ref,bs(M,fe));for(we in M)Or.call(M,we)&&!or.hasOwnProperty(we)&&(me[we]=M[we]);if(g&&g.defaultProps){var ze=g.defaultProps;for(we in ze)me[we]===void 0&&(me[we]=ze[we])}if(pe||He){var Le=typeof g=="function"?g.displayName||g.name||"Unknown":g;pe&&xs(me,Le),He&&hs(me,Le)}return ws(g,pe,He,fe,ee,Nt.current,me)}}var vs=V.ReactCurrentOwner,ia=V.ReactDebugCurrentFrame;function Gt(g){if(g){var M=g._owner,K=Ut(g.type,g._source,M?M.type:null);ia.setExtraStackFrame(K)}else ia.setExtraStackFrame(null)}var Kr;Kr=!1;function Ts(g){return typeof g=="object"&&g!==null&&g.$$typeof===n}function oa(){{if(vs.current){var g=$e(vs.current.type);if(g)return`
24
24
 
25
- Check the render method of \``+f+"`."}return""}}function kn(f){{if(f!==void 0){var M=f.fileName.replace(/^.*[\\\/]/,""),K=f.lineNumber;return`
25
+ Check the render method of \``+g+"`."}return""}}function kn(g){{if(g!==void 0){var M=g.fileName.replace(/^.*[\\\/]/,""),K=g.lineNumber;return`
26
26
 
27
- Check your code at `+M+":"+K+"."}return""}}var la={};function ca(f){{var M=oa();if(!M){var K=typeof f=="string"?f:f.displayName||f.name;K&&(M=`
27
+ Check your code at `+M+":"+K+"."}return""}}var la={};function ca(g){{var M=oa();if(!M){var K=typeof g=="string"?g:g.displayName||g.name;K&&(M=`
28
28
 
29
- Check the top-level render call using <`+K+">.")}return M}}function pa(f,M){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var K=ca(M);if(la[K])return;la[K]=!0;var ee="";f&&f._owner&&f._owner!==vs.current&&(ee=" It was passed a child from "+$e(f._owner.type)+"."),Gt(f),G('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',K,ee),Gt(null)}}function da(f,M){{if(typeof f!="object")return;if(Wt(f))for(var K=0;K<f.length;K++){var ee=f[K];Ts(ee)&&pa(ee,M)}else if(Ts(f))f._store&&(f._store.validated=!0);else if(f){var fe=W(f);if(typeof fe=="function"&&fe!==f.entries)for(var we=fe.call(f),me;!(me=we.next()).done;)Ts(me.value)&&pa(me.value,M)}}}function In(f){{var M=f.type;if(M==null||typeof M=="string")return;var K;if(typeof M=="function")K=M.propTypes;else if(typeof M=="object"&&(M.$$typeof===g||M.$$typeof===T))K=M.propTypes;else return;if(K){var ee=$e(M);hr(K,f.props,"prop",ee,f)}else if(M.PropTypes!==void 0&&!Kr){Kr=!0;var fe=$e(M);G("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",fe||"Unknown")}typeof M.getDefaultProps=="function"&&!M.getDefaultProps.isReactClassApproved&&G("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ds(f){{for(var M=Object.keys(f.props),K=0;K<M.length;K++){var ee=M[K];if(ee!=="children"&&ee!=="key"){Gt(f),G("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ee),Gt(null);break}}f.ref!==null&&(Gt(f),G("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function ma(f,M,K,ee,fe,we){{var me=le(f);if(!me){var pe="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(pe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var He=kn(fe);He?pe+=He:pe+=oa();var ze;f===null?ze="null":Wt(f)?ze="array":f!==void 0&&f.$$typeof===n?(ze="<"+($e(f.type)||"Unknown")+" />",pe=" Did you accidentally export a JSX literal instead of a component?"):ze=typeof f,G("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ze,pe)}var Le=Dn(f,M,K,fe,we);if(Le==null)return Le;if(me){var tt=M.children;if(tt!==void 0)if(ee)if(Wt(tt)){for(var Lt=0;Lt<tt.length;Lt++)da(tt[Lt],f);Object.freeze&&Object.freeze(tt)}else G("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else da(tt,f)}return f===o?Ds(Le):In(Le),Le}}function ks(f,M,K){return ma(f,M,K,!0)}function An(f,M,K){return ma(f,M,K,!1)}var qn=An,Cn=ks;ns.Fragment=o,ns.jsx=qn,ns.jsxs=Cn}()),ns}process.env.NODE_ENV==="production"?en.exports=pp():en.exports=dp();var L=en.exports;function mp(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}function ji(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,o)}return s}function Hi(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?ji(Object(s),!0).forEach(function(o){mp(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):ji(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function up(a,n){if(a==null)return{};var s={},o=Object.keys(a),l,c;for(c=0;c<o.length;c++)l=o[c],!(n.indexOf(l)>=0)&&(s[l]=a[l]);return s}function yp(a,n){if(a==null)return{};var s=up(a,n),o,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);for(l=0;l<c.length;l++)o=c[l],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function _p(a,n){return fp(a)||gp(a,n)||bp(a,n)||xp()}function fp(a){if(Array.isArray(a))return a}function gp(a,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(a)))){var s=[],o=!0,l=!1,c=void 0;try{for(var m=a[Symbol.iterator](),_;!(o=(_=m.next()).done)&&(s.push(_.value),!(n&&s.length===n));o=!0);}catch(g){l=!0,c=g}finally{try{!o&&m.return!=null&&m.return()}finally{if(l)throw c}}return s}}function bp(a,n){if(a){if(typeof a=="string")return Wi(a,n);var s=Object.prototype.toString.call(a).slice(8,-1);if(s==="Object"&&a.constructor&&(s=a.constructor.name),s==="Map"||s==="Set")return Array.from(a);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Wi(a,n)}}function Wi(a,n){(n==null||n>a.length)&&(n=a.length);for(var s=0,o=new Array(n);s<n;s++)o[s]=a[s];return o}function xp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hp(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}function Gi(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,o)}return s}function Xi(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Gi(Object(s),!0).forEach(function(o){hp(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Gi(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function wp(){for(var a=arguments.length,n=new Array(a),s=0;s<a;s++)n[s]=arguments[s];return function(o){return n.reduceRight(function(l,c){return c(l)},o)}}function is(a){return function n(){for(var s=this,o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];return l.length>=a.length?a.apply(this,l):function(){for(var m=arguments.length,_=new Array(m),g=0;g<m;g++)_[g]=arguments[g];return n.apply(s,[].concat(l,_))}}}function Ks(a){return{}.toString.call(a).includes("Object")}function vp(a){return!Object.keys(a).length}function os(a){return typeof a=="function"}function Tp(a,n){return Object.prototype.hasOwnProperty.call(a,n)}function Dp(a,n){return Ks(n)||sr("changeType"),Object.keys(n).some(function(s){return!Tp(a,s)})&&sr("changeField"),n}function kp(a){os(a)||sr("selectorType")}function Ip(a){os(a)||Ks(a)||sr("handlerType"),Ks(a)&&Object.values(a).some(function(n){return!os(n)})&&sr("handlersType")}function Ap(a){a||sr("initialIsRequired"),Ks(a)||sr("initialType"),vp(a)&&sr("initialContent")}function qp(a,n){throw new Error(a[n]||a.default)}var Cp={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},sr=is(qp)(Cp),$s={changes:Dp,selector:kp,handler:Ip,initial:Ap};function zp(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$s.initial(a),$s.handler(n);var s={current:a},o=is(Np)(s,n),l=is(Ep)(s),c=is($s.changes)(a),m=is(Sp)(s);function _(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return $s.selector(b),b(s.current)}function g(b){wp(o,l,c,m)(b)}return[_,g]}function Sp(a,n){return os(n)?n(a.current):n}function Ep(a,n){return a.current=Xi(Xi({},a.current),n),n}function Np(a,n,s){return os(n)?n(a.current):Object.keys(s).forEach(function(o){var l;return(l=n[o])===null||l===void 0?void 0:l.call(n,a.current[o])}),s}var Lp={create:zp},Mp={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Pp(a){return function n(){for(var s=this,o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];return l.length>=a.length?a.apply(this,l):function(){for(var m=arguments.length,_=new Array(m),g=0;g<m;g++)_[g]=arguments[g];return n.apply(s,[].concat(l,_))}}}function Op(a){return{}.toString.call(a).includes("Object")}function Rp(a){return a||Yi("configIsRequired"),Op(a)||Yi("configType"),a.urls?(Fp(),{paths:{vs:a.urls.monacoBase}}):a}function Fp(){console.warn(Vi.deprecation)}function Bp(a,n){throw new Error(a[n]||a.default)}var Vi={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
29
+ Check the top-level render call using <`+K+">.")}return M}}function pa(g,M){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var K=ca(M);if(la[K])return;la[K]=!0;var ee="";g&&g._owner&&g._owner!==vs.current&&(ee=" It was passed a child from "+$e(g._owner.type)+"."),Gt(g),G('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',K,ee),Gt(null)}}function da(g,M){{if(typeof g!="object")return;if(Wt(g))for(var K=0;K<g.length;K++){var ee=g[K];Ts(ee)&&pa(ee,M)}else if(Ts(g))g._store&&(g._store.validated=!0);else if(g){var fe=H(g);if(typeof fe=="function"&&fe!==g.entries)for(var we=fe.call(g),me;!(me=we.next()).done;)Ts(me.value)&&pa(me.value,M)}}}function In(g){{var M=g.type;if(M==null||typeof M=="string")return;var K;if(typeof M=="function")K=M.propTypes;else if(typeof M=="object"&&(M.$$typeof===f||M.$$typeof===T))K=M.propTypes;else return;if(K){var ee=$e(M);wr(K,g.props,"prop",ee,g)}else if(M.PropTypes!==void 0&&!Kr){Kr=!0;var fe=$e(M);G("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",fe||"Unknown")}typeof M.getDefaultProps=="function"&&!M.getDefaultProps.isReactClassApproved&&G("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ds(g){{for(var M=Object.keys(g.props),K=0;K<M.length;K++){var ee=M[K];if(ee!=="children"&&ee!=="key"){Gt(g),G("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ee),Gt(null);break}}g.ref!==null&&(Gt(g),G("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function ma(g,M,K,ee,fe,we){{var me=le(g);if(!me){var pe="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(pe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var He=kn(fe);He?pe+=He:pe+=oa();var ze;g===null?ze="null":Wt(g)?ze="array":g!==void 0&&g.$$typeof===n?(ze="<"+($e(g.type)||"Unknown")+" />",pe=" Did you accidentally export a JSX literal instead of a component?"):ze=typeof g,G("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ze,pe)}var Le=Dn(g,M,K,fe,we);if(Le==null)return Le;if(me){var tt=M.children;if(tt!==void 0)if(ee)if(Wt(tt)){for(var Lt=0;Lt<tt.length;Lt++)da(tt[Lt],g);Object.freeze&&Object.freeze(tt)}else G("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else da(tt,g)}return g===o?Ds(Le):In(Le),Le}}function ks(g,M,K){return ma(g,M,K,!0)}function An(g,M,K){return ma(g,M,K,!1)}var qn=An,Cn=ks;ns.Fragment=o,ns.jsx=qn,ns.jsxs=Cn}()),ns}process.env.NODE_ENV==="production"?en.exports=pp():en.exports=dp();var L=en.exports;function mp(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}function ji(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable})),s.push.apply(s,o)}return s}function Hi(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?ji(Object(s),!0).forEach(function(o){mp(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):ji(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function up(a,n){if(a==null)return{};var s={},o=Object.keys(a),c,l;for(l=0;l<o.length;l++)c=o[l],!(n.indexOf(c)>=0)&&(s[c]=a[c]);return s}function yp(a,n){if(a==null)return{};var s=up(a,n),o,c;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);for(c=0;c<l.length;c++)o=l[c],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function _p(a,n){return fp(a)||gp(a,n)||bp(a,n)||xp()}function fp(a){if(Array.isArray(a))return a}function gp(a,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(a)))){var s=[],o=!0,c=!1,l=void 0;try{for(var m=a[Symbol.iterator](),_;!(o=(_=m.next()).done)&&(s.push(_.value),!(n&&s.length===n));o=!0);}catch(f){c=!0,l=f}finally{try{!o&&m.return!=null&&m.return()}finally{if(c)throw l}}return s}}function bp(a,n){if(a){if(typeof a=="string")return Wi(a,n);var s=Object.prototype.toString.call(a).slice(8,-1);if(s==="Object"&&a.constructor&&(s=a.constructor.name),s==="Map"||s==="Set")return Array.from(a);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Wi(a,n)}}function Wi(a,n){(n==null||n>a.length)&&(n=a.length);for(var s=0,o=new Array(n);s<n;s++)o[s]=a[s];return o}function xp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hp(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}function Gi(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable})),s.push.apply(s,o)}return s}function Xi(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Gi(Object(s),!0).forEach(function(o){hp(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Gi(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function wp(){for(var a=arguments.length,n=new Array(a),s=0;s<a;s++)n[s]=arguments[s];return function(o){return n.reduceRight(function(c,l){return l(c)},o)}}function is(a){return function n(){for(var s=this,o=arguments.length,c=new Array(o),l=0;l<o;l++)c[l]=arguments[l];return c.length>=a.length?a.apply(this,c):function(){for(var m=arguments.length,_=new Array(m),f=0;f<m;f++)_[f]=arguments[f];return n.apply(s,[].concat(c,_))}}}function Ks(a){return{}.toString.call(a).includes("Object")}function vp(a){return!Object.keys(a).length}function os(a){return typeof a=="function"}function Tp(a,n){return Object.prototype.hasOwnProperty.call(a,n)}function Dp(a,n){return Ks(n)||sr("changeType"),Object.keys(n).some(function(s){return!Tp(a,s)})&&sr("changeField"),n}function kp(a){os(a)||sr("selectorType")}function Ip(a){os(a)||Ks(a)||sr("handlerType"),Ks(a)&&Object.values(a).some(function(n){return!os(n)})&&sr("handlersType")}function Ap(a){a||sr("initialIsRequired"),Ks(a)||sr("initialType"),vp(a)&&sr("initialContent")}function qp(a,n){throw new Error(a[n]||a.default)}var Cp={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},sr=is(qp)(Cp),$s={changes:Dp,selector:kp,handler:Ip,initial:Ap};function zp(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$s.initial(a),$s.handler(n);var s={current:a},o=is(Np)(s,n),c=is(Ep)(s),l=is($s.changes)(a),m=is(Sp)(s);function _(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return $s.selector(b),b(s.current)}function f(b){wp(o,c,l,m)(b)}return[_,f]}function Sp(a,n){return os(n)?n(a.current):n}function Ep(a,n){return a.current=Xi(Xi({},a.current),n),n}function Np(a,n,s){return os(n)?n(a.current):Object.keys(s).forEach(function(o){var c;return(c=n[o])===null||c===void 0?void 0:c.call(n,a.current[o])}),s}var Lp={create:zp},Mp={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Pp(a){return function n(){for(var s=this,o=arguments.length,c=new Array(o),l=0;l<o;l++)c[l]=arguments[l];return c.length>=a.length?a.apply(this,c):function(){for(var m=arguments.length,_=new Array(m),f=0;f<m;f++)_[f]=arguments[f];return n.apply(s,[].concat(c,_))}}}function Op(a){return{}.toString.call(a).includes("Object")}function Rp(a){return a||Yi("configIsRequired"),Op(a)||Yi("configType"),a.urls?(Fp(),{paths:{vs:a.urls.monacoBase}}):a}function Fp(){console.warn(Vi.deprecation)}function Bp(a,n){throw new Error(a[n]||a.default)}var Vi={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
31
31
  You are using deprecated way of configuration.
32
32
 
33
33
  Instead of using
@@ -36,7 +36,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
36
36
  monaco.config({ paths: { vs: '...' } })
37
37
 
38
38
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
39
- `},Yi=Pp(Bp)(Vi),Up={config:Rp},Kp=function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return function(l){return s.reduceRight(function(c,m){return m(c)},l)}};function Qi(a,n){return Object.keys(n).forEach(function(s){n[s]instanceof Object&&a[s]&&Object.assign(n[s],Qi(a[s],n[s]))}),Hi(Hi({},a),n)}var $p={type:"cancelation",msg:"operation is manually canceled"};function tn(a){var n=!1,s=new Promise(function(o,l){a.then(function(c){return n?l($p):o(c)}),a.catch(l)});return s.cancel=function(){return n=!0},s}var jp=Lp.create({config:Mp,isInitialized:!1,resolve:null,reject:null,monaco:null}),Zi=_p(jp,2),ls=Zi[0],js=Zi[1];function Hp(a){var n=Up.config(a),s=n.monaco,o=yp(n,["monaco"]);js(function(l){return{config:Qi(l.config,o),monaco:s}})}function Wp(){var a=ls(function(n){var s=n.monaco,o=n.isInitialized,l=n.resolve;return{monaco:s,isInitialized:o,resolve:l}});if(!a.isInitialized){if(js({isInitialized:!0}),a.monaco)return a.resolve(a.monaco),tn(rn);if(window.monaco&&window.monaco.editor)return Ji(window.monaco),a.resolve(window.monaco),tn(rn);Kp(Gp,Vp)(Yp)}return tn(rn)}function Gp(a){return document.body.appendChild(a)}function Xp(a){var n=document.createElement("script");return a&&(n.src=a),n}function Vp(a){var n=ls(function(o){var l=o.config,c=o.reject;return{config:l,reject:c}}),s=Xp("".concat(n.config.paths.vs,"/loader.js"));return s.onload=function(){return a()},s.onerror=n.reject,s}function Yp(){var a=ls(function(s){var o=s.config,l=s.resolve,c=s.reject;return{config:o,resolve:l,reject:c}}),n=window.require;n.config(a.config),n(["vs/editor/editor.main"],function(s){Ji(s),a.resolve(s)},function(s){a.reject(s)})}function Ji(a){ls().monaco||js({monaco:a})}function Qp(){return ls(function(a){var n=a.monaco;return n})}var rn=new Promise(function(a,n){return js({resolve:a,reject:n})}),sn={config:Hp,init:Wp,__getMonacoInstance:Qp},Zp={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},an=Zp,Jp={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},ed=Jp;function td({children:a}){return O.createElement("div",{style:ed.container},a)}var rd=td,sd=rd;function ad({width:a,height:n,isEditorReady:s,loading:o,_ref:l,className:c,wrapperProps:m}){return O.createElement("section",{style:{...an.wrapper,width:a,height:n},...m},!s&&O.createElement(sd,null,o),O.createElement("div",{ref:l,style:{...an.fullWidth,...!s&&an.hide},className:c}))}var nd=ad,eo=O.memo(nd);function id(a){O.useEffect(a,[])}var to=id;function od(a,n,s=!0){let o=O.useRef(!0);O.useEffect(o.current||!s?()=>{o.current=!1}:a,n)}var ot=od;function cs(){}function Sr(a,n,s,o){return ld(a,o)||cd(a,n,s,o)}function ld(a,n){return a.editor.getModel(ro(a,n))}function cd(a,n,s,o){return a.editor.createModel(n,s,o?ro(a,o):void 0)}function ro(a,n){return a.Uri.parse(n)}function pd({original:a,modified:n,language:s,originalLanguage:o,modifiedLanguage:l,originalModelPath:c,modifiedModelPath:m,keepCurrentOriginalModel:_=!1,keepCurrentModifiedModel:g=!1,theme:b="light",loading:h="Loading...",options:T={},height:P="100%",width:B="100%",className:R,wrapperProps:N={},beforeMount:W=cs,onMount:V=cs}){let[G,F]=O.useState(!1),[k,q]=O.useState(!0),U=O.useRef(null),j=O.useRef(null),ae=O.useRef(null),ye=O.useRef(V),le=O.useRef(W),xt=O.useRef(!1);to(()=>{let Q=sn.init();return Q.then(ge=>(j.current=ge)&&q(!1)).catch(ge=>(ge==null?void 0:ge.type)!=="cancelation"&&console.error("Monaco initialization: error:",ge)),()=>U.current?Be():Q.cancel()}),ot(()=>{if(U.current&&j.current){let Q=U.current.getOriginalEditor(),ge=Sr(j.current,a||"",o||s||"text",c||"");ge!==Q.getModel()&&Q.setModel(ge)}},[c],G),ot(()=>{if(U.current&&j.current){let Q=U.current.getModifiedEditor(),ge=Sr(j.current,n||"",l||s||"text",m||"");ge!==Q.getModel()&&Q.setModel(ge)}},[m],G),ot(()=>{let Q=U.current.getModifiedEditor();Q.getOption(j.current.editor.EditorOption.readOnly)?Q.setValue(n||""):n!==Q.getValue()&&(Q.executeEdits("",[{range:Q.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),Q.pushUndoStop())},[n],G),ot(()=>{var Q,ge;(ge=(Q=U.current)==null?void 0:Q.getModel())==null||ge.original.setValue(a||"")},[a],G),ot(()=>{let{original:Q,modified:ge}=U.current.getModel();j.current.editor.setModelLanguage(Q,o||s||"text"),j.current.editor.setModelLanguage(ge,l||s||"text")},[s,o,l],G),ot(()=>{var Q;(Q=j.current)==null||Q.editor.setTheme(b)},[b],G),ot(()=>{var Q;(Q=U.current)==null||Q.updateOptions(T)},[T],G);let St=O.useCallback(()=>{var Ne;if(!j.current)return;le.current(j.current);let Q=Sr(j.current,a||"",o||s||"text",c||""),ge=Sr(j.current,n||"",l||s||"text",m||"");(Ne=U.current)==null||Ne.setModel({original:Q,modified:ge})},[s,n,l,a,o,c,m]),$e=O.useCallback(()=>{var Q;!xt.current&&ae.current&&(U.current=j.current.editor.createDiffEditor(ae.current,{automaticLayout:!0,...T}),St(),(Q=j.current)==null||Q.editor.setTheme(b),F(!0),xt.current=!0)},[T,b,St]);O.useEffect(()=>{G&&ye.current(U.current,j.current)},[G]),O.useEffect(()=>{!k&&!G&&$e()},[k,G,$e]);function Be(){var ge,Ne,Pe,ct;let Q=(ge=U.current)==null?void 0:ge.getModel();_||((Ne=Q==null?void 0:Q.original)==null||Ne.dispose()),g||((Pe=Q==null?void 0:Q.modified)==null||Pe.dispose()),(ct=U.current)==null||ct.dispose()}return O.createElement(eo,{width:B,height:P,isEditorReady:G,loading:h,_ref:ae,className:R,wrapperProps:N})}var dd=pd,md=O.memo(dd);function ud(a){let n=O.useRef();return O.useEffect(()=>{n.current=a},[a]),n.current}var yd=ud,Hs=new Map;function _d({defaultValue:a,defaultLanguage:n,defaultPath:s,value:o,language:l,path:c,theme:m="light",line:_,loading:g="Loading...",options:b={},overrideServices:h={},saveViewState:T=!0,keepCurrentModel:P=!1,width:B="100%",height:R="100%",className:N,wrapperProps:W={},beforeMount:V=cs,onMount:G=cs,onChange:F,onValidate:k=cs}){let[q,U]=O.useState(!1),[j,ae]=O.useState(!0),ye=O.useRef(null),le=O.useRef(null),xt=O.useRef(null),St=O.useRef(G),$e=O.useRef(V),Be=O.useRef(),Q=O.useRef(o),ge=yd(c),Ne=O.useRef(!1),Pe=O.useRef(!1);to(()=>{let te=sn.init();return te.then(he=>(ye.current=he)&&ae(!1)).catch(he=>(he==null?void 0:he.type)!=="cancelation"&&console.error("Monaco initialization: error:",he)),()=>le.current?Et():te.cancel()}),ot(()=>{var he,Fe,ht,Ae;let te=Sr(ye.current,a||o||"",n||l||"",c||s||"");te!==((he=le.current)==null?void 0:he.getModel())&&(T&&Hs.set(ge,(Fe=le.current)==null?void 0:Fe.saveViewState()),(ht=le.current)==null||ht.setModel(te),T&&((Ae=le.current)==null||Ae.restoreViewState(Hs.get(c))))},[c],q),ot(()=>{var te;(te=le.current)==null||te.updateOptions(b)},[b],q),ot(()=>{!le.current||o===void 0||(le.current.getOption(ye.current.editor.EditorOption.readOnly)?le.current.setValue(o):o!==le.current.getValue()&&(Pe.current=!0,le.current.executeEdits("",[{range:le.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),le.current.pushUndoStop(),Pe.current=!1))},[o],q),ot(()=>{var he,Fe;let te=(he=le.current)==null?void 0:he.getModel();te&&l&&((Fe=ye.current)==null||Fe.editor.setModelLanguage(te,l))},[l],q),ot(()=>{var te;_!==void 0&&((te=le.current)==null||te.revealLine(_))},[_],q),ot(()=>{var te;(te=ye.current)==null||te.editor.setTheme(m)},[m],q);let ct=O.useCallback(()=>{var te;if(!(!xt.current||!ye.current)&&!Ne.current){$e.current(ye.current);let he=c||s,Fe=Sr(ye.current,o||a||"",n||l||"",he||"");le.current=(te=ye.current)==null?void 0:te.editor.create(xt.current,{model:Fe,automaticLayout:!0,...b},h),T&&le.current.restoreViewState(Hs.get(he)),ye.current.editor.setTheme(m),_!==void 0&&le.current.revealLine(_),U(!0),Ne.current=!0}},[a,n,s,o,l,c,b,h,T,m,_]);O.useEffect(()=>{q&&St.current(le.current,ye.current)},[q]),O.useEffect(()=>{!j&&!q&&ct()},[j,q,ct]),Q.current=o,O.useEffect(()=>{var te,he;q&&F&&((te=Be.current)==null||te.dispose(),Be.current=(he=le.current)==null?void 0:he.onDidChangeModelContent(Fe=>{Pe.current||F(le.current.getValue(),Fe)}))},[q,F]),O.useEffect(()=>{if(q){let te=ye.current.editor.onDidChangeMarkers(he=>{var ht;let Fe=(ht=le.current.getModel())==null?void 0:ht.uri;if(Fe&&he.find(Ae=>Ae.path===Fe.path)){let Ae=ye.current.editor.getModelMarkers({resource:Fe});k==null||k(Ae)}});return()=>{te==null||te.dispose()}}return()=>{}},[q,k]);function Et(){var te,he;(te=Be.current)==null||te.dispose(),P?T&&Hs.set(c,le.current.saveViewState()):(he=le.current.getModel())==null||he.dispose(),le.current.dispose()}return O.createElement(eo,{width:B,height:R,isEditorReady:q,loading:g,_ref:xt,className:N,wrapperProps:W})}var fd=_d,gd=O.memo(fd);const so={keywords:[{name:"or",desc:["逻辑 OR。适用于布尔表达式。"],syntax:["expr1 or expr2"],returns:["布尔值,或一系列布尔值。"]},{name:"and",desc:["逻辑 AND。适用于布尔表达式。"],syntax:["expr1 and expr2"],returns:["布尔值,或一系列布尔值。"]},{name:"not",desc:["逻辑求反(NOT)。 适用于布尔表达式。"],syntax:["not expr1"],returns:["布尔值,或一系列布尔值。"]},{name:"if",desc:["If语句定义了在满足表达式条件时必须执行的语句块。","要访问和使用if语句,应在代码的第一行中指定>= 2的Pine Script®语言版本,例如://@version=5","Pine Script®语言的第四版允许您使用“else if”语法。","通用编码来自:"],syntax:[`var_declarationX = if condition
39
+ `},Yi=Pp(Bp)(Vi),Up={config:Rp},Kp=function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return function(c){return s.reduceRight(function(l,m){return m(l)},c)}};function Qi(a,n){return Object.keys(n).forEach(function(s){n[s]instanceof Object&&a[s]&&Object.assign(n[s],Qi(a[s],n[s]))}),Hi(Hi({},a),n)}var $p={type:"cancelation",msg:"operation is manually canceled"};function tn(a){var n=!1,s=new Promise(function(o,c){a.then(function(l){return n?c($p):o(l)}),a.catch(c)});return s.cancel=function(){return n=!0},s}var jp=Lp.create({config:Mp,isInitialized:!1,resolve:null,reject:null,monaco:null}),Zi=_p(jp,2),ls=Zi[0],js=Zi[1];function Hp(a){var n=Up.config(a),s=n.monaco,o=yp(n,["monaco"]);js(function(c){return{config:Qi(c.config,o),monaco:s}})}function Wp(){var a=ls(function(n){var s=n.monaco,o=n.isInitialized,c=n.resolve;return{monaco:s,isInitialized:o,resolve:c}});if(!a.isInitialized){if(js({isInitialized:!0}),a.monaco)return a.resolve(a.monaco),tn(rn);if(window.monaco&&window.monaco.editor)return Ji(window.monaco),a.resolve(window.monaco),tn(rn);Kp(Gp,Vp)(Yp)}return tn(rn)}function Gp(a){return document.body.appendChild(a)}function Xp(a){var n=document.createElement("script");return a&&(n.src=a),n}function Vp(a){var n=ls(function(o){var c=o.config,l=o.reject;return{config:c,reject:l}}),s=Xp("".concat(n.config.paths.vs,"/loader.js"));return s.onload=function(){return a()},s.onerror=n.reject,s}function Yp(){var a=ls(function(s){var o=s.config,c=s.resolve,l=s.reject;return{config:o,resolve:c,reject:l}}),n=window.require;n.config(a.config),n(["vs/editor/editor.main"],function(s){Ji(s),a.resolve(s)},function(s){a.reject(s)})}function Ji(a){ls().monaco||js({monaco:a})}function Qp(){return ls(function(a){var n=a.monaco;return n})}var rn=new Promise(function(a,n){return js({resolve:a,reject:n})}),sn={config:Hp,init:Wp,__getMonacoInstance:Qp},Zp={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},an=Zp,Jp={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},ed=Jp;function td({children:a}){return O.createElement("div",{style:ed.container},a)}var rd=td,sd=rd;function ad({width:a,height:n,isEditorReady:s,loading:o,_ref:c,className:l,wrapperProps:m}){return O.createElement("section",{style:{...an.wrapper,width:a,height:n},...m},!s&&O.createElement(sd,null,o),O.createElement("div",{ref:c,style:{...an.fullWidth,...!s&&an.hide},className:l}))}var nd=ad,eo=O.memo(nd);function id(a){O.useEffect(a,[])}var to=id;function od(a,n,s=!0){let o=O.useRef(!0);O.useEffect(o.current||!s?()=>{o.current=!1}:a,n)}var ot=od;function cs(){}function Er(a,n,s,o){return ld(a,o)||cd(a,n,s,o)}function ld(a,n){return a.editor.getModel(ro(a,n))}function cd(a,n,s,o){return a.editor.createModel(n,s,o?ro(a,o):void 0)}function ro(a,n){return a.Uri.parse(n)}function pd({original:a,modified:n,language:s,originalLanguage:o,modifiedLanguage:c,originalModelPath:l,modifiedModelPath:m,keepCurrentOriginalModel:_=!1,keepCurrentModifiedModel:f=!1,theme:b="light",loading:h="Loading...",options:T={},height:P="100%",width:B="100%",className:R,wrapperProps:N={},beforeMount:H=cs,onMount:V=cs}){let[G,F]=O.useState(!1),[k,q]=O.useState(!0),U=O.useRef(null),j=O.useRef(null),ae=O.useRef(null),ye=O.useRef(V),le=O.useRef(H),xt=O.useRef(!1);to(()=>{let Q=sn.init();return Q.then(ge=>(j.current=ge)&&q(!1)).catch(ge=>(ge==null?void 0:ge.type)!=="cancelation"&&console.error("Monaco initialization: error:",ge)),()=>U.current?Be():Q.cancel()}),ot(()=>{if(U.current&&j.current){let Q=U.current.getOriginalEditor(),ge=Er(j.current,a||"",o||s||"text",l||"");ge!==Q.getModel()&&Q.setModel(ge)}},[l],G),ot(()=>{if(U.current&&j.current){let Q=U.current.getModifiedEditor(),ge=Er(j.current,n||"",c||s||"text",m||"");ge!==Q.getModel()&&Q.setModel(ge)}},[m],G),ot(()=>{let Q=U.current.getModifiedEditor();Q.getOption(j.current.editor.EditorOption.readOnly)?Q.setValue(n||""):n!==Q.getValue()&&(Q.executeEdits("",[{range:Q.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),Q.pushUndoStop())},[n],G),ot(()=>{var Q,ge;(ge=(Q=U.current)==null?void 0:Q.getModel())==null||ge.original.setValue(a||"")},[a],G),ot(()=>{let{original:Q,modified:ge}=U.current.getModel();j.current.editor.setModelLanguage(Q,o||s||"text"),j.current.editor.setModelLanguage(ge,c||s||"text")},[s,o,c],G),ot(()=>{var Q;(Q=j.current)==null||Q.editor.setTheme(b)},[b],G),ot(()=>{var Q;(Q=U.current)==null||Q.updateOptions(T)},[T],G);let St=O.useCallback(()=>{var Ne;if(!j.current)return;le.current(j.current);let Q=Er(j.current,a||"",o||s||"text",l||""),ge=Er(j.current,n||"",c||s||"text",m||"");(Ne=U.current)==null||Ne.setModel({original:Q,modified:ge})},[s,n,c,a,o,l,m]),$e=O.useCallback(()=>{var Q;!xt.current&&ae.current&&(U.current=j.current.editor.createDiffEditor(ae.current,{automaticLayout:!0,...T}),St(),(Q=j.current)==null||Q.editor.setTheme(b),F(!0),xt.current=!0)},[T,b,St]);O.useEffect(()=>{G&&ye.current(U.current,j.current)},[G]),O.useEffect(()=>{!k&&!G&&$e()},[k,G,$e]);function Be(){var ge,Ne,Pe,ct;let Q=(ge=U.current)==null?void 0:ge.getModel();_||((Ne=Q==null?void 0:Q.original)==null||Ne.dispose()),f||((Pe=Q==null?void 0:Q.modified)==null||Pe.dispose()),(ct=U.current)==null||ct.dispose()}return O.createElement(eo,{width:B,height:P,isEditorReady:G,loading:h,_ref:ae,className:R,wrapperProps:N})}var dd=pd,md=O.memo(dd);function ud(a){let n=O.useRef();return O.useEffect(()=>{n.current=a},[a]),n.current}var yd=ud,Hs=new Map;function _d({defaultValue:a,defaultLanguage:n,defaultPath:s,value:o,language:c,path:l,theme:m="light",line:_,loading:f="Loading...",options:b={},overrideServices:h={},saveViewState:T=!0,keepCurrentModel:P=!1,width:B="100%",height:R="100%",className:N,wrapperProps:H={},beforeMount:V=cs,onMount:G=cs,onChange:F,onValidate:k=cs}){let[q,U]=O.useState(!1),[j,ae]=O.useState(!0),ye=O.useRef(null),le=O.useRef(null),xt=O.useRef(null),St=O.useRef(G),$e=O.useRef(V),Be=O.useRef(),Q=O.useRef(o),ge=yd(l),Ne=O.useRef(!1),Pe=O.useRef(!1);to(()=>{let te=sn.init();return te.then(he=>(ye.current=he)&&ae(!1)).catch(he=>(he==null?void 0:he.type)!=="cancelation"&&console.error("Monaco initialization: error:",he)),()=>le.current?Et():te.cancel()}),ot(()=>{var he,Fe,ht,Ae;let te=Er(ye.current,a||o||"",n||c||"",l||s||"");te!==((he=le.current)==null?void 0:he.getModel())&&(T&&Hs.set(ge,(Fe=le.current)==null?void 0:Fe.saveViewState()),(ht=le.current)==null||ht.setModel(te),T&&((Ae=le.current)==null||Ae.restoreViewState(Hs.get(l))))},[l],q),ot(()=>{var te;(te=le.current)==null||te.updateOptions(b)},[b],q),ot(()=>{!le.current||o===void 0||(le.current.getOption(ye.current.editor.EditorOption.readOnly)?le.current.setValue(o):o!==le.current.getValue()&&(Pe.current=!0,le.current.executeEdits("",[{range:le.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),le.current.pushUndoStop(),Pe.current=!1))},[o],q),ot(()=>{var he,Fe;let te=(he=le.current)==null?void 0:he.getModel();te&&c&&((Fe=ye.current)==null||Fe.editor.setModelLanguage(te,c))},[c],q),ot(()=>{var te;_!==void 0&&((te=le.current)==null||te.revealLine(_))},[_],q),ot(()=>{var te;(te=ye.current)==null||te.editor.setTheme(m)},[m],q);let ct=O.useCallback(()=>{var te;if(!(!xt.current||!ye.current)&&!Ne.current){$e.current(ye.current);let he=l||s,Fe=Er(ye.current,o||a||"",n||c||"",he||"");le.current=(te=ye.current)==null?void 0:te.editor.create(xt.current,{model:Fe,automaticLayout:!0,...b},h),T&&le.current.restoreViewState(Hs.get(he)),ye.current.editor.setTheme(m),_!==void 0&&le.current.revealLine(_),U(!0),Ne.current=!0}},[a,n,s,o,c,l,b,h,T,m,_]);O.useEffect(()=>{q&&St.current(le.current,ye.current)},[q]),O.useEffect(()=>{!j&&!q&&ct()},[j,q,ct]),Q.current=o,O.useEffect(()=>{var te,he;q&&F&&((te=Be.current)==null||te.dispose(),Be.current=(he=le.current)==null?void 0:he.onDidChangeModelContent(Fe=>{Pe.current||F(le.current.getValue(),Fe)}))},[q,F]),O.useEffect(()=>{if(q){let te=ye.current.editor.onDidChangeMarkers(he=>{var ht;let Fe=(ht=le.current.getModel())==null?void 0:ht.uri;if(Fe&&he.find(Ae=>Ae.path===Fe.path)){let Ae=ye.current.editor.getModelMarkers({resource:Fe});k==null||k(Ae)}});return()=>{te==null||te.dispose()}}return()=>{}},[q,k]);function Et(){var te,he;(te=Be.current)==null||te.dispose(),P?T&&Hs.set(l,le.current.saveViewState()):(he=le.current.getModel())==null||he.dispose(),le.current.dispose()}return O.createElement(eo,{width:B,height:R,isEditorReady:q,loading:f,_ref:xt,className:N,wrapperProps:H})}var fd=_d,gd=O.memo(fd);const so={keywords:[{name:"or",desc:["逻辑 OR。适用于布尔表达式。"],syntax:["expr1 or expr2"],returns:["布尔值,或一系列布尔值。"]},{name:"and",desc:["逻辑 AND。适用于布尔表达式。"],syntax:["expr1 and expr2"],returns:["布尔值,或一系列布尔值。"]},{name:"not",desc:["逻辑求反(NOT)。 适用于布尔表达式。"],syntax:["not expr1"],returns:["布尔值,或一系列布尔值。"]},{name:"if",desc:["If语句定义了在满足表达式条件时必须执行的语句块。","要访问和使用if语句,应在代码的第一行中指定>= 2的Pine Script®语言版本,例如://@version=5","Pine Script®语言的第四版允许您使用“else if”语法。","通用编码来自:"],syntax:[`var_declarationX = if condition
40
40
  var_decl_then0
41
41
  var_decl_then1
42
42
 
@@ -103,21 +103,21 @@ else
103
103
  \${2:local_block_1}
104
104
  else
105
105
  \${3:local_block_2}
106
- `,kind:"statement"},{label:"for...to",insertText:"for ${1:i} = 1 to ${2:to_num} by 1\n ${3:local_block}\n",kind:"loop"},{label:"for...in",insertText:"for [${1:index}, ${2:value}] in ${3:arr}\n ${4:local_block}\n",kind:"loop"},{label:"while",insertText:"while ${1:condition}\n ${2:local_block}\n",kind:"statement"},{label:"switch",insertText:"switch ${1:condition}\n ${2:value_1} => ${3:local_block_1}\n ${4:value_2} => ${5:local_block_2}\n => ${6:default_local_block}\n",kind:"statement"}],ao=["in","as","continue","break","else","to","by"],be={keywords:"keyword",functions:"built-in function",variables:"built-in variable",methods:"built-in method",types:"built-in type",annotations:"annotation",constants:"built-in constant",namespace:"namespace",userDefinedVariable:"user-defined variable",userDefinedType:"user-defined type",field:"field",enum:"enum",userDefinedMethod:"user-defined method",userDefinedFunction:"user-defined function",returns:"returns",parameter:"parameter",namespaceDesc:"**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.",toTriggerParameterHints:"to trigger parameters hint"},xd={clickOnKeywordForMoreHelp:"`click` on keyword for more help"};function hd(){const a={},n={};return Object.keys(so).reduce((s,o)=>{const l=so[o],c=be[o],{mapObj:m,keys:_}=wd(l,c);return s.keyMapList[o]=m,s.keyList[o]=_,s},{keyList:a,keyMapList:n}),{keyList:a,keyMapList:n}}function wd(a,n){const s=new Map,o=[];return a.forEach(l=>{var m;l.title=n;const c=l.originalName||l.name;c!=="for...in"&&(s.has(c)?(m=s.get(c))==null||m.push(l):(o.push(c),s.set(c,[l])))}),{mapObj:s,keys:o}}const{keyList:no,keyMapList:lt}=hd(),ps=[{title:"Variables",key:"variables",prefix:"var"},{title:"Constants",key:"constants",prefix:"const"},{title:"Functions",key:"functions",prefix:"fun"},{title:"Keywords",key:"keywords",prefix:"kw"},{title:"Types",key:"types",prefix:"type"},{title:"Operators",key:"operators",prefix:"op"},{title:"Annotations",key:"annotations",prefix:"an"}];function vd(a){return a.replace(/<.*>/,"")}class Td{constructor(){Object.defineProperty(this,"delimiter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"paragraphBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.delimiter="***",this.lineBreak=`
106
+ `,kind:"statement"},{label:"for...to",insertText:"for ${1:i} = 1 to ${2:to_num} by 1\n ${3:local_block}\n",kind:"loop"},{label:"for...in",insertText:"for [${1:index}, ${2:value}] in ${3:arr}\n ${4:local_block}\n",kind:"loop"},{label:"while",insertText:"while ${1:condition}\n ${2:local_block}\n",kind:"statement"},{label:"switch",insertText:"switch ${1:condition}\n ${2:value_1} => ${3:local_block_1}\n ${4:value_2} => ${5:local_block_2}\n => ${6:default_local_block}\n",kind:"statement"}],ao=["in","as","continue","break","else","to","by"],be={keywords:"keyword",functions:"built-in function",variables:"built-in variable",methods:"built-in method",types:"built-in type",annotations:"annotation",constants:"built-in constant",namespace:"namespace",userDefinedVariable:"user-defined variable",userDefinedType:"user-defined type",field:"field",enum:"enum",userDefinedMethod:"user-defined method",userDefinedFunction:"user-defined function",returns:"returns",parameter:"parameter",namespaceDesc:"**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.",toTriggerParameterHints:"to trigger parameters hint"},xd={clickOnKeywordForMoreHelp:"`click` on keyword for more help"};function hd(){const a={},n={};return Object.keys(so).reduce((s,o)=>{const c=so[o],l=be[o],{mapObj:m,keys:_}=wd(c,l);return s.keyMapList[o]=m,s.keyList[o]=_,s},{keyList:a,keyMapList:n}),{keyList:a,keyMapList:n}}function wd(a,n){const s=new Map,o=[];return a.forEach(c=>{var m;c.title=n;const l=c.originalName||c.name;l!=="for...in"&&(s.has(l)?(m=s.get(l))==null||m.push(c):(o.push(l),s.set(l,[c])))}),{mapObj:s,keys:o}}const{keyList:no,keyMapList:lt}=hd(),ps=[{title:"Variables",key:"variables",prefix:"var"},{title:"Constants",key:"constants",prefix:"const"},{title:"Functions",key:"functions",prefix:"fun"},{title:"Keywords",key:"keywords",prefix:"kw"},{title:"Types",key:"types",prefix:"type"},{title:"Operators",key:"operators",prefix:"op"},{title:"Annotations",key:"annotations",prefix:"an"}];function vd(a){return a.replace(/<.*>/,"")}class Td{constructor(){Object.defineProperty(this,"delimiter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"paragraphBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.delimiter="***",this.lineBreak=`
107
107
  `,this.paragraphBreak=`
108
108
 
109
109
  `}bold(n){return`**${n}**`}italic(n){return`*${n.replace(">","&gt;").replace("<","&lt;")}*`}pineCode(n){return`\`\`\`
110
110
  ${n}
111
- \`\`\``}code(n){return`\`${n}\``}paragraph(...n){return[this.paragraphBreak,...n,this.paragraphBreak].join(this.lineBreak)}link(n,s){return`[${n}](${s.href})`}}const ie=new Td;function Dd(a){const{name:n,libraryName:s,desc:o}=a,l=[`${ie.bold(n||s)} (library)`];return l.push(ie.delimiter),o&&l.push(ie.paragraph(ie.bold(et.Description),ie.lineBreak,o)),l.join(l.length===2?" ":ie.lineBreak)}function kd(a,n=0,s=!0){const o=a[n];if(!o)return"";if(o.isEnumMember)return`${ie.bold(o.name)} (enum member)${o.value===void 0?"":` = ${o.value}`}`;const l=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:c,title:m,desc:_,type:g,syntax:b,returns:h,remarks:T,fields:P,members:B}=o,R=[`${ie.bold(c)} (${m})`];if(a.length>1&&R.push(ie.italic(`+${a.length-1} overloads`)),R.push(ie.delimiter),_&&R.push(ie.paragraph(Array.isArray(_)?_.join(ie.lineBreak):_||"")),g&&R.push(ie.paragraph(ie.bold(et.Type),ie.italic(g))),b&&b.length&&R.push(ie.paragraph(ie.bold(et.Syntax),ie.pineCode(b.join(ie.lineBreak)))),h&&R.push(ie.paragraph(ie.bold(et.Returns),ie.lineBreak,h.join(ie.lineBreak))),T&&T.length&&a.length<=1){let N="";typeof T=="string"?N=T:N=T.join(ie.lineBreak)||"",N.length<200&&R.push(ie.paragraph(ie.bold(et.Remarks),ie.lineBreak,N))}if(P){const N=[];for(const W of P){const V=W.desc?` - ${W.desc}`:"";N.push(`${W.name} (${W.type})${V}`)}R.push(ie.paragraph(ie.bold(et.Fields),ie.lineBreak,N.join(ie.paragraphBreak)))}if(B){const N=[];for(const W of B){const V=W.desc?` - ${W.desc}`:"";N.push(`${W.name}${W.value?` (${W.value})`:""}${V}`)}R.push(ie.paragraph(ie.bold(et.EnumMembers),ie.lineBreak,N.join(ie.paragraphBreak)))}return s&&R.push(ie.italic(`${ie.code(l?"⌘":"Ctrl")} + ${xd.clickOnKeywordForMoreHelp}`)),R.join(R.length===2?" ":ie.lineBreak)}const nn="tcc_cursor_position",Id=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function Ad(a){return a.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function qd(a){const n=a.getContribution("editor.contrib.contextmenu"),s=n==null?void 0:n._getMenuActions;n._getMenuActions=function(){return s.apply(n,arguments).filter(function(l){return!Id.includes(l.id)})}}class Cd{constructor(){Object.defineProperty(this,"bracketsPostfix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_builtinSubtreeCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_namespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_suggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_outermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFuncArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userOutermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userEnums",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nextIsBracket",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=ie,this._namespaceCache=new Map,this._suggestions=[],this._outermostNsItems=new Map,this._funcArgsCache=new Map,this._userSuggestions=[],this._userFuncArgsCache=new Map,this._userNamespaceCache=new Map,this._userOutermostNsItems=new Map,this._methodNamespaceCache=new Map,this._userMethods=new Map,this._userTypes=new Map,this._methodFuncs=new Map,this._userFunctions=new Map,this._userEnums=new Map,this._nextIsBracket=!1}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}set nextIsBracket(n){this._nextIsBracket=n}get nextIsBracket(){return this._nextIsBracket}get annotationSuggestions(){return this._getAnnotationCompletionItems(this._builtinSubtreeCache.annotations)}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(n){return this._funcArgsCache.get(n)||this._userFuncArgsCache.get(n)}getSuggestions(n){return n?this._namespaceCache.get(n)||this._userNamespaceCache.get(n):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(n,s,o,l,c){this._initUserDefind();const m=this._mergeTreeSlices(this._generateTreeSlice(lt.methods,"method"),this._generateTreeSlice(l,"method"));this._getMethodNamespaceCache(m),this._userMethods=l,this._userTypes=s,this._userFunctions=n,this._userEnums=c;const _=this._generateTreeSlice(n,"fun");this._userSuggestions=this._getAllUserCompletionItems(_,this._generateTreeSlice(s,"type"),this._generateTreeSlice(o,"var"),this._generateTreeSlice(c,"enum")),this._getUserFuncArgumentsCompletionItemsToCache(_)}_getAllUserCompletionItems(n,s,o,l){const c=this._getEnumCompletionItems(l),m=this._getUserVariableCompletionItems(o),_=this._getTypeCompletionItems(s,!0),g=this._getFunctionCompletionItems(n,void 0,!0);return[..._,...g,...m,...c,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:n,keywords:s,types:o,functions:l}=this._builtinSubtreeCache,c=this._getVariableCompletionItems(n),m=this._getKeywordCompletionItems(s),_=this._getTypeCompletionItems(o),g=this._getFunctionCompletionItems(l),b=this._getSnippetsCompletionsList();return[...c,...m,..._,...g,...this._outermostNsItems.values(),...b]}_getNodeKey(n,s){return`${s}_${n}`}_mergeTreeSlices(...n){const s=new Map;for(const o of n)for(const[l,c]of o){const m=s.get(l);m?s.set(l,{...m,children:this._mergeTreeSlices(c.children,m.children)}):s.set(l,c)}return s}_mergeCompletions(n,s){const o=this._namespaceCache.get(n);o?this._namespaceCache.set(n,[...o,...s]):this._namespaceCache.set(n,s)}_mergeUserCompletions(n,s){const o=this._userNamespaceCache.get(n);o?this._userNamespaceCache.set(n,[...o,...s]):this._userNamespaceCache.set(n,s)}_generateTreeSlice(n,s){const o=new Map;for(const[l,c]of n){const[m,..._]=l.split("."),g=_.length>0,b=o.get(this._getNodeKey(m,g?"ns":s));let h=new Map,T=c.map(B=>({...B,name:l})),P=this._getNodeKey(l,s);if(g&&s!=="type"){const B=new Map([[_.join("."),c]]);T=[{name:m,title:be.namespace}],P=this._getNodeKey(m,"ns"),h=this._generateTreeSlice(B,s)}b&&(T=[{name:m,title:be.namespace}],h=this._mergeTreeSlices(b.children,h)),o.set(P,{value:T,children:h})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:s,constants:o,types:l,functions:c,annotations:m}=lt,_=this._generateTreeSlice(m,"an");return _.delete("an_@version="),this._builtinSubtreeCache={keywords:this._generateTreeSlice(n,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(s,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(l,"type"),functions:this._generateTreeSlice(c,"fun"),annotations:_},this._builtinSubtreeCache}_getVariableCompletionItems(n,s){const o=[],l=[];for(const[c,m]of n){const{value:_,children:g}=m;if(c.startsWith("ns")){const b=this._getNamespaceCompletionItem(_[0]);if(s){l.push({...b});const T=`${s}.${b.label}`;b.label=T,b.insertText=T}const h=this._getVariableCompletionItems(g,b.label);s||this._outermostNsItems.set(c,b),o.push(...h)}else{const b=this._getVariableCompletionItem(_[0],s?3:2);if(s){l.push({...b});const{label:h}=b;b.label=`${s}.${h}`,b.insertText=`${s}.${b.insertText}`,b.filterText=`${h}\r`}o.push(b)}}return l.length&&s&&this._mergeCompletions(s,l),o}_setUserVariableSubItems(n,s){var b,h,T,P;let o=[];const l=Ad(n.type||""),c=this._methodNamespaceCache.get(l),m=s?`${s}.${n.name}`:n.name;c&&(o=c.filter(B=>{var V;const R=`${l}.${B.label}`,N=lt.methods.get(R)||this._userMethods.get(R),W=N==null?void 0:N.some(G=>!G.thisType||G.thisType[0].includes("<>")||G.thisType.includes(n.type||""));if(W&&N){const G=this._getNamedArgumentsCompletionList(((V=N[0])==null?void 0:V.args)||[]),F=`${m}.${B.label}`;this._userFuncArgsCache.set(F,G),this._methodFuncs.set(F,N)}return W}));const{types:_}=lt,g=((h=(b=this._userTypes.get(l))==null?void 0:b[0])==null?void 0:h.fields)||((P=(T=_.get(l))==null?void 0:T[0])==null?void 0:P.fields);if(g)for(const B of g){const R=B.name,N=B.type,W=this._getInstanceTypeCompletionItemProp({name:R,type:N,desc:B.desc?[B.desc]:void 0});this._setUserVariableSubItems({name:R,type:N},n.name),o.push({...W})}o.length&&this._mergeUserCompletions(m,o)}_getUserVariableCompletionItems(n,s){const o=[],l=[];for(const[c,m]of n){const{value:_,children:g}=m;if(this._setUserVariableSubItems(_[0]),c.startsWith("ns")){const b=this._getNamespaceCompletionItem(_[0]);if(s){l.push({...b});const T=`${s}.${b.label}`;b.label=T,b.insertText=T}const h=this._getUserVariableCompletionItems(g,b.label);s||this._userOutermostNsItems.set(c,b),o.push(...h)}else{const b=this._getVariableCompletionItem(_[0],s?2:1,!1);if(s){l.push({...b});const{label:h}=b;b.label=`${s}.${h}`,b.insertText=`${s}.${b.insertText}`,b.filterText=`${h}\r`}o.push(b)}}return l.length&&s&&this._mergeUserCompletions(s,l),o}_getTypeCompletionItems(n,s=!1){const o=[];for(const[,l]of n){const{value:c}=l,m=s?this._getCustomTypeCompletionItem(c[0]):this._getTypeCompletionItem(c[0]);o.push(m)}return o}_getEnumCompletionItems(n){const s=[];for(const[,o]of n){const{value:l}=o,c=this._getEnumCompletionItem(l[0]);s.push(c);const m=l[0].members;m!=null&&m.length&&this._getEnumMemberCompletionItems(l[0].name,m)}return s}_getEnumMemberCompletionItems(n,s){const o=[];for(const l of s){const{name:c,desc:m,value:_}=l,g=this._getEnumMemberCompletionItem({name:c,desc:m?[m]:void 0,value:_});o.push(g)}o.length&&this._mergeUserCompletions(n,o)}_getAnnotationCompletionItems(n){const s=[];for(const[,o]of n){const{value:l}=o,c=this._getAnnotationCompletionItem(l[0]);s.push(c)}return s}_getKeywordCompletionItems(n){const s=[];for(const[,o]of n){const{value:l}=o,c=this._getKeywordCompletionItem(l[0]);s.push(c)}return s}_getMethodNamespaceCache(n,s){const o=[];for(const[l,c]of n){const{value:m,children:_}=c;if(l.startsWith("ns")){const g=this._getNamespaceCompletionItem(m[0]);if(s){o.push({...g});const b=`${s}.${g.label}`;g.label=b,g.insertText=b}this._getMethodNamespaceCache(_,g.label)}else{const g=this._getFunctionCompletionItem(m[0],s?3:2);if(m.length>1&&(g.detail=`${g.detail} (+${m.length-1} overloads)`),s){o.push({...g});const{label:b}=g;g.label=`${s}.${b}`,g.insertText=`${s}.${g.insertText}`,g.originInsertText=`${s}.${g.originInsertText}`,g.filterText=`${b}\r`}}}s&&this._methodNamespaceCache.set(s,o)}_getFunctionCompletionItems(n,s,o=!1){const l=[],c=[];for(const[m,_]of n){const{value:g,children:b}=_;if(m.startsWith("ns")){const h=this._getNamespaceCompletionItem(g[0]);if(s){c.push({...h});const P=`${s}.${h.label}`;h.label=P,h.insertText=P}const T=this._getFunctionCompletionItems(b,h.label,o);s||(o?this._userOutermostNsItems.set(m,h):this._outermostNsItems.set(m,h)),l.push(...T)}else{const h=this._getFunctionCompletionItem(g[0],s?3:2,!o);if(g.length>1&&(h.detail=`${h.detail} (+${g.length-1} overloads)`),s){c.push({...h});const{label:T}=h;h.label=`${s}.${T}`,h.insertText=`${s}.${h.insertText}`,h.originInsertText=`${s}.${h.originInsertText}`,h.filterText=`${T}\r`}l.push(h)}}return c.length&&s&&(o?this._mergeUserCompletions(s,c):this._mergeCompletions(s,c)),l}_getSnippetsCompletionsList(){return bd.map(n=>{const{label:s,kind:o,insertText:l}=n,c=s.charAt(0).toUpperCase()+s.substring(1),m={value:this._formatter.pineCode(l.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:s,detail:`(${c} ${o})`,insertText:l,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${s}`,kind:Ie.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(n,s){for(const[o,l]of n){const{name:c}=l.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(l.children,s?`${s}.${c}`:c);else{const m=new Map;l.value.reduce((b,h)=>{const T=h.args;return T&&T.length&&T.forEach(P=>{b.set(P.name,P)}),b},m);const _=this._getNamedArgumentsCompletionList([...m.values()]),g=s?`${s}.${c}`:c;this._funcArgsCache.set(g,_)}}}_getUserFuncArgumentsCompletionItemsToCache(n,s){for(const[o,l]of n){const{name:c}=l.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(l.children,s?`${s}.${c}`:c);else{const m=new Map;l.value.reduce((b,h)=>{const T=h.args;return T&&T.length&&T.forEach(P=>{b.set(P.name,P)}),b},m);const _=this._getNamedArgumentsCompletionList([...m.values()]),g=s?`${s}.${c}`:c;this._userFuncArgsCache.set(g,_)}}}_getNamedArgumentsCompletionList(n){return n.map(s=>{const{name:o,desc:l,displayType:c}=s,m=`${o} = `,_=Array.isArray(l)?l.join(this._formatter.delimiter):l||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(be.Description),this._formatter.lineBreak,_)},insertText:m,detail:`(${be.parameter}) ${be.types} ${c}`,kind:Ie.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(n,s=2,o=!0){const l=this._extractExamples(n),c=this._extractDescription(n),m=[this._createDescriptionSection(c)];l.length?m.push(this._createExampleSection(l)):n.syntax&&n.syntax.length&&m.push(this._createSyntaxSection(n.syntax));const _={value:m.join(this._formatter.lineBreak)},g=o?be.variables:be.userDefinedVariable;return{documentation:_,label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Variable,sortText:`${s}_${n.name}`,detail:`(${g}) ${n.type}`}}_getKeywordCompletionItem(n,s=2){const o=this._extractExamples(n),l=this._extractDescription(n),c=[this._createDescriptionSection(l)];return o.length?c.push(this._createExampleSection(o)):n.syntax&&n.syntax.length&&c.push(this._createSyntaxSection(n.syntax)),{documentation:{value:c.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Keyword,sortText:`${s}_${n.name}`,detail:`(${be.keywords})`}}_getTypeCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Keyword,sortText:`1_${n.name}`,detail:`(${be.types})`}}_getCustomTypeCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Keyword,sortText:`2_${n.name}`,detail:`(${be.userDefinedType})`}}_getEnumCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Enum,sortText:`2_${n.name}`,detail:`(${be.enum})`}}_getEnumMemberCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.EnumMember,sortText:`2_${n.name}`,detail:`(enum member) ${n.value?`${n.name} = ${n.value}`:`${n.name}`}`}}_getInstanceTypeCompletionItemProp(n){const s=this._extractDescription(n),o=[];return s&&o.push(this._formatter.paragraph(this._formatter.bold(et.Description),this._formatter.lineBreak,s)),{documentation:{value:o.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Field,sortText:`2_${n.name}`,detail:`(${be.field}) ${n.type}`}}_getFunctionCompletionItem(n,s=2,o=!0){var B;const l=n.returnedTypes&&n.returnedTypes[0]||n.syntax&&n.syntax[0]&&((B=n.syntax[0].split("→").pop())==null?void 0:B.trim()),c=this._extractExamples(n),m=this._extractDescription(n),_=[this._createDescriptionSection(m)];c.length?_.push(this._createExampleSection(c)):n.syntax&&n.syntax.length&&_.push(this._createSyntaxSection(n.syntax)),n.returns&&n.returns.length&&_.push(this._createReturnSection(n.returns));const g={value:_.join(this._formatter.lineBreak)},b=n.name,h=o?be.functions:be.userDefinedFunction,T=n.template,P=T?`${vd(b)}<\${1}>`:b;return{documentation:g,label:T?`${b.replace(/<.+>/,"")}<type>`:b,kind:Ie.languages.CompletionItemKind.Function,sortText:`${s}_${b}`,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:P+this.bracketsPostfix,originInsertText:P,detail:`(${h}) ${be.returns} ${l}`,command:{id:"tcc.editor.function",title:"",arguments:[T?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getAnnotationCompletionItem(n){const s=this._extractDescription(n),o=this._extractExamples(n),l=[this._createDescriptionSection(s)];return o.length&&l.push(this._createExampleSection(o)),{documentation:{value:l.join(this._formatter.lineBreak)},label:n.name,insertText:n.name.replace("@",""),kind:Ie.languages.CompletionItemKind.Keyword,detail:`(${be.annotations})`}}_getNamespaceCompletionItem(n,s=2){const o=[this._createDescriptionSection(be.namespaceDesc)];return{label:n.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${be.namespace}) ${n.name}`,insertText:n.name,sortText:`${s}_${n.name}`,kind:Ie.languages.CompletionItemKind.Module}}_extractExamples(n){let s;return n.examples||n.detailedDesc&&((s=n.detailedDesc[0])===null||s===void 0?void 0:s.examples)||[]}_extractDescription(n){return Array.isArray(n.desc)?n.desc.join(this._formatter.lineBreak):n.desc||""}_createExampleSection(n){return this._formatter.paragraph(this._formatter.bold(et.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(et.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(et.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(et.Description),this._formatter.lineBreak,n)}}const zt=new Cd;class zd{constructor(){Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userVariables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userEnums",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_imports",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_overloadsFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._userFunctions=new Map,this._userVariables=new Map,this._userTypes=new Map,this._userMethods=new Map,this._imports=new Map,this._userEnums=new Map,this._overloadsFuncs=[]}setUserDefined(n,s){const{functions:o,variables:l,types:c,methods:m,imports:_,enums:g}=n;o&&(this._userFunctions=o),l&&(this._userVariables=l),c&&(this._userTypes=c),m&&(this._userMethods=m),_&&(this._imports=_),g&&(this._userEnums=g),this._overloadsFuncs=s}parseLineContentFuncVar(n,s,o,l){let c=(o==null?void 0:o.getLineContent(s))||"";const m=c.indexOf("//");if(this._removeString(c).indexOf("//")!==-1&&m<=n)return;c=c+" ";const _=this._getVariablesDocVal(c,n,s);if(_){if(_.isBuildIn){const h=o==null?void 0:o.getWordAtPosition(l||new Ie.Position(s,n));if(((o==null?void 0:o.getValueInRange({startLineNumber:s,startColumn:(h==null?void 0:h.endColumn)||0,endLineNumber:s,endColumn:((h==null?void 0:h.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return _}const g=this._getFuncsDocVal(c,n,s);if(g)return g;const b=c.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(b){const h=this._matchContent(b,c,n);if(h){const T=this._getBuildInOther(h.name);if(T)return{docValue:T,isBuildIn:!0,index:0};{const P=this._getBuildInFunc(`${h.name}<type>`);if(P)return{docValue:P,isBuildIn:!0,index:0}}}}return this._getImportDocVal(c,n,s)}_getImportDocVal(n,s,o){const l=new RegExp("(?<=(import(\\s+)))([a-zA-Z\\d\\$_\\-\\.\\u00a1-\\uffff\\/]+)","g"),c=new RegExp("(?<=(as\\b)(\\s+))([a-zA-Z\\d\\_\\u00a1\\uffff\\/]+)","g"),m=n.match(l);if(m){const _=this._matchContent(m,n,s);if(_){const b=this._imports.get(_.name);if(b)return b}const g=n.match(c);if(g){const b=this._matchContent(g,n,s);if(b){for(const[h,T]of this._imports)if(T.name===b.name)return T}}}return null}_getBuildInFunc(n){return lt.functions.get(n)}_getBuildInMethod(n){return lt.methods.get(n)}_getBuildInOther(n){const{keywords:s,variables:o,constants:l,types:c}=lt;return s.get(n)||o.get(n)||l.get(n)||c.get(n)}parseCurrentInputFunc(n,s=!1,o=!1){let l=n.length-1,c=0,m=s,_=o;for(;l>=0;){const g=n.charAt(l);if(l-=1,/['"]/.test(g)){const b=g;if(g==="'"){if(m){m=!1;continue}}else if(_){_=!1;continue}for(;l>=0;){const h=n.charAt(l);if(l-=1,h===b)break}}if(!(m||_)&&(/\)/.test(g)&&(c+=1),/\(/.test(g))){if(c>0){c-=1;continue}let b="";for(;l>=0;){const h=n.charAt(l);if(l-=1,!(/\s/.test(h)&&!b)){if(/[^\w.]/.test(h))break;b=h+b}}if(b)return{funcName:b,startIndex:l+1}}}}parseCurrentInputFuncAndArg(n,s=!1,o=!1){const{funcName:l,startIndex:c}=this.parseCurrentInputFunc(n,s,o)||{};if(l&&typeof c=="number"){let m=n.slice(c+l.length).trim().slice(1),_=-1;if(s&&(_=m.lastIndexOf("'")),o){const h=m.lastIndexOf('"');(h!==-1&&h<_||_===-1)&&(_=h)}_!==-1&&(m=m.substring(0,_));const b=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(h=>{const T=h.trim().split("=");return T.length<=1?"":T[0].trim()});return{funcName:l,args:b}}}_removeString(n){return n.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(n,s,o){const l=this._removeString(n).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(l){const c=this._matchContent(l,n,s);if(c){const m={docValue:void 0,isBuildIn:!0,index:0},_=this._getBuildInOther(c.name);if(_)return m.docValue=_,m;const g=this._getUserVariablesDocVal(c.name,s,o);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1});const b=this._getUserTypesDocVal(c.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const h=this._getTypesAndFileds(n,c.name,s,o);if(h&&typeof h!="string")return Object.assign(m,{docValue:[h],isBuildIn:!1});const T=this._getUserEnumsDocVal(c,s);if(T)return Object.assign(m,{docValue:T,isBuildIn:!1})}}}_getUserVariablesDocVal(n,s,o){const m=[...this._userVariables.get(n)||[]].sort((_,g)=>(g.scope||0)-(_.scope||0)).find(_=>{const g=_.range;return((g==null?void 0:g.startColumn)||0)<=s&&((g==null?void 0:g.startLineNumber)||0)<=o&&((g==null?void 0:g.endLineNumber)||0)>=o});if(m)return m.title=be.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(n){const s=this._userTypes.get(n);if(s)return s[0].title=be.userDefinedType,s}_getUserEnumsDocVal(n,s){var g;const{endIndex:o,name:l}=n,c=l.split(".");let m=c[0];c.length>2&&(m=c.slice(0,2).join("."));const _=this._userEnums.get(m);if(_&&_.length){_[0].title=be.enum;const b=c[c.length-1],h=(g=_[0].members)==null?void 0:g.find(T=>T.name===b);if(!h||s<o-b.length)return _;if(s>o-b.length)return[h]}}_getTypesAndFileds(n,s,o,l){var c,m;if(s.includes(".")){const _=s.split(".");let g=_[0],b,h=null,T=n.indexOf(s,o-s.length)+1,P=T+g.length-1;for(const B of _.slice(1)){if(!h){const R=T<=o&&P>=o,N=this._getUserVariablesDocVal(g,o,l);if(R&&N)return N;h=N==null?void 0:N.type}if(h){b=h,T=P+2,P=P+B.length+1;const R=this._userTypes.get(h)||lt.types.get(h),N=(m=(c=R==null?void 0:R[0])==null?void 0:c.fields)==null?void 0:m.find(W=>W.name===B);if(N&&T<=o&&P>=o)return{name:`${h}.${B}`,desc:N.desc,type:this._arrayTypeTransform(N.type),title:be.field};h=N==null?void 0:N.type}else g=`${g}.${B}`,P=P+B.length+1}return b}}_getFuncsDocVal(n,s,o){const l=n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(l){const c=this._matchContent(l,n,s);if(c){const m={docValue:void 0,isBuildIn:!0,endIndex:c.endIndex,index:0},_=this._getBuildInFunc(c.name);if(_)return m.index=this._getOverloadsFuncIndex(_,s,c.name,o),Object.assign(m,{docValue:_});const g=this._getUserFuncsDocVal(c.name);if(g)return m.index=this._getOverloadsFuncIndex(g,s,c.name,o),Object.assign(m,{docValue:g,isBuildIn:!1});const b=this._getUserVarFuncsDocVal(n,c.name,s,o);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1})}}}_getOverloadsFuncIndex(n,s,o,l){if(n.length>1){const c=this._overloadsFuncs.find(m=>m.name===o&&m.line===l&&m.startColumn<=s&&m.endColumn>=s);if(c)return c.index}return 0}_getUserFuncsDocVal(n){const s=this._userFunctions.get(n);if(s){for(const o of s)o.title=be.userDefinedFunction;return s}}_getUserMethodsDocVal(n){const s=this._userMethods.get(n);if(s){for(const o of s)o.title=be.userDefinedFunction;return s}}_getUserVarFuncsDocVal(n,s,o,l){var c;if(s.includes(".")){const m=s.split("."),_=this._getTypesAndFileds(n,s,o,l);if(typeof _=="string"){const b=`${this._arrayTypeTransform(_).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,h=this._getBuildInMethod(b);if(h){const T=this._getOverloadsFuncIndex(h,o,b,l);return{...h[0],name:b,index:T}}return(c=this._getUserMethodsDocVal(b))==null?void 0:c[0]}else return _}}_arrayTypeTransform(n=""){return n.includes("[]")?`array<${n.replace("[]","")}>`:n}_matchContent(n,s,o){let l=0;for(const c of n){l=o-c.length;const m=s.indexOf(c,l);if(l=m+c.length,this._judgeVal(s,m,l)&&m+1<=o&&l>=o)return{name:c,endIndex:l}}}_judgeVal(n,s,o){const l=n.charAt(s-1),c=/[\w\d."'/]/;if(c.test(l))return!1;const m=n.charAt(o);return!c.test(m)}}const Er=new zd;var Ws={exports:{}};/**
111
+ \`\`\``}code(n){return`\`${n}\``}paragraph(...n){return[this.paragraphBreak,...n,this.paragraphBreak].join(this.lineBreak)}link(n,s){return`[${n}](${s.href})`}}const ie=new Td;function Dd(a){const{name:n,libraryName:s,desc:o}=a,c=[`${ie.bold(n||s)} (library)`];return c.push(ie.delimiter),o&&c.push(ie.paragraph(ie.bold(et.Description),ie.lineBreak,o)),c.join(c.length===2?" ":ie.lineBreak)}function kd(a,n=0,s=!0){const o=a[n];if(!o)return"";if(o.isEnumMember)return`${ie.bold(o.name)} (enum member)${o.value===void 0?"":` = ${o.value}`}`;const c=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:l,title:m,desc:_,type:f,syntax:b,returns:h,remarks:T,fields:P,members:B}=o,R=[`${ie.bold(l)} (${m})`];if(a.length>1&&R.push(ie.italic(`+${a.length-1} overloads`)),R.push(ie.delimiter),_&&R.push(ie.paragraph(Array.isArray(_)?_.join(ie.lineBreak):_||"")),f&&R.push(ie.paragraph(ie.bold(et.Type),ie.italic(f))),b&&b.length&&R.push(ie.paragraph(ie.bold(et.Syntax),ie.pineCode(b.join(ie.lineBreak)))),h&&R.push(ie.paragraph(ie.bold(et.Returns),ie.lineBreak,h.join(ie.lineBreak))),T&&T.length&&a.length<=1){let N="";typeof T=="string"?N=T:N=T.join(ie.lineBreak)||"",N.length<200&&R.push(ie.paragraph(ie.bold(et.Remarks),ie.lineBreak,N))}if(P){const N=[];for(const H of P){const V=H.desc?` - ${H.desc}`:"";N.push(`${H.name} (${H.type})${V}`)}R.push(ie.paragraph(ie.bold(et.Fields),ie.lineBreak,N.join(ie.paragraphBreak)))}if(B){const N=[];for(const H of B){const V=H.desc?` - ${H.desc}`:"";N.push(`${H.name}${H.value?` (${H.value})`:""}${V}`)}R.push(ie.paragraph(ie.bold(et.EnumMembers),ie.lineBreak,N.join(ie.paragraphBreak)))}return s&&R.push(ie.italic(`${ie.code(c?"⌘":"Ctrl")} + ${xd.clickOnKeywordForMoreHelp}`)),R.join(R.length===2?" ":ie.lineBreak)}const nn="tcc_cursor_position",Id=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function Ad(a){return a.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function qd(a){const n=a.getContribution("editor.contrib.contextmenu"),s=n==null?void 0:n._getMenuActions;n._getMenuActions=function(){return s.apply(n,arguments).filter(function(c){return!Id.includes(c.id)})}}class Cd{constructor(){Object.defineProperty(this,"bracketsPostfix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_builtinSubtreeCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_namespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_suggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_outermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFuncArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userOutermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userEnums",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nextIsBracket",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=ie,this._namespaceCache=new Map,this._suggestions=[],this._outermostNsItems=new Map,this._funcArgsCache=new Map,this._userSuggestions=[],this._userFuncArgsCache=new Map,this._userNamespaceCache=new Map,this._userOutermostNsItems=new Map,this._methodNamespaceCache=new Map,this._userMethods=new Map,this._userTypes=new Map,this._methodFuncs=new Map,this._userFunctions=new Map,this._userEnums=new Map,this._nextIsBracket=!1}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}get userEnums(){return this._userEnums}set nextIsBracket(n){this._nextIsBracket=n}get nextIsBracket(){return this._nextIsBracket}get annotationSuggestions(){return this._getAnnotationCompletionItems(this._builtinSubtreeCache.annotations)}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(n){return this._funcArgsCache.get(n)||this._userFuncArgsCache.get(n)}getSuggestions(n){return n?this._namespaceCache.get(n)||this._userNamespaceCache.get(n):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(n,s,o,c,l){this._initUserDefind();const m=this._mergeTreeSlices(this._generateTreeSlice(lt.methods,"method"),this._generateTreeSlice(c,"method"));this._getMethodNamespaceCache(m),this._userMethods=c,this._userTypes=s,this._userFunctions=n,this._userEnums=l;const _=this._generateTreeSlice(n,"fun");this._userSuggestions=this._getAllUserCompletionItems(_,this._generateTreeSlice(s,"type"),this._generateTreeSlice(o,"var"),this._generateTreeSlice(l,"enum")),this._getUserFuncArgumentsCompletionItemsToCache(_)}_getAllUserCompletionItems(n,s,o,c){const l=this._getEnumCompletionItems(c),m=this._getUserVariableCompletionItems(o),_=this._getTypeCompletionItems(s,!0),f=this._getFunctionCompletionItems(n,void 0,!0);return[..._,...f,...m,...l,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:n,keywords:s,types:o,functions:c}=this._builtinSubtreeCache,l=this._getVariableCompletionItems(n),m=this._getKeywordCompletionItems(s),_=this._getTypeCompletionItems(o),f=this._getFunctionCompletionItems(c),b=this._getSnippetsCompletionsList();return[...l,...m,..._,...f,...this._outermostNsItems.values(),...b]}_getNodeKey(n,s){return`${s}_${n}`}_mergeTreeSlices(...n){const s=new Map;for(const o of n)for(const[c,l]of o){const m=s.get(c);m?s.set(c,{...m,children:this._mergeTreeSlices(l.children,m.children)}):s.set(c,l)}return s}_mergeCompletions(n,s){const o=this._namespaceCache.get(n);o?this._namespaceCache.set(n,[...o,...s]):this._namespaceCache.set(n,s)}_mergeUserCompletions(n,s){const o=this._userNamespaceCache.get(n);o?this._userNamespaceCache.set(n,[...o,...s]):this._userNamespaceCache.set(n,s)}_generateTreeSlice(n,s){const o=new Map;for(const[c,l]of n){const[m,..._]=c.split("."),f=_.length>0,b=o.get(this._getNodeKey(m,f?"ns":s));let h=new Map,T=l.map(B=>({...B,name:c})),P=this._getNodeKey(c,s);if(f&&s!=="type"){const B=new Map([[_.join("."),l]]);T=[{name:m,title:be.namespace}],P=this._getNodeKey(m,"ns"),h=this._generateTreeSlice(B,s)}b&&(T=[{name:m,title:be.namespace}],h=this._mergeTreeSlices(b.children,h)),o.set(P,{value:T,children:h})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:s,constants:o,types:c,functions:l,annotations:m}=lt,_=this._generateTreeSlice(m,"an");return _.delete("an_@version="),this._builtinSubtreeCache={keywords:this._generateTreeSlice(n,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(s,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(c,"type"),functions:this._generateTreeSlice(l,"fun"),annotations:_},this._builtinSubtreeCache}_getVariableCompletionItems(n,s){const o=[],c=[];for(const[l,m]of n){const{value:_,children:f}=m;if(l.startsWith("ns")){const b=this._getNamespaceCompletionItem(_[0]);if(s){c.push({...b});const T=`${s}.${b.label}`;b.label=T,b.insertText=T}const h=this._getVariableCompletionItems(f,b.label);s||this._outermostNsItems.set(l,b),o.push(...h)}else{const b=this._getVariableCompletionItem(_[0],s?3:2);if(s){c.push({...b});const{label:h}=b;b.label=`${s}.${h}`,b.insertText=`${s}.${b.insertText}`,b.filterText=`${h}\r`}o.push(b)}}return c.length&&s&&this._mergeCompletions(s,c),o}_setUserVariableSubItems(n,s){var b,h,T,P;let o=[];const c=Ad(n.type||""),l=this._methodNamespaceCache.get(c),m=s?`${s}.${n.name}`:n.name;l&&(o=l.filter(B=>{var V;const R=`${c}.${B.label}`,N=lt.methods.get(R)||this._userMethods.get(R),H=N==null?void 0:N.some(G=>!G.thisType||G.thisType[0].includes("<>")||G.thisType.includes(n.type||""));if(H&&N){const G=this._getNamedArgumentsCompletionList(((V=N[0])==null?void 0:V.args)||[]),F=`${m}.${B.label}`;this._userFuncArgsCache.set(F,G),this._methodFuncs.set(F,N)}return H}));const{types:_}=lt,f=((h=(b=this._userTypes.get(c))==null?void 0:b[0])==null?void 0:h.fields)||((P=(T=_.get(c))==null?void 0:T[0])==null?void 0:P.fields);if(f)for(const B of f){const R=B.name,N=B.type,H=this._getInstanceTypeCompletionItemProp({name:R,type:N,desc:B.desc?[B.desc]:void 0});this._setUserVariableSubItems({name:R,type:N},n.name),o.push({...H})}o.length&&this._mergeUserCompletions(m,o)}_getUserVariableCompletionItems(n,s){const o=[],c=[];for(const[l,m]of n){const{value:_,children:f}=m;if(this._setUserVariableSubItems(_[0]),l.startsWith("ns")){const b=this._getNamespaceCompletionItem(_[0]);if(s){c.push({...b});const T=`${s}.${b.label}`;b.label=T,b.insertText=T}const h=this._getUserVariableCompletionItems(f,b.label);s||this._userOutermostNsItems.set(l,b),o.push(...h)}else{const b=this._getVariableCompletionItem(_[0],s?2:1,!1);if(s){c.push({...b});const{label:h}=b;b.label=`${s}.${h}`,b.insertText=`${s}.${b.insertText}`,b.filterText=`${h}\r`}o.push(b)}}return c.length&&s&&this._mergeUserCompletions(s,c),o}_getTypeCompletionItems(n,s=!1){const o=[];for(const[,c]of n){const{value:l}=c,m=s?this._getCustomTypeCompletionItem(l[0]):this._getTypeCompletionItem(l[0]);o.push(m)}return o}_getEnumCompletionItems(n){const s=[];for(const[,o]of n){const{value:c}=o,l=this._getEnumCompletionItem(c[0]);s.push(l);const m=c[0].members;m!=null&&m.length&&this._getEnumMemberCompletionItems(c[0].name,m)}return s}_getEnumMemberCompletionItems(n,s){const o=[];for(const c of s){const{name:l,desc:m,value:_}=c,f=this._getEnumMemberCompletionItem({name:l,desc:m?[m]:void 0,value:_});o.push(f)}o.length&&this._mergeUserCompletions(n,o)}_getAnnotationCompletionItems(n){const s=[];for(const[,o]of n){const{value:c}=o,l=this._getAnnotationCompletionItem(c[0]);s.push(l)}return s}_getKeywordCompletionItems(n){const s=[];for(const[,o]of n){const{value:c}=o,l=this._getKeywordCompletionItem(c[0]);s.push(l)}return s}_getMethodNamespaceCache(n,s){const o=[];for(const[c,l]of n){const{value:m,children:_}=l;if(c.startsWith("ns")){const f=this._getNamespaceCompletionItem(m[0]);if(s){o.push({...f});const b=`${s}.${f.label}`;f.label=b,f.insertText=b}this._getMethodNamespaceCache(_,f.label)}else{const f=this._getFunctionCompletionItem(m[0],s?3:2);if(m.length>1&&(f.detail=`${f.detail} (+${m.length-1} overloads)`),s){o.push({...f});const{label:b}=f;f.label=`${s}.${b}`,f.insertText=`${s}.${f.insertText}`,f.originInsertText=`${s}.${f.originInsertText}`,f.filterText=`${b}\r`}}}s&&this._methodNamespaceCache.set(s,o)}_getFunctionCompletionItems(n,s,o=!1){const c=[],l=[];for(const[m,_]of n){const{value:f,children:b}=_;if(m.startsWith("ns")){const h=this._getNamespaceCompletionItem(f[0]);if(s){l.push({...h});const P=`${s}.${h.label}`;h.label=P,h.insertText=P}const T=this._getFunctionCompletionItems(b,h.label,o);s||(o?this._userOutermostNsItems.set(m,h):this._outermostNsItems.set(m,h)),c.push(...T)}else{const h=this._getFunctionCompletionItem(f[0],s?3:2,!o);if(f.length>1&&(h.detail=`${h.detail} (+${f.length-1} overloads)`),s){l.push({...h});const{label:T}=h;h.label=`${s}.${T}`,h.insertText=`${s}.${h.insertText}`,h.originInsertText=`${s}.${h.originInsertText}`,h.filterText=`${T}\r`}c.push(h)}}return l.length&&s&&(o?this._mergeUserCompletions(s,l):this._mergeCompletions(s,l)),c}_getSnippetsCompletionsList(){return bd.map(n=>{const{label:s,kind:o,insertText:c}=n,l=s.charAt(0).toUpperCase()+s.substring(1),m={value:this._formatter.pineCode(c.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:s,detail:`(${l} ${o})`,insertText:c,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${s}`,kind:Ie.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(n,s){for(const[o,c]of n){const{name:l}=c.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(c.children,s?`${s}.${l}`:l);else{const m=new Map;c.value.reduce((b,h)=>{const T=h.args;return T&&T.length&&T.forEach(P=>{b.set(P.name,P)}),b},m);const _=this._getNamedArgumentsCompletionList([...m.values()]),f=s?`${s}.${l}`:l;this._funcArgsCache.set(f,_)}}}_getUserFuncArgumentsCompletionItemsToCache(n,s){for(const[o,c]of n){const{name:l}=c.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(c.children,s?`${s}.${l}`:l);else{const m=new Map;c.value.reduce((b,h)=>{const T=h.args;return T&&T.length&&T.forEach(P=>{b.set(P.name,P)}),b},m);const _=this._getNamedArgumentsCompletionList([...m.values()]),f=s?`${s}.${l}`:l;this._userFuncArgsCache.set(f,_)}}}_getNamedArgumentsCompletionList(n){return n.map(s=>{const{name:o,desc:c,displayType:l}=s,m=`${o} = `,_=Array.isArray(c)?c.join(this._formatter.delimiter):c||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(be.Description),this._formatter.lineBreak,_)},insertText:m,detail:`(${be.parameter}) ${be.types} ${l}`,kind:Ie.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(n,s=2,o=!0){const c=this._extractExamples(n),l=this._extractDescription(n),m=[this._createDescriptionSection(l)];c.length?m.push(this._createExampleSection(c)):n.syntax&&n.syntax.length&&m.push(this._createSyntaxSection(n.syntax));const _={value:m.join(this._formatter.lineBreak)},f=o?be.variables:be.userDefinedVariable;return{documentation:_,label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Variable,sortText:`${s}_${n.name}`,detail:`(${f}) ${n.type}`}}_getKeywordCompletionItem(n,s=2){const o=this._extractExamples(n),c=this._extractDescription(n),l=[this._createDescriptionSection(c)];return o.length?l.push(this._createExampleSection(o)):n.syntax&&n.syntax.length&&l.push(this._createSyntaxSection(n.syntax)),{documentation:{value:l.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Keyword,sortText:`${s}_${n.name}`,detail:`(${be.keywords})`}}_getTypeCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Keyword,sortText:`1_${n.name}`,detail:`(${be.types})`}}_getCustomTypeCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Keyword,sortText:`2_${n.name}`,detail:`(${be.userDefinedType})`}}_getEnumCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Enum,sortText:`2_${n.name}`,detail:`(${be.enum})`}}_getEnumMemberCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.EnumMember,sortText:`2_${n.name}`,detail:`(enum member) ${n.value?`${n.name} = ${n.value}`:`${n.name}`}`}}_getInstanceTypeCompletionItemProp(n){const s=this._extractDescription(n),o=[];return s&&o.push(this._formatter.paragraph(this._formatter.bold(et.Description),this._formatter.lineBreak,s)),{documentation:{value:o.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Ie.languages.CompletionItemKind.Field,sortText:`2_${n.name}`,detail:`(${be.field}) ${n.type}`}}_getFunctionCompletionItem(n,s=2,o=!0){var B;const c=n.returnedTypes&&n.returnedTypes[0]||n.syntax&&n.syntax[0]&&((B=n.syntax[0].split("→").pop())==null?void 0:B.trim()),l=this._extractExamples(n),m=this._extractDescription(n),_=[this._createDescriptionSection(m)];l.length?_.push(this._createExampleSection(l)):n.syntax&&n.syntax.length&&_.push(this._createSyntaxSection(n.syntax)),n.returns&&n.returns.length&&_.push(this._createReturnSection(n.returns));const f={value:_.join(this._formatter.lineBreak)},b=n.name,h=o?be.functions:be.userDefinedFunction,T=n.template,P=T?`${vd(b)}<\${1}>`:b;return{documentation:f,label:T?`${b.replace(/<.+>/,"")}<type>`:b,kind:Ie.languages.CompletionItemKind.Function,sortText:`${s}_${b}`,insertTextRules:Ie.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:P+this.bracketsPostfix,originInsertText:P,detail:`(${h}) ${be.returns} ${c}`,command:{id:"tcc.editor.function",title:"",arguments:[T?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getAnnotationCompletionItem(n){const s=this._extractDescription(n),o=this._extractExamples(n),c=[this._createDescriptionSection(s)];return o.length&&c.push(this._createExampleSection(o)),{documentation:{value:c.join(this._formatter.lineBreak)},label:n.name,insertText:n.name.replace("@",""),kind:Ie.languages.CompletionItemKind.Keyword,detail:`(${be.annotations})`}}_getNamespaceCompletionItem(n,s=2){const o=[this._createDescriptionSection(be.namespaceDesc)];return{label:n.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${be.namespace}) ${n.name}`,insertText:n.name,sortText:`${s}_${n.name}`,kind:Ie.languages.CompletionItemKind.Module}}_extractExamples(n){let s;return n.examples||n.detailedDesc&&((s=n.detailedDesc[0])===null||s===void 0?void 0:s.examples)||[]}_extractDescription(n){return Array.isArray(n.desc)?n.desc.join(this._formatter.lineBreak):n.desc||""}_createExampleSection(n){return this._formatter.paragraph(this._formatter.bold(et.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(et.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(et.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(et.Description),this._formatter.lineBreak,n)}}const zt=new Cd;class zd{constructor(){Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userVariables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userEnums",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_imports",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_overloadsFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._userFunctions=new Map,this._userVariables=new Map,this._userTypes=new Map,this._userMethods=new Map,this._imports=new Map,this._userEnums=new Map,this._overloadsFuncs=[]}get overloadsFuncs(){return this._overloadsFuncs}setUserDefined(n,s){const{functions:o,variables:c,types:l,methods:m,imports:_,enums:f}=n;o&&(this._userFunctions=o),c&&(this._userVariables=c),l&&(this._userTypes=l),m&&(this._userMethods=m),_&&(this._imports=_),f&&(this._userEnums=f),this._overloadsFuncs=s}parseLineContentFuncVar(n,s,o,c){let l=(o==null?void 0:o.getLineContent(s))||"";const m=l.indexOf("//");if(this._removeString(l).indexOf("//")!==-1&&m<=n)return;l=l+" ";const _=this._getVariablesDocVal(l,n,s);if(_){if(_.isBuildIn){const h=o==null?void 0:o.getWordAtPosition(c||new Ie.Position(s,n));if(((o==null?void 0:o.getValueInRange({startLineNumber:s,startColumn:(h==null?void 0:h.endColumn)||0,endLineNumber:s,endColumn:((h==null?void 0:h.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return _}const f=this._getFuncsDocVal(l,n,s);if(f)return f;const b=l.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(b){const h=this._matchContent(b,l,n);if(h){const T=this._getBuildInOther(h.name);if(T)return{docValue:T,isBuildIn:!0,index:0};{const P=this._getBuildInFunc(`${h.name}<type>`);if(P)return{docValue:P,isBuildIn:!0,index:0}}}}return this._getImportDocVal(l,n,s)}_getImportDocVal(n,s,o){const c=new RegExp("(?<=(import(\\s+)))([a-zA-Z\\d\\$_\\-\\.\\u00a1-\\uffff\\/]+)","g"),l=new RegExp("(?<=(as\\b)(\\s+))([a-zA-Z\\d\\_\\u00a1\\uffff\\/]+)","g"),m=n.match(c);if(m){const _=this._matchContent(m,n,s);if(_){const b=this._imports.get(_.name);if(b)return b}const f=n.match(l);if(f){const b=this._matchContent(f,n,s);if(b){for(const[h,T]of this._imports)if(T.name===b.name)return T}}}return null}_getBuildInFunc(n){return lt.functions.get(n)}_getBuildInMethod(n){return lt.methods.get(n)}_getBuildInOther(n){const{keywords:s,variables:o,constants:c,types:l}=lt;return s.get(n)||o.get(n)||c.get(n)||l.get(n)}parseCurrentInputFunc(n,s=!1,o=!1){let c=n.length-1,l=0,m=s,_=o;for(;c>=0;){const f=n.charAt(c);if(c-=1,/['"]/.test(f)){const b=f;if(f==="'"){if(m){m=!1;continue}}else if(_){_=!1;continue}for(;c>=0;){const h=n.charAt(c);if(c-=1,h===b)break}}if(!(m||_)&&(/\)/.test(f)&&(l+=1),/\(/.test(f))){if(l>0){l-=1;continue}let b="";for(;c>=0;){const h=n.charAt(c);if(!(/\s/.test(h)&&!b)){if(/[^\w.]/.test(h))break;c-=1,b=h+b}}if(b)return{funcName:b,startIndex:c+1}}}}parseCurrentInputFuncAndArg(n,s=!1,o=!1){const{funcName:c,startIndex:l}=this.parseCurrentInputFunc(n,s,o)||{};if(c&&typeof l=="number"){let m=n.slice(l+c.length).trim().slice(1),_=-1;if(s&&(_=m.lastIndexOf("'")),o){const h=m.lastIndexOf('"');(h!==-1&&h<_||_===-1)&&(_=h)}_!==-1&&(m=m.substring(0,_));const b=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(h=>{const T=h.trim().split("=");return T.length<=1?"":T[0].trim()});return{startIndex:l,funcName:c,args:b}}}_removeString(n){return n.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(n,s,o){const c=this._removeString(n).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(c){const l=this._matchContent(c,n,s);if(l){const m={docValue:void 0,isBuildIn:!0,index:0},_=this._getBuildInOther(l.name);if(_)return m.docValue=_,m;const f=this._getUserVariablesDocVal(l.name,s,o);if(f)return Object.assign(m,{docValue:[f],isBuildIn:!1});const b=this._getUserTypesDocVal(l.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const h=this._getTypesAndFileds(n,l.name,s,o);if(h&&typeof h!="string")return Object.assign(m,{docValue:[h],isBuildIn:!1});const T=this._getUserEnumsDocVal(l,s);if(T)return Object.assign(m,{docValue:T,isBuildIn:!1})}}}_getUserVariablesDocVal(n,s,o){const m=[...this._userVariables.get(n)||[]].sort((_,f)=>(f.scope||0)-(_.scope||0)).find(_=>{const f=_.range;return((f==null?void 0:f.startColumn)||0)<=s&&((f==null?void 0:f.startLineNumber)||0)<=o&&((f==null?void 0:f.endLineNumber)||0)>=o});if(m)return m.title=be.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(n){const s=this._userTypes.get(n);if(s)return s[0].title=be.userDefinedType,s}_getUserEnumsDocVal(n,s){var f;const{endIndex:o,name:c}=n,l=c.split(".");let m=l[0];l.length>2&&(m=l.slice(0,2).join("."));const _=this._userEnums.get(m);if(_&&_.length){_[0].title=be.enum;const b=l[l.length-1],h=(f=_[0].members)==null?void 0:f.find(T=>T.name===b);if(!h||s<o-b.length)return _;if(s>o-b.length)return[h]}}_getTypesAndFileds(n,s,o,c){var l,m;if(s.includes(".")){const _=s.split(".");let f=_[0],b,h=null,T=n.indexOf(s,o-s.length)+1,P=T+f.length-1;for(const B of _.slice(1)){if(!h){const R=T<=o&&P>=o,N=this._getUserVariablesDocVal(f,o,c);if(R&&N)return N;h=N==null?void 0:N.type}if(h){b=h,T=P+2,P=P+B.length+1;const R=this._userTypes.get(h)||lt.types.get(h),N=(m=(l=R==null?void 0:R[0])==null?void 0:l.fields)==null?void 0:m.find(H=>H.name===B);if(N&&T<=o&&P>=o)return{name:`${h}.${B}`,desc:N.desc,type:this._arrayTypeTransform(N.type),title:be.field};h=N==null?void 0:N.type}else f=`${f}.${B}`,P=P+B.length+1}return b}}_getFuncsDocVal(n,s,o){const c=n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(c){const l=this._matchContent(c,n,s);if(l){const m={docValue:void 0,isBuildIn:!0,endIndex:l.endIndex,index:0},_=this._getBuildInFunc(l.name);if(_)return m.index=this._getOverloadsFuncIndex(_,s,l.name,o),Object.assign(m,{docValue:_});const f=this._getUserFuncsDocVal(l.name);if(f)return m.index=this._getOverloadsFuncIndex(f,s,l.name,o),Object.assign(m,{docValue:f,isBuildIn:!1});const b=this._getUserVarFuncsDocVal(n,l.name,s,o);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1})}}}_getOverloadsFuncIndex(n,s,o,c){if(n.length>1){const l=this._overloadsFuncs.find(m=>m.name===o&&m.line===c&&m.startColumn<=s&&m.endColumn>=s);if(l)return l.index}return 0}_getUserFuncsDocVal(n){const s=this._userFunctions.get(n);if(s){for(const o of s)o.title=be.userDefinedFunction;return s}}_getUserMethodsDocVal(n){const s=this._userMethods.get(n);if(s){for(const o of s)o.title=be.userDefinedFunction;return s}}_getUserVarFuncsDocVal(n,s,o,c){var l;if(s.includes(".")){const m=s.split("."),_=this._getTypesAndFileds(n,s,o,c);if(typeof _=="string"){const b=`${this._arrayTypeTransform(_).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,h=this._getBuildInMethod(b);if(h){const T=this._getOverloadsFuncIndex(h,o,b,c);return{...h[0],name:b,index:T}}return(l=this._getUserMethodsDocVal(b))==null?void 0:l[0]}else return _}}_arrayTypeTransform(n=""){return n.includes("[]")?`array<${n.replace("[]","")}>`:n}_matchContent(n,s,o){let c=0;for(const l of n){c=o-l.length;const m=s.indexOf(l,c);if(c=m+l.length,this._judgeVal(s,m,c)&&m+1<=o&&c>=o)return{name:l,endIndex:c}}}_judgeVal(n,s,o){const c=n.charAt(s-1),l=/[\w\d."'/]/;if(l.test(c))return!1;const m=n.charAt(o);return!l.test(m)}}const gr=new zd;var Ws={exports:{}};/**
112
112
  * @license
113
113
  * Lodash <https://lodash.com/>
114
114
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
115
115
  * Released under MIT license <https://lodash.com/license>
116
116
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
117
117
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
118
- */Ws.exports,function(a,n){(function(){var s,o="4.17.21",l=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",_="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",b=500,h="__lodash_placeholder__",T=1,P=2,B=4,R=1,N=2,W=1,V=2,G=4,F=8,k=16,q=32,U=64,j=128,ae=256,ye=512,le=30,xt="...",St=800,$e=16,Be=1,Q=2,ge=3,Ne=1/0,Pe=9007199254740991,ct=17976931348623157e292,Et=NaN,te=4294967295,he=te-1,Fe=te>>>1,ht=[["ary",j],["bind",W],["bindKey",V],["curry",F],["curryRight",k],["flip",ye],["partial",q],["partialRight",U],["rearg",ae]],Ae="[object Arguments]",nr="[object Array]",ys="[object AsyncFunction]",Bt="[object Boolean]",Ht="[object Date]",Mr="[object DOMException]",Pr="[object Error]",xr="[object Function]",aa="[object GeneratorFunction]",pt="[object Map]",Ut="[object Number]",Or="[object Null]",wt="[object Object]",_s="[object Promise]",Rr="[object Proxy]",hr="[object RegExp]",dt="[object Set]",Wt="[object String]",Fr="[object Symbol]",Tn="[object Undefined]",ir="[object WeakMap]",na="[object WeakSet]",Nt="[object ArrayBuffer]",or="[object DataView]",Br="[object Float32Array]",Ur="[object Float64Array]",wr="[object Int8Array]",fs="[object Int16Array]",gs="[object Int32Array]",bs="[object Uint8Array]",xs="[object Uint8ClampedArray]",hs="[object Uint16Array]",ws="[object Uint32Array]",Dn=/\b__p \+= '';/g,vs=/\b(__p \+=) '' \+/g,ia=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gt=/&(?:amp|lt|gt|quot|#39);/g,Kr=/[&<>"']/g,Ts=RegExp(Gt.source),oa=RegExp(Kr.source),kn=/<%-([\s\S]+?)%>/g,la=/<%([\s\S]+?)%>/g,ca=/<%=([\s\S]+?)%>/g,pa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,da=/^\w*$/,In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ds=/[\\^$.*+?()[\]{}|]/g,ma=RegExp(Ds.source),ks=/^\s+/,An=/\s/,qn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cn=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,M=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,K=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,we=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,He=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,Le=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Lt=/($^)/,ua=/['\n\r\u2028\u2029\\]/g,rt="\\ud800-\\udfff",$m="\\u0300-\\u036f",jm="\\ufe20-\\ufe2f",Hm="\\u20d0-\\u20ff",Oo=$m+jm+Hm,Ro="\\u2700-\\u27bf",Fo="a-z\\xdf-\\xf6\\xf8-\\xff",Wm="\\xac\\xb1\\xd7\\xf7",Gm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xm="\\u2000-\\u206f",Vm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",Uo="\\ufe0e\\ufe0f",Ko=Wm+Gm+Xm+Vm,zn="['’]",Ym="["+rt+"]",$o="["+Ko+"]",ya="["+Oo+"]",jo="\\d+",Qm="["+Ro+"]",Ho="["+Fo+"]",Wo="[^"+rt+Ko+jo+Ro+Fo+Bo+"]",Sn="\\ud83c[\\udffb-\\udfff]",Zm="(?:"+ya+"|"+Sn+")",Go="[^"+rt+"]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",$r="["+Bo+"]",Xo="\\u200d",Vo="(?:"+Ho+"|"+Wo+")",Jm="(?:"+$r+"|"+Wo+")",Yo="(?:"+zn+"(?:d|ll|m|re|s|t|ve))?",Qo="(?:"+zn+"(?:D|LL|M|RE|S|T|VE))?",Zo=Zm+"?",Jo="["+Uo+"]?",eu="(?:"+Xo+"(?:"+[Go,En,Nn].join("|")+")"+Jo+Zo+")*",tu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ru="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",el=Jo+Zo+eu,su="(?:"+[Qm,En,Nn].join("|")+")"+el,au="(?:"+[Go+ya+"?",ya,En,Nn,Ym].join("|")+")",nu=RegExp(zn,"g"),iu=RegExp(ya,"g"),Ln=RegExp(Sn+"(?="+Sn+")|"+au+el,"g"),ou=RegExp([$r+"?"+Ho+"+"+Yo+"(?="+[$o,$r,"$"].join("|")+")",Jm+"+"+Qo+"(?="+[$o,$r+Vo,"$"].join("|")+")",$r+"?"+Vo+"+"+Yo,$r+"+"+Qo,ru,tu,jo,su].join("|"),"g"),lu=RegExp("["+Xo+rt+Oo+Uo+"]"),cu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],du=-1,qe={};qe[Br]=qe[Ur]=qe[wr]=qe[fs]=qe[gs]=qe[bs]=qe[xs]=qe[hs]=qe[ws]=!0,qe[Ae]=qe[nr]=qe[Nt]=qe[Bt]=qe[or]=qe[Ht]=qe[Pr]=qe[xr]=qe[pt]=qe[Ut]=qe[wt]=qe[hr]=qe[dt]=qe[Wt]=qe[ir]=!1;var ke={};ke[Ae]=ke[nr]=ke[Nt]=ke[or]=ke[Bt]=ke[Ht]=ke[Br]=ke[Ur]=ke[wr]=ke[fs]=ke[gs]=ke[pt]=ke[Ut]=ke[wt]=ke[hr]=ke[dt]=ke[Wt]=ke[Fr]=ke[bs]=ke[xs]=ke[hs]=ke[ws]=!0,ke[Pr]=ke[xr]=ke[ir]=!1;var mu={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},uu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yu={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},_u={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fu=parseFloat,gu=parseInt,tl=typeof ss=="object"&&ss&&ss.Object===Object&&ss,bu=typeof self=="object"&&self&&self.Object===Object&&self,We=tl||bu||Function("return this")(),Mn=n&&!n.nodeType&&n,vr=Mn&&!0&&a&&!a.nodeType&&a,rl=vr&&vr.exports===Mn,Pn=rl&&tl.process,vt=function(){try{var w=vr&&vr.require&&vr.require("util").types;return w||Pn&&Pn.binding&&Pn.binding("util")}catch{}}(),sl=vt&&vt.isArrayBuffer,al=vt&&vt.isDate,nl=vt&&vt.isMap,il=vt&&vt.isRegExp,ol=vt&&vt.isSet,ll=vt&&vt.isTypedArray;function mt(w,C,D){switch(D.length){case 0:return w.call(C);case 1:return w.call(C,D[0]);case 2:return w.call(C,D[0],D[1]);case 3:return w.call(C,D[0],D[1],D[2])}return w.apply(C,D)}function xu(w,C,D,H){for(var re=-1,xe=w==null?0:w.length;++re<xe;){var Ue=w[re];C(H,Ue,D(Ue),w)}return H}function Tt(w,C){for(var D=-1,H=w==null?0:w.length;++D<H&&C(w[D],D,w)!==!1;);return w}function hu(w,C){for(var D=w==null?0:w.length;D--&&C(w[D],D,w)!==!1;);return w}function cl(w,C){for(var D=-1,H=w==null?0:w.length;++D<H;)if(!C(w[D],D,w))return!1;return!0}function lr(w,C){for(var D=-1,H=w==null?0:w.length,re=0,xe=[];++D<H;){var Ue=w[D];C(Ue,D,w)&&(xe[re++]=Ue)}return xe}function _a(w,C){var D=w==null?0:w.length;return!!D&&jr(w,C,0)>-1}function On(w,C,D){for(var H=-1,re=w==null?0:w.length;++H<re;)if(D(C,w[H]))return!0;return!1}function Ce(w,C){for(var D=-1,H=w==null?0:w.length,re=Array(H);++D<H;)re[D]=C(w[D],D,w);return re}function cr(w,C){for(var D=-1,H=C.length,re=w.length;++D<H;)w[re+D]=C[D];return w}function Rn(w,C,D,H){var re=-1,xe=w==null?0:w.length;for(H&&xe&&(D=w[++re]);++re<xe;)D=C(D,w[re],re,w);return D}function wu(w,C,D,H){var re=w==null?0:w.length;for(H&&re&&(D=w[--re]);re--;)D=C(D,w[re],re,w);return D}function Fn(w,C){for(var D=-1,H=w==null?0:w.length;++D<H;)if(C(w[D],D,w))return!0;return!1}var vu=Bn("length");function Tu(w){return w.split("")}function Du(w){return w.match(M)||[]}function pl(w,C,D){var H;return D(w,function(re,xe,Ue){if(C(re,xe,Ue))return H=xe,!1}),H}function fa(w,C,D,H){for(var re=w.length,xe=D+(H?1:-1);H?xe--:++xe<re;)if(C(w[xe],xe,w))return xe;return-1}function jr(w,C,D){return C===C?Pu(w,C,D):fa(w,dl,D)}function ku(w,C,D,H){for(var re=D-1,xe=w.length;++re<xe;)if(H(w[re],C))return re;return-1}function dl(w){return w!==w}function ml(w,C){var D=w==null?0:w.length;return D?Kn(w,C)/D:Et}function Bn(w){return function(C){return C==null?s:C[w]}}function Un(w){return function(C){return w==null?s:w[C]}}function ul(w,C,D,H,re){return re(w,function(xe,Ue,De){D=H?(H=!1,xe):C(D,xe,Ue,De)}),D}function Iu(w,C){var D=w.length;for(w.sort(C);D--;)w[D]=w[D].value;return w}function Kn(w,C){for(var D,H=-1,re=w.length;++H<re;){var xe=C(w[H]);xe!==s&&(D=D===s?xe:D+xe)}return D}function $n(w,C){for(var D=-1,H=Array(w);++D<w;)H[D]=C(D);return H}function Au(w,C){return Ce(C,function(D){return[D,w[D]]})}function yl(w){return w&&w.slice(0,bl(w)+1).replace(ks,"")}function ut(w){return function(C){return w(C)}}function jn(w,C){return Ce(C,function(D){return w[D]})}function Is(w,C){return w.has(C)}function _l(w,C){for(var D=-1,H=w.length;++D<H&&jr(C,w[D],0)>-1;);return D}function fl(w,C){for(var D=w.length;D--&&jr(C,w[D],0)>-1;);return D}function qu(w,C){for(var D=w.length,H=0;D--;)w[D]===C&&++H;return H}var Cu=Un(mu),zu=Un(uu);function Su(w){return"\\"+_u[w]}function Eu(w,C){return w==null?s:w[C]}function Hr(w){return lu.test(w)}function Nu(w){return cu.test(w)}function Lu(w){for(var C,D=[];!(C=w.next()).done;)D.push(C.value);return D}function Hn(w){var C=-1,D=Array(w.size);return w.forEach(function(H,re){D[++C]=[re,H]}),D}function gl(w,C){return function(D){return w(C(D))}}function pr(w,C){for(var D=-1,H=w.length,re=0,xe=[];++D<H;){var Ue=w[D];(Ue===C||Ue===h)&&(w[D]=h,xe[re++]=D)}return xe}function ga(w){var C=-1,D=Array(w.size);return w.forEach(function(H){D[++C]=H}),D}function Mu(w){var C=-1,D=Array(w.size);return w.forEach(function(H){D[++C]=[H,H]}),D}function Pu(w,C,D){for(var H=D-1,re=w.length;++H<re;)if(w[H]===C)return H;return-1}function Ou(w,C,D){for(var H=D+1;H--;)if(w[H]===C)return H;return H}function Wr(w){return Hr(w)?Fu(w):vu(w)}function Mt(w){return Hr(w)?Bu(w):Tu(w)}function bl(w){for(var C=w.length;C--&&An.test(w.charAt(C)););return C}var Ru=Un(yu);function Fu(w){for(var C=Ln.lastIndex=0;Ln.test(w);)++C;return C}function Bu(w){return w.match(Ln)||[]}function Uu(w){return w.match(ou)||[]}var Ku=function w(C){C=C==null?We:Gr.defaults(We.Object(),C,Gr.pick(We,pu));var D=C.Array,H=C.Date,re=C.Error,xe=C.Function,Ue=C.Math,De=C.Object,Wn=C.RegExp,$u=C.String,Dt=C.TypeError,ba=D.prototype,ju=xe.prototype,Xr=De.prototype,xa=C["__core-js_shared__"],ha=ju.toString,Te=Xr.hasOwnProperty,Hu=0,xl=function(){var e=/[^.]+$/.exec(xa&&xa.keys&&xa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),wa=Xr.toString,Wu=ha.call(De),Gu=We._,Xu=Wn("^"+ha.call(Te).replace(Ds,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),va=rl?C.Buffer:s,dr=C.Symbol,Ta=C.Uint8Array,hl=va?va.allocUnsafe:s,Da=gl(De.getPrototypeOf,De),wl=De.create,vl=Xr.propertyIsEnumerable,ka=ba.splice,Tl=dr?dr.isConcatSpreadable:s,As=dr?dr.iterator:s,Tr=dr?dr.toStringTag:s,Ia=function(){try{var e=qr(De,"defineProperty");return e({},"",{}),e}catch{}}(),Vu=C.clearTimeout!==We.clearTimeout&&C.clearTimeout,Yu=H&&H.now!==We.Date.now&&H.now,Qu=C.setTimeout!==We.setTimeout&&C.setTimeout,Aa=Ue.ceil,qa=Ue.floor,Gn=De.getOwnPropertySymbols,Zu=va?va.isBuffer:s,Dl=C.isFinite,Ju=ba.join,ey=gl(De.keys,De),Ke=Ue.max,Ve=Ue.min,ty=H.now,ry=C.parseInt,kl=Ue.random,sy=ba.reverse,Xn=qr(C,"DataView"),qs=qr(C,"Map"),Vn=qr(C,"Promise"),Vr=qr(C,"Set"),Cs=qr(C,"WeakMap"),zs=qr(De,"create"),Ca=Cs&&new Cs,Yr={},ay=Cr(Xn),ny=Cr(qs),iy=Cr(Vn),oy=Cr(Vr),ly=Cr(Cs),za=dr?dr.prototype:s,Ss=za?za.valueOf:s,Il=za?za.toString:s;function d(e){if(Me(e)&&!se(e)&&!(e instanceof ue)){if(e instanceof kt)return e;if(Te.call(e,"__wrapped__"))return Ac(e)}return new kt(e)}var Qr=function(){function e(){}return function(t){if(!Se(t))return{};if(wl)return wl(t);e.prototype=t;var r=new e;return e.prototype=s,r}}();function Sa(){}function kt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=s}d.templateSettings={escape:kn,evaluate:la,interpolate:ca,variable:"",imports:{_:d}},d.prototype=Sa.prototype,d.prototype.constructor=d,kt.prototype=Qr(Sa.prototype),kt.prototype.constructor=kt;function ue(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function cy(){var e=new ue(this.__wrapped__);return e.__actions__=st(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=st(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=st(this.__views__),e}function py(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function dy(){var e=this.__wrapped__.value(),t=this.__dir__,r=se(e),i=t<0,p=r?e.length:0,u=T_(0,p,this.__views__),y=u.start,x=u.end,v=x-y,z=i?x:y-1,S=this.__iteratees__,E=S.length,$=0,X=Ve(v,this.__takeCount__);if(!r||!i&&p==v&&X==v)return Yl(e,this.__actions__);var Z=[];e:for(;v--&&$<X;){z+=t;for(var oe=-1,J=e[z];++oe<E;){var de=S[oe],_e=de.iteratee,ft=de.type,Je=_e(J);if(ft==Q)J=Je;else if(!Je){if(ft==Be)continue e;break e}}Z[$++]=J}return Z}ue.prototype=Qr(Sa.prototype),ue.prototype.constructor=ue;function Dr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function my(){this.__data__=zs?zs(null):{},this.size=0}function uy(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function yy(e){var t=this.__data__;if(zs){var r=t[e];return r===g?s:r}return Te.call(t,e)?t[e]:s}function _y(e){var t=this.__data__;return zs?t[e]!==s:Te.call(t,e)}function fy(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=zs&&t===s?g:t,this}Dr.prototype.clear=my,Dr.prototype.delete=uy,Dr.prototype.get=yy,Dr.prototype.has=_y,Dr.prototype.set=fy;function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function gy(){this.__data__=[],this.size=0}function by(e){var t=this.__data__,r=Ea(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():ka.call(t,r,1),--this.size,!0}function xy(e){var t=this.__data__,r=Ea(t,e);return r<0?s:t[r][1]}function hy(e){return Ea(this.__data__,e)>-1}function wy(e,t){var r=this.__data__,i=Ea(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}Xt.prototype.clear=gy,Xt.prototype.delete=by,Xt.prototype.get=xy,Xt.prototype.has=hy,Xt.prototype.set=wy;function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function vy(){this.size=0,this.__data__={hash:new Dr,map:new(qs||Xt),string:new Dr}}function Ty(e){var t=ja(this,e).delete(e);return this.size-=t?1:0,t}function Dy(e){return ja(this,e).get(e)}function ky(e){return ja(this,e).has(e)}function Iy(e,t){var r=ja(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Vt.prototype.clear=vy,Vt.prototype.delete=Ty,Vt.prototype.get=Dy,Vt.prototype.has=ky,Vt.prototype.set=Iy;function kr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Vt;++t<r;)this.add(e[t])}function Ay(e){return this.__data__.set(e,g),this}function qy(e){return this.__data__.has(e)}kr.prototype.add=kr.prototype.push=Ay,kr.prototype.has=qy;function Pt(e){var t=this.__data__=new Xt(e);this.size=t.size}function Cy(){this.__data__=new Xt,this.size=0}function zy(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Sy(e){return this.__data__.get(e)}function Ey(e){return this.__data__.has(e)}function Ny(e,t){var r=this.__data__;if(r instanceof Xt){var i=r.__data__;if(!qs||i.length<l-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Vt(i)}return r.set(e,t),this.size=r.size,this}Pt.prototype.clear=Cy,Pt.prototype.delete=zy,Pt.prototype.get=Sy,Pt.prototype.has=Ey,Pt.prototype.set=Ny;function Al(e,t){var r=se(e),i=!r&&zr(e),p=!r&&!i&&fr(e),u=!r&&!i&&!p&&ts(e),y=r||i||p||u,x=y?$n(e.length,$u):[],v=x.length;for(var z in e)(t||Te.call(e,z))&&!(y&&(z=="length"||p&&(z=="offset"||z=="parent")||u&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Jt(z,v)))&&x.push(z);return x}function ql(e){var t=e.length;return t?e[ii(0,t-1)]:s}function Ly(e,t){return Ha(st(e),Ir(t,0,e.length))}function My(e){return Ha(st(e))}function Yn(e,t,r){(r!==s&&!Ot(e[t],r)||r===s&&!(t in e))&&Yt(e,t,r)}function Es(e,t,r){var i=e[t];(!(Te.call(e,t)&&Ot(i,r))||r===s&&!(t in e))&&Yt(e,t,r)}function Ea(e,t){for(var r=e.length;r--;)if(Ot(e[r][0],t))return r;return-1}function Py(e,t,r,i){return mr(e,function(p,u,y){t(i,p,r(p),y)}),i}function Cl(e,t){return e&&$t(t,je(t),e)}function Oy(e,t){return e&&$t(t,nt(t),e)}function Yt(e,t,r){t=="__proto__"&&Ia?Ia(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Qn(e,t){for(var r=-1,i=t.length,p=D(i),u=e==null;++r<i;)p[r]=u?s:Si(e,t[r]);return p}function Ir(e,t,r){return e===e&&(r!==s&&(e=e<=r?e:r),t!==s&&(e=e>=t?e:t)),e}function It(e,t,r,i,p,u){var y,x=t&T,v=t&P,z=t&B;if(r&&(y=p?r(e,i,p,u):r(e)),y!==s)return y;if(!Se(e))return e;var S=se(e);if(S){if(y=k_(e),!x)return st(e,y)}else{var E=Ye(e),$=E==xr||E==aa;if(fr(e))return Jl(e,x);if(E==wt||E==Ae||$&&!p){if(y=v||$?{}:bc(e),!x)return v?y_(e,Oy(y,e)):u_(e,Cl(y,e))}else{if(!ke[E])return p?e:{};y=I_(e,E,x)}}u||(u=new Pt);var X=u.get(e);if(X)return X;u.set(e,y),Gc(e)?e.forEach(function(J){y.add(It(J,t,r,J,e,u))}):Hc(e)&&e.forEach(function(J,de){y.set(de,It(J,t,r,de,e,u))});var Z=z?v?gi:fi:v?nt:je,oe=S?s:Z(e);return Tt(oe||e,function(J,de){oe&&(de=J,J=e[de]),Es(y,de,It(J,t,r,de,e,u))}),y}function Ry(e){var t=je(e);return function(r){return zl(r,e,t)}}function zl(e,t,r){var i=r.length;if(e==null)return!i;for(e=De(e);i--;){var p=r[i],u=t[p],y=e[p];if(y===s&&!(p in e)||!u(y))return!1}return!0}function Sl(e,t,r){if(typeof e!="function")throw new Dt(m);return Fs(function(){e.apply(s,r)},t)}function Ns(e,t,r,i){var p=-1,u=_a,y=!0,x=e.length,v=[],z=t.length;if(!x)return v;r&&(t=Ce(t,ut(r))),i?(u=On,y=!1):t.length>=l&&(u=Is,y=!1,t=new kr(t));e:for(;++p<x;){var S=e[p],E=r==null?S:r(S);if(S=i||S!==0?S:0,y&&E===E){for(var $=z;$--;)if(t[$]===E)continue e;v.push(S)}else u(t,E,i)||v.push(S)}return v}var mr=ac(Kt),El=ac(Jn,!0);function Fy(e,t){var r=!0;return mr(e,function(i,p,u){return r=!!t(i,p,u),r}),r}function Na(e,t,r){for(var i=-1,p=e.length;++i<p;){var u=e[i],y=t(u);if(y!=null&&(x===s?y===y&&!_t(y):r(y,x)))var x=y,v=u}return v}function By(e,t,r,i){var p=e.length;for(r=ne(r),r<0&&(r=-r>p?0:p+r),i=i===s||i>p?p:ne(i),i<0&&(i+=p),i=r>i?0:Vc(i);r<i;)e[r++]=t;return e}function Nl(e,t){var r=[];return mr(e,function(i,p,u){t(i,p,u)&&r.push(i)}),r}function Ge(e,t,r,i,p){var u=-1,y=e.length;for(r||(r=q_),p||(p=[]);++u<y;){var x=e[u];t>0&&r(x)?t>1?Ge(x,t-1,r,i,p):cr(p,x):i||(p[p.length]=x)}return p}var Zn=nc(),Ll=nc(!0);function Kt(e,t){return e&&Zn(e,t,je)}function Jn(e,t){return e&&Ll(e,t,je)}function La(e,t){return lr(t,function(r){return er(e[r])})}function Ar(e,t){t=yr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[jt(t[r++])];return r&&r==i?e:s}function Ml(e,t,r){var i=t(e);return se(e)?i:cr(i,r(e))}function Qe(e){return e==null?e===s?Tn:Or:Tr&&Tr in De(e)?v_(e):M_(e)}function ei(e,t){return e>t}function Uy(e,t){return e!=null&&Te.call(e,t)}function Ky(e,t){return e!=null&&t in De(e)}function $y(e,t,r){return e>=Ve(t,r)&&e<Ke(t,r)}function ti(e,t,r){for(var i=r?On:_a,p=e[0].length,u=e.length,y=u,x=D(u),v=1/0,z=[];y--;){var S=e[y];y&&t&&(S=Ce(S,ut(t))),v=Ve(S.length,v),x[y]=!r&&(t||p>=120&&S.length>=120)?new kr(y&&S):s}S=e[0];var E=-1,$=x[0];e:for(;++E<p&&z.length<v;){var X=S[E],Z=t?t(X):X;if(X=r||X!==0?X:0,!($?Is($,Z):i(z,Z,r))){for(y=u;--y;){var oe=x[y];if(!(oe?Is(oe,Z):i(e[y],Z,r)))continue e}$&&$.push(Z),z.push(X)}}return z}function jy(e,t,r,i){return Kt(e,function(p,u,y){t(i,r(p),u,y)}),i}function Ls(e,t,r){t=yr(t,e),e=vc(e,t);var i=e==null?e:e[jt(qt(t))];return i==null?s:mt(i,e,r)}function Pl(e){return Me(e)&&Qe(e)==Ae}function Hy(e){return Me(e)&&Qe(e)==Nt}function Wy(e){return Me(e)&&Qe(e)==Ht}function Ms(e,t,r,i,p){return e===t?!0:e==null||t==null||!Me(e)&&!Me(t)?e!==e&&t!==t:Gy(e,t,r,i,Ms,p)}function Gy(e,t,r,i,p,u){var y=se(e),x=se(t),v=y?nr:Ye(e),z=x?nr:Ye(t);v=v==Ae?wt:v,z=z==Ae?wt:z;var S=v==wt,E=z==wt,$=v==z;if($&&fr(e)){if(!fr(t))return!1;y=!0,S=!1}if($&&!S)return u||(u=new Pt),y||ts(e)?_c(e,t,r,i,p,u):h_(e,t,v,r,i,p,u);if(!(r&R)){var X=S&&Te.call(e,"__wrapped__"),Z=E&&Te.call(t,"__wrapped__");if(X||Z){var oe=X?e.value():e,J=Z?t.value():t;return u||(u=new Pt),p(oe,J,r,i,u)}}return $?(u||(u=new Pt),w_(e,t,r,i,p,u)):!1}function Xy(e){return Me(e)&&Ye(e)==pt}function ri(e,t,r,i){var p=r.length,u=p,y=!i;if(e==null)return!u;for(e=De(e);p--;){var x=r[p];if(y&&x[2]?x[1]!==e[x[0]]:!(x[0]in e))return!1}for(;++p<u;){x=r[p];var v=x[0],z=e[v],S=x[1];if(y&&x[2]){if(z===s&&!(v in e))return!1}else{var E=new Pt;if(i)var $=i(z,S,v,e,t,E);if(!($===s?Ms(S,z,R|N,i,E):$))return!1}}return!0}function Ol(e){if(!Se(e)||z_(e))return!1;var t=er(e)?Xu:He;return t.test(Cr(e))}function Vy(e){return Me(e)&&Qe(e)==hr}function Yy(e){return Me(e)&&Ye(e)==dt}function Qy(e){return Me(e)&&Qa(e.length)&&!!qe[Qe(e)]}function Rl(e){return typeof e=="function"?e:e==null?it:typeof e=="object"?se(e)?Ul(e[0],e[1]):Bl(e):ip(e)}function si(e){if(!Rs(e))return ey(e);var t=[];for(var r in De(e))Te.call(e,r)&&r!="constructor"&&t.push(r);return t}function Zy(e){if(!Se(e))return L_(e);var t=Rs(e),r=[];for(var i in e)i=="constructor"&&(t||!Te.call(e,i))||r.push(i);return r}function ai(e,t){return e<t}function Fl(e,t){var r=-1,i=at(e)?D(e.length):[];return mr(e,function(p,u,y){i[++r]=t(p,u,y)}),i}function Bl(e){var t=xi(e);return t.length==1&&t[0][2]?hc(t[0][0],t[0][1]):function(r){return r===e||ri(r,e,t)}}function Ul(e,t){return wi(e)&&xc(t)?hc(jt(e),t):function(r){var i=Si(r,e);return i===s&&i===t?Ei(r,e):Ms(t,i,R|N)}}function Ma(e,t,r,i,p){e!==t&&Zn(t,function(u,y){if(p||(p=new Pt),Se(u))Jy(e,t,y,r,Ma,i,p);else{var x=i?i(Ti(e,y),u,y+"",e,t,p):s;x===s&&(x=u),Yn(e,y,x)}},nt)}function Jy(e,t,r,i,p,u,y){var x=Ti(e,r),v=Ti(t,r),z=y.get(v);if(z){Yn(e,r,z);return}var S=u?u(x,v,r+"",e,t,y):s,E=S===s;if(E){var $=se(v),X=!$&&fr(v),Z=!$&&!X&&ts(v);S=v,$||X||Z?se(x)?S=x:Oe(x)?S=st(x):X?(E=!1,S=Jl(v,!0)):Z?(E=!1,S=ec(v,!0)):S=[]:Bs(v)||zr(v)?(S=x,zr(x)?S=Yc(x):(!Se(x)||er(x))&&(S=bc(v))):E=!1}E&&(y.set(v,S),p(S,v,i,u,y),y.delete(v)),Yn(e,r,S)}function Kl(e,t){var r=e.length;if(r)return t+=t<0?r:0,Jt(t,r)?e[t]:s}function $l(e,t,r){t.length?t=Ce(t,function(u){return se(u)?function(y){return Ar(y,u.length===1?u[0]:u)}:u}):t=[it];var i=-1;t=Ce(t,ut(Y()));var p=Fl(e,function(u,y,x){var v=Ce(t,function(z){return z(u)});return{criteria:v,index:++i,value:u}});return Iu(p,function(u,y){return m_(u,y,r)})}function e_(e,t){return jl(e,t,function(r,i){return Ei(e,i)})}function jl(e,t,r){for(var i=-1,p=t.length,u={};++i<p;){var y=t[i],x=Ar(e,y);r(x,y)&&Ps(u,yr(y,e),x)}return u}function t_(e){return function(t){return Ar(t,e)}}function ni(e,t,r,i){var p=i?ku:jr,u=-1,y=t.length,x=e;for(e===t&&(t=st(t)),r&&(x=Ce(e,ut(r)));++u<y;)for(var v=0,z=t[u],S=r?r(z):z;(v=p(x,S,v,i))>-1;)x!==e&&ka.call(x,v,1),ka.call(e,v,1);return e}function Hl(e,t){for(var r=e?t.length:0,i=r-1;r--;){var p=t[r];if(r==i||p!==u){var u=p;Jt(p)?ka.call(e,p,1):ci(e,p)}}return e}function ii(e,t){return e+qa(kl()*(t-e+1))}function r_(e,t,r,i){for(var p=-1,u=Ke(Aa((t-e)/(r||1)),0),y=D(u);u--;)y[i?u:++p]=e,e+=r;return y}function oi(e,t){var r="";if(!e||t<1||t>Pe)return r;do t%2&&(r+=e),t=qa(t/2),t&&(e+=e);while(t);return r}function ce(e,t){return Di(wc(e,t,it),e+"")}function s_(e){return ql(rs(e))}function a_(e,t){var r=rs(e);return Ha(r,Ir(t,0,r.length))}function Ps(e,t,r,i){if(!Se(e))return e;t=yr(t,e);for(var p=-1,u=t.length,y=u-1,x=e;x!=null&&++p<u;){var v=jt(t[p]),z=r;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(p!=y){var S=x[v];z=i?i(S,v,x):s,z===s&&(z=Se(S)?S:Jt(t[p+1])?[]:{})}Es(x,v,z),x=x[v]}return e}var Wl=Ca?function(e,t){return Ca.set(e,t),e}:it,n_=Ia?function(e,t){return Ia(e,"toString",{configurable:!0,enumerable:!1,value:Li(t),writable:!0})}:it;function i_(e){return Ha(rs(e))}function At(e,t,r){var i=-1,p=e.length;t<0&&(t=-t>p?0:p+t),r=r>p?p:r,r<0&&(r+=p),p=t>r?0:r-t>>>0,t>>>=0;for(var u=D(p);++i<p;)u[i]=e[i+t];return u}function o_(e,t){var r;return mr(e,function(i,p,u){return r=t(i,p,u),!r}),!!r}function Pa(e,t,r){var i=0,p=e==null?i:e.length;if(typeof t=="number"&&t===t&&p<=Fe){for(;i<p;){var u=i+p>>>1,y=e[u];y!==null&&!_t(y)&&(r?y<=t:y<t)?i=u+1:p=u}return p}return li(e,t,it,r)}function li(e,t,r,i){var p=0,u=e==null?0:e.length;if(u===0)return 0;t=r(t);for(var y=t!==t,x=t===null,v=_t(t),z=t===s;p<u;){var S=qa((p+u)/2),E=r(e[S]),$=E!==s,X=E===null,Z=E===E,oe=_t(E);if(y)var J=i||Z;else z?J=Z&&(i||$):x?J=Z&&$&&(i||!X):v?J=Z&&$&&!X&&(i||!oe):X||oe?J=!1:J=i?E<=t:E<t;J?p=S+1:u=S}return Ve(u,he)}function Gl(e,t){for(var r=-1,i=e.length,p=0,u=[];++r<i;){var y=e[r],x=t?t(y):y;if(!r||!Ot(x,v)){var v=x;u[p++]=y===0?0:y}}return u}function Xl(e){return typeof e=="number"?e:_t(e)?Et:+e}function yt(e){if(typeof e=="string")return e;if(se(e))return Ce(e,yt)+"";if(_t(e))return Il?Il.call(e):"";var t=e+"";return t=="0"&&1/e==-Ne?"-0":t}function ur(e,t,r){var i=-1,p=_a,u=e.length,y=!0,x=[],v=x;if(r)y=!1,p=On;else if(u>=l){var z=t?null:b_(e);if(z)return ga(z);y=!1,p=Is,v=new kr}else v=t?[]:x;e:for(;++i<u;){var S=e[i],E=t?t(S):S;if(S=r||S!==0?S:0,y&&E===E){for(var $=v.length;$--;)if(v[$]===E)continue e;t&&v.push(E),x.push(S)}else p(v,E,r)||(v!==x&&v.push(E),x.push(S))}return x}function ci(e,t){return t=yr(t,e),e=vc(e,t),e==null||delete e[jt(qt(t))]}function Vl(e,t,r,i){return Ps(e,t,r(Ar(e,t)),i)}function Oa(e,t,r,i){for(var p=e.length,u=i?p:-1;(i?u--:++u<p)&&t(e[u],u,e););return r?At(e,i?0:u,i?u+1:p):At(e,i?u+1:0,i?p:u)}function Yl(e,t){var r=e;return r instanceof ue&&(r=r.value()),Rn(t,function(i,p){return p.func.apply(p.thisArg,cr([i],p.args))},r)}function pi(e,t,r){var i=e.length;if(i<2)return i?ur(e[0]):[];for(var p=-1,u=D(i);++p<i;)for(var y=e[p],x=-1;++x<i;)x!=p&&(u[p]=Ns(u[p]||y,e[x],t,r));return ur(Ge(u,1),t,r)}function Ql(e,t,r){for(var i=-1,p=e.length,u=t.length,y={};++i<p;){var x=i<u?t[i]:s;r(y,e[i],x)}return y}function di(e){return Oe(e)?e:[]}function mi(e){return typeof e=="function"?e:it}function yr(e,t){return se(e)?e:wi(e,t)?[e]:Ic(ve(e))}var l_=ce;function _r(e,t,r){var i=e.length;return r=r===s?i:r,!t&&r>=i?e:At(e,t,r)}var Zl=Vu||function(e){return We.clearTimeout(e)};function Jl(e,t){if(t)return e.slice();var r=e.length,i=hl?hl(r):new e.constructor(r);return e.copy(i),i}function ui(e){var t=new e.constructor(e.byteLength);return new Ta(t).set(new Ta(e)),t}function c_(e,t){var r=t?ui(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function p_(e){var t=new e.constructor(e.source,we.exec(e));return t.lastIndex=e.lastIndex,t}function d_(e){return Ss?De(Ss.call(e)):{}}function ec(e,t){var r=t?ui(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function tc(e,t){if(e!==t){var r=e!==s,i=e===null,p=e===e,u=_t(e),y=t!==s,x=t===null,v=t===t,z=_t(t);if(!x&&!z&&!u&&e>t||u&&y&&v&&!x&&!z||i&&y&&v||!r&&v||!p)return 1;if(!i&&!u&&!z&&e<t||z&&r&&p&&!i&&!u||x&&r&&p||!y&&p||!v)return-1}return 0}function m_(e,t,r){for(var i=-1,p=e.criteria,u=t.criteria,y=p.length,x=r.length;++i<y;){var v=tc(p[i],u[i]);if(v){if(i>=x)return v;var z=r[i];return v*(z=="desc"?-1:1)}}return e.index-t.index}function rc(e,t,r,i){for(var p=-1,u=e.length,y=r.length,x=-1,v=t.length,z=Ke(u-y,0),S=D(v+z),E=!i;++x<v;)S[x]=t[x];for(;++p<y;)(E||p<u)&&(S[r[p]]=e[p]);for(;z--;)S[x++]=e[p++];return S}function sc(e,t,r,i){for(var p=-1,u=e.length,y=-1,x=r.length,v=-1,z=t.length,S=Ke(u-x,0),E=D(S+z),$=!i;++p<S;)E[p]=e[p];for(var X=p;++v<z;)E[X+v]=t[v];for(;++y<x;)($||p<u)&&(E[X+r[y]]=e[p++]);return E}function st(e,t){var r=-1,i=e.length;for(t||(t=D(i));++r<i;)t[r]=e[r];return t}function $t(e,t,r,i){var p=!r;r||(r={});for(var u=-1,y=t.length;++u<y;){var x=t[u],v=i?i(r[x],e[x],x,r,e):s;v===s&&(v=e[x]),p?Yt(r,x,v):Es(r,x,v)}return r}function u_(e,t){return $t(e,hi(e),t)}function y_(e,t){return $t(e,fc(e),t)}function Ra(e,t){return function(r,i){var p=se(r)?xu:Py,u=t?t():{};return p(r,e,Y(i,2),u)}}function Zr(e){return ce(function(t,r){var i=-1,p=r.length,u=p>1?r[p-1]:s,y=p>2?r[2]:s;for(u=e.length>3&&typeof u=="function"?(p--,u):s,y&&Ze(r[0],r[1],y)&&(u=p<3?s:u,p=1),t=De(t);++i<p;){var x=r[i];x&&e(t,x,i,u)}return t})}function ac(e,t){return function(r,i){if(r==null)return r;if(!at(r))return e(r,i);for(var p=r.length,u=t?p:-1,y=De(r);(t?u--:++u<p)&&i(y[u],u,y)!==!1;);return r}}function nc(e){return function(t,r,i){for(var p=-1,u=De(t),y=i(t),x=y.length;x--;){var v=y[e?x:++p];if(r(u[v],v,u)===!1)break}return t}}function __(e,t,r){var i=t&W,p=Os(e);function u(){var y=this&&this!==We&&this instanceof u?p:e;return y.apply(i?r:this,arguments)}return u}function ic(e){return function(t){t=ve(t);var r=Hr(t)?Mt(t):s,i=r?r[0]:t.charAt(0),p=r?_r(r,1).join(""):t.slice(1);return i[e]()+p}}function Jr(e){return function(t){return Rn(ap(sp(t).replace(nu,"")),e,"")}}function Os(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Qr(e.prototype),i=e.apply(r,t);return Se(i)?i:r}}function f_(e,t,r){var i=Os(e);function p(){for(var u=arguments.length,y=D(u),x=u,v=es(p);x--;)y[x]=arguments[x];var z=u<3&&y[0]!==v&&y[u-1]!==v?[]:pr(y,v);if(u-=z.length,u<r)return dc(e,t,Fa,p.placeholder,s,y,z,s,s,r-u);var S=this&&this!==We&&this instanceof p?i:e;return mt(S,this,y)}return p}function oc(e){return function(t,r,i){var p=De(t);if(!at(t)){var u=Y(r,3);t=je(t),r=function(x){return u(p[x],x,p)}}var y=e(t,r,i);return y>-1?p[u?t[y]:y]:s}}function lc(e){return Zt(function(t){var r=t.length,i=r,p=kt.prototype.thru;for(e&&t.reverse();i--;){var u=t[i];if(typeof u!="function")throw new Dt(m);if(p&&!y&&$a(u)=="wrapper")var y=new kt([],!0)}for(i=y?i:r;++i<r;){u=t[i];var x=$a(u),v=x=="wrapper"?bi(u):s;v&&vi(v[0])&&v[1]==(j|F|q|ae)&&!v[4].length&&v[9]==1?y=y[$a(v[0])].apply(y,v[3]):y=u.length==1&&vi(u)?y[x]():y.thru(u)}return function(){var z=arguments,S=z[0];if(y&&z.length==1&&se(S))return y.plant(S).value();for(var E=0,$=r?t[E].apply(this,z):S;++E<r;)$=t[E].call(this,$);return $}})}function Fa(e,t,r,i,p,u,y,x,v,z){var S=t&j,E=t&W,$=t&V,X=t&(F|k),Z=t&ye,oe=$?s:Os(e);function J(){for(var de=arguments.length,_e=D(de),ft=de;ft--;)_e[ft]=arguments[ft];if(X)var Je=es(J),gt=qu(_e,Je);if(i&&(_e=rc(_e,i,p,X)),u&&(_e=sc(_e,u,y,X)),de-=gt,X&&de<z){var Re=pr(_e,Je);return dc(e,t,Fa,J.placeholder,r,_e,Re,x,v,z-de)}var Rt=E?r:this,rr=$?Rt[e]:e;return de=_e.length,x?_e=P_(_e,x):Z&&de>1&&_e.reverse(),S&&v<de&&(_e.length=v),this&&this!==We&&this instanceof J&&(rr=oe||Os(rr)),rr.apply(Rt,_e)}return J}function cc(e,t){return function(r,i){return jy(r,e,t(i),{})}}function Ba(e,t){return function(r,i){var p;if(r===s&&i===s)return t;if(r!==s&&(p=r),i!==s){if(p===s)return i;typeof r=="string"||typeof i=="string"?(r=yt(r),i=yt(i)):(r=Xl(r),i=Xl(i)),p=e(r,i)}return p}}function yi(e){return Zt(function(t){return t=Ce(t,ut(Y())),ce(function(r){var i=this;return e(t,function(p){return mt(p,i,r)})})})}function Ua(e,t){t=t===s?" ":yt(t);var r=t.length;if(r<2)return r?oi(t,e):t;var i=oi(t,Aa(e/Wr(t)));return Hr(t)?_r(Mt(i),0,e).join(""):i.slice(0,e)}function g_(e,t,r,i){var p=t&W,u=Os(e);function y(){for(var x=-1,v=arguments.length,z=-1,S=i.length,E=D(S+v),$=this&&this!==We&&this instanceof y?u:e;++z<S;)E[z]=i[z];for(;v--;)E[z++]=arguments[++x];return mt($,p?r:this,E)}return y}function pc(e){return function(t,r,i){return i&&typeof i!="number"&&Ze(t,r,i)&&(r=i=s),t=tr(t),r===s?(r=t,t=0):r=tr(r),i=i===s?t<r?1:-1:tr(i),r_(t,r,i,e)}}function Ka(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Ct(t),r=Ct(r)),e(t,r)}}function dc(e,t,r,i,p,u,y,x,v,z){var S=t&F,E=S?y:s,$=S?s:y,X=S?u:s,Z=S?s:u;t|=S?q:U,t&=~(S?U:q),t&G||(t&=~(W|V));var oe=[e,t,p,X,E,Z,$,x,v,z],J=r.apply(s,oe);return vi(e)&&Tc(J,oe),J.placeholder=i,Dc(J,e,t)}function _i(e){var t=Ue[e];return function(r,i){if(r=Ct(r),i=i==null?0:Ve(ne(i),292),i&&Dl(r)){var p=(ve(r)+"e").split("e"),u=t(p[0]+"e"+(+p[1]+i));return p=(ve(u)+"e").split("e"),+(p[0]+"e"+(+p[1]-i))}return t(r)}}var b_=Vr&&1/ga(new Vr([,-0]))[1]==Ne?function(e){return new Vr(e)}:Oi;function mc(e){return function(t){var r=Ye(t);return r==pt?Hn(t):r==dt?Mu(t):Au(t,e(t))}}function Qt(e,t,r,i,p,u,y,x){var v=t&V;if(!v&&typeof e!="function")throw new Dt(m);var z=i?i.length:0;if(z||(t&=~(q|U),i=p=s),y=y===s?y:Ke(ne(y),0),x=x===s?x:ne(x),z-=p?p.length:0,t&U){var S=i,E=p;i=p=s}var $=v?s:bi(e),X=[e,t,r,i,p,S,E,u,y,x];if($&&N_(X,$),e=X[0],t=X[1],r=X[2],i=X[3],p=X[4],x=X[9]=X[9]===s?v?0:e.length:Ke(X[9]-z,0),!x&&t&(F|k)&&(t&=~(F|k)),!t||t==W)var Z=__(e,t,r);else t==F||t==k?Z=f_(e,t,x):(t==q||t==(W|q))&&!p.length?Z=g_(e,t,r,i):Z=Fa.apply(s,X);var oe=$?Wl:Tc;return Dc(oe(Z,X),e,t)}function uc(e,t,r,i){return e===s||Ot(e,Xr[r])&&!Te.call(i,r)?t:e}function yc(e,t,r,i,p,u){return Se(e)&&Se(t)&&(u.set(t,e),Ma(e,t,s,yc,u),u.delete(t)),e}function x_(e){return Bs(e)?s:e}function _c(e,t,r,i,p,u){var y=r&R,x=e.length,v=t.length;if(x!=v&&!(y&&v>x))return!1;var z=u.get(e),S=u.get(t);if(z&&S)return z==t&&S==e;var E=-1,$=!0,X=r&N?new kr:s;for(u.set(e,t),u.set(t,e);++E<x;){var Z=e[E],oe=t[E];if(i)var J=y?i(oe,Z,E,t,e,u):i(Z,oe,E,e,t,u);if(J!==s){if(J)continue;$=!1;break}if(X){if(!Fn(t,function(de,_e){if(!Is(X,_e)&&(Z===de||p(Z,de,r,i,u)))return X.push(_e)})){$=!1;break}}else if(!(Z===oe||p(Z,oe,r,i,u))){$=!1;break}}return u.delete(e),u.delete(t),$}function h_(e,t,r,i,p,u,y){switch(r){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Nt:return!(e.byteLength!=t.byteLength||!u(new Ta(e),new Ta(t)));case Bt:case Ht:case Ut:return Ot(+e,+t);case Pr:return e.name==t.name&&e.message==t.message;case hr:case Wt:return e==t+"";case pt:var x=Hn;case dt:var v=i&R;if(x||(x=ga),e.size!=t.size&&!v)return!1;var z=y.get(e);if(z)return z==t;i|=N,y.set(e,t);var S=_c(x(e),x(t),i,p,u,y);return y.delete(e),S;case Fr:if(Ss)return Ss.call(e)==Ss.call(t)}return!1}function w_(e,t,r,i,p,u){var y=r&R,x=fi(e),v=x.length,z=fi(t),S=z.length;if(v!=S&&!y)return!1;for(var E=v;E--;){var $=x[E];if(!(y?$ in t:Te.call(t,$)))return!1}var X=u.get(e),Z=u.get(t);if(X&&Z)return X==t&&Z==e;var oe=!0;u.set(e,t),u.set(t,e);for(var J=y;++E<v;){$=x[E];var de=e[$],_e=t[$];if(i)var ft=y?i(_e,de,$,t,e,u):i(de,_e,$,e,t,u);if(!(ft===s?de===_e||p(de,_e,r,i,u):ft)){oe=!1;break}J||(J=$=="constructor")}if(oe&&!J){var Je=e.constructor,gt=t.constructor;Je!=gt&&"constructor"in e&&"constructor"in t&&!(typeof Je=="function"&&Je instanceof Je&&typeof gt=="function"&&gt instanceof gt)&&(oe=!1)}return u.delete(e),u.delete(t),oe}function Zt(e){return Di(wc(e,s,zc),e+"")}function fi(e){return Ml(e,je,hi)}function gi(e){return Ml(e,nt,fc)}var bi=Ca?function(e){return Ca.get(e)}:Oi;function $a(e){for(var t=e.name+"",r=Yr[t],i=Te.call(Yr,t)?r.length:0;i--;){var p=r[i],u=p.func;if(u==null||u==e)return p.name}return t}function es(e){var t=Te.call(d,"placeholder")?d:e;return t.placeholder}function Y(){var e=d.iteratee||Mi;return e=e===Mi?Rl:e,arguments.length?e(arguments[0],arguments[1]):e}function ja(e,t){var r=e.__data__;return C_(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xi(e){for(var t=je(e),r=t.length;r--;){var i=t[r],p=e[i];t[r]=[i,p,xc(p)]}return t}function qr(e,t){var r=Eu(e,t);return Ol(r)?r:s}function v_(e){var t=Te.call(e,Tr),r=e[Tr];try{e[Tr]=s;var i=!0}catch{}var p=wa.call(e);return i&&(t?e[Tr]=r:delete e[Tr]),p}var hi=Gn?function(e){return e==null?[]:(e=De(e),lr(Gn(e),function(t){return vl.call(e,t)}))}:Ri,fc=Gn?function(e){for(var t=[];e;)cr(t,hi(e)),e=Da(e);return t}:Ri,Ye=Qe;(Xn&&Ye(new Xn(new ArrayBuffer(1)))!=or||qs&&Ye(new qs)!=pt||Vn&&Ye(Vn.resolve())!=_s||Vr&&Ye(new Vr)!=dt||Cs&&Ye(new Cs)!=ir)&&(Ye=function(e){var t=Qe(e),r=t==wt?e.constructor:s,i=r?Cr(r):"";if(i)switch(i){case ay:return or;case ny:return pt;case iy:return _s;case oy:return dt;case ly:return ir}return t});function T_(e,t,r){for(var i=-1,p=r.length;++i<p;){var u=r[i],y=u.size;switch(u.type){case"drop":e+=y;break;case"dropRight":t-=y;break;case"take":t=Ve(t,e+y);break;case"takeRight":e=Ke(e,t-y);break}}return{start:e,end:t}}function D_(e){var t=e.match(Cn);return t?t[1].split(f):[]}function gc(e,t,r){t=yr(t,e);for(var i=-1,p=t.length,u=!1;++i<p;){var y=jt(t[i]);if(!(u=e!=null&&r(e,y)))break;e=e[y]}return u||++i!=p?u:(p=e==null?0:e.length,!!p&&Qa(p)&&Jt(y,p)&&(se(e)||zr(e)))}function k_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Te.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function bc(e){return typeof e.constructor=="function"&&!Rs(e)?Qr(Da(e)):{}}function I_(e,t,r){var i=e.constructor;switch(t){case Nt:return ui(e);case Bt:case Ht:return new i(+e);case or:return c_(e,r);case Br:case Ur:case wr:case fs:case gs:case bs:case xs:case hs:case ws:return ec(e,r);case pt:return new i;case Ut:case Wt:return new i(e);case hr:return p_(e);case dt:return new i;case Fr:return d_(e)}}function A_(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(qn,`{
118
+ */Ws.exports,function(a,n){(function(){var s,o="4.17.21",c=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",_="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",b=500,h="__lodash_placeholder__",T=1,P=2,B=4,R=1,N=2,H=1,V=2,G=4,F=8,k=16,q=32,U=64,j=128,ae=256,ye=512,le=30,xt="...",St=800,$e=16,Be=1,Q=2,ge=3,Ne=1/0,Pe=9007199254740991,ct=17976931348623157e292,Et=NaN,te=4294967295,he=te-1,Fe=te>>>1,ht=[["ary",j],["bind",H],["bindKey",V],["curry",F],["curryRight",k],["flip",ye],["partial",q],["partialRight",U],["rearg",ae]],Ae="[object Arguments]",nr="[object Array]",ys="[object AsyncFunction]",Bt="[object Boolean]",Ht="[object Date]",Mr="[object DOMException]",Pr="[object Error]",hr="[object Function]",aa="[object GeneratorFunction]",pt="[object Map]",Ut="[object Number]",Or="[object Null]",wt="[object Object]",_s="[object Promise]",Rr="[object Proxy]",wr="[object RegExp]",dt="[object Set]",Wt="[object String]",Fr="[object Symbol]",Tn="[object Undefined]",ir="[object WeakMap]",na="[object WeakSet]",Nt="[object ArrayBuffer]",or="[object DataView]",Br="[object Float32Array]",Ur="[object Float64Array]",vr="[object Int8Array]",fs="[object Int16Array]",gs="[object Int32Array]",bs="[object Uint8Array]",xs="[object Uint8ClampedArray]",hs="[object Uint16Array]",ws="[object Uint32Array]",Dn=/\b__p \+= '';/g,vs=/\b(__p \+=) '' \+/g,ia=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gt=/&(?:amp|lt|gt|quot|#39);/g,Kr=/[&<>"']/g,Ts=RegExp(Gt.source),oa=RegExp(Kr.source),kn=/<%-([\s\S]+?)%>/g,la=/<%([\s\S]+?)%>/g,ca=/<%=([\s\S]+?)%>/g,pa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,da=/^\w*$/,In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ds=/[\\^$.*+?()[\]{}|]/g,ma=RegExp(Ds.source),ks=/^\s+/,An=/\s/,qn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cn=/\{\n\/\* \[wrapped with (.+)\] \*/,g=/,? & /,M=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,K=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,we=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,He=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,Le=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Lt=/($^)/,ua=/['\n\r\u2028\u2029\\]/g,rt="\\ud800-\\udfff",$m="\\u0300-\\u036f",jm="\\ufe20-\\ufe2f",Hm="\\u20d0-\\u20ff",Oo=$m+jm+Hm,Ro="\\u2700-\\u27bf",Fo="a-z\\xdf-\\xf6\\xf8-\\xff",Wm="\\xac\\xb1\\xd7\\xf7",Gm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xm="\\u2000-\\u206f",Vm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",Uo="\\ufe0e\\ufe0f",Ko=Wm+Gm+Xm+Vm,zn="['’]",Ym="["+rt+"]",$o="["+Ko+"]",ya="["+Oo+"]",jo="\\d+",Qm="["+Ro+"]",Ho="["+Fo+"]",Wo="[^"+rt+Ko+jo+Ro+Fo+Bo+"]",Sn="\\ud83c[\\udffb-\\udfff]",Zm="(?:"+ya+"|"+Sn+")",Go="[^"+rt+"]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",$r="["+Bo+"]",Xo="\\u200d",Vo="(?:"+Ho+"|"+Wo+")",Jm="(?:"+$r+"|"+Wo+")",Yo="(?:"+zn+"(?:d|ll|m|re|s|t|ve))?",Qo="(?:"+zn+"(?:D|LL|M|RE|S|T|VE))?",Zo=Zm+"?",Jo="["+Uo+"]?",eu="(?:"+Xo+"(?:"+[Go,En,Nn].join("|")+")"+Jo+Zo+")*",tu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ru="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",el=Jo+Zo+eu,su="(?:"+[Qm,En,Nn].join("|")+")"+el,au="(?:"+[Go+ya+"?",ya,En,Nn,Ym].join("|")+")",nu=RegExp(zn,"g"),iu=RegExp(ya,"g"),Ln=RegExp(Sn+"(?="+Sn+")|"+au+el,"g"),ou=RegExp([$r+"?"+Ho+"+"+Yo+"(?="+[$o,$r,"$"].join("|")+")",Jm+"+"+Qo+"(?="+[$o,$r+Vo,"$"].join("|")+")",$r+"?"+Vo+"+"+Yo,$r+"+"+Qo,ru,tu,jo,su].join("|"),"g"),lu=RegExp("["+Xo+rt+Oo+Uo+"]"),cu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],du=-1,qe={};qe[Br]=qe[Ur]=qe[vr]=qe[fs]=qe[gs]=qe[bs]=qe[xs]=qe[hs]=qe[ws]=!0,qe[Ae]=qe[nr]=qe[Nt]=qe[Bt]=qe[or]=qe[Ht]=qe[Pr]=qe[hr]=qe[pt]=qe[Ut]=qe[wt]=qe[wr]=qe[dt]=qe[Wt]=qe[ir]=!1;var ke={};ke[Ae]=ke[nr]=ke[Nt]=ke[or]=ke[Bt]=ke[Ht]=ke[Br]=ke[Ur]=ke[vr]=ke[fs]=ke[gs]=ke[pt]=ke[Ut]=ke[wt]=ke[wr]=ke[dt]=ke[Wt]=ke[Fr]=ke[bs]=ke[xs]=ke[hs]=ke[ws]=!0,ke[Pr]=ke[hr]=ke[ir]=!1;var mu={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},uu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yu={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},_u={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fu=parseFloat,gu=parseInt,tl=typeof ss=="object"&&ss&&ss.Object===Object&&ss,bu=typeof self=="object"&&self&&self.Object===Object&&self,We=tl||bu||Function("return this")(),Mn=n&&!n.nodeType&&n,Tr=Mn&&!0&&a&&!a.nodeType&&a,rl=Tr&&Tr.exports===Mn,Pn=rl&&tl.process,vt=function(){try{var w=Tr&&Tr.require&&Tr.require("util").types;return w||Pn&&Pn.binding&&Pn.binding("util")}catch{}}(),sl=vt&&vt.isArrayBuffer,al=vt&&vt.isDate,nl=vt&&vt.isMap,il=vt&&vt.isRegExp,ol=vt&&vt.isSet,ll=vt&&vt.isTypedArray;function mt(w,C,D){switch(D.length){case 0:return w.call(C);case 1:return w.call(C,D[0]);case 2:return w.call(C,D[0],D[1]);case 3:return w.call(C,D[0],D[1],D[2])}return w.apply(C,D)}function xu(w,C,D,W){for(var re=-1,xe=w==null?0:w.length;++re<xe;){var Ue=w[re];C(W,Ue,D(Ue),w)}return W}function Tt(w,C){for(var D=-1,W=w==null?0:w.length;++D<W&&C(w[D],D,w)!==!1;);return w}function hu(w,C){for(var D=w==null?0:w.length;D--&&C(w[D],D,w)!==!1;);return w}function cl(w,C){for(var D=-1,W=w==null?0:w.length;++D<W;)if(!C(w[D],D,w))return!1;return!0}function lr(w,C){for(var D=-1,W=w==null?0:w.length,re=0,xe=[];++D<W;){var Ue=w[D];C(Ue,D,w)&&(xe[re++]=Ue)}return xe}function _a(w,C){var D=w==null?0:w.length;return!!D&&jr(w,C,0)>-1}function On(w,C,D){for(var W=-1,re=w==null?0:w.length;++W<re;)if(D(C,w[W]))return!0;return!1}function Ce(w,C){for(var D=-1,W=w==null?0:w.length,re=Array(W);++D<W;)re[D]=C(w[D],D,w);return re}function cr(w,C){for(var D=-1,W=C.length,re=w.length;++D<W;)w[re+D]=C[D];return w}function Rn(w,C,D,W){var re=-1,xe=w==null?0:w.length;for(W&&xe&&(D=w[++re]);++re<xe;)D=C(D,w[re],re,w);return D}function wu(w,C,D,W){var re=w==null?0:w.length;for(W&&re&&(D=w[--re]);re--;)D=C(D,w[re],re,w);return D}function Fn(w,C){for(var D=-1,W=w==null?0:w.length;++D<W;)if(C(w[D],D,w))return!0;return!1}var vu=Bn("length");function Tu(w){return w.split("")}function Du(w){return w.match(M)||[]}function pl(w,C,D){var W;return D(w,function(re,xe,Ue){if(C(re,xe,Ue))return W=xe,!1}),W}function fa(w,C,D,W){for(var re=w.length,xe=D+(W?1:-1);W?xe--:++xe<re;)if(C(w[xe],xe,w))return xe;return-1}function jr(w,C,D){return C===C?Pu(w,C,D):fa(w,dl,D)}function ku(w,C,D,W){for(var re=D-1,xe=w.length;++re<xe;)if(W(w[re],C))return re;return-1}function dl(w){return w!==w}function ml(w,C){var D=w==null?0:w.length;return D?Kn(w,C)/D:Et}function Bn(w){return function(C){return C==null?s:C[w]}}function Un(w){return function(C){return w==null?s:w[C]}}function ul(w,C,D,W,re){return re(w,function(xe,Ue,De){D=W?(W=!1,xe):C(D,xe,Ue,De)}),D}function Iu(w,C){var D=w.length;for(w.sort(C);D--;)w[D]=w[D].value;return w}function Kn(w,C){for(var D,W=-1,re=w.length;++W<re;){var xe=C(w[W]);xe!==s&&(D=D===s?xe:D+xe)}return D}function $n(w,C){for(var D=-1,W=Array(w);++D<w;)W[D]=C(D);return W}function Au(w,C){return Ce(C,function(D){return[D,w[D]]})}function yl(w){return w&&w.slice(0,bl(w)+1).replace(ks,"")}function ut(w){return function(C){return w(C)}}function jn(w,C){return Ce(C,function(D){return w[D]})}function Is(w,C){return w.has(C)}function _l(w,C){for(var D=-1,W=w.length;++D<W&&jr(C,w[D],0)>-1;);return D}function fl(w,C){for(var D=w.length;D--&&jr(C,w[D],0)>-1;);return D}function qu(w,C){for(var D=w.length,W=0;D--;)w[D]===C&&++W;return W}var Cu=Un(mu),zu=Un(uu);function Su(w){return"\\"+_u[w]}function Eu(w,C){return w==null?s:w[C]}function Hr(w){return lu.test(w)}function Nu(w){return cu.test(w)}function Lu(w){for(var C,D=[];!(C=w.next()).done;)D.push(C.value);return D}function Hn(w){var C=-1,D=Array(w.size);return w.forEach(function(W,re){D[++C]=[re,W]}),D}function gl(w,C){return function(D){return w(C(D))}}function pr(w,C){for(var D=-1,W=w.length,re=0,xe=[];++D<W;){var Ue=w[D];(Ue===C||Ue===h)&&(w[D]=h,xe[re++]=D)}return xe}function ga(w){var C=-1,D=Array(w.size);return w.forEach(function(W){D[++C]=W}),D}function Mu(w){var C=-1,D=Array(w.size);return w.forEach(function(W){D[++C]=[W,W]}),D}function Pu(w,C,D){for(var W=D-1,re=w.length;++W<re;)if(w[W]===C)return W;return-1}function Ou(w,C,D){for(var W=D+1;W--;)if(w[W]===C)return W;return W}function Wr(w){return Hr(w)?Fu(w):vu(w)}function Mt(w){return Hr(w)?Bu(w):Tu(w)}function bl(w){for(var C=w.length;C--&&An.test(w.charAt(C)););return C}var Ru=Un(yu);function Fu(w){for(var C=Ln.lastIndex=0;Ln.test(w);)++C;return C}function Bu(w){return w.match(Ln)||[]}function Uu(w){return w.match(ou)||[]}var Ku=function w(C){C=C==null?We:Gr.defaults(We.Object(),C,Gr.pick(We,pu));var D=C.Array,W=C.Date,re=C.Error,xe=C.Function,Ue=C.Math,De=C.Object,Wn=C.RegExp,$u=C.String,Dt=C.TypeError,ba=D.prototype,ju=xe.prototype,Xr=De.prototype,xa=C["__core-js_shared__"],ha=ju.toString,Te=Xr.hasOwnProperty,Hu=0,xl=function(){var e=/[^.]+$/.exec(xa&&xa.keys&&xa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),wa=Xr.toString,Wu=ha.call(De),Gu=We._,Xu=Wn("^"+ha.call(Te).replace(Ds,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),va=rl?C.Buffer:s,dr=C.Symbol,Ta=C.Uint8Array,hl=va?va.allocUnsafe:s,Da=gl(De.getPrototypeOf,De),wl=De.create,vl=Xr.propertyIsEnumerable,ka=ba.splice,Tl=dr?dr.isConcatSpreadable:s,As=dr?dr.iterator:s,Dr=dr?dr.toStringTag:s,Ia=function(){try{var e=Cr(De,"defineProperty");return e({},"",{}),e}catch{}}(),Vu=C.clearTimeout!==We.clearTimeout&&C.clearTimeout,Yu=W&&W.now!==We.Date.now&&W.now,Qu=C.setTimeout!==We.setTimeout&&C.setTimeout,Aa=Ue.ceil,qa=Ue.floor,Gn=De.getOwnPropertySymbols,Zu=va?va.isBuffer:s,Dl=C.isFinite,Ju=ba.join,ey=gl(De.keys,De),Ke=Ue.max,Ve=Ue.min,ty=W.now,ry=C.parseInt,kl=Ue.random,sy=ba.reverse,Xn=Cr(C,"DataView"),qs=Cr(C,"Map"),Vn=Cr(C,"Promise"),Vr=Cr(C,"Set"),Cs=Cr(C,"WeakMap"),zs=Cr(De,"create"),Ca=Cs&&new Cs,Yr={},ay=zr(Xn),ny=zr(qs),iy=zr(Vn),oy=zr(Vr),ly=zr(Cs),za=dr?dr.prototype:s,Ss=za?za.valueOf:s,Il=za?za.toString:s;function d(e){if(Me(e)&&!se(e)&&!(e instanceof ue)){if(e instanceof kt)return e;if(Te.call(e,"__wrapped__"))return Ac(e)}return new kt(e)}var Qr=function(){function e(){}return function(t){if(!Se(t))return{};if(wl)return wl(t);e.prototype=t;var r=new e;return e.prototype=s,r}}();function Sa(){}function kt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=s}d.templateSettings={escape:kn,evaluate:la,interpolate:ca,variable:"",imports:{_:d}},d.prototype=Sa.prototype,d.prototype.constructor=d,kt.prototype=Qr(Sa.prototype),kt.prototype.constructor=kt;function ue(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function cy(){var e=new ue(this.__wrapped__);return e.__actions__=st(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=st(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=st(this.__views__),e}function py(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function dy(){var e=this.__wrapped__.value(),t=this.__dir__,r=se(e),i=t<0,p=r?e.length:0,u=T_(0,p,this.__views__),y=u.start,x=u.end,v=x-y,z=i?x:y-1,S=this.__iteratees__,E=S.length,$=0,X=Ve(v,this.__takeCount__);if(!r||!i&&p==v&&X==v)return Yl(e,this.__actions__);var Z=[];e:for(;v--&&$<X;){z+=t;for(var oe=-1,J=e[z];++oe<E;){var de=S[oe],_e=de.iteratee,ft=de.type,Je=_e(J);if(ft==Q)J=Je;else if(!Je){if(ft==Be)continue e;break e}}Z[$++]=J}return Z}ue.prototype=Qr(Sa.prototype),ue.prototype.constructor=ue;function kr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function my(){this.__data__=zs?zs(null):{},this.size=0}function uy(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function yy(e){var t=this.__data__;if(zs){var r=t[e];return r===f?s:r}return Te.call(t,e)?t[e]:s}function _y(e){var t=this.__data__;return zs?t[e]!==s:Te.call(t,e)}function fy(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=zs&&t===s?f:t,this}kr.prototype.clear=my,kr.prototype.delete=uy,kr.prototype.get=yy,kr.prototype.has=_y,kr.prototype.set=fy;function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function gy(){this.__data__=[],this.size=0}function by(e){var t=this.__data__,r=Ea(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():ka.call(t,r,1),--this.size,!0}function xy(e){var t=this.__data__,r=Ea(t,e);return r<0?s:t[r][1]}function hy(e){return Ea(this.__data__,e)>-1}function wy(e,t){var r=this.__data__,i=Ea(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}Xt.prototype.clear=gy,Xt.prototype.delete=by,Xt.prototype.get=xy,Xt.prototype.has=hy,Xt.prototype.set=wy;function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function vy(){this.size=0,this.__data__={hash:new kr,map:new(qs||Xt),string:new kr}}function Ty(e){var t=ja(this,e).delete(e);return this.size-=t?1:0,t}function Dy(e){return ja(this,e).get(e)}function ky(e){return ja(this,e).has(e)}function Iy(e,t){var r=ja(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Vt.prototype.clear=vy,Vt.prototype.delete=Ty,Vt.prototype.get=Dy,Vt.prototype.has=ky,Vt.prototype.set=Iy;function Ir(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Vt;++t<r;)this.add(e[t])}function Ay(e){return this.__data__.set(e,f),this}function qy(e){return this.__data__.has(e)}Ir.prototype.add=Ir.prototype.push=Ay,Ir.prototype.has=qy;function Pt(e){var t=this.__data__=new Xt(e);this.size=t.size}function Cy(){this.__data__=new Xt,this.size=0}function zy(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Sy(e){return this.__data__.get(e)}function Ey(e){return this.__data__.has(e)}function Ny(e,t){var r=this.__data__;if(r instanceof Xt){var i=r.__data__;if(!qs||i.length<c-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Vt(i)}return r.set(e,t),this.size=r.size,this}Pt.prototype.clear=Cy,Pt.prototype.delete=zy,Pt.prototype.get=Sy,Pt.prototype.has=Ey,Pt.prototype.set=Ny;function Al(e,t){var r=se(e),i=!r&&Sr(e),p=!r&&!i&&fr(e),u=!r&&!i&&!p&&ts(e),y=r||i||p||u,x=y?$n(e.length,$u):[],v=x.length;for(var z in e)(t||Te.call(e,z))&&!(y&&(z=="length"||p&&(z=="offset"||z=="parent")||u&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Jt(z,v)))&&x.push(z);return x}function ql(e){var t=e.length;return t?e[ii(0,t-1)]:s}function Ly(e,t){return Ha(st(e),Ar(t,0,e.length))}function My(e){return Ha(st(e))}function Yn(e,t,r){(r!==s&&!Ot(e[t],r)||r===s&&!(t in e))&&Yt(e,t,r)}function Es(e,t,r){var i=e[t];(!(Te.call(e,t)&&Ot(i,r))||r===s&&!(t in e))&&Yt(e,t,r)}function Ea(e,t){for(var r=e.length;r--;)if(Ot(e[r][0],t))return r;return-1}function Py(e,t,r,i){return mr(e,function(p,u,y){t(i,p,r(p),y)}),i}function Cl(e,t){return e&&$t(t,je(t),e)}function Oy(e,t){return e&&$t(t,nt(t),e)}function Yt(e,t,r){t=="__proto__"&&Ia?Ia(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Qn(e,t){for(var r=-1,i=t.length,p=D(i),u=e==null;++r<i;)p[r]=u?s:Si(e,t[r]);return p}function Ar(e,t,r){return e===e&&(r!==s&&(e=e<=r?e:r),t!==s&&(e=e>=t?e:t)),e}function It(e,t,r,i,p,u){var y,x=t&T,v=t&P,z=t&B;if(r&&(y=p?r(e,i,p,u):r(e)),y!==s)return y;if(!Se(e))return e;var S=se(e);if(S){if(y=k_(e),!x)return st(e,y)}else{var E=Ye(e),$=E==hr||E==aa;if(fr(e))return Jl(e,x);if(E==wt||E==Ae||$&&!p){if(y=v||$?{}:bc(e),!x)return v?y_(e,Oy(y,e)):u_(e,Cl(y,e))}else{if(!ke[E])return p?e:{};y=I_(e,E,x)}}u||(u=new Pt);var X=u.get(e);if(X)return X;u.set(e,y),Gc(e)?e.forEach(function(J){y.add(It(J,t,r,J,e,u))}):Hc(e)&&e.forEach(function(J,de){y.set(de,It(J,t,r,de,e,u))});var Z=z?v?gi:fi:v?nt:je,oe=S?s:Z(e);return Tt(oe||e,function(J,de){oe&&(de=J,J=e[de]),Es(y,de,It(J,t,r,de,e,u))}),y}function Ry(e){var t=je(e);return function(r){return zl(r,e,t)}}function zl(e,t,r){var i=r.length;if(e==null)return!i;for(e=De(e);i--;){var p=r[i],u=t[p],y=e[p];if(y===s&&!(p in e)||!u(y))return!1}return!0}function Sl(e,t,r){if(typeof e!="function")throw new Dt(m);return Fs(function(){e.apply(s,r)},t)}function Ns(e,t,r,i){var p=-1,u=_a,y=!0,x=e.length,v=[],z=t.length;if(!x)return v;r&&(t=Ce(t,ut(r))),i?(u=On,y=!1):t.length>=c&&(u=Is,y=!1,t=new Ir(t));e:for(;++p<x;){var S=e[p],E=r==null?S:r(S);if(S=i||S!==0?S:0,y&&E===E){for(var $=z;$--;)if(t[$]===E)continue e;v.push(S)}else u(t,E,i)||v.push(S)}return v}var mr=ac(Kt),El=ac(Jn,!0);function Fy(e,t){var r=!0;return mr(e,function(i,p,u){return r=!!t(i,p,u),r}),r}function Na(e,t,r){for(var i=-1,p=e.length;++i<p;){var u=e[i],y=t(u);if(y!=null&&(x===s?y===y&&!_t(y):r(y,x)))var x=y,v=u}return v}function By(e,t,r,i){var p=e.length;for(r=ne(r),r<0&&(r=-r>p?0:p+r),i=i===s||i>p?p:ne(i),i<0&&(i+=p),i=r>i?0:Vc(i);r<i;)e[r++]=t;return e}function Nl(e,t){var r=[];return mr(e,function(i,p,u){t(i,p,u)&&r.push(i)}),r}function Ge(e,t,r,i,p){var u=-1,y=e.length;for(r||(r=q_),p||(p=[]);++u<y;){var x=e[u];t>0&&r(x)?t>1?Ge(x,t-1,r,i,p):cr(p,x):i||(p[p.length]=x)}return p}var Zn=nc(),Ll=nc(!0);function Kt(e,t){return e&&Zn(e,t,je)}function Jn(e,t){return e&&Ll(e,t,je)}function La(e,t){return lr(t,function(r){return er(e[r])})}function qr(e,t){t=yr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[jt(t[r++])];return r&&r==i?e:s}function Ml(e,t,r){var i=t(e);return se(e)?i:cr(i,r(e))}function Qe(e){return e==null?e===s?Tn:Or:Dr&&Dr in De(e)?v_(e):M_(e)}function ei(e,t){return e>t}function Uy(e,t){return e!=null&&Te.call(e,t)}function Ky(e,t){return e!=null&&t in De(e)}function $y(e,t,r){return e>=Ve(t,r)&&e<Ke(t,r)}function ti(e,t,r){for(var i=r?On:_a,p=e[0].length,u=e.length,y=u,x=D(u),v=1/0,z=[];y--;){var S=e[y];y&&t&&(S=Ce(S,ut(t))),v=Ve(S.length,v),x[y]=!r&&(t||p>=120&&S.length>=120)?new Ir(y&&S):s}S=e[0];var E=-1,$=x[0];e:for(;++E<p&&z.length<v;){var X=S[E],Z=t?t(X):X;if(X=r||X!==0?X:0,!($?Is($,Z):i(z,Z,r))){for(y=u;--y;){var oe=x[y];if(!(oe?Is(oe,Z):i(e[y],Z,r)))continue e}$&&$.push(Z),z.push(X)}}return z}function jy(e,t,r,i){return Kt(e,function(p,u,y){t(i,r(p),u,y)}),i}function Ls(e,t,r){t=yr(t,e),e=vc(e,t);var i=e==null?e:e[jt(qt(t))];return i==null?s:mt(i,e,r)}function Pl(e){return Me(e)&&Qe(e)==Ae}function Hy(e){return Me(e)&&Qe(e)==Nt}function Wy(e){return Me(e)&&Qe(e)==Ht}function Ms(e,t,r,i,p){return e===t?!0:e==null||t==null||!Me(e)&&!Me(t)?e!==e&&t!==t:Gy(e,t,r,i,Ms,p)}function Gy(e,t,r,i,p,u){var y=se(e),x=se(t),v=y?nr:Ye(e),z=x?nr:Ye(t);v=v==Ae?wt:v,z=z==Ae?wt:z;var S=v==wt,E=z==wt,$=v==z;if($&&fr(e)){if(!fr(t))return!1;y=!0,S=!1}if($&&!S)return u||(u=new Pt),y||ts(e)?_c(e,t,r,i,p,u):h_(e,t,v,r,i,p,u);if(!(r&R)){var X=S&&Te.call(e,"__wrapped__"),Z=E&&Te.call(t,"__wrapped__");if(X||Z){var oe=X?e.value():e,J=Z?t.value():t;return u||(u=new Pt),p(oe,J,r,i,u)}}return $?(u||(u=new Pt),w_(e,t,r,i,p,u)):!1}function Xy(e){return Me(e)&&Ye(e)==pt}function ri(e,t,r,i){var p=r.length,u=p,y=!i;if(e==null)return!u;for(e=De(e);p--;){var x=r[p];if(y&&x[2]?x[1]!==e[x[0]]:!(x[0]in e))return!1}for(;++p<u;){x=r[p];var v=x[0],z=e[v],S=x[1];if(y&&x[2]){if(z===s&&!(v in e))return!1}else{var E=new Pt;if(i)var $=i(z,S,v,e,t,E);if(!($===s?Ms(S,z,R|N,i,E):$))return!1}}return!0}function Ol(e){if(!Se(e)||z_(e))return!1;var t=er(e)?Xu:He;return t.test(zr(e))}function Vy(e){return Me(e)&&Qe(e)==wr}function Yy(e){return Me(e)&&Ye(e)==dt}function Qy(e){return Me(e)&&Qa(e.length)&&!!qe[Qe(e)]}function Rl(e){return typeof e=="function"?e:e==null?it:typeof e=="object"?se(e)?Ul(e[0],e[1]):Bl(e):ip(e)}function si(e){if(!Rs(e))return ey(e);var t=[];for(var r in De(e))Te.call(e,r)&&r!="constructor"&&t.push(r);return t}function Zy(e){if(!Se(e))return L_(e);var t=Rs(e),r=[];for(var i in e)i=="constructor"&&(t||!Te.call(e,i))||r.push(i);return r}function ai(e,t){return e<t}function Fl(e,t){var r=-1,i=at(e)?D(e.length):[];return mr(e,function(p,u,y){i[++r]=t(p,u,y)}),i}function Bl(e){var t=xi(e);return t.length==1&&t[0][2]?hc(t[0][0],t[0][1]):function(r){return r===e||ri(r,e,t)}}function Ul(e,t){return wi(e)&&xc(t)?hc(jt(e),t):function(r){var i=Si(r,e);return i===s&&i===t?Ei(r,e):Ms(t,i,R|N)}}function Ma(e,t,r,i,p){e!==t&&Zn(t,function(u,y){if(p||(p=new Pt),Se(u))Jy(e,t,y,r,Ma,i,p);else{var x=i?i(Ti(e,y),u,y+"",e,t,p):s;x===s&&(x=u),Yn(e,y,x)}},nt)}function Jy(e,t,r,i,p,u,y){var x=Ti(e,r),v=Ti(t,r),z=y.get(v);if(z){Yn(e,r,z);return}var S=u?u(x,v,r+"",e,t,y):s,E=S===s;if(E){var $=se(v),X=!$&&fr(v),Z=!$&&!X&&ts(v);S=v,$||X||Z?se(x)?S=x:Oe(x)?S=st(x):X?(E=!1,S=Jl(v,!0)):Z?(E=!1,S=ec(v,!0)):S=[]:Bs(v)||Sr(v)?(S=x,Sr(x)?S=Yc(x):(!Se(x)||er(x))&&(S=bc(v))):E=!1}E&&(y.set(v,S),p(S,v,i,u,y),y.delete(v)),Yn(e,r,S)}function Kl(e,t){var r=e.length;if(r)return t+=t<0?r:0,Jt(t,r)?e[t]:s}function $l(e,t,r){t.length?t=Ce(t,function(u){return se(u)?function(y){return qr(y,u.length===1?u[0]:u)}:u}):t=[it];var i=-1;t=Ce(t,ut(Y()));var p=Fl(e,function(u,y,x){var v=Ce(t,function(z){return z(u)});return{criteria:v,index:++i,value:u}});return Iu(p,function(u,y){return m_(u,y,r)})}function e_(e,t){return jl(e,t,function(r,i){return Ei(e,i)})}function jl(e,t,r){for(var i=-1,p=t.length,u={};++i<p;){var y=t[i],x=qr(e,y);r(x,y)&&Ps(u,yr(y,e),x)}return u}function t_(e){return function(t){return qr(t,e)}}function ni(e,t,r,i){var p=i?ku:jr,u=-1,y=t.length,x=e;for(e===t&&(t=st(t)),r&&(x=Ce(e,ut(r)));++u<y;)for(var v=0,z=t[u],S=r?r(z):z;(v=p(x,S,v,i))>-1;)x!==e&&ka.call(x,v,1),ka.call(e,v,1);return e}function Hl(e,t){for(var r=e?t.length:0,i=r-1;r--;){var p=t[r];if(r==i||p!==u){var u=p;Jt(p)?ka.call(e,p,1):ci(e,p)}}return e}function ii(e,t){return e+qa(kl()*(t-e+1))}function r_(e,t,r,i){for(var p=-1,u=Ke(Aa((t-e)/(r||1)),0),y=D(u);u--;)y[i?u:++p]=e,e+=r;return y}function oi(e,t){var r="";if(!e||t<1||t>Pe)return r;do t%2&&(r+=e),t=qa(t/2),t&&(e+=e);while(t);return r}function ce(e,t){return Di(wc(e,t,it),e+"")}function s_(e){return ql(rs(e))}function a_(e,t){var r=rs(e);return Ha(r,Ar(t,0,r.length))}function Ps(e,t,r,i){if(!Se(e))return e;t=yr(t,e);for(var p=-1,u=t.length,y=u-1,x=e;x!=null&&++p<u;){var v=jt(t[p]),z=r;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(p!=y){var S=x[v];z=i?i(S,v,x):s,z===s&&(z=Se(S)?S:Jt(t[p+1])?[]:{})}Es(x,v,z),x=x[v]}return e}var Wl=Ca?function(e,t){return Ca.set(e,t),e}:it,n_=Ia?function(e,t){return Ia(e,"toString",{configurable:!0,enumerable:!1,value:Li(t),writable:!0})}:it;function i_(e){return Ha(rs(e))}function At(e,t,r){var i=-1,p=e.length;t<0&&(t=-t>p?0:p+t),r=r>p?p:r,r<0&&(r+=p),p=t>r?0:r-t>>>0,t>>>=0;for(var u=D(p);++i<p;)u[i]=e[i+t];return u}function o_(e,t){var r;return mr(e,function(i,p,u){return r=t(i,p,u),!r}),!!r}function Pa(e,t,r){var i=0,p=e==null?i:e.length;if(typeof t=="number"&&t===t&&p<=Fe){for(;i<p;){var u=i+p>>>1,y=e[u];y!==null&&!_t(y)&&(r?y<=t:y<t)?i=u+1:p=u}return p}return li(e,t,it,r)}function li(e,t,r,i){var p=0,u=e==null?0:e.length;if(u===0)return 0;t=r(t);for(var y=t!==t,x=t===null,v=_t(t),z=t===s;p<u;){var S=qa((p+u)/2),E=r(e[S]),$=E!==s,X=E===null,Z=E===E,oe=_t(E);if(y)var J=i||Z;else z?J=Z&&(i||$):x?J=Z&&$&&(i||!X):v?J=Z&&$&&!X&&(i||!oe):X||oe?J=!1:J=i?E<=t:E<t;J?p=S+1:u=S}return Ve(u,he)}function Gl(e,t){for(var r=-1,i=e.length,p=0,u=[];++r<i;){var y=e[r],x=t?t(y):y;if(!r||!Ot(x,v)){var v=x;u[p++]=y===0?0:y}}return u}function Xl(e){return typeof e=="number"?e:_t(e)?Et:+e}function yt(e){if(typeof e=="string")return e;if(se(e))return Ce(e,yt)+"";if(_t(e))return Il?Il.call(e):"";var t=e+"";return t=="0"&&1/e==-Ne?"-0":t}function ur(e,t,r){var i=-1,p=_a,u=e.length,y=!0,x=[],v=x;if(r)y=!1,p=On;else if(u>=c){var z=t?null:b_(e);if(z)return ga(z);y=!1,p=Is,v=new Ir}else v=t?[]:x;e:for(;++i<u;){var S=e[i],E=t?t(S):S;if(S=r||S!==0?S:0,y&&E===E){for(var $=v.length;$--;)if(v[$]===E)continue e;t&&v.push(E),x.push(S)}else p(v,E,r)||(v!==x&&v.push(E),x.push(S))}return x}function ci(e,t){return t=yr(t,e),e=vc(e,t),e==null||delete e[jt(qt(t))]}function Vl(e,t,r,i){return Ps(e,t,r(qr(e,t)),i)}function Oa(e,t,r,i){for(var p=e.length,u=i?p:-1;(i?u--:++u<p)&&t(e[u],u,e););return r?At(e,i?0:u,i?u+1:p):At(e,i?u+1:0,i?p:u)}function Yl(e,t){var r=e;return r instanceof ue&&(r=r.value()),Rn(t,function(i,p){return p.func.apply(p.thisArg,cr([i],p.args))},r)}function pi(e,t,r){var i=e.length;if(i<2)return i?ur(e[0]):[];for(var p=-1,u=D(i);++p<i;)for(var y=e[p],x=-1;++x<i;)x!=p&&(u[p]=Ns(u[p]||y,e[x],t,r));return ur(Ge(u,1),t,r)}function Ql(e,t,r){for(var i=-1,p=e.length,u=t.length,y={};++i<p;){var x=i<u?t[i]:s;r(y,e[i],x)}return y}function di(e){return Oe(e)?e:[]}function mi(e){return typeof e=="function"?e:it}function yr(e,t){return se(e)?e:wi(e,t)?[e]:Ic(ve(e))}var l_=ce;function _r(e,t,r){var i=e.length;return r=r===s?i:r,!t&&r>=i?e:At(e,t,r)}var Zl=Vu||function(e){return We.clearTimeout(e)};function Jl(e,t){if(t)return e.slice();var r=e.length,i=hl?hl(r):new e.constructor(r);return e.copy(i),i}function ui(e){var t=new e.constructor(e.byteLength);return new Ta(t).set(new Ta(e)),t}function c_(e,t){var r=t?ui(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function p_(e){var t=new e.constructor(e.source,we.exec(e));return t.lastIndex=e.lastIndex,t}function d_(e){return Ss?De(Ss.call(e)):{}}function ec(e,t){var r=t?ui(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function tc(e,t){if(e!==t){var r=e!==s,i=e===null,p=e===e,u=_t(e),y=t!==s,x=t===null,v=t===t,z=_t(t);if(!x&&!z&&!u&&e>t||u&&y&&v&&!x&&!z||i&&y&&v||!r&&v||!p)return 1;if(!i&&!u&&!z&&e<t||z&&r&&p&&!i&&!u||x&&r&&p||!y&&p||!v)return-1}return 0}function m_(e,t,r){for(var i=-1,p=e.criteria,u=t.criteria,y=p.length,x=r.length;++i<y;){var v=tc(p[i],u[i]);if(v){if(i>=x)return v;var z=r[i];return v*(z=="desc"?-1:1)}}return e.index-t.index}function rc(e,t,r,i){for(var p=-1,u=e.length,y=r.length,x=-1,v=t.length,z=Ke(u-y,0),S=D(v+z),E=!i;++x<v;)S[x]=t[x];for(;++p<y;)(E||p<u)&&(S[r[p]]=e[p]);for(;z--;)S[x++]=e[p++];return S}function sc(e,t,r,i){for(var p=-1,u=e.length,y=-1,x=r.length,v=-1,z=t.length,S=Ke(u-x,0),E=D(S+z),$=!i;++p<S;)E[p]=e[p];for(var X=p;++v<z;)E[X+v]=t[v];for(;++y<x;)($||p<u)&&(E[X+r[y]]=e[p++]);return E}function st(e,t){var r=-1,i=e.length;for(t||(t=D(i));++r<i;)t[r]=e[r];return t}function $t(e,t,r,i){var p=!r;r||(r={});for(var u=-1,y=t.length;++u<y;){var x=t[u],v=i?i(r[x],e[x],x,r,e):s;v===s&&(v=e[x]),p?Yt(r,x,v):Es(r,x,v)}return r}function u_(e,t){return $t(e,hi(e),t)}function y_(e,t){return $t(e,fc(e),t)}function Ra(e,t){return function(r,i){var p=se(r)?xu:Py,u=t?t():{};return p(r,e,Y(i,2),u)}}function Zr(e){return ce(function(t,r){var i=-1,p=r.length,u=p>1?r[p-1]:s,y=p>2?r[2]:s;for(u=e.length>3&&typeof u=="function"?(p--,u):s,y&&Ze(r[0],r[1],y)&&(u=p<3?s:u,p=1),t=De(t);++i<p;){var x=r[i];x&&e(t,x,i,u)}return t})}function ac(e,t){return function(r,i){if(r==null)return r;if(!at(r))return e(r,i);for(var p=r.length,u=t?p:-1,y=De(r);(t?u--:++u<p)&&i(y[u],u,y)!==!1;);return r}}function nc(e){return function(t,r,i){for(var p=-1,u=De(t),y=i(t),x=y.length;x--;){var v=y[e?x:++p];if(r(u[v],v,u)===!1)break}return t}}function __(e,t,r){var i=t&H,p=Os(e);function u(){var y=this&&this!==We&&this instanceof u?p:e;return y.apply(i?r:this,arguments)}return u}function ic(e){return function(t){t=ve(t);var r=Hr(t)?Mt(t):s,i=r?r[0]:t.charAt(0),p=r?_r(r,1).join(""):t.slice(1);return i[e]()+p}}function Jr(e){return function(t){return Rn(ap(sp(t).replace(nu,"")),e,"")}}function Os(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Qr(e.prototype),i=e.apply(r,t);return Se(i)?i:r}}function f_(e,t,r){var i=Os(e);function p(){for(var u=arguments.length,y=D(u),x=u,v=es(p);x--;)y[x]=arguments[x];var z=u<3&&y[0]!==v&&y[u-1]!==v?[]:pr(y,v);if(u-=z.length,u<r)return dc(e,t,Fa,p.placeholder,s,y,z,s,s,r-u);var S=this&&this!==We&&this instanceof p?i:e;return mt(S,this,y)}return p}function oc(e){return function(t,r,i){var p=De(t);if(!at(t)){var u=Y(r,3);t=je(t),r=function(x){return u(p[x],x,p)}}var y=e(t,r,i);return y>-1?p[u?t[y]:y]:s}}function lc(e){return Zt(function(t){var r=t.length,i=r,p=kt.prototype.thru;for(e&&t.reverse();i--;){var u=t[i];if(typeof u!="function")throw new Dt(m);if(p&&!y&&$a(u)=="wrapper")var y=new kt([],!0)}for(i=y?i:r;++i<r;){u=t[i];var x=$a(u),v=x=="wrapper"?bi(u):s;v&&vi(v[0])&&v[1]==(j|F|q|ae)&&!v[4].length&&v[9]==1?y=y[$a(v[0])].apply(y,v[3]):y=u.length==1&&vi(u)?y[x]():y.thru(u)}return function(){var z=arguments,S=z[0];if(y&&z.length==1&&se(S))return y.plant(S).value();for(var E=0,$=r?t[E].apply(this,z):S;++E<r;)$=t[E].call(this,$);return $}})}function Fa(e,t,r,i,p,u,y,x,v,z){var S=t&j,E=t&H,$=t&V,X=t&(F|k),Z=t&ye,oe=$?s:Os(e);function J(){for(var de=arguments.length,_e=D(de),ft=de;ft--;)_e[ft]=arguments[ft];if(X)var Je=es(J),gt=qu(_e,Je);if(i&&(_e=rc(_e,i,p,X)),u&&(_e=sc(_e,u,y,X)),de-=gt,X&&de<z){var Re=pr(_e,Je);return dc(e,t,Fa,J.placeholder,r,_e,Re,x,v,z-de)}var Rt=E?r:this,rr=$?Rt[e]:e;return de=_e.length,x?_e=P_(_e,x):Z&&de>1&&_e.reverse(),S&&v<de&&(_e.length=v),this&&this!==We&&this instanceof J&&(rr=oe||Os(rr)),rr.apply(Rt,_e)}return J}function cc(e,t){return function(r,i){return jy(r,e,t(i),{})}}function Ba(e,t){return function(r,i){var p;if(r===s&&i===s)return t;if(r!==s&&(p=r),i!==s){if(p===s)return i;typeof r=="string"||typeof i=="string"?(r=yt(r),i=yt(i)):(r=Xl(r),i=Xl(i)),p=e(r,i)}return p}}function yi(e){return Zt(function(t){return t=Ce(t,ut(Y())),ce(function(r){var i=this;return e(t,function(p){return mt(p,i,r)})})})}function Ua(e,t){t=t===s?" ":yt(t);var r=t.length;if(r<2)return r?oi(t,e):t;var i=oi(t,Aa(e/Wr(t)));return Hr(t)?_r(Mt(i),0,e).join(""):i.slice(0,e)}function g_(e,t,r,i){var p=t&H,u=Os(e);function y(){for(var x=-1,v=arguments.length,z=-1,S=i.length,E=D(S+v),$=this&&this!==We&&this instanceof y?u:e;++z<S;)E[z]=i[z];for(;v--;)E[z++]=arguments[++x];return mt($,p?r:this,E)}return y}function pc(e){return function(t,r,i){return i&&typeof i!="number"&&Ze(t,r,i)&&(r=i=s),t=tr(t),r===s?(r=t,t=0):r=tr(r),i=i===s?t<r?1:-1:tr(i),r_(t,r,i,e)}}function Ka(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Ct(t),r=Ct(r)),e(t,r)}}function dc(e,t,r,i,p,u,y,x,v,z){var S=t&F,E=S?y:s,$=S?s:y,X=S?u:s,Z=S?s:u;t|=S?q:U,t&=~(S?U:q),t&G||(t&=~(H|V));var oe=[e,t,p,X,E,Z,$,x,v,z],J=r.apply(s,oe);return vi(e)&&Tc(J,oe),J.placeholder=i,Dc(J,e,t)}function _i(e){var t=Ue[e];return function(r,i){if(r=Ct(r),i=i==null?0:Ve(ne(i),292),i&&Dl(r)){var p=(ve(r)+"e").split("e"),u=t(p[0]+"e"+(+p[1]+i));return p=(ve(u)+"e").split("e"),+(p[0]+"e"+(+p[1]-i))}return t(r)}}var b_=Vr&&1/ga(new Vr([,-0]))[1]==Ne?function(e){return new Vr(e)}:Oi;function mc(e){return function(t){var r=Ye(t);return r==pt?Hn(t):r==dt?Mu(t):Au(t,e(t))}}function Qt(e,t,r,i,p,u,y,x){var v=t&V;if(!v&&typeof e!="function")throw new Dt(m);var z=i?i.length:0;if(z||(t&=~(q|U),i=p=s),y=y===s?y:Ke(ne(y),0),x=x===s?x:ne(x),z-=p?p.length:0,t&U){var S=i,E=p;i=p=s}var $=v?s:bi(e),X=[e,t,r,i,p,S,E,u,y,x];if($&&N_(X,$),e=X[0],t=X[1],r=X[2],i=X[3],p=X[4],x=X[9]=X[9]===s?v?0:e.length:Ke(X[9]-z,0),!x&&t&(F|k)&&(t&=~(F|k)),!t||t==H)var Z=__(e,t,r);else t==F||t==k?Z=f_(e,t,x):(t==q||t==(H|q))&&!p.length?Z=g_(e,t,r,i):Z=Fa.apply(s,X);var oe=$?Wl:Tc;return Dc(oe(Z,X),e,t)}function uc(e,t,r,i){return e===s||Ot(e,Xr[r])&&!Te.call(i,r)?t:e}function yc(e,t,r,i,p,u){return Se(e)&&Se(t)&&(u.set(t,e),Ma(e,t,s,yc,u),u.delete(t)),e}function x_(e){return Bs(e)?s:e}function _c(e,t,r,i,p,u){var y=r&R,x=e.length,v=t.length;if(x!=v&&!(y&&v>x))return!1;var z=u.get(e),S=u.get(t);if(z&&S)return z==t&&S==e;var E=-1,$=!0,X=r&N?new Ir:s;for(u.set(e,t),u.set(t,e);++E<x;){var Z=e[E],oe=t[E];if(i)var J=y?i(oe,Z,E,t,e,u):i(Z,oe,E,e,t,u);if(J!==s){if(J)continue;$=!1;break}if(X){if(!Fn(t,function(de,_e){if(!Is(X,_e)&&(Z===de||p(Z,de,r,i,u)))return X.push(_e)})){$=!1;break}}else if(!(Z===oe||p(Z,oe,r,i,u))){$=!1;break}}return u.delete(e),u.delete(t),$}function h_(e,t,r,i,p,u,y){switch(r){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Nt:return!(e.byteLength!=t.byteLength||!u(new Ta(e),new Ta(t)));case Bt:case Ht:case Ut:return Ot(+e,+t);case Pr:return e.name==t.name&&e.message==t.message;case wr:case Wt:return e==t+"";case pt:var x=Hn;case dt:var v=i&R;if(x||(x=ga),e.size!=t.size&&!v)return!1;var z=y.get(e);if(z)return z==t;i|=N,y.set(e,t);var S=_c(x(e),x(t),i,p,u,y);return y.delete(e),S;case Fr:if(Ss)return Ss.call(e)==Ss.call(t)}return!1}function w_(e,t,r,i,p,u){var y=r&R,x=fi(e),v=x.length,z=fi(t),S=z.length;if(v!=S&&!y)return!1;for(var E=v;E--;){var $=x[E];if(!(y?$ in t:Te.call(t,$)))return!1}var X=u.get(e),Z=u.get(t);if(X&&Z)return X==t&&Z==e;var oe=!0;u.set(e,t),u.set(t,e);for(var J=y;++E<v;){$=x[E];var de=e[$],_e=t[$];if(i)var ft=y?i(_e,de,$,t,e,u):i(de,_e,$,e,t,u);if(!(ft===s?de===_e||p(de,_e,r,i,u):ft)){oe=!1;break}J||(J=$=="constructor")}if(oe&&!J){var Je=e.constructor,gt=t.constructor;Je!=gt&&"constructor"in e&&"constructor"in t&&!(typeof Je=="function"&&Je instanceof Je&&typeof gt=="function"&&gt instanceof gt)&&(oe=!1)}return u.delete(e),u.delete(t),oe}function Zt(e){return Di(wc(e,s,zc),e+"")}function fi(e){return Ml(e,je,hi)}function gi(e){return Ml(e,nt,fc)}var bi=Ca?function(e){return Ca.get(e)}:Oi;function $a(e){for(var t=e.name+"",r=Yr[t],i=Te.call(Yr,t)?r.length:0;i--;){var p=r[i],u=p.func;if(u==null||u==e)return p.name}return t}function es(e){var t=Te.call(d,"placeholder")?d:e;return t.placeholder}function Y(){var e=d.iteratee||Mi;return e=e===Mi?Rl:e,arguments.length?e(arguments[0],arguments[1]):e}function ja(e,t){var r=e.__data__;return C_(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xi(e){for(var t=je(e),r=t.length;r--;){var i=t[r],p=e[i];t[r]=[i,p,xc(p)]}return t}function Cr(e,t){var r=Eu(e,t);return Ol(r)?r:s}function v_(e){var t=Te.call(e,Dr),r=e[Dr];try{e[Dr]=s;var i=!0}catch{}var p=wa.call(e);return i&&(t?e[Dr]=r:delete e[Dr]),p}var hi=Gn?function(e){return e==null?[]:(e=De(e),lr(Gn(e),function(t){return vl.call(e,t)}))}:Ri,fc=Gn?function(e){for(var t=[];e;)cr(t,hi(e)),e=Da(e);return t}:Ri,Ye=Qe;(Xn&&Ye(new Xn(new ArrayBuffer(1)))!=or||qs&&Ye(new qs)!=pt||Vn&&Ye(Vn.resolve())!=_s||Vr&&Ye(new Vr)!=dt||Cs&&Ye(new Cs)!=ir)&&(Ye=function(e){var t=Qe(e),r=t==wt?e.constructor:s,i=r?zr(r):"";if(i)switch(i){case ay:return or;case ny:return pt;case iy:return _s;case oy:return dt;case ly:return ir}return t});function T_(e,t,r){for(var i=-1,p=r.length;++i<p;){var u=r[i],y=u.size;switch(u.type){case"drop":e+=y;break;case"dropRight":t-=y;break;case"take":t=Ve(t,e+y);break;case"takeRight":e=Ke(e,t-y);break}}return{start:e,end:t}}function D_(e){var t=e.match(Cn);return t?t[1].split(g):[]}function gc(e,t,r){t=yr(t,e);for(var i=-1,p=t.length,u=!1;++i<p;){var y=jt(t[i]);if(!(u=e!=null&&r(e,y)))break;e=e[y]}return u||++i!=p?u:(p=e==null?0:e.length,!!p&&Qa(p)&&Jt(y,p)&&(se(e)||Sr(e)))}function k_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Te.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function bc(e){return typeof e.constructor=="function"&&!Rs(e)?Qr(Da(e)):{}}function I_(e,t,r){var i=e.constructor;switch(t){case Nt:return ui(e);case Bt:case Ht:return new i(+e);case or:return c_(e,r);case Br:case Ur:case vr:case fs:case gs:case bs:case xs:case hs:case ws:return ec(e,r);case pt:return new i;case Ut:case Wt:return new i(e);case wr:return p_(e);case dt:return new i;case Fr:return d_(e)}}function A_(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(qn,`{
119
119
  /* [wrapped with `+t+`] */
120
- `)}function q_(e){return se(e)||zr(e)||!!(Tl&&e&&e[Tl])}function Jt(e,t){var r=typeof e;return t=t??Pe,!!t&&(r=="number"||r!="symbol"&&Le.test(e))&&e>-1&&e%1==0&&e<t}function Ze(e,t,r){if(!Se(r))return!1;var i=typeof t;return(i=="number"?at(r)&&Jt(t,r.length):i=="string"&&t in r)?Ot(r[t],e):!1}function wi(e,t){if(se(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_t(e)?!0:da.test(e)||!pa.test(e)||t!=null&&e in De(t)}function C_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vi(e){var t=$a(e),r=d[t];if(typeof r!="function"||!(t in ue.prototype))return!1;if(e===r)return!0;var i=bi(r);return!!i&&e===i[0]}function z_(e){return!!xl&&xl in e}var S_=xa?er:Fi;function Rs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Xr;return e===r}function xc(e){return e===e&&!Se(e)}function hc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==s||e in De(r))}}function E_(e){var t=Va(e,function(i){return r.size===b&&r.clear(),i}),r=t.cache;return t}function N_(e,t){var r=e[1],i=t[1],p=r|i,u=p<(W|V|j),y=i==j&&r==F||i==j&&r==ae&&e[7].length<=t[8]||i==(j|ae)&&t[7].length<=t[8]&&r==F;if(!(u||y))return e;i&W&&(e[2]=t[2],p|=r&W?0:G);var x=t[3];if(x){var v=e[3];e[3]=v?rc(v,x,t[4]):x,e[4]=v?pr(e[3],h):t[4]}return x=t[5],x&&(v=e[5],e[5]=v?sc(v,x,t[6]):x,e[6]=v?pr(e[5],h):t[6]),x=t[7],x&&(e[7]=x),i&j&&(e[8]=e[8]==null?t[8]:Ve(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=p,e}function L_(e){var t=[];if(e!=null)for(var r in De(e))t.push(r);return t}function M_(e){return wa.call(e)}function wc(e,t,r){return t=Ke(t===s?e.length-1:t,0),function(){for(var i=arguments,p=-1,u=Ke(i.length-t,0),y=D(u);++p<u;)y[p]=i[t+p];p=-1;for(var x=D(t+1);++p<t;)x[p]=i[p];return x[t]=r(y),mt(e,this,x)}}function vc(e,t){return t.length<2?e:Ar(e,At(t,0,-1))}function P_(e,t){for(var r=e.length,i=Ve(t.length,r),p=st(e);i--;){var u=t[i];e[i]=Jt(u,r)?p[u]:s}return e}function Ti(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Tc=kc(Wl),Fs=Qu||function(e,t){return We.setTimeout(e,t)},Di=kc(n_);function Dc(e,t,r){var i=t+"";return Di(e,A_(i,O_(D_(i),r)))}function kc(e){var t=0,r=0;return function(){var i=ty(),p=$e-(i-r);if(r=i,p>0){if(++t>=St)return arguments[0]}else t=0;return e.apply(s,arguments)}}function Ha(e,t){var r=-1,i=e.length,p=i-1;for(t=t===s?i:t;++r<t;){var u=ii(r,p),y=e[u];e[u]=e[r],e[r]=y}return e.length=t,e}var Ic=E_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(In,function(r,i,p,u){t.push(p?u.replace(ee,"$1"):i||r)}),t});function jt(e){if(typeof e=="string"||_t(e))return e;var t=e+"";return t=="0"&&1/e==-Ne?"-0":t}function Cr(e){if(e!=null){try{return ha.call(e)}catch{}try{return e+""}catch{}}return""}function O_(e,t){return Tt(ht,function(r){var i="_."+r[0];t&r[1]&&!_a(e,i)&&e.push(i)}),e.sort()}function Ac(e){if(e instanceof ue)return e.clone();var t=new kt(e.__wrapped__,e.__chain__);return t.__actions__=st(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function R_(e,t,r){(r?Ze(e,t,r):t===s)?t=1:t=Ke(ne(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var p=0,u=0,y=D(Aa(i/t));p<i;)y[u++]=At(e,p,p+=t);return y}function F_(e){for(var t=-1,r=e==null?0:e.length,i=0,p=[];++t<r;){var u=e[t];u&&(p[i++]=u)}return p}function B_(){var e=arguments.length;if(!e)return[];for(var t=D(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return cr(se(r)?st(r):[r],Ge(t,1))}var U_=ce(function(e,t){return Oe(e)?Ns(e,Ge(t,1,Oe,!0)):[]}),K_=ce(function(e,t){var r=qt(t);return Oe(r)&&(r=s),Oe(e)?Ns(e,Ge(t,1,Oe,!0),Y(r,2)):[]}),$_=ce(function(e,t){var r=qt(t);return Oe(r)&&(r=s),Oe(e)?Ns(e,Ge(t,1,Oe,!0),s,r):[]});function j_(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:ne(t),At(e,t<0?0:t,i)):[]}function H_(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:ne(t),t=i-t,At(e,0,t<0?0:t)):[]}function W_(e,t){return e&&e.length?Oa(e,Y(t,3),!0,!0):[]}function G_(e,t){return e&&e.length?Oa(e,Y(t,3),!0):[]}function X_(e,t,r,i){var p=e==null?0:e.length;return p?(r&&typeof r!="number"&&Ze(e,t,r)&&(r=0,i=p),By(e,t,r,i)):[]}function qc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=r==null?0:ne(r);return p<0&&(p=Ke(i+p,0)),fa(e,Y(t,3),p)}function Cc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=i-1;return r!==s&&(p=ne(r),p=r<0?Ke(i+p,0):Ve(p,i-1)),fa(e,Y(t,3),p,!0)}function zc(e){var t=e==null?0:e.length;return t?Ge(e,1):[]}function V_(e){var t=e==null?0:e.length;return t?Ge(e,Ne):[]}function Y_(e,t){var r=e==null?0:e.length;return r?(t=t===s?1:ne(t),Ge(e,t)):[]}function Q_(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var p=e[t];i[p[0]]=p[1]}return i}function Sc(e){return e&&e.length?e[0]:s}function Z_(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=r==null?0:ne(r);return p<0&&(p=Ke(i+p,0)),jr(e,t,p)}function J_(e){var t=e==null?0:e.length;return t?At(e,0,-1):[]}var ef=ce(function(e){var t=Ce(e,di);return t.length&&t[0]===e[0]?ti(t):[]}),tf=ce(function(e){var t=qt(e),r=Ce(e,di);return t===qt(r)?t=s:r.pop(),r.length&&r[0]===e[0]?ti(r,Y(t,2)):[]}),rf=ce(function(e){var t=qt(e),r=Ce(e,di);return t=typeof t=="function"?t:s,t&&r.pop(),r.length&&r[0]===e[0]?ti(r,s,t):[]});function sf(e,t){return e==null?"":Ju.call(e,t)}function qt(e){var t=e==null?0:e.length;return t?e[t-1]:s}function af(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=i;return r!==s&&(p=ne(r),p=p<0?Ke(i+p,0):Ve(p,i-1)),t===t?Ou(e,t,p):fa(e,dl,p,!0)}function nf(e,t){return e&&e.length?Kl(e,ne(t)):s}var of=ce(Ec);function Ec(e,t){return e&&e.length&&t&&t.length?ni(e,t):e}function lf(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,Y(r,2)):e}function cf(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,s,r):e}var pf=Zt(function(e,t){var r=e==null?0:e.length,i=Qn(e,t);return Hl(e,Ce(t,function(p){return Jt(p,r)?+p:p}).sort(tc)),i});function df(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,p=[],u=e.length;for(t=Y(t,3);++i<u;){var y=e[i];t(y,i,e)&&(r.push(y),p.push(i))}return Hl(e,p),r}function ki(e){return e==null?e:sy.call(e)}function mf(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Ze(e,t,r)?(t=0,r=i):(t=t==null?0:ne(t),r=r===s?i:ne(r)),At(e,t,r)):[]}function uf(e,t){return Pa(e,t)}function yf(e,t,r){return li(e,t,Y(r,2))}function _f(e,t){var r=e==null?0:e.length;if(r){var i=Pa(e,t);if(i<r&&Ot(e[i],t))return i}return-1}function ff(e,t){return Pa(e,t,!0)}function gf(e,t,r){return li(e,t,Y(r,2),!0)}function bf(e,t){var r=e==null?0:e.length;if(r){var i=Pa(e,t,!0)-1;if(Ot(e[i],t))return i}return-1}function xf(e){return e&&e.length?Gl(e):[]}function hf(e,t){return e&&e.length?Gl(e,Y(t,2)):[]}function wf(e){var t=e==null?0:e.length;return t?At(e,1,t):[]}function vf(e,t,r){return e&&e.length?(t=r||t===s?1:ne(t),At(e,0,t<0?0:t)):[]}function Tf(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:ne(t),t=i-t,At(e,t<0?0:t,i)):[]}function Df(e,t){return e&&e.length?Oa(e,Y(t,3),!1,!0):[]}function kf(e,t){return e&&e.length?Oa(e,Y(t,3)):[]}var If=ce(function(e){return ur(Ge(e,1,Oe,!0))}),Af=ce(function(e){var t=qt(e);return Oe(t)&&(t=s),ur(Ge(e,1,Oe,!0),Y(t,2))}),qf=ce(function(e){var t=qt(e);return t=typeof t=="function"?t:s,ur(Ge(e,1,Oe,!0),s,t)});function Cf(e){return e&&e.length?ur(e):[]}function zf(e,t){return e&&e.length?ur(e,Y(t,2)):[]}function Sf(e,t){return t=typeof t=="function"?t:s,e&&e.length?ur(e,s,t):[]}function Ii(e){if(!(e&&e.length))return[];var t=0;return e=lr(e,function(r){if(Oe(r))return t=Ke(r.length,t),!0}),$n(t,function(r){return Ce(e,Bn(r))})}function Nc(e,t){if(!(e&&e.length))return[];var r=Ii(e);return t==null?r:Ce(r,function(i){return mt(t,s,i)})}var Ef=ce(function(e,t){return Oe(e)?Ns(e,t):[]}),Nf=ce(function(e){return pi(lr(e,Oe))}),Lf=ce(function(e){var t=qt(e);return Oe(t)&&(t=s),pi(lr(e,Oe),Y(t,2))}),Mf=ce(function(e){var t=qt(e);return t=typeof t=="function"?t:s,pi(lr(e,Oe),s,t)}),Pf=ce(Ii);function Of(e,t){return Ql(e||[],t||[],Es)}function Rf(e,t){return Ql(e||[],t||[],Ps)}var Ff=ce(function(e){var t=e.length,r=t>1?e[t-1]:s;return r=typeof r=="function"?(e.pop(),r):s,Nc(e,r)});function Lc(e){var t=d(e);return t.__chain__=!0,t}function Bf(e,t){return t(e),e}function Wa(e,t){return t(e)}var Uf=Zt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,p=function(u){return Qn(u,e)};return t>1||this.__actions__.length||!(i instanceof ue)||!Jt(r)?this.thru(p):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:Wa,args:[p],thisArg:s}),new kt(i,this.__chain__).thru(function(u){return t&&!u.length&&u.push(s),u}))});function Kf(){return Lc(this)}function $f(){return new kt(this.value(),this.__chain__)}function jf(){this.__values__===s&&(this.__values__=Xc(this.value()));var e=this.__index__>=this.__values__.length,t=e?s:this.__values__[this.__index__++];return{done:e,value:t}}function Hf(){return this}function Wf(e){for(var t,r=this;r instanceof Sa;){var i=Ac(r);i.__index__=0,i.__values__=s,t?p.__wrapped__=i:t=i;var p=i;r=r.__wrapped__}return p.__wrapped__=e,t}function Gf(){var e=this.__wrapped__;if(e instanceof ue){var t=e;return this.__actions__.length&&(t=new ue(this)),t=t.reverse(),t.__actions__.push({func:Wa,args:[ki],thisArg:s}),new kt(t,this.__chain__)}return this.thru(ki)}function Xf(){return Yl(this.__wrapped__,this.__actions__)}var Vf=Ra(function(e,t,r){Te.call(e,r)?++e[r]:Yt(e,r,1)});function Yf(e,t,r){var i=se(e)?cl:Fy;return r&&Ze(e,t,r)&&(t=s),i(e,Y(t,3))}function Qf(e,t){var r=se(e)?lr:Nl;return r(e,Y(t,3))}var Zf=oc(qc),Jf=oc(Cc);function eg(e,t){return Ge(Ga(e,t),1)}function tg(e,t){return Ge(Ga(e,t),Ne)}function rg(e,t,r){return r=r===s?1:ne(r),Ge(Ga(e,t),r)}function Mc(e,t){var r=se(e)?Tt:mr;return r(e,Y(t,3))}function Pc(e,t){var r=se(e)?hu:El;return r(e,Y(t,3))}var sg=Ra(function(e,t,r){Te.call(e,r)?e[r].push(t):Yt(e,r,[t])});function ag(e,t,r,i){e=at(e)?e:rs(e),r=r&&!i?ne(r):0;var p=e.length;return r<0&&(r=Ke(p+r,0)),Za(e)?r<=p&&e.indexOf(t,r)>-1:!!p&&jr(e,t,r)>-1}var ng=ce(function(e,t,r){var i=-1,p=typeof t=="function",u=at(e)?D(e.length):[];return mr(e,function(y){u[++i]=p?mt(t,y,r):Ls(y,t,r)}),u}),ig=Ra(function(e,t,r){Yt(e,r,t)});function Ga(e,t){var r=se(e)?Ce:Fl;return r(e,Y(t,3))}function og(e,t,r,i){return e==null?[]:(se(t)||(t=t==null?[]:[t]),r=i?s:r,se(r)||(r=r==null?[]:[r]),$l(e,t,r))}var lg=Ra(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function cg(e,t,r){var i=se(e)?Rn:ul,p=arguments.length<3;return i(e,Y(t,4),r,p,mr)}function pg(e,t,r){var i=se(e)?wu:ul,p=arguments.length<3;return i(e,Y(t,4),r,p,El)}function dg(e,t){var r=se(e)?lr:Nl;return r(e,Ya(Y(t,3)))}function mg(e){var t=se(e)?ql:s_;return t(e)}function ug(e,t,r){(r?Ze(e,t,r):t===s)?t=1:t=ne(t);var i=se(e)?Ly:a_;return i(e,t)}function yg(e){var t=se(e)?My:i_;return t(e)}function _g(e){if(e==null)return 0;if(at(e))return Za(e)?Wr(e):e.length;var t=Ye(e);return t==pt||t==dt?e.size:si(e).length}function fg(e,t,r){var i=se(e)?Fn:o_;return r&&Ze(e,t,r)&&(t=s),i(e,Y(t,3))}var gg=ce(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ze(e,t[0],t[1])?t=[]:r>2&&Ze(t[0],t[1],t[2])&&(t=[t[0]]),$l(e,Ge(t,1),[])}),Xa=Yu||function(){return We.Date.now()};function bg(e,t){if(typeof t!="function")throw new Dt(m);return e=ne(e),function(){if(--e<1)return t.apply(this,arguments)}}function Oc(e,t,r){return t=r?s:t,t=e&&t==null?e.length:t,Qt(e,j,s,s,s,s,t)}function Rc(e,t){var r;if(typeof t!="function")throw new Dt(m);return e=ne(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=s),r}}var Ai=ce(function(e,t,r){var i=W;if(r.length){var p=pr(r,es(Ai));i|=q}return Qt(e,i,t,r,p)}),Fc=ce(function(e,t,r){var i=W|V;if(r.length){var p=pr(r,es(Fc));i|=q}return Qt(t,i,e,r,p)});function Bc(e,t,r){t=r?s:t;var i=Qt(e,F,s,s,s,s,s,t);return i.placeholder=Bc.placeholder,i}function Uc(e,t,r){t=r?s:t;var i=Qt(e,k,s,s,s,s,s,t);return i.placeholder=Uc.placeholder,i}function Kc(e,t,r){var i,p,u,y,x,v,z=0,S=!1,E=!1,$=!0;if(typeof e!="function")throw new Dt(m);t=Ct(t)||0,Se(r)&&(S=!!r.leading,E="maxWait"in r,u=E?Ke(Ct(r.maxWait)||0,t):u,$="trailing"in r?!!r.trailing:$);function X(Re){var Rt=i,rr=p;return i=p=s,z=Re,y=e.apply(rr,Rt),y}function Z(Re){return z=Re,x=Fs(de,t),S?X(Re):y}function oe(Re){var Rt=Re-v,rr=Re-z,op=t-Rt;return E?Ve(op,u-rr):op}function J(Re){var Rt=Re-v,rr=Re-z;return v===s||Rt>=t||Rt<0||E&&rr>=u}function de(){var Re=Xa();if(J(Re))return _e(Re);x=Fs(de,oe(Re))}function _e(Re){return x=s,$&&i?X(Re):(i=p=s,y)}function ft(){x!==s&&Zl(x),z=0,i=v=p=x=s}function Je(){return x===s?y:_e(Xa())}function gt(){var Re=Xa(),Rt=J(Re);if(i=arguments,p=this,v=Re,Rt){if(x===s)return Z(v);if(E)return Zl(x),x=Fs(de,t),X(v)}return x===s&&(x=Fs(de,t)),y}return gt.cancel=ft,gt.flush=Je,gt}var xg=ce(function(e,t){return Sl(e,1,t)}),hg=ce(function(e,t,r){return Sl(e,Ct(t)||0,r)});function wg(e){return Qt(e,ye)}function Va(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Dt(m);var r=function(){var i=arguments,p=t?t.apply(this,i):i[0],u=r.cache;if(u.has(p))return u.get(p);var y=e.apply(this,i);return r.cache=u.set(p,y)||u,y};return r.cache=new(Va.Cache||Vt),r}Va.Cache=Vt;function Ya(e){if(typeof e!="function")throw new Dt(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function vg(e){return Rc(2,e)}var Tg=l_(function(e,t){t=t.length==1&&se(t[0])?Ce(t[0],ut(Y())):Ce(Ge(t,1),ut(Y()));var r=t.length;return ce(function(i){for(var p=-1,u=Ve(i.length,r);++p<u;)i[p]=t[p].call(this,i[p]);return mt(e,this,i)})}),qi=ce(function(e,t){var r=pr(t,es(qi));return Qt(e,q,s,t,r)}),$c=ce(function(e,t){var r=pr(t,es($c));return Qt(e,U,s,t,r)}),Dg=Zt(function(e,t){return Qt(e,ae,s,s,s,t)});function kg(e,t){if(typeof e!="function")throw new Dt(m);return t=t===s?t:ne(t),ce(e,t)}function Ig(e,t){if(typeof e!="function")throw new Dt(m);return t=t==null?0:Ke(ne(t),0),ce(function(r){var i=r[t],p=_r(r,0,t);return i&&cr(p,i),mt(e,this,p)})}function Ag(e,t,r){var i=!0,p=!0;if(typeof e!="function")throw new Dt(m);return Se(r)&&(i="leading"in r?!!r.leading:i,p="trailing"in r?!!r.trailing:p),Kc(e,t,{leading:i,maxWait:t,trailing:p})}function qg(e){return Oc(e,1)}function Cg(e,t){return qi(mi(t),e)}function zg(){if(!arguments.length)return[];var e=arguments[0];return se(e)?e:[e]}function Sg(e){return It(e,B)}function Eg(e,t){return t=typeof t=="function"?t:s,It(e,B,t)}function Ng(e){return It(e,T|B)}function Lg(e,t){return t=typeof t=="function"?t:s,It(e,T|B,t)}function Mg(e,t){return t==null||zl(e,t,je(t))}function Ot(e,t){return e===t||e!==e&&t!==t}var Pg=Ka(ei),Og=Ka(function(e,t){return e>=t}),zr=Pl(function(){return arguments}())?Pl:function(e){return Me(e)&&Te.call(e,"callee")&&!vl.call(e,"callee")},se=D.isArray,Rg=sl?ut(sl):Hy;function at(e){return e!=null&&Qa(e.length)&&!er(e)}function Oe(e){return Me(e)&&at(e)}function Fg(e){return e===!0||e===!1||Me(e)&&Qe(e)==Bt}var fr=Zu||Fi,Bg=al?ut(al):Wy;function Ug(e){return Me(e)&&e.nodeType===1&&!Bs(e)}function Kg(e){if(e==null)return!0;if(at(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||fr(e)||ts(e)||zr(e)))return!e.length;var t=Ye(e);if(t==pt||t==dt)return!e.size;if(Rs(e))return!si(e).length;for(var r in e)if(Te.call(e,r))return!1;return!0}function $g(e,t){return Ms(e,t)}function jg(e,t,r){r=typeof r=="function"?r:s;var i=r?r(e,t):s;return i===s?Ms(e,t,s,r):!!i}function Ci(e){if(!Me(e))return!1;var t=Qe(e);return t==Pr||t==Mr||typeof e.message=="string"&&typeof e.name=="string"&&!Bs(e)}function Hg(e){return typeof e=="number"&&Dl(e)}function er(e){if(!Se(e))return!1;var t=Qe(e);return t==xr||t==aa||t==ys||t==Rr}function jc(e){return typeof e=="number"&&e==ne(e)}function Qa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Pe}function Se(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Me(e){return e!=null&&typeof e=="object"}var Hc=nl?ut(nl):Xy;function Wg(e,t){return e===t||ri(e,t,xi(t))}function Gg(e,t,r){return r=typeof r=="function"?r:s,ri(e,t,xi(t),r)}function Xg(e){return Wc(e)&&e!=+e}function Vg(e){if(S_(e))throw new re(c);return Ol(e)}function Yg(e){return e===null}function Qg(e){return e==null}function Wc(e){return typeof e=="number"||Me(e)&&Qe(e)==Ut}function Bs(e){if(!Me(e)||Qe(e)!=wt)return!1;var t=Da(e);if(t===null)return!0;var r=Te.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ha.call(r)==Wu}var zi=il?ut(il):Vy;function Zg(e){return jc(e)&&e>=-Pe&&e<=Pe}var Gc=ol?ut(ol):Yy;function Za(e){return typeof e=="string"||!se(e)&&Me(e)&&Qe(e)==Wt}function _t(e){return typeof e=="symbol"||Me(e)&&Qe(e)==Fr}var ts=ll?ut(ll):Qy;function Jg(e){return e===s}function eb(e){return Me(e)&&Ye(e)==ir}function tb(e){return Me(e)&&Qe(e)==na}var rb=Ka(ai),sb=Ka(function(e,t){return e<=t});function Xc(e){if(!e)return[];if(at(e))return Za(e)?Mt(e):st(e);if(As&&e[As])return Lu(e[As]());var t=Ye(e),r=t==pt?Hn:t==dt?ga:rs;return r(e)}function tr(e){if(!e)return e===0?e:0;if(e=Ct(e),e===Ne||e===-Ne){var t=e<0?-1:1;return t*ct}return e===e?e:0}function ne(e){var t=tr(e),r=t%1;return t===t?r?t-r:t:0}function Vc(e){return e?Ir(ne(e),0,te):0}function Ct(e){if(typeof e=="number")return e;if(_t(e))return Et;if(Se(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Se(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yl(e);var r=pe.test(e);return r||ze.test(e)?gu(e.slice(2),r?2:8):me.test(e)?Et:+e}function Yc(e){return $t(e,nt(e))}function ab(e){return e?Ir(ne(e),-Pe,Pe):e===0?e:0}function ve(e){return e==null?"":yt(e)}var nb=Zr(function(e,t){if(Rs(t)||at(t)){$t(t,je(t),e);return}for(var r in t)Te.call(t,r)&&Es(e,r,t[r])}),Qc=Zr(function(e,t){$t(t,nt(t),e)}),Ja=Zr(function(e,t,r,i){$t(t,nt(t),e,i)}),ib=Zr(function(e,t,r,i){$t(t,je(t),e,i)}),ob=Zt(Qn);function lb(e,t){var r=Qr(e);return t==null?r:Cl(r,t)}var cb=ce(function(e,t){e=De(e);var r=-1,i=t.length,p=i>2?t[2]:s;for(p&&Ze(t[0],t[1],p)&&(i=1);++r<i;)for(var u=t[r],y=nt(u),x=-1,v=y.length;++x<v;){var z=y[x],S=e[z];(S===s||Ot(S,Xr[z])&&!Te.call(e,z))&&(e[z]=u[z])}return e}),pb=ce(function(e){return e.push(s,yc),mt(Zc,s,e)});function db(e,t){return pl(e,Y(t,3),Kt)}function mb(e,t){return pl(e,Y(t,3),Jn)}function ub(e,t){return e==null?e:Zn(e,Y(t,3),nt)}function yb(e,t){return e==null?e:Ll(e,Y(t,3),nt)}function _b(e,t){return e&&Kt(e,Y(t,3))}function fb(e,t){return e&&Jn(e,Y(t,3))}function gb(e){return e==null?[]:La(e,je(e))}function bb(e){return e==null?[]:La(e,nt(e))}function Si(e,t,r){var i=e==null?s:Ar(e,t);return i===s?r:i}function xb(e,t){return e!=null&&gc(e,t,Uy)}function Ei(e,t){return e!=null&&gc(e,t,Ky)}var hb=cc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=wa.call(t)),e[t]=r},Li(it)),wb=cc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=wa.call(t)),Te.call(e,t)?e[t].push(r):e[t]=[r]},Y),vb=ce(Ls);function je(e){return at(e)?Al(e):si(e)}function nt(e){return at(e)?Al(e,!0):Zy(e)}function Tb(e,t){var r={};return t=Y(t,3),Kt(e,function(i,p,u){Yt(r,t(i,p,u),i)}),r}function Db(e,t){var r={};return t=Y(t,3),Kt(e,function(i,p,u){Yt(r,p,t(i,p,u))}),r}var kb=Zr(function(e,t,r){Ma(e,t,r)}),Zc=Zr(function(e,t,r,i){Ma(e,t,r,i)}),Ib=Zt(function(e,t){var r={};if(e==null)return r;var i=!1;t=Ce(t,function(u){return u=yr(u,e),i||(i=u.length>1),u}),$t(e,gi(e),r),i&&(r=It(r,T|P|B,x_));for(var p=t.length;p--;)ci(r,t[p]);return r});function Ab(e,t){return Jc(e,Ya(Y(t)))}var qb=Zt(function(e,t){return e==null?{}:e_(e,t)});function Jc(e,t){if(e==null)return{};var r=Ce(gi(e),function(i){return[i]});return t=Y(t),jl(e,r,function(i,p){return t(i,p[0])})}function Cb(e,t,r){t=yr(t,e);var i=-1,p=t.length;for(p||(p=1,e=s);++i<p;){var u=e==null?s:e[jt(t[i])];u===s&&(i=p,u=r),e=er(u)?u.call(e):u}return e}function zb(e,t,r){return e==null?e:Ps(e,t,r)}function Sb(e,t,r,i){return i=typeof i=="function"?i:s,e==null?e:Ps(e,t,r,i)}var ep=mc(je),tp=mc(nt);function Eb(e,t,r){var i=se(e),p=i||fr(e)||ts(e);if(t=Y(t,4),r==null){var u=e&&e.constructor;p?r=i?new u:[]:Se(e)?r=er(u)?Qr(Da(e)):{}:r={}}return(p?Tt:Kt)(e,function(y,x,v){return t(r,y,x,v)}),r}function Nb(e,t){return e==null?!0:ci(e,t)}function Lb(e,t,r){return e==null?e:Vl(e,t,mi(r))}function Mb(e,t,r,i){return i=typeof i=="function"?i:s,e==null?e:Vl(e,t,mi(r),i)}function rs(e){return e==null?[]:jn(e,je(e))}function Pb(e){return e==null?[]:jn(e,nt(e))}function Ob(e,t,r){return r===s&&(r=t,t=s),r!==s&&(r=Ct(r),r=r===r?r:0),t!==s&&(t=Ct(t),t=t===t?t:0),Ir(Ct(e),t,r)}function Rb(e,t,r){return t=tr(t),r===s?(r=t,t=0):r=tr(r),e=Ct(e),$y(e,t,r)}function Fb(e,t,r){if(r&&typeof r!="boolean"&&Ze(e,t,r)&&(t=r=s),r===s&&(typeof t=="boolean"?(r=t,t=s):typeof e=="boolean"&&(r=e,e=s)),e===s&&t===s?(e=0,t=1):(e=tr(e),t===s?(t=e,e=0):t=tr(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var p=kl();return Ve(e+p*(t-e+fu("1e-"+((p+"").length-1))),t)}return ii(e,t)}var Bb=Jr(function(e,t,r){return t=t.toLowerCase(),e+(r?rp(t):t)});function rp(e){return Ni(ve(e).toLowerCase())}function sp(e){return e=ve(e),e&&e.replace(tt,Cu).replace(iu,"")}function Ub(e,t,r){e=ve(e),t=yt(t);var i=e.length;r=r===s?i:Ir(ne(r),0,i);var p=r;return r-=t.length,r>=0&&e.slice(r,p)==t}function Kb(e){return e=ve(e),e&&oa.test(e)?e.replace(Kr,zu):e}function $b(e){return e=ve(e),e&&ma.test(e)?e.replace(Ds,"\\$&"):e}var jb=Jr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Hb=Jr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Wb=ic("toLowerCase");function Gb(e,t,r){e=ve(e),t=ne(t);var i=t?Wr(e):0;if(!t||i>=t)return e;var p=(t-i)/2;return Ua(qa(p),r)+e+Ua(Aa(p),r)}function Xb(e,t,r){e=ve(e),t=ne(t);var i=t?Wr(e):0;return t&&i<t?e+Ua(t-i,r):e}function Vb(e,t,r){e=ve(e),t=ne(t);var i=t?Wr(e):0;return t&&i<t?Ua(t-i,r)+e:e}function Yb(e,t,r){return r||t==null?t=0:t&&(t=+t),ry(ve(e).replace(ks,""),t||0)}function Qb(e,t,r){return(r?Ze(e,t,r):t===s)?t=1:t=ne(t),oi(ve(e),t)}function Zb(){var e=arguments,t=ve(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Jb=Jr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function ex(e,t,r){return r&&typeof r!="number"&&Ze(e,t,r)&&(t=r=s),r=r===s?te:r>>>0,r?(e=ve(e),e&&(typeof t=="string"||t!=null&&!zi(t))&&(t=yt(t),!t&&Hr(e))?_r(Mt(e),0,r):e.split(t,r)):[]}var tx=Jr(function(e,t,r){return e+(r?" ":"")+Ni(t)});function rx(e,t,r){return e=ve(e),r=r==null?0:Ir(ne(r),0,e.length),t=yt(t),e.slice(r,r+t.length)==t}function sx(e,t,r){var i=d.templateSettings;r&&Ze(e,t,r)&&(t=s),e=ve(e),t=Ja({},t,i,uc);var p=Ja({},t.imports,i.imports,uc),u=je(p),y=jn(p,u),x,v,z=0,S=t.interpolate||Lt,E="__p += '",$=Wn((t.escape||Lt).source+"|"+S.source+"|"+(S===ca?fe:Lt).source+"|"+(t.evaluate||Lt).source+"|$","g"),X="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++du+"]")+`
120
+ `)}function q_(e){return se(e)||Sr(e)||!!(Tl&&e&&e[Tl])}function Jt(e,t){var r=typeof e;return t=t??Pe,!!t&&(r=="number"||r!="symbol"&&Le.test(e))&&e>-1&&e%1==0&&e<t}function Ze(e,t,r){if(!Se(r))return!1;var i=typeof t;return(i=="number"?at(r)&&Jt(t,r.length):i=="string"&&t in r)?Ot(r[t],e):!1}function wi(e,t){if(se(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_t(e)?!0:da.test(e)||!pa.test(e)||t!=null&&e in De(t)}function C_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vi(e){var t=$a(e),r=d[t];if(typeof r!="function"||!(t in ue.prototype))return!1;if(e===r)return!0;var i=bi(r);return!!i&&e===i[0]}function z_(e){return!!xl&&xl in e}var S_=xa?er:Fi;function Rs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Xr;return e===r}function xc(e){return e===e&&!Se(e)}function hc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==s||e in De(r))}}function E_(e){var t=Va(e,function(i){return r.size===b&&r.clear(),i}),r=t.cache;return t}function N_(e,t){var r=e[1],i=t[1],p=r|i,u=p<(H|V|j),y=i==j&&r==F||i==j&&r==ae&&e[7].length<=t[8]||i==(j|ae)&&t[7].length<=t[8]&&r==F;if(!(u||y))return e;i&H&&(e[2]=t[2],p|=r&H?0:G);var x=t[3];if(x){var v=e[3];e[3]=v?rc(v,x,t[4]):x,e[4]=v?pr(e[3],h):t[4]}return x=t[5],x&&(v=e[5],e[5]=v?sc(v,x,t[6]):x,e[6]=v?pr(e[5],h):t[6]),x=t[7],x&&(e[7]=x),i&j&&(e[8]=e[8]==null?t[8]:Ve(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=p,e}function L_(e){var t=[];if(e!=null)for(var r in De(e))t.push(r);return t}function M_(e){return wa.call(e)}function wc(e,t,r){return t=Ke(t===s?e.length-1:t,0),function(){for(var i=arguments,p=-1,u=Ke(i.length-t,0),y=D(u);++p<u;)y[p]=i[t+p];p=-1;for(var x=D(t+1);++p<t;)x[p]=i[p];return x[t]=r(y),mt(e,this,x)}}function vc(e,t){return t.length<2?e:qr(e,At(t,0,-1))}function P_(e,t){for(var r=e.length,i=Ve(t.length,r),p=st(e);i--;){var u=t[i];e[i]=Jt(u,r)?p[u]:s}return e}function Ti(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Tc=kc(Wl),Fs=Qu||function(e,t){return We.setTimeout(e,t)},Di=kc(n_);function Dc(e,t,r){var i=t+"";return Di(e,A_(i,O_(D_(i),r)))}function kc(e){var t=0,r=0;return function(){var i=ty(),p=$e-(i-r);if(r=i,p>0){if(++t>=St)return arguments[0]}else t=0;return e.apply(s,arguments)}}function Ha(e,t){var r=-1,i=e.length,p=i-1;for(t=t===s?i:t;++r<t;){var u=ii(r,p),y=e[u];e[u]=e[r],e[r]=y}return e.length=t,e}var Ic=E_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(In,function(r,i,p,u){t.push(p?u.replace(ee,"$1"):i||r)}),t});function jt(e){if(typeof e=="string"||_t(e))return e;var t=e+"";return t=="0"&&1/e==-Ne?"-0":t}function zr(e){if(e!=null){try{return ha.call(e)}catch{}try{return e+""}catch{}}return""}function O_(e,t){return Tt(ht,function(r){var i="_."+r[0];t&r[1]&&!_a(e,i)&&e.push(i)}),e.sort()}function Ac(e){if(e instanceof ue)return e.clone();var t=new kt(e.__wrapped__,e.__chain__);return t.__actions__=st(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function R_(e,t,r){(r?Ze(e,t,r):t===s)?t=1:t=Ke(ne(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var p=0,u=0,y=D(Aa(i/t));p<i;)y[u++]=At(e,p,p+=t);return y}function F_(e){for(var t=-1,r=e==null?0:e.length,i=0,p=[];++t<r;){var u=e[t];u&&(p[i++]=u)}return p}function B_(){var e=arguments.length;if(!e)return[];for(var t=D(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return cr(se(r)?st(r):[r],Ge(t,1))}var U_=ce(function(e,t){return Oe(e)?Ns(e,Ge(t,1,Oe,!0)):[]}),K_=ce(function(e,t){var r=qt(t);return Oe(r)&&(r=s),Oe(e)?Ns(e,Ge(t,1,Oe,!0),Y(r,2)):[]}),$_=ce(function(e,t){var r=qt(t);return Oe(r)&&(r=s),Oe(e)?Ns(e,Ge(t,1,Oe,!0),s,r):[]});function j_(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:ne(t),At(e,t<0?0:t,i)):[]}function H_(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:ne(t),t=i-t,At(e,0,t<0?0:t)):[]}function W_(e,t){return e&&e.length?Oa(e,Y(t,3),!0,!0):[]}function G_(e,t){return e&&e.length?Oa(e,Y(t,3),!0):[]}function X_(e,t,r,i){var p=e==null?0:e.length;return p?(r&&typeof r!="number"&&Ze(e,t,r)&&(r=0,i=p),By(e,t,r,i)):[]}function qc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=r==null?0:ne(r);return p<0&&(p=Ke(i+p,0)),fa(e,Y(t,3),p)}function Cc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=i-1;return r!==s&&(p=ne(r),p=r<0?Ke(i+p,0):Ve(p,i-1)),fa(e,Y(t,3),p,!0)}function zc(e){var t=e==null?0:e.length;return t?Ge(e,1):[]}function V_(e){var t=e==null?0:e.length;return t?Ge(e,Ne):[]}function Y_(e,t){var r=e==null?0:e.length;return r?(t=t===s?1:ne(t),Ge(e,t)):[]}function Q_(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var p=e[t];i[p[0]]=p[1]}return i}function Sc(e){return e&&e.length?e[0]:s}function Z_(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=r==null?0:ne(r);return p<0&&(p=Ke(i+p,0)),jr(e,t,p)}function J_(e){var t=e==null?0:e.length;return t?At(e,0,-1):[]}var ef=ce(function(e){var t=Ce(e,di);return t.length&&t[0]===e[0]?ti(t):[]}),tf=ce(function(e){var t=qt(e),r=Ce(e,di);return t===qt(r)?t=s:r.pop(),r.length&&r[0]===e[0]?ti(r,Y(t,2)):[]}),rf=ce(function(e){var t=qt(e),r=Ce(e,di);return t=typeof t=="function"?t:s,t&&r.pop(),r.length&&r[0]===e[0]?ti(r,s,t):[]});function sf(e,t){return e==null?"":Ju.call(e,t)}function qt(e){var t=e==null?0:e.length;return t?e[t-1]:s}function af(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=i;return r!==s&&(p=ne(r),p=p<0?Ke(i+p,0):Ve(p,i-1)),t===t?Ou(e,t,p):fa(e,dl,p,!0)}function nf(e,t){return e&&e.length?Kl(e,ne(t)):s}var of=ce(Ec);function Ec(e,t){return e&&e.length&&t&&t.length?ni(e,t):e}function lf(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,Y(r,2)):e}function cf(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,s,r):e}var pf=Zt(function(e,t){var r=e==null?0:e.length,i=Qn(e,t);return Hl(e,Ce(t,function(p){return Jt(p,r)?+p:p}).sort(tc)),i});function df(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,p=[],u=e.length;for(t=Y(t,3);++i<u;){var y=e[i];t(y,i,e)&&(r.push(y),p.push(i))}return Hl(e,p),r}function ki(e){return e==null?e:sy.call(e)}function mf(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Ze(e,t,r)?(t=0,r=i):(t=t==null?0:ne(t),r=r===s?i:ne(r)),At(e,t,r)):[]}function uf(e,t){return Pa(e,t)}function yf(e,t,r){return li(e,t,Y(r,2))}function _f(e,t){var r=e==null?0:e.length;if(r){var i=Pa(e,t);if(i<r&&Ot(e[i],t))return i}return-1}function ff(e,t){return Pa(e,t,!0)}function gf(e,t,r){return li(e,t,Y(r,2),!0)}function bf(e,t){var r=e==null?0:e.length;if(r){var i=Pa(e,t,!0)-1;if(Ot(e[i],t))return i}return-1}function xf(e){return e&&e.length?Gl(e):[]}function hf(e,t){return e&&e.length?Gl(e,Y(t,2)):[]}function wf(e){var t=e==null?0:e.length;return t?At(e,1,t):[]}function vf(e,t,r){return e&&e.length?(t=r||t===s?1:ne(t),At(e,0,t<0?0:t)):[]}function Tf(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:ne(t),t=i-t,At(e,t<0?0:t,i)):[]}function Df(e,t){return e&&e.length?Oa(e,Y(t,3),!1,!0):[]}function kf(e,t){return e&&e.length?Oa(e,Y(t,3)):[]}var If=ce(function(e){return ur(Ge(e,1,Oe,!0))}),Af=ce(function(e){var t=qt(e);return Oe(t)&&(t=s),ur(Ge(e,1,Oe,!0),Y(t,2))}),qf=ce(function(e){var t=qt(e);return t=typeof t=="function"?t:s,ur(Ge(e,1,Oe,!0),s,t)});function Cf(e){return e&&e.length?ur(e):[]}function zf(e,t){return e&&e.length?ur(e,Y(t,2)):[]}function Sf(e,t){return t=typeof t=="function"?t:s,e&&e.length?ur(e,s,t):[]}function Ii(e){if(!(e&&e.length))return[];var t=0;return e=lr(e,function(r){if(Oe(r))return t=Ke(r.length,t),!0}),$n(t,function(r){return Ce(e,Bn(r))})}function Nc(e,t){if(!(e&&e.length))return[];var r=Ii(e);return t==null?r:Ce(r,function(i){return mt(t,s,i)})}var Ef=ce(function(e,t){return Oe(e)?Ns(e,t):[]}),Nf=ce(function(e){return pi(lr(e,Oe))}),Lf=ce(function(e){var t=qt(e);return Oe(t)&&(t=s),pi(lr(e,Oe),Y(t,2))}),Mf=ce(function(e){var t=qt(e);return t=typeof t=="function"?t:s,pi(lr(e,Oe),s,t)}),Pf=ce(Ii);function Of(e,t){return Ql(e||[],t||[],Es)}function Rf(e,t){return Ql(e||[],t||[],Ps)}var Ff=ce(function(e){var t=e.length,r=t>1?e[t-1]:s;return r=typeof r=="function"?(e.pop(),r):s,Nc(e,r)});function Lc(e){var t=d(e);return t.__chain__=!0,t}function Bf(e,t){return t(e),e}function Wa(e,t){return t(e)}var Uf=Zt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,p=function(u){return Qn(u,e)};return t>1||this.__actions__.length||!(i instanceof ue)||!Jt(r)?this.thru(p):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:Wa,args:[p],thisArg:s}),new kt(i,this.__chain__).thru(function(u){return t&&!u.length&&u.push(s),u}))});function Kf(){return Lc(this)}function $f(){return new kt(this.value(),this.__chain__)}function jf(){this.__values__===s&&(this.__values__=Xc(this.value()));var e=this.__index__>=this.__values__.length,t=e?s:this.__values__[this.__index__++];return{done:e,value:t}}function Hf(){return this}function Wf(e){for(var t,r=this;r instanceof Sa;){var i=Ac(r);i.__index__=0,i.__values__=s,t?p.__wrapped__=i:t=i;var p=i;r=r.__wrapped__}return p.__wrapped__=e,t}function Gf(){var e=this.__wrapped__;if(e instanceof ue){var t=e;return this.__actions__.length&&(t=new ue(this)),t=t.reverse(),t.__actions__.push({func:Wa,args:[ki],thisArg:s}),new kt(t,this.__chain__)}return this.thru(ki)}function Xf(){return Yl(this.__wrapped__,this.__actions__)}var Vf=Ra(function(e,t,r){Te.call(e,r)?++e[r]:Yt(e,r,1)});function Yf(e,t,r){var i=se(e)?cl:Fy;return r&&Ze(e,t,r)&&(t=s),i(e,Y(t,3))}function Qf(e,t){var r=se(e)?lr:Nl;return r(e,Y(t,3))}var Zf=oc(qc),Jf=oc(Cc);function eg(e,t){return Ge(Ga(e,t),1)}function tg(e,t){return Ge(Ga(e,t),Ne)}function rg(e,t,r){return r=r===s?1:ne(r),Ge(Ga(e,t),r)}function Mc(e,t){var r=se(e)?Tt:mr;return r(e,Y(t,3))}function Pc(e,t){var r=se(e)?hu:El;return r(e,Y(t,3))}var sg=Ra(function(e,t,r){Te.call(e,r)?e[r].push(t):Yt(e,r,[t])});function ag(e,t,r,i){e=at(e)?e:rs(e),r=r&&!i?ne(r):0;var p=e.length;return r<0&&(r=Ke(p+r,0)),Za(e)?r<=p&&e.indexOf(t,r)>-1:!!p&&jr(e,t,r)>-1}var ng=ce(function(e,t,r){var i=-1,p=typeof t=="function",u=at(e)?D(e.length):[];return mr(e,function(y){u[++i]=p?mt(t,y,r):Ls(y,t,r)}),u}),ig=Ra(function(e,t,r){Yt(e,r,t)});function Ga(e,t){var r=se(e)?Ce:Fl;return r(e,Y(t,3))}function og(e,t,r,i){return e==null?[]:(se(t)||(t=t==null?[]:[t]),r=i?s:r,se(r)||(r=r==null?[]:[r]),$l(e,t,r))}var lg=Ra(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function cg(e,t,r){var i=se(e)?Rn:ul,p=arguments.length<3;return i(e,Y(t,4),r,p,mr)}function pg(e,t,r){var i=se(e)?wu:ul,p=arguments.length<3;return i(e,Y(t,4),r,p,El)}function dg(e,t){var r=se(e)?lr:Nl;return r(e,Ya(Y(t,3)))}function mg(e){var t=se(e)?ql:s_;return t(e)}function ug(e,t,r){(r?Ze(e,t,r):t===s)?t=1:t=ne(t);var i=se(e)?Ly:a_;return i(e,t)}function yg(e){var t=se(e)?My:i_;return t(e)}function _g(e){if(e==null)return 0;if(at(e))return Za(e)?Wr(e):e.length;var t=Ye(e);return t==pt||t==dt?e.size:si(e).length}function fg(e,t,r){var i=se(e)?Fn:o_;return r&&Ze(e,t,r)&&(t=s),i(e,Y(t,3))}var gg=ce(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ze(e,t[0],t[1])?t=[]:r>2&&Ze(t[0],t[1],t[2])&&(t=[t[0]]),$l(e,Ge(t,1),[])}),Xa=Yu||function(){return We.Date.now()};function bg(e,t){if(typeof t!="function")throw new Dt(m);return e=ne(e),function(){if(--e<1)return t.apply(this,arguments)}}function Oc(e,t,r){return t=r?s:t,t=e&&t==null?e.length:t,Qt(e,j,s,s,s,s,t)}function Rc(e,t){var r;if(typeof t!="function")throw new Dt(m);return e=ne(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=s),r}}var Ai=ce(function(e,t,r){var i=H;if(r.length){var p=pr(r,es(Ai));i|=q}return Qt(e,i,t,r,p)}),Fc=ce(function(e,t,r){var i=H|V;if(r.length){var p=pr(r,es(Fc));i|=q}return Qt(t,i,e,r,p)});function Bc(e,t,r){t=r?s:t;var i=Qt(e,F,s,s,s,s,s,t);return i.placeholder=Bc.placeholder,i}function Uc(e,t,r){t=r?s:t;var i=Qt(e,k,s,s,s,s,s,t);return i.placeholder=Uc.placeholder,i}function Kc(e,t,r){var i,p,u,y,x,v,z=0,S=!1,E=!1,$=!0;if(typeof e!="function")throw new Dt(m);t=Ct(t)||0,Se(r)&&(S=!!r.leading,E="maxWait"in r,u=E?Ke(Ct(r.maxWait)||0,t):u,$="trailing"in r?!!r.trailing:$);function X(Re){var Rt=i,rr=p;return i=p=s,z=Re,y=e.apply(rr,Rt),y}function Z(Re){return z=Re,x=Fs(de,t),S?X(Re):y}function oe(Re){var Rt=Re-v,rr=Re-z,op=t-Rt;return E?Ve(op,u-rr):op}function J(Re){var Rt=Re-v,rr=Re-z;return v===s||Rt>=t||Rt<0||E&&rr>=u}function de(){var Re=Xa();if(J(Re))return _e(Re);x=Fs(de,oe(Re))}function _e(Re){return x=s,$&&i?X(Re):(i=p=s,y)}function ft(){x!==s&&Zl(x),z=0,i=v=p=x=s}function Je(){return x===s?y:_e(Xa())}function gt(){var Re=Xa(),Rt=J(Re);if(i=arguments,p=this,v=Re,Rt){if(x===s)return Z(v);if(E)return Zl(x),x=Fs(de,t),X(v)}return x===s&&(x=Fs(de,t)),y}return gt.cancel=ft,gt.flush=Je,gt}var xg=ce(function(e,t){return Sl(e,1,t)}),hg=ce(function(e,t,r){return Sl(e,Ct(t)||0,r)});function wg(e){return Qt(e,ye)}function Va(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Dt(m);var r=function(){var i=arguments,p=t?t.apply(this,i):i[0],u=r.cache;if(u.has(p))return u.get(p);var y=e.apply(this,i);return r.cache=u.set(p,y)||u,y};return r.cache=new(Va.Cache||Vt),r}Va.Cache=Vt;function Ya(e){if(typeof e!="function")throw new Dt(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function vg(e){return Rc(2,e)}var Tg=l_(function(e,t){t=t.length==1&&se(t[0])?Ce(t[0],ut(Y())):Ce(Ge(t,1),ut(Y()));var r=t.length;return ce(function(i){for(var p=-1,u=Ve(i.length,r);++p<u;)i[p]=t[p].call(this,i[p]);return mt(e,this,i)})}),qi=ce(function(e,t){var r=pr(t,es(qi));return Qt(e,q,s,t,r)}),$c=ce(function(e,t){var r=pr(t,es($c));return Qt(e,U,s,t,r)}),Dg=Zt(function(e,t){return Qt(e,ae,s,s,s,t)});function kg(e,t){if(typeof e!="function")throw new Dt(m);return t=t===s?t:ne(t),ce(e,t)}function Ig(e,t){if(typeof e!="function")throw new Dt(m);return t=t==null?0:Ke(ne(t),0),ce(function(r){var i=r[t],p=_r(r,0,t);return i&&cr(p,i),mt(e,this,p)})}function Ag(e,t,r){var i=!0,p=!0;if(typeof e!="function")throw new Dt(m);return Se(r)&&(i="leading"in r?!!r.leading:i,p="trailing"in r?!!r.trailing:p),Kc(e,t,{leading:i,maxWait:t,trailing:p})}function qg(e){return Oc(e,1)}function Cg(e,t){return qi(mi(t),e)}function zg(){if(!arguments.length)return[];var e=arguments[0];return se(e)?e:[e]}function Sg(e){return It(e,B)}function Eg(e,t){return t=typeof t=="function"?t:s,It(e,B,t)}function Ng(e){return It(e,T|B)}function Lg(e,t){return t=typeof t=="function"?t:s,It(e,T|B,t)}function Mg(e,t){return t==null||zl(e,t,je(t))}function Ot(e,t){return e===t||e!==e&&t!==t}var Pg=Ka(ei),Og=Ka(function(e,t){return e>=t}),Sr=Pl(function(){return arguments}())?Pl:function(e){return Me(e)&&Te.call(e,"callee")&&!vl.call(e,"callee")},se=D.isArray,Rg=sl?ut(sl):Hy;function at(e){return e!=null&&Qa(e.length)&&!er(e)}function Oe(e){return Me(e)&&at(e)}function Fg(e){return e===!0||e===!1||Me(e)&&Qe(e)==Bt}var fr=Zu||Fi,Bg=al?ut(al):Wy;function Ug(e){return Me(e)&&e.nodeType===1&&!Bs(e)}function Kg(e){if(e==null)return!0;if(at(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||fr(e)||ts(e)||Sr(e)))return!e.length;var t=Ye(e);if(t==pt||t==dt)return!e.size;if(Rs(e))return!si(e).length;for(var r in e)if(Te.call(e,r))return!1;return!0}function $g(e,t){return Ms(e,t)}function jg(e,t,r){r=typeof r=="function"?r:s;var i=r?r(e,t):s;return i===s?Ms(e,t,s,r):!!i}function Ci(e){if(!Me(e))return!1;var t=Qe(e);return t==Pr||t==Mr||typeof e.message=="string"&&typeof e.name=="string"&&!Bs(e)}function Hg(e){return typeof e=="number"&&Dl(e)}function er(e){if(!Se(e))return!1;var t=Qe(e);return t==hr||t==aa||t==ys||t==Rr}function jc(e){return typeof e=="number"&&e==ne(e)}function Qa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Pe}function Se(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Me(e){return e!=null&&typeof e=="object"}var Hc=nl?ut(nl):Xy;function Wg(e,t){return e===t||ri(e,t,xi(t))}function Gg(e,t,r){return r=typeof r=="function"?r:s,ri(e,t,xi(t),r)}function Xg(e){return Wc(e)&&e!=+e}function Vg(e){if(S_(e))throw new re(l);return Ol(e)}function Yg(e){return e===null}function Qg(e){return e==null}function Wc(e){return typeof e=="number"||Me(e)&&Qe(e)==Ut}function Bs(e){if(!Me(e)||Qe(e)!=wt)return!1;var t=Da(e);if(t===null)return!0;var r=Te.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ha.call(r)==Wu}var zi=il?ut(il):Vy;function Zg(e){return jc(e)&&e>=-Pe&&e<=Pe}var Gc=ol?ut(ol):Yy;function Za(e){return typeof e=="string"||!se(e)&&Me(e)&&Qe(e)==Wt}function _t(e){return typeof e=="symbol"||Me(e)&&Qe(e)==Fr}var ts=ll?ut(ll):Qy;function Jg(e){return e===s}function eb(e){return Me(e)&&Ye(e)==ir}function tb(e){return Me(e)&&Qe(e)==na}var rb=Ka(ai),sb=Ka(function(e,t){return e<=t});function Xc(e){if(!e)return[];if(at(e))return Za(e)?Mt(e):st(e);if(As&&e[As])return Lu(e[As]());var t=Ye(e),r=t==pt?Hn:t==dt?ga:rs;return r(e)}function tr(e){if(!e)return e===0?e:0;if(e=Ct(e),e===Ne||e===-Ne){var t=e<0?-1:1;return t*ct}return e===e?e:0}function ne(e){var t=tr(e),r=t%1;return t===t?r?t-r:t:0}function Vc(e){return e?Ar(ne(e),0,te):0}function Ct(e){if(typeof e=="number")return e;if(_t(e))return Et;if(Se(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Se(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yl(e);var r=pe.test(e);return r||ze.test(e)?gu(e.slice(2),r?2:8):me.test(e)?Et:+e}function Yc(e){return $t(e,nt(e))}function ab(e){return e?Ar(ne(e),-Pe,Pe):e===0?e:0}function ve(e){return e==null?"":yt(e)}var nb=Zr(function(e,t){if(Rs(t)||at(t)){$t(t,je(t),e);return}for(var r in t)Te.call(t,r)&&Es(e,r,t[r])}),Qc=Zr(function(e,t){$t(t,nt(t),e)}),Ja=Zr(function(e,t,r,i){$t(t,nt(t),e,i)}),ib=Zr(function(e,t,r,i){$t(t,je(t),e,i)}),ob=Zt(Qn);function lb(e,t){var r=Qr(e);return t==null?r:Cl(r,t)}var cb=ce(function(e,t){e=De(e);var r=-1,i=t.length,p=i>2?t[2]:s;for(p&&Ze(t[0],t[1],p)&&(i=1);++r<i;)for(var u=t[r],y=nt(u),x=-1,v=y.length;++x<v;){var z=y[x],S=e[z];(S===s||Ot(S,Xr[z])&&!Te.call(e,z))&&(e[z]=u[z])}return e}),pb=ce(function(e){return e.push(s,yc),mt(Zc,s,e)});function db(e,t){return pl(e,Y(t,3),Kt)}function mb(e,t){return pl(e,Y(t,3),Jn)}function ub(e,t){return e==null?e:Zn(e,Y(t,3),nt)}function yb(e,t){return e==null?e:Ll(e,Y(t,3),nt)}function _b(e,t){return e&&Kt(e,Y(t,3))}function fb(e,t){return e&&Jn(e,Y(t,3))}function gb(e){return e==null?[]:La(e,je(e))}function bb(e){return e==null?[]:La(e,nt(e))}function Si(e,t,r){var i=e==null?s:qr(e,t);return i===s?r:i}function xb(e,t){return e!=null&&gc(e,t,Uy)}function Ei(e,t){return e!=null&&gc(e,t,Ky)}var hb=cc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=wa.call(t)),e[t]=r},Li(it)),wb=cc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=wa.call(t)),Te.call(e,t)?e[t].push(r):e[t]=[r]},Y),vb=ce(Ls);function je(e){return at(e)?Al(e):si(e)}function nt(e){return at(e)?Al(e,!0):Zy(e)}function Tb(e,t){var r={};return t=Y(t,3),Kt(e,function(i,p,u){Yt(r,t(i,p,u),i)}),r}function Db(e,t){var r={};return t=Y(t,3),Kt(e,function(i,p,u){Yt(r,p,t(i,p,u))}),r}var kb=Zr(function(e,t,r){Ma(e,t,r)}),Zc=Zr(function(e,t,r,i){Ma(e,t,r,i)}),Ib=Zt(function(e,t){var r={};if(e==null)return r;var i=!1;t=Ce(t,function(u){return u=yr(u,e),i||(i=u.length>1),u}),$t(e,gi(e),r),i&&(r=It(r,T|P|B,x_));for(var p=t.length;p--;)ci(r,t[p]);return r});function Ab(e,t){return Jc(e,Ya(Y(t)))}var qb=Zt(function(e,t){return e==null?{}:e_(e,t)});function Jc(e,t){if(e==null)return{};var r=Ce(gi(e),function(i){return[i]});return t=Y(t),jl(e,r,function(i,p){return t(i,p[0])})}function Cb(e,t,r){t=yr(t,e);var i=-1,p=t.length;for(p||(p=1,e=s);++i<p;){var u=e==null?s:e[jt(t[i])];u===s&&(i=p,u=r),e=er(u)?u.call(e):u}return e}function zb(e,t,r){return e==null?e:Ps(e,t,r)}function Sb(e,t,r,i){return i=typeof i=="function"?i:s,e==null?e:Ps(e,t,r,i)}var ep=mc(je),tp=mc(nt);function Eb(e,t,r){var i=se(e),p=i||fr(e)||ts(e);if(t=Y(t,4),r==null){var u=e&&e.constructor;p?r=i?new u:[]:Se(e)?r=er(u)?Qr(Da(e)):{}:r={}}return(p?Tt:Kt)(e,function(y,x,v){return t(r,y,x,v)}),r}function Nb(e,t){return e==null?!0:ci(e,t)}function Lb(e,t,r){return e==null?e:Vl(e,t,mi(r))}function Mb(e,t,r,i){return i=typeof i=="function"?i:s,e==null?e:Vl(e,t,mi(r),i)}function rs(e){return e==null?[]:jn(e,je(e))}function Pb(e){return e==null?[]:jn(e,nt(e))}function Ob(e,t,r){return r===s&&(r=t,t=s),r!==s&&(r=Ct(r),r=r===r?r:0),t!==s&&(t=Ct(t),t=t===t?t:0),Ar(Ct(e),t,r)}function Rb(e,t,r){return t=tr(t),r===s?(r=t,t=0):r=tr(r),e=Ct(e),$y(e,t,r)}function Fb(e,t,r){if(r&&typeof r!="boolean"&&Ze(e,t,r)&&(t=r=s),r===s&&(typeof t=="boolean"?(r=t,t=s):typeof e=="boolean"&&(r=e,e=s)),e===s&&t===s?(e=0,t=1):(e=tr(e),t===s?(t=e,e=0):t=tr(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var p=kl();return Ve(e+p*(t-e+fu("1e-"+((p+"").length-1))),t)}return ii(e,t)}var Bb=Jr(function(e,t,r){return t=t.toLowerCase(),e+(r?rp(t):t)});function rp(e){return Ni(ve(e).toLowerCase())}function sp(e){return e=ve(e),e&&e.replace(tt,Cu).replace(iu,"")}function Ub(e,t,r){e=ve(e),t=yt(t);var i=e.length;r=r===s?i:Ar(ne(r),0,i);var p=r;return r-=t.length,r>=0&&e.slice(r,p)==t}function Kb(e){return e=ve(e),e&&oa.test(e)?e.replace(Kr,zu):e}function $b(e){return e=ve(e),e&&ma.test(e)?e.replace(Ds,"\\$&"):e}var jb=Jr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Hb=Jr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Wb=ic("toLowerCase");function Gb(e,t,r){e=ve(e),t=ne(t);var i=t?Wr(e):0;if(!t||i>=t)return e;var p=(t-i)/2;return Ua(qa(p),r)+e+Ua(Aa(p),r)}function Xb(e,t,r){e=ve(e),t=ne(t);var i=t?Wr(e):0;return t&&i<t?e+Ua(t-i,r):e}function Vb(e,t,r){e=ve(e),t=ne(t);var i=t?Wr(e):0;return t&&i<t?Ua(t-i,r)+e:e}function Yb(e,t,r){return r||t==null?t=0:t&&(t=+t),ry(ve(e).replace(ks,""),t||0)}function Qb(e,t,r){return(r?Ze(e,t,r):t===s)?t=1:t=ne(t),oi(ve(e),t)}function Zb(){var e=arguments,t=ve(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Jb=Jr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function ex(e,t,r){return r&&typeof r!="number"&&Ze(e,t,r)&&(t=r=s),r=r===s?te:r>>>0,r?(e=ve(e),e&&(typeof t=="string"||t!=null&&!zi(t))&&(t=yt(t),!t&&Hr(e))?_r(Mt(e),0,r):e.split(t,r)):[]}var tx=Jr(function(e,t,r){return e+(r?" ":"")+Ni(t)});function rx(e,t,r){return e=ve(e),r=r==null?0:Ar(ne(r),0,e.length),t=yt(t),e.slice(r,r+t.length)==t}function sx(e,t,r){var i=d.templateSettings;r&&Ze(e,t,r)&&(t=s),e=ve(e),t=Ja({},t,i,uc);var p=Ja({},t.imports,i.imports,uc),u=je(p),y=jn(p,u),x,v,z=0,S=t.interpolate||Lt,E="__p += '",$=Wn((t.escape||Lt).source+"|"+S.source+"|"+(S===ca?fe:Lt).source+"|"+(t.evaluate||Lt).source+"|$","g"),X="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++du+"]")+`
121
121
  `;e.replace($,function(J,de,_e,ft,Je,gt){return _e||(_e=ft),E+=e.slice(z,gt).replace(ua,Su),de&&(x=!0,E+=`' +
122
122
  __e(`+de+`) +
123
123
  '`),Je&&(v=!0,E+=`';
@@ -134,18 +134,18 @@ __p += '`),_e&&(E+=`' +
134
134
  function print() { __p += __j.call(arguments, '') }
135
135
  `:`;
136
136
  `)+E+`return __p
137
- }`;var oe=np(function(){return xe(u,X+"return "+E).apply(s,y)});if(oe.source=E,Ci(oe))throw oe;return oe}function ax(e){return ve(e).toLowerCase()}function nx(e){return ve(e).toUpperCase()}function ix(e,t,r){if(e=ve(e),e&&(r||t===s))return yl(e);if(!e||!(t=yt(t)))return e;var i=Mt(e),p=Mt(t),u=_l(i,p),y=fl(i,p)+1;return _r(i,u,y).join("")}function ox(e,t,r){if(e=ve(e),e&&(r||t===s))return e.slice(0,bl(e)+1);if(!e||!(t=yt(t)))return e;var i=Mt(e),p=fl(i,Mt(t))+1;return _r(i,0,p).join("")}function lx(e,t,r){if(e=ve(e),e&&(r||t===s))return e.replace(ks,"");if(!e||!(t=yt(t)))return e;var i=Mt(e),p=_l(i,Mt(t));return _r(i,p).join("")}function cx(e,t){var r=le,i=xt;if(Se(t)){var p="separator"in t?t.separator:p;r="length"in t?ne(t.length):r,i="omission"in t?yt(t.omission):i}e=ve(e);var u=e.length;if(Hr(e)){var y=Mt(e);u=y.length}if(r>=u)return e;var x=r-Wr(i);if(x<1)return i;var v=y?_r(y,0,x).join(""):e.slice(0,x);if(p===s)return v+i;if(y&&(x+=v.length-x),zi(p)){if(e.slice(x).search(p)){var z,S=v;for(p.global||(p=Wn(p.source,ve(we.exec(p))+"g")),p.lastIndex=0;z=p.exec(S);)var E=z.index;v=v.slice(0,E===s?x:E)}}else if(e.indexOf(yt(p),x)!=x){var $=v.lastIndexOf(p);$>-1&&(v=v.slice(0,$))}return v+i}function px(e){return e=ve(e),e&&Ts.test(e)?e.replace(Gt,Ru):e}var dx=Jr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Ni=ic("toUpperCase");function ap(e,t,r){return e=ve(e),t=r?s:t,t===s?Nu(e)?Uu(e):Du(e):e.match(t)||[]}var np=ce(function(e,t){try{return mt(e,s,t)}catch(r){return Ci(r)?r:new re(r)}}),mx=Zt(function(e,t){return Tt(t,function(r){r=jt(r),Yt(e,r,Ai(e[r],e))}),e});function ux(e){var t=e==null?0:e.length,r=Y();return e=t?Ce(e,function(i){if(typeof i[1]!="function")throw new Dt(m);return[r(i[0]),i[1]]}):[],ce(function(i){for(var p=-1;++p<t;){var u=e[p];if(mt(u[0],this,i))return mt(u[1],this,i)}})}function yx(e){return Ry(It(e,T))}function Li(e){return function(){return e}}function _x(e,t){return e==null||e!==e?t:e}var fx=lc(),gx=lc(!0);function it(e){return e}function Mi(e){return Rl(typeof e=="function"?e:It(e,T))}function bx(e){return Bl(It(e,T))}function xx(e,t){return Ul(e,It(t,T))}var hx=ce(function(e,t){return function(r){return Ls(r,e,t)}}),wx=ce(function(e,t){return function(r){return Ls(e,r,t)}});function Pi(e,t,r){var i=je(t),p=La(t,i);r==null&&!(Se(t)&&(p.length||!i.length))&&(r=t,t=e,e=this,p=La(t,je(t)));var u=!(Se(r)&&"chain"in r)||!!r.chain,y=er(e);return Tt(p,function(x){var v=t[x];e[x]=v,y&&(e.prototype[x]=function(){var z=this.__chain__;if(u||z){var S=e(this.__wrapped__),E=S.__actions__=st(this.__actions__);return E.push({func:v,args:arguments,thisArg:e}),S.__chain__=z,S}return v.apply(e,cr([this.value()],arguments))})}),e}function vx(){return We._===this&&(We._=Gu),this}function Oi(){}function Tx(e){return e=ne(e),ce(function(t){return Kl(t,e)})}var Dx=yi(Ce),kx=yi(cl),Ix=yi(Fn);function ip(e){return wi(e)?Bn(jt(e)):t_(e)}function Ax(e){return function(t){return e==null?s:Ar(e,t)}}var qx=pc(),Cx=pc(!0);function Ri(){return[]}function Fi(){return!1}function zx(){return{}}function Sx(){return""}function Ex(){return!0}function Nx(e,t){if(e=ne(e),e<1||e>Pe)return[];var r=te,i=Ve(e,te);t=Y(t),e-=te;for(var p=$n(i,t);++r<e;)t(r);return p}function Lx(e){return se(e)?Ce(e,jt):_t(e)?[e]:st(Ic(ve(e)))}function Mx(e){var t=++Hu;return ve(e)+t}var Px=Ba(function(e,t){return e+t},0),Ox=_i("ceil"),Rx=Ba(function(e,t){return e/t},1),Fx=_i("floor");function Bx(e){return e&&e.length?Na(e,it,ei):s}function Ux(e,t){return e&&e.length?Na(e,Y(t,2),ei):s}function Kx(e){return ml(e,it)}function $x(e,t){return ml(e,Y(t,2))}function jx(e){return e&&e.length?Na(e,it,ai):s}function Hx(e,t){return e&&e.length?Na(e,Y(t,2),ai):s}var Wx=Ba(function(e,t){return e*t},1),Gx=_i("round"),Xx=Ba(function(e,t){return e-t},0);function Vx(e){return e&&e.length?Kn(e,it):0}function Yx(e,t){return e&&e.length?Kn(e,Y(t,2)):0}return d.after=bg,d.ary=Oc,d.assign=nb,d.assignIn=Qc,d.assignInWith=Ja,d.assignWith=ib,d.at=ob,d.before=Rc,d.bind=Ai,d.bindAll=mx,d.bindKey=Fc,d.castArray=zg,d.chain=Lc,d.chunk=R_,d.compact=F_,d.concat=B_,d.cond=ux,d.conforms=yx,d.constant=Li,d.countBy=Vf,d.create=lb,d.curry=Bc,d.curryRight=Uc,d.debounce=Kc,d.defaults=cb,d.defaultsDeep=pb,d.defer=xg,d.delay=hg,d.difference=U_,d.differenceBy=K_,d.differenceWith=$_,d.drop=j_,d.dropRight=H_,d.dropRightWhile=W_,d.dropWhile=G_,d.fill=X_,d.filter=Qf,d.flatMap=eg,d.flatMapDeep=tg,d.flatMapDepth=rg,d.flatten=zc,d.flattenDeep=V_,d.flattenDepth=Y_,d.flip=wg,d.flow=fx,d.flowRight=gx,d.fromPairs=Q_,d.functions=gb,d.functionsIn=bb,d.groupBy=sg,d.initial=J_,d.intersection=ef,d.intersectionBy=tf,d.intersectionWith=rf,d.invert=hb,d.invertBy=wb,d.invokeMap=ng,d.iteratee=Mi,d.keyBy=ig,d.keys=je,d.keysIn=nt,d.map=Ga,d.mapKeys=Tb,d.mapValues=Db,d.matches=bx,d.matchesProperty=xx,d.memoize=Va,d.merge=kb,d.mergeWith=Zc,d.method=hx,d.methodOf=wx,d.mixin=Pi,d.negate=Ya,d.nthArg=Tx,d.omit=Ib,d.omitBy=Ab,d.once=vg,d.orderBy=og,d.over=Dx,d.overArgs=Tg,d.overEvery=kx,d.overSome=Ix,d.partial=qi,d.partialRight=$c,d.partition=lg,d.pick=qb,d.pickBy=Jc,d.property=ip,d.propertyOf=Ax,d.pull=of,d.pullAll=Ec,d.pullAllBy=lf,d.pullAllWith=cf,d.pullAt=pf,d.range=qx,d.rangeRight=Cx,d.rearg=Dg,d.reject=dg,d.remove=df,d.rest=kg,d.reverse=ki,d.sampleSize=ug,d.set=zb,d.setWith=Sb,d.shuffle=yg,d.slice=mf,d.sortBy=gg,d.sortedUniq=xf,d.sortedUniqBy=hf,d.split=ex,d.spread=Ig,d.tail=wf,d.take=vf,d.takeRight=Tf,d.takeRightWhile=Df,d.takeWhile=kf,d.tap=Bf,d.throttle=Ag,d.thru=Wa,d.toArray=Xc,d.toPairs=ep,d.toPairsIn=tp,d.toPath=Lx,d.toPlainObject=Yc,d.transform=Eb,d.unary=qg,d.union=If,d.unionBy=Af,d.unionWith=qf,d.uniq=Cf,d.uniqBy=zf,d.uniqWith=Sf,d.unset=Nb,d.unzip=Ii,d.unzipWith=Nc,d.update=Lb,d.updateWith=Mb,d.values=rs,d.valuesIn=Pb,d.without=Ef,d.words=ap,d.wrap=Cg,d.xor=Nf,d.xorBy=Lf,d.xorWith=Mf,d.zip=Pf,d.zipObject=Of,d.zipObjectDeep=Rf,d.zipWith=Ff,d.entries=ep,d.entriesIn=tp,d.extend=Qc,d.extendWith=Ja,Pi(d,d),d.add=Px,d.attempt=np,d.camelCase=Bb,d.capitalize=rp,d.ceil=Ox,d.clamp=Ob,d.clone=Sg,d.cloneDeep=Ng,d.cloneDeepWith=Lg,d.cloneWith=Eg,d.conformsTo=Mg,d.deburr=sp,d.defaultTo=_x,d.divide=Rx,d.endsWith=Ub,d.eq=Ot,d.escape=Kb,d.escapeRegExp=$b,d.every=Yf,d.find=Zf,d.findIndex=qc,d.findKey=db,d.findLast=Jf,d.findLastIndex=Cc,d.findLastKey=mb,d.floor=Fx,d.forEach=Mc,d.forEachRight=Pc,d.forIn=ub,d.forInRight=yb,d.forOwn=_b,d.forOwnRight=fb,d.get=Si,d.gt=Pg,d.gte=Og,d.has=xb,d.hasIn=Ei,d.head=Sc,d.identity=it,d.includes=ag,d.indexOf=Z_,d.inRange=Rb,d.invoke=vb,d.isArguments=zr,d.isArray=se,d.isArrayBuffer=Rg,d.isArrayLike=at,d.isArrayLikeObject=Oe,d.isBoolean=Fg,d.isBuffer=fr,d.isDate=Bg,d.isElement=Ug,d.isEmpty=Kg,d.isEqual=$g,d.isEqualWith=jg,d.isError=Ci,d.isFinite=Hg,d.isFunction=er,d.isInteger=jc,d.isLength=Qa,d.isMap=Hc,d.isMatch=Wg,d.isMatchWith=Gg,d.isNaN=Xg,d.isNative=Vg,d.isNil=Qg,d.isNull=Yg,d.isNumber=Wc,d.isObject=Se,d.isObjectLike=Me,d.isPlainObject=Bs,d.isRegExp=zi,d.isSafeInteger=Zg,d.isSet=Gc,d.isString=Za,d.isSymbol=_t,d.isTypedArray=ts,d.isUndefined=Jg,d.isWeakMap=eb,d.isWeakSet=tb,d.join=sf,d.kebabCase=jb,d.last=qt,d.lastIndexOf=af,d.lowerCase=Hb,d.lowerFirst=Wb,d.lt=rb,d.lte=sb,d.max=Bx,d.maxBy=Ux,d.mean=Kx,d.meanBy=$x,d.min=jx,d.minBy=Hx,d.stubArray=Ri,d.stubFalse=Fi,d.stubObject=zx,d.stubString=Sx,d.stubTrue=Ex,d.multiply=Wx,d.nth=nf,d.noConflict=vx,d.noop=Oi,d.now=Xa,d.pad=Gb,d.padEnd=Xb,d.padStart=Vb,d.parseInt=Yb,d.random=Fb,d.reduce=cg,d.reduceRight=pg,d.repeat=Qb,d.replace=Zb,d.result=Cb,d.round=Gx,d.runInContext=w,d.sample=mg,d.size=_g,d.snakeCase=Jb,d.some=fg,d.sortedIndex=uf,d.sortedIndexBy=yf,d.sortedIndexOf=_f,d.sortedLastIndex=ff,d.sortedLastIndexBy=gf,d.sortedLastIndexOf=bf,d.startCase=tx,d.startsWith=rx,d.subtract=Xx,d.sum=Vx,d.sumBy=Yx,d.template=sx,d.times=Nx,d.toFinite=tr,d.toInteger=ne,d.toLength=Vc,d.toLower=ax,d.toNumber=Ct,d.toSafeInteger=ab,d.toString=ve,d.toUpper=nx,d.trim=ix,d.trimEnd=ox,d.trimStart=lx,d.truncate=cx,d.unescape=px,d.uniqueId=Mx,d.upperCase=dx,d.upperFirst=Ni,d.each=Mc,d.eachRight=Pc,d.first=Sc,Pi(d,function(){var e={};return Kt(d,function(t,r){Te.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=o,Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Tt(["drop","take"],function(e,t){ue.prototype[e]=function(r){r=r===s?1:Ke(ne(r),0);var i=this.__filtered__&&!t?new ue(this):this.clone();return i.__filtered__?i.__takeCount__=Ve(r,i.__takeCount__):i.__views__.push({size:Ve(r,te),type:e+(i.__dir__<0?"Right":"")}),i},ue.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Tt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==Be||r==ge;ue.prototype[e]=function(p){var u=this.clone();return u.__iteratees__.push({iteratee:Y(p,3),type:r}),u.__filtered__=u.__filtered__||i,u}}),Tt(["head","last"],function(e,t){var r="take"+(t?"Right":"");ue.prototype[e]=function(){return this[r](1).value()[0]}}),Tt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ue.prototype[e]=function(){return this.__filtered__?new ue(this):this[r](1)}}),ue.prototype.compact=function(){return this.filter(it)},ue.prototype.find=function(e){return this.filter(e).head()},ue.prototype.findLast=function(e){return this.reverse().find(e)},ue.prototype.invokeMap=ce(function(e,t){return typeof e=="function"?new ue(this):this.map(function(r){return Ls(r,e,t)})}),ue.prototype.reject=function(e){return this.filter(Ya(Y(e)))},ue.prototype.slice=function(e,t){e=ne(e);var r=this;return r.__filtered__&&(e>0||t<0)?new ue(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==s&&(t=ne(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},ue.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ue.prototype.toArray=function(){return this.take(te)},Kt(ue.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),p=d[i?"take"+(t=="last"?"Right":""):t],u=i||/^find/.test(t);p&&(d.prototype[t]=function(){var y=this.__wrapped__,x=i?[1]:arguments,v=y instanceof ue,z=x[0],S=v||se(y),E=function(de){var _e=p.apply(d,cr([de],x));return i&&$?_e[0]:_e};S&&r&&typeof z=="function"&&z.length!=1&&(v=S=!1);var $=this.__chain__,X=!!this.__actions__.length,Z=u&&!$,oe=v&&!X;if(!u&&S){y=oe?y:new ue(this);var J=e.apply(y,x);return J.__actions__.push({func:Wa,args:[E],thisArg:s}),new kt(J,$)}return Z&&oe?e.apply(this,x):(J=this.thru(E),Z?i?J.value()[0]:J.value():J)})}),Tt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ba[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var p=arguments;if(i&&!this.__chain__){var u=this.value();return t.apply(se(u)?u:[],p)}return this[r](function(y){return t.apply(se(y)?y:[],p)})}}),Kt(ue.prototype,function(e,t){var r=d[t];if(r){var i=r.name+"";Te.call(Yr,i)||(Yr[i]=[]),Yr[i].push({name:t,func:r})}}),Yr[Fa(s,V).name]=[{name:"wrapper",func:s}],ue.prototype.clone=cy,ue.prototype.reverse=py,ue.prototype.value=dy,d.prototype.at=Uf,d.prototype.chain=Kf,d.prototype.commit=$f,d.prototype.next=jf,d.prototype.plant=Wf,d.prototype.reverse=Gf,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=Xf,d.prototype.first=d.prototype.head,As&&(d.prototype[As]=Hf),d},Gr=Ku();vr?((vr.exports=Gr)._=Gr,Mn._=Gr):We._=Gr}).call(ss)}(Ws,Ws.exports);var io=Ws.exports;const Ee="tccScript",Nr={builtinFunctions:/strategy\.closedtrades\.max_drawdown_percent|strategy\.opentrades\.max_drawdown_percent|strategy\.risk\.max_intraday_filled_orders|strategy\.closedtrades\.max_runup_percent|array\.percentile_linear_interpolation|strategy\.closedtrades\.entry_bar_index|strategy\.opentrades\.max_runup_percent|strategy\.closedtrades\.exit_bar_index|strategy\.closedtrades\.profit_percent|strategy\.closedtrades\.entry_comment|strategy\.opentrades\.entry_bar_index|strategy\.closedtrades\.exit_comment|strategy\.closedtrades\.max_drawdown|strategy\.opentrades\.profit_percent|ta\.percentile_linear_interpolation|strategy\.closedtrades\.entry_price|strategy\.opentrades\.entry_comment|strategy\.closedtrades\.commission|strategy\.closedtrades\.entry_time|strategy\.closedtrades\.exit_price|strategy\.opentrades\.max_drawdown|strategy\.risk\.max_cons_loss_days|strategy\.closedtrades\.exit_time|strategy\.closedtrades\.max_runup|strategy\.opentrades\.entry_price|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|table\.cell_set_text_font_family|strategy\.closedtrades\.entry_id|strategy\.opentrades\.commission|strategy\.opentrades\.entry_time|array\.binary_search_rightmost|array\.percentile_nearest_rank|strategy\.closedtrades\.exit_id|strategy\.opentrades\.max_runup|array\.binary_search_leftmost|strategy\.closedtrades\.profit|strategy\.opentrades\.entry_id|strategy\.risk\.allow_entry_in|strategy\.convert_to_account|box\.set_bottom_right_point|label\.set_text_font_family|strategy\.closedtrades\.size|strategy\.convert_to_symbol|strategy\.default_entry_qty|strategy\.opentrades\.profit|strategy\.risk\.max_drawdown|ta\.percentile_nearest_rank|table\.cell_set_text_halign|table\.cell_set_text_valign|request\.security_lower_tf|table\.cell_set_text_color|box\.set_text_font_family|strategy\.opentrades\.size|table\.cell_set_text_size|matrix\.is_antisymmetric|box\.set_top_left_point|chart\.point\.from_index|matrix\.is_antidiagonal|table\.cell_set_bgcolor|table\.cell_set_tooltip|table\.set_border_color|table\.set_border_width|timeframe\.from_seconds|chart\.point\.from_time|line\.set_second_point|math\.round_to_mintick|matrix\.elements_count|request\.currency_rate|ta\.pivot_point_levels|table\.cell_set_height|table\.set_frame_color|table\.set_frame_width|box\.set_border_color|box\.set_border_style|box\.set_border_width|line\.set_first_point|matrix\.is_stochastic|matrix\.is_triangular|table\.cell_set_width|timeframe\.in_seconds|array\.binary_search|box\.set_rightbottom|box\.set_text_halign|box\.set_text_valign|color\.from_gradient|label\.set_textalign|label\.set_textcolor|matrix\.eigenvectors|matrix\.is_symmetric|matrix\.swap_columns|strategy\.cancel_all|table\.cell_set_text|array\.new_linefill|array\.sort_indices|box\.set_text_color|linefill\.get_line1|linefill\.get_line2|linefill\.set_color|matrix\.eigenvalues|matrix\.is_diagonal|matrix\.is_identity|strategy\.close_all|table\.set_position|ticker\.pointfigure|array\.lastindexof|array\.percentrank|array\.standardize|box\.set_text_size|box\.set_text_wrap|label\.set_tooltip|matrix\.remove_col|matrix\.remove_row|request\.dividends|request\.financial|table\.merge_cells|table\.set_bgcolor|ticker\.heikinashi|array\.covariance|array\.new_string|chart\.point\.copy|matrix\.is_binary|matrix\.is_square|matrix\.submatrix|matrix\.swap_rows|matrix\.transpose|request\.earnings|request\.economic|request\.security|ticker\.linebreak|timeframe\.change|array\.new_color|array\.new_float|array\.new_label|array\.new_table|box\.set_bgcolor|box\.set_lefttop|chart\.point\.new|chart\.point\.now|input\.text_area|input\.timeframe|label\.set_color|label\.set_point|label\.set_style|line\.set_extend|linefill\.delete|polyline\.delete|str\.format_time|str\.replace_all|strategy\.cancel|ticker\.standard|alertcondition|array\.includes|array\.new_bool|array\.new_line|array\.variance|box\.get_bottom|box\.set_bottom|box\.set_extend|label\.get_text|label\.set_size|label\.set_text|label\.set_xloc|label\.set_yloc|line\.get_price|line\.set_color|line\.set_style|line\.set_width|math\.todegrees|math\.toradians|matrix\.add_col|matrix\.add_row|matrix\.columns|matrix\.is_zero|matrix\.reshape|matrix\.reverse|request\.quandl|request\.splits|str\.startswith|strategy\.close|strategy\.entry|strategy\.order|syminfo\.prefix|syminfo\.ticker|ta\.correlation|ta\.highestbars|ta\.percentrank|ticker\.inherit|array\.indexof|array\.new_box|array\.new_int|array\.reverse|array\.unshift|box\.get_right|box\.set_right|input\.session|line\.set_xloc|matrix\.concat|matrix\.median|max_bars_back|runtime\.error|str\.substring|strategy\.exit|ta\.crossunder|ta\.lowestbars|ta\.supertrend|ticker\.modify|array\.concat|array\.insert|array\.median|array\.remove|box\.get_left|box\.set_left|box\.set_text|input\.source|input\.string|input\.symbol|label\.delete|label\.set_xy|line\.set_xy1|line\.set_xy2|linefill\.new|map\.contains|matrix\.trace|polyline\.new|request\.seed|str\.contains|str\.endswith|str\.tonumber|str\.tostring|ta\.barssince|ta\.crossover|ta\.pivothigh|ta\.valuewhen|table\.delete|ticker\.renko|array\.clear|array\.every|array\.first|array\.range|array\.shift|array\.slice|array\.stdev|box\.get_top|box\.set_top|input\.color|input\.float|input\.price|label\.get_x|label\.get_y|label\.set_x|label\.set_y|line\.delete|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.set_x1|line\.set_x2|line\.set_y1|line\.set_y2|log\.warning|map\.put_all|math\.random|matrix\.copy|matrix\.diff|matrix\.fill|matrix\.kron|matrix\.mode|matrix\.mult|matrix\.pinv|matrix\.rank|matrix\.rows|matrix\.sort|str\.replace|ta\.pivotlow|ta\.variance|table\.clear|ticker\.kagi|array\.copy|array\.fill|array\.from|array\.join|array\.last|array\.mode|array\.push|array\.size|array\.some|array\.sort|box\.delete|dayofmonth|input\.bool|input\.time|label\.copy|map\.remove|map\.values|math\.floor|math\.log10|math\.round|matrix\.avg|matrix\.col|matrix\.det|matrix\.get|matrix\.inv|matrix\.max|matrix\.min|matrix\.new|matrix\.pow|matrix\.row|matrix\.set|matrix\.sum|plotcandle|str\.format|str\.length|ta\.falling|ta\.highest|table\.cell|ticker\.new|time_close|weekofyear|array\.abs|array\.avg|array\.get|array\.max|array\.min|array\.new|array\.pop|array\.set|array\.sum|color\.new|color\.rgb|dayofweek|indicator|input\.int|label\.new|line\.copy|log\.error|map\.clear|math\.acos|math\.asin|math\.atan|input\.enum|math\.ceil|math\.sign|math\.sqrt|plotarrow|plotshape|str\.lower|str\.match|str\.split|str\.upper|ta\.change|ta\.linreg|ta\.lowest|ta\.median|ta\.rising|table\.new|timestamp|barcolor|box\.copy|line\.new|linefill|log\.info|map\.copy|map\.keys|map\.size|math\.abs|math\.avg|math\.cos|math\.exp|math\.log|math\.max|math\.min|math\.pow|math\.sin|math\.sum|math\.tan|plotchar|strategy|ta\.cross|ta\.range|ta\.stdev|ta\.stoch|bgcolor|box\.new|color\.b|color\.g|color\.r|color\.t|library|map\.get|map\.new|map\.put|plotbar|str\.pos|ta\.alma|ta\.macd|ta\.mode|ta\.swma|ta\.vwap|ta\.vwma|fixnan|minute|second|string|ta\.atr|ta\.bbw|ta\.cci|ta\.cmo|ta\.cog|ta\.cum|ta\.dev|ta\.dmi|ta\.ema|ta\.hma|ta\.kcw|ta\.max|ta\.mfi|ta\.min|ta\.mom|ta\.rma|ta\.roc|ta\.rsi|ta\.sar|ta\.sma|ta\.tsi|ta\.wma|ta\.wpr|alert|color|float|hline|input|label|month|ta\.bb|ta\.kc|ta\.tr|table|bool|fill|hour|line|plot|time|year|box|int|na|nz/,keywords:/continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to/,tokenizer:{root:[[/\/\/\s*(?=@)/,"comment","@comments"],[/\/\/.*(?!@).*/,"comment"],[/\'([^\'\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/\"/,{token:"string",bracket:"@open",next:"@stringDouble"}],[/(type|enum)\s+[a-zA-Z]\w*/,"entity.name.type"],[/'/,{token:"string",bracket:"@open",next:"@stringSingle"}],[/(@builtinFunctions)(?=\s*\(|\s*<.*>)/,{token:"support.function",next:"@template"}],[/@punctuation/,{token:"punctuation.operator",next:"@property"}],[/(varip|var)\b(\s+)((?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)/,[{token:"keyword"},{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"}]],[/\b(?:@builtinTypes)(?=(\s*)[\[|<|(]|(?=\s+(?=[^.=][\w\(]*))|\s*$)/,{token:"support.type",next:"@template"}],[/^(\s*)\b(?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)([\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)(\s+)(\=)/,[{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"},{token:"source"},{token:"keyword.equals"}]],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|enum|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/import(?=\s+@importName)/,{token:"keyword",next:"@import"}],[/import(?=\s+[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+)/,"keyword"],[/[+-]?\d+\.\d*([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/[+-]?\.\d+([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/([+-]?(\d+))(?!\w+)(?!\w+)/,"constant.numeric.integer"],[/(?:true|false)\b/,"constant.other.boolean"],[/#[0-9a-fA-F]{6,8}\b/,"constant.other.color"],[/\+=|\-=|\*=|\/=|%=|[\/%*+\-]|==|!=|<=|>=|=>|<|>|\?|\:=|\:|\,/,"keyword.operator"],[/\b(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b/,"keyword"],[/^[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,"entity.name.function"],[/[0-9]+\b/,"constant.numeric.integer"],[/=/,"keyword.equals"],[/\b(?:strategy\.commission\.cash_per_contract|strategy\.avg_winning_trade_percent|strategy\.avg_winning_trade|strategy\.avg_losing_trade_percent|strategy\.avg_losing_trade|syminfo\.recommendations_sell_strong|syminfo\.recommendations_buy_strong|strategy\.commission\.cash_per_order|strategy\.margin_liquidation_price|strategy\.max_contracts_held_short|strategy\.max_contracts_held_long|syminfo\.shares_outstanding_float|syminfo\.shares_outstanding_total|barstate\.islastconfirmedhistory|earnings\.future_period_end_time|strategy\.max_contracts_held_all|syminfo\.target_price_estimates|strategy\.max_drawdown_percent|syminfo\.recommendations_total|alert\.freq_once_per_bar_close|label\.style_label_lower_right|label\.style_label_upper_right|chart\.right_visible_bar_time|strategy\.grossprofit_percent|strategy\.position_entry_name|syminfo\.recommendations_date|syminfo\.recommendations_hold|syminfo\.recommendations_sell|syminfo\.target_price_average|label\.style_label_lower_left|label\.style_label_upper_left|chart\.left_visible_bar_time|strategy\.openprofit_percent|strategy\.position_avg_price|syminfo\.recommendations_buy|syminfo\.target_price_median|plot\.style_stepline_diamond|strategy\.commission\.percent|session\.isfirstbar_regular|strategy\.grossloss_percent|strategy\.max_runup_percent|strategy\.netprofit_percent|strategy\.percent_of_equity|session\.islastbar_regular|strategy\.account_currency|syminfo\.target_price_date|syminfo\.target_price_high|dividends\.future_pay_date|strategy\.initial_capital|syminfo\.target_price_low|dividends\.future_ex_date|label\.style_label_center|label\.style_text_outline|label\.style_triangledown|strategy\.direction\.short|earnings\.future_revenue|alert\.freq_once_per_bar|dividends\.future_amount|label\.style_label_right|strategy\.direction\.long|strategy\.position_size|barmerge\.lookahead_off|label\.style_label_down|label\.style_label_left|label\.style_triangleup|line\.style_arrow_right|position\.bottom_center|position\.middle_center|strategy\.direction\.all|strategy\.closedtrades|strategy\.max_drawdown|barmerge\.lookahead_on|earnings\.standardized|font\.family_monospace|label\.style_arrowdown|line\.style_arrow_both|line\.style_arrow_left|plot\.style_steplinebr|position\.bottom_right|position\.middle_right|barstate\.isconfirmed|earnings\.future_time|session\.ispostmarket|strategy\.grossprofit|syminfo\.basecurrency|syminfo\.shareholders|timeframe\.isintraday|timeframe\.multiplier|adjustment\.dividends|label\.style_label_up|plot\.style_histogram|position\.bottom_left|position\.middle_left|barstate\.isrealtime|chart\.is_heikinashi|earnings\.future_eps|session\.ispremarket|strategy\.eventrades|strategy\.losstrades|strategy\.openprofit|strategy\.opentrades\.capital_held|strategy\.opentrades|syminfo\.description|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|dayofweek\.wednesday|display\.data_window|display\.price_scale|display\.status_line|font\.family_default|label\.style_arrowup|label\.style_diamond|plot\.style_stepline|position\.top_center|strategy\.oca\.cancel|strategy\.oca\.reduce|barstate\.ishistory|chart\.is_linebreak|session\.isfirstbar|strategy\.grossloss|strategy\.max_runup|strategy\.netprofit|strategy\.wintrades|syminfo\.pointvalue|syminfo\.pricescale|syminfo\.volumetype|timeframe\.isweekly|dayofweek\.saturday|dayofweek\.thursday|hline\.style_dashed|hline\.style_dotted|label\.style_circle|label\.style_square|label\.style_xcross|plot\.style_circles|plot\.style_columns|position\.top_right|shape\.triangledown|splits\.denominator|chart\.is_standard|session\.islastbar|syminfo\.employees|timeframe\.isdaily|adjustment\.splits|barmerge\.gaps_off|dayofweek\.tuesday|earnings\.estimate|hline\.style_solid|label\.style_cross|line\.style_dashed|line\.style_dotted|location\.abovebar|location\.absolute|location\.belowbar|plot\.style_areabr|plot\.style_linebr|position\.top_left|strategy\.oca\.none|text\.align_bottom|text\.align_center|barstate\.isfirst|session\.ismarket|syminfo\.currency|syminfo\.industry|syminfo\.tickerid|syminfo\.timezone|timeframe\.period|barmerge\.gaps_on|dayofweek\.friday|dayofweek\.monday|dayofweek\.sunday|label\.style_flag|label\.style_none|line\.style_solid|order\.descending|plot\.style_cross|session\.extended|shape\.triangleup|splits\.numerator|text\.align_right|barstate\.islast|strategy\.equity|syminfo\.country|syminfo\.minmove|syminfo\.mintick|syminfo\.session|time_tradingday|timeframe\.isdwm|adjustment\.none|dividends\.gross|earnings\.actual|location\.bottom|order\.ascending|plot\.style_area|plot\.style_line|session\.regular|shape\.arrowdown|shape\.labeldown|text\.align_left|barstate\.isnew|chart\.bg_color|chart\.fg_color|chart\.is_range|chart\.is_renko|last_bar_index|strategy\.short|syminfo\.prefix|syminfo\.sector|syminfo\.ticker|alert\.freq_all|format\.inherit|format\.mintick|format\.percent|strategy\.fixed|text\.align_top|text\.wrap_auto|text\.wrap_none|xloc\.bar_index|chart\.is_kagi|last_bar_time|strategy\.long|color\.fuchsia|currency\.NONE|currency\.USDT|dividends\.net|format\.volume|shape\.arrowup|shape\.diamond|shape\.labelup|strategy\.cash|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|chart\.is_pnf|linefill\.all|polyline\.all|syminfo\.root|syminfo\.type|color\.maroon|color\.orange|color\.purple|color\.silver|color\.yellow|currency\.AUD|currency\.BTC|currency\.CAD|currency\.CHF|currency\.ETH|currency\.EUR|currency\.GBP|currency\.HKD|currency\.INR|currency\.JPY|currency\.KRW|currency\.MYR|currency\.NOK|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|display\.none|display\.pane|extend\.right|format\.price|location\.top|shape\.circle|shape\.square|shape\.xcross|color\.black|color\.green|color\.olive|color\.white|display\.all|extend\.both|extend\.left|extend\.none|scale\.right|shape\.cross|size\.normal|dayofmonth|ta\.accdist|time_close|weekofyear|color\.aqua|color\.blue|color\.gray|color\.lime|color\.navy|color\.teal|scale\.left|scale\.none|shape\.flag|size\.large|size\.small|yloc\.price|bar_index|dayofweek|label\.all|table\.all|color\.red|math\.rphi|size\.auto|size\.huge|size\.tiny|line\.all|math\.phi|box\.all|ta\.vwap|ta\.wvad|timenow|math\.pi|minute|second|ta\.iii|ta\.nvi|ta\.obv|ta\.pvi|ta\.pvt|ta\.wad|volume|math\.e|close|hlcc4|month|ohlc4|ta\.tr|false|high|hlc3|hour|open|time|year|true|hl2|low|na)\b(?!\s*=\s*\w+)/,"support.variable"],[/[(|)|\[|\]]/,"paren"],[/[a-zA-Z_][a-zA-Z_0-9]*(?=\s*\()/,{token:"entity.name.method"}],[/\w+\b/,"variable.other"]],comments:[[/@[A-Za-z]+(\s*=\s*)?$/,{token:"comment.annotation",next:"@pop"}],[/@[A-Za-z]+(\s*=\s*)?/,{token:"comment.annotation"}],[/(?!\s*@[A-Za-z]+).+$/,{token:"comment",next:"@pop"}]],stringDouble:[[/[^\\\"]+/,"string"],[/\\./,"string.invalid"],[/\"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/\\./,"string.invalid"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],template:[[/(@builtinTypes)/,{token:"support.type"}],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|enum|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/\(|\)|\[|\]|\=|\>/,{token:"paren",next:"@pop"}],[/(\,)(\s+)/,["keyword.operator","source"]],[/(\,)/,{token:"keyword.operator"}],[/([\w.\d$]+)/,{token:"entity.name.type"}],[/(<|>)/,{token:"paren"}],[/\s(?=\w)|$/,{token:"source",next:"@pop"}]],property:[[/@punctuation/,{token:"punctuation.operator"}],[/(@builtinTypes)(?=\s*[(])/,{token:"support.method",next:"@pop"}],[/[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,{token:"entity.name.method",next:"@pop"}],[/[a-zA-Z0-9_]+/,{token:"variable.other.property",next:"@pop"}],[/@empty/,{token:"source",next:"@pop"}]],import:[[/\s+/,{token:"source"}],[/(@importName)(\s+)(as\b)(\s+)(@importAlias)/,[{token:"entity.name.module"},{token:"source"},{token:"keyword"},{token:"source"},{token:"entity.name.module.name",next:"@pop"}]],[/@importName/,{token:"entity.name.module",next:"@pop"}]]},builtinTypes:/chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map/,punctuation:/[.](?![.])/,importName:/[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+/,importAlias:/[a-zA-Z\d\_\u00a1\uffff\/]+/,empty:/^$/};var bt;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(bt||(bt={}));const on={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["[","]"]],folding:{markers:{start:/(\/\/#region)|(\/\/.*{($|\s))/,end:/(\/\/#endregion)|(\/\/.*}($|\s))/}},autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:/\)\s*=>\s*$/,action:{indentAction:bt.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:bt.Indent}},{beforeText:/else/,action:{indentAction:bt.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:bt.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:bt.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:bt.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:bt.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:bt.Indent}},{beforeText:/enum\s+\w+/,action:{indentAction:bt.Indent}},{beforeText:/^\s*$/,action:{indentAction:bt.Outdent}}]},I={"color-white":"#ffffff","color-black":"#000000","color-transparent":"#00000000","color-cold-gray-50":"#F8F9FD","color-cold-gray-100":"#F0F3FA","color-cold-gray-150":"#E0E3EB","color-cold-gray-200":"#D1D4DC","color-cold-gray-250":"#C1C4CD","color-cold-gray-300":"#B2B5BE","color-cold-gray-350":"#A3A6AF","color-cold-gray-400":"#9598A1","color-cold-gray-450":"#868993","color-cold-gray-500":"#787B86","color-cold-gray-550":"#6A6D78","color-cold-gray-600":"#5D606B","color-cold-gray-650":"#50535E","color-cold-gray-700":"#434651","color-cold-gray-750":"#363A45","color-cold-gray-800":"#2A2E39","color-cold-gray-850":"#1E222D","color-cold-gray-900":"#131722","color-cold-gray-950":"#0C0E15","color-ripe-red-50":"#FFEBEC","color-ripe-red-100":"#FCCBCD","color-ripe-red-200":"#FAA1A4","color-ripe-red-300":"#F77C80","color-ripe-red-400":"#F7525F","color-ripe-red-500":"#F23645","color-ripe-red-600":"#CC2F3C","color-ripe-red-700":"#B22833","color-ripe-red-800":"#991F29","color-ripe-red-900":"#801922","color-ripe-red-a100":"#FF8080","color-ripe-red-a200":"#FF5252","color-ripe-red-a400":"#FF3333","color-ripe-red-a600":"#CC2929","color-ripe-red-a700":"#802028","color-ripe-red-a800":"#4D191D","color-ripe-red-a900":"#331F20","color-tan-orange-50":"#FFF3E0","color-tan-orange-100":"#FFE0B2","color-tan-orange-200":"#FFCC80","color-tan-orange-300":"#ffb74d","color-tan-orange-400":"#FFA726","color-tan-orange-500":"#FF9800","color-tan-orange-600":"#FB8C00","color-tan-orange-700":"#F57C00","color-tan-orange-800":"#EF6C00","color-tan-orange-900":"#e65100","color-tan-orange-a200":"#ffab40","color-tan-orange-a400":"#FF9100","color-tan-orange-a600":"#CC7014","color-tan-orange-a700":"#8C541C","color-tan-orange-a800":"#593A1B","color-tan-orange-a900":"#33261A","color-iguana-green-100":"#C8E6C9","color-iguana-green-200":"#A5D6A7","color-iguana-green-300":"#81c784","color-iguana-green-400":"#66BB6A","color-iguana-green-500":"#4caf50","color-iguana-green-600":"#43a047","color-iguana-green-700":"#388e3c","color-iguana-green-800":"#2E7D32","color-iguana-green-900":"#1B5E20","color-iguana-green-a700":"#00c853","color-banana-yellow-100":"#FFF9C4","color-banana-yellow-200":"#FFF59D","color-banana-yellow-300":"#FFF176","color-banana-yellow-400":"#ffee58","color-banana-yellow-500":"#ffeb3b","color-banana-yellow-600":"#fdd835","color-banana-yellow-700":"#fbc02d","color-banana-yellow-800":"#f9a825","color-banana-yellow-900":"#F57F17","color-banana-yellow-a400":"#ffea00","color-banana-yellow-a700":"#EEDA01","color-tv-blue-50":"#E3EFFD","color-tv-blue-100":"#BBD9FB","color-tv-blue-200":"#90BFF9","color-tv-blue-300":"#5B9CF6","color-tv-blue-400":"#3179F5","color-tv-blue-500":"#2962FF","color-tv-blue-600":"#1E53E5","color-tv-blue-700":"#1848CC","color-tv-blue-800":"#143EB3","color-tv-blue-900":"#0C3299","color-tv-blue-a100":"#82b1ff","color-tv-blue-a200":"#448aff","color-tv-blue-a400":"#2979ff","color-tv-blue-a600":"#2962FF","color-tv-blue-a700":"#143A87","color-tv-blue-a800":"#142E61","color-tv-blue-a900":"#132042","color-deep-blue-50":"#EDE7F6","color-deep-blue-100":"#D1C4E9","color-deep-blue-200":"#B39DDB","color-deep-blue-300":"#9575cd","color-deep-blue-400":"#7e57c2","color-deep-blue-500":"#673ab7","color-deep-blue-700":"#512da8","color-deep-blue-800":"#4527A0","color-deep-blue-900":"#311B92","color-deep-blue-a100":"#b388ff","color-deep-blue-a200":"#7C4DFF","color-deep-blue-a400":"#651FFF","color-deep-blue-a700":"#6200EA","color-minty-green-50":"#DAF2EE","color-minty-green-100":"#ACE5DC","color-minty-green-200":"#70CCBD","color-minty-green-300":"#42BDA8","color-minty-green-400":"#22AB94","color-minty-green-500":"#089981","color-minty-green-600":"#06806B","color-minty-green-700":"#056656","color-minty-green-800":"#004D40","color-minty-green-900":"#00332A","color-minty-green-a400":"#2BD9BC","color-minty-green-a600":"#24B29B","color-minty-green-a700":"#1B7667","color-minty-green-a800":"#10443B","color-minty-green-a900":"#082621","color-grapes-purple-50":"#F3E5F5","color-grapes-purple-100":"#E1BEE7","color-grapes-purple-200":"#CE93D8","color-grapes-purple-300":"#ba68c8","color-grapes-purple-400":"#ab47bc","color-grapes-purple-500":"#9c27b0","color-grapes-purple-600":"#8e24aa","color-grapes-purple-700":"#7b1fa2","color-grapes-purple-800":"#6A1B9A","color-grapes-purple-900":"#4A148C","color-grapes-purple-a100":"#EA80FC","color-grapes-purple-a200":"#E040FB","color-grapes-purple-a400":"#D500F9","color-grapes-purple-a700":"#aa00ff","color-berry-pink-100":"#F8BBD0","color-berry-pink-200":"#f48fb1","color-berry-pink-300":"#f06292","color-berry-pink-400":"#ec407a","color-berry-pink-500":"#e91e63","color-berry-pink-600":"#D81B60","color-berry-pink-700":"#C2185B","color-berry-pink-800":"#AD1457","color-berry-pink-900":"#880E4F","color-berry-pink-a100":"#ff80ab","color-berry-pink-a200":"#ff4081","color-berry-pink-a400":"#f50057","color-sky-blue-100":"#B2EBF2","color-sky-blue-200":"#80DEEA","color-sky-blue-300":"#4dd0e1","color-sky-blue-400":"#26c6da","color-sky-blue-500":"#00bcd4","color-sky-blue-600":"#00acc1","color-sky-blue-700":"#0097A7","color-sky-blue-800":"#00838F","color-sky-blue-900":"#006064","color-sky-blue-a400":"#00e5ff","color-sky-blue-a700":"#00B8D4","color-deep-blue-600":"#5E35B1","color-forest-green-50":"#DAF2E6","color-forest-green-100":"#ACE5C9","color-forest-green-200":"#70CC9E","color-forest-green-300":"#42BD7F","color-forest-green-400":"#22AB67","color-forest-green-500":"#089950","color-forest-green-600":"#068043","color-forest-green-700":"#056636","color-forest-green-800":"#004D27","color-forest-green-900":"#1A3326","color-facebook":"#1877F2","color-deep-facebook":"#1564CA","color-twitter":"#1DA1F2","color-deep-twitter":"#188CD3","color-youtube":"#FF0000","color-linkedin":"#007BB5","color-seeking-alpha-brand":"#ff7200"};function Ft(a,n=1){return a+Math.round(255*Math.min(Math.max(n,0),1)).toString(16).toUpperCase().padStart(2,"0")}const ln={base:"vs",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-cold-gray-900"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-a600"]},{token:"constant.other.color",foreground:I["color-ripe-red-a600"]},{token:"constant.other",foreground:I["color-ripe-red-a600"]},{token:"support.variable",foreground:I["color-ripe-red-a600"]},{token:"support.function",foreground:I["color-tv-blue-a600"]},{token:"support.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:I["color-tv-blue-a600"]},{token:"keyword.equals",foreground:I["color-minty-green-400"]},{token:"keyword.operator",foreground:I["color-minty-green-400"]},{token:"keyword.other",foreground:I["color-minty-green-400"]},{token:"keyword",foreground:I["color-minty-green-400"]},{token:"variable.other",foreground:I["color-cold-gray-800"]},{token:"variable.other.property",foreground:I["color-cold-gray-800"]},{token:"paren",foreground:I["color-black"]},{token:"entity.name.function",foreground:I["color-tv-blue-900"]},{token:"entity.name.method",foreground:I["color-tv-blue-900"]},{token:"meta.function-call",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module",foreground:I["color-tv-blue-a600"]},{token:"",background:I["color-white"]}],colors:{"editor.foreground":I["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":I["color-cold-gray-400"],"editorLineNumber.activeForeground":I["color-cold-gray-700"],"editorHoverWidget.background":I["color-white"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-150"],"editorHoverWidget.foreground":I["color-cold-gray-900"],"editorWidget.background":I["color-white"],"editorWidget.foreground":I["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Ft(I["color-cold-gray-200"],.5),"editor.lineHighlightBackground":I["color-tv-blue-50"],"editor.lineHighlightBorder":I["color-tv-blue-50"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-150"],"editor.selectionBackground":I["color-tv-blue-100"],"editor.selectionHighlightBackground":I["color-tv-blue-50"],"editor.findMatchBackground":I["color-tan-orange-100"],"editor.findMatchHighlightBackground":I["color-tan-orange-100"],"editor.findMatchBorder":I["color-tan-orange-500"],"list.foreground":I["color-cold-gray-900"],"list.hoverForeground":I["color-cold-gray-900"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-50"],"list.focusHighlightForeground":I["color-tv-blue-100"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-white"],"keybindingLabel.foreground":I["color-cold-gray-900"],"keybindingLabel.border":I["color-cold-gray-150"],"input.foreground":I["color-cold-gray-900"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-100"],"peekViewResult.lineForeground":I["color-cold-gray-900"],"editorMarkerNavigationWarning.background":I["color-banana-yellow-800"],"inputValidation.warningBackground":I["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Ft(I["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Ft(I["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Ft(I["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Ft(I["color-ripe-red-500"],.15),"editorInlayHint.background":I["color-cold-gray-150"],"editorInlayHint.foreground":I["color-cold-gray-550"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-500"]}},cn={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-white"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-300"]},{token:"constant.other.color",foreground:I["color-ripe-red-300"]},{token:"constant.other",foreground:I["color-ripe-red-300"]},{token:"support.variable",foreground:I["color-ripe-red-300"]},{token:"support.function",foreground:I["color-tv-blue-300"]},{token:"support.method",foreground:I["color-tv-blue-300"]},{token:"support.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:I["color-minty-green-300"]},{token:"keyword.operator",foreground:I["color-minty-green-300"]},{token:"keyword.other",foreground:I["color-minty-green-300"]},{token:"keyword",foreground:I["color-minty-green-300"]},{token:"variable.other",foreground:I["color-cold-gray-200"]},{token:"variable.other.property",foreground:I["color-cold-gray-200"]},{token:"paren",foreground:I["color-white"]},{token:"entity.name.function",foreground:I["color-tv-blue-400"]},{token:"entity.name.method",foreground:I["color-tv-blue-400"]},{token:"meta.function-call",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module",foreground:I["color-tv-blue-300"]},{token:"",background:I["color-cold-gray-900"]}],colors:{"editor.foreground":I["color-white"],"editor.background":I["color-cold-gray-900"],"editorLineNumber.foreground":I["color-cold-gray-500"],"editorLineNumber.activeForeground":I["color-cold-gray-300"],"editorWidget.background":I["color-cold-gray-850"],"editorHoverWidget.background":I["color-cold-gray-850"],"editorHoverWidget.foreground":I["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-900"],"editorWidget.foreground":I["color-cold-gray-300"],"editorGutter.background":I["color-cold-gray-900"],"editor.foldBackground":Ft(I["color-cold-gray-700"],.5),"editor.lineHighlightBackground":I["color-tv-blue-a900"],"editor.lineHighlightBorder":I["color-tv-blue-a900"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-750"],"editor.selectionBackground":I["color-tv-blue-a800"],"editor.selectionHighlightBackground":I["color-cold-gray-800"],"list.foreground":I["color-cold-gray-350"],"list.hoverForeground":I["color-cold-gray-350"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-900"],"list.focusHighlightForeground":I["color-tv-blue-300"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-cold-gray-800"],"keybindingLabel.foreground":I["color-cold-gray-300"],"keybindingLabel.border":I["color-cold-gray-700"],"input.foreground":I["color-cold-gray-350"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-a800"],"peekViewResult.lineForeground":I["color-cold-gray-350"],"diffEditor.insertedTextBackground":Ft(I["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Ft(I["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Ft(I["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Ft(I["color-ripe-red-a400"],.15),"editorInlayHint.background":I["color-cold-gray-800"],"editorInlayHint.foreground":I["color-cold-gray-400"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-700"]}},Sd=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Ed=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,oo={"color.aqua":"#00BCD4","color.black":"#363A45","color.blue":"#2196F3","color.fuchsia":"#E040FB","color.gray":"#787B86","color.green":"#4CAF50","color.lime":"#00E676","color.maroon":"#880E4F","color.navy":"#311B92","color.olive":"#808000","color.orange":"#FF9800","color.purple":"#9C27B0","color.red":"#FF5252","color.silver":"#B2B5BE","color.teal":"#00897B","color.white":"#FFFFFF","color.yellow":"#FFEB3B"};class Nd{constructor(n){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(s=[],o)=>{const l=new Map,c=o.indexOf("(");for(let m=c+1,_=c;m<o.length;m++)o[m]!==","&&o[m]!==")"||(_++,l.set(o.slice(_,m),_),_=m+1);return s.map(({name:m="",displayType:_,desc:g})=>{const b=[],h=l.get(m),T=h+m.length;return b.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(_||""))),g&&b.push(Array.isArray(g)?g.join(this._formatter.lineBreak):g),{label:[h,T],documentation:{value:b.join(this._formatter.lineBreak)}}})}}),this._formatter=ie,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(n)}getSignatureHelpValues(n,s){const o=this._getFuncItems(n);if(!(o!=null&&o.length))return null;const l=this._getSequentialSignatures(n,o),c=this._getActiveIndex(o,s);return{signatures:l,...c}}_getActiveIndex(n,s=[]){let o=0,l=-1;s.some(m=>!!m)||(l=s.length-1);const c=s.pop();if(c)for(const[m,_]of n.entries()){const{args:g}=_;if(g&&g.length){const b=g.findIndex(h=>h.name===c);if(b!=-1){l=b,o=m;break}}}return{activeParameter:l,activeSignature:o}}_getFuncItems(n){return lt.functions.get(n)||zt.userFuncs.get(n)||zt.methodFuncs.get(n)}_getSequentialSignatures(n,s){return s.map(o=>{const l=this._getSignatureLabel(n,o);return{label:l,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,l)}})}_getSignatureLabel(n,s,o=!1){const l=[n];return o&&l.push("<type>"),s.args&&(l.push("("),l.push(s.args.map(({name:c})=>c).join(", ")),l.push(")")),l.join("")}_getFormattedSignatureDocumentation(n){const{desc:s}=n,o=[];s&&o.push(Array.isArray(s)?s.join(this._formatter.lineBreak):s);const l=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
137
+ }`;var oe=np(function(){return xe(u,X+"return "+E).apply(s,y)});if(oe.source=E,Ci(oe))throw oe;return oe}function ax(e){return ve(e).toLowerCase()}function nx(e){return ve(e).toUpperCase()}function ix(e,t,r){if(e=ve(e),e&&(r||t===s))return yl(e);if(!e||!(t=yt(t)))return e;var i=Mt(e),p=Mt(t),u=_l(i,p),y=fl(i,p)+1;return _r(i,u,y).join("")}function ox(e,t,r){if(e=ve(e),e&&(r||t===s))return e.slice(0,bl(e)+1);if(!e||!(t=yt(t)))return e;var i=Mt(e),p=fl(i,Mt(t))+1;return _r(i,0,p).join("")}function lx(e,t,r){if(e=ve(e),e&&(r||t===s))return e.replace(ks,"");if(!e||!(t=yt(t)))return e;var i=Mt(e),p=_l(i,Mt(t));return _r(i,p).join("")}function cx(e,t){var r=le,i=xt;if(Se(t)){var p="separator"in t?t.separator:p;r="length"in t?ne(t.length):r,i="omission"in t?yt(t.omission):i}e=ve(e);var u=e.length;if(Hr(e)){var y=Mt(e);u=y.length}if(r>=u)return e;var x=r-Wr(i);if(x<1)return i;var v=y?_r(y,0,x).join(""):e.slice(0,x);if(p===s)return v+i;if(y&&(x+=v.length-x),zi(p)){if(e.slice(x).search(p)){var z,S=v;for(p.global||(p=Wn(p.source,ve(we.exec(p))+"g")),p.lastIndex=0;z=p.exec(S);)var E=z.index;v=v.slice(0,E===s?x:E)}}else if(e.indexOf(yt(p),x)!=x){var $=v.lastIndexOf(p);$>-1&&(v=v.slice(0,$))}return v+i}function px(e){return e=ve(e),e&&Ts.test(e)?e.replace(Gt,Ru):e}var dx=Jr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Ni=ic("toUpperCase");function ap(e,t,r){return e=ve(e),t=r?s:t,t===s?Nu(e)?Uu(e):Du(e):e.match(t)||[]}var np=ce(function(e,t){try{return mt(e,s,t)}catch(r){return Ci(r)?r:new re(r)}}),mx=Zt(function(e,t){return Tt(t,function(r){r=jt(r),Yt(e,r,Ai(e[r],e))}),e});function ux(e){var t=e==null?0:e.length,r=Y();return e=t?Ce(e,function(i){if(typeof i[1]!="function")throw new Dt(m);return[r(i[0]),i[1]]}):[],ce(function(i){for(var p=-1;++p<t;){var u=e[p];if(mt(u[0],this,i))return mt(u[1],this,i)}})}function yx(e){return Ry(It(e,T))}function Li(e){return function(){return e}}function _x(e,t){return e==null||e!==e?t:e}var fx=lc(),gx=lc(!0);function it(e){return e}function Mi(e){return Rl(typeof e=="function"?e:It(e,T))}function bx(e){return Bl(It(e,T))}function xx(e,t){return Ul(e,It(t,T))}var hx=ce(function(e,t){return function(r){return Ls(r,e,t)}}),wx=ce(function(e,t){return function(r){return Ls(e,r,t)}});function Pi(e,t,r){var i=je(t),p=La(t,i);r==null&&!(Se(t)&&(p.length||!i.length))&&(r=t,t=e,e=this,p=La(t,je(t)));var u=!(Se(r)&&"chain"in r)||!!r.chain,y=er(e);return Tt(p,function(x){var v=t[x];e[x]=v,y&&(e.prototype[x]=function(){var z=this.__chain__;if(u||z){var S=e(this.__wrapped__),E=S.__actions__=st(this.__actions__);return E.push({func:v,args:arguments,thisArg:e}),S.__chain__=z,S}return v.apply(e,cr([this.value()],arguments))})}),e}function vx(){return We._===this&&(We._=Gu),this}function Oi(){}function Tx(e){return e=ne(e),ce(function(t){return Kl(t,e)})}var Dx=yi(Ce),kx=yi(cl),Ix=yi(Fn);function ip(e){return wi(e)?Bn(jt(e)):t_(e)}function Ax(e){return function(t){return e==null?s:qr(e,t)}}var qx=pc(),Cx=pc(!0);function Ri(){return[]}function Fi(){return!1}function zx(){return{}}function Sx(){return""}function Ex(){return!0}function Nx(e,t){if(e=ne(e),e<1||e>Pe)return[];var r=te,i=Ve(e,te);t=Y(t),e-=te;for(var p=$n(i,t);++r<e;)t(r);return p}function Lx(e){return se(e)?Ce(e,jt):_t(e)?[e]:st(Ic(ve(e)))}function Mx(e){var t=++Hu;return ve(e)+t}var Px=Ba(function(e,t){return e+t},0),Ox=_i("ceil"),Rx=Ba(function(e,t){return e/t},1),Fx=_i("floor");function Bx(e){return e&&e.length?Na(e,it,ei):s}function Ux(e,t){return e&&e.length?Na(e,Y(t,2),ei):s}function Kx(e){return ml(e,it)}function $x(e,t){return ml(e,Y(t,2))}function jx(e){return e&&e.length?Na(e,it,ai):s}function Hx(e,t){return e&&e.length?Na(e,Y(t,2),ai):s}var Wx=Ba(function(e,t){return e*t},1),Gx=_i("round"),Xx=Ba(function(e,t){return e-t},0);function Vx(e){return e&&e.length?Kn(e,it):0}function Yx(e,t){return e&&e.length?Kn(e,Y(t,2)):0}return d.after=bg,d.ary=Oc,d.assign=nb,d.assignIn=Qc,d.assignInWith=Ja,d.assignWith=ib,d.at=ob,d.before=Rc,d.bind=Ai,d.bindAll=mx,d.bindKey=Fc,d.castArray=zg,d.chain=Lc,d.chunk=R_,d.compact=F_,d.concat=B_,d.cond=ux,d.conforms=yx,d.constant=Li,d.countBy=Vf,d.create=lb,d.curry=Bc,d.curryRight=Uc,d.debounce=Kc,d.defaults=cb,d.defaultsDeep=pb,d.defer=xg,d.delay=hg,d.difference=U_,d.differenceBy=K_,d.differenceWith=$_,d.drop=j_,d.dropRight=H_,d.dropRightWhile=W_,d.dropWhile=G_,d.fill=X_,d.filter=Qf,d.flatMap=eg,d.flatMapDeep=tg,d.flatMapDepth=rg,d.flatten=zc,d.flattenDeep=V_,d.flattenDepth=Y_,d.flip=wg,d.flow=fx,d.flowRight=gx,d.fromPairs=Q_,d.functions=gb,d.functionsIn=bb,d.groupBy=sg,d.initial=J_,d.intersection=ef,d.intersectionBy=tf,d.intersectionWith=rf,d.invert=hb,d.invertBy=wb,d.invokeMap=ng,d.iteratee=Mi,d.keyBy=ig,d.keys=je,d.keysIn=nt,d.map=Ga,d.mapKeys=Tb,d.mapValues=Db,d.matches=bx,d.matchesProperty=xx,d.memoize=Va,d.merge=kb,d.mergeWith=Zc,d.method=hx,d.methodOf=wx,d.mixin=Pi,d.negate=Ya,d.nthArg=Tx,d.omit=Ib,d.omitBy=Ab,d.once=vg,d.orderBy=og,d.over=Dx,d.overArgs=Tg,d.overEvery=kx,d.overSome=Ix,d.partial=qi,d.partialRight=$c,d.partition=lg,d.pick=qb,d.pickBy=Jc,d.property=ip,d.propertyOf=Ax,d.pull=of,d.pullAll=Ec,d.pullAllBy=lf,d.pullAllWith=cf,d.pullAt=pf,d.range=qx,d.rangeRight=Cx,d.rearg=Dg,d.reject=dg,d.remove=df,d.rest=kg,d.reverse=ki,d.sampleSize=ug,d.set=zb,d.setWith=Sb,d.shuffle=yg,d.slice=mf,d.sortBy=gg,d.sortedUniq=xf,d.sortedUniqBy=hf,d.split=ex,d.spread=Ig,d.tail=wf,d.take=vf,d.takeRight=Tf,d.takeRightWhile=Df,d.takeWhile=kf,d.tap=Bf,d.throttle=Ag,d.thru=Wa,d.toArray=Xc,d.toPairs=ep,d.toPairsIn=tp,d.toPath=Lx,d.toPlainObject=Yc,d.transform=Eb,d.unary=qg,d.union=If,d.unionBy=Af,d.unionWith=qf,d.uniq=Cf,d.uniqBy=zf,d.uniqWith=Sf,d.unset=Nb,d.unzip=Ii,d.unzipWith=Nc,d.update=Lb,d.updateWith=Mb,d.values=rs,d.valuesIn=Pb,d.without=Ef,d.words=ap,d.wrap=Cg,d.xor=Nf,d.xorBy=Lf,d.xorWith=Mf,d.zip=Pf,d.zipObject=Of,d.zipObjectDeep=Rf,d.zipWith=Ff,d.entries=ep,d.entriesIn=tp,d.extend=Qc,d.extendWith=Ja,Pi(d,d),d.add=Px,d.attempt=np,d.camelCase=Bb,d.capitalize=rp,d.ceil=Ox,d.clamp=Ob,d.clone=Sg,d.cloneDeep=Ng,d.cloneDeepWith=Lg,d.cloneWith=Eg,d.conformsTo=Mg,d.deburr=sp,d.defaultTo=_x,d.divide=Rx,d.endsWith=Ub,d.eq=Ot,d.escape=Kb,d.escapeRegExp=$b,d.every=Yf,d.find=Zf,d.findIndex=qc,d.findKey=db,d.findLast=Jf,d.findLastIndex=Cc,d.findLastKey=mb,d.floor=Fx,d.forEach=Mc,d.forEachRight=Pc,d.forIn=ub,d.forInRight=yb,d.forOwn=_b,d.forOwnRight=fb,d.get=Si,d.gt=Pg,d.gte=Og,d.has=xb,d.hasIn=Ei,d.head=Sc,d.identity=it,d.includes=ag,d.indexOf=Z_,d.inRange=Rb,d.invoke=vb,d.isArguments=Sr,d.isArray=se,d.isArrayBuffer=Rg,d.isArrayLike=at,d.isArrayLikeObject=Oe,d.isBoolean=Fg,d.isBuffer=fr,d.isDate=Bg,d.isElement=Ug,d.isEmpty=Kg,d.isEqual=$g,d.isEqualWith=jg,d.isError=Ci,d.isFinite=Hg,d.isFunction=er,d.isInteger=jc,d.isLength=Qa,d.isMap=Hc,d.isMatch=Wg,d.isMatchWith=Gg,d.isNaN=Xg,d.isNative=Vg,d.isNil=Qg,d.isNull=Yg,d.isNumber=Wc,d.isObject=Se,d.isObjectLike=Me,d.isPlainObject=Bs,d.isRegExp=zi,d.isSafeInteger=Zg,d.isSet=Gc,d.isString=Za,d.isSymbol=_t,d.isTypedArray=ts,d.isUndefined=Jg,d.isWeakMap=eb,d.isWeakSet=tb,d.join=sf,d.kebabCase=jb,d.last=qt,d.lastIndexOf=af,d.lowerCase=Hb,d.lowerFirst=Wb,d.lt=rb,d.lte=sb,d.max=Bx,d.maxBy=Ux,d.mean=Kx,d.meanBy=$x,d.min=jx,d.minBy=Hx,d.stubArray=Ri,d.stubFalse=Fi,d.stubObject=zx,d.stubString=Sx,d.stubTrue=Ex,d.multiply=Wx,d.nth=nf,d.noConflict=vx,d.noop=Oi,d.now=Xa,d.pad=Gb,d.padEnd=Xb,d.padStart=Vb,d.parseInt=Yb,d.random=Fb,d.reduce=cg,d.reduceRight=pg,d.repeat=Qb,d.replace=Zb,d.result=Cb,d.round=Gx,d.runInContext=w,d.sample=mg,d.size=_g,d.snakeCase=Jb,d.some=fg,d.sortedIndex=uf,d.sortedIndexBy=yf,d.sortedIndexOf=_f,d.sortedLastIndex=ff,d.sortedLastIndexBy=gf,d.sortedLastIndexOf=bf,d.startCase=tx,d.startsWith=rx,d.subtract=Xx,d.sum=Vx,d.sumBy=Yx,d.template=sx,d.times=Nx,d.toFinite=tr,d.toInteger=ne,d.toLength=Vc,d.toLower=ax,d.toNumber=Ct,d.toSafeInteger=ab,d.toString=ve,d.toUpper=nx,d.trim=ix,d.trimEnd=ox,d.trimStart=lx,d.truncate=cx,d.unescape=px,d.uniqueId=Mx,d.upperCase=dx,d.upperFirst=Ni,d.each=Mc,d.eachRight=Pc,d.first=Sc,Pi(d,function(){var e={};return Kt(d,function(t,r){Te.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=o,Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Tt(["drop","take"],function(e,t){ue.prototype[e]=function(r){r=r===s?1:Ke(ne(r),0);var i=this.__filtered__&&!t?new ue(this):this.clone();return i.__filtered__?i.__takeCount__=Ve(r,i.__takeCount__):i.__views__.push({size:Ve(r,te),type:e+(i.__dir__<0?"Right":"")}),i},ue.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Tt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==Be||r==ge;ue.prototype[e]=function(p){var u=this.clone();return u.__iteratees__.push({iteratee:Y(p,3),type:r}),u.__filtered__=u.__filtered__||i,u}}),Tt(["head","last"],function(e,t){var r="take"+(t?"Right":"");ue.prototype[e]=function(){return this[r](1).value()[0]}}),Tt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ue.prototype[e]=function(){return this.__filtered__?new ue(this):this[r](1)}}),ue.prototype.compact=function(){return this.filter(it)},ue.prototype.find=function(e){return this.filter(e).head()},ue.prototype.findLast=function(e){return this.reverse().find(e)},ue.prototype.invokeMap=ce(function(e,t){return typeof e=="function"?new ue(this):this.map(function(r){return Ls(r,e,t)})}),ue.prototype.reject=function(e){return this.filter(Ya(Y(e)))},ue.prototype.slice=function(e,t){e=ne(e);var r=this;return r.__filtered__&&(e>0||t<0)?new ue(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==s&&(t=ne(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},ue.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ue.prototype.toArray=function(){return this.take(te)},Kt(ue.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),p=d[i?"take"+(t=="last"?"Right":""):t],u=i||/^find/.test(t);p&&(d.prototype[t]=function(){var y=this.__wrapped__,x=i?[1]:arguments,v=y instanceof ue,z=x[0],S=v||se(y),E=function(de){var _e=p.apply(d,cr([de],x));return i&&$?_e[0]:_e};S&&r&&typeof z=="function"&&z.length!=1&&(v=S=!1);var $=this.__chain__,X=!!this.__actions__.length,Z=u&&!$,oe=v&&!X;if(!u&&S){y=oe?y:new ue(this);var J=e.apply(y,x);return J.__actions__.push({func:Wa,args:[E],thisArg:s}),new kt(J,$)}return Z&&oe?e.apply(this,x):(J=this.thru(E),Z?i?J.value()[0]:J.value():J)})}),Tt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ba[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var p=arguments;if(i&&!this.__chain__){var u=this.value();return t.apply(se(u)?u:[],p)}return this[r](function(y){return t.apply(se(y)?y:[],p)})}}),Kt(ue.prototype,function(e,t){var r=d[t];if(r){var i=r.name+"";Te.call(Yr,i)||(Yr[i]=[]),Yr[i].push({name:t,func:r})}}),Yr[Fa(s,V).name]=[{name:"wrapper",func:s}],ue.prototype.clone=cy,ue.prototype.reverse=py,ue.prototype.value=dy,d.prototype.at=Uf,d.prototype.chain=Kf,d.prototype.commit=$f,d.prototype.next=jf,d.prototype.plant=Wf,d.prototype.reverse=Gf,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=Xf,d.prototype.first=d.prototype.head,As&&(d.prototype[As]=Hf),d},Gr=Ku();Tr?((Tr.exports=Gr)._=Gr,Mn._=Gr):We._=Gr}).call(ss)}(Ws,Ws.exports);var io=Ws.exports;const Ee="tccScript",Nr={builtinFunctions:/strategy\.closedtrades\.max_drawdown_percent|strategy\.opentrades\.max_drawdown_percent|strategy\.risk\.max_intraday_filled_orders|strategy\.closedtrades\.max_runup_percent|array\.percentile_linear_interpolation|strategy\.closedtrades\.entry_bar_index|strategy\.opentrades\.max_runup_percent|strategy\.closedtrades\.exit_bar_index|strategy\.closedtrades\.profit_percent|strategy\.closedtrades\.entry_comment|strategy\.opentrades\.entry_bar_index|strategy\.closedtrades\.exit_comment|strategy\.closedtrades\.max_drawdown|strategy\.opentrades\.profit_percent|ta\.percentile_linear_interpolation|strategy\.closedtrades\.entry_price|strategy\.opentrades\.entry_comment|strategy\.closedtrades\.commission|strategy\.closedtrades\.entry_time|strategy\.closedtrades\.exit_price|strategy\.opentrades\.max_drawdown|strategy\.risk\.max_cons_loss_days|strategy\.closedtrades\.exit_time|strategy\.closedtrades\.max_runup|strategy\.opentrades\.entry_price|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|table\.cell_set_text_font_family|strategy\.closedtrades\.entry_id|strategy\.opentrades\.commission|strategy\.opentrades\.entry_time|array\.binary_search_rightmost|array\.percentile_nearest_rank|strategy\.closedtrades\.exit_id|strategy\.opentrades\.max_runup|array\.binary_search_leftmost|strategy\.closedtrades\.profit|strategy\.opentrades\.entry_id|strategy\.risk\.allow_entry_in|strategy\.convert_to_account|box\.set_bottom_right_point|label\.set_text_font_family|strategy\.closedtrades\.size|strategy\.convert_to_symbol|strategy\.default_entry_qty|strategy\.opentrades\.profit|strategy\.risk\.max_drawdown|ta\.percentile_nearest_rank|table\.cell_set_text_halign|table\.cell_set_text_valign|request\.security_lower_tf|table\.cell_set_text_color|box\.set_text_font_family|strategy\.opentrades\.size|table\.cell_set_text_size|matrix\.is_antisymmetric|box\.set_top_left_point|chart\.point\.from_index|matrix\.is_antidiagonal|table\.cell_set_bgcolor|table\.cell_set_tooltip|table\.set_border_color|table\.set_border_width|timeframe\.from_seconds|chart\.point\.from_time|line\.set_second_point|math\.round_to_mintick|matrix\.elements_count|request\.currency_rate|ta\.pivot_point_levels|table\.cell_set_height|table\.set_frame_color|table\.set_frame_width|box\.set_border_color|box\.set_border_style|box\.set_border_width|line\.set_first_point|matrix\.is_stochastic|matrix\.is_triangular|table\.cell_set_width|timeframe\.in_seconds|array\.binary_search|box\.set_rightbottom|box\.set_text_halign|box\.set_text_valign|color\.from_gradient|label\.set_textalign|label\.set_textcolor|matrix\.eigenvectors|matrix\.is_symmetric|matrix\.swap_columns|strategy\.cancel_all|table\.cell_set_text|array\.new_linefill|array\.sort_indices|box\.set_text_color|linefill\.get_line1|linefill\.get_line2|linefill\.set_color|matrix\.eigenvalues|matrix\.is_diagonal|matrix\.is_identity|strategy\.close_all|table\.set_position|ticker\.pointfigure|array\.lastindexof|array\.percentrank|array\.standardize|box\.set_text_size|box\.set_text_wrap|label\.set_tooltip|matrix\.remove_col|matrix\.remove_row|request\.dividends|request\.financial|table\.merge_cells|table\.set_bgcolor|ticker\.heikinashi|array\.covariance|array\.new_string|chart\.point\.copy|matrix\.is_binary|matrix\.is_square|matrix\.submatrix|matrix\.swap_rows|matrix\.transpose|request\.earnings|request\.economic|request\.security|ticker\.linebreak|timeframe\.change|array\.new_color|array\.new_float|array\.new_label|array\.new_table|box\.set_bgcolor|box\.set_lefttop|chart\.point\.new|chart\.point\.now|input\.text_area|input\.timeframe|label\.set_color|label\.set_point|label\.set_style|line\.set_extend|linefill\.delete|polyline\.delete|str\.format_time|str\.replace_all|strategy\.cancel|ticker\.standard|alertcondition|array\.includes|array\.new_bool|array\.new_line|array\.variance|box\.get_bottom|box\.set_bottom|box\.set_extend|label\.get_text|label\.set_size|label\.set_text|label\.set_xloc|label\.set_yloc|line\.get_price|line\.set_color|line\.set_style|line\.set_width|math\.todegrees|math\.toradians|matrix\.add_col|matrix\.add_row|matrix\.columns|matrix\.is_zero|matrix\.reshape|matrix\.reverse|request\.quandl|request\.splits|str\.startswith|strategy\.close|strategy\.entry|strategy\.order|syminfo\.prefix|syminfo\.ticker|ta\.correlation|ta\.highestbars|ta\.percentrank|ticker\.inherit|array\.indexof|array\.new_box|array\.new_int|array\.reverse|array\.unshift|box\.get_right|box\.set_right|input\.session|line\.set_xloc|matrix\.concat|matrix\.median|max_bars_back|runtime\.error|str\.substring|strategy\.exit|ta\.crossunder|ta\.lowestbars|ta\.supertrend|ticker\.modify|array\.concat|array\.insert|array\.median|array\.remove|box\.get_left|box\.set_left|box\.set_text|input\.source|input\.string|input\.symbol|label\.delete|label\.set_xy|line\.set_xy1|line\.set_xy2|linefill\.new|map\.contains|matrix\.trace|polyline\.new|request\.seed|str\.contains|str\.endswith|str\.tonumber|str\.tostring|ta\.barssince|ta\.crossover|ta\.pivothigh|ta\.valuewhen|table\.delete|ticker\.renko|array\.clear|array\.every|array\.first|array\.range|array\.shift|array\.slice|array\.stdev|box\.get_top|box\.set_top|input\.color|input\.float|input\.price|label\.get_x|label\.get_y|label\.set_x|label\.set_y|line\.delete|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.set_x1|line\.set_x2|line\.set_y1|line\.set_y2|log\.warning|map\.put_all|math\.random|matrix\.copy|matrix\.diff|matrix\.fill|matrix\.kron|matrix\.mode|matrix\.mult|matrix\.pinv|matrix\.rank|matrix\.rows|matrix\.sort|str\.replace|ta\.pivotlow|ta\.variance|table\.clear|ticker\.kagi|array\.copy|array\.fill|array\.from|array\.join|array\.last|array\.mode|array\.push|array\.size|array\.some|array\.sort|box\.delete|dayofmonth|input\.bool|input\.time|label\.copy|map\.remove|map\.values|math\.floor|math\.log10|math\.round|matrix\.avg|matrix\.col|matrix\.det|matrix\.get|matrix\.inv|matrix\.max|matrix\.min|matrix\.new|matrix\.pow|matrix\.row|matrix\.set|matrix\.sum|plotcandle|str\.format|str\.length|ta\.falling|ta\.highest|table\.cell|ticker\.new|time_close|weekofyear|array\.abs|array\.avg|array\.get|array\.max|array\.min|array\.new|array\.pop|array\.set|array\.sum|color\.new|color\.rgb|dayofweek|indicator|input\.int|label\.new|line\.copy|log\.error|map\.clear|math\.acos|math\.asin|math\.atan|input\.enum|math\.ceil|math\.sign|math\.sqrt|plotarrow|plotshape|str\.lower|str\.match|str\.split|str\.upper|ta\.change|ta\.linreg|ta\.lowest|ta\.median|ta\.rising|table\.new|timestamp|barcolor|box\.copy|line\.new|linefill|log\.info|map\.copy|map\.keys|map\.size|math\.abs|math\.avg|math\.cos|math\.exp|math\.log|math\.max|math\.min|math\.pow|math\.sin|math\.sum|math\.tan|plotchar|strategy|ta\.cross|ta\.range|ta\.stdev|ta\.stoch|bgcolor|box\.new|color\.b|color\.g|color\.r|color\.t|library|map\.get|map\.new|map\.put|plotbar|str\.pos|ta\.alma|ta\.macd|ta\.mode|ta\.swma|ta\.vwap|ta\.vwma|fixnan|minute|second|string|ta\.atr|ta\.bbw|ta\.cci|ta\.cmo|ta\.cog|ta\.cum|ta\.dev|ta\.dmi|ta\.ema|ta\.hma|ta\.kcw|ta\.max|ta\.mfi|ta\.min|ta\.mom|ta\.rma|ta\.roc|ta\.rsi|ta\.sar|ta\.sma|ta\.tsi|ta\.wma|ta\.wpr|alert|color|float|hline|input|label|month|ta\.bb|ta\.kc|ta\.tr|table|bool|fill|hour|line|plot|time|year|box|int|na|nz/,keywords:/continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to/,tokenizer:{root:[[/\/\/\s*(?=@)/,"comment","@comments"],[/\/\/.*(?!@).*/,"comment"],[/\'([^\'\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/\"/,{token:"string",bracket:"@open",next:"@stringDouble"}],[/(type|enum)\s+[a-zA-Z]\w*/,"entity.name.type"],[/'/,{token:"string",bracket:"@open",next:"@stringSingle"}],[/(@builtinFunctions)(?=\s*\(|\s*<.*>)/,{token:"support.function",next:"@template"}],[/@punctuation/,{token:"punctuation.operator",next:"@property"}],[/(varip|var)\b(\s+)((?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)/,[{token:"keyword"},{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"}]],[/\b(?:@builtinTypes)(?=(\s*)[\[|<|(]|(?=\s+(?=[^.=][\w\(]*))|\s*$)/,{token:"support.type",next:"@template"}],[/^(\s*)\b(?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)([\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)(\s+)(\=)/,[{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"},{token:"source"},{token:"keyword.equals"}]],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|enum|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/import(?=\s+@importName)/,{token:"keyword",next:"@import"}],[/import(?=\s+[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+)/,"keyword"],[/[+-]?\d+\.\d*([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/[+-]?\.\d+([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/([+-]?(\d+))(?!\w+)(?!\w+)/,"constant.numeric.integer"],[/(?:true|false)\b/,"constant.other.boolean"],[/#[0-9a-fA-F]{6,8}\b/,"constant.other.color"],[/\+=|\-=|\*=|\/=|%=|[\/%*+\-]|==|!=|<=|>=|=>|<|>|\?|\:=|\:|\,/,"keyword.operator"],[/\b(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b/,"keyword"],[/^[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,"entity.name.function"],[/[0-9]+\b/,"constant.numeric.integer"],[/=/,"keyword.equals"],[/\b(?:strategy\.commission\.cash_per_contract|strategy\.avg_winning_trade_percent|strategy\.avg_winning_trade|strategy\.avg_losing_trade_percent|strategy\.avg_losing_trade|syminfo\.recommendations_sell_strong|syminfo\.recommendations_buy_strong|strategy\.commission\.cash_per_order|strategy\.margin_liquidation_price|strategy\.max_contracts_held_short|strategy\.max_contracts_held_long|syminfo\.shares_outstanding_float|syminfo\.shares_outstanding_total|barstate\.islastconfirmedhistory|earnings\.future_period_end_time|strategy\.max_contracts_held_all|syminfo\.target_price_estimates|strategy\.max_drawdown_percent|syminfo\.recommendations_total|alert\.freq_once_per_bar_close|label\.style_label_lower_right|label\.style_label_upper_right|chart\.right_visible_bar_time|strategy\.grossprofit_percent|strategy\.position_entry_name|syminfo\.recommendations_date|syminfo\.recommendations_hold|syminfo\.recommendations_sell|syminfo\.target_price_average|label\.style_label_lower_left|label\.style_label_upper_left|chart\.left_visible_bar_time|strategy\.openprofit_percent|strategy\.position_avg_price|syminfo\.recommendations_buy|syminfo\.target_price_median|plot\.style_stepline_diamond|strategy\.commission\.percent|session\.isfirstbar_regular|strategy\.grossloss_percent|strategy\.max_runup_percent|strategy\.netprofit_percent|strategy\.percent_of_equity|session\.islastbar_regular|strategy\.account_currency|syminfo\.target_price_date|syminfo\.target_price_high|dividends\.future_pay_date|strategy\.initial_capital|syminfo\.target_price_low|dividends\.future_ex_date|label\.style_label_center|label\.style_text_outline|label\.style_triangledown|strategy\.direction\.short|earnings\.future_revenue|alert\.freq_once_per_bar|dividends\.future_amount|label\.style_label_right|strategy\.direction\.long|strategy\.position_size|barmerge\.lookahead_off|label\.style_label_down|label\.style_label_left|label\.style_triangleup|line\.style_arrow_right|position\.bottom_center|position\.middle_center|strategy\.direction\.all|strategy\.closedtrades|strategy\.max_drawdown|barmerge\.lookahead_on|earnings\.standardized|font\.family_monospace|label\.style_arrowdown|line\.style_arrow_both|line\.style_arrow_left|plot\.style_steplinebr|position\.bottom_right|position\.middle_right|barstate\.isconfirmed|earnings\.future_time|session\.ispostmarket|strategy\.grossprofit|syminfo\.basecurrency|syminfo\.shareholders|timeframe\.isintraday|timeframe\.multiplier|adjustment\.dividends|label\.style_label_up|plot\.style_histogram|position\.bottom_left|position\.middle_left|barstate\.isrealtime|chart\.is_heikinashi|earnings\.future_eps|session\.ispremarket|strategy\.eventrades|strategy\.losstrades|strategy\.openprofit|strategy\.opentrades\.capital_held|strategy\.opentrades|syminfo\.description|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|dayofweek\.wednesday|display\.data_window|display\.price_scale|display\.status_line|font\.family_default|label\.style_arrowup|label\.style_diamond|plot\.style_stepline|position\.top_center|strategy\.oca\.cancel|strategy\.oca\.reduce|barstate\.ishistory|chart\.is_linebreak|session\.isfirstbar|strategy\.grossloss|strategy\.max_runup|strategy\.netprofit|strategy\.wintrades|syminfo\.pointvalue|syminfo\.pricescale|syminfo\.volumetype|timeframe\.isweekly|dayofweek\.saturday|dayofweek\.thursday|hline\.style_dashed|hline\.style_dotted|label\.style_circle|label\.style_square|label\.style_xcross|plot\.style_circles|plot\.style_columns|position\.top_right|shape\.triangledown|splits\.denominator|chart\.is_standard|session\.islastbar|syminfo\.employees|timeframe\.isdaily|adjustment\.splits|barmerge\.gaps_off|dayofweek\.tuesday|earnings\.estimate|hline\.style_solid|label\.style_cross|line\.style_dashed|line\.style_dotted|location\.abovebar|location\.absolute|location\.belowbar|plot\.style_areabr|plot\.style_linebr|position\.top_left|strategy\.oca\.none|text\.align_bottom|text\.align_center|barstate\.isfirst|session\.ismarket|syminfo\.currency|syminfo\.industry|syminfo\.tickerid|syminfo\.timezone|timeframe\.period|barmerge\.gaps_on|dayofweek\.friday|dayofweek\.monday|dayofweek\.sunday|label\.style_flag|label\.style_none|line\.style_solid|order\.descending|plot\.style_cross|session\.extended|shape\.triangleup|splits\.numerator|text\.align_right|barstate\.islast|strategy\.equity|syminfo\.country|syminfo\.minmove|syminfo\.mintick|syminfo\.session|time_tradingday|timeframe\.isdwm|adjustment\.none|dividends\.gross|earnings\.actual|location\.bottom|order\.ascending|plot\.style_area|plot\.style_line|session\.regular|shape\.arrowdown|shape\.labeldown|text\.align_left|barstate\.isnew|chart\.bg_color|chart\.fg_color|chart\.is_range|chart\.is_renko|last_bar_index|strategy\.short|syminfo\.prefix|syminfo\.sector|syminfo\.ticker|alert\.freq_all|format\.inherit|format\.mintick|format\.percent|strategy\.fixed|text\.align_top|text\.wrap_auto|text\.wrap_none|xloc\.bar_index|chart\.is_kagi|last_bar_time|strategy\.long|color\.fuchsia|currency\.NONE|currency\.USDT|dividends\.net|format\.volume|shape\.arrowup|shape\.diamond|shape\.labelup|strategy\.cash|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|chart\.is_pnf|linefill\.all|polyline\.all|syminfo\.root|syminfo\.type|color\.maroon|color\.orange|color\.purple|color\.silver|color\.yellow|currency\.AUD|currency\.BTC|currency\.CAD|currency\.CHF|currency\.ETH|currency\.EUR|currency\.GBP|currency\.HKD|currency\.INR|currency\.JPY|currency\.KRW|currency\.MYR|currency\.NOK|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|display\.none|display\.pane|extend\.right|format\.price|location\.top|shape\.circle|shape\.square|shape\.xcross|color\.black|color\.green|color\.olive|color\.white|display\.all|extend\.both|extend\.left|extend\.none|scale\.right|shape\.cross|size\.normal|dayofmonth|ta\.accdist|time_close|weekofyear|color\.aqua|color\.blue|color\.gray|color\.lime|color\.navy|color\.teal|scale\.left|scale\.none|shape\.flag|size\.large|size\.small|yloc\.price|bar_index|dayofweek|label\.all|table\.all|color\.red|math\.rphi|size\.auto|size\.huge|size\.tiny|line\.all|math\.phi|box\.all|ta\.vwap|ta\.wvad|timenow|math\.pi|minute|second|ta\.iii|ta\.nvi|ta\.obv|ta\.pvi|ta\.pvt|ta\.wad|volume|math\.e|close|hlcc4|month|ohlc4|ta\.tr|false|high|hlc3|hour|open|time|year|true|hl2|low|na)\b(?!\s*=\s*\w+)/,"support.variable"],[/[(|)|\[|\]]/,"paren"],[/[a-zA-Z_][a-zA-Z_0-9]*(?=\s*\()/,{token:"entity.name.method"}],[/\w+\b/,"variable.other"]],comments:[[/@[A-Za-z]+(\s*=\s*)?$/,{token:"comment.annotation",next:"@pop"}],[/@[A-Za-z]+(\s*=\s*)?/,{token:"comment.annotation"}],[/(?!\s*@[A-Za-z]+).+$/,{token:"comment",next:"@pop"}]],stringDouble:[[/[^\\\"]+/,"string"],[/\\./,"string.invalid"],[/\"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/\\./,"string.invalid"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],template:[[/(@builtinTypes)/,{token:"support.type"}],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|enum|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/\(|\)|\[|\]|\=|\>/,{token:"paren",next:"@pop"}],[/(\,)(\s+)/,["keyword.operator","source"]],[/(\,)/,{token:"keyword.operator"}],[/([\w.\d$]+)/,{token:"entity.name.type"}],[/(<|>)/,{token:"paren"}],[/\s(?=\w)|$/,{token:"source",next:"@pop"}]],property:[[/@punctuation/,{token:"punctuation.operator"}],[/(@builtinTypes)(?=\s*[(])/,{token:"support.method",next:"@pop"}],[/[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,{token:"entity.name.method",next:"@pop"}],[/[a-zA-Z0-9_]+/,{token:"variable.other.property",next:"@pop"}],[/@empty/,{token:"source",next:"@pop"}]],import:[[/\s+/,{token:"source"}],[/(@importName)(\s+)(as\b)(\s+)(@importAlias)/,[{token:"entity.name.module"},{token:"source"},{token:"keyword"},{token:"source"},{token:"entity.name.module.name",next:"@pop"}]],[/@importName/,{token:"entity.name.module",next:"@pop"}]]},builtinTypes:/chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map/,punctuation:/[.](?![.])/,importName:/[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+/,importAlias:/[a-zA-Z\d\_\u00a1\uffff\/]+/,empty:/^$/};var bt;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(bt||(bt={}));const on={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["[","]"]],folding:{markers:{start:/(\/\/#region)|(\/\/.*{($|\s))/,end:/(\/\/#endregion)|(\/\/.*}($|\s))/}},autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:/\)\s*=>\s*$/,action:{indentAction:bt.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:bt.Indent}},{beforeText:/else/,action:{indentAction:bt.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:bt.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:bt.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:bt.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:bt.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:bt.Indent}},{beforeText:/enum\s+\w+/,action:{indentAction:bt.Indent}},{beforeText:/^\s*$/,action:{indentAction:bt.Outdent}}]},I={"color-white":"#ffffff","color-black":"#000000","color-transparent":"#00000000","color-cold-gray-50":"#F8F9FD","color-cold-gray-100":"#F0F3FA","color-cold-gray-150":"#E0E3EB","color-cold-gray-200":"#D1D4DC","color-cold-gray-250":"#C1C4CD","color-cold-gray-300":"#B2B5BE","color-cold-gray-350":"#A3A6AF","color-cold-gray-400":"#9598A1","color-cold-gray-450":"#868993","color-cold-gray-500":"#787B86","color-cold-gray-550":"#6A6D78","color-cold-gray-600":"#5D606B","color-cold-gray-650":"#50535E","color-cold-gray-700":"#434651","color-cold-gray-750":"#363A45","color-cold-gray-800":"#2A2E39","color-cold-gray-850":"#1E222D","color-cold-gray-900":"#131722","color-cold-gray-950":"#0C0E15","color-ripe-red-50":"#FFEBEC","color-ripe-red-100":"#FCCBCD","color-ripe-red-200":"#FAA1A4","color-ripe-red-300":"#F77C80","color-ripe-red-400":"#F7525F","color-ripe-red-500":"#F23645","color-ripe-red-600":"#CC2F3C","color-ripe-red-700":"#B22833","color-ripe-red-800":"#991F29","color-ripe-red-900":"#801922","color-ripe-red-a100":"#FF8080","color-ripe-red-a200":"#FF5252","color-ripe-red-a400":"#FF3333","color-ripe-red-a600":"#CC2929","color-ripe-red-a700":"#802028","color-ripe-red-a800":"#4D191D","color-ripe-red-a900":"#331F20","color-tan-orange-50":"#FFF3E0","color-tan-orange-100":"#FFE0B2","color-tan-orange-200":"#FFCC80","color-tan-orange-300":"#ffb74d","color-tan-orange-400":"#FFA726","color-tan-orange-500":"#FF9800","color-tan-orange-600":"#FB8C00","color-tan-orange-700":"#F57C00","color-tan-orange-800":"#EF6C00","color-tan-orange-900":"#e65100","color-tan-orange-a200":"#ffab40","color-tan-orange-a400":"#FF9100","color-tan-orange-a600":"#CC7014","color-tan-orange-a700":"#8C541C","color-tan-orange-a800":"#593A1B","color-tan-orange-a900":"#33261A","color-iguana-green-100":"#C8E6C9","color-iguana-green-200":"#A5D6A7","color-iguana-green-300":"#81c784","color-iguana-green-400":"#66BB6A","color-iguana-green-500":"#4caf50","color-iguana-green-600":"#43a047","color-iguana-green-700":"#388e3c","color-iguana-green-800":"#2E7D32","color-iguana-green-900":"#1B5E20","color-iguana-green-a700":"#00c853","color-banana-yellow-100":"#FFF9C4","color-banana-yellow-200":"#FFF59D","color-banana-yellow-300":"#FFF176","color-banana-yellow-400":"#ffee58","color-banana-yellow-500":"#ffeb3b","color-banana-yellow-600":"#fdd835","color-banana-yellow-700":"#fbc02d","color-banana-yellow-800":"#f9a825","color-banana-yellow-900":"#F57F17","color-banana-yellow-a400":"#ffea00","color-banana-yellow-a700":"#EEDA01","color-tv-blue-50":"#E3EFFD","color-tv-blue-100":"#BBD9FB","color-tv-blue-200":"#90BFF9","color-tv-blue-300":"#5B9CF6","color-tv-blue-400":"#3179F5","color-tv-blue-500":"#2962FF","color-tv-blue-600":"#1E53E5","color-tv-blue-700":"#1848CC","color-tv-blue-800":"#143EB3","color-tv-blue-900":"#0C3299","color-tv-blue-a100":"#82b1ff","color-tv-blue-a200":"#448aff","color-tv-blue-a400":"#2979ff","color-tv-blue-a600":"#2962FF","color-tv-blue-a700":"#143A87","color-tv-blue-a800":"#142E61","color-tv-blue-a900":"#132042","color-deep-blue-50":"#EDE7F6","color-deep-blue-100":"#D1C4E9","color-deep-blue-200":"#B39DDB","color-deep-blue-300":"#9575cd","color-deep-blue-400":"#7e57c2","color-deep-blue-500":"#673ab7","color-deep-blue-700":"#512da8","color-deep-blue-800":"#4527A0","color-deep-blue-900":"#311B92","color-deep-blue-a100":"#b388ff","color-deep-blue-a200":"#7C4DFF","color-deep-blue-a400":"#651FFF","color-deep-blue-a700":"#6200EA","color-minty-green-50":"#DAF2EE","color-minty-green-100":"#ACE5DC","color-minty-green-200":"#70CCBD","color-minty-green-300":"#42BDA8","color-minty-green-400":"#22AB94","color-minty-green-500":"#089981","color-minty-green-600":"#06806B","color-minty-green-700":"#056656","color-minty-green-800":"#004D40","color-minty-green-900":"#00332A","color-minty-green-a400":"#2BD9BC","color-minty-green-a600":"#24B29B","color-minty-green-a700":"#1B7667","color-minty-green-a800":"#10443B","color-minty-green-a900":"#082621","color-grapes-purple-50":"#F3E5F5","color-grapes-purple-100":"#E1BEE7","color-grapes-purple-200":"#CE93D8","color-grapes-purple-300":"#ba68c8","color-grapes-purple-400":"#ab47bc","color-grapes-purple-500":"#9c27b0","color-grapes-purple-600":"#8e24aa","color-grapes-purple-700":"#7b1fa2","color-grapes-purple-800":"#6A1B9A","color-grapes-purple-900":"#4A148C","color-grapes-purple-a100":"#EA80FC","color-grapes-purple-a200":"#E040FB","color-grapes-purple-a400":"#D500F9","color-grapes-purple-a700":"#aa00ff","color-berry-pink-100":"#F8BBD0","color-berry-pink-200":"#f48fb1","color-berry-pink-300":"#f06292","color-berry-pink-400":"#ec407a","color-berry-pink-500":"#e91e63","color-berry-pink-600":"#D81B60","color-berry-pink-700":"#C2185B","color-berry-pink-800":"#AD1457","color-berry-pink-900":"#880E4F","color-berry-pink-a100":"#ff80ab","color-berry-pink-a200":"#ff4081","color-berry-pink-a400":"#f50057","color-sky-blue-100":"#B2EBF2","color-sky-blue-200":"#80DEEA","color-sky-blue-300":"#4dd0e1","color-sky-blue-400":"#26c6da","color-sky-blue-500":"#00bcd4","color-sky-blue-600":"#00acc1","color-sky-blue-700":"#0097A7","color-sky-blue-800":"#00838F","color-sky-blue-900":"#006064","color-sky-blue-a400":"#00e5ff","color-sky-blue-a700":"#00B8D4","color-deep-blue-600":"#5E35B1","color-forest-green-50":"#DAF2E6","color-forest-green-100":"#ACE5C9","color-forest-green-200":"#70CC9E","color-forest-green-300":"#42BD7F","color-forest-green-400":"#22AB67","color-forest-green-500":"#089950","color-forest-green-600":"#068043","color-forest-green-700":"#056636","color-forest-green-800":"#004D27","color-forest-green-900":"#1A3326","color-facebook":"#1877F2","color-deep-facebook":"#1564CA","color-twitter":"#1DA1F2","color-deep-twitter":"#188CD3","color-youtube":"#FF0000","color-linkedin":"#007BB5","color-seeking-alpha-brand":"#ff7200"};function Ft(a,n=1){return a+Math.round(255*Math.min(Math.max(n,0),1)).toString(16).toUpperCase().padStart(2,"0")}const ln={base:"vs",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-cold-gray-900"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-a600"]},{token:"constant.other.color",foreground:I["color-ripe-red-a600"]},{token:"constant.other",foreground:I["color-ripe-red-a600"]},{token:"support.variable",foreground:I["color-ripe-red-a600"]},{token:"support.function",foreground:I["color-tv-blue-a600"]},{token:"support.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:I["color-tv-blue-a600"]},{token:"keyword.equals",foreground:I["color-minty-green-400"]},{token:"keyword.operator",foreground:I["color-minty-green-400"]},{token:"keyword.other",foreground:I["color-minty-green-400"]},{token:"keyword",foreground:I["color-minty-green-400"]},{token:"variable.other",foreground:I["color-cold-gray-800"]},{token:"variable.other.property",foreground:I["color-cold-gray-800"]},{token:"paren",foreground:I["color-black"]},{token:"entity.name.function",foreground:I["color-tv-blue-900"]},{token:"entity.name.method",foreground:I["color-tv-blue-900"]},{token:"meta.function-call",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module",foreground:I["color-tv-blue-a600"]},{token:"",background:I["color-white"]}],colors:{"editor.foreground":I["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":I["color-cold-gray-400"],"editorLineNumber.activeForeground":I["color-cold-gray-700"],"editorHoverWidget.background":I["color-white"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-150"],"editorHoverWidget.foreground":I["color-cold-gray-900"],"editorWidget.background":I["color-white"],"editorWidget.foreground":I["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Ft(I["color-cold-gray-200"],.5),"editor.lineHighlightBackground":I["color-tv-blue-50"],"editor.lineHighlightBorder":I["color-tv-blue-50"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-150"],"editor.selectionBackground":I["color-tv-blue-100"],"editor.selectionHighlightBackground":I["color-tv-blue-50"],"editor.findMatchBackground":I["color-tan-orange-100"],"editor.findMatchHighlightBackground":I["color-tan-orange-100"],"editor.findMatchBorder":I["color-tan-orange-500"],"list.foreground":I["color-cold-gray-900"],"list.hoverForeground":I["color-cold-gray-900"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-50"],"list.focusHighlightForeground":I["color-tv-blue-100"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-white"],"keybindingLabel.foreground":I["color-cold-gray-900"],"keybindingLabel.border":I["color-cold-gray-150"],"input.foreground":I["color-cold-gray-900"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-100"],"peekViewResult.lineForeground":I["color-cold-gray-900"],"editorMarkerNavigationWarning.background":I["color-banana-yellow-800"],"inputValidation.warningBackground":I["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Ft(I["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Ft(I["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Ft(I["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Ft(I["color-ripe-red-500"],.15),"editorInlayHint.background":I["color-cold-gray-150"],"editorInlayHint.foreground":I["color-cold-gray-550"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-500"]}},cn={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-white"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-300"]},{token:"constant.other.color",foreground:I["color-ripe-red-300"]},{token:"constant.other",foreground:I["color-ripe-red-300"]},{token:"support.variable",foreground:I["color-ripe-red-300"]},{token:"support.function",foreground:I["color-tv-blue-300"]},{token:"support.method",foreground:I["color-tv-blue-300"]},{token:"support.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:I["color-minty-green-300"]},{token:"keyword.operator",foreground:I["color-minty-green-300"]},{token:"keyword.other",foreground:I["color-minty-green-300"]},{token:"keyword",foreground:I["color-minty-green-300"]},{token:"variable.other",foreground:I["color-cold-gray-200"]},{token:"variable.other.property",foreground:I["color-cold-gray-200"]},{token:"paren",foreground:I["color-white"]},{token:"entity.name.function",foreground:I["color-tv-blue-400"]},{token:"entity.name.method",foreground:I["color-tv-blue-400"]},{token:"meta.function-call",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module",foreground:I["color-tv-blue-300"]},{token:"",background:I["color-cold-gray-900"]}],colors:{"editor.foreground":I["color-white"],"editor.background":I["color-cold-gray-900"],"editorLineNumber.foreground":I["color-cold-gray-500"],"editorLineNumber.activeForeground":I["color-cold-gray-300"],"editorWidget.background":I["color-cold-gray-850"],"editorHoverWidget.background":I["color-cold-gray-850"],"editorHoverWidget.foreground":I["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-900"],"editorWidget.foreground":I["color-cold-gray-300"],"editorGutter.background":I["color-cold-gray-900"],"editor.foldBackground":Ft(I["color-cold-gray-700"],.5),"editor.lineHighlightBackground":I["color-tv-blue-a900"],"editor.lineHighlightBorder":I["color-tv-blue-a900"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-750"],"editor.selectionBackground":I["color-tv-blue-a800"],"editor.selectionHighlightBackground":I["color-cold-gray-800"],"list.foreground":I["color-cold-gray-350"],"list.hoverForeground":I["color-cold-gray-350"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-900"],"list.focusHighlightForeground":I["color-tv-blue-300"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-cold-gray-800"],"keybindingLabel.foreground":I["color-cold-gray-300"],"keybindingLabel.border":I["color-cold-gray-700"],"input.foreground":I["color-cold-gray-350"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-a800"],"peekViewResult.lineForeground":I["color-cold-gray-350"],"diffEditor.insertedTextBackground":Ft(I["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Ft(I["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Ft(I["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Ft(I["color-ripe-red-a400"],.15),"editorInlayHint.background":I["color-cold-gray-800"],"editorInlayHint.foreground":I["color-cold-gray-400"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-700"]}},Sd=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Ed=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,oo={"color.aqua":"#00BCD4","color.black":"#363A45","color.blue":"#2196F3","color.fuchsia":"#E040FB","color.gray":"#787B86","color.green":"#4CAF50","color.lime":"#00E676","color.maroon":"#880E4F","color.navy":"#311B92","color.olive":"#808000","color.orange":"#FF9800","color.purple":"#9C27B0","color.red":"#FF5252","color.silver":"#B2B5BE","color.teal":"#00897B","color.white":"#FFFFFF","color.yellow":"#FFEB3B"};class Nd{constructor(n){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(s=[],o)=>{const c=new Map,l=o.indexOf("(");for(let m=l+1,_=l;m<o.length;m++)o[m]!==","&&o[m]!==")"||(_++,c.set(o.slice(_,m),_),_=m+1);return s.map(({name:m="",displayType:_,desc:f})=>{const b=[],h=c.get(m),T=h+m.length;return b.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(_||""))),f&&b.push(Array.isArray(f)?f.join(this._formatter.lineBreak):f),{label:[h,T],documentation:{value:b.join(this._formatter.lineBreak)}}})}}),this._formatter=ie,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(n)}getSignatureHelpValues(n,s,o=0,c=0){var b;const l=this._getFuncItems(n);if(!(l!=null&&l.length))return null;const m=this._getSequentialSignatures(n,l),_=this._getActiveIndex(l,s),f=(b=gr.overloadsFuncs)==null?void 0:b.find(h=>h.name===n&&h.startColumn===o&&c===h.line);return f&&(_.activeSignature=Number(f.index)),{signatures:m,..._}}_getActiveIndex(n,s=[]){let o=0,c=-1;s.some(m=>!!m)||(c=s.length-1);const l=s.pop();if(l)for(const[m,_]of n.entries()){const{args:f}=_;if(f&&f.length){const b=f.findIndex(h=>h.name===l);if(b!=-1){c=b,o=m;break}}}return{activeParameter:c,activeSignature:o}}_getFuncItems(n){return lt.functions.get(n)||zt.userFuncs.get(n)||zt.methodFuncs.get(n)}_getSequentialSignatures(n,s){return s.map(o=>{const c=this._getSignatureLabel(n,o);return{label:c,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,c)}})}_getSignatureLabel(n,s,o=!1){const c=[n];return o&&c.push("<type>"),s.args&&(c.push("("),c.push(s.args.map(({name:l})=>l).join(", ")),c.push(")")),c.join("")}_getFormattedSignatureDocumentation(n){const{desc:s}=n,o=[];s&&o.push(Array.isArray(s)?s.join(this._formatter.lineBreak):s);const c=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
138
138
  ${this._formatter.code("Shift")} +
139
- ${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${l} ${be.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const Ld=new Nd(window.navigator.userAgent);class Md{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=oo}getDocumentColors(n){const s=[];return n.forEach(o=>{const{range:l}=o;let{matches:c}=o;c=c||[];const m=c[0]||"";let _=null;this._isHexToken(m)?_=this._hexToColor(m):this._isRgbColor(m)?_=this._rgbToColor(m):this._colors[m]?_=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&c[1]&&c[6]&&(_=this._extractNewExpression(c[1],Number(c[6]))),_&&s.push({color:_,range:l})}),s}get _defultColorsRegStr(){return Object.keys(oo).reduce((n,s)=>`${n}|${s}`,"")}get colorMatchesRegStr(){const n=`#[0-9a-fA-F]{6,8}|(\\b(color.rgb\\s*\\((\\s*\\d+\\s*,\\s*){2}(\\s*\\d+\\s*,{0,1}){1,2}\\s*\\)${this._defultColorsRegStr}))`;return`color.new\\s*\\(\\s*(${n})\\s*,\\s*(\\d+)\\s*\\)|${n}`}getDocumentColorPresentations(n,{color:s,range:o}){const l=n.getValueInRange(o);if(this._isHexToken(l)||this._colors[l])return[{label:this._colorRgbRepresentation(s)},{label:this._colorHexRepresentation(s)}];if(this._isColorExpression(l)||this._isRgbColor(l)){const c=this._isColorExpression(l)?this._colorNewRepresentation(s):this._colorRgbRepresentation(s);if(!c)return[];const m=this._colorHexRepresentation(s);return[{label:c,textEdit:{text:c,range:o}},{label:m,textEdit:{text:m,range:o}}]}return null}_hexFromNumber(n){const s=this._denormalize(n).toString(16);return s.length===1?`0${s}`:s}_normalize(n){return n/255}_denormalize(n){return Math.round(255*n)}_normalizeAlpha(n){return(100-n)/100}_denormalizeAlpha(n){return 100-Math.round(100*n)}_extractNewExpression(n,s){let o=null;return this._isHexToken(n)?o=this._hexToColor(n):this._isRgbColor(n)?o=this._rgbToColor(n):this._colors[n]&&(o=this._hexToColor(this._colors[n])),o&&!Number.isNaN(s)?{...o,alpha:this._normalizeAlpha(s)}:null}_colorHexRepresentation(n){const s=this._hexFromNumber(n.red),o=this._hexFromNumber(n.green),l=this._hexFromNumber(n.blue),c=this._hexFromNumber(n.alpha);return`#${s}${o}${l}${n.alpha===1?"":c}`}_colorRgbRepresentation(n){const s=this._denormalize(n.red),o=this._denormalize(n.green),l=this._denormalize(n.blue),c=this._denormalizeAlpha(n.alpha),m=[s,o,l];return c>0&&m.push(c),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(n){const s={...n,alpha:1};return`color.new(${this._colorHexRepresentation(s)}, ${this._denormalizeAlpha(n.alpha)})`}_hexToColor(n){const s=(n=this._isHexToken(n)?n.slice(1):n).length===3||n.length===4,o=s?`${n.slice(0,1)}${n.slice(0,1)}`:n.slice(0,2),l=s?`${n.slice(1,2)}${n.slice(1,2)}`:n.slice(2,4),c=s?`${n.slice(2,3)}${n.slice(2,3)}`:n.slice(4,6),m=(s?`${n.slice(3,4)}${n.slice(3,4)}`:n.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(l,16)),blue:this._normalize(parseInt(c,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(n){const s=n.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(s[0])),l=this._normalize(Number(s[1])),c=this._normalize(Number(s[2])),m=this._normalizeAlpha(Number(s[3]))||1;return isNaN(o)||isNaN(l)||isNaN(c)?null:{red:o,green:l,blue:c,alpha:m}}_isHexToken(n){return n.charAt(0)==="#"}_isRgbColor(n){return n.startsWith("color.rgb")}_isColorExpression(n){return n.startsWith("color.new")}}const pn=new Md;A.VType=void 0,function(a){a.BOOL="bool",a.INT="int",a.FLOAT="float",a.ARRAY="array",a.BOX="box",a.CHART_POINT="chart.point",a.COLOR="color",a.CONST="const",a.LABEL="label",a.LINE="line",a.LINEFILL="linefill",a.MAP="map",a.MATRIX="matrix",a.POLYLINE="polyline",a.SERIES="series",a.SIMPLE="simple",a.STRING="string",a.TABLE="table",a.UNDETERMINED="undetermined type",a.INPUT="input",a.NA="na",a.VOID="void",a.ENUM="enum"}(A.VType||(A.VType={})),A.VRuleType=void 0,function(a){a.FlowStmt="FlowStmt",a.DeclareAssign="DeclareAssign",a.VarBlockStmt="VarBlockStmt",a.VarSingle="VarSingle",a.VarMultiple="VarMultiple",a.ParenthesizedExpression="ParenthesizedExpression",a.AdditiveExpression="AdditiveExpression",a.RelationalExpression="RelationalExpression",a.EqualityExpression="EqualityExpression",a.TernaryExpression="TernaryExpression",a.UnaryExpression="UnaryExpression",a.NotExpression="NotExpression",a.MemberIndexExpression="MemberIndexExpression",a.MethodExpression="MethodExpression",a.LogicalAndExpression="LogicalAndExpression",a.LogicalOrExpression="LogicalOrExpression",a.MultiplicativeExpression="MultiplicativeExpression",a.Brackethesized="Brackethesized",a.IfStatement="IfStatement",a.ForToStatement="ForToStatement",a.ForInStatement="ForInStatement",a.SwitchStatement="SwitchStatement",a.CaseClause="CaseClause",a.DefaultCaluse="DefaultCaluse",a.WhileStatement="WhileStatement",a.ImportElement="ImportElement",a.Literal="Literal",a.ArrowFunction="ArrowFunction",a.ArrowMethod="ArrowMethod",a.TypeStatement="TypeStatement",a.Name="Name",a.AgainAssign="AgainAssign",a.EnumStatement="EnumStatement"}(A.VRuleType||(A.VRuleType={})),A.VAdjustment=void 0,function(a){a.dividends="dividends",a.none="none",a.splits="splits"}(A.VAdjustment||(A.VAdjustment={})),A.VAlert=void 0,function(a){a.freqAll="freq_all",a.freqOncePerBar="freq_once_per_bar",a.freqOncePerBarClose="freq_once_per_bar_close"}(A.VAlert||(A.VAlert={})),A.VBarmergeGaps=void 0,function(a){a.gapsOff="gaps_off",a.gapsOn="gaps_on",a.lookaheadOff="lookahead_off",a.lookaheadOn="lookahead_on"}(A.VBarmergeGaps||(A.VBarmergeGaps={})),A.VPlotDisplay=void 0,function(a){a.all="all",a.dataWindow="data_window",a.none="none",a.pane="pane",a.priceScale="price_scale",a.statusLine="status_line"}(A.VPlotDisplay||(A.VPlotDisplay={})),A.VExtend=void 0,function(a){a.both="both",a.left="left",a.none="none",a.right="right"}(A.VExtend||(A.VExtend={})),A.VFormatType=void 0,function(a){a.inherit="inherit",a.mintick="mintick",a.percent="percent",a.price="price",a.volume="volume"}(A.VFormatType||(A.VFormatType={})),A.VHlineStyle=void 0,function(a){a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(A.VHlineStyle||(A.VHlineStyle={})),A.VLabelStyle=void 0,function(a){a.styleArrowdown="style_arrowdown",a.styleArrowup="style_arrowup",a.styleCircle="style_circle",a.styleCross="style_cross",a.styleDiamond="style_diamond",a.styleFlag="style_flag",a.styleLabelCenter="style_label_center",a.styleLabelDown="style_label_down",a.styleLabelLeft="style_label_left",a.styleLabelLowerLeft="style_label_lower_left",a.styleLabelLowerRight="style_label_lower_right",a.styleLabelRight="style_label_right",a.styleLabelUp="style_label_up",a.styleLabelUpperLeft="style_label_upper_left",a.styleLabelUpperRight="style_label_upper_right",a.styleNone="style_none",a.styleSquare="style_square",a.styleTextOutline="style_text_outline",a.styleTriangledown="style_triangledown",a.styleTriangleup="style_triangleup",a.styleXcross="style_xcross"}(A.VLabelStyle||(A.VLabelStyle={})),A.VLineStyle=void 0,function(a){a.styleArrowBoth="style_arrow_both",a.styleArrowLeft="style_arrow_left",a.styleArrowRight="style_arrow_right",a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(A.VLineStyle||(A.VLineStyle={})),A.VLocation=void 0,function(a){a.abovebar="abovebar",a.absolute="absolute",a.belowbar="belowbar",a.bottom="bottom",a.top="top"}(A.VLocation||(A.VLocation={})),A.VSortOrder=void 0,function(a){a.ascending="ascending",a.descending="descending"}(A.VSortOrder||(A.VSortOrder={})),A.VPlotStyle=void 0,function(a){a.styleArea="Area",a.styleAreabr="Area With Breaks",a.styleCircles="Circles",a.styleColumns="Columns",a.styleCross="Cross",a.styleHistogram="Histogram",a.styleLine="Line",a.styleLinebr="Line With Breaks",a.styleStepline="Step Line",a.styleSteplineDiamond="Step Line With Diamonds",a.styleSteplinebr="Step line with Breaks"}(A.VPlotStyle||(A.VPlotStyle={})),A.VPosition=void 0,function(a){a.bottomCenter="bottom_center",a.bottomLeft="bottom_left",a.bottomRight="bottom_right",a.middleCenter="middle_center",a.middleLeft="middle_left",a.middleRight="middle_right",a.topCenter="top_center",a.topLeft="top_left",a.topRight="top_right"}(A.VPosition||(A.VPosition={})),A.VScale=void 0,function(a){a.left="left",a.none="none",a.right="right"}(A.VScale||(A.VScale={})),A.VSession=void 0,function(a){a.extended="extended",a.regular="regular"}(A.VSession||(A.VSession={})),A.VShape=void 0,function(a){a.arrowdown="arrowdown",a.arrowup="arrowup",a.circle="circle",a.cross="cross",a.diamond="diamond",a.flag="flag",a.labeldown="labeldown",a.labelup="labelup",a.square="square",a.triangledown="triangledown",a.triangleup="triangleup",a.xcross="xcross"}(A.VShape||(A.VShape={})),A.VSize=void 0,function(a){a.auto="auto",a.huge="huge",a.large="large",a.normal="normal",a.small="small",a.tiny="tiny"}(A.VSize||(A.VSize={})),A.VFont=void 0,function(a){a.familyDefault="default",a.familyMonospace="monospace"}(A.VFont||(A.VFont={})),A.VStrategy=void 0,function(a){a.cash="cash",a.fixed="fixed",a.percentOfEquity="percent_of_equity"}(A.VStrategy||(A.VStrategy={})),A.VCommission=void 0,function(a){a.cashPerContract="cash_per_contract",a.cashPerOrder="cash_per_order",a.percent="percent"}(A.VCommission||(A.VCommission={})),A.VDirection=void 0,function(a){a.all="all",a.long="long",a.short="short"}(A.VDirection||(A.VDirection={})),A.VOca=void 0,function(a){a.cancel="cancel",a.none="none",a.reduce="reduce"}(A.VOca||(A.VOca={})),A.VText=void 0,function(a){a.alignBottom="align_bottom",a.alignCenter="align_center",a.alignLeft="align_left",a.alignRight="align_right",a.alignTop="align_top",a.wrapAuto="wrap_auto",a.wrapNone="wrap_none"}(A.VText||(A.VText={})),A.VXloc=void 0,function(a){a.bar_index="bar_index",a.bar_time="bar_time"}(A.VXloc||(A.VXloc={})),A.VYloc=void 0,function(a){a.abovebar="abovebar",a.belowbar="belowbar",a.price="price"}(A.VYloc||(A.VYloc={})),A.VEarnings=void 0,function(a){a.actual="actual",a.estimate="estimate",a.standardized="standardized"}(A.VEarnings||(A.VEarnings={})),A.VPivotType=void 0,function(a){a.traditional="Traditional",a.fibonacci="Fibonacci",a.woodie="Woodie",a.classic="Classic",a.dm="DM",a.camarilla="Camarilla"}(A.VPivotType||(A.VPivotType={})),A.VInputType=void 0,function(a){a.INT="int",a.BOOL="bool",a.TIME="time",a.COLOR="color",a.FLOAT="float",a.PRICE="price",a.SOURCE="source",a.STRING="string",a.SYMBOL="symbol",a.SESSION="session",a.TEXT_AREA="text_area",a.TIMEFRAME="timeframe",a.ENUM="enum"}(A.VInputType||(A.VInputType={}));var lo;(function(a){a.description="description",a.field="field",a.function="function",a.param="param",a.returns="returns",a.type="type",a.variable="variable",a.enum="enum"})(lo||(lo={})),A.VScriptType=void 0,function(a){a.library="library",a.indicator="indicator",a.strategy="strategy"}(A.VScriptType||(A.VScriptType={})),A.VType.SERIES,A.VType.SIMPLE,A.VType.INPUT,A.VType.CONST,A.VType.INT,A.VType.FLOAT,A.VType.BOOL,A.VType.COLOR,A.VType.STRING;const Pd={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1},co={functions:[{name:"calcBB",desc:["Computes Bollinger Band values from an array of data."],args:[{name:"srcArray",desc:"(array<float>) The array where the queue is maintained.",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series float mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"srcArray",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series int mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],index:1},{name:"Scanner.new",args:[{name:"enabled",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"},{name:"ticker",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"},{name:"timeframe",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.new(series bool enabled, series string ticker, series string timeframe) → Scanner"]},{name:"Scanner.copy",args:[{name:"object",required:!0,allowedTypeIDs:["Scanner"],displayType:"Scanner"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},info:"The identifier of the object to be copied.",syntax:["Scanner.copy(Scanner object) → Scanner"]}],methods:[{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],desc:["Computes Bollinger Band values from an array of data."],originalName:"array.calcBB",syntax:["calcBB(series float mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},thisType:["float[]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],originalName:"array.calcBB",syntax:["calcBB(series int mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},thisType:["float[]"],index:1},{name:"Scanner.copy",args:[],returnedTypes:["Scanner"],thisType:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.copy() → Scanner"]}],types:[{fields:[{name:"enabled",type:"series bool"},{name:"ticker",type:"series string"},{name:"timeframe",type:"series string"}],name:"Scanner",pos:{lineNumber:30,column:12}}],description:"Provides a tool to quickly output a label on the chart.",codeStr:'const $name={calcBB:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_12","var")||$_var.setVarValue("mean",e+"_14_12",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_13","var")||$_var.setVarValue("dev",e+"_14_13",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_16_16")),v=a.avg(e+"_16_16"),$_var.setVarValue("mean",e+"_14_12",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_17_16")*r),s=a.stdev(e+"_17_16")*r,$_var.setVarValue("dev",e+"_14_13",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},calcBB$1:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_21","var")||$_var.setVarValue("mean",e+"_14_21",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_22","var")||$_var.setVarValue("dev",e+"_14_22",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_25_16")),v=a.avg(e+"_25_16"),$_var.setVarValue("mean",e+"_14_21",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_26_16")*r),s=a.stdev(e+"_26_16")*r,$_var.setVarValue("dev",e+"_14_22",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},Scanner:$_var.getTypeInstance({enabled:void 0,ticker:void 0,timeframe:void 0},[])};'};class Od{constructor(){Object.defineProperty(this,"_inlayHints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_importCompleteLibrary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._inlayHints=new Map,this._importCompleteLibrary=new Map,this._funcs=new Map}get inlayHints(){return[...this._inlayHints.values()]}setEditor(n){this._editor=n}async setInlayHints(n){const{endLine:s,endColumn:o,name:l,libraryId:c,libraryName:m}=n;if(this._importCompleteLibrary.has(c)){const _=this._funcs.get(c);return((_==null?void 0:_.name)!==l||!l&&!this._inlayHints.has(c))&&(this._updateFuncNames(l||m,c),this._inlayHintsHandle(n)),this._importCompleteLibrary.get(c)}return this._importCompleteLibrary.set(c,co),this._inlayHints.set(c,{label:"载入中...",position:{column:o,lineNumber:s},paddingLeft:!0}),this.triggerInlayHints(),this._updateFuncNames(l||m,c),setTimeout(()=>{this._inlayHints.has(c)&&this._inlayHintsHandle(n)},2e3),co}deleteInlayHints(n){this._inlayHints.delete(n)}clearInlayHints(){this._inlayHints.clear()}triggerInlayHints(){this._editor&&this._editor.updateOptions({inlayHints:{fontFamily:String(Date.now())}})}_updateFuncNames(n,s){const o=this._importCompleteLibrary.get(s);if(!o)return;const l=o.functions.map(c=>`${n}.${c.name}`);this._funcs.set(s,{name:n,funcs:l}),this._updateMonarchTokens()}_setNoNameInlayHints(n){const{endLine:s,endColumn:o,libraryId:l,libraryName:c}=n;this._inlayHints.set(l,{label:`as ${c}`,position:{column:o,lineNumber:s},paddingLeft:!0})}_inlayHintsHandle(n){const{name:s,libraryId:o}=n;s?this._inlayHints.delete(o):this._setNoNameInlayHints(n),this.triggerInlayHints()}_updateMonarchTokens(){const n=[...this._funcs.values()].map(l=>l.funcs.join("|")),s=new RegExp("\\b("+n.join("|")+")(?=\\s*\\()"),o=[...Nr.tokenizer.root];o.splice(15,0,[s,"meta.function-call"]),Ie.languages.setMonarchTokensProvider(Ee,{...Nr,tokenizer:{...Nr.tokenizer,root:o}})}}const Gs=new Od;function Rd(a,n,s){var B;const o={startLineNumber:n.lineNumber,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column},l=a.getValueInRange(o);if(/^\/\/\s*@/.test(l))return{suggestions:zt.annotationSuggestions};if(s.triggerCharacter==="@")return{suggestions:[]};const c=l.match(/([\w.]+)$/)||[];if(!c.length)return{suggestions:[]};const m=(B=c[0])==null?void 0:B.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),_=m?m[1]?m[1]:m[2]?m[2]:void 0:void 0,g=a.getWordUntilPosition(n),b=Er.parseCurrentInputFunc(l),h={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:g.startColumn,endColumn:g.endColumn},T=a.getValueInRange({...h,startColumn:g.endColumn,endColumn:g.endColumn+1});zt.nextIsBracket=T==="(";let P=po(zt.getSuggestions(_)||[],h);if(c[0]==="."&&(P=[]),b&&!_&&!/=\s*\w+$/.test(l)){const R=po(zt.getArgSuggestions(b.funcName)||[],h);P=P.concat(R)}return{suggestions:P||[],dispose:()=>{}}}function Fd(a){if(a.kind!==1)return a;const{originInsertText:n}=a;return zt.nextIsBracket?a.insertText=n:a.insertText=n+zt.bracketsPostfix,a}function Bd(a,n){var o;const s=Er.parseLineContentFuncVar(n.column,n.lineNumber,a,n);if(s!=null&&s.libraryId)return{contents:[{value:Dd(s)}]};if((o=s==null?void 0:s.docValue)!=null&&o.length){const l=kd(s.docValue,s.index,s.isBuildIn);if(l)return{contents:[{value:l}]}}return{contents:[]}}function Ud(a,n){var T,P;const s={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:1,endColumn:n.column},o=a.getValueInRange(s),l=a.findMatches(String(Sd),s,!0,!1,null,!0),c=a.findMatches(String(Ed),s,!0,!1,null,!0),m=(T=l.pop())==null?void 0:T.matches,_=(P=c.pop())==null?void 0:P.matches;let g=!1;l.length%2===0?m&&m[0]==='"'&&(g=!0):m&&!m[0]&&(g=!0);let b=!1;c.length%2===0?_&&_[0]==="'"&&(b=!0):_&&!_[0]&&(b=!0);const h=Er.parseCurrentInputFuncAndArg(o,b,g);if(h){const{funcName:B,args:R}=h,N=Ld.getSignatureHelpValues(B,R);if(N)return{value:N,dispose:()=>{}}}return null}function Kd(a){let n=a.findMatches(pn.colorMatchesRegStr,!0,!0,!1,null,!0);return n=n.filter(o=>{const l=a.getValueInRange({...o.range,startColumn:0});return l.indexOf("//")===-1||l.indexOf("//")>o.range.endColumn}),pn.getDocumentColors(n)}function $d(a,n){return pn.getDocumentColorPresentations(a,n)||[]}function jd(a,n){const s=a.getModel(),o=Er.parseLineContentFuncVar(n.startColumn+1,n.startLineNumber,s);if(!o||o.isBuildIn||!o.docValue||!o.docValue[0].pos)return o!=null&&o.isBuildIn?o:void 0;const{lineNumber:l,column:c}=o.docValue[0].pos,m={startLineNumber:l,endLineNumber:l,startColumn:c,endColumn:c};a.revealRangeInCenterIfOutsideViewport(m),a.setSelection(m)}function Hd(a,n){return Er.parseLineContentFuncVar(n.column,n.lineNumber,a,n)?{uri:a.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}:null}function po(a,n){return a.map(s=>(s.range=n,s))}function Wd(){return{hints:Gs.inlayHints,dispose:()=>{}}}var ds={},ms=lp;if(process.env.NODE_ENV==="production")ds.createRoot=ms.createRoot,ds.hydrateRoot=ms.hydrateRoot;else{var Xs=ms.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ds.createRoot=function(a,n){Xs.usingClientEntryPoint=!0;try{return ms.createRoot(a,n)}finally{Xs.usingClientEntryPoint=!1}},ds.hydrateRoot=function(a,n,s){Xs.usingClientEntryPoint=!0;try{return ms.hydrateRoot(a,n,s)}finally{Xs.usingClientEntryPoint=!1}}}var Xe;(function(a){a.added="added",a.removed="removed",a.modified="modified"})(Xe||(Xe={}));const Gd=(a,n)=>{const{close:s,retracement:o}=a,[l,c]=O.useState("modified");return O.useImperativeHandle(n,()=>({updateType(m){c(m)}})),L.jsxs("div",{className:`content-popup content-${l}-popup`,children:[L.jsx("div",{className:`triangle-popup triangle-${l}-popup`}),L.jsxs("div",{className:`header-popup header-${l}-popup`,children:[L.jsx("div",{className:"title-popup",children:"Local working changes"}),L.jsx("div",{className:"actions-popup",children:L.jsx("div",{onClick:s,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:L.jsx("span",{className:"icon-popup",role:"img",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:L.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),L.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},Xd=O.forwardRef(Gd);class Vd{constructor(n,s,o=!0){Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_top",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._id=n,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=o?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",s==null||s.onDidScrollChange(this.scrollChangeHandler.bind(this)),ds.createRoot(this._domNode).render(L.jsx(Xd,{ref:l=>this._content=l,close:()=>this._close(),retracement:this._retracement})),this._top=0}_close(){this._domNode.style.display="none"}_retracement(){}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}show(n,s,o){var l;this._top=s,(l=this._content)==null||l.updateType(o),this._domNode.style.top=`${n}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(n){const s=n.scrollTop;this._domNode.style.top=`${this._top-s}px`}}function ar(){}ar.prototype={diff:function(n,s){var o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=l.callback;typeof l=="function"&&(c=l,l={}),this.options=l;var m=this;function _(k){return c?(setTimeout(function(){c(void 0,k)},0),!0):k}n=this.castInput(n),s=this.castInput(s),n=this.removeEmpty(this.tokenize(n)),s=this.removeEmpty(this.tokenize(s));var g=s.length,b=n.length,h=1,T=g+b;l.maxEditLength&&(T=Math.min(T,l.maxEditLength));var P=(o=l.timeout)!==null&&o!==void 0?o:1/0,B=Date.now()+P,R=[{oldPos:-1,lastComponent:void 0}],N=this.extractCommon(R[0],s,n,0);if(R[0].oldPos+1>=b&&N+1>=g)return _([{value:this.join(s),count:s.length}]);var W=-1/0,V=1/0;function G(){for(var k=Math.max(W,-h);k<=Math.min(V,h);k+=2){var q=void 0,U=R[k-1],j=R[k+1];U&&(R[k-1]=void 0);var ae=!1;if(j){var ye=j.oldPos-k;ae=j&&0<=ye&&ye<g}var le=U&&U.oldPos+1<b;if(!ae&&!le){R[k]=void 0;continue}if(!le||ae&&U.oldPos+1<j.oldPos?q=m.addToPath(j,!0,void 0,0):q=m.addToPath(U,void 0,!0,1),N=m.extractCommon(q,s,n,k),q.oldPos+1>=b&&N+1>=g)return _(Yd(m,q.lastComponent,s,n,m.useLongestToken));R[k]=q,q.oldPos+1>=b&&(V=Math.min(V,k-1)),N+1>=g&&(W=Math.max(W,k+1))}h++}if(c)(function k(){setTimeout(function(){if(h>T||Date.now()>B)return c();G()||k()},0)})();else for(;h<=T&&Date.now()<=B;){var F=G();if(F)return F}},addToPath:function(n,s,o,l){var c=n.lastComponent;return c&&c.added===s&&c.removed===o?{oldPos:n.oldPos+l,lastComponent:{count:c.count+1,added:s,removed:o,previousComponent:c.previousComponent}}:{oldPos:n.oldPos+l,lastComponent:{count:1,added:s,removed:o,previousComponent:c}}},extractCommon:function(n,s,o,l){for(var c=s.length,m=o.length,_=n.oldPos,g=_-l,b=0;g+1<c&&_+1<m&&this.equals(s[g+1],o[_+1]);)g++,_++,b++;return b&&(n.lastComponent={count:b,previousComponent:n.lastComponent}),n.oldPos=_,g},equals:function(n,s){return this.options.comparator?this.options.comparator(n,s):n===s||this.options.ignoreCase&&n.toLowerCase()===s.toLowerCase()},removeEmpty:function(n){for(var s=[],o=0;o<n.length;o++)n[o]&&s.push(n[o]);return s},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function Yd(a,n,s,o,l){for(var c=[],m;n;)c.push(n),m=n.previousComponent,delete n.previousComponent,n=m;c.reverse();for(var _=0,g=c.length,b=0,h=0;_<g;_++){var T=c[_];if(T.removed){if(T.value=a.join(o.slice(h,h+T.count)),h+=T.count,_&&c[_-1].added){var B=c[_-1];c[_-1]=c[_],c[_]=B}}else{if(!T.added&&l){var P=s.slice(b,b+T.count);P=P.map(function(N,W){var V=o[h+W];return V.length>N.length?V:N}),T.value=a.join(P)}else T.value=a.join(s.slice(b,b+T.count));b+=T.count,T.added||(h+=T.count)}}var R=c[g-1];return g>1&&typeof R.value=="string"&&(R.added||R.removed)&&a.equals("",R.value)&&(c[g-2].value+=R.value,c.pop()),c}var mo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,uo=/\S/,yo=new ar;yo.equals=function(a,n){return this.options.ignoreCase&&(a=a.toLowerCase(),n=n.toLowerCase()),a===n||this.options.ignoreWhitespace&&!uo.test(a)&&!uo.test(n)},yo.tokenize=function(a){for(var n=a.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),s=0;s<n.length-1;s++)!n[s+1]&&n[s+2]&&mo.test(n[s])&&mo.test(n[s+2])&&(n[s]+=n[s+2],n.splice(s+1,2),s--);return n};var dn=new ar;dn.tokenize=function(a){this.options.stripTrailingCr&&(a=a.replace(/\r\n/g,`
140
- `));var n=[],s=a.split(/(\n|\r\n)/);s[s.length-1]||s.pop();for(var o=0;o<s.length;o++){var l=s[o];o%2&&!this.options.newlineIsToken?n[n.length-1]+=l:(this.options.ignoreWhitespace&&(l=l.trim()),n.push(l))}return n};function Qd(a,n,s){return dn.diff(a,n,s)}var Zd=new ar;Zd.tokenize=function(a){return a.split(/(\S.+?[.!?])(?=\s+|$)/)};var Jd=new ar;Jd.tokenize=function(a){return a.split(/([{}:;,]|\s+)/)};function Vs(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vs=function(n){return typeof n}:Vs=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vs(a)}var em=Object.prototype.toString,us=new ar;us.useLongestToken=!0,us.tokenize=dn.tokenize,us.castInput=function(a){var n=this.options,s=n.undefinedReplacement,o=n.stringifyReplacer,l=o===void 0?function(c,m){return typeof m>"u"?s:m}:o;return typeof a=="string"?a:JSON.stringify(mn(a,null,null,l),l," ")},us.equals=function(a,n){return ar.prototype.equals.call(us,a.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function mn(a,n,s,o,l){n=n||[],s=s||[],o&&(a=o(l,a));var c;for(c=0;c<n.length;c+=1)if(n[c]===a)return s[c];var m;if(em.call(a)==="[object Array]"){for(n.push(a),m=new Array(a.length),s.push(m),c=0;c<a.length;c+=1)m[c]=mn(a[c],n,s,o,l);return n.pop(),s.pop(),m}if(a&&a.toJSON&&(a=a.toJSON()),Vs(a)==="object"&&a!==null){n.push(a),m={},s.push(m);var _=[],g;for(g in a)a.hasOwnProperty(g)&&_.push(g);for(_.sort(),c=0;c<_.length;c+=1)g=_[c],m[g]=mn(a[g],n,s,o,g);n.pop(),s.pop()}else m=a;return m}var un=new ar;un.tokenize=function(a){return a.slice()},un.join=un.removeEmpty=function(a){return a};class tm{constructor(n,s,o=""){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalModel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldDecorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffEditor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffPopupWidget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_didChangeListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onMouseDownListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=s,this._originalModel=this._monaco.editor.createModel(o,Ee),this._oldDecorations=[],this._init(),this._eventListening()}_init(){var n;this._changeEvent(),this._didChangeListener=(n=this._editor.getModel())==null?void 0:n.onDidChangeContent(()=>this._changeEvent())}update(n){var s,o;if(this._originalModel=this._monaco.editor.createModel(n,Ee),n!==((s=this._editor.getModel())==null?void 0:s.getValue())){this._changeEvent();return}(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var n,s,o,l;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(n=this._didChangeListener)==null||n.dispose(),(s=this._onMouseDownListener)==null||s.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(l=this._diffEditor)==null||l.dispose(),this._diffEditor=void 0}_changesHandle(n){let s=0,o;const l=[];let c=0;for(const m of n){const{added:_,removed:g,count:b=1,value:h}=m;_?o&&o.removed?(s=this._changeHandle(l,s,c,b,Xe.modified),c=0,o=void 0):(o&&o.added&&(s=this._changeHandle(l,s,c,o.count||1,Xe.added),c=0),o=m):g?o&&o.added?(s=this._changeHandle(l,s,c,o.count||1,Xe.modified),c=0,o=void 0):(o&&o.removed&&this._addDecorationList(l,s,Xe.removed),o=m):/^\n+$/.test(h)?o&&(o.added||o.removed)?c=b:s+=b:(o&&o.added?(s=this._changeHandle(l,s,c,o.count||1,Xe.added),c=0,o=void 0):o&&o.removed&&(this._addDecorationList(l,s,Xe.removed),o=void 0),s+=b)}return o&&o.added?s=this._changeHandle(l,s,c,o.count||1,Xe.added):o&&o.removed&&this._addDecorationList(l,s,Xe.removed),l}_changeHandle(n,s,o,l,c){for(let m=1;m<=l;m++)this._addDecorationList(n,s+m,c);return s+=l+o,s}_addDecorationList(n,s,o){n.push({range:new this._monaco.Range(s,1,s,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var l,c;const n=Qd(this._originalModel.getValue(),((l=this._editor.getModel())==null?void 0:l.getValue())||""),s=this._changesHandle(n),o=((c=this._editor.getModel())==null?void 0:c.deltaDecorations(this._oldDecorations,s))||[];this._oldDecorations=o}_eventListening(){const n=new Vd("diff.popup.widget",this._editor);this._editor.addOverlayWidget(n),this._onMouseDownListener=this._editor.onMouseDown(s=>this._onMouseDownHandle(s)),this._diffPopupWidget=n}_onMouseDownHandle(n){var m,_,g,b,h,T;const s=(m=n.target.element)==null?void 0:m.classList,o=s==null?void 0:s.contains(`line-${Xe.added}`),l=s==null?void 0:s.contains(`line-${Xe.modified}`),c=s==null?void 0:s.contains(`line-${Xe.removed}`);if(o||l||c){const P=((g=(_=n==null?void 0:n.target)==null?void 0:_.position)==null?void 0:g.lineNumber)||0,B=((b=this._editor)==null?void 0:b.getTopForLineNumber(P+1))||0,R=((h=this._editor)==null?void 0:h.getScrollTop())||0,N=o?Xe.added:l?Xe.modified:Xe.removed;(T=this._diffPopupWidget)==null||T.show(B-R,B,N),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(P+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class rm{constructor(n,s,o){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_decorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_changPositionListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScript",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onActionTrigger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onLinkOpen",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=s,this._onActionTrigger=o,this._init()}addLinkOpenFunc(n){this._onLinkOpen=n}updateActionTrigger(n){this._onActionTrigger=n}setModelMarkers(n){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",n)}addDiffDecorations(){this._decorations||(this._decorations=new tm(this._editor,this._monaco,this._originalScript))}removeDiffDecorations(){var n;(n=this._decorations)==null||n.dispose(),this._decorations=void 0}setValue(n){var s;this._editor.setValue(n),this._editor.setScrollTop(0),(s=this._editor)==null||s.focus()}setPosition(n){var s,o,l;(s=this._editor)==null||s.setPosition(n),(o=this._editor)==null||o.revealPositionInCenter(n),(l=this._editor)==null||l.focus()}setOriginalScript(n){var s;this._originalScript=n,(s=this._decorations)==null||s.update(n)}getEditorLayout(){var o;const n=this._editor.getContentHeight(),s=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:n,lineCount:s}}setEditorLayout(n,s){var o,l;(l=this._editor)==null||l.layout({height:n,width:s||((o=this._editor)==null?void 0:o.getContainerDomNode().clientWidth)})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition(),this._onTabSizeChange()}_onTabSizeChange(){const n=this._editor.getModel();n==null||n.onDidChangeOptions(s=>{if(s.tabSize&&!s.indentSize){const o=(n==null?void 0:n.getOptions().tabSize)||4;n==null||n.updateOptions({indentSize:o})}})}_setCursorPosition(){const n=localStorage.getItem(nn);this._editor.setPosition(n?JSON.parse(n):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Ee}),this._monaco.languages.registerCompletionItemProvider(Ee,{triggerCharacters:[".","@"],provideCompletionItems:Rd,resolveCompletionItem:Fd}),this._monaco.languages.registerHoverProvider(Ee,{provideHover:Bd}),this._monaco.languages.registerSignatureHelpProvider(Ee,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:Ud}),this._monaco.languages.registerColorProvider(Ee,{provideColorPresentations:$d,provideDocumentColors:Kd}),this._monaco.editor.registerEditorOpener({openCodeEditor:(n,s,o)=>{const l=jd(n,o);if(l){const{index:c,docValue:m}=l,{title:_,name:g}=m[c];let b="";switch(_){case be.keywords:b="kw";break;case be.functions:b="fun";break;case be.variables:b="var";break;case be.types:b="type";break;case be.constants:b="const";break}this._onLinkOpen&&this._onLinkOpen(`${b}_${g}`,c)}return!0}}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&n.fragment&&this._onLinkOpen(n.fragment),!!n.fragment)}),this._monaco.languages.registerDefinitionProvider(Ee,{provideDefinition:Hd}),this._monaco.languages.registerInlayHintsProvider(Ee,{provideInlayHints:Wd})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",cn),this._monaco.editor.defineTheme("vs",ln),this._monaco.languages.setMonarchTokensProvider(Ee,Nr),this._monaco.languages.setLanguageConfiguration(Ee,on)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(n,s)=>{var o;if(zt.nextIsBracket){const l=this._editor.getPosition();l&&this._editor.setPosition(Object.assign(l,{column:l.column+1}))}(o=this._editor.getAction(s))==null||o.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:"寻找/替换",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(A.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:"切换控制台",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"z_commands",contextMenuOrder:0,run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.TriggerConsole)}}),this._editor.addAction({id:"tcc-run-script",label:"运行脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Enter],run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.RunScript)}}),this._editor.addAction({id:"tcc-open-script",label:"打开脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyO],contextMenuGroupId:"9_modification",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.Open)}})}openFind(){this._editor.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(n){this._changPositionListener&&this._changPositionListener.dispose();const s=localStorage.getItem(nn);n&&n(s?JSON.parse(s):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(nn,JSON.stringify(o.position)),n&&n(o.position)})}}/**
139
+ ${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${c} ${be.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const Ld=new Nd(window.navigator.userAgent);class Md{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=oo}getDocumentColors(n){const s=[];return n.forEach(o=>{const{range:c}=o;let{matches:l}=o;l=l||[];const m=l[0]||"";let _=null;this._isHexToken(m)?_=this._hexToColor(m):this._isRgbColor(m)?_=this._rgbToColor(m):this._colors[m]?_=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&l[1]&&l[6]&&(_=this._extractNewExpression(l[1],Number(l[6]))),_&&s.push({color:_,range:c})}),s}get _defultColorsRegStr(){return Object.keys(oo).reduce((n,s)=>`${n}|${s}`,"")}get colorMatchesRegStr(){const n=`#[0-9a-fA-F]{6,8}|(\\b(color.rgb\\s*\\((\\s*\\d+\\s*,\\s*){2}(\\s*\\d+\\s*,{0,1}){1,2}\\s*\\)${this._defultColorsRegStr}))`;return`color.new\\s*\\(\\s*(${n})\\s*,\\s*(\\d+)\\s*\\)|${n}`}getDocumentColorPresentations(n,{color:s,range:o}){const c=n.getValueInRange(o);if(this._isHexToken(c)||this._colors[c])return[{label:this._colorRgbRepresentation(s)},{label:this._colorHexRepresentation(s)}];if(this._isColorExpression(c)||this._isRgbColor(c)){const l=this._isColorExpression(c)?this._colorNewRepresentation(s):this._colorRgbRepresentation(s);if(!l)return[];const m=this._colorHexRepresentation(s);return[{label:l,textEdit:{text:l,range:o}},{label:m,textEdit:{text:m,range:o}}]}return null}_hexFromNumber(n){const s=this._denormalize(n).toString(16);return s.length===1?`0${s}`:s}_normalize(n){return n/255}_denormalize(n){return Math.round(255*n)}_normalizeAlpha(n){return(100-n)/100}_denormalizeAlpha(n){return 100-Math.round(100*n)}_extractNewExpression(n,s){let o=null;return this._isHexToken(n)?o=this._hexToColor(n):this._isRgbColor(n)?o=this._rgbToColor(n):this._colors[n]&&(o=this._hexToColor(this._colors[n])),o&&!Number.isNaN(s)?{...o,alpha:this._normalizeAlpha(s)}:null}_colorHexRepresentation(n){const s=this._hexFromNumber(n.red),o=this._hexFromNumber(n.green),c=this._hexFromNumber(n.blue),l=this._hexFromNumber(n.alpha);return`#${s}${o}${c}${n.alpha===1?"":l}`}_colorRgbRepresentation(n){const s=this._denormalize(n.red),o=this._denormalize(n.green),c=this._denormalize(n.blue),l=this._denormalizeAlpha(n.alpha),m=[s,o,c];return l>0&&m.push(l),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(n){const s={...n,alpha:1};return`color.new(${this._colorHexRepresentation(s)}, ${this._denormalizeAlpha(n.alpha)})`}_hexToColor(n){const s=(n=this._isHexToken(n)?n.slice(1):n).length===3||n.length===4,o=s?`${n.slice(0,1)}${n.slice(0,1)}`:n.slice(0,2),c=s?`${n.slice(1,2)}${n.slice(1,2)}`:n.slice(2,4),l=s?`${n.slice(2,3)}${n.slice(2,3)}`:n.slice(4,6),m=(s?`${n.slice(3,4)}${n.slice(3,4)}`:n.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(c,16)),blue:this._normalize(parseInt(l,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(n){const s=n.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(s[0])),c=this._normalize(Number(s[1])),l=this._normalize(Number(s[2])),m=this._normalizeAlpha(Number(s[3]))||1;return isNaN(o)||isNaN(c)||isNaN(l)?null:{red:o,green:c,blue:l,alpha:m}}_isHexToken(n){return n.charAt(0)==="#"}_isRgbColor(n){return n.startsWith("color.rgb")}_isColorExpression(n){return n.startsWith("color.new")}}const pn=new Md;A.VType=void 0,function(a){a.BOOL="bool",a.INT="int",a.FLOAT="float",a.ARRAY="array",a.BOX="box",a.CHART_POINT="chart.point",a.COLOR="color",a.CONST="const",a.LABEL="label",a.LINE="line",a.LINEFILL="linefill",a.MAP="map",a.MATRIX="matrix",a.POLYLINE="polyline",a.SERIES="series",a.SIMPLE="simple",a.STRING="string",a.TABLE="table",a.UNDETERMINED="undetermined type",a.INPUT="input",a.NA="na",a.VOID="void",a.ENUM="enum"}(A.VType||(A.VType={})),A.VRuleType=void 0,function(a){a.FlowStmt="FlowStmt",a.DeclareAssign="DeclareAssign",a.VarBlockStmt="VarBlockStmt",a.VarSingle="VarSingle",a.VarMultiple="VarMultiple",a.ParenthesizedExpression="ParenthesizedExpression",a.AdditiveExpression="AdditiveExpression",a.RelationalExpression="RelationalExpression",a.EqualityExpression="EqualityExpression",a.TernaryExpression="TernaryExpression",a.UnaryExpression="UnaryExpression",a.NotExpression="NotExpression",a.MemberIndexExpression="MemberIndexExpression",a.MethodExpression="MethodExpression",a.LogicalAndExpression="LogicalAndExpression",a.LogicalOrExpression="LogicalOrExpression",a.MultiplicativeExpression="MultiplicativeExpression",a.Brackethesized="Brackethesized",a.IfStatement="IfStatement",a.ForToStatement="ForToStatement",a.ForInStatement="ForInStatement",a.SwitchStatement="SwitchStatement",a.CaseClause="CaseClause",a.DefaultCaluse="DefaultCaluse",a.WhileStatement="WhileStatement",a.ImportElement="ImportElement",a.Literal="Literal",a.ArrowFunction="ArrowFunction",a.ArrowMethod="ArrowMethod",a.TypeStatement="TypeStatement",a.Name="Name",a.AgainAssign="AgainAssign",a.EnumStatement="EnumStatement"}(A.VRuleType||(A.VRuleType={})),A.VAdjustment=void 0,function(a){a.dividends="dividends",a.none="none",a.splits="splits"}(A.VAdjustment||(A.VAdjustment={})),A.VAlert=void 0,function(a){a.freqAll="freq_all",a.freqOncePerBar="freq_once_per_bar",a.freqOncePerBarClose="freq_once_per_bar_close"}(A.VAlert||(A.VAlert={})),A.VBarmergeGaps=void 0,function(a){a.gapsOff="gaps_off",a.gapsOn="gaps_on",a.lookaheadOff="lookahead_off",a.lookaheadOn="lookahead_on"}(A.VBarmergeGaps||(A.VBarmergeGaps={})),A.VPlotDisplay=void 0,function(a){a.all="all",a.dataWindow="data_window",a.none="none",a.pane="pane",a.priceScale="price_scale",a.statusLine="status_line"}(A.VPlotDisplay||(A.VPlotDisplay={})),A.VExtend=void 0,function(a){a.both="both",a.left="left",a.none="none",a.right="right"}(A.VExtend||(A.VExtend={})),A.VFormatType=void 0,function(a){a.inherit="inherit",a.mintick="mintick",a.percent="percent",a.price="price",a.volume="volume"}(A.VFormatType||(A.VFormatType={})),A.VHlineStyle=void 0,function(a){a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(A.VHlineStyle||(A.VHlineStyle={})),A.VLabelStyle=void 0,function(a){a.styleArrowdown="style_arrowdown",a.styleArrowup="style_arrowup",a.styleCircle="style_circle",a.styleCross="style_cross",a.styleDiamond="style_diamond",a.styleFlag="style_flag",a.styleLabelCenter="style_label_center",a.styleLabelDown="style_label_down",a.styleLabelLeft="style_label_left",a.styleLabelLowerLeft="style_label_lower_left",a.styleLabelLowerRight="style_label_lower_right",a.styleLabelRight="style_label_right",a.styleLabelUp="style_label_up",a.styleLabelUpperLeft="style_label_upper_left",a.styleLabelUpperRight="style_label_upper_right",a.styleNone="style_none",a.styleSquare="style_square",a.styleTextOutline="style_text_outline",a.styleTriangledown="style_triangledown",a.styleTriangleup="style_triangleup",a.styleXcross="style_xcross"}(A.VLabelStyle||(A.VLabelStyle={})),A.VLineStyle=void 0,function(a){a.styleArrowBoth="style_arrow_both",a.styleArrowLeft="style_arrow_left",a.styleArrowRight="style_arrow_right",a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(A.VLineStyle||(A.VLineStyle={})),A.VLocation=void 0,function(a){a.abovebar="abovebar",a.absolute="absolute",a.belowbar="belowbar",a.bottom="bottom",a.top="top"}(A.VLocation||(A.VLocation={})),A.VSortOrder=void 0,function(a){a.ascending="ascending",a.descending="descending"}(A.VSortOrder||(A.VSortOrder={})),A.VPlotStyle=void 0,function(a){a.styleArea="Area",a.styleAreabr="Area With Breaks",a.styleCircles="Circles",a.styleColumns="Columns",a.styleCross="Cross",a.styleHistogram="Histogram",a.styleLine="Line",a.styleLinebr="Line With Breaks",a.styleStepline="Step Line",a.styleSteplineDiamond="Step Line With Diamonds",a.styleSteplinebr="Step line with Breaks"}(A.VPlotStyle||(A.VPlotStyle={})),A.VPosition=void 0,function(a){a.bottomCenter="bottom_center",a.bottomLeft="bottom_left",a.bottomRight="bottom_right",a.middleCenter="middle_center",a.middleLeft="middle_left",a.middleRight="middle_right",a.topCenter="top_center",a.topLeft="top_left",a.topRight="top_right"}(A.VPosition||(A.VPosition={})),A.VScale=void 0,function(a){a.left="left",a.none="none",a.right="right"}(A.VScale||(A.VScale={})),A.VSession=void 0,function(a){a.extended="extended",a.regular="regular"}(A.VSession||(A.VSession={})),A.VShape=void 0,function(a){a.arrowdown="arrowdown",a.arrowup="arrowup",a.circle="circle",a.cross="cross",a.diamond="diamond",a.flag="flag",a.labeldown="labeldown",a.labelup="labelup",a.square="square",a.triangledown="triangledown",a.triangleup="triangleup",a.xcross="xcross"}(A.VShape||(A.VShape={})),A.VSize=void 0,function(a){a.auto="auto",a.huge="huge",a.large="large",a.normal="normal",a.small="small",a.tiny="tiny"}(A.VSize||(A.VSize={})),A.VFont=void 0,function(a){a.familyDefault="default",a.familyMonospace="monospace"}(A.VFont||(A.VFont={})),A.VStrategy=void 0,function(a){a.cash="cash",a.fixed="fixed",a.percentOfEquity="percent_of_equity"}(A.VStrategy||(A.VStrategy={})),A.VCommission=void 0,function(a){a.cashPerContract="cash_per_contract",a.cashPerOrder="cash_per_order",a.percent="percent"}(A.VCommission||(A.VCommission={})),A.VDirection=void 0,function(a){a.all="all",a.long="long",a.short="short"}(A.VDirection||(A.VDirection={})),A.VOca=void 0,function(a){a.cancel="cancel",a.none="none",a.reduce="reduce"}(A.VOca||(A.VOca={})),A.VText=void 0,function(a){a.alignBottom="align_bottom",a.alignCenter="align_center",a.alignLeft="align_left",a.alignRight="align_right",a.alignTop="align_top",a.wrapAuto="wrap_auto",a.wrapNone="wrap_none"}(A.VText||(A.VText={})),A.VXloc=void 0,function(a){a.bar_index="bar_index",a.bar_time="bar_time"}(A.VXloc||(A.VXloc={})),A.VYloc=void 0,function(a){a.abovebar="abovebar",a.belowbar="belowbar",a.price="price"}(A.VYloc||(A.VYloc={})),A.VEarnings=void 0,function(a){a.actual="actual",a.estimate="estimate",a.standardized="standardized"}(A.VEarnings||(A.VEarnings={})),A.VPivotType=void 0,function(a){a.traditional="Traditional",a.fibonacci="Fibonacci",a.woodie="Woodie",a.classic="Classic",a.dm="DM",a.camarilla="Camarilla"}(A.VPivotType||(A.VPivotType={})),A.VInputType=void 0,function(a){a.INT="int",a.BOOL="bool",a.TIME="time",a.COLOR="color",a.FLOAT="float",a.PRICE="price",a.SOURCE="source",a.STRING="string",a.SYMBOL="symbol",a.SESSION="session",a.TEXT_AREA="text_area",a.TIMEFRAME="timeframe",a.ENUM="enum"}(A.VInputType||(A.VInputType={}));var lo;(function(a){a.description="description",a.field="field",a.function="function",a.param="param",a.returns="returns",a.type="type",a.variable="variable",a.enum="enum"})(lo||(lo={})),A.VScriptType=void 0,function(a){a.library="library",a.indicator="indicator",a.strategy="strategy"}(A.VScriptType||(A.VScriptType={})),A.VType.SERIES,A.VType.SIMPLE,A.VType.INPUT,A.VType.CONST,A.VType.INT,A.VType.FLOAT,A.VType.BOOL,A.VType.COLOR,A.VType.STRING;const Pd={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1},co={functions:[{name:"calcBB",desc:["Computes Bollinger Band values from an array of data."],args:[{name:"srcArray",desc:"(array<float>) The array where the queue is maintained.",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series float mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"srcArray",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series int mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],index:1},{name:"Scanner.new",args:[{name:"enabled",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"},{name:"ticker",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"},{name:"timeframe",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.new(series bool enabled, series string ticker, series string timeframe) → Scanner"]},{name:"Scanner.copy",args:[{name:"object",required:!0,allowedTypeIDs:["Scanner"],displayType:"Scanner"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},info:"The identifier of the object to be copied.",syntax:["Scanner.copy(Scanner object) → Scanner"]}],methods:[{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],desc:["Computes Bollinger Band values from an array of data."],originalName:"array.calcBB",syntax:["calcBB(series float mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},thisType:["float[]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],originalName:"array.calcBB",syntax:["calcBB(series int mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},thisType:["float[]"],index:1},{name:"Scanner.copy",args:[],returnedTypes:["Scanner"],thisType:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.copy() → Scanner"]}],types:[{fields:[{name:"enabled",type:"series bool"},{name:"ticker",type:"series string"},{name:"timeframe",type:"series string"}],name:"Scanner",pos:{lineNumber:30,column:12}}],description:"Provides a tool to quickly output a label on the chart.",codeStr:'const $name={calcBB:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_12","var")||$_var.setVarValue("mean",e+"_14_12",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_13","var")||$_var.setVarValue("dev",e+"_14_13",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_16_16")),v=a.avg(e+"_16_16"),$_var.setVarValue("mean",e+"_14_12",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_17_16")*r),s=a.stdev(e+"_17_16")*r,$_var.setVarValue("dev",e+"_14_13",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},calcBB$1:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_21","var")||$_var.setVarValue("mean",e+"_14_21",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_22","var")||$_var.setVarValue("dev",e+"_14_22",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_25_16")),v=a.avg(e+"_25_16"),$_var.setVarValue("mean",e+"_14_21",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_26_16")*r),s=a.stdev(e+"_26_16")*r,$_var.setVarValue("dev",e+"_14_22",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},Scanner:$_var.getTypeInstance({enabled:void 0,ticker:void 0,timeframe:void 0},[])};'};class Od{constructor(){Object.defineProperty(this,"_inlayHints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_importCompleteLibrary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._inlayHints=new Map,this._importCompleteLibrary=new Map,this._funcs=new Map}get inlayHints(){return[...this._inlayHints.values()]}setEditor(n){this._editor=n}async setInlayHints(n){const{endLine:s,endColumn:o,name:c,libraryId:l,libraryName:m}=n;if(this._importCompleteLibrary.has(l)){const _=this._funcs.get(l);return((_==null?void 0:_.name)!==c||!c&&!this._inlayHints.has(l))&&(this._updateFuncNames(c||m,l),this._inlayHintsHandle(n)),this._importCompleteLibrary.get(l)}return this._importCompleteLibrary.set(l,co),this._inlayHints.set(l,{label:"载入中...",position:{column:o,lineNumber:s},paddingLeft:!0}),this.triggerInlayHints(),this._updateFuncNames(c||m,l),setTimeout(()=>{this._inlayHints.has(l)&&this._inlayHintsHandle(n)},2e3),co}deleteInlayHints(n){this._inlayHints.delete(n)}clearInlayHints(){this._inlayHints.clear()}triggerInlayHints(){this._editor&&this._editor.updateOptions({inlayHints:{fontFamily:String(Date.now())}})}_updateFuncNames(n,s){const o=this._importCompleteLibrary.get(s);if(!o)return;const c=o.functions.map(l=>`${n}.${l.name}`);this._funcs.set(s,{name:n,funcs:c}),this._updateMonarchTokens()}_setNoNameInlayHints(n){const{endLine:s,endColumn:o,libraryId:c,libraryName:l}=n;this._inlayHints.set(c,{label:`as ${l}`,position:{column:o,lineNumber:s},paddingLeft:!0})}_inlayHintsHandle(n){const{name:s,libraryId:o}=n;s?this._inlayHints.delete(o):this._setNoNameInlayHints(n),this.triggerInlayHints()}_updateMonarchTokens(){const n=[...this._funcs.values()].map(c=>c.funcs.join("|")),s=new RegExp("\\b("+n.join("|")+")(?=\\s*\\()"),o=[...Nr.tokenizer.root];o.splice(15,0,[s,"meta.function-call"]),Ie.languages.setMonarchTokensProvider(Ee,{...Nr,tokenizer:{...Nr.tokenizer,root:o}})}}const Gs=new Od;function Rd(a,n,s){var B;const o={startLineNumber:n.lineNumber,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column},c=a.getValueInRange(o);if(/^\/\/\s*@/.test(c))return{suggestions:zt.annotationSuggestions};if(s.triggerCharacter==="@")return{suggestions:[]};const l=c.match(/([\w.]+)$/)||[];if(!l.length)return{suggestions:[]};const m=(B=l[0])==null?void 0:B.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),_=m?m[1]?m[1]:m[2]?m[2]:void 0:void 0,f=a.getWordUntilPosition(n),b=gr.parseCurrentInputFunc(c),h={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:f.startColumn,endColumn:f.endColumn},T=a.getValueInRange({...h,startColumn:f.endColumn,endColumn:f.endColumn+1});zt.nextIsBracket=T==="(";let P=po(zt.getSuggestions(_)||[],h);if(l[0]==="."&&(P=[]),b&&!_&&!/=\s*\w+$/.test(c)){const R=po(zt.getArgSuggestions(b.funcName)||[],h);P=P.concat(R)}return{suggestions:P||[],dispose:()=>{}}}function Fd(a){if(a.kind!==1)return a;const{originInsertText:n}=a;return zt.nextIsBracket?a.insertText=n:a.insertText=n+zt.bracketsPostfix,a}function Bd(a,n){var o;const s=gr.parseLineContentFuncVar(n.column,n.lineNumber,a,n);if(s!=null&&s.libraryId)return{contents:[{value:Dd(s)}]};if((o=s==null?void 0:s.docValue)!=null&&o.length){const c=kd(s.docValue,s.index,s.isBuildIn);if(c)return{contents:[{value:c}]}}return{contents:[]}}function Ud(a,n){var T,P;const s={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:1,endColumn:n.column},o=a.getValueInRange(s),c=a.findMatches(String(Sd),s,!0,!1,null,!0),l=a.findMatches(String(Ed),s,!0,!1,null,!0),m=(T=c.pop())==null?void 0:T.matches,_=(P=l.pop())==null?void 0:P.matches;let f=!1;c.length%2===0?m&&m[0]==='"'&&(f=!0):m&&!m[0]&&(f=!0);let b=!1;l.length%2===0?_&&_[0]==="'"&&(b=!0):_&&!_[0]&&(b=!0);const h=gr.parseCurrentInputFuncAndArg(o,b,f);if(h){const{funcName:B,args:R,startIndex:N}=h,H=Ld.getSignatureHelpValues(B,R,N+1,n.lineNumber);if(H)return{value:H,dispose:()=>{}}}return null}function Kd(a){let n=a.findMatches(pn.colorMatchesRegStr,!0,!0,!1,null,!0);return n=n.filter(o=>{const c=a.getValueInRange({...o.range,startColumn:0});return c.indexOf("//")===-1||c.indexOf("//")>o.range.endColumn}),pn.getDocumentColors(n)}function $d(a,n){return pn.getDocumentColorPresentations(a,n)||[]}function jd(a,n){const s=a.getModel(),o=gr.parseLineContentFuncVar(n.startColumn+1,n.startLineNumber,s);if(!o||o.isBuildIn||!o.docValue||!o.docValue[0].pos)return o!=null&&o.isBuildIn?o:void 0;const{lineNumber:c,column:l}=o.docValue[0].pos,m={startLineNumber:c,endLineNumber:c,startColumn:l,endColumn:l};a.revealRangeInCenterIfOutsideViewport(m),a.setSelection(m)}function Hd(a,n){return gr.parseLineContentFuncVar(n.column,n.lineNumber,a,n)?{uri:a.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}:null}function po(a,n){return a.map(s=>(s.range=n,s))}function Wd(){return{hints:Gs.inlayHints,dispose:()=>{}}}var ds={},ms=lp;if(process.env.NODE_ENV==="production")ds.createRoot=ms.createRoot,ds.hydrateRoot=ms.hydrateRoot;else{var Xs=ms.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ds.createRoot=function(a,n){Xs.usingClientEntryPoint=!0;try{return ms.createRoot(a,n)}finally{Xs.usingClientEntryPoint=!1}},ds.hydrateRoot=function(a,n,s){Xs.usingClientEntryPoint=!0;try{return ms.hydrateRoot(a,n,s)}finally{Xs.usingClientEntryPoint=!1}}}var Xe;(function(a){a.added="added",a.removed="removed",a.modified="modified"})(Xe||(Xe={}));const Gd=(a,n)=>{const{close:s,retracement:o}=a,[c,l]=O.useState("modified");return O.useImperativeHandle(n,()=>({updateType(m){l(m)}})),L.jsxs("div",{className:`content-popup content-${c}-popup`,children:[L.jsx("div",{className:`triangle-popup triangle-${c}-popup`}),L.jsxs("div",{className:`header-popup header-${c}-popup`,children:[L.jsx("div",{className:"title-popup",children:"Local working changes"}),L.jsx("div",{className:"actions-popup",children:L.jsx("div",{onClick:s,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:L.jsx("span",{className:"icon-popup",role:"img",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:L.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),L.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},Xd=O.forwardRef(Gd);class Vd{constructor(n,s,o=!0){Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_top",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._id=n,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=o?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",s==null||s.onDidScrollChange(this.scrollChangeHandler.bind(this)),ds.createRoot(this._domNode).render(L.jsx(Xd,{ref:c=>this._content=c,close:()=>this._close(),retracement:this._retracement})),this._top=0}_close(){this._domNode.style.display="none"}_retracement(){}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}show(n,s,o){var c;this._top=s,(c=this._content)==null||c.updateType(o),this._domNode.style.top=`${n}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(n){const s=n.scrollTop;this._domNode.style.top=`${this._top-s}px`}}function ar(){}ar.prototype={diff:function(n,s){var o,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=c.callback;typeof c=="function"&&(l=c,c={}),this.options=c;var m=this;function _(k){return l?(setTimeout(function(){l(void 0,k)},0),!0):k}n=this.castInput(n),s=this.castInput(s),n=this.removeEmpty(this.tokenize(n)),s=this.removeEmpty(this.tokenize(s));var f=s.length,b=n.length,h=1,T=f+b;c.maxEditLength&&(T=Math.min(T,c.maxEditLength));var P=(o=c.timeout)!==null&&o!==void 0?o:1/0,B=Date.now()+P,R=[{oldPos:-1,lastComponent:void 0}],N=this.extractCommon(R[0],s,n,0);if(R[0].oldPos+1>=b&&N+1>=f)return _([{value:this.join(s),count:s.length}]);var H=-1/0,V=1/0;function G(){for(var k=Math.max(H,-h);k<=Math.min(V,h);k+=2){var q=void 0,U=R[k-1],j=R[k+1];U&&(R[k-1]=void 0);var ae=!1;if(j){var ye=j.oldPos-k;ae=j&&0<=ye&&ye<f}var le=U&&U.oldPos+1<b;if(!ae&&!le){R[k]=void 0;continue}if(!le||ae&&U.oldPos+1<j.oldPos?q=m.addToPath(j,!0,void 0,0):q=m.addToPath(U,void 0,!0,1),N=m.extractCommon(q,s,n,k),q.oldPos+1>=b&&N+1>=f)return _(Yd(m,q.lastComponent,s,n,m.useLongestToken));R[k]=q,q.oldPos+1>=b&&(V=Math.min(V,k-1)),N+1>=f&&(H=Math.max(H,k+1))}h++}if(l)(function k(){setTimeout(function(){if(h>T||Date.now()>B)return l();G()||k()},0)})();else for(;h<=T&&Date.now()<=B;){var F=G();if(F)return F}},addToPath:function(n,s,o,c){var l=n.lastComponent;return l&&l.added===s&&l.removed===o?{oldPos:n.oldPos+c,lastComponent:{count:l.count+1,added:s,removed:o,previousComponent:l.previousComponent}}:{oldPos:n.oldPos+c,lastComponent:{count:1,added:s,removed:o,previousComponent:l}}},extractCommon:function(n,s,o,c){for(var l=s.length,m=o.length,_=n.oldPos,f=_-c,b=0;f+1<l&&_+1<m&&this.equals(s[f+1],o[_+1]);)f++,_++,b++;return b&&(n.lastComponent={count:b,previousComponent:n.lastComponent}),n.oldPos=_,f},equals:function(n,s){return this.options.comparator?this.options.comparator(n,s):n===s||this.options.ignoreCase&&n.toLowerCase()===s.toLowerCase()},removeEmpty:function(n){for(var s=[],o=0;o<n.length;o++)n[o]&&s.push(n[o]);return s},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function Yd(a,n,s,o,c){for(var l=[],m;n;)l.push(n),m=n.previousComponent,delete n.previousComponent,n=m;l.reverse();for(var _=0,f=l.length,b=0,h=0;_<f;_++){var T=l[_];if(T.removed){if(T.value=a.join(o.slice(h,h+T.count)),h+=T.count,_&&l[_-1].added){var B=l[_-1];l[_-1]=l[_],l[_]=B}}else{if(!T.added&&c){var P=s.slice(b,b+T.count);P=P.map(function(N,H){var V=o[h+H];return V.length>N.length?V:N}),T.value=a.join(P)}else T.value=a.join(s.slice(b,b+T.count));b+=T.count,T.added||(h+=T.count)}}var R=l[f-1];return f>1&&typeof R.value=="string"&&(R.added||R.removed)&&a.equals("",R.value)&&(l[f-2].value+=R.value,l.pop()),l}var mo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,uo=/\S/,yo=new ar;yo.equals=function(a,n){return this.options.ignoreCase&&(a=a.toLowerCase(),n=n.toLowerCase()),a===n||this.options.ignoreWhitespace&&!uo.test(a)&&!uo.test(n)},yo.tokenize=function(a){for(var n=a.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),s=0;s<n.length-1;s++)!n[s+1]&&n[s+2]&&mo.test(n[s])&&mo.test(n[s+2])&&(n[s]+=n[s+2],n.splice(s+1,2),s--);return n};var dn=new ar;dn.tokenize=function(a){this.options.stripTrailingCr&&(a=a.replace(/\r\n/g,`
140
+ `));var n=[],s=a.split(/(\n|\r\n)/);s[s.length-1]||s.pop();for(var o=0;o<s.length;o++){var c=s[o];o%2&&!this.options.newlineIsToken?n[n.length-1]+=c:(this.options.ignoreWhitespace&&(c=c.trim()),n.push(c))}return n};function Qd(a,n,s){return dn.diff(a,n,s)}var Zd=new ar;Zd.tokenize=function(a){return a.split(/(\S.+?[.!?])(?=\s+|$)/)};var Jd=new ar;Jd.tokenize=function(a){return a.split(/([{}:;,]|\s+)/)};function Vs(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vs=function(n){return typeof n}:Vs=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vs(a)}var em=Object.prototype.toString,us=new ar;us.useLongestToken=!0,us.tokenize=dn.tokenize,us.castInput=function(a){var n=this.options,s=n.undefinedReplacement,o=n.stringifyReplacer,c=o===void 0?function(l,m){return typeof m>"u"?s:m}:o;return typeof a=="string"?a:JSON.stringify(mn(a,null,null,c),c," ")},us.equals=function(a,n){return ar.prototype.equals.call(us,a.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function mn(a,n,s,o,c){n=n||[],s=s||[],o&&(a=o(c,a));var l;for(l=0;l<n.length;l+=1)if(n[l]===a)return s[l];var m;if(em.call(a)==="[object Array]"){for(n.push(a),m=new Array(a.length),s.push(m),l=0;l<a.length;l+=1)m[l]=mn(a[l],n,s,o,c);return n.pop(),s.pop(),m}if(a&&a.toJSON&&(a=a.toJSON()),Vs(a)==="object"&&a!==null){n.push(a),m={},s.push(m);var _=[],f;for(f in a)a.hasOwnProperty(f)&&_.push(f);for(_.sort(),l=0;l<_.length;l+=1)f=_[l],m[f]=mn(a[f],n,s,o,f);n.pop(),s.pop()}else m=a;return m}var un=new ar;un.tokenize=function(a){return a.slice()},un.join=un.removeEmpty=function(a){return a};class tm{constructor(n,s,o=""){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalModel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldDecorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffEditor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffPopupWidget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_didChangeListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onMouseDownListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=s,this._originalModel=this._monaco.editor.createModel(o,Ee),this._oldDecorations=[],this._init(),this._eventListening()}_init(){var n;this._changeEvent(),this._didChangeListener=(n=this._editor.getModel())==null?void 0:n.onDidChangeContent(()=>this._changeEvent())}update(n){var s,o;if(this._originalModel=this._monaco.editor.createModel(n,Ee),n!==((s=this._editor.getModel())==null?void 0:s.getValue())){this._changeEvent();return}(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var n,s,o,c;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(n=this._didChangeListener)==null||n.dispose(),(s=this._onMouseDownListener)==null||s.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(c=this._diffEditor)==null||c.dispose(),this._diffEditor=void 0}_changesHandle(n){let s=0,o;const c=[];let l=0;for(const m of n){const{added:_,removed:f,count:b=1,value:h}=m;_?o&&o.removed?(s=this._changeHandle(c,s,l,b,Xe.modified),l=0,o=void 0):(o&&o.added&&(s=this._changeHandle(c,s,l,o.count||1,Xe.added),l=0),o=m):f?o&&o.added?(s=this._changeHandle(c,s,l,o.count||1,Xe.modified),l=0,o=void 0):(o&&o.removed&&this._addDecorationList(c,s,Xe.removed),o=m):/^\n+$/.test(h)?o&&(o.added||o.removed)?l=b:s+=b:(o&&o.added?(s=this._changeHandle(c,s,l,o.count||1,Xe.added),l=0,o=void 0):o&&o.removed&&(this._addDecorationList(c,s,Xe.removed),o=void 0),s+=b)}return o&&o.added?s=this._changeHandle(c,s,l,o.count||1,Xe.added):o&&o.removed&&this._addDecorationList(c,s,Xe.removed),c}_changeHandle(n,s,o,c,l){for(let m=1;m<=c;m++)this._addDecorationList(n,s+m,l);return s+=c+o,s}_addDecorationList(n,s,o){n.push({range:new this._monaco.Range(s,1,s,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var c,l;const n=Qd(this._originalModel.getValue(),((c=this._editor.getModel())==null?void 0:c.getValue())||""),s=this._changesHandle(n),o=((l=this._editor.getModel())==null?void 0:l.deltaDecorations(this._oldDecorations,s))||[];this._oldDecorations=o}_eventListening(){const n=new Vd("diff.popup.widget",this._editor);this._editor.addOverlayWidget(n),this._onMouseDownListener=this._editor.onMouseDown(s=>this._onMouseDownHandle(s)),this._diffPopupWidget=n}_onMouseDownHandle(n){var m,_,f,b,h,T;const s=(m=n.target.element)==null?void 0:m.classList,o=s==null?void 0:s.contains(`line-${Xe.added}`),c=s==null?void 0:s.contains(`line-${Xe.modified}`),l=s==null?void 0:s.contains(`line-${Xe.removed}`);if(o||c||l){const P=((f=(_=n==null?void 0:n.target)==null?void 0:_.position)==null?void 0:f.lineNumber)||0,B=((b=this._editor)==null?void 0:b.getTopForLineNumber(P+1))||0,R=((h=this._editor)==null?void 0:h.getScrollTop())||0,N=o?Xe.added:c?Xe.modified:Xe.removed;(T=this._diffPopupWidget)==null||T.show(B-R,B,N),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(P+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class rm{constructor(n,s,o){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_decorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_changPositionListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScript",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onActionTrigger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onLinkOpen",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=s,this._onActionTrigger=o,this._init()}addLinkOpenFunc(n){this._onLinkOpen=n}updateActionTrigger(n){this._onActionTrigger=n}setModelMarkers(n){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",n)}addDiffDecorations(){this._decorations||(this._decorations=new tm(this._editor,this._monaco,this._originalScript))}removeDiffDecorations(){var n;(n=this._decorations)==null||n.dispose(),this._decorations=void 0}setValue(n){var s;this._editor.setValue(n),this._editor.setScrollTop(0),(s=this._editor)==null||s.focus()}setPosition(n){var s,o,c;(s=this._editor)==null||s.setPosition(n),(o=this._editor)==null||o.revealPositionInCenter(n),(c=this._editor)==null||c.focus()}setOriginalScript(n){var s;this._originalScript=n,(s=this._decorations)==null||s.update(n)}getEditorLayout(){var o;const n=this._editor.getContentHeight(),s=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:n,lineCount:s}}setEditorLayout(n,s){var o,c;(c=this._editor)==null||c.layout({height:n,width:s||((o=this._editor)==null?void 0:o.getContainerDomNode().clientWidth)})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition(),this._onTabSizeChange()}_onTabSizeChange(){const n=this._editor.getModel();n==null||n.onDidChangeOptions(s=>{if(s.tabSize&&!s.indentSize){const o=(n==null?void 0:n.getOptions().tabSize)||4;n==null||n.updateOptions({indentSize:o})}})}_setCursorPosition(){const n=localStorage.getItem(nn);this._editor.setPosition(n?JSON.parse(n):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Ee}),this._monaco.languages.registerCompletionItemProvider(Ee,{triggerCharacters:[".","@"],provideCompletionItems:Rd,resolveCompletionItem:Fd}),this._monaco.languages.registerHoverProvider(Ee,{provideHover:Bd}),this._monaco.languages.registerSignatureHelpProvider(Ee,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:Ud}),this._monaco.languages.registerColorProvider(Ee,{provideColorPresentations:$d,provideDocumentColors:Kd}),this._monaco.editor.registerEditorOpener({openCodeEditor:(n,s,o)=>{const c=jd(n,o);if(c){const{index:l,docValue:m}=c,{title:_,name:f}=m[l];let b="";switch(_){case be.keywords:b="kw";break;case be.functions:b="fun";break;case be.variables:b="var";break;case be.types:b="type";break;case be.constants:b="const";break}this._onLinkOpen&&this._onLinkOpen(`${b}_${f}`,l)}return!0}}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&n.fragment&&this._onLinkOpen(n.fragment),!!n.fragment)}),this._monaco.languages.registerDefinitionProvider(Ee,{provideDefinition:Hd}),this._monaco.languages.registerInlayHintsProvider(Ee,{provideInlayHints:Wd})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",cn),this._monaco.editor.defineTheme("vs",ln),this._monaco.languages.setMonarchTokensProvider(Ee,Nr),this._monaco.languages.setLanguageConfiguration(Ee,on)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(n,s)=>{var o;if(zt.nextIsBracket){const c=this._editor.getPosition();c&&this._editor.setPosition(Object.assign(c,{column:c.column+1}))}(o=this._editor.getAction(s))==null||o.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:"寻找/替换",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(A.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:"切换控制台",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"z_commands",contextMenuOrder:0,run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.TriggerConsole)}}),this._editor.addAction({id:"tcc-run-script",label:"运行脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Enter],run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.RunScript)}}),this._editor.addAction({id:"tcc-open-script",label:"打开脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyO],contextMenuGroupId:"9_modification",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.Open)}})}openFind(){this._editor.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(n){this._changPositionListener&&this._changPositionListener.dispose();const s=localStorage.getItem(nn);n&&n(s?JSON.parse(s):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(nn,JSON.stringify(o.position)),n&&n(o.position)})}}/**
141
141
  * @license
142
142
  * Copyright 2019 Google LLC
143
143
  * SPDX-License-Identifier: Apache-2.0
144
- */const _o=Symbol("Comlink.proxy"),sm=Symbol("Comlink.endpoint"),am=Symbol("Comlink.releaseProxy"),yn=Symbol("Comlink.finalizer"),Ys=Symbol("Comlink.thrown"),fo=a=>typeof a=="object"&&a!==null||typeof a=="function",nm={canHandle:a=>fo(a)&&a[_o],serialize(a){const{port1:n,port2:s}=new MessageChannel;return bo(a,n),[s,[s]]},deserialize(a){return a.start(),_n(a)}},im={canHandle:a=>fo(a)&&Ys in a,serialize({value:a}){let n;return a instanceof Error?n={isError:!0,value:{message:a.message,name:a.name,stack:a.stack}}:n={isError:!1,value:a},[n,[]]},deserialize(a){throw a.isError?Object.assign(new Error(a.value.message),a.value):a.value}},go=new Map([["proxy",nm],["throw",im]]);function om(a,n){for(const s of a)if(n===s||s==="*"||s instanceof RegExp&&s.test(n))return!0;return!1}function bo(a,n=globalThis,s=["*"]){n.addEventListener("message",function o(l){if(!l||!l.data)return;if(!om(s,l.origin)){console.warn(`Invalid origin '${l.origin}' for comlink proxy`);return}const{id:c,type:m,path:_}=Object.assign({path:[]},l.data),g=(l.data.argumentList||[]).map(gr);let b;try{const h=_.slice(0,-1).reduce((P,B)=>P[B],a),T=_.reduce((P,B)=>P[B],a);switch(m){case"GET":b=T;break;case"SET":h[_.slice(-1)[0]]=gr(l.data.value),b=!0;break;case"APPLY":b=T.apply(h,g);break;case"CONSTRUCT":{const P=new T(...g);b=gn(P)}break;case"ENDPOINT":{const{port1:P,port2:B}=new MessageChannel;bo(a,B),b=mm(P,[P])}break;case"RELEASE":b=void 0;break;default:return}}catch(h){b={value:h,[Ys]:0}}Promise.resolve(b).catch(h=>({value:h,[Ys]:0})).then(h=>{const[T,P]=ea(h);n.postMessage(Object.assign(Object.assign({},T),{id:c}),P),m==="RELEASE"&&(n.removeEventListener("message",o),xo(n),yn in a&&typeof a[yn]=="function"&&a[yn]())}).catch(h=>{const[T,P]=ea({value:new TypeError("Unserializable return value"),[Ys]:0});n.postMessage(Object.assign(Object.assign({},T),{id:c}),P)})}),n.start&&n.start()}function lm(a){return a.constructor.name==="MessagePort"}function xo(a){lm(a)&&a.close()}function _n(a,n){return fn(a,[],n)}function Qs(a){if(a)throw new Error("Proxy has been released and is not useable")}function ho(a){return Lr(a,{type:"RELEASE"}).then(()=>{xo(a)})}const Zs=new WeakMap,Js="FinalizationRegistry"in globalThis&&new FinalizationRegistry(a=>{const n=(Zs.get(a)||0)-1;Zs.set(a,n),n===0&&ho(a)});function cm(a,n){const s=(Zs.get(n)||0)+1;Zs.set(n,s),Js&&Js.register(a,n,a)}function pm(a){Js&&Js.unregister(a)}function fn(a,n=[],s=function(){}){let o=!1;const l=new Proxy(s,{get(c,m){if(Qs(o),m===am)return()=>{pm(l),ho(a),o=!0};if(m==="then"){if(n.length===0)return{then:()=>l};const _=Lr(a,{type:"GET",path:n.map(g=>g.toString())}).then(gr);return _.then.bind(_)}return fn(a,[...n,m])},set(c,m,_){Qs(o);const[g,b]=ea(_);return Lr(a,{type:"SET",path:[...n,m].map(h=>h.toString()),value:g},b).then(gr)},apply(c,m,_){Qs(o);const g=n[n.length-1];if(g===sm)return Lr(a,{type:"ENDPOINT"}).then(gr);if(g==="bind")return fn(a,n.slice(0,-1));const[b,h]=wo(_);return Lr(a,{type:"APPLY",path:n.map(T=>T.toString()),argumentList:b},h).then(gr)},construct(c,m){Qs(o);const[_,g]=wo(m);return Lr(a,{type:"CONSTRUCT",path:n.map(b=>b.toString()),argumentList:_},g).then(gr)}});return cm(l,a),l}function dm(a){return Array.prototype.concat.apply([],a)}function wo(a){const n=a.map(ea);return[n.map(s=>s[0]),dm(n.map(s=>s[1]))]}const vo=new WeakMap;function mm(a,n){return vo.set(a,n),a}function gn(a){return Object.assign(a,{[_o]:!0})}function ea(a){for(const[n,s]of go)if(s.canHandle(a)){const[o,l]=s.serialize(a);return[{type:"HANDLER",name:n,value:o},l]}return[{type:"RAW",value:a},vo.get(a)||[]]}function gr(a){switch(a.type){case"HANDLER":return go.get(a.name).deserialize(a.value);case"RAW":return a.value}}function Lr(a,n,s){return new Promise(o=>{const l=um();a.addEventListener("message",function c(m){!m.data||!m.data.id||m.data.id!==l||(a.removeEventListener("message",c),o(m.data))}),a.start&&a.start(),a.postMessage(Object.assign({id:l},n),s)})}function um(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const To=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-DTH9vYgp.js").href:new URL("assets/scriptsRunWorker-DTH9vYgp.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});To.onerror=a=>{console.error(a)};async function Do(a){return await Gs.setInlayHints(a)}const ko=_n(To),Io=_n(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-BC_aawb2.js").href:new URL("assets/parserTccWorker-BC_aawb2.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function Ao(a,n=!1){const{functions:s,types:o,constants:l,variables:c,methods:m}=lt;return await Io.parseTcc(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(c)})}async function ym(a,n){const{functions:s,types:o,constants:l,variables:c,methods:m}=lt;return await Io.parseLibraryCode(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(c)})}async function qo(a,n,s=!0){return await ko.runScript(a,n,s)}async function _m(a){return await ko.removeScript(a)}function fm(a){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:a==null?void 0:a.name})}self.MonacoEnvironment={getWorker(){return new fm({name:"Editor Worker"})}},sn.config({paths:{vs:"https://cdn.staticfile.net/monaco-editor/0.45.0/min/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}});let Co={};const gm=(a,n)=>{const{height:s,width:o,theme:l,options:c,hasDiff:m,readOnly:_,defaultValue:g,onChange:b,onLinkOpen:h,onDeclareConfigChange:T,onCursorPositionChange:P,onActionTrigger:B,onEditorDidMount:R}=a,N=O.useRef(null),W=O.useRef(null);O.useImperativeHandle(n,()=>({setOriginalScript(q){var U;(U=N.current)==null||U.setOriginalScript(q)},setScript(q){var U;(U=N.current)==null||U.setValue(q)},gotoLine(){var q;(q=N.current)==null||q.gotoLine()},getEditorLayout(){var q;return(q=N.current)==null?void 0:q.getEditorLayout()},setPosition(q,U){var j;(j=N.current)==null||j.setPosition({column:q,lineNumber:U})},setModelMarkers(q){var U;(U=N.current)==null||U.setModelMarkers(q)}})),O.useEffect(()=>{var q,U;m?(U=N.current)==null||U.addDiffDecorations():(q=N.current)==null||q.removeDiffDecorations()},[m]),O.useEffect(()=>{var q;(q=N.current)==null||q.updateActionTrigger(B)},[B]),O.useEffect(()=>{var q;h&&((q=N.current)==null||q.addLinkOpenFunc(h))},[h]);function V(q,U){var ae,ye,le;zt.initBuiltinsTrees(),Gs.setEditor(q),N.current=new rm(q,U,B),h&&((ae=N.current)==null||ae.addLinkOpenFunc(h)),m&&((ye=N.current)==null||ye.addDiffDecorations()),qd(q),(le=N.current)==null||le.setEditorLayout(Number(s));const j=q.getValue();N.current.onChangeCursorPosition(P),b&&b(j),!_&&G(j),R&&R()}const G=O.useCallback(async q=>{var ht;const U=Date.now(),{errors:j,functions:ae,methods:ye,types:le,variables:xt,overloadsFuncs:St,imports:$e,preParserCode:Be,enums:Q}=await Ao(q),ge=new Map(Object.entries(ae)),Ne=new Map(Object.entries(ye)),Pe=new Map(Object.entries(le)),ct=new Map(Object.entries(xt)),Et=new Map(Object.entries($e)),te=new Map(Object.entries(Q));Er.setUserDefined({functions:ge,methods:Ne,types:Pe,variables:ct,imports:Et,enums:te},St),zt.setUserDefind(ge,Pe,ct,Ne,te);const he=j.map(Ae=>({...Ae,severity:Ae.type||Ie.MarkerSeverity.Error}));if(_)return;try{if(!j.length&&Be){const Ae=await qo(Be,{isPreParser:!0});io.isEqual(Ae,Co)||(Co=Ae,T&&T(Ae))}}catch(Ae){console.log(Ae),j.push({message:Ae.message,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(ht=N.current)==null||ht.setModelMarkers(he);const Fe=Date.now();console.log((Fe-U)/1e3)},[T,_]),F=O.useMemo(()=>io.debounce(G,1500),[G]);function k(q){var U;if(_){G(q||"");return}Gs.clearInlayHints(),(U=N.current)==null||U.setModelMarkers([]),q!==void 0&&(b&&b(q),F(q))}return O.useEffect(()=>{const q=()=>{window.requestAnimationFrame(()=>{var ae,ye;const j=(ae=W.current)==null?void 0:ae.getBoundingClientRect();(ye=N.current)==null||ye.setEditorLayout((j==null?void 0:j.height)||0,j==null?void 0:j.width)})},U=new ResizeObserver(q);return W.current&&U.observe(W.current),()=>{W.current&&U.unobserve(W.current),U.disconnect()}},[]),L.jsx("div",{ref:W,children:L.jsx(gd,{height:s,width:o||"100%",defaultLanguage:Ee,defaultValue:g||`indicator("我的脚本")
144
+ */const _o=Symbol("Comlink.proxy"),sm=Symbol("Comlink.endpoint"),am=Symbol("Comlink.releaseProxy"),yn=Symbol("Comlink.finalizer"),Ys=Symbol("Comlink.thrown"),fo=a=>typeof a=="object"&&a!==null||typeof a=="function",nm={canHandle:a=>fo(a)&&a[_o],serialize(a){const{port1:n,port2:s}=new MessageChannel;return bo(a,n),[s,[s]]},deserialize(a){return a.start(),_n(a)}},im={canHandle:a=>fo(a)&&Ys in a,serialize({value:a}){let n;return a instanceof Error?n={isError:!0,value:{message:a.message,name:a.name,stack:a.stack}}:n={isError:!1,value:a},[n,[]]},deserialize(a){throw a.isError?Object.assign(new Error(a.value.message),a.value):a.value}},go=new Map([["proxy",nm],["throw",im]]);function om(a,n){for(const s of a)if(n===s||s==="*"||s instanceof RegExp&&s.test(n))return!0;return!1}function bo(a,n=globalThis,s=["*"]){n.addEventListener("message",function o(c){if(!c||!c.data)return;if(!om(s,c.origin)){console.warn(`Invalid origin '${c.origin}' for comlink proxy`);return}const{id:l,type:m,path:_}=Object.assign({path:[]},c.data),f=(c.data.argumentList||[]).map(br);let b;try{const h=_.slice(0,-1).reduce((P,B)=>P[B],a),T=_.reduce((P,B)=>P[B],a);switch(m){case"GET":b=T;break;case"SET":h[_.slice(-1)[0]]=br(c.data.value),b=!0;break;case"APPLY":b=T.apply(h,f);break;case"CONSTRUCT":{const P=new T(...f);b=gn(P)}break;case"ENDPOINT":{const{port1:P,port2:B}=new MessageChannel;bo(a,B),b=mm(P,[P])}break;case"RELEASE":b=void 0;break;default:return}}catch(h){b={value:h,[Ys]:0}}Promise.resolve(b).catch(h=>({value:h,[Ys]:0})).then(h=>{const[T,P]=ea(h);n.postMessage(Object.assign(Object.assign({},T),{id:l}),P),m==="RELEASE"&&(n.removeEventListener("message",o),xo(n),yn in a&&typeof a[yn]=="function"&&a[yn]())}).catch(h=>{const[T,P]=ea({value:new TypeError("Unserializable return value"),[Ys]:0});n.postMessage(Object.assign(Object.assign({},T),{id:l}),P)})}),n.start&&n.start()}function lm(a){return a.constructor.name==="MessagePort"}function xo(a){lm(a)&&a.close()}function _n(a,n){return fn(a,[],n)}function Qs(a){if(a)throw new Error("Proxy has been released and is not useable")}function ho(a){return Lr(a,{type:"RELEASE"}).then(()=>{xo(a)})}const Zs=new WeakMap,Js="FinalizationRegistry"in globalThis&&new FinalizationRegistry(a=>{const n=(Zs.get(a)||0)-1;Zs.set(a,n),n===0&&ho(a)});function cm(a,n){const s=(Zs.get(n)||0)+1;Zs.set(n,s),Js&&Js.register(a,n,a)}function pm(a){Js&&Js.unregister(a)}function fn(a,n=[],s=function(){}){let o=!1;const c=new Proxy(s,{get(l,m){if(Qs(o),m===am)return()=>{pm(c),ho(a),o=!0};if(m==="then"){if(n.length===0)return{then:()=>c};const _=Lr(a,{type:"GET",path:n.map(f=>f.toString())}).then(br);return _.then.bind(_)}return fn(a,[...n,m])},set(l,m,_){Qs(o);const[f,b]=ea(_);return Lr(a,{type:"SET",path:[...n,m].map(h=>h.toString()),value:f},b).then(br)},apply(l,m,_){Qs(o);const f=n[n.length-1];if(f===sm)return Lr(a,{type:"ENDPOINT"}).then(br);if(f==="bind")return fn(a,n.slice(0,-1));const[b,h]=wo(_);return Lr(a,{type:"APPLY",path:n.map(T=>T.toString()),argumentList:b},h).then(br)},construct(l,m){Qs(o);const[_,f]=wo(m);return Lr(a,{type:"CONSTRUCT",path:n.map(b=>b.toString()),argumentList:_},f).then(br)}});return cm(c,a),c}function dm(a){return Array.prototype.concat.apply([],a)}function wo(a){const n=a.map(ea);return[n.map(s=>s[0]),dm(n.map(s=>s[1]))]}const vo=new WeakMap;function mm(a,n){return vo.set(a,n),a}function gn(a){return Object.assign(a,{[_o]:!0})}function ea(a){for(const[n,s]of go)if(s.canHandle(a)){const[o,c]=s.serialize(a);return[{type:"HANDLER",name:n,value:o},c]}return[{type:"RAW",value:a},vo.get(a)||[]]}function br(a){switch(a.type){case"HANDLER":return go.get(a.name).deserialize(a.value);case"RAW":return a.value}}function Lr(a,n,s){return new Promise(o=>{const c=um();a.addEventListener("message",function l(m){!m.data||!m.data.id||m.data.id!==c||(a.removeEventListener("message",l),o(m.data))}),a.start&&a.start(),a.postMessage(Object.assign({id:c},n),s)})}function um(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const To=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-DTH9vYgp.js").href:new URL("assets/scriptsRunWorker-DTH9vYgp.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});To.onerror=a=>{console.error(a)};async function Do(a){return await Gs.setInlayHints(a)}const ko=_n(To),Io=_n(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-CEYO20yY.js").href:new URL("assets/parserTccWorker-CEYO20yY.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function Ao(a,n=!1){const{functions:s,types:o,constants:c,variables:l,methods:m}=lt;return await Io.parseTcc(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(c),variables:Object.fromEntries(l)})}async function ym(a,n){const{functions:s,types:o,constants:c,variables:l,methods:m}=lt;return await Io.parseLibraryCode(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(c),variables:Object.fromEntries(l)})}async function qo(a,n,s=!0){return await ko.runScript(a,n,s)}async function _m(a){return await ko.removeScript(a)}function fm(a){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:a==null?void 0:a.name})}self.MonacoEnvironment={getWorker(){return new fm({name:"Editor Worker"})}},sn.config({paths:{vs:"https://cdn.staticfile.net/monaco-editor/0.45.0/min/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}});let Co={};const gm=(a,n)=>{const{height:s,width:o,theme:c,options:l,hasDiff:m,readOnly:_,defaultValue:f,onChange:b,onLinkOpen:h,onDeclareConfigChange:T,onCursorPositionChange:P,onActionTrigger:B,onEditorDidMount:R}=a,N=O.useRef(null),H=O.useRef(null);O.useImperativeHandle(n,()=>({setOriginalScript(q){var U;(U=N.current)==null||U.setOriginalScript(q)},setScript(q){var U;(U=N.current)==null||U.setValue(q)},gotoLine(){var q;(q=N.current)==null||q.gotoLine()},getEditorLayout(){var q;return(q=N.current)==null?void 0:q.getEditorLayout()},setPosition(q,U){var j;(j=N.current)==null||j.setPosition({column:q,lineNumber:U})},setModelMarkers(q){var U;(U=N.current)==null||U.setModelMarkers(q)}})),O.useEffect(()=>{var q,U;m?(U=N.current)==null||U.addDiffDecorations():(q=N.current)==null||q.removeDiffDecorations()},[m]),O.useEffect(()=>{var q;(q=N.current)==null||q.updateActionTrigger(B)},[B]),O.useEffect(()=>{var q;h&&((q=N.current)==null||q.addLinkOpenFunc(h))},[h]);function V(q,U){var ae,ye,le;zt.initBuiltinsTrees(),Gs.setEditor(q),N.current=new rm(q,U,B),h&&((ae=N.current)==null||ae.addLinkOpenFunc(h)),m&&((ye=N.current)==null||ye.addDiffDecorations()),qd(q),(le=N.current)==null||le.setEditorLayout(Number(s));const j=q.getValue();N.current.onChangeCursorPosition(P),b&&b(j),!_&&G(j),R&&R()}const G=O.useCallback(async q=>{var ht;const U=Date.now(),{errors:j,functions:ae,methods:ye,types:le,variables:xt,overloadsFuncs:St,imports:$e,preParserCode:Be,enums:Q}=await Ao(q),ge=new Map(Object.entries(ae)),Ne=new Map(Object.entries(ye)),Pe=new Map(Object.entries(le)),ct=new Map(Object.entries(xt)),Et=new Map(Object.entries($e)),te=new Map(Object.entries(Q));gr.setUserDefined({functions:ge,methods:Ne,types:Pe,variables:ct,imports:Et,enums:te},St),zt.setUserDefind(ge,Pe,ct,Ne,te);const he=j.map(Ae=>({...Ae,severity:Ae.type||Ie.MarkerSeverity.Error}));if(_)return;try{if(!j.length&&Be){const Ae=await qo(Be,{isPreParser:!0});io.isEqual(Ae,Co)||(Co=Ae,T&&T(Ae))}}catch(Ae){console.log(Ae),j.push({message:Ae.message,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(ht=N.current)==null||ht.setModelMarkers(he);const Fe=Date.now();console.log((Fe-U)/1e3)},[T,_]),F=O.useMemo(()=>io.debounce(G,1500),[G]);function k(q){var U;if(_){G(q||"");return}Gs.clearInlayHints(),(U=N.current)==null||U.setModelMarkers([]),q!==void 0&&(b&&b(q),F(q))}return O.useEffect(()=>{const q=()=>{window.requestAnimationFrame(()=>{var ae,ye;const j=(ae=H.current)==null?void 0:ae.getBoundingClientRect();(ye=N.current)==null||ye.setEditorLayout((j==null?void 0:j.height)||0,j==null?void 0:j.width)})},U=new ResizeObserver(q);return H.current&&U.observe(H.current),()=>{H.current&&U.unobserve(H.current),U.disconnect()}},[]),L.jsx("div",{ref:H,children:L.jsx(gd,{height:s,width:o||"100%",defaultLanguage:Ee,defaultValue:f||`indicator("我的脚本")
145
145
  plot(close)
146
- `,theme:l||"vs-dark",className:`tvue-script ${l||"vs-dark"}`,options:{colorDecorators:!0,useShadowDOM:!1,matchOnWordStartOnly:!0,automaticLayout:!1,suggest:{filterGraceful:!0},fontSize:13,..._?Pd:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...c},onMount:V,onChange:k})})},bm=O.forwardRef(gm),xm=a=>{const{theme:n,modified:s,original:o,height:l,width:c,renderSideBySide:m=!0}=a,_=O.useCallback((g,b)=>{b.languages.register({id:Ee}),b.editor.defineTheme("vs-dark",cn),b.editor.defineTheme("vs",ln),b.languages.setMonarchTokensProvider(Ee,Nr),b.languages.setLanguageConfiguration(Ee,on)},[]);return L.jsx(md,{height:l||"90vh",width:c||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:m,scrollBeyondLastLine:!1},language:Ee,modified:s,original:o,onMount:_})};A.VMarkerSeverity=void 0,function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"}(A.VMarkerSeverity||(A.VMarkerSeverity={}));var ta={},hm=function(){var a=document.getSelection();if(!a.rangeCount)return function(){};for(var n=document.activeElement,s=[],o=0;o<a.rangeCount;o++)s.push(a.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return a.removeAllRanges(),function(){a.type==="Caret"&&a.removeAllRanges(),a.rangeCount||s.forEach(function(l){a.addRange(l)}),n&&n.focus()}},wm=hm,zo={"text/plain":"Text","text/html":"Url",default:"Text"},vm="Copy to clipboard: #{key}, Enter";function Tm(a){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,n)}function Dm(a,n){var s,o,l,c,m,_,g=!1;n||(n={}),s=n.debug||!1;try{l=wm(),c=document.createRange(),m=document.getSelection(),_=document.createElement("span"),_.textContent=a,_.ariaHidden="true",_.style.all="unset",_.style.position="fixed",_.style.top=0,_.style.clip="rect(0, 0, 0, 0)",_.style.whiteSpace="pre",_.style.webkitUserSelect="text",_.style.MozUserSelect="text",_.style.msUserSelect="text",_.style.userSelect="text",_.addEventListener("copy",function(h){if(h.stopPropagation(),n.format)if(h.preventDefault(),typeof h.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=zo[n.format]||zo.default;window.clipboardData.setData(T,a)}else h.clipboardData.clearData(),h.clipboardData.setData(n.format,a);n.onCopy&&(h.preventDefault(),n.onCopy(h.clipboardData))}),document.body.appendChild(_),c.selectNodeContents(_),m.addRange(c);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");g=!0}catch(h){s&&console.error("unable to copy using execCommand: ",h),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",a),n.onCopy&&n.onCopy(window.clipboardData),g=!0}catch(T){s&&console.error("unable to copy using clipboardData: ",T),s&&console.error("falling back to prompt"),o=Tm("message"in n?n.message:vm),window.prompt(o,a)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(c):m.removeAllRanges()),_&&document.body.removeChild(_),l()}return g}var km=Dm;function bn(a){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bn(a)}Object.defineProperty(ta,"__esModule",{value:!0}),ta.CopyToClipboard=void 0;var ra=So(O),Im=So(km),Am=["text","onCopy","options","children"];function So(a){return a&&a.__esModule?a:{default:a}}function Eo(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,o)}return s}function No(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Eo(Object(s),!0).forEach(function(o){hn(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Eo(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function qm(a,n){if(a==null)return{};var s=Cm(a,n),o,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);for(l=0;l<c.length;l++)o=c[l],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function Cm(a,n){if(a==null)return{};var s={},o=Object.keys(a),l,c;for(c=0;c<o.length;c++)l=o[c],!(n.indexOf(l)>=0)&&(s[l]=a[l]);return s}function zm(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function Lo(a,n){for(var s=0;s<n.length;s++){var o=n[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}function Sm(a,n,s){return n&&Lo(a.prototype,n),s&&Lo(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function Em(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(n&&n.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),n&&xn(a,n)}function xn(a,n){return xn=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o},xn(a,n)}function Nm(a){var n=Mm();return function(){var o=sa(a),l;if(n){var c=sa(this).constructor;l=Reflect.construct(o,arguments,c)}else l=o.apply(this,arguments);return Lm(this,l)}}function Lm(a,n){if(n&&(bn(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mo(a)}function Mo(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Mm(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sa(a){return sa=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},sa(a)}function hn(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}var Po=function(a){Em(s,a);var n=Nm(s);function s(){var o;zm(this,s);for(var l=arguments.length,c=new Array(l),m=0;m<l;m++)c[m]=arguments[m];return o=n.call.apply(n,[this].concat(c)),hn(Mo(o),"onClick",function(_){var g=o.props,b=g.text,h=g.onCopy,T=g.children,P=g.options,B=ra.default.Children.only(T),R=(0,Im.default)(b,P);h&&h(b,R),B&&B.props&&typeof B.props.onClick=="function"&&B.props.onClick(_)}),o}return Sm(s,[{key:"render",value:function(){var l=this.props;l.text,l.onCopy,l.options;var c=l.children,m=qm(l,Am),_=ra.default.Children.only(c);return ra.default.cloneElement(_,No(No({},m),{},{onClick:this.onClick}))}}]),s}(ra.default.PureComponent);ta.CopyToClipboard=Po,hn(Po,"defaultProps",{onCopy:void 0,options:void 0});var Pm=ta,wn=Pm.CopyToClipboard;wn.CopyToClipboard=wn;var Om=wn;const vn=cp(Om);async function Rm(a,n=0){const s=a[n];if(!s)return;const{name:o,args:l,type:c,desc:m,examples:_,remarks:g,seeAlso:b,syntax:h,detailedDesc:T,fields:P,returns:B}=s,R={name:o};if(a.length>1&&(R.overloads=`${a.length} overloads`),c&&(R.type=c),l&&(R.name=`${o}()`,R.args=l.map(N=>{const{name:W,desc:V,displayType:G}=N;return{label:`${W} (${G})`,desc:V&&br(V)}})),m&&(R.desc=m.map(N=>br(N))),_&&(R.originalExample=_.join(`
147
- `),R.examples=await Ie.editor.colorize(R.originalExample,Ee,{tabSize:4})),T){R.detailedDesc=[];for(const N of T){const{desc:W,examples:V}=N;let G=W.map(q=>br(q)),F,k;V&&(k=V.join(`
148
- `),F=await Ie.editor.colorize(k,Ee,{tabSize:4})),R.detailedDesc.push({desc:G,examples:F,originalExample:k})}}return B&&(R.returns=B.map(N=>br(N))),g&&(R.remarks=typeof g=="string"?[br(g)]:g.map(N=>br(N))),h&&(R.syntax=a.map(N=>{var W;return(W=N.syntax)==null?void 0:W[0]})),P&&(R.fields=P.map(N=>{const{name:W,desc:V,type:G}=N;return{label:`${W} (${G})`,desc:V&&br(V)}})),b&&(R.seeAlso=b.map(N=>Fm(N))),R}function Fm(a){const s=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(a);if(s){const[o,l,c]=s;return{name:l,link:c}}}function br(a){const n=/\*\*([^\*]+)\*\*/g,s=/\`([^\`]+)\`/g,o=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return a.replace(n,(l,c)=>`<strong>${c}</strong>`).replace(s,(l,c)=>`<code>${c}</code>`).replace(o,(l,c,m)=>`<a ${m.startsWith("#")?`data-name="${c}"`:'target="_blank"'} class="manual-content-text-link" href="${m}">${c}</a>`)}function Bm(a){var o;const n=[],s=[];for(const l of ps){for(let c of no[l.key].sort()){if(ao.includes(c))continue;let m=c;l.prefix==="fun"&&(m=`${c}()`),m.includes(a)&&(m.startsWith(a)?n.unshift({label:m,group:l,key:`${l.prefix}_${c}`}):n.push({label:m,group:l,key:`${l.prefix}_${c}`}))}for(const[c,m]of lt[l.key])for(const _ of m){const{name:g,args:b,type:h,desc:T,examples:P,remarks:B,seeAlso:R,syntax:N,detailedDesc:W,fields:V,returns:G}=_,F={label:g,group:l,key:`${l.prefix}_${g}`};if(l.prefix==="fun"&&(F.label=`${g}()`),F.label.includes(a))break;if(b){let k=!1;for(const q of b){const{name:U,desc:j,displayType:ae}=q;if(U.includes(a)||j!=null&&j.includes(a)||ae!=null&&ae.includes(a)){s.push(F),k=!0;break}}if(k)break}if(h&&h.includes(a)){s.push(F);break}if(T){let k=!1;for(const q of T)if(q.includes(a)){s.push(F),k=!0;break}if(k)break}if(P){let k=!1;for(const q of P)if(q.includes(a)){s.push(F),k=!0;break}if(k)break}if(B&&(typeof B=="string"?B:B.join(`
149
- `)).includes(a)){s.push(F);break}if(R){let k=!1;for(const q of R)if(q.includes(a)){s.push(F),k=!0;break}if(k)break}if(N){let k=!1;for(const q of N)if(q.includes(a)){s.push(F),k=!0;break}if(k)break}if(W){let k=!1;for(const q of W){const{desc:U,examples:j}=q;if(U.join(`
146
+ `,theme:c||"vs-dark",className:`tvue-script ${c||"vs-dark"}`,options:{colorDecorators:!0,useShadowDOM:!1,matchOnWordStartOnly:!0,automaticLayout:!1,suggest:{filterGraceful:!0},fontSize:13,..._?Pd:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...l},onMount:V,onChange:k})})},bm=O.forwardRef(gm),xm=a=>{const{theme:n,modified:s,original:o,height:c,width:l,renderSideBySide:m=!0}=a,_=O.useCallback((f,b)=>{b.languages.register({id:Ee}),b.editor.defineTheme("vs-dark",cn),b.editor.defineTheme("vs",ln),b.languages.setMonarchTokensProvider(Ee,Nr),b.languages.setLanguageConfiguration(Ee,on)},[]);return L.jsx(md,{height:c||"90vh",width:l||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:m,scrollBeyondLastLine:!1},language:Ee,modified:s,original:o,onMount:_})};A.VMarkerSeverity=void 0,function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"}(A.VMarkerSeverity||(A.VMarkerSeverity={}));var ta={},hm=function(){var a=document.getSelection();if(!a.rangeCount)return function(){};for(var n=document.activeElement,s=[],o=0;o<a.rangeCount;o++)s.push(a.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return a.removeAllRanges(),function(){a.type==="Caret"&&a.removeAllRanges(),a.rangeCount||s.forEach(function(c){a.addRange(c)}),n&&n.focus()}},wm=hm,zo={"text/plain":"Text","text/html":"Url",default:"Text"},vm="Copy to clipboard: #{key}, Enter";function Tm(a){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,n)}function Dm(a,n){var s,o,c,l,m,_,f=!1;n||(n={}),s=n.debug||!1;try{c=wm(),l=document.createRange(),m=document.getSelection(),_=document.createElement("span"),_.textContent=a,_.ariaHidden="true",_.style.all="unset",_.style.position="fixed",_.style.top=0,_.style.clip="rect(0, 0, 0, 0)",_.style.whiteSpace="pre",_.style.webkitUserSelect="text",_.style.MozUserSelect="text",_.style.msUserSelect="text",_.style.userSelect="text",_.addEventListener("copy",function(h){if(h.stopPropagation(),n.format)if(h.preventDefault(),typeof h.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=zo[n.format]||zo.default;window.clipboardData.setData(T,a)}else h.clipboardData.clearData(),h.clipboardData.setData(n.format,a);n.onCopy&&(h.preventDefault(),n.onCopy(h.clipboardData))}),document.body.appendChild(_),l.selectNodeContents(_),m.addRange(l);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");f=!0}catch(h){s&&console.error("unable to copy using execCommand: ",h),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",a),n.onCopy&&n.onCopy(window.clipboardData),f=!0}catch(T){s&&console.error("unable to copy using clipboardData: ",T),s&&console.error("falling back to prompt"),o=Tm("message"in n?n.message:vm),window.prompt(o,a)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(l):m.removeAllRanges()),_&&document.body.removeChild(_),c()}return f}var km=Dm;function bn(a){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bn(a)}Object.defineProperty(ta,"__esModule",{value:!0}),ta.CopyToClipboard=void 0;var ra=So(O),Im=So(km),Am=["text","onCopy","options","children"];function So(a){return a&&a.__esModule?a:{default:a}}function Eo(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable})),s.push.apply(s,o)}return s}function No(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Eo(Object(s),!0).forEach(function(o){hn(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Eo(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function qm(a,n){if(a==null)return{};var s=Cm(a,n),o,c;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);for(c=0;c<l.length;c++)o=l[c],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function Cm(a,n){if(a==null)return{};var s={},o=Object.keys(a),c,l;for(l=0;l<o.length;l++)c=o[l],!(n.indexOf(c)>=0)&&(s[c]=a[c]);return s}function zm(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function Lo(a,n){for(var s=0;s<n.length;s++){var o=n[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}function Sm(a,n,s){return n&&Lo(a.prototype,n),s&&Lo(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function Em(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(n&&n.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),n&&xn(a,n)}function xn(a,n){return xn=Object.setPrototypeOf||function(o,c){return o.__proto__=c,o},xn(a,n)}function Nm(a){var n=Mm();return function(){var o=sa(a),c;if(n){var l=sa(this).constructor;c=Reflect.construct(o,arguments,l)}else c=o.apply(this,arguments);return Lm(this,c)}}function Lm(a,n){if(n&&(bn(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mo(a)}function Mo(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Mm(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sa(a){return sa=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},sa(a)}function hn(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}var Po=function(a){Em(s,a);var n=Nm(s);function s(){var o;zm(this,s);for(var c=arguments.length,l=new Array(c),m=0;m<c;m++)l[m]=arguments[m];return o=n.call.apply(n,[this].concat(l)),hn(Mo(o),"onClick",function(_){var f=o.props,b=f.text,h=f.onCopy,T=f.children,P=f.options,B=ra.default.Children.only(T),R=(0,Im.default)(b,P);h&&h(b,R),B&&B.props&&typeof B.props.onClick=="function"&&B.props.onClick(_)}),o}return Sm(s,[{key:"render",value:function(){var c=this.props;c.text,c.onCopy,c.options;var l=c.children,m=qm(c,Am),_=ra.default.Children.only(l);return ra.default.cloneElement(_,No(No({},m),{},{onClick:this.onClick}))}}]),s}(ra.default.PureComponent);ta.CopyToClipboard=Po,hn(Po,"defaultProps",{onCopy:void 0,options:void 0});var Pm=ta,wn=Pm.CopyToClipboard;wn.CopyToClipboard=wn;var Om=wn;const vn=cp(Om);async function Rm(a,n=0){const s=a[n];if(!s)return;const{name:o,args:c,type:l,desc:m,examples:_,remarks:f,seeAlso:b,syntax:h,detailedDesc:T,fields:P,returns:B}=s,R={name:o};if(a.length>1&&(R.overloads=`${a.length} overloads`),l&&(R.type=l),c&&(R.name=`${o}()`,R.args=c.map(N=>{const{name:H,desc:V,displayType:G}=N;return{label:`${H} (${G})`,desc:V&&xr(V)}})),m&&(R.desc=m.map(N=>xr(N))),_&&(R.originalExample=_.join(`
147
+ `),R.examples=await Ie.editor.colorize(R.originalExample,Ee,{tabSize:4})),T){R.detailedDesc=[];for(const N of T){const{desc:H,examples:V}=N;let G=H.map(q=>xr(q)),F,k;V&&(k=V.join(`
148
+ `),F=await Ie.editor.colorize(k,Ee,{tabSize:4})),R.detailedDesc.push({desc:G,examples:F,originalExample:k})}}return B&&(R.returns=B.map(N=>xr(N))),f&&(R.remarks=typeof f=="string"?[xr(f)]:f.map(N=>xr(N))),h&&(R.syntax=a.map(N=>{var H;return(H=N.syntax)==null?void 0:H[0]})),P&&(R.fields=P.map(N=>{const{name:H,desc:V,type:G}=N;return{label:`${H} (${G})`,desc:V&&xr(V)}})),b&&(R.seeAlso=b.map(N=>Fm(N))),R}function Fm(a){const s=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(a);if(s){const[o,c,l]=s;return{name:c,link:l}}}function xr(a){const n=/\*\*([^\*]+)\*\*/g,s=/\`([^\`]+)\`/g,o=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return a.replace(n,(c,l)=>`<strong>${l}</strong>`).replace(s,(c,l)=>`<code>${l}</code>`).replace(o,(c,l,m)=>`<a ${m.startsWith("#")?`data-name="${l}"`:'target="_blank"'} class="manual-content-text-link" href="${m}">${l}</a>`)}function Bm(a){var o;const n=[],s=[];for(const c of ps){for(let l of no[c.key].sort()){if(ao.includes(l))continue;let m=l;c.prefix==="fun"&&(m=`${l}()`),m.includes(a)&&(m.startsWith(a)?n.unshift({label:m,group:c,key:`${c.prefix}_${l}`}):n.push({label:m,group:c,key:`${c.prefix}_${l}`}))}for(const[l,m]of lt[c.key])for(const _ of m){const{name:f,args:b,type:h,desc:T,examples:P,remarks:B,seeAlso:R,syntax:N,detailedDesc:H,fields:V,returns:G}=_,F={label:f,group:c,key:`${c.prefix}_${f}`};if(c.prefix==="fun"&&(F.label=`${f}()`),F.label.includes(a))break;if(b){let k=!1;for(const q of b){const{name:U,desc:j,displayType:ae}=q;if(U.includes(a)||j!=null&&j.includes(a)||ae!=null&&ae.includes(a)){s.push(F),k=!0;break}}if(k)break}if(h&&h.includes(a)){s.push(F);break}if(T){let k=!1;for(const q of T)if(q.includes(a)){s.push(F),k=!0;break}if(k)break}if(P){let k=!1;for(const q of P)if(q.includes(a)){s.push(F),k=!0;break}if(k)break}if(B&&(typeof B=="string"?B:B.join(`
149
+ `)).includes(a)){s.push(F);break}if(R){let k=!1;for(const q of R)if(q.includes(a)){s.push(F),k=!0;break}if(k)break}if(N){let k=!1;for(const q of N)if(q.includes(a)){s.push(F),k=!0;break}if(k)break}if(H){let k=!1;for(const q of H){const{desc:U,examples:j}=q;if(U.join(`
150
150
  `).includes(a)){s.push(F),k=!0;break}if((o=j==null?void 0:j.join(`
151
- `))!=null&&o.includes(a)){s.push(F),k=!0;break}}if(k)break}if(V){let k=!1;for(const q of V){const{name:U,desc:j,type:ae}=q;if(U.includes(a)||j!=null&&j.includes(a)||ae!=null&&ae.includes(a)){s.push(F),k=!0;break}}if(k)break}if(G){let k=!1;for(const q of G)if(q.includes(a)){s.push(F),k=!0;break}if(k)break}}}return{labelList:n,contentList:s}}const Um=a=>{var G;const{group:n,itemKey:s,onItemClick:o,currentIndex:l}=a,[c,m]=O.useState(),[_,g]=O.useState(0),[b,h]=O.useState("Copy code"),[T,P]=O.useState("Copy link");O.useEffect(()=>{B(l)},[s]);const B=F=>{const k=s.replace(`${n==null?void 0:n.prefix}_`,""),q=lt[n==null?void 0:n.key].get(k);g(F),q&&Rm(q,F).then(U=>{m(U)})},R=F=>{B(F)},N=F=>{var k,q;if(F.target.localName==="a"&&F.target.hash&&((q=(k=F.target)==null?void 0:k.dataset)!=null&&q.name)){F.preventDefault();const{hash:U}=F.target;o(U.replace("#",""))}},W=()=>{h("Copied"),setTimeout(()=>{h("Copy code")},1e3)},V=()=>{P("Link copied"),setTimeout(()=>{P("Copy link")},3e3)};return L.jsx("div",{onClick:N,id:`#${s}`,children:L.jsxs("div",{className:"manual-content-wrapper",children:[L.jsxs("div",{className:"manual-content-header",children:[L.jsxs("div",{children:[L.jsx("h3",{className:"manual-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&L.jsx("span",{className:"manual-content-header-overloads",children:c==null?void 0:c.overloads})]}),L.jsx(vn,{text:(c==null?void 0:c.name)||"",onCopy:V,children:L.jsx("div",{"data-tooltip":T,className:"manual-content-btn",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:L.jsxs("g",{fill:"currentColor",children:[L.jsx("path",{fillRule:"nonzero",d:"M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"}),L.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(G=c==null?void 0:c.desc)==null?void 0:G.map((F,k)=>L.jsx("div",{dangerouslySetInnerHTML:{__html:F},className:"manual-content-text"},k)),(c==null?void 0:c.type)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"type"}),L.jsx("div",{className:"manual-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&L.jsxs(O.Fragment,{children:[L.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(c!=null&&c.overloads)&&"& Overloads"]}),c.syntax.map((F,k)=>{var q;return(((q=c.syntax)==null?void 0:q.length)||0)>1?L.jsx("div",{onClick:()=>R(k),children:L.jsx("pre",{className:`manual-content-syntax with-overloads ${k===_?"selected":""}`,children:F})},k):L.jsx("pre",{className:"manual-content-syntax",children:F},k)})]}),(c==null?void 0:c.args)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),c.args.map((F,k)=>L.jsxs("div",{className:"manual-content-text",children:[L.jsx("span",{className:"manual-content-args-label",children:F.label})," ",L.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},k))]}),(c==null?void 0:c.fields)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"fields"}),c.fields.map((F,k)=>L.jsxs("div",{className:"manual-content-text",children:[L.jsx("span",{className:"manual-content-args-label",children:F.label})," ",L.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},k))]}),(c==null?void 0:c.examples)&&L.jsxs(O.Fragment,{children:[L.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[L.jsx("div",{children:L.jsx("span",{children:"example"})}),L.jsx(vn,{text:c.originalExample||"",onCopy:W,children:L.jsx("div",{"data-tooltip":b,className:"manual-content-btn manual-content-example-copy",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:L.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),L.jsx("pre",{className:"manual-content-example",children:L.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((F,k)=>L.jsxs(O.Fragment,{children:[F.desc.map((q,U)=>L.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:q}},U)),L.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[L.jsx("div",{children:L.jsx("span",{children:"example"})}),L.jsx(vn,{text:F.originalExample||"",onCopy:W,children:L.jsx("div",{"data-tooltip":b,className:"manual-content-btn manual-content-example-copy",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:L.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),L.jsx("pre",{className:"manual-content-example",children:L.jsx("code",{dangerouslySetInnerHTML:{__html:F.examples||""}})})]},k)),(c==null?void 0:c.returns)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"returns"}),c.returns.map((F,k)=>L.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},k))]}),(c==null?void 0:c.remarks)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),c.remarks.map((F,k)=>L.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},k))]}),(c==null?void 0:c.seeAlso)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),L.jsx("div",{className:"manual-content-see_also",children:c.seeAlso.map((F,k)=>L.jsx("a",{className:"manual-content-see_also-tag","data-name":F==null?void 0:F.name,href:F==null?void 0:F.link,children:F==null?void 0:F.name},k))})]})]})})};Ie.languages.register({id:Ee}),Ie.editor.defineTheme("vs-dark",cn),Ie.editor.defineTheme("vs",ln),Ie.languages.setMonarchTokensProvider(Ee,Nr),Ie.languages.setLanguageConfiguration(Ee,on);const Km=({theme:a="vs-dark",currentValue:n})=>{const[s,o]=O.useState(ps[0]),[l,c]=O.useState(null),[m,_]=O.useState(0),[g,b]=O.useState(""),[h,T]=O.useState("var_bar_index"),P=O.useRef(null),B=O.useRef(null),R=k=>{k.key===(s==null?void 0:s.key)&&!(s!=null&&s.isHidden)?o({...k,isHidden:!0}):o(k)};O.useEffect(()=>{Ie.editor.setTheme(a)},[a]),O.useEffect(()=>{if(n.value){const[k]=n.value.split("_"),q=ps.find(U=>k===U.prefix);q&&(_(n.index||0),G(q,n.value))}},[n]);const N=(k,q)=>{var U;k!==h&&(q&&o(q),_(0),T(k),(U=B.current)==null||U.scrollTo({top:0}))},W=k=>{if(k.target.value.trim()==="")V();else{b(k.target.value);const q=Bm(k.target.value);c(q)}},V=()=>{b(""),c(null),setTimeout(()=>{var k,q;(q=(k=P.current)==null?void 0:k.querySelector(`a[data-href="${h}"]`))==null||q.scrollIntoView(!0)},10)},G=(k,q)=>{var U;o(k),T(q),setTimeout(()=>{var j,ae;(ae=(j=P.current)==null?void 0:j.querySelector(`a[data-href="${q}"]`))==null||ae.scrollIntoView(!0)},10),(U=B.current)==null||U.scrollTo({top:0})},F=k=>{const q=ps.find(U=>k.startsWith(U.prefix));q&&(_(0),G(q,k))};return L.jsxs("div",{className:`${a} manual-warpper`,children:[L.jsxs("div",{className:"manual-left",children:[L.jsxs("div",{className:"manual-search",children:[L.jsx("span",{className:"manual-search-icon",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:L.jsx("path",{fillRule:"evenodd",d:"M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z"})})}),L.jsx("input",{onChange:W,spellCheck:"false",value:g,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),L.jsx("span",{onClick:V,className:`manual-search-clear ${g?"":"hide"}`,children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:L.jsx("path",{d:"M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z"})})})]}),L.jsx("div",{className:`manual-group-search-list manual-scroll ${g?"":"hide"}`,children:L.jsxs("div",{children:[l==null?void 0:l.labelList.map(k=>L.jsx("a",{onClick:q=>{q.preventDefault(),N(k.key,k.group)},className:`manual-group-body-item ${k.key===h?"manual-group-body-item-selected":""}`,"data-href":k.key,href:`#${k.key}`,children:k.label},`search_${k.key}`)),L.jsx("div",{className:"manual-content-separator"}),l==null?void 0:l.contentList.map(k=>L.jsx("a",{onClick:q=>{q.preventDefault(),N(k.key,k.group)},className:`manual-group-body-item ${k.key===h?"manual-group-body-item-selected":""}`,"data-href":k.key,href:`#${k.key}`,children:k.label},`search_${k.key}`))]})}),L.jsx("div",{className:`manual-group-list manual-scroll ${g?"hide":""}`,ref:P,children:ps.map(k=>{var q,U;return L.jsxs(O.Fragment,{children:[L.jsx("div",{onClick:()=>R(k),className:`manual-group-title ${k.key===(s==null?void 0:s.key)&&!(s!=null&&s.isHidden)?"active":""}`,children:k.title}),L.jsx("div",{className:`manual-group-body manual-scroll ${k.key!==(s==null?void 0:s.key)||s!=null&&s.isHidden?"hide":""}`,children:(U=(q=no[k.key])==null?void 0:q.sort().filter(j=>!ao.includes(j)))==null?void 0:U.map(j=>{const ae=`${k.prefix}_${j}`;return L.jsx("a",{onClick:ye=>{ye.preventDefault(),N(ae)},className:`manual-group-body-item ${ae===h?"manual-group-body-item-selected":""}`,"data-href":ae,href:`#${ae}`,children:`${j}${k.prefix==="fun"?"()":""}`},ae)})})]},k.key)})})]}),L.jsx("div",{ref:B,className:"manual-right manual-scroll",children:L.jsx(Um,{currentIndex:m,group:s,itemKey:h,onItemClick:F})})]})};A.ReferenceManual=Km,A.TradingVueDiffEditor=xm,A.TradingVueEditor=bm,A.parseLibrary=ym,A.parseTcc=Ao,A.removeScript=_m,A.scriptsRun=qo,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
151
+ `))!=null&&o.includes(a)){s.push(F),k=!0;break}}if(k)break}if(V){let k=!1;for(const q of V){const{name:U,desc:j,type:ae}=q;if(U.includes(a)||j!=null&&j.includes(a)||ae!=null&&ae.includes(a)){s.push(F),k=!0;break}}if(k)break}if(G){let k=!1;for(const q of G)if(q.includes(a)){s.push(F),k=!0;break}if(k)break}}}return{labelList:n,contentList:s}}const Um=a=>{var G;const{group:n,itemKey:s,onItemClick:o,currentIndex:c}=a,[l,m]=O.useState(),[_,f]=O.useState(0),[b,h]=O.useState("Copy code"),[T,P]=O.useState("Copy link");O.useEffect(()=>{B(c)},[s]);const B=F=>{const k=s.replace(`${n==null?void 0:n.prefix}_`,""),q=lt[n==null?void 0:n.key].get(k);f(F),q&&Rm(q,F).then(U=>{m(U)})},R=F=>{B(F)},N=F=>{var k,q;if(F.target.localName==="a"&&F.target.hash&&((q=(k=F.target)==null?void 0:k.dataset)!=null&&q.name)){F.preventDefault();const{hash:U}=F.target;o(U.replace("#",""))}},H=()=>{h("Copied"),setTimeout(()=>{h("Copy code")},1e3)},V=()=>{P("Link copied"),setTimeout(()=>{P("Copy link")},3e3)};return L.jsx("div",{onClick:N,id:`#${s}`,children:L.jsxs("div",{className:"manual-content-wrapper",children:[L.jsxs("div",{className:"manual-content-header",children:[L.jsxs("div",{children:[L.jsx("h3",{className:"manual-content-header-title",children:l==null?void 0:l.name}),!!(l!=null&&l.overloads)&&L.jsx("span",{className:"manual-content-header-overloads",children:l==null?void 0:l.overloads})]}),L.jsx(vn,{text:(l==null?void 0:l.name)||"",onCopy:V,children:L.jsx("div",{"data-tooltip":T,className:"manual-content-btn",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:L.jsxs("g",{fill:"currentColor",children:[L.jsx("path",{fillRule:"nonzero",d:"M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"}),L.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(G=l==null?void 0:l.desc)==null?void 0:G.map((F,k)=>L.jsx("div",{dangerouslySetInnerHTML:{__html:F},className:"manual-content-text"},k)),(l==null?void 0:l.type)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"type"}),L.jsx("div",{className:"manual-content-text",children:l.type})]}),(l==null?void 0:l.syntax)&&L.jsxs(O.Fragment,{children:[L.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(l!=null&&l.overloads)&&"& Overloads"]}),l.syntax.map((F,k)=>{var q;return(((q=l.syntax)==null?void 0:q.length)||0)>1?L.jsx("div",{onClick:()=>R(k),children:L.jsx("pre",{className:`manual-content-syntax with-overloads ${k===_?"selected":""}`,children:F})},k):L.jsx("pre",{className:"manual-content-syntax",children:F},k)})]}),(l==null?void 0:l.args)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),l.args.map((F,k)=>L.jsxs("div",{className:"manual-content-text",children:[L.jsx("span",{className:"manual-content-args-label",children:F.label})," ",L.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},k))]}),(l==null?void 0:l.fields)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"fields"}),l.fields.map((F,k)=>L.jsxs("div",{className:"manual-content-text",children:[L.jsx("span",{className:"manual-content-args-label",children:F.label})," ",L.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},k))]}),(l==null?void 0:l.examples)&&L.jsxs(O.Fragment,{children:[L.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[L.jsx("div",{children:L.jsx("span",{children:"example"})}),L.jsx(vn,{text:l.originalExample||"",onCopy:H,children:L.jsx("div",{"data-tooltip":b,className:"manual-content-btn manual-content-example-copy",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:L.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),L.jsx("pre",{className:"manual-content-example",children:L.jsx("code",{dangerouslySetInnerHTML:{__html:l.examples}})})]}),(l==null?void 0:l.detailedDesc)&&l.detailedDesc.map((F,k)=>L.jsxs(O.Fragment,{children:[F.desc.map((q,U)=>L.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:q}},U)),L.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[L.jsx("div",{children:L.jsx("span",{children:"example"})}),L.jsx(vn,{text:F.originalExample||"",onCopy:H,children:L.jsx("div",{"data-tooltip":b,className:"manual-content-btn manual-content-example-copy",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:L.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),L.jsx("pre",{className:"manual-content-example",children:L.jsx("code",{dangerouslySetInnerHTML:{__html:F.examples||""}})})]},k)),(l==null?void 0:l.returns)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"returns"}),l.returns.map((F,k)=>L.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},k))]}),(l==null?void 0:l.remarks)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),l.remarks.map((F,k)=>L.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},k))]}),(l==null?void 0:l.seeAlso)&&L.jsxs(O.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),L.jsx("div",{className:"manual-content-see_also",children:l.seeAlso.map((F,k)=>L.jsx("a",{className:"manual-content-see_also-tag","data-name":F==null?void 0:F.name,href:F==null?void 0:F.link,children:F==null?void 0:F.name},k))})]})]})})};Ie.languages.register({id:Ee}),Ie.editor.defineTheme("vs-dark",cn),Ie.editor.defineTheme("vs",ln),Ie.languages.setMonarchTokensProvider(Ee,Nr),Ie.languages.setLanguageConfiguration(Ee,on);const Km=({theme:a="vs-dark",currentValue:n})=>{const[s,o]=O.useState(ps[0]),[c,l]=O.useState(null),[m,_]=O.useState(0),[f,b]=O.useState(""),[h,T]=O.useState("var_bar_index"),P=O.useRef(null),B=O.useRef(null),R=k=>{k.key===(s==null?void 0:s.key)&&!(s!=null&&s.isHidden)?o({...k,isHidden:!0}):o(k)};O.useEffect(()=>{Ie.editor.setTheme(a)},[a]),O.useEffect(()=>{if(n.value){const[k]=n.value.split("_"),q=ps.find(U=>k===U.prefix);q&&(_(n.index||0),G(q,n.value))}},[n]);const N=(k,q)=>{var U;k!==h&&(q&&o(q),_(0),T(k),(U=B.current)==null||U.scrollTo({top:0}))},H=k=>{if(k.target.value.trim()==="")V();else{b(k.target.value);const q=Bm(k.target.value);l(q)}},V=()=>{b(""),l(null),setTimeout(()=>{var k,q;(q=(k=P.current)==null?void 0:k.querySelector(`a[data-href="${h}"]`))==null||q.scrollIntoView(!0)},10)},G=(k,q)=>{var U;o(k),T(q),setTimeout(()=>{var j,ae;(ae=(j=P.current)==null?void 0:j.querySelector(`a[data-href="${q}"]`))==null||ae.scrollIntoView(!0)},10),(U=B.current)==null||U.scrollTo({top:0})},F=k=>{const q=ps.find(U=>k.startsWith(U.prefix));q&&(_(0),G(q,k))};return L.jsxs("div",{className:`${a} manual-warpper`,children:[L.jsxs("div",{className:"manual-left",children:[L.jsxs("div",{className:"manual-search",children:[L.jsx("span",{className:"manual-search-icon",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:L.jsx("path",{fillRule:"evenodd",d:"M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z"})})}),L.jsx("input",{onChange:H,spellCheck:"false",value:f,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),L.jsx("span",{onClick:V,className:`manual-search-clear ${f?"":"hide"}`,children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:L.jsx("path",{d:"M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z"})})})]}),L.jsx("div",{className:`manual-group-search-list manual-scroll ${f?"":"hide"}`,children:L.jsxs("div",{children:[c==null?void 0:c.labelList.map(k=>L.jsx("a",{onClick:q=>{q.preventDefault(),N(k.key,k.group)},className:`manual-group-body-item ${k.key===h?"manual-group-body-item-selected":""}`,"data-href":k.key,href:`#${k.key}`,children:k.label},`search_${k.key}`)),L.jsx("div",{className:"manual-content-separator"}),c==null?void 0:c.contentList.map(k=>L.jsx("a",{onClick:q=>{q.preventDefault(),N(k.key,k.group)},className:`manual-group-body-item ${k.key===h?"manual-group-body-item-selected":""}`,"data-href":k.key,href:`#${k.key}`,children:k.label},`search_${k.key}`))]})}),L.jsx("div",{className:`manual-group-list manual-scroll ${f?"hide":""}`,ref:P,children:ps.map(k=>{var q,U;return L.jsxs(O.Fragment,{children:[L.jsx("div",{onClick:()=>R(k),className:`manual-group-title ${k.key===(s==null?void 0:s.key)&&!(s!=null&&s.isHidden)?"active":""}`,children:k.title}),L.jsx("div",{className:`manual-group-body manual-scroll ${k.key!==(s==null?void 0:s.key)||s!=null&&s.isHidden?"hide":""}`,children:(U=(q=no[k.key])==null?void 0:q.sort().filter(j=>!ao.includes(j)))==null?void 0:U.map(j=>{const ae=`${k.prefix}_${j}`;return L.jsx("a",{onClick:ye=>{ye.preventDefault(),N(ae)},className:`manual-group-body-item ${ae===h?"manual-group-body-item-selected":""}`,"data-href":ae,href:`#${ae}`,children:`${j}${k.prefix==="fun"?"()":""}`},ae)})})]},k.key)})})]}),L.jsx("div",{ref:B,className:"manual-right manual-scroll",children:L.jsx(Um,{currentIndex:m,group:s,itemKey:h,onItemClick:F})})]})};A.ReferenceManual=Km,A.TradingVueDiffEditor=xm,A.TradingVueEditor=bm,A.parseLibrary=ym,A.parseTcc=Ao,A.removeScript=_m,A.scriptsRun=qo,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});