@guihz/trading-vue-editor-tes 0.0.10 → 0.0.11

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 kn;function cu(){if(kn)return ra;kn=1;var s=M,i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function m(x,g,v){var w,D={},O=null,R=null;v!==void 0&&(O=""+v),g.key!==void 0&&(O=""+g.key),g.ref!==void 0&&(R=g.ref);for(w in g)l.call(g,w)&&!p.hasOwnProperty(w)&&(D[w]=g[w]);if(x&&x.defaultProps)for(w in g=x.defaultProps,g)D[w]===void 0&&(D[w]=g[w]);return{$$typeof:i,type:x,key:O,ref:R,props:D,_owner:u.current}}return ra.Fragment=a,ra.jsx=m,ra.jsxs=m,ra}var aa={};/**
11
+ */var kn;function cu(){if(kn)return ra;kn=1;var s=M,i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function m(x,g,v){var w,D={},O=null,P=null;v!==void 0&&(O=""+v),g.key!==void 0&&(O=""+g.key),g.ref!==void 0&&(P=g.ref);for(w in g)l.call(g,w)&&!p.hasOwnProperty(w)&&(D[w]=g[w]);if(x&&x.defaultProps)for(w in g=x.defaultProps,g)D[w]===void 0&&(D[w]=g[w]);return{$$typeof:i,type:x,key:O,ref:P,props:D,_owner:u.current}}return ra.Fragment=a,ra.jsx=m,ra.jsxs=m,ra}var aa={};/**
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 An;function uu(){return An||(An=1,process.env.NODE_ENV!=="production"&&function(){var s=M,i=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),x=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),F=Symbol.iterator,B="@@iterator";function E(y){if(y===null||typeof y!="object")return null;var S=F&&y[F]||y[B];return typeof S=="function"?S:null}var K=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(y){{for(var S=arguments.length,z=new Array(S>1?S-1:0),X=1;X<S;X++)z[X-1]=arguments[X];he("error",y,z)}}function he(y,S,z){{var X=K.ReactDebugCurrentFrame,de=X.getStackAddendum();de!==""&&(S+="%s",z=z.concat([de]));var me=z.map(function(ne){return String(ne)});me.unshift("Warning: "+S),Function.prototype.apply.call(console[y],console,me)}}var le=!1,J=!1,ue=!1,ee=!1,ze=!1,ge;ge=Symbol.for("react.module.reference");function ae(y){return!!(typeof y=="string"||typeof y=="function"||y===l||y===p||ze||y===u||y===v||y===w||ee||y===R||le||J||ue||typeof y=="object"&&y!==null&&(y.$$typeof===O||y.$$typeof===D||y.$$typeof===m||y.$$typeof===x||y.$$typeof===g||y.$$typeof===ge||y.getModuleId!==void 0))}function it(y,S,z){var X=y.displayName;if(X)return X;var de=S.displayName||S.name||"";return de!==""?z+"("+de+")":z}function ht(y){return y.displayName||"Context"}function Pe(y){if(y==null)return null;if(typeof y.tag=="number"&&$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case l:return"Fragment";case a:return"Portal";case p:return"Profiler";case u:return"StrictMode";case v:return"Suspense";case w:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case x:var S=y;return ht(S)+".Consumer";case m:var z=y;return ht(z._context)+".Provider";case g:return it(y,y.render,"ForwardRef");case D:var X=y.displayName||null;return X!==null?X:Pe(y.type)||"Memo";case O:{var de=y,me=de._payload,ne=de._init;try{return Pe(ne(me))}catch{return null}}}return null}var Ee=Object.assign,j=0,se,Ne,Le,Lt,Wt,G,be;function Me(){}Me.__reactDisabledLog=!0;function Ht(){{if(j===0){se=console.log,Ne=console.info,Le=console.warn,Lt=console.error,Wt=console.group,G=console.groupCollapsed,be=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}j++}}function Xe(){{if(j--,j===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ee({},y,{value:se}),info:Ee({},y,{value:Ne}),warn:Ee({},y,{value:Le}),error:Ee({},y,{value:Lt}),group:Ee({},y,{value:Wt}),groupCollapsed:Ee({},y,{value:G}),groupEnd:Ee({},y,{value:be})})}j<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ir=K.ReactCurrentDispatcher,pa;function Mt(y,S,z){{if(pa===void 0)try{throw Error()}catch(de){var X=de.stack.trim().match(/\n( *(at )?)/);pa=X&&X[1]||""}return`
20
- `+pa+y}}var $t=!1,Or;{var Rr=typeof WeakMap=="function"?WeakMap:Map;Or=new Rr}function gr(y,S){if(!y||$t)return"";{var z=Or.get(y);if(z!==void 0)return z}var X;$t=!0;var de=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var me;me=ir.current,ir.current=null,Ht();try{if(S){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(Je){X=Je}Reflect.construct(y,[],ne)}else{try{ne.call()}catch(Je){X=Je}y.call(ne.prototype)}}else{try{throw Error()}catch(Je){X=Je}y()}}catch(Je){if(Je&&X&&typeof Je.stack=="string"){for(var re=Je.stack.split(`
19
+ */var An;function uu(){return An||(An=1,process.env.NODE_ENV!=="production"&&function(){var s=M,i=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),x=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),F=Symbol.iterator,B="@@iterator";function R(y){if(y===null||typeof y!="object")return null;var S=F&&y[F]||y[B];return typeof S=="function"?S:null}var K=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(y){{for(var S=arguments.length,z=new Array(S>1?S-1:0),X=1;X<S;X++)z[X-1]=arguments[X];he("error",y,z)}}function he(y,S,z){{var X=K.ReactDebugCurrentFrame,de=X.getStackAddendum();de!==""&&(S+="%s",z=z.concat([de]));var me=z.map(function(ne){return String(ne)});me.unshift("Warning: "+S),Function.prototype.apply.call(console[y],console,me)}}var le=!1,J=!1,ue=!1,ee=!1,ze=!1,ge;ge=Symbol.for("react.module.reference");function ae(y){return!!(typeof y=="string"||typeof y=="function"||y===l||y===p||ze||y===u||y===v||y===w||ee||y===P||le||J||ue||typeof y=="object"&&y!==null&&(y.$$typeof===O||y.$$typeof===D||y.$$typeof===m||y.$$typeof===x||y.$$typeof===g||y.$$typeof===ge||y.getModuleId!==void 0))}function it(y,S,z){var X=y.displayName;if(X)return X;var de=S.displayName||S.name||"";return de!==""?z+"("+de+")":z}function ht(y){return y.displayName||"Context"}function Ee(y){if(y==null)return null;if(typeof y.tag=="number"&&$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case l:return"Fragment";case a:return"Portal";case p:return"Profiler";case u:return"StrictMode";case v:return"Suspense";case w:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case x:var S=y;return ht(S)+".Consumer";case m:var z=y;return ht(z._context)+".Provider";case g:return it(y,y.render,"ForwardRef");case D:var X=y.displayName||null;return X!==null?X:Ee(y.type)||"Memo";case O:{var de=y,me=de._payload,ne=de._init;try{return Ee(ne(me))}catch{return null}}}return null}var Re=Object.assign,j=0,se,Ne,Le,Lt,Wt,G,be;function Me(){}Me.__reactDisabledLog=!0;function Ht(){{if(j===0){se=console.log,Ne=console.info,Le=console.warn,Lt=console.error,Wt=console.group,G=console.groupCollapsed,be=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}j++}}function Xe(){{if(j--,j===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Re({},y,{value:se}),info:Re({},y,{value:Ne}),warn:Re({},y,{value:Le}),error:Re({},y,{value:Lt}),group:Re({},y,{value:Wt}),groupCollapsed:Re({},y,{value:G}),groupEnd:Re({},y,{value:be})})}j<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ir=K.ReactCurrentDispatcher,pa;function Mt(y,S,z){{if(pa===void 0)try{throw Error()}catch(de){var X=de.stack.trim().match(/\n( *(at )?)/);pa=X&&X[1]||""}return`
20
+ `+pa+y}}var $t=!1,Or;{var Pr=typeof WeakMap=="function"?WeakMap:Map;Or=new Pr}function gr(y,S){if(!y||$t)return"";{var z=Or.get(y);if(z!==void 0)return z}var X;$t=!0;var de=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var me;me=ir.current,ir.current=null,Ht();try{if(S){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(Je){X=Je}Reflect.construct(y,[],ne)}else{try{ne.call()}catch(Je){X=Je}y.call(ne.prototype)}}else{try{throw Error()}catch(Je){X=Je}y()}}catch(Je){if(Je&&X&&typeof Je.stack=="string"){for(var re=Je.stack.split(`
21
21
  `),Be=X.stack.split(`
22
22
  `),De=re.length-1,Ae=Be.length-1;De>=1&&Ae>=0&&re[De]!==Be[Ae];)Ae--;for(;De>=1&&Ae>=0;De--,Ae--)if(re[De]!==Be[Ae]){if(De!==1||Ae!==1)do if(De--,Ae--,Ae<0||re[De]!==Be[Ae]){var Qe=`
23
- `+re[De].replace(" at new "," at ");return y.displayName&&Qe.includes("<anonymous>")&&(Qe=Qe.replace("<anonymous>",y.displayName)),typeof y=="function"&&Or.set(y,Qe),Qe}while(De>=1&&Ae>=0);break}}}finally{$t=!1,ir.current=me,Xe(),Error.prepareStackTrace=de}var St=y?y.displayName||y.name:"",os=St?Mt(St):"";return typeof y=="function"&&Or.set(y,os),os}function Ja(y,S,z){return gr(y,!1)}function nt(y){var S=y.prototype;return!!(S&&S.isReactComponent)}function Ft(y,S,z){if(y==null)return"";if(typeof y=="function")return gr(y,nt(y));if(typeof y=="string")return Mt(y);switch(y){case v:return Mt("Suspense");case w:return Mt("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case g:return Ja(y.render);case D:return Ft(y.type,S,z);case O:{var X=y,de=X._payload,me=X._init;try{return Ft(me(de),S,z)}catch{}}}return""}var Pr=Object.prototype.hasOwnProperty,_t={},ma=K.ReactDebugCurrentFrame;function Er(y){if(y){var S=y._owner,z=Ft(y.type,y._source,S?S.type:null);ma.setExtraStackFrame(z)}else ma.setExtraStackFrame(null)}function br(y,S,z,X,de){{var me=Function.call.bind(Pr);for(var ne in y)if(me(y,ne)){var re=void 0;try{if(typeof y[ne]!="function"){var Be=Error((X||"React class")+": "+z+" type `"+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Be.name="Invariant Violation",Be}re=y[ne](S,ne,X,z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(De){re=De}re&&!(re instanceof Error)&&(Er(de),$("%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).",X||"React class",z,ne,typeof re),Er(null)),re instanceof Error&&!(re.message in _t)&&(_t[re.message]=!0,Er(de),$("Failed %s type: %s",z,re.message),Er(null))}}}var ot=Array.isArray;function Xt(y){return ot(y)}function Lr(y){{var S=typeof Symbol=="function"&&Symbol.toStringTag,z=S&&y[Symbol.toStringTag]||y.constructor.name||"Object";return z}}function oi(y){try{return nr(y),!1}catch{return!0}}function nr(y){return""+y}function Za(y){if(oi(y))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Lr(y)),nr(y)}var Ct=K.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Mr,Fr,xr;xr={};function fa(y){if(Pr.call(y,"ref")){var S=Object.getOwnPropertyDescriptor(y,"ref").get;if(S&&S.isReactWarning)return!1}return y.ref!==void 0}function ya(y){if(Pr.call(y,"key")){var S=Object.getOwnPropertyDescriptor(y,"key").get;if(S&&S.isReactWarning)return!1}return y.key!==void 0}function ha(y,S){if(typeof y.ref=="string"&&Ct.current&&S&&Ct.current.stateNode!==S){var z=Pe(Ct.current.type);xr[z]||($('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',Pe(Ct.current.type),y.ref),xr[z]=!0)}}function _a(y,S){{var z=function(){Mr||(Mr=!0,$("%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)",S))};z.isReactWarning=!0,Object.defineProperty(y,"key",{get:z,configurable:!0})}}function ga(y,S){{var z=function(){Fr||(Fr=!0,$("%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)",S))};z.isReactWarning=!0,Object.defineProperty(y,"ref",{get:z,configurable:!0})}}var ba=function(y,S,z,X,de,me,ne){var re={$$typeof:i,type:y,key:S,ref:z,props:ne,_owner:me};return re._store={},Object.defineProperty(re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:de}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function li(y,S,z,X,de){{var me,ne={},re=null,Be=null;z!==void 0&&(Za(z),re=""+z),ya(S)&&(Za(S.key),re=""+S.key),fa(S)&&(Be=S.ref,ha(S,de));for(me in S)Pr.call(S,me)&&!or.hasOwnProperty(me)&&(ne[me]=S[me]);if(y&&y.defaultProps){var De=y.defaultProps;for(me in De)ne[me]===void 0&&(ne[me]=De[me])}if(re||Be){var Ae=typeof y=="function"?y.displayName||y.name||"Unknown":y;re&&_a(ne,Ae),Be&&ga(ne,Ae)}return ba(y,re,Be,de,X,Ct.current,ne)}}var xa=K.ReactCurrentOwner,es=K.ReactDebugCurrentFrame;function Gt(y){if(y){var S=y._owner,z=Ft(y.type,y._source,S?S.type:null);es.setExtraStackFrame(z)}else es.setExtraStackFrame(null)}var Br;Br=!1;function va(y){return typeof y=="object"&&y!==null&&y.$$typeof===i}function ts(){{if(xa.current){var y=Pe(xa.current.type);if(y)return`
23
+ `+re[De].replace(" at new "," at ");return y.displayName&&Qe.includes("<anonymous>")&&(Qe=Qe.replace("<anonymous>",y.displayName)),typeof y=="function"&&Or.set(y,Qe),Qe}while(De>=1&&Ae>=0);break}}}finally{$t=!1,ir.current=me,Xe(),Error.prepareStackTrace=de}var St=y?y.displayName||y.name:"",os=St?Mt(St):"";return typeof y=="function"&&Or.set(y,os),os}function Ja(y,S,z){return gr(y,!1)}function nt(y){var S=y.prototype;return!!(S&&S.isReactComponent)}function Ft(y,S,z){if(y==null)return"";if(typeof y=="function")return gr(y,nt(y));if(typeof y=="string")return Mt(y);switch(y){case v:return Mt("Suspense");case w:return Mt("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case g:return Ja(y.render);case D:return Ft(y.type,S,z);case O:{var X=y,de=X._payload,me=X._init;try{return Ft(me(de),S,z)}catch{}}}return""}var Er=Object.prototype.hasOwnProperty,_t={},ma=K.ReactDebugCurrentFrame;function Rr(y){if(y){var S=y._owner,z=Ft(y.type,y._source,S?S.type:null);ma.setExtraStackFrame(z)}else ma.setExtraStackFrame(null)}function br(y,S,z,X,de){{var me=Function.call.bind(Er);for(var ne in y)if(me(y,ne)){var re=void 0;try{if(typeof y[ne]!="function"){var Be=Error((X||"React class")+": "+z+" type `"+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Be.name="Invariant Violation",Be}re=y[ne](S,ne,X,z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(De){re=De}re&&!(re instanceof Error)&&(Rr(de),$("%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).",X||"React class",z,ne,typeof re),Rr(null)),re instanceof Error&&!(re.message in _t)&&(_t[re.message]=!0,Rr(de),$("Failed %s type: %s",z,re.message),Rr(null))}}}var ot=Array.isArray;function Xt(y){return ot(y)}function Lr(y){{var S=typeof Symbol=="function"&&Symbol.toStringTag,z=S&&y[Symbol.toStringTag]||y.constructor.name||"Object";return z}}function oi(y){try{return nr(y),!1}catch{return!0}}function nr(y){return""+y}function Za(y){if(oi(y))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Lr(y)),nr(y)}var Ct=K.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Mr,Fr,xr;xr={};function fa(y){if(Er.call(y,"ref")){var S=Object.getOwnPropertyDescriptor(y,"ref").get;if(S&&S.isReactWarning)return!1}return y.ref!==void 0}function ya(y){if(Er.call(y,"key")){var S=Object.getOwnPropertyDescriptor(y,"key").get;if(S&&S.isReactWarning)return!1}return y.key!==void 0}function ha(y,S){if(typeof y.ref=="string"&&Ct.current&&S&&Ct.current.stateNode!==S){var z=Ee(Ct.current.type);xr[z]||($('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',Ee(Ct.current.type),y.ref),xr[z]=!0)}}function _a(y,S){{var z=function(){Mr||(Mr=!0,$("%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)",S))};z.isReactWarning=!0,Object.defineProperty(y,"key",{get:z,configurable:!0})}}function ga(y,S){{var z=function(){Fr||(Fr=!0,$("%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)",S))};z.isReactWarning=!0,Object.defineProperty(y,"ref",{get:z,configurable:!0})}}var ba=function(y,S,z,X,de,me,ne){var re={$$typeof:i,type:y,key:S,ref:z,props:ne,_owner:me};return re._store={},Object.defineProperty(re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:de}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function li(y,S,z,X,de){{var me,ne={},re=null,Be=null;z!==void 0&&(Za(z),re=""+z),ya(S)&&(Za(S.key),re=""+S.key),fa(S)&&(Be=S.ref,ha(S,de));for(me in S)Er.call(S,me)&&!or.hasOwnProperty(me)&&(ne[me]=S[me]);if(y&&y.defaultProps){var De=y.defaultProps;for(me in De)ne[me]===void 0&&(ne[me]=De[me])}if(re||Be){var Ae=typeof y=="function"?y.displayName||y.name||"Unknown":y;re&&_a(ne,Ae),Be&&ga(ne,Ae)}return ba(y,re,Be,de,X,Ct.current,ne)}}var xa=K.ReactCurrentOwner,es=K.ReactDebugCurrentFrame;function Gt(y){if(y){var S=y._owner,z=Ft(y.type,y._source,S?S.type:null);es.setExtraStackFrame(z)}else es.setExtraStackFrame(null)}var Br;Br=!1;function va(y){return typeof y=="object"&&y!==null&&y.$$typeof===i}function ts(){{if(xa.current){var y=Ee(xa.current.type);if(y)return`
24
24
 
25
25
  Check the render method of \``+y+"`."}return""}}function ci(y){{if(y!==void 0){var S=y.fileName.replace(/^.*[\\\/]/,""),z=y.lineNumber;return`
26
26
 
27
27
  Check your code at `+S+":"+z+"."}return""}}var rs={};function as(y){{var S=ts();if(!S){var z=typeof y=="string"?y:y.displayName||y.name;z&&(S=`
28
28
 
29
- Check the top-level render call using <`+z+">.")}return S}}function ss(y,S){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var z=as(S);if(rs[z])return;rs[z]=!0;var X="";y&&y._owner&&y._owner!==xa.current&&(X=" It was passed a child from "+Pe(y._owner.type)+"."),Gt(y),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',z,X),Gt(null)}}function is(y,S){{if(typeof y!="object")return;if(Xt(y))for(var z=0;z<y.length;z++){var X=y[z];va(X)&&ss(X,S)}else if(va(y))y._store&&(y._store.validated=!0);else if(y){var de=E(y);if(typeof de=="function"&&de!==y.entries)for(var me=de.call(y),ne;!(ne=me.next()).done;)va(ne.value)&&ss(ne.value,S)}}}function ui(y){{var S=y.type;if(S==null||typeof S=="string")return;var z;if(typeof S=="function")z=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===g||S.$$typeof===D))z=S.propTypes;else return;if(z){var X=Pe(S);br(z,y.props,"prop",X,y)}else if(S.PropTypes!==void 0&&!Br){Br=!0;var de=Pe(S);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",de||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wa(y){{for(var S=Object.keys(y.props),z=0;z<S.length;z++){var X=S[z];if(X!=="children"&&X!=="key"){Gt(y),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",X),Gt(null);break}}y.ref!==null&&(Gt(y),$("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function ns(y,S,z,X,de,me){{var ne=ae(y);if(!ne){var re="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(re+=" 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 Be=ci(de);Be?re+=Be:re+=ts();var De;y===null?De="null":Xt(y)?De="array":y!==void 0&&y.$$typeof===i?(De="<"+(Pe(y.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):De=typeof y,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",De,re)}var Ae=li(y,S,z,de,me);if(Ae==null)return Ae;if(ne){var Qe=S.children;if(Qe!==void 0)if(X)if(Xt(Qe)){for(var St=0;St<Qe.length;St++)is(Qe[St],y);Object.freeze&&Object.freeze(Qe)}else $("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 is(Qe,y)}return y===l?wa(Ae):ui(Ae),Ae}}function Ta(y,S,z){return ns(y,S,z,!0)}function di(y,S,z){return ns(y,S,z,!1)}var pi=di,mi=Ta;aa.Fragment=l,aa.jsx=pi,aa.jsxs=mi}()),aa}process.env.NODE_ENV==="production"?Ys.exports=cu():Ys.exports=uu();var ft=Ys.exports;function du(s,i,a){return i in s?Object.defineProperty(s,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[i]=a,s}function qn(s,i){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(s);i&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,l)}return a}function Cn(s){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?qn(Object(a),!0).forEach(function(l){du(s,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):qn(Object(a)).forEach(function(l){Object.defineProperty(s,l,Object.getOwnPropertyDescriptor(a,l))})}return s}function pu(s,i){if(s==null)return{};var a={},l=Object.keys(s),u,p;for(p=0;p<l.length;p++)u=l[p],!(i.indexOf(u)>=0)&&(a[u]=s[u]);return a}function mu(s,i){if(s==null)return{};var a=pu(s,i),l,u;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(s);for(u=0;u<p.length;u++)l=p[u],!(i.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(s,l)&&(a[l]=s[l])}return a}function fu(s,i){return yu(s)||hu(s,i)||_u(s,i)||gu()}function yu(s){if(Array.isArray(s))return s}function hu(s,i){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var a=[],l=!0,u=!1,p=void 0;try{for(var m=s[Symbol.iterator](),x;!(l=(x=m.next()).done)&&(a.push(x.value),!(i&&a.length===i));l=!0);}catch(g){u=!0,p=g}finally{try{!l&&m.return!=null&&m.return()}finally{if(u)throw p}}return a}}function _u(s,i){if(s){if(typeof s=="string")return Sn(s,i);var a=Object.prototype.toString.call(s).slice(8,-1);if(a==="Object"&&s.constructor&&(a=s.constructor.name),a==="Map"||a==="Set")return Array.from(s);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Sn(s,i)}}function Sn(s,i){(i==null||i>s.length)&&(i=s.length);for(var a=0,l=new Array(i);a<i;a++)l[a]=s[a];return l}function gu(){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 bu(s,i,a){return i in s?Object.defineProperty(s,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[i]=a,s}function zn(s,i){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(s);i&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,l)}return a}function Nn(s){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?zn(Object(a),!0).forEach(function(l){bu(s,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):zn(Object(a)).forEach(function(l){Object.defineProperty(s,l,Object.getOwnPropertyDescriptor(a,l))})}return s}function xu(){for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];return function(l){return i.reduceRight(function(u,p){return p(u)},l)}}function sa(s){return function i(){for(var a=this,l=arguments.length,u=new Array(l),p=0;p<l;p++)u[p]=arguments[p];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,x=new Array(m),g=0;g<m;g++)x[g]=arguments[g];return i.apply(a,[].concat(u,x))}}}function Ba(s){return{}.toString.call(s).includes("Object")}function vu(s){return!Object.keys(s).length}function ia(s){return typeof s=="function"}function wu(s,i){return Object.prototype.hasOwnProperty.call(s,i)}function Tu(s,i){return Ba(i)||ar("changeType"),Object.keys(i).some(function(a){return!wu(s,a)})&&ar("changeField"),i}function Iu(s){ia(s)||ar("selectorType")}function Du(s){ia(s)||Ba(s)||ar("handlerType"),Ba(s)&&Object.values(s).some(function(i){return!ia(i)})&&ar("handlersType")}function ku(s){s||ar("initialIsRequired"),Ba(s)||ar("initialType"),vu(s)&&ar("initialContent")}function Au(s,i){throw new Error(s[i]||s.default)}var qu={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"},ar=sa(Au)(qu),ja={changes:Tu,selector:Iu,handler:Du,initial:ku};function Cu(s){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ja.initial(s),ja.handler(i);var a={current:s},l=sa(Nu)(a,i),u=sa(zu)(a),p=sa(ja.changes)(s),m=sa(Su)(a);function x(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(w){return w};return ja.selector(v),v(a.current)}function g(v){xu(l,u,p,m)(v)}return[x,g]}function Su(s,i){return ia(i)?i(s.current):i}function zu(s,i){return s.current=Nn(Nn({},s.current),i),i}function Nu(s,i,a){return ia(i)?i(s.current):Object.keys(a).forEach(function(l){var u;return(u=i[l])===null||u===void 0?void 0:u.call(i,s.current[l])}),a}var Ou={create:Cu},Ru={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Pu(s){return function i(){for(var a=this,l=arguments.length,u=new Array(l),p=0;p<l;p++)u[p]=arguments[p];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,x=new Array(m),g=0;g<m;g++)x[g]=arguments[g];return i.apply(a,[].concat(u,x))}}}function Eu(s){return{}.toString.call(s).includes("Object")}function Lu(s){return s||Rn("configIsRequired"),Eu(s)||Rn("configType"),s.urls?(Mu(),{paths:{vs:s.urls.monacoBase}}):s}function Mu(){console.warn(On.deprecation)}function Fu(s,i){throw new Error(s[i]||s.default)}var On={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 <`+z+">.")}return S}}function ss(y,S){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var z=as(S);if(rs[z])return;rs[z]=!0;var X="";y&&y._owner&&y._owner!==xa.current&&(X=" It was passed a child from "+Ee(y._owner.type)+"."),Gt(y),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',z,X),Gt(null)}}function is(y,S){{if(typeof y!="object")return;if(Xt(y))for(var z=0;z<y.length;z++){var X=y[z];va(X)&&ss(X,S)}else if(va(y))y._store&&(y._store.validated=!0);else if(y){var de=R(y);if(typeof de=="function"&&de!==y.entries)for(var me=de.call(y),ne;!(ne=me.next()).done;)va(ne.value)&&ss(ne.value,S)}}}function ui(y){{var S=y.type;if(S==null||typeof S=="string")return;var z;if(typeof S=="function")z=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===g||S.$$typeof===D))z=S.propTypes;else return;if(z){var X=Ee(S);br(z,y.props,"prop",X,y)}else if(S.PropTypes!==void 0&&!Br){Br=!0;var de=Ee(S);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",de||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wa(y){{for(var S=Object.keys(y.props),z=0;z<S.length;z++){var X=S[z];if(X!=="children"&&X!=="key"){Gt(y),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",X),Gt(null);break}}y.ref!==null&&(Gt(y),$("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function ns(y,S,z,X,de,me){{var ne=ae(y);if(!ne){var re="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(re+=" 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 Be=ci(de);Be?re+=Be:re+=ts();var De;y===null?De="null":Xt(y)?De="array":y!==void 0&&y.$$typeof===i?(De="<"+(Ee(y.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):De=typeof y,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",De,re)}var Ae=li(y,S,z,de,me);if(Ae==null)return Ae;if(ne){var Qe=S.children;if(Qe!==void 0)if(X)if(Xt(Qe)){for(var St=0;St<Qe.length;St++)is(Qe[St],y);Object.freeze&&Object.freeze(Qe)}else $("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 is(Qe,y)}return y===l?wa(Ae):ui(Ae),Ae}}function Ta(y,S,z){return ns(y,S,z,!0)}function di(y,S,z){return ns(y,S,z,!1)}var pi=di,mi=Ta;aa.Fragment=l,aa.jsx=pi,aa.jsxs=mi}()),aa}process.env.NODE_ENV==="production"?Ys.exports=cu():Ys.exports=uu();var ft=Ys.exports;function du(s,i,a){return i in s?Object.defineProperty(s,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[i]=a,s}function qn(s,i){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(s);i&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,l)}return a}function Cn(s){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?qn(Object(a),!0).forEach(function(l){du(s,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):qn(Object(a)).forEach(function(l){Object.defineProperty(s,l,Object.getOwnPropertyDescriptor(a,l))})}return s}function pu(s,i){if(s==null)return{};var a={},l=Object.keys(s),u,p;for(p=0;p<l.length;p++)u=l[p],!(i.indexOf(u)>=0)&&(a[u]=s[u]);return a}function mu(s,i){if(s==null)return{};var a=pu(s,i),l,u;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(s);for(u=0;u<p.length;u++)l=p[u],!(i.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(s,l)&&(a[l]=s[l])}return a}function fu(s,i){return yu(s)||hu(s,i)||_u(s,i)||gu()}function yu(s){if(Array.isArray(s))return s}function hu(s,i){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var a=[],l=!0,u=!1,p=void 0;try{for(var m=s[Symbol.iterator](),x;!(l=(x=m.next()).done)&&(a.push(x.value),!(i&&a.length===i));l=!0);}catch(g){u=!0,p=g}finally{try{!l&&m.return!=null&&m.return()}finally{if(u)throw p}}return a}}function _u(s,i){if(s){if(typeof s=="string")return Sn(s,i);var a=Object.prototype.toString.call(s).slice(8,-1);if(a==="Object"&&s.constructor&&(a=s.constructor.name),a==="Map"||a==="Set")return Array.from(s);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Sn(s,i)}}function Sn(s,i){(i==null||i>s.length)&&(i=s.length);for(var a=0,l=new Array(i);a<i;a++)l[a]=s[a];return l}function gu(){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 bu(s,i,a){return i in s?Object.defineProperty(s,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[i]=a,s}function zn(s,i){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(s);i&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,l)}return a}function Nn(s){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?zn(Object(a),!0).forEach(function(l){bu(s,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):zn(Object(a)).forEach(function(l){Object.defineProperty(s,l,Object.getOwnPropertyDescriptor(a,l))})}return s}function xu(){for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];return function(l){return i.reduceRight(function(u,p){return p(u)},l)}}function sa(s){return function i(){for(var a=this,l=arguments.length,u=new Array(l),p=0;p<l;p++)u[p]=arguments[p];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,x=new Array(m),g=0;g<m;g++)x[g]=arguments[g];return i.apply(a,[].concat(u,x))}}}function Ba(s){return{}.toString.call(s).includes("Object")}function vu(s){return!Object.keys(s).length}function ia(s){return typeof s=="function"}function wu(s,i){return Object.prototype.hasOwnProperty.call(s,i)}function Tu(s,i){return Ba(i)||ar("changeType"),Object.keys(i).some(function(a){return!wu(s,a)})&&ar("changeField"),i}function Iu(s){ia(s)||ar("selectorType")}function Du(s){ia(s)||Ba(s)||ar("handlerType"),Ba(s)&&Object.values(s).some(function(i){return!ia(i)})&&ar("handlersType")}function ku(s){s||ar("initialIsRequired"),Ba(s)||ar("initialType"),vu(s)&&ar("initialContent")}function Au(s,i){throw new Error(s[i]||s.default)}var qu={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"},ar=sa(Au)(qu),ja={changes:Tu,selector:Iu,handler:Du,initial:ku};function Cu(s){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ja.initial(s),ja.handler(i);var a={current:s},l=sa(Nu)(a,i),u=sa(zu)(a),p=sa(ja.changes)(s),m=sa(Su)(a);function x(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(w){return w};return ja.selector(v),v(a.current)}function g(v){xu(l,u,p,m)(v)}return[x,g]}function Su(s,i){return ia(i)?i(s.current):i}function zu(s,i){return s.current=Nn(Nn({},s.current),i),i}function Nu(s,i,a){return ia(i)?i(s.current):Object.keys(a).forEach(function(l){var u;return(u=i[l])===null||u===void 0?void 0:u.call(i,s.current[l])}),a}var Ou={create:Cu},Pu={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Eu(s){return function i(){for(var a=this,l=arguments.length,u=new Array(l),p=0;p<l;p++)u[p]=arguments[p];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,x=new Array(m),g=0;g<m;g++)x[g]=arguments[g];return i.apply(a,[].concat(u,x))}}}function Ru(s){return{}.toString.call(s).includes("Object")}function Lu(s){return s||Pn("configIsRequired"),Ru(s)||Pn("configType"),s.urls?(Mu(),{paths:{vs:s.urls.monacoBase}}):s}function Mu(){console.warn(On.deprecation)}function Fu(s,i){throw new Error(s[i]||s.default)}var On={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
- `},Rn=Pu(Fu)(On),Bu={config:Lu},ju=function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return function(u){return a.reduceRight(function(p,m){return m(p)},u)}};function Pn(s,i){return Object.keys(i).forEach(function(a){i[a]instanceof Object&&s[a]&&Object.assign(i[a],Pn(s[a],i[a]))}),Cn(Cn({},s),i)}var Uu={type:"cancelation",msg:"operation is manually canceled"};function Vs(s){var i=!1,a=new Promise(function(l,u){s.then(function(p){return i?u(Uu):l(p)}),s.catch(u)});return a.cancel=function(){return i=!0},a}var Wu=Ou.create({config:Ru,isInitialized:!1,resolve:null,reject:null,monaco:null}),En=fu(Wu,2),na=En[0],Ua=En[1];function Hu(s){var i=Bu.config(s),a=i.monaco,l=mu(i,["monaco"]);Ua(function(u){return{config:Pn(u.config,l),monaco:a}})}function $u(){var s=na(function(i){var a=i.monaco,l=i.isInitialized,u=i.resolve;return{monaco:a,isInitialized:l,resolve:u}});if(!s.isInitialized){if(Ua({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),Vs(Ks);if(window.monaco&&window.monaco.editor)return Ln(window.monaco),s.resolve(window.monaco),Vs(Ks);ju(Xu,Yu)(Vu)}return Vs(Ks)}function Xu(s){return document.body.appendChild(s)}function Gu(s){var i=document.createElement("script");return s&&(i.src=s),i}function Yu(s){var i=na(function(l){var u=l.config,p=l.reject;return{config:u,reject:p}}),a=Gu("".concat(i.config.paths.vs,"/loader.js"));return a.onload=function(){return s()},a.onerror=i.reject,a}function Vu(){var s=na(function(a){var l=a.config,u=a.resolve,p=a.reject;return{config:l,resolve:u,reject:p}}),i=window.require;i.config(s.config),i(["vs/editor/editor.main"],function(a){Ln(a),s.resolve(a)},function(a){s.reject(a)})}function Ln(s){na().monaco||Ua({monaco:s})}function Ku(){return na(function(s){var i=s.monaco;return i})}var Ks=new Promise(function(s,i){return Ua({resolve:s,reject:i})}),Qs={config:Hu,init:$u,__getMonacoInstance:Ku},Qu={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Js=Qu,Ju={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Zu=Ju;function ed({children:s}){return M.createElement("div",{style:Zu.container},s)}var td=ed,rd=td;function ad({width:s,height:i,isEditorReady:a,loading:l,_ref:u,className:p,wrapperProps:m}){return M.createElement("section",{style:{...Js.wrapper,width:s,height:i},...m},!a&&M.createElement(rd,null,l),M.createElement("div",{ref:u,style:{...Js.fullWidth,...!a&&Js.hide},className:p}))}var sd=ad,Mn=M.memo(sd);function id(s){M.useEffect(s,[])}var Fn=id;function nd(s,i,a=!0){let l=M.useRef(!0);M.useEffect(l.current||!a?()=>{l.current=!1}:s,i)}var st=nd;function oa(){}function Sr(s,i,a,l){return od(s,l)||ld(s,i,a,l)}function od(s,i){return s.editor.getModel(Bn(s,i))}function ld(s,i,a,l){return s.editor.createModel(i,a,l?Bn(s,l):void 0)}function Bn(s,i){return s.Uri.parse(i)}function cd({original:s,modified:i,language:a,originalLanguage:l,modifiedLanguage:u,originalModelPath:p,modifiedModelPath:m,keepCurrentOriginalModel:x=!1,keepCurrentModifiedModel:g=!1,theme:v="light",loading:w="Loading...",options:D={},height:O="100%",width:R="100%",className:F,wrapperProps:B={},beforeMount:E=oa,onMount:K=oa}){let[$,he]=M.useState(!1),[le,J]=M.useState(!0),ue=M.useRef(null),ee=M.useRef(null),ze=M.useRef(null),ge=M.useRef(K),ae=M.useRef(E),it=M.useRef(!1);Fn(()=>{let j=Qs.init();return j.then(se=>(ee.current=se)&&J(!1)).catch(se=>(se==null?void 0:se.type)!=="cancelation"&&console.error("Monaco initialization: error:",se)),()=>ue.current?Ee():j.cancel()}),st(()=>{if(ue.current&&ee.current){let j=ue.current.getOriginalEditor(),se=Sr(ee.current,s||"",l||a||"text",p||"");se!==j.getModel()&&j.setModel(se)}},[p],$),st(()=>{if(ue.current&&ee.current){let j=ue.current.getModifiedEditor(),se=Sr(ee.current,i||"",u||a||"text",m||"");se!==j.getModel()&&j.setModel(se)}},[m],$),st(()=>{let j=ue.current.getModifiedEditor();j.getOption(ee.current.editor.EditorOption.readOnly)?j.setValue(i||""):i!==j.getValue()&&(j.executeEdits("",[{range:j.getModel().getFullModelRange(),text:i||"",forceMoveMarkers:!0}]),j.pushUndoStop())},[i],$),st(()=>{var j,se;(se=(j=ue.current)==null?void 0:j.getModel())==null||se.original.setValue(s||"")},[s],$),st(()=>{let{original:j,modified:se}=ue.current.getModel();ee.current.editor.setModelLanguage(j,l||a||"text"),ee.current.editor.setModelLanguage(se,u||a||"text")},[a,l,u],$),st(()=>{var j;(j=ee.current)==null||j.editor.setTheme(v)},[v],$),st(()=>{var j;(j=ue.current)==null||j.updateOptions(D)},[D],$);let ht=M.useCallback(()=>{var Ne;if(!ee.current)return;ae.current(ee.current);let j=Sr(ee.current,s||"",l||a||"text",p||""),se=Sr(ee.current,i||"",u||a||"text",m||"");(Ne=ue.current)==null||Ne.setModel({original:j,modified:se})},[a,i,u,s,l,p,m]),Pe=M.useCallback(()=>{var j;!it.current&&ze.current&&(ue.current=ee.current.editor.createDiffEditor(ze.current,{automaticLayout:!0,...D}),ht(),(j=ee.current)==null||j.editor.setTheme(v),he(!0),it.current=!0)},[D,v,ht]);M.useEffect(()=>{$&&ge.current(ue.current,ee.current)},[$]),M.useEffect(()=>{!le&&!$&&Pe()},[le,$,Pe]);function Ee(){var se,Ne,Le,Lt;let j=(se=ue.current)==null?void 0:se.getModel();x||((Ne=j==null?void 0:j.original)==null||Ne.dispose()),g||((Le=j==null?void 0:j.modified)==null||Le.dispose()),(Lt=ue.current)==null||Lt.dispose()}return M.createElement(Mn,{width:R,height:O,isEditorReady:$,loading:w,_ref:ze,className:F,wrapperProps:B})}var ud=cd;M.memo(ud);function dd(s){let i=M.useRef();return M.useEffect(()=>{i.current=s},[s]),i.current}var pd=dd,Wa=new Map;function md({defaultValue:s,defaultLanguage:i,defaultPath:a,value:l,language:u,path:p,theme:m="light",line:x,loading:g="Loading...",options:v={},overrideServices:w={},saveViewState:D=!0,keepCurrentModel:O=!1,width:R="100%",height:F="100%",className:B,wrapperProps:E={},beforeMount:K=oa,onMount:$=oa,onChange:he,onValidate:le=oa}){let[J,ue]=M.useState(!1),[ee,ze]=M.useState(!0),ge=M.useRef(null),ae=M.useRef(null),it=M.useRef(null),ht=M.useRef($),Pe=M.useRef(K),Ee=M.useRef(),j=M.useRef(l),se=pd(p),Ne=M.useRef(!1),Le=M.useRef(!1);Fn(()=>{let G=Qs.init();return G.then(be=>(ge.current=be)&&ze(!1)).catch(be=>(be==null?void 0:be.type)!=="cancelation"&&console.error("Monaco initialization: error:",be)),()=>ae.current?Wt():G.cancel()}),st(()=>{var be,Me,Ht,Xe;let G=Sr(ge.current,s||l||"",i||u||"",p||a||"");G!==((be=ae.current)==null?void 0:be.getModel())&&(D&&Wa.set(se,(Me=ae.current)==null?void 0:Me.saveViewState()),(Ht=ae.current)==null||Ht.setModel(G),D&&((Xe=ae.current)==null||Xe.restoreViewState(Wa.get(p))))},[p],J),st(()=>{var G;(G=ae.current)==null||G.updateOptions(v)},[v],J),st(()=>{!ae.current||l===void 0||(ae.current.getOption(ge.current.editor.EditorOption.readOnly)?ae.current.setValue(l):l!==ae.current.getValue()&&(Le.current=!0,ae.current.executeEdits("",[{range:ae.current.getModel().getFullModelRange(),text:l,forceMoveMarkers:!0}]),ae.current.pushUndoStop(),Le.current=!1))},[l],J),st(()=>{var be,Me;let G=(be=ae.current)==null?void 0:be.getModel();G&&u&&((Me=ge.current)==null||Me.editor.setModelLanguage(G,u))},[u],J),st(()=>{var G;x!==void 0&&((G=ae.current)==null||G.revealLine(x))},[x],J),st(()=>{var G;(G=ge.current)==null||G.editor.setTheme(m)},[m],J);let Lt=M.useCallback(()=>{var G;if(!(!it.current||!ge.current)&&!Ne.current){Pe.current(ge.current);let be=p||a,Me=Sr(ge.current,l||s||"",i||u||"",be||"");ae.current=(G=ge.current)==null?void 0:G.editor.create(it.current,{model:Me,automaticLayout:!0,...v},w),D&&ae.current.restoreViewState(Wa.get(be)),ge.current.editor.setTheme(m),x!==void 0&&ae.current.revealLine(x),ue(!0),Ne.current=!0}},[s,i,a,l,u,p,v,w,D,m,x]);M.useEffect(()=>{J&&ht.current(ae.current,ge.current)},[J]),M.useEffect(()=>{!ee&&!J&&Lt()},[ee,J,Lt]),j.current=l,M.useEffect(()=>{var G,be;J&&he&&((G=Ee.current)==null||G.dispose(),Ee.current=(be=ae.current)==null?void 0:be.onDidChangeModelContent(Me=>{Le.current||he(ae.current.getValue(),Me)}))},[J,he]),M.useEffect(()=>{if(J){let G=ge.current.editor.onDidChangeMarkers(be=>{var Ht;let Me=(Ht=ae.current.getModel())==null?void 0:Ht.uri;if(Me&&be.find(Xe=>Xe.path===Me.path)){let Xe=ge.current.editor.getModelMarkers({resource:Me});le==null||le(Xe)}});return()=>{G==null||G.dispose()}}return()=>{}},[J,le]);function Wt(){var G,be;(G=Ee.current)==null||G.dispose(),O?D&&Wa.set(p,ae.current.saveViewState()):(be=ae.current.getModel())==null||be.dispose(),ae.current.dispose()}return M.createElement(Mn,{width:R,height:F,isEditorReady:J,loading:g,_ref:it,className:B,wrapperProps:E})}var fd=md,yd=M.memo(fd);const jn={keywords:[{name:"or",desc:["Logical OR. Applicable to boolean expressions."],syntax:["expr1 or expr2"],returns:["Boolean value, or series of boolean values."]},{name:"and",desc:["Logical AND. Applicable to boolean expressions."],syntax:["expr1 and expr2"],returns:["Boolean value, or series of boolean values."]},{name:"not",desc:["Logical negation (NOT). Applicable to boolean expressions."],syntax:["not expr1"],returns:["Boolean value, or series of boolean values."]},{name:"if",desc:["If statement defines what block of statements must be executed when conditions of the expression are satisfied.","To have access to and use the if statement, one should specify the version >= 2 of Pine Script® language in the very first line of code, for example: //@version=5","The 4th version of Pine Script® Language allows you to use “else if” syntax.","General code form:"],syntax:[`var_declarationX = if condition
39
+ `},Pn=Eu(Fu)(On),Bu={config:Lu},ju=function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return function(u){return a.reduceRight(function(p,m){return m(p)},u)}};function En(s,i){return Object.keys(i).forEach(function(a){i[a]instanceof Object&&s[a]&&Object.assign(i[a],En(s[a],i[a]))}),Cn(Cn({},s),i)}var Uu={type:"cancelation",msg:"operation is manually canceled"};function Vs(s){var i=!1,a=new Promise(function(l,u){s.then(function(p){return i?u(Uu):l(p)}),s.catch(u)});return a.cancel=function(){return i=!0},a}var Wu=Ou.create({config:Pu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Rn=fu(Wu,2),na=Rn[0],Ua=Rn[1];function Hu(s){var i=Bu.config(s),a=i.monaco,l=mu(i,["monaco"]);Ua(function(u){return{config:En(u.config,l),monaco:a}})}function $u(){var s=na(function(i){var a=i.monaco,l=i.isInitialized,u=i.resolve;return{monaco:a,isInitialized:l,resolve:u}});if(!s.isInitialized){if(Ua({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),Vs(Ks);if(window.monaco&&window.monaco.editor)return Ln(window.monaco),s.resolve(window.monaco),Vs(Ks);ju(Xu,Yu)(Vu)}return Vs(Ks)}function Xu(s){return document.body.appendChild(s)}function Gu(s){var i=document.createElement("script");return s&&(i.src=s),i}function Yu(s){var i=na(function(l){var u=l.config,p=l.reject;return{config:u,reject:p}}),a=Gu("".concat(i.config.paths.vs,"/loader.js"));return a.onload=function(){return s()},a.onerror=i.reject,a}function Vu(){var s=na(function(a){var l=a.config,u=a.resolve,p=a.reject;return{config:l,resolve:u,reject:p}}),i=window.require;i.config(s.config),i(["vs/editor/editor.main"],function(a){Ln(a),s.resolve(a)},function(a){s.reject(a)})}function Ln(s){na().monaco||Ua({monaco:s})}function Ku(){return na(function(s){var i=s.monaco;return i})}var Ks=new Promise(function(s,i){return Ua({resolve:s,reject:i})}),Qs={config:Hu,init:$u,__getMonacoInstance:Ku},Qu={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Js=Qu,Ju={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Zu=Ju;function ed({children:s}){return M.createElement("div",{style:Zu.container},s)}var td=ed,rd=td;function ad({width:s,height:i,isEditorReady:a,loading:l,_ref:u,className:p,wrapperProps:m}){return M.createElement("section",{style:{...Js.wrapper,width:s,height:i},...m},!a&&M.createElement(rd,null,l),M.createElement("div",{ref:u,style:{...Js.fullWidth,...!a&&Js.hide},className:p}))}var sd=ad,Mn=M.memo(sd);function id(s){M.useEffect(s,[])}var Fn=id;function nd(s,i,a=!0){let l=M.useRef(!0);M.useEffect(l.current||!a?()=>{l.current=!1}:s,i)}var st=nd;function oa(){}function Sr(s,i,a,l){return od(s,l)||ld(s,i,a,l)}function od(s,i){return s.editor.getModel(Bn(s,i))}function ld(s,i,a,l){return s.editor.createModel(i,a,l?Bn(s,l):void 0)}function Bn(s,i){return s.Uri.parse(i)}function cd({original:s,modified:i,language:a,originalLanguage:l,modifiedLanguage:u,originalModelPath:p,modifiedModelPath:m,keepCurrentOriginalModel:x=!1,keepCurrentModifiedModel:g=!1,theme:v="light",loading:w="Loading...",options:D={},height:O="100%",width:P="100%",className:F,wrapperProps:B={},beforeMount:R=oa,onMount:K=oa}){let[$,he]=M.useState(!1),[le,J]=M.useState(!0),ue=M.useRef(null),ee=M.useRef(null),ze=M.useRef(null),ge=M.useRef(K),ae=M.useRef(R),it=M.useRef(!1);Fn(()=>{let j=Qs.init();return j.then(se=>(ee.current=se)&&J(!1)).catch(se=>(se==null?void 0:se.type)!=="cancelation"&&console.error("Monaco initialization: error:",se)),()=>ue.current?Re():j.cancel()}),st(()=>{if(ue.current&&ee.current){let j=ue.current.getOriginalEditor(),se=Sr(ee.current,s||"",l||a||"text",p||"");se!==j.getModel()&&j.setModel(se)}},[p],$),st(()=>{if(ue.current&&ee.current){let j=ue.current.getModifiedEditor(),se=Sr(ee.current,i||"",u||a||"text",m||"");se!==j.getModel()&&j.setModel(se)}},[m],$),st(()=>{let j=ue.current.getModifiedEditor();j.getOption(ee.current.editor.EditorOption.readOnly)?j.setValue(i||""):i!==j.getValue()&&(j.executeEdits("",[{range:j.getModel().getFullModelRange(),text:i||"",forceMoveMarkers:!0}]),j.pushUndoStop())},[i],$),st(()=>{var j,se;(se=(j=ue.current)==null?void 0:j.getModel())==null||se.original.setValue(s||"")},[s],$),st(()=>{let{original:j,modified:se}=ue.current.getModel();ee.current.editor.setModelLanguage(j,l||a||"text"),ee.current.editor.setModelLanguage(se,u||a||"text")},[a,l,u],$),st(()=>{var j;(j=ee.current)==null||j.editor.setTheme(v)},[v],$),st(()=>{var j;(j=ue.current)==null||j.updateOptions(D)},[D],$);let ht=M.useCallback(()=>{var Ne;if(!ee.current)return;ae.current(ee.current);let j=Sr(ee.current,s||"",l||a||"text",p||""),se=Sr(ee.current,i||"",u||a||"text",m||"");(Ne=ue.current)==null||Ne.setModel({original:j,modified:se})},[a,i,u,s,l,p,m]),Ee=M.useCallback(()=>{var j;!it.current&&ze.current&&(ue.current=ee.current.editor.createDiffEditor(ze.current,{automaticLayout:!0,...D}),ht(),(j=ee.current)==null||j.editor.setTheme(v),he(!0),it.current=!0)},[D,v,ht]);M.useEffect(()=>{$&&ge.current(ue.current,ee.current)},[$]),M.useEffect(()=>{!le&&!$&&Ee()},[le,$,Ee]);function Re(){var se,Ne,Le,Lt;let j=(se=ue.current)==null?void 0:se.getModel();x||((Ne=j==null?void 0:j.original)==null||Ne.dispose()),g||((Le=j==null?void 0:j.modified)==null||Le.dispose()),(Lt=ue.current)==null||Lt.dispose()}return M.createElement(Mn,{width:P,height:O,isEditorReady:$,loading:w,_ref:ze,className:F,wrapperProps:B})}var ud=cd;M.memo(ud);function dd(s){let i=M.useRef();return M.useEffect(()=>{i.current=s},[s]),i.current}var pd=dd,Wa=new Map;function md({defaultValue:s,defaultLanguage:i,defaultPath:a,value:l,language:u,path:p,theme:m="light",line:x,loading:g="Loading...",options:v={},overrideServices:w={},saveViewState:D=!0,keepCurrentModel:O=!1,width:P="100%",height:F="100%",className:B,wrapperProps:R={},beforeMount:K=oa,onMount:$=oa,onChange:he,onValidate:le=oa}){let[J,ue]=M.useState(!1),[ee,ze]=M.useState(!0),ge=M.useRef(null),ae=M.useRef(null),it=M.useRef(null),ht=M.useRef($),Ee=M.useRef(K),Re=M.useRef(),j=M.useRef(l),se=pd(p),Ne=M.useRef(!1),Le=M.useRef(!1);Fn(()=>{let G=Qs.init();return G.then(be=>(ge.current=be)&&ze(!1)).catch(be=>(be==null?void 0:be.type)!=="cancelation"&&console.error("Monaco initialization: error:",be)),()=>ae.current?Wt():G.cancel()}),st(()=>{var be,Me,Ht,Xe;let G=Sr(ge.current,s||l||"",i||u||"",p||a||"");G!==((be=ae.current)==null?void 0:be.getModel())&&(D&&Wa.set(se,(Me=ae.current)==null?void 0:Me.saveViewState()),(Ht=ae.current)==null||Ht.setModel(G),D&&((Xe=ae.current)==null||Xe.restoreViewState(Wa.get(p))))},[p],J),st(()=>{var G;(G=ae.current)==null||G.updateOptions(v)},[v],J),st(()=>{!ae.current||l===void 0||(ae.current.getOption(ge.current.editor.EditorOption.readOnly)?ae.current.setValue(l):l!==ae.current.getValue()&&(Le.current=!0,ae.current.executeEdits("",[{range:ae.current.getModel().getFullModelRange(),text:l,forceMoveMarkers:!0}]),ae.current.pushUndoStop(),Le.current=!1))},[l],J),st(()=>{var be,Me;let G=(be=ae.current)==null?void 0:be.getModel();G&&u&&((Me=ge.current)==null||Me.editor.setModelLanguage(G,u))},[u],J),st(()=>{var G;x!==void 0&&((G=ae.current)==null||G.revealLine(x))},[x],J),st(()=>{var G;(G=ge.current)==null||G.editor.setTheme(m)},[m],J);let Lt=M.useCallback(()=>{var G;if(!(!it.current||!ge.current)&&!Ne.current){Ee.current(ge.current);let be=p||a,Me=Sr(ge.current,l||s||"",i||u||"",be||"");ae.current=(G=ge.current)==null?void 0:G.editor.create(it.current,{model:Me,automaticLayout:!0,...v},w),D&&ae.current.restoreViewState(Wa.get(be)),ge.current.editor.setTheme(m),x!==void 0&&ae.current.revealLine(x),ue(!0),Ne.current=!0}},[s,i,a,l,u,p,v,w,D,m,x]);M.useEffect(()=>{J&&ht.current(ae.current,ge.current)},[J]),M.useEffect(()=>{!ee&&!J&&Lt()},[ee,J,Lt]),j.current=l,M.useEffect(()=>{var G,be;J&&he&&((G=Re.current)==null||G.dispose(),Re.current=(be=ae.current)==null?void 0:be.onDidChangeModelContent(Me=>{Le.current||he(ae.current.getValue(),Me)}))},[J,he]),M.useEffect(()=>{if(J){let G=ge.current.editor.onDidChangeMarkers(be=>{var Ht;let Me=(Ht=ae.current.getModel())==null?void 0:Ht.uri;if(Me&&be.find(Xe=>Xe.path===Me.path)){let Xe=ge.current.editor.getModelMarkers({resource:Me});le==null||le(Xe)}});return()=>{G==null||G.dispose()}}return()=>{}},[J,le]);function Wt(){var G,be;(G=Re.current)==null||G.dispose(),O?D&&Wa.set(p,ae.current.saveViewState()):(be=ae.current.getModel())==null||be.dispose(),ae.current.dispose()}return M.createElement(Mn,{width:P,height:F,isEditorReady:J,loading:g,_ref:it,className:B,wrapperProps:R})}var fd=md,yd=M.memo(fd);const jn={keywords:[{name:"or",desc:["Logical OR. Applicable to boolean expressions."],syntax:["expr1 or expr2"],returns:["Boolean value, or series of boolean values."]},{name:"and",desc:["Logical AND. Applicable to boolean expressions."],syntax:["expr1 and expr2"],returns:["Boolean value, or series of boolean values."]},{name:"not",desc:["Logical negation (NOT). Applicable to boolean expressions."],syntax:["not expr1"],returns:["Boolean value, or series of boolean values."]},{name:"if",desc:["If statement defines what block of statements must be executed when conditions of the expression are satisfied.","To have access to and use the if statement, one should specify the version >= 2 of Pine Script® language in the very first line of code, for example: //@version=5","The 4th version of Pine Script® Language allows you to use “else if” syntax.","General code form:"],syntax:[`var_declarationX = if condition
40
40
  var_decl_then0
41
41
  var_decl_then1
42
42
 
@@ -102,16 +102,16 @@ else
102
102
 
103
103
  `}bold(i){return`**${i}**`}italic(i){return`*${i.replace(">","&gt;").replace("<","&lt;")}*`}pineCode(i){return`\`\`\`
104
104
  ${i}
105
- \`\`\``}code(i){return`\`${i}\``}paragraph(...i){return[this.paragraphBreak,...i,this.paragraphBreak].join(this.lineBreak)}link(i,a){return`[${i}](${a.href})`}}const ye=new vd;function wd(s,i=0,a=!0){const l=s[i];if(!l)return"";const u=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:p,title:m,desc:x,type:g,syntax:v,returns:w,remarks:D,fields:O}=l,R=[`${ye.bold(p)} (${m})`];if(s.length>1&&R.push(ye.italic(`+${s.length-1} overloads`)),R.push(ye.delimiter),x&&R.push(ye.paragraph(Array.isArray(x)?x.join(ye.lineBreak):x||"")),g&&R.push(ye.paragraph(ye.bold(yt.Type),ye.italic(g))),v&&v.length&&R.push(ye.paragraph(ye.bold(yt.Syntax),ye.pineCode(v.join(ye.lineBreak)))),w&&R.push(ye.paragraph(ye.bold(yt.Returns),ye.lineBreak,w.join(ye.lineBreak))),D&&D.length&&s.length<=1){let F="";typeof D=="string"?F=D:F=D.join(ye.lineBreak)||"",F.length<200&&R.push(ye.paragraph(ye.bold(yt.Remarks),ye.lineBreak,F))}if(O){const F=[];for(const B of O){const E=B.desc?` - ${B.desc}`:"";F.push(`${B.name} (${B.type}) ${E}`)}R.push(ye.paragraph(ye.bold(yt.Fields),ye.lineBreak,F.join(ye.paragraphBreak)))}return a&&R.push(ye.italic(`${ye.code(u?"⌘":"Ctrl")} + ${_d.clickOnKeywordForMoreHelp}`)),R.join(R.length===2?" ":ye.lineBreak)}function Td(s){return s.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}class Id{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}),this._bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=ye,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}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(i){return this._funcArgsCache.get(i)||this._userFuncArgsCache.get(i)}getSuggestions(i){return i?this._namespaceCache.get(i)||this._userNamespaceCache.get(i):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(i,a,l,u){this._initUserDefind();const p=this._mergeTreeSlices(this._generateTreeSlice(kt.methods,"method"),this._generateTreeSlice(u,"method"));this._getMethodNamespaceCache(p),this._userMethods=u,this._userTypes=a,this._userFunctions=i;const m=this._generateTreeSlice(i,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(l,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(i,a,l){const u=this._getUserVariableCompletionItems(l),p=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(i,void 0,!0);return[...p,...m,...u,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:i,keywords:a,types:l,functions:u}=this._builtinSubtreeCache,p=this._getVariableCompletionItems(i),m=this._getKeywordCompletionItems(a),x=this._getTypeCompletionItems(l),g=this._getFunctionCompletionItems(u),v=this._getSnippetsCompletionsList();return[...p,...m,...x,...g,...this._outermostNsItems.values(),...v]}_getNodeKey(i,a){return`${a}_${i}`}_mergeTreeSlices(...i){const a=new Map;for(const l of i)for(const[u,p]of l){const m=a.get(u);m?a.set(u,{...m,children:this._mergeTreeSlices(p.children,m.children)}):a.set(u,p)}return a}_mergeCompletions(i,a){const l=this._namespaceCache.get(i);l?this._namespaceCache.set(i,[...l,...a]):this._namespaceCache.set(i,a)}_mergeUserCompletions(i,a){const l=this._userNamespaceCache.get(i);l?this._userNamespaceCache.set(i,[...l,...a]):this._userNamespaceCache.set(i,a)}_generateTreeSlice(i,a){const l=new Map;for(const[u,p]of i){const[m,...x]=u.split("."),g=x.length>0,v=l.get(this._getNodeKey(m,g?"ns":a));let w=new Map,D=p.map(R=>({...R,name:u})),O=this._getNodeKey(u,a);if(g&&a!=="type"){const R=new Map([[x.join("."),p]]);D=[{name:m,title:Ie.namespace}],O=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(R,a)}v&&(D=[{name:m,title:Ie.namespace}],w=this._mergeTreeSlices(v.children,w)),l.set(O,{value:D,children:w})}return l}_getBuiltinsCacheFragment(){const{keywords:i,variables:a,constants:l,types:u,functions:p}=kt;return this._builtinSubtreeCache={keywords:this._generateTreeSlice(i,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(a,"var"),this._generateTreeSlice(l,"var")),types:this._generateTreeSlice(u,"type"),functions:this._generateTreeSlice(p,"fun")},this._builtinSubtreeCache}_getVariableCompletionItems(i,a){const l=[],u=[];for(const[p,m]of i){const{value:x,children:g}=m;if(p.startsWith("ns")){const v=this._getNamespaceCompletionItem(x[0]);if(a){u.push({...v});const D=`${a}.${v.label}`;v.label=D,v.insertText=D}const w=this._getVariableCompletionItems(g,v.label);a||this._outermostNsItems.set(p,v),l.push(...w)}else{const v=this._getVariableCompletionItem(x[0],a?3:2);if(a){u.push({...v});const{label:w}=v;v.label=`${a}.${w}`,v.insertText=`${a}.${v.insertText}`,v.filterText=`${w}\r`}l.push(v)}}return u.length&&a&&this._mergeCompletions(a,u),l}_setUserVariableSubItems(i,a){var v,w,D,O;let l=[];const u=Td(i.type||""),p=this._methodNamespaceCache.get(u),m=a?`${a}.${i.name}`:i.name;p&&(l=p.filter(R=>{var K;const F=`${u}.${R.label}`,B=kt.methods.get(F)||this._userMethods.get(F),E=B==null?void 0:B.some($=>!$.thisType||$.thisType[0].includes("<>")||$.thisType.includes(i.type||""));if(E&&B){const $=this._getNamedArgumentsCompletionList(((K=B[0])==null?void 0:K.args)||[]),he=`${m}.${R.label}`;this._userFuncArgsCache.set(he,$),this._methodFuncs.set(he,B)}return E}));const{types:x}=kt,g=((w=(v=this._userTypes.get(u))==null?void 0:v[0])==null?void 0:w.fields)||((O=(D=x.get(u))==null?void 0:D[0])==null?void 0:O.fields);if(g)for(const R of g){const F=R.name,B=R.type,E=this._getInstanceTypeCompletionItemProp({name:F,type:B});this._setUserVariableSubItems({name:F,type:B},i.name),l.push({...E})}l.length&&this._mergeUserCompletions(m,l)}_getUserVariableCompletionItems(i,a){const l=[],u=[];for(const[p,m]of i){const{value:x,children:g}=m;if(this._setUserVariableSubItems(x[0]),p.startsWith("ns")){const v=this._getNamespaceCompletionItem(x[0]);if(a){u.push({...v});const D=`${a}.${v.label}`;v.label=D,v.insertText=D}const w=this._getUserVariableCompletionItems(g,v.label);a||this._userOutermostNsItems.set(p,v),l.push(...w)}else{const v=this._getVariableCompletionItem(x[0],a?2:1,!0);if(a){u.push({...v});const{label:w}=v;v.label=`${a}.${w}`,v.insertText=`${a}.${v.insertText}`,v.filterText=`${w}\r`}l.push(v)}}return u.length&&a&&this._mergeUserCompletions(a,u),l}_getTypeCompletionItems(i,a=!1){const l=[];for(const[,u]of i){const{value:p}=u,m=a?this._getCustomTypeCompletionItem(p[0]):this._getTypeCompletionItem(p[0]);l.push(m)}return l}_getKeywordCompletionItems(i){const a=[];for(const[,l]of i){const{value:u}=l,p=this._getKeywordCompletionItem(u[0]);a.push(p)}return a}_getMethodNamespaceCache(i,a){const l=[];for(const[u,p]of i){const{value:m,children:x}=p;if(u.startsWith("ns")){const g=this._getNamespaceCompletionItem(m[0]);if(a){l.push({...g});const v=`${a}.${g.label}`;g.label=v,g.insertText=v}this._getMethodNamespaceCache(x,g.label)}else{const g=this._getFunctionCompletionItem(m[0],a?3:2);if(m.length>1&&(g.detail=`${g.detail} (+${m.length-1} overloads)`),a){l.push({...g});const{label:v}=g;g.label=`${a}.${v}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${v}\r`}}}a&&this._methodNamespaceCache.set(a,l)}_getFunctionCompletionItems(i,a,l=!1){const u=[],p=[];for(const[m,x]of i){const{value:g,children:v}=x;if(m.startsWith("ns")){const w=this._getNamespaceCompletionItem(g[0]);if(a){p.push({...w});const O=`${a}.${w.label}`;w.label=O,w.insertText=O}const D=this._getFunctionCompletionItems(v,w.label,l);a||(l?this._userOutermostNsItems.set(m,w):this._outermostNsItems.set(m,w)),u.push(...D)}else{const w=this._getFunctionCompletionItem(g[0],a?3:2,l);if(g.length>1&&(w.detail=`${w.detail} (+${g.length-1} overloads)`),a){p.push({...w});const{label:D}=w;w.label=`${a}.${D}`,w.insertText=`${a}.${w.insertText}`,w.filterText=`${D}\r`}u.push(w)}}return p.length&&a&&(l?this._mergeUserCompletions(a,p):this._mergeCompletions(a,p)),u}_getSnippetsCompletionsList(){return hd.map(i=>{const{label:a,kind:l,insertText:u}=i,p=a.charAt(0).toUpperCase()+a.substring(1),m={value:this._formatter.pineCode(u.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:a,detail:`(${p} ${l})`,insertText:u,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:at.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(i,a){for(const[l,u]of i){const{name:p}=u.value[0];if(l.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${p}`:p);else{const m=new Map;u.value.reduce((v,w)=>{const D=w.args;return D&&D.length&&D.forEach(O=>{v.set(O.name,O)}),v},m);const x=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${p}`:p;this._funcArgsCache.set(g,x)}}}_getUserFuncArgumentsCompletionItemsToCache(i,a){for(const[l,u]of i){const{name:p}=u.value[0];if(l.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${p}`:p);else{const m=new Map;u.value.reduce((v,w)=>{const D=w.args;return D&&D.length&&D.forEach(O=>{v.set(O.name,O)}),v},m);const x=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${p}`:p;this._userFuncArgsCache.set(g,x)}}}_getNamedArgumentsCompletionList(i){return i.map(a=>{const{name:l,desc:u,displayType:p}=a,m=`${l} = `,x=Array.isArray(u)?u.join(this._formatter.delimiter):u||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(Ie.Description),this._formatter.lineBreak,x)},insertText:m,detail:`(${Ie.parameter}) ${Ie.types} ${p}`,kind:at.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(i,a=2,l=!0){const u=this._extractExamples(i),p=this._extractDescription(i),m=[this._createDescriptionSection(p)];u.length?m.push(this._createExampleSection(u)):i.syntax&&i.syntax.length&&m.push(this._createSyntaxSection(i.syntax));const x={value:m.join(this._formatter.lineBreak)},g=l?Ie.variables:Ie.userDefinedVariable;return{documentation:x,label:i.name,insertText:i.name,kind:at.languages.CompletionItemKind.Variable,sortText:`${a}_${i.name}`,detail:`(${g}) ${i.type}`}}_getKeywordCompletionItem(i,a=2){const l=this._extractExamples(i),u=this._extractDescription(i),p=[this._createDescriptionSection(u)];return l.length?p.push(this._createExampleSection(l)):i.syntax&&i.syntax.length&&p.push(this._createSyntaxSection(i.syntax)),{documentation:{value:p.join(this._formatter.lineBreak)},label:i.name,insertText:i.name,kind:at.languages.CompletionItemKind.Keyword,sortText:`${a}_${i.name}`,detail:`(${Ie.keywords})`}}_getTypeCompletionItem(i){const a=this._extractDescription(i);return{documentation:{value:this._createDescriptionSection(a)},label:i.name,insertText:i.name,kind:at.languages.CompletionItemKind.Keyword,sortText:`1_${i.name}`,detail:`(${Ie.types})`}}_getCustomTypeCompletionItem(i){const a=this._extractDescription(i);return{documentation:{value:this._createDescriptionSection(a)},label:i.name,insertText:i.name,kind:at.languages.CompletionItemKind.Keyword,sortText:`2_${i.name}`,detail:`(${Ie.userDefinedType})`}}_getInstanceTypeCompletionItemProp(i){const a=this._extractDescription(i),l=[];return a&&l.push(this._formatter.paragraph(this._formatter.bold(yt.Description),this._formatter.lineBreak,a)),{documentation:{value:l.join(this._formatter.lineBreak)},label:i.name,insertText:i.name,kind:at.languages.CompletionItemKind.Field,sortText:`2_${i.name}`,detail:`(${Ie.field}) ${i.type}`}}_getFunctionCompletionItem(i,a=2,l=!0){var R;const u=i.returnedTypes&&i.returnedTypes[0]||i.syntax&&i.syntax[0]&&((R=i.syntax[0].split("→").pop())==null?void 0:R.trim()),p=this._extractExamples(i),m=this._extractDescription(i),x=[this._createDescriptionSection(m)];p.length?x.push(this._createExampleSection(p)):i.syntax&&i.syntax.length&&x.push(this._createSyntaxSection(i.syntax)),i.returns&&i.returns.length&&x.push(this._createReturnSection(i.returns));const g={value:x.join(this._formatter.lineBreak)},v=i.name,w=l?Ie.functions:Ie.userDefinedFunction,D=i.template,O=D?`${xd(v)}<\${1}>`:v;return{documentation:g,label:D?`${v.replace(/<.+>/,"")}<type>`:v,kind:at.languages.CompletionItemKind.Function,sortText:`${a}_${v}`,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:O+this._bracketsPostfix,detail:`(${w}) ${Ie.returns} ${u}`,command:{id:"tcc.editor.function",title:"",arguments:[D?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(i,a=2){const l=[this._createDescriptionSection(Ie.namespaceDesc)];return{label:i.name,documentation:{value:l.join(this._formatter.lineBreak)},detail:`(${Ie.namespace}) ${i.name}`,insertText:i.name,sortText:`${a}_${i.name}`,kind:at.languages.CompletionItemKind.Module}}_extractExamples(i){let a;return i.examples||i.detailedDesc&&((a=i.detailedDesc[0])===null||a===void 0?void 0:a.examples)||[]}_extractDescription(i){return Array.isArray(i.desc)?i.desc.join(this._formatter.lineBreak):i.desc||""}_createExampleSection(i){return this._formatter.paragraph(this._formatter.bold(yt.Example),this._formatter.pineCode(i.join(this._formatter.lineBreak)))}_createSyntaxSection(i){return this._formatter.paragraph(this._formatter.bold(yt.Syntax),this._formatter.pineCode(i.join(this._formatter.lineBreak)))}_createReturnSection(i){return this._formatter.paragraph(this._formatter.bold(yt.Returns),this._formatter.lineBreak,i.join(this._formatter.lineBreak))}_createDescriptionSection(i){return!i||i.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(yt.Description),this._formatter.lineBreak,i)}}const zr=new Id;class Dd{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,"_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._overloadsFuncs=[]}setUserDefined(i,a){const{functions:l,variables:u,types:p,methods:m}=i;l&&(this._userFunctions=l),u&&(this._userVariables=u),p&&(this._userTypes=p),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(i,a,l){const u=i.indexOf("//");if(this._removeString(i).indexOf("//")!==-1&&u<=a)return;i=i+" ";const p=this._getVariablesDocVal(i,a,l);if(p)return p;const m=this._getFuncsDocVal(i,a,l);if(m)return m;const x=i.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(x){const g=this._matchContent(x,i,a);if(g){const v=this._getBuildInOther(g.name);if(v)return{docValue:v,isBuildIn:!0,index:0};{const w=this._getBuildInFunc(`${g.name}<type>`);if(w)return{docValue:w,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(i){return kt.functions.get(i)}_getBuildInMethod(i){return kt.methods.get(i)}_getBuildInOther(i){const{keywords:a,variables:l,constants:u,types:p}=kt;return a.get(i)||l.get(i)||u.get(i)||p.get(i)}parseCurrentInputFunc(i,a=!1,l=!1){let u=i.length-1,p=0,m=a,x=l;for(;u>=0;){const g=i.charAt(u);if(u-=1,/['"]/.test(g)){const v=g;if(g==="'"){if(m){m=!1;continue}}else if(x){x=!1;continue}for(;u>=0;){const w=i.charAt(u);if(u-=1,w===v)break}}if(!(m||x)&&(/\)/.test(g)&&(p+=1),/\(/.test(g))){if(p>0){p-=1;continue}let v="";for(;u>=0;){const w=i.charAt(u);if(u-=1,!(/\s/.test(w)&&!v)){if(/[^\w.]/.test(w))break;v=w+v}}if(v)return{funcName:v,startIndex:u+1}}}}parseCurrentInputFuncAndArg(i,a=!1,l=!1){const{funcName:u,startIndex:p}=this.parseCurrentInputFunc(i,a,l)||{};if(u&&typeof p=="number"){let m=i.slice(p+u.length).trim().slice(1),x=-1;if(a&&(x=m.lastIndexOf("'")),l){const w=m.lastIndexOf('"');(w!==-1&&w<x||x===-1)&&(x=w)}x!==-1&&(m=m.substring(0,x));const v=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(w=>{const D=w.trim().split("=");return D.length<=1?"":D[0].trim()});return{funcName:u,args:v}}}_removeString(i){return i.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(i,a,l){const u=this._removeString(i).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(u){const p=this._matchContent(u,i,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},x=this._getBuildInOther(p.name);if(x)return m.docValue=x,m;const g=this._getUserVariablesDocVal(p.name,a,l);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1});const v=this._getUserTypesDocVal(p.name);if(v)return Object.assign(m,{docValue:v,isBuildIn:!1});const w=this._getTypesAndFileds(i,p.name,a,l);if(w&&typeof w!="string")return Object.assign(m,{docValue:[w],isBuildIn:!1})}}}_getUserVariablesDocVal(i,a,l){const m=[...this._userVariables.get(i)||[]].sort((x,g)=>(g.scope||0)-(x.scope||0)).find(x=>{const g=x.range;return((g==null?void 0:g.startColumn)||0)<=a&&((g==null?void 0:g.startLineNumber)||0)<=l&&((g==null?void 0:g.endLineNumber)||0)>=l});if(m)return m.title=Ie.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(i){const a=this._userTypes.get(i);if(a)return a[0].title=Ie.userDefinedType,a}_getTypesAndFileds(i,a,l,u){var p,m;if(a.includes(".")){const x=a.split(".");let g=x[0],v,w=null,D=i.indexOf(a,l-a.length)+1,O=D+g.length-1;for(const R of x.slice(1)){if(!w){const F=D<=l&&O>=l,B=this._getUserVariablesDocVal(g,l,u);if(F&&B)return B;w=B==null?void 0:B.type}if(w){v=w,D=O+2,O=O+R.length+1;const F=this._userTypes.get(w)||kt.types.get(w),B=(m=(p=F==null?void 0:F[0])==null?void 0:p.fields)==null?void 0:m.find(E=>E.name===R);if(B&&D<=l&&O>=l)return{name:`${w}.${R}`,desc:B.desc,type:this._arrayTypeTransform(B.type),title:Ie.field};w=B==null?void 0:B.type}else g=`${g}.${R}`,O=O+R.length+1}return v}}_getFuncsDocVal(i,a,l){const u=i.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(u){const p=this._matchContent(u,i,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},x=this._getBuildInFunc(p.name);if(x)return m.index=this._getOverloadsFuncIndex(x,a,p.name,l),Object.assign(m,{docValue:x});const g=this._getUserFuncsDocVal(p.name);if(g)return Object.assign(m,{docValue:g,isBuildIn:!1});const v=this._getUserVarFuncsDocVal(i,p.name,a,l);if(v)return Object.assign(m,{docValue:[v],isBuildIn:!1})}}}_getOverloadsFuncIndex(i,a,l,u){if(i.length>1){const p=this._overloadsFuncs.find(m=>m.name===l&&m.line===u&&m.startColumn<=a&&m.endColumn>=a);if(p)return p.index}return 0}_getUserFuncsDocVal(i){const a=this._userFunctions.get(i);if(a)return a[0].title=Ie.userDefinedFunction,a}_getUserMethodsDocVal(i){const a=this._userMethods.get(i);if(a)return a[0].title=Ie.userDefinedMethod,a}_getUserVarFuncsDocVal(i,a,l,u){var p;if(a.includes(".")){const m=a.split("."),x=this._getTypesAndFileds(i,a,l,u);if(typeof x=="string"){const v=`${this._arrayTypeTransform(x).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,w=this._getBuildInMethod(v);if(w){const D=this._getOverloadsFuncIndex(w,l,v,u);return{...w[0],name:v,index:D}}return(p=this._getUserMethodsDocVal(v))==null?void 0:p[0]}else return x}}_arrayTypeTransform(i=""){return i.includes("[]")?`array<${i.replace("[]","")}>`:i}_matchContent(i,a,l){let u=0;for(const p of i){u=l-p.length;const m=a.indexOf(p,u);if(u=m+p.length,this._judgeVal(a,m,u)&&m+1<=l&&u>=l)return{name:p,endIndex:u}}}_judgeVal(i,a,l){const u=i.charAt(a-1),p=/[\w\d."']/;if(p.test(u))return!1;const m=i.charAt(l);return!p.test(m)}}const la=new Dd;var Ha={exports:{}};/**
105
+ \`\`\``}code(i){return`\`${i}\``}paragraph(...i){return[this.paragraphBreak,...i,this.paragraphBreak].join(this.lineBreak)}link(i,a){return`[${i}](${a.href})`}}const ye=new vd;function wd(s,i=0,a=!0){const l=s[i];if(!l)return"";const u=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:p,title:m,desc:x,type:g,syntax:v,returns:w,remarks:D,fields:O}=l,P=[`${ye.bold(p)} (${m})`];if(s.length>1&&P.push(ye.italic(`+${s.length-1} overloads`)),P.push(ye.delimiter),x&&P.push(ye.paragraph(Array.isArray(x)?x.join(ye.lineBreak):x||"")),g&&P.push(ye.paragraph(ye.bold(yt.Type),ye.italic(g))),v&&v.length&&P.push(ye.paragraph(ye.bold(yt.Syntax),ye.pineCode(v.join(ye.lineBreak)))),w&&P.push(ye.paragraph(ye.bold(yt.Returns),ye.lineBreak,w.join(ye.lineBreak))),D&&D.length&&s.length<=1){let F="";typeof D=="string"?F=D:F=D.join(ye.lineBreak)||"",F.length<200&&P.push(ye.paragraph(ye.bold(yt.Remarks),ye.lineBreak,F))}if(O){const F=[];for(const B of O){const R=B.desc?` - ${B.desc}`:"";F.push(`${B.name} (${B.type}) ${R}`)}P.push(ye.paragraph(ye.bold(yt.Fields),ye.lineBreak,F.join(ye.paragraphBreak)))}return a&&P.push(ye.italic(`${ye.code(u?"⌘":"Ctrl")} + ${_d.clickOnKeywordForMoreHelp}`)),P.join(P.length===2?" ":ye.lineBreak)}function Td(s){return s.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}class Id{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}),this._bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=ye,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}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(i){return this._funcArgsCache.get(i)||this._userFuncArgsCache.get(i)}getSuggestions(i){return i?this._namespaceCache.get(i)||this._userNamespaceCache.get(i):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(i,a,l,u){this._initUserDefind();const p=this._mergeTreeSlices(this._generateTreeSlice(kt.methods,"method"),this._generateTreeSlice(u,"method"));this._getMethodNamespaceCache(p),this._userMethods=u,this._userTypes=a,this._userFunctions=i;const m=this._generateTreeSlice(i,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(l,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(i,a,l){const u=this._getUserVariableCompletionItems(l),p=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(i,void 0,!0);return[...p,...m,...u,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:i,keywords:a,types:l,functions:u}=this._builtinSubtreeCache,p=this._getVariableCompletionItems(i),m=this._getKeywordCompletionItems(a),x=this._getTypeCompletionItems(l),g=this._getFunctionCompletionItems(u),v=this._getSnippetsCompletionsList();return[...p,...m,...x,...g,...this._outermostNsItems.values(),...v]}_getNodeKey(i,a){return`${a}_${i}`}_mergeTreeSlices(...i){const a=new Map;for(const l of i)for(const[u,p]of l){const m=a.get(u);m?a.set(u,{...m,children:this._mergeTreeSlices(p.children,m.children)}):a.set(u,p)}return a}_mergeCompletions(i,a){const l=this._namespaceCache.get(i);l?this._namespaceCache.set(i,[...l,...a]):this._namespaceCache.set(i,a)}_mergeUserCompletions(i,a){const l=this._userNamespaceCache.get(i);l?this._userNamespaceCache.set(i,[...l,...a]):this._userNamespaceCache.set(i,a)}_generateTreeSlice(i,a){const l=new Map;for(const[u,p]of i){const[m,...x]=u.split("."),g=x.length>0,v=l.get(this._getNodeKey(m,g?"ns":a));let w=new Map,D=p.map(P=>({...P,name:u})),O=this._getNodeKey(u,a);if(g&&a!=="type"){const P=new Map([[x.join("."),p]]);D=[{name:m,title:Ie.namespace}],O=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(P,a)}v&&(D=[{name:m,title:Ie.namespace}],w=this._mergeTreeSlices(v.children,w)),l.set(O,{value:D,children:w})}return l}_getBuiltinsCacheFragment(){const{keywords:i,variables:a,constants:l,types:u,functions:p}=kt;return this._builtinSubtreeCache={keywords:this._generateTreeSlice(i,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(a,"var"),this._generateTreeSlice(l,"var")),types:this._generateTreeSlice(u,"type"),functions:this._generateTreeSlice(p,"fun")},this._builtinSubtreeCache}_getVariableCompletionItems(i,a){const l=[],u=[];for(const[p,m]of i){const{value:x,children:g}=m;if(p.startsWith("ns")){const v=this._getNamespaceCompletionItem(x[0]);if(a){u.push({...v});const D=`${a}.${v.label}`;v.label=D,v.insertText=D}const w=this._getVariableCompletionItems(g,v.label);a||this._outermostNsItems.set(p,v),l.push(...w)}else{const v=this._getVariableCompletionItem(x[0],a?3:2);if(a){u.push({...v});const{label:w}=v;v.label=`${a}.${w}`,v.insertText=`${a}.${v.insertText}`,v.filterText=`${w}\r`}l.push(v)}}return u.length&&a&&this._mergeCompletions(a,u),l}_setUserVariableSubItems(i,a){var v,w,D,O;let l=[];const u=Td(i.type||""),p=this._methodNamespaceCache.get(u),m=a?`${a}.${i.name}`:i.name;p&&(l=p.filter(P=>{var K;const F=`${u}.${P.label}`,B=kt.methods.get(F)||this._userMethods.get(F),R=B==null?void 0:B.some($=>!$.thisType||$.thisType[0].includes("<>")||$.thisType.includes(i.type||""));if(R&&B){const $=this._getNamedArgumentsCompletionList(((K=B[0])==null?void 0:K.args)||[]),he=`${m}.${P.label}`;this._userFuncArgsCache.set(he,$),this._methodFuncs.set(he,B)}return R}));const{types:x}=kt,g=((w=(v=this._userTypes.get(u))==null?void 0:v[0])==null?void 0:w.fields)||((O=(D=x.get(u))==null?void 0:D[0])==null?void 0:O.fields);if(g)for(const P of g){const F=P.name,B=P.type,R=this._getInstanceTypeCompletionItemProp({name:F,type:B});this._setUserVariableSubItems({name:F,type:B},i.name),l.push({...R})}l.length&&this._mergeUserCompletions(m,l)}_getUserVariableCompletionItems(i,a){const l=[],u=[];for(const[p,m]of i){const{value:x,children:g}=m;if(this._setUserVariableSubItems(x[0]),p.startsWith("ns")){const v=this._getNamespaceCompletionItem(x[0]);if(a){u.push({...v});const D=`${a}.${v.label}`;v.label=D,v.insertText=D}const w=this._getUserVariableCompletionItems(g,v.label);a||this._userOutermostNsItems.set(p,v),l.push(...w)}else{const v=this._getVariableCompletionItem(x[0],a?2:1,!0);if(a){u.push({...v});const{label:w}=v;v.label=`${a}.${w}`,v.insertText=`${a}.${v.insertText}`,v.filterText=`${w}\r`}l.push(v)}}return u.length&&a&&this._mergeUserCompletions(a,u),l}_getTypeCompletionItems(i,a=!1){const l=[];for(const[,u]of i){const{value:p}=u,m=a?this._getCustomTypeCompletionItem(p[0]):this._getTypeCompletionItem(p[0]);l.push(m)}return l}_getKeywordCompletionItems(i){const a=[];for(const[,l]of i){const{value:u}=l,p=this._getKeywordCompletionItem(u[0]);a.push(p)}return a}_getMethodNamespaceCache(i,a){const l=[];for(const[u,p]of i){const{value:m,children:x}=p;if(u.startsWith("ns")){const g=this._getNamespaceCompletionItem(m[0]);if(a){l.push({...g});const v=`${a}.${g.label}`;g.label=v,g.insertText=v}this._getMethodNamespaceCache(x,g.label)}else{const g=this._getFunctionCompletionItem(m[0],a?3:2);if(m.length>1&&(g.detail=`${g.detail} (+${m.length-1} overloads)`),a){l.push({...g});const{label:v}=g;g.label=`${a}.${v}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${v}\r`}}}a&&this._methodNamespaceCache.set(a,l)}_getFunctionCompletionItems(i,a,l=!1){const u=[],p=[];for(const[m,x]of i){const{value:g,children:v}=x;if(m.startsWith("ns")){const w=this._getNamespaceCompletionItem(g[0]);if(a){p.push({...w});const O=`${a}.${w.label}`;w.label=O,w.insertText=O}const D=this._getFunctionCompletionItems(v,w.label,l);a||(l?this._userOutermostNsItems.set(m,w):this._outermostNsItems.set(m,w)),u.push(...D)}else{const w=this._getFunctionCompletionItem(g[0],a?3:2,l);if(g.length>1&&(w.detail=`${w.detail} (+${g.length-1} overloads)`),a){p.push({...w});const{label:D}=w;w.label=`${a}.${D}`,w.insertText=`${a}.${w.insertText}`,w.filterText=`${D}\r`}u.push(w)}}return p.length&&a&&(l?this._mergeUserCompletions(a,p):this._mergeCompletions(a,p)),u}_getSnippetsCompletionsList(){return hd.map(i=>{const{label:a,kind:l,insertText:u}=i,p=a.charAt(0).toUpperCase()+a.substring(1),m={value:this._formatter.pineCode(u.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:a,detail:`(${p} ${l})`,insertText:u,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:at.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(i,a){for(const[l,u]of i){const{name:p}=u.value[0];if(l.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${p}`:p);else{const m=new Map;u.value.reduce((v,w)=>{const D=w.args;return D&&D.length&&D.forEach(O=>{v.set(O.name,O)}),v},m);const x=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${p}`:p;this._funcArgsCache.set(g,x)}}}_getUserFuncArgumentsCompletionItemsToCache(i,a){for(const[l,u]of i){const{name:p}=u.value[0];if(l.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${p}`:p);else{const m=new Map;u.value.reduce((v,w)=>{const D=w.args;return D&&D.length&&D.forEach(O=>{v.set(O.name,O)}),v},m);const x=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${p}`:p;this._userFuncArgsCache.set(g,x)}}}_getNamedArgumentsCompletionList(i){return i.map(a=>{const{name:l,desc:u,displayType:p}=a,m=`${l} = `,x=Array.isArray(u)?u.join(this._formatter.delimiter):u||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(Ie.Description),this._formatter.lineBreak,x)},insertText:m,detail:`(${Ie.parameter}) ${Ie.types} ${p}`,kind:at.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(i,a=2,l=!0){const u=this._extractExamples(i),p=this._extractDescription(i),m=[this._createDescriptionSection(p)];u.length?m.push(this._createExampleSection(u)):i.syntax&&i.syntax.length&&m.push(this._createSyntaxSection(i.syntax));const x={value:m.join(this._formatter.lineBreak)},g=l?Ie.variables:Ie.userDefinedVariable;return{documentation:x,label:i.name,insertText:i.name,kind:at.languages.CompletionItemKind.Variable,sortText:`${a}_${i.name}`,detail:`(${g}) ${i.type}`}}_getKeywordCompletionItem(i,a=2){const l=this._extractExamples(i),u=this._extractDescription(i),p=[this._createDescriptionSection(u)];return l.length?p.push(this._createExampleSection(l)):i.syntax&&i.syntax.length&&p.push(this._createSyntaxSection(i.syntax)),{documentation:{value:p.join(this._formatter.lineBreak)},label:i.name,insertText:i.name,kind:at.languages.CompletionItemKind.Keyword,sortText:`${a}_${i.name}`,detail:`(${Ie.keywords})`}}_getTypeCompletionItem(i){const a=this._extractDescription(i);return{documentation:{value:this._createDescriptionSection(a)},label:i.name,insertText:i.name,kind:at.languages.CompletionItemKind.Keyword,sortText:`1_${i.name}`,detail:`(${Ie.types})`}}_getCustomTypeCompletionItem(i){const a=this._extractDescription(i);return{documentation:{value:this._createDescriptionSection(a)},label:i.name,insertText:i.name,kind:at.languages.CompletionItemKind.Keyword,sortText:`2_${i.name}`,detail:`(${Ie.userDefinedType})`}}_getInstanceTypeCompletionItemProp(i){const a=this._extractDescription(i),l=[];return a&&l.push(this._formatter.paragraph(this._formatter.bold(yt.Description),this._formatter.lineBreak,a)),{documentation:{value:l.join(this._formatter.lineBreak)},label:i.name,insertText:i.name,kind:at.languages.CompletionItemKind.Field,sortText:`2_${i.name}`,detail:`(${Ie.field}) ${i.type}`}}_getFunctionCompletionItem(i,a=2,l=!0){var P;const u=i.returnedTypes&&i.returnedTypes[0]||i.syntax&&i.syntax[0]&&((P=i.syntax[0].split("→").pop())==null?void 0:P.trim()),p=this._extractExamples(i),m=this._extractDescription(i),x=[this._createDescriptionSection(m)];p.length?x.push(this._createExampleSection(p)):i.syntax&&i.syntax.length&&x.push(this._createSyntaxSection(i.syntax)),i.returns&&i.returns.length&&x.push(this._createReturnSection(i.returns));const g={value:x.join(this._formatter.lineBreak)},v=i.name,w=l?Ie.functions:Ie.userDefinedFunction,D=i.template,O=D?`${xd(v)}<\${1}>`:v;return{documentation:g,label:D?`${v.replace(/<.+>/,"")}<type>`:v,kind:at.languages.CompletionItemKind.Function,sortText:`${a}_${v}`,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:O+this._bracketsPostfix,detail:`(${w}) ${Ie.returns} ${u}`,command:{id:"tcc.editor.function",title:"",arguments:[D?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(i,a=2){const l=[this._createDescriptionSection(Ie.namespaceDesc)];return{label:i.name,documentation:{value:l.join(this._formatter.lineBreak)},detail:`(${Ie.namespace}) ${i.name}`,insertText:i.name,sortText:`${a}_${i.name}`,kind:at.languages.CompletionItemKind.Module}}_extractExamples(i){let a;return i.examples||i.detailedDesc&&((a=i.detailedDesc[0])===null||a===void 0?void 0:a.examples)||[]}_extractDescription(i){return Array.isArray(i.desc)?i.desc.join(this._formatter.lineBreak):i.desc||""}_createExampleSection(i){return this._formatter.paragraph(this._formatter.bold(yt.Example),this._formatter.pineCode(i.join(this._formatter.lineBreak)))}_createSyntaxSection(i){return this._formatter.paragraph(this._formatter.bold(yt.Syntax),this._formatter.pineCode(i.join(this._formatter.lineBreak)))}_createReturnSection(i){return this._formatter.paragraph(this._formatter.bold(yt.Returns),this._formatter.lineBreak,i.join(this._formatter.lineBreak))}_createDescriptionSection(i){return!i||i.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(yt.Description),this._formatter.lineBreak,i)}}const zr=new Id;class Dd{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,"_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._overloadsFuncs=[]}setUserDefined(i,a){const{functions:l,variables:u,types:p,methods:m}=i;l&&(this._userFunctions=l),u&&(this._userVariables=u),p&&(this._userTypes=p),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(i,a,l){const u=i.indexOf("//");if(this._removeString(i).indexOf("//")!==-1&&u<=a)return;i=i+" ";const p=this._getVariablesDocVal(i,a,l);if(p)return p;const m=this._getFuncsDocVal(i,a,l);if(m)return m;const x=i.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(x){const g=this._matchContent(x,i,a);if(g){const v=this._getBuildInOther(g.name);if(v)return{docValue:v,isBuildIn:!0,index:0};{const w=this._getBuildInFunc(`${g.name}<type>`);if(w)return{docValue:w,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(i){return kt.functions.get(i)}_getBuildInMethod(i){return kt.methods.get(i)}_getBuildInOther(i){const{keywords:a,variables:l,constants:u,types:p}=kt;return a.get(i)||l.get(i)||u.get(i)||p.get(i)}parseCurrentInputFunc(i,a=!1,l=!1){let u=i.length-1,p=0,m=a,x=l;for(;u>=0;){const g=i.charAt(u);if(u-=1,/['"]/.test(g)){const v=g;if(g==="'"){if(m){m=!1;continue}}else if(x){x=!1;continue}for(;u>=0;){const w=i.charAt(u);if(u-=1,w===v)break}}if(!(m||x)&&(/\)/.test(g)&&(p+=1),/\(/.test(g))){if(p>0){p-=1;continue}let v="";for(;u>=0;){const w=i.charAt(u);if(u-=1,!(/\s/.test(w)&&!v)){if(/[^\w.]/.test(w))break;v=w+v}}if(v)return{funcName:v,startIndex:u+1}}}}parseCurrentInputFuncAndArg(i,a=!1,l=!1){const{funcName:u,startIndex:p}=this.parseCurrentInputFunc(i,a,l)||{};if(u&&typeof p=="number"){let m=i.slice(p+u.length).trim().slice(1),x=-1;if(a&&(x=m.lastIndexOf("'")),l){const w=m.lastIndexOf('"');(w!==-1&&w<x||x===-1)&&(x=w)}x!==-1&&(m=m.substring(0,x));const v=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(w=>{const D=w.trim().split("=");return D.length<=1?"":D[0].trim()});return{funcName:u,args:v}}}_removeString(i){return i.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(i,a,l){const u=this._removeString(i).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(u){const p=this._matchContent(u,i,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},x=this._getBuildInOther(p.name);if(x)return m.docValue=x,m;const g=this._getUserVariablesDocVal(p.name,a,l);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1});const v=this._getUserTypesDocVal(p.name);if(v)return Object.assign(m,{docValue:v,isBuildIn:!1});const w=this._getTypesAndFileds(i,p.name,a,l);if(w&&typeof w!="string")return Object.assign(m,{docValue:[w],isBuildIn:!1})}}}_getUserVariablesDocVal(i,a,l){const m=[...this._userVariables.get(i)||[]].sort((x,g)=>(g.scope||0)-(x.scope||0)).find(x=>{const g=x.range;return((g==null?void 0:g.startColumn)||0)<=a&&((g==null?void 0:g.startLineNumber)||0)<=l&&((g==null?void 0:g.endLineNumber)||0)>=l});if(m)return m.title=Ie.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(i){const a=this._userTypes.get(i);if(a)return a[0].title=Ie.userDefinedType,a}_getTypesAndFileds(i,a,l,u){var p,m;if(a.includes(".")){const x=a.split(".");let g=x[0],v,w=null,D=i.indexOf(a,l-a.length)+1,O=D+g.length-1;for(const P of x.slice(1)){if(!w){const F=D<=l&&O>=l,B=this._getUserVariablesDocVal(g,l,u);if(F&&B)return B;w=B==null?void 0:B.type}if(w){v=w,D=O+2,O=O+P.length+1;const F=this._userTypes.get(w)||kt.types.get(w),B=(m=(p=F==null?void 0:F[0])==null?void 0:p.fields)==null?void 0:m.find(R=>R.name===P);if(B&&D<=l&&O>=l)return{name:`${w}.${P}`,desc:B.desc,type:this._arrayTypeTransform(B.type),title:Ie.field};w=B==null?void 0:B.type}else g=`${g}.${P}`,O=O+P.length+1}return v}}_getFuncsDocVal(i,a,l){const u=i.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(u){const p=this._matchContent(u,i,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},x=this._getBuildInFunc(p.name);if(x)return m.index=this._getOverloadsFuncIndex(x,a,p.name,l),Object.assign(m,{docValue:x});const g=this._getUserFuncsDocVal(p.name);if(g)return Object.assign(m,{docValue:g,isBuildIn:!1});const v=this._getUserVarFuncsDocVal(i,p.name,a,l);if(v)return Object.assign(m,{docValue:[v],isBuildIn:!1})}}}_getOverloadsFuncIndex(i,a,l,u){if(i.length>1){const p=this._overloadsFuncs.find(m=>m.name===l&&m.line===u&&m.startColumn<=a&&m.endColumn>=a);if(p)return p.index}return 0}_getUserFuncsDocVal(i){const a=this._userFunctions.get(i);if(a)return a[0].title=Ie.userDefinedFunction,a}_getUserMethodsDocVal(i){const a=this._userMethods.get(i);if(a)return a[0].title=Ie.userDefinedMethod,a}_getUserVarFuncsDocVal(i,a,l,u){var p;if(a.includes(".")){const m=a.split("."),x=this._getTypesAndFileds(i,a,l,u);if(typeof x=="string"){const v=`${this._arrayTypeTransform(x).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,w=this._getBuildInMethod(v);if(w){const D=this._getOverloadsFuncIndex(w,l,v,u);return{...w[0],name:v,index:D}}return(p=this._getUserMethodsDocVal(v))==null?void 0:p[0]}else return x}}_arrayTypeTransform(i=""){return i.includes("[]")?`array<${i.replace("[]","")}>`:i}_matchContent(i,a,l){let u=0;for(const p of i){u=l-p.length;const m=a.indexOf(p,u);if(u=m+p.length,this._judgeVal(a,m,u)&&m+1<=l&&u>=l)return{name:p,endIndex:u}}}_judgeVal(i,a,l){const u=i.charAt(a-1),p=/[\w\d."']/;if(p.test(u))return!1;const m=i.charAt(l);return!p.test(m)}}const la=new Dd;var Ha={exports:{}};/**
106
106
  * @license
107
107
  * Lodash <https://lodash.com/>
108
108
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
109
109
  * Released under MIT license <https://lodash.com/license>
110
110
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
111
111
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
112
- */Ha.exports,function(s,i){(function(){var a,l="4.17.21",u=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",x="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",v=500,w="__lodash_placeholder__",D=1,O=2,R=4,F=1,B=2,E=1,K=2,$=4,he=8,le=16,J=32,ue=64,ee=128,ze=256,ge=512,ae=30,it="...",ht=800,Pe=16,Ee=1,j=2,se=3,Ne=1/0,Le=9007199254740991,Lt=17976931348623157e292,Wt=NaN,G=4294967295,be=G-1,Me=G>>>1,Ht=[["ary",ee],["bind",E],["bindKey",K],["curry",he],["curryRight",le],["flip",ge],["partial",J],["partialRight",ue],["rearg",ze]],Xe="[object Arguments]",ir="[object Array]",pa="[object AsyncFunction]",Mt="[object Boolean]",$t="[object Date]",Or="[object DOMException]",Rr="[object Error]",gr="[object Function]",Ja="[object GeneratorFunction]",nt="[object Map]",Ft="[object Number]",Pr="[object Null]",_t="[object Object]",ma="[object Promise]",Er="[object Proxy]",br="[object RegExp]",ot="[object Set]",Xt="[object String]",Lr="[object Symbol]",oi="[object Undefined]",nr="[object WeakMap]",Za="[object WeakSet]",Ct="[object ArrayBuffer]",or="[object DataView]",Mr="[object Float32Array]",Fr="[object Float64Array]",xr="[object Int8Array]",fa="[object Int16Array]",ya="[object Int32Array]",ha="[object Uint8Array]",_a="[object Uint8ClampedArray]",ga="[object Uint16Array]",ba="[object Uint32Array]",li=/\b__p \+= '';/g,xa=/\b(__p \+=) '' \+/g,es=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gt=/&(?:amp|lt|gt|quot|#39);/g,Br=/[&<>"']/g,va=RegExp(Gt.source),ts=RegExp(Br.source),ci=/<%-([\s\S]+?)%>/g,rs=/<%([\s\S]+?)%>/g,as=/<%=([\s\S]+?)%>/g,ss=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,is=/^\w*$/,ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wa=/[\\^$.*+?()[\]{}|]/g,ns=RegExp(wa.source),Ta=/^\s+/,di=/\s/,pi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mi=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,S=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,z=/[()=,{}\[\]\/\s]/,X=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,Be=/^\[object .+?Constructor\]$/,De=/^0o[0-7]+$/i,Ae=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,St=/($^)/,os=/['\n\r\u2028\u2029\\]/g,Je="\\ud800-\\udfff",_p="\\u0300-\\u036f",gp="\\ufe20-\\ufe2f",bp="\\u20d0-\\u20ff",Po=_p+gp+bp,Eo="\\u2700-\\u27bf",Lo="a-z\\xdf-\\xf6\\xf8-\\xff",xp="\\xac\\xb1\\xd7\\xf7",vp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",wp="\\u2000-\\u206f",Tp=" \\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",Mo="A-Z\\xc0-\\xd6\\xd8-\\xde",Fo="\\ufe0e\\ufe0f",Bo=xp+vp+wp+Tp,fi="['’]",Ip="["+Je+"]",jo="["+Bo+"]",ls="["+Po+"]",Uo="\\d+",Dp="["+Eo+"]",Wo="["+Lo+"]",Ho="[^"+Je+Bo+Uo+Eo+Lo+Mo+"]",yi="\\ud83c[\\udffb-\\udfff]",kp="(?:"+ls+"|"+yi+")",$o="[^"+Je+"]",hi="(?:\\ud83c[\\udde6-\\uddff]){2}",_i="[\\ud800-\\udbff][\\udc00-\\udfff]",jr="["+Mo+"]",Xo="\\u200d",Go="(?:"+Wo+"|"+Ho+")",Ap="(?:"+jr+"|"+Ho+")",Yo="(?:"+fi+"(?:d|ll|m|re|s|t|ve))?",Vo="(?:"+fi+"(?:D|LL|M|RE|S|T|VE))?",Ko=kp+"?",Qo="["+Fo+"]?",qp="(?:"+Xo+"(?:"+[$o,hi,_i].join("|")+")"+Qo+Ko+")*",Cp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jo=Qo+Ko+qp,zp="(?:"+[Dp,hi,_i].join("|")+")"+Jo,Np="(?:"+[$o+ls+"?",ls,hi,_i,Ip].join("|")+")",Op=RegExp(fi,"g"),Rp=RegExp(ls,"g"),gi=RegExp(yi+"(?="+yi+")|"+Np+Jo,"g"),Pp=RegExp([jr+"?"+Wo+"+"+Yo+"(?="+[jo,jr,"$"].join("|")+")",Ap+"+"+Vo+"(?="+[jo,jr+Go,"$"].join("|")+")",jr+"?"+Go+"+"+Yo,jr+"+"+Vo,Sp,Cp,Uo,zp].join("|"),"g"),Ep=RegExp("["+Xo+Je+Po+Fo+"]"),Lp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mp=["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"],Fp=-1,we={};we[Mr]=we[Fr]=we[xr]=we[fa]=we[ya]=we[ha]=we[_a]=we[ga]=we[ba]=!0,we[Xe]=we[ir]=we[Ct]=we[Mt]=we[or]=we[$t]=we[Rr]=we[gr]=we[nt]=we[Ft]=we[_t]=we[br]=we[ot]=we[Xt]=we[nr]=!1;var ve={};ve[Xe]=ve[ir]=ve[Ct]=ve[or]=ve[Mt]=ve[$t]=ve[Mr]=ve[Fr]=ve[xr]=ve[fa]=ve[ya]=ve[nt]=ve[Ft]=ve[_t]=ve[br]=ve[ot]=ve[Xt]=ve[Lr]=ve[ha]=ve[_a]=ve[ga]=ve[ba]=!0,ve[Rr]=ve[gr]=ve[nr]=!1;var Bp={À:"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"},jp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Up={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Wp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Hp=parseFloat,$p=parseInt,Zo=typeof ta=="object"&&ta&&ta.Object===Object&&ta,Xp=typeof self=="object"&&self&&self.Object===Object&&self,je=Zo||Xp||Function("return this")(),bi=i&&!i.nodeType&&i,vr=bi&&!0&&s&&!s.nodeType&&s,el=vr&&vr.exports===bi,xi=el&&Zo.process,gt=function(){try{var _=vr&&vr.require&&vr.require("util").types;return _||xi&&xi.binding&&xi.binding("util")}catch{}}(),tl=gt&&gt.isArrayBuffer,rl=gt&&gt.isDate,al=gt&&gt.isMap,sl=gt&&gt.isRegExp,il=gt&&gt.isSet,nl=gt&&gt.isTypedArray;function lt(_,k,T){switch(T.length){case 0:return _.call(k);case 1:return _.call(k,T[0]);case 2:return _.call(k,T[0],T[1]);case 3:return _.call(k,T[0],T[1],T[2])}return _.apply(k,T)}function Gp(_,k,T,P){for(var Y=-1,pe=_==null?0:_.length;++Y<pe;){var Oe=_[Y];k(P,Oe,T(Oe),_)}return P}function bt(_,k){for(var T=-1,P=_==null?0:_.length;++T<P&&k(_[T],T,_)!==!1;);return _}function Yp(_,k){for(var T=_==null?0:_.length;T--&&k(_[T],T,_)!==!1;);return _}function ol(_,k){for(var T=-1,P=_==null?0:_.length;++T<P;)if(!k(_[T],T,_))return!1;return!0}function lr(_,k){for(var T=-1,P=_==null?0:_.length,Y=0,pe=[];++T<P;){var Oe=_[T];k(Oe,T,_)&&(pe[Y++]=Oe)}return pe}function cs(_,k){var T=_==null?0:_.length;return!!T&&Ur(_,k,0)>-1}function vi(_,k,T){for(var P=-1,Y=_==null?0:_.length;++P<Y;)if(T(k,_[P]))return!0;return!1}function Te(_,k){for(var T=-1,P=_==null?0:_.length,Y=Array(P);++T<P;)Y[T]=k(_[T],T,_);return Y}function cr(_,k){for(var T=-1,P=k.length,Y=_.length;++T<P;)_[Y+T]=k[T];return _}function wi(_,k,T,P){var Y=-1,pe=_==null?0:_.length;for(P&&pe&&(T=_[++Y]);++Y<pe;)T=k(T,_[Y],Y,_);return T}function Vp(_,k,T,P){var Y=_==null?0:_.length;for(P&&Y&&(T=_[--Y]);Y--;)T=k(T,_[Y],Y,_);return T}function Ti(_,k){for(var T=-1,P=_==null?0:_.length;++T<P;)if(k(_[T],T,_))return!0;return!1}var Kp=Ii("length");function Qp(_){return _.split("")}function Jp(_){return _.match(S)||[]}function ll(_,k,T){var P;return T(_,function(Y,pe,Oe){if(k(Y,pe,Oe))return P=pe,!1}),P}function us(_,k,T,P){for(var Y=_.length,pe=T+(P?1:-1);P?pe--:++pe<Y;)if(k(_[pe],pe,_))return pe;return-1}function Ur(_,k,T){return k===k?um(_,k,T):us(_,cl,T)}function Zp(_,k,T,P){for(var Y=T-1,pe=_.length;++Y<pe;)if(P(_[Y],k))return Y;return-1}function cl(_){return _!==_}function ul(_,k){var T=_==null?0:_.length;return T?ki(_,k)/T:Wt}function Ii(_){return function(k){return k==null?a:k[_]}}function Di(_){return function(k){return _==null?a:_[k]}}function dl(_,k,T,P,Y){return Y(_,function(pe,Oe,xe){T=P?(P=!1,pe):k(T,pe,Oe,xe)}),T}function em(_,k){var T=_.length;for(_.sort(k);T--;)_[T]=_[T].value;return _}function ki(_,k){for(var T,P=-1,Y=_.length;++P<Y;){var pe=k(_[P]);pe!==a&&(T=T===a?pe:T+pe)}return T}function Ai(_,k){for(var T=-1,P=Array(_);++T<_;)P[T]=k(T);return P}function tm(_,k){return Te(k,function(T){return[T,_[T]]})}function pl(_){return _&&_.slice(0,hl(_)+1).replace(Ta,"")}function ct(_){return function(k){return _(k)}}function qi(_,k){return Te(k,function(T){return _[T]})}function Ia(_,k){return _.has(k)}function ml(_,k){for(var T=-1,P=_.length;++T<P&&Ur(k,_[T],0)>-1;);return T}function fl(_,k){for(var T=_.length;T--&&Ur(k,_[T],0)>-1;);return T}function rm(_,k){for(var T=_.length,P=0;T--;)_[T]===k&&++P;return P}var am=Di(Bp),sm=Di(jp);function im(_){return"\\"+Wp[_]}function nm(_,k){return _==null?a:_[k]}function Wr(_){return Ep.test(_)}function om(_){return Lp.test(_)}function lm(_){for(var k,T=[];!(k=_.next()).done;)T.push(k.value);return T}function Ci(_){var k=-1,T=Array(_.size);return _.forEach(function(P,Y){T[++k]=[Y,P]}),T}function yl(_,k){return function(T){return _(k(T))}}function ur(_,k){for(var T=-1,P=_.length,Y=0,pe=[];++T<P;){var Oe=_[T];(Oe===k||Oe===w)&&(_[T]=w,pe[Y++]=T)}return pe}function ds(_){var k=-1,T=Array(_.size);return _.forEach(function(P){T[++k]=P}),T}function cm(_){var k=-1,T=Array(_.size);return _.forEach(function(P){T[++k]=[P,P]}),T}function um(_,k,T){for(var P=T-1,Y=_.length;++P<Y;)if(_[P]===k)return P;return-1}function dm(_,k,T){for(var P=T+1;P--;)if(_[P]===k)return P;return P}function Hr(_){return Wr(_)?mm(_):Kp(_)}function zt(_){return Wr(_)?fm(_):Qp(_)}function hl(_){for(var k=_.length;k--&&di.test(_.charAt(k)););return k}var pm=Di(Up);function mm(_){for(var k=gi.lastIndex=0;gi.test(_);)++k;return k}function fm(_){return _.match(gi)||[]}function ym(_){return _.match(Pp)||[]}var hm=function _(k){k=k==null?je:$r.defaults(je.Object(),k,$r.pick(je,Mp));var T=k.Array,P=k.Date,Y=k.Error,pe=k.Function,Oe=k.Math,xe=k.Object,Si=k.RegExp,_m=k.String,xt=k.TypeError,ps=T.prototype,gm=pe.prototype,Xr=xe.prototype,ms=k["__core-js_shared__"],fs=gm.toString,_e=Xr.hasOwnProperty,bm=0,_l=function(){var e=/[^.]+$/.exec(ms&&ms.keys&&ms.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ys=Xr.toString,xm=fs.call(xe),vm=je._,wm=Si("^"+fs.call(_e).replace(wa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hs=el?k.Buffer:a,dr=k.Symbol,_s=k.Uint8Array,gl=hs?hs.allocUnsafe:a,gs=yl(xe.getPrototypeOf,xe),bl=xe.create,xl=Xr.propertyIsEnumerable,bs=ps.splice,vl=dr?dr.isConcatSpreadable:a,Da=dr?dr.iterator:a,wr=dr?dr.toStringTag:a,xs=function(){try{var e=Ar(xe,"defineProperty");return e({},"",{}),e}catch{}}(),Tm=k.clearTimeout!==je.clearTimeout&&k.clearTimeout,Im=P&&P.now!==je.Date.now&&P.now,Dm=k.setTimeout!==je.setTimeout&&k.setTimeout,vs=Oe.ceil,ws=Oe.floor,zi=xe.getOwnPropertySymbols,km=hs?hs.isBuffer:a,wl=k.isFinite,Am=ps.join,qm=yl(xe.keys,xe),Re=Oe.max,He=Oe.min,Cm=P.now,Sm=k.parseInt,Tl=Oe.random,zm=ps.reverse,Ni=Ar(k,"DataView"),ka=Ar(k,"Map"),Oi=Ar(k,"Promise"),Gr=Ar(k,"Set"),Aa=Ar(k,"WeakMap"),qa=Ar(xe,"create"),Ts=Aa&&new Aa,Yr={},Nm=qr(Ni),Om=qr(ka),Rm=qr(Oi),Pm=qr(Gr),Em=qr(Aa),Is=dr?dr.prototype:a,Ca=Is?Is.valueOf:a,Il=Is?Is.toString:a;function c(e){if(qe(e)&&!V(e)&&!(e instanceof oe)){if(e instanceof vt)return e;if(_e.call(e,"__wrapped__"))return Dc(e)}return new vt(e)}var Vr=function(){function e(){}return function(t){if(!ke(t))return{};if(bl)return bl(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Ds(){}function vt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}c.templateSettings={escape:ci,evaluate:rs,interpolate:as,variable:"",imports:{_:c}},c.prototype=Ds.prototype,c.prototype.constructor=c,vt.prototype=Vr(Ds.prototype),vt.prototype.constructor=vt;function oe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function Lm(){var e=new oe(this.__wrapped__);return e.__actions__=Ze(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ze(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ze(this.__views__),e}function Mm(){if(this.__filtered__){var e=new oe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Fm(){var e=this.__wrapped__.value(),t=this.__dir__,r=V(e),n=t<0,o=r?e.length:0,d=Jf(0,o,this.__views__),f=d.start,h=d.end,b=h-f,A=n?h:f-1,q=this.__iteratees__,C=q.length,N=0,L=He(b,this.__takeCount__);if(!r||!n&&o==b&&L==b)return Yl(e,this.__actions__);var W=[];e:for(;b--&&N<L;){A+=t;for(var Z=-1,H=e[A];++Z<C;){var ie=q[Z],ce=ie.iteratee,pt=ie.type,Ve=ce(H);if(pt==j)H=Ve;else if(!Ve){if(pt==Ee)continue e;break e}}W[N++]=H}return W}oe.prototype=Vr(Ds.prototype),oe.prototype.constructor=oe;function Tr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Bm(){this.__data__=qa?qa(null):{},this.size=0}function jm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Um(e){var t=this.__data__;if(qa){var r=t[e];return r===g?a:r}return _e.call(t,e)?t[e]:a}function Wm(e){var t=this.__data__;return qa?t[e]!==a:_e.call(t,e)}function Hm(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qa&&t===a?g:t,this}Tr.prototype.clear=Bm,Tr.prototype.delete=jm,Tr.prototype.get=Um,Tr.prototype.has=Wm,Tr.prototype.set=Hm;function Yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $m(){this.__data__=[],this.size=0}function Xm(e){var t=this.__data__,r=ks(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():bs.call(t,r,1),--this.size,!0}function Gm(e){var t=this.__data__,r=ks(t,e);return r<0?a:t[r][1]}function Ym(e){return ks(this.__data__,e)>-1}function Vm(e,t){var r=this.__data__,n=ks(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Yt.prototype.clear=$m,Yt.prototype.delete=Xm,Yt.prototype.get=Gm,Yt.prototype.has=Ym,Yt.prototype.set=Vm;function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Km(){this.size=0,this.__data__={hash:new Tr,map:new(ka||Yt),string:new Tr}}function Qm(e){var t=Ms(this,e).delete(e);return this.size-=t?1:0,t}function Jm(e){return Ms(this,e).get(e)}function Zm(e){return Ms(this,e).has(e)}function ef(e,t){var r=Ms(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Vt.prototype.clear=Km,Vt.prototype.delete=Qm,Vt.prototype.get=Jm,Vt.prototype.has=Zm,Vt.prototype.set=ef;function Ir(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Vt;++t<r;)this.add(e[t])}function tf(e){return this.__data__.set(e,g),this}function rf(e){return this.__data__.has(e)}Ir.prototype.add=Ir.prototype.push=tf,Ir.prototype.has=rf;function Nt(e){var t=this.__data__=new Yt(e);this.size=t.size}function af(){this.__data__=new Yt,this.size=0}function sf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function nf(e){return this.__data__.get(e)}function of(e){return this.__data__.has(e)}function lf(e,t){var r=this.__data__;if(r instanceof Yt){var n=r.__data__;if(!ka||n.length<u-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Vt(n)}return r.set(e,t),this.size=r.size,this}Nt.prototype.clear=af,Nt.prototype.delete=sf,Nt.prototype.get=nf,Nt.prototype.has=of,Nt.prototype.set=lf;function Dl(e,t){var r=V(e),n=!r&&Cr(e),o=!r&&!n&&hr(e),d=!r&&!n&&!o&&Zr(e),f=r||n||o||d,h=f?Ai(e.length,_m):[],b=h.length;for(var A in e)(t||_e.call(e,A))&&!(f&&(A=="length"||o&&(A=="offset"||A=="parent")||d&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||Zt(A,b)))&&h.push(A);return h}function kl(e){var t=e.length;return t?e[Hi(0,t-1)]:a}function cf(e,t){return Fs(Ze(e),Dr(t,0,e.length))}function uf(e){return Fs(Ze(e))}function Ri(e,t,r){(r!==a&&!Ot(e[t],r)||r===a&&!(t in e))&&Kt(e,t,r)}function Sa(e,t,r){var n=e[t];(!(_e.call(e,t)&&Ot(n,r))||r===a&&!(t in e))&&Kt(e,t,r)}function ks(e,t){for(var r=e.length;r--;)if(Ot(e[r][0],t))return r;return-1}function df(e,t,r,n){return pr(e,function(o,d,f){t(n,o,r(o),f)}),n}function Al(e,t){return e&&jt(t,Fe(t),e)}function pf(e,t){return e&&jt(t,tt(t),e)}function Kt(e,t,r){t=="__proto__"&&xs?xs(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Pi(e,t){for(var r=-1,n=t.length,o=T(n),d=e==null;++r<n;)o[r]=d?a:hn(e,t[r]);return o}function Dr(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function wt(e,t,r,n,o,d){var f,h=t&D,b=t&O,A=t&R;if(r&&(f=o?r(e,n,o,d):r(e)),f!==a)return f;if(!ke(e))return e;var q=V(e);if(q){if(f=ey(e),!h)return Ze(e,f)}else{var C=$e(e),N=C==gr||C==Ja;if(hr(e))return Ql(e,h);if(C==_t||C==Xe||N&&!o){if(f=b||N?{}:hc(e),!h)return b?Wf(e,pf(f,e)):Uf(e,Al(f,e))}else{if(!ve[C])return o?e:{};f=ty(e,C,h)}}d||(d=new Nt);var L=d.get(e);if(L)return L;d.set(e,f),$c(e)?e.forEach(function(H){f.add(wt(H,t,r,H,e,d))}):Wc(e)&&e.forEach(function(H,ie){f.set(ie,wt(H,t,r,ie,e,d))});var W=A?b?tn:en:b?tt:Fe,Z=q?a:W(e);return bt(Z||e,function(H,ie){Z&&(ie=H,H=e[ie]),Sa(f,ie,wt(H,t,r,ie,e,d))}),f}function mf(e){var t=Fe(e);return function(r){return ql(r,e,t)}}function ql(e,t,r){var n=r.length;if(e==null)return!n;for(e=xe(e);n--;){var o=r[n],d=t[o],f=e[o];if(f===a&&!(o in e)||!d(f))return!1}return!0}function Cl(e,t,r){if(typeof e!="function")throw new xt(m);return La(function(){e.apply(a,r)},t)}function za(e,t,r,n){var o=-1,d=cs,f=!0,h=e.length,b=[],A=t.length;if(!h)return b;r&&(t=Te(t,ct(r))),n?(d=vi,f=!1):t.length>=u&&(d=Ia,f=!1,t=new Ir(t));e:for(;++o<h;){var q=e[o],C=r==null?q:r(q);if(q=n||q!==0?q:0,f&&C===C){for(var N=A;N--;)if(t[N]===C)continue e;b.push(q)}else d(t,C,n)||b.push(q)}return b}var pr=rc(Bt),Sl=rc(Li,!0);function ff(e,t){var r=!0;return pr(e,function(n,o,d){return r=!!t(n,o,d),r}),r}function As(e,t,r){for(var n=-1,o=e.length;++n<o;){var d=e[n],f=t(d);if(f!=null&&(h===a?f===f&&!dt(f):r(f,h)))var h=f,b=d}return b}function yf(e,t,r,n){var o=e.length;for(r=Q(r),r<0&&(r=-r>o?0:o+r),n=n===a||n>o?o:Q(n),n<0&&(n+=o),n=r>n?0:Gc(n);r<n;)e[r++]=t;return e}function zl(e,t){var r=[];return pr(e,function(n,o,d){t(n,o,d)&&r.push(n)}),r}function Ue(e,t,r,n,o){var d=-1,f=e.length;for(r||(r=ay),o||(o=[]);++d<f;){var h=e[d];t>0&&r(h)?t>1?Ue(h,t-1,r,n,o):cr(o,h):n||(o[o.length]=h)}return o}var Ei=ac(),Nl=ac(!0);function Bt(e,t){return e&&Ei(e,t,Fe)}function Li(e,t){return e&&Nl(e,t,Fe)}function qs(e,t){return lr(t,function(r){return er(e[r])})}function kr(e,t){t=fr(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Ut(t[r++])];return r&&r==n?e:a}function Ol(e,t,r){var n=t(e);return V(e)?n:cr(n,r(e))}function Ge(e){return e==null?e===a?oi:Pr:wr&&wr in xe(e)?Qf(e):uy(e)}function Mi(e,t){return e>t}function hf(e,t){return e!=null&&_e.call(e,t)}function _f(e,t){return e!=null&&t in xe(e)}function gf(e,t,r){return e>=He(t,r)&&e<Re(t,r)}function Fi(e,t,r){for(var n=r?vi:cs,o=e[0].length,d=e.length,f=d,h=T(d),b=1/0,A=[];f--;){var q=e[f];f&&t&&(q=Te(q,ct(t))),b=He(q.length,b),h[f]=!r&&(t||o>=120&&q.length>=120)?new Ir(f&&q):a}q=e[0];var C=-1,N=h[0];e:for(;++C<o&&A.length<b;){var L=q[C],W=t?t(L):L;if(L=r||L!==0?L:0,!(N?Ia(N,W):n(A,W,r))){for(f=d;--f;){var Z=h[f];if(!(Z?Ia(Z,W):n(e[f],W,r)))continue e}N&&N.push(W),A.push(L)}}return A}function bf(e,t,r,n){return Bt(e,function(o,d,f){t(n,r(o),d,f)}),n}function Na(e,t,r){t=fr(t,e),e=xc(e,t);var n=e==null?e:e[Ut(It(t))];return n==null?a:lt(n,e,r)}function Rl(e){return qe(e)&&Ge(e)==Xe}function xf(e){return qe(e)&&Ge(e)==Ct}function vf(e){return qe(e)&&Ge(e)==$t}function Oa(e,t,r,n,o){return e===t?!0:e==null||t==null||!qe(e)&&!qe(t)?e!==e&&t!==t:wf(e,t,r,n,Oa,o)}function wf(e,t,r,n,o,d){var f=V(e),h=V(t),b=f?ir:$e(e),A=h?ir:$e(t);b=b==Xe?_t:b,A=A==Xe?_t:A;var q=b==_t,C=A==_t,N=b==A;if(N&&hr(e)){if(!hr(t))return!1;f=!0,q=!1}if(N&&!q)return d||(d=new Nt),f||Zr(e)?mc(e,t,r,n,o,d):Vf(e,t,b,r,n,o,d);if(!(r&F)){var L=q&&_e.call(e,"__wrapped__"),W=C&&_e.call(t,"__wrapped__");if(L||W){var Z=L?e.value():e,H=W?t.value():t;return d||(d=new Nt),o(Z,H,r,n,d)}}return N?(d||(d=new Nt),Kf(e,t,r,n,o,d)):!1}function Tf(e){return qe(e)&&$e(e)==nt}function Bi(e,t,r,n){var o=r.length,d=o,f=!n;if(e==null)return!d;for(e=xe(e);o--;){var h=r[o];if(f&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++o<d;){h=r[o];var b=h[0],A=e[b],q=h[1];if(f&&h[2]){if(A===a&&!(b in e))return!1}else{var C=new Nt;if(n)var N=n(A,q,b,e,t,C);if(!(N===a?Oa(q,A,F|B,n,C):N))return!1}}return!0}function Pl(e){if(!ke(e)||iy(e))return!1;var t=er(e)?wm:Be;return t.test(qr(e))}function If(e){return qe(e)&&Ge(e)==br}function Df(e){return qe(e)&&$e(e)==ot}function kf(e){return qe(e)&&$s(e.length)&&!!we[Ge(e)]}function El(e){return typeof e=="function"?e:e==null?rt:typeof e=="object"?V(e)?Fl(e[0],e[1]):Ml(e):su(e)}function ji(e){if(!Ea(e))return qm(e);var t=[];for(var r in xe(e))_e.call(e,r)&&r!="constructor"&&t.push(r);return t}function Af(e){if(!ke(e))return cy(e);var t=Ea(e),r=[];for(var n in e)n=="constructor"&&(t||!_e.call(e,n))||r.push(n);return r}function Ui(e,t){return e<t}function Ll(e,t){var r=-1,n=et(e)?T(e.length):[];return pr(e,function(o,d,f){n[++r]=t(o,d,f)}),n}function Ml(e){var t=an(e);return t.length==1&&t[0][2]?gc(t[0][0],t[0][1]):function(r){return r===e||Bi(r,e,t)}}function Fl(e,t){return nn(e)&&_c(t)?gc(Ut(e),t):function(r){var n=hn(r,e);return n===a&&n===t?_n(r,e):Oa(t,n,F|B)}}function Cs(e,t,r,n,o){e!==t&&Ei(t,function(d,f){if(o||(o=new Nt),ke(d))qf(e,t,f,r,Cs,n,o);else{var h=n?n(ln(e,f),d,f+"",e,t,o):a;h===a&&(h=d),Ri(e,f,h)}},tt)}function qf(e,t,r,n,o,d,f){var h=ln(e,r),b=ln(t,r),A=f.get(b);if(A){Ri(e,r,A);return}var q=d?d(h,b,r+"",e,t,f):a,C=q===a;if(C){var N=V(b),L=!N&&hr(b),W=!N&&!L&&Zr(b);q=b,N||L||W?V(h)?q=h:Ce(h)?q=Ze(h):L?(C=!1,q=Ql(b,!0)):W?(C=!1,q=Jl(b,!0)):q=[]:Ma(b)||Cr(b)?(q=h,Cr(h)?q=Yc(h):(!ke(h)||er(h))&&(q=hc(b))):C=!1}C&&(f.set(b,q),o(q,b,n,d,f),f.delete(b)),Ri(e,r,q)}function Bl(e,t){var r=e.length;if(r)return t+=t<0?r:0,Zt(t,r)?e[t]:a}function jl(e,t,r){t.length?t=Te(t,function(d){return V(d)?function(f){return kr(f,d.length===1?d[0]:d)}:d}):t=[rt];var n=-1;t=Te(t,ct(U()));var o=Ll(e,function(d,f,h){var b=Te(t,function(A){return A(d)});return{criteria:b,index:++n,value:d}});return em(o,function(d,f){return jf(d,f,r)})}function Cf(e,t){return Ul(e,t,function(r,n){return _n(e,n)})}function Ul(e,t,r){for(var n=-1,o=t.length,d={};++n<o;){var f=t[n],h=kr(e,f);r(h,f)&&Ra(d,fr(f,e),h)}return d}function Sf(e){return function(t){return kr(t,e)}}function Wi(e,t,r,n){var o=n?Zp:Ur,d=-1,f=t.length,h=e;for(e===t&&(t=Ze(t)),r&&(h=Te(e,ct(r)));++d<f;)for(var b=0,A=t[d],q=r?r(A):A;(b=o(h,q,b,n))>-1;)h!==e&&bs.call(h,b,1),bs.call(e,b,1);return e}function Wl(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==d){var d=o;Zt(o)?bs.call(e,o,1):Gi(e,o)}}return e}function Hi(e,t){return e+ws(Tl()*(t-e+1))}function zf(e,t,r,n){for(var o=-1,d=Re(vs((t-e)/(r||1)),0),f=T(d);d--;)f[n?d:++o]=e,e+=r;return f}function $i(e,t){var r="";if(!e||t<1||t>Le)return r;do t%2&&(r+=e),t=ws(t/2),t&&(e+=e);while(t);return r}function te(e,t){return cn(bc(e,t,rt),e+"")}function Nf(e){return kl(ea(e))}function Of(e,t){var r=ea(e);return Fs(r,Dr(t,0,r.length))}function Ra(e,t,r,n){if(!ke(e))return e;t=fr(t,e);for(var o=-1,d=t.length,f=d-1,h=e;h!=null&&++o<d;){var b=Ut(t[o]),A=r;if(b==="__proto__"||b==="constructor"||b==="prototype")return e;if(o!=f){var q=h[b];A=n?n(q,b,h):a,A===a&&(A=ke(q)?q:Zt(t[o+1])?[]:{})}Sa(h,b,A),h=h[b]}return e}var Hl=Ts?function(e,t){return Ts.set(e,t),e}:rt,Rf=xs?function(e,t){return xs(e,"toString",{configurable:!0,enumerable:!1,value:bn(t),writable:!0})}:rt;function Pf(e){return Fs(ea(e))}function Tt(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var d=T(o);++n<o;)d[n]=e[n+t];return d}function Ef(e,t){var r;return pr(e,function(n,o,d){return r=t(n,o,d),!r}),!!r}function Ss(e,t,r){var n=0,o=e==null?n:e.length;if(typeof t=="number"&&t===t&&o<=Me){for(;n<o;){var d=n+o>>>1,f=e[d];f!==null&&!dt(f)&&(r?f<=t:f<t)?n=d+1:o=d}return o}return Xi(e,t,rt,r)}function Xi(e,t,r,n){var o=0,d=e==null?0:e.length;if(d===0)return 0;t=r(t);for(var f=t!==t,h=t===null,b=dt(t),A=t===a;o<d;){var q=ws((o+d)/2),C=r(e[q]),N=C!==a,L=C===null,W=C===C,Z=dt(C);if(f)var H=n||W;else A?H=W&&(n||N):h?H=W&&N&&(n||!L):b?H=W&&N&&!L&&(n||!Z):L||Z?H=!1:H=n?C<=t:C<t;H?o=q+1:d=q}return He(d,be)}function $l(e,t){for(var r=-1,n=e.length,o=0,d=[];++r<n;){var f=e[r],h=t?t(f):f;if(!r||!Ot(h,b)){var b=h;d[o++]=f===0?0:f}}return d}function Xl(e){return typeof e=="number"?e:dt(e)?Wt:+e}function ut(e){if(typeof e=="string")return e;if(V(e))return Te(e,ut)+"";if(dt(e))return Il?Il.call(e):"";var t=e+"";return t=="0"&&1/e==-Ne?"-0":t}function mr(e,t,r){var n=-1,o=cs,d=e.length,f=!0,h=[],b=h;if(r)f=!1,o=vi;else if(d>=u){var A=t?null:Gf(e);if(A)return ds(A);f=!1,o=Ia,b=new Ir}else b=t?[]:h;e:for(;++n<d;){var q=e[n],C=t?t(q):q;if(q=r||q!==0?q:0,f&&C===C){for(var N=b.length;N--;)if(b[N]===C)continue e;t&&b.push(C),h.push(q)}else o(b,C,r)||(b!==h&&b.push(C),h.push(q))}return h}function Gi(e,t){return t=fr(t,e),e=xc(e,t),e==null||delete e[Ut(It(t))]}function Gl(e,t,r,n){return Ra(e,t,r(kr(e,t)),n)}function zs(e,t,r,n){for(var o=e.length,d=n?o:-1;(n?d--:++d<o)&&t(e[d],d,e););return r?Tt(e,n?0:d,n?d+1:o):Tt(e,n?d+1:0,n?o:d)}function Yl(e,t){var r=e;return r instanceof oe&&(r=r.value()),wi(t,function(n,o){return o.func.apply(o.thisArg,cr([n],o.args))},r)}function Yi(e,t,r){var n=e.length;if(n<2)return n?mr(e[0]):[];for(var o=-1,d=T(n);++o<n;)for(var f=e[o],h=-1;++h<n;)h!=o&&(d[o]=za(d[o]||f,e[h],t,r));return mr(Ue(d,1),t,r)}function Vl(e,t,r){for(var n=-1,o=e.length,d=t.length,f={};++n<o;){var h=n<d?t[n]:a;r(f,e[n],h)}return f}function Vi(e){return Ce(e)?e:[]}function Ki(e){return typeof e=="function"?e:rt}function fr(e,t){return V(e)?e:nn(e,t)?[e]:Ic(fe(e))}var Lf=te;function yr(e,t,r){var n=e.length;return r=r===a?n:r,!t&&r>=n?e:Tt(e,t,r)}var Kl=Tm||function(e){return je.clearTimeout(e)};function Ql(e,t){if(t)return e.slice();var r=e.length,n=gl?gl(r):new e.constructor(r);return e.copy(n),n}function Qi(e){var t=new e.constructor(e.byteLength);return new _s(t).set(new _s(e)),t}function Mf(e,t){var r=t?Qi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Ff(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}function Bf(e){return Ca?xe(Ca.call(e)):{}}function Jl(e,t){var r=t?Qi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Zl(e,t){if(e!==t){var r=e!==a,n=e===null,o=e===e,d=dt(e),f=t!==a,h=t===null,b=t===t,A=dt(t);if(!h&&!A&&!d&&e>t||d&&f&&b&&!h&&!A||n&&f&&b||!r&&b||!o)return 1;if(!n&&!d&&!A&&e<t||A&&r&&o&&!n&&!d||h&&r&&o||!f&&o||!b)return-1}return 0}function jf(e,t,r){for(var n=-1,o=e.criteria,d=t.criteria,f=o.length,h=r.length;++n<f;){var b=Zl(o[n],d[n]);if(b){if(n>=h)return b;var A=r[n];return b*(A=="desc"?-1:1)}}return e.index-t.index}function ec(e,t,r,n){for(var o=-1,d=e.length,f=r.length,h=-1,b=t.length,A=Re(d-f,0),q=T(b+A),C=!n;++h<b;)q[h]=t[h];for(;++o<f;)(C||o<d)&&(q[r[o]]=e[o]);for(;A--;)q[h++]=e[o++];return q}function tc(e,t,r,n){for(var o=-1,d=e.length,f=-1,h=r.length,b=-1,A=t.length,q=Re(d-h,0),C=T(q+A),N=!n;++o<q;)C[o]=e[o];for(var L=o;++b<A;)C[L+b]=t[b];for(;++f<h;)(N||o<d)&&(C[L+r[f]]=e[o++]);return C}function Ze(e,t){var r=-1,n=e.length;for(t||(t=T(n));++r<n;)t[r]=e[r];return t}function jt(e,t,r,n){var o=!r;r||(r={});for(var d=-1,f=t.length;++d<f;){var h=t[d],b=n?n(r[h],e[h],h,r,e):a;b===a&&(b=e[h]),o?Kt(r,h,b):Sa(r,h,b)}return r}function Uf(e,t){return jt(e,sn(e),t)}function Wf(e,t){return jt(e,fc(e),t)}function Ns(e,t){return function(r,n){var o=V(r)?Gp:df,d=t?t():{};return o(r,e,U(n,2),d)}}function Kr(e){return te(function(t,r){var n=-1,o=r.length,d=o>1?r[o-1]:a,f=o>2?r[2]:a;for(d=e.length>3&&typeof d=="function"?(o--,d):a,f&&Ye(r[0],r[1],f)&&(d=o<3?a:d,o=1),t=xe(t);++n<o;){var h=r[n];h&&e(t,h,n,d)}return t})}function rc(e,t){return function(r,n){if(r==null)return r;if(!et(r))return e(r,n);for(var o=r.length,d=t?o:-1,f=xe(r);(t?d--:++d<o)&&n(f[d],d,f)!==!1;);return r}}function ac(e){return function(t,r,n){for(var o=-1,d=xe(t),f=n(t),h=f.length;h--;){var b=f[e?h:++o];if(r(d[b],b,d)===!1)break}return t}}function Hf(e,t,r){var n=t&E,o=Pa(e);function d(){var f=this&&this!==je&&this instanceof d?o:e;return f.apply(n?r:this,arguments)}return d}function sc(e){return function(t){t=fe(t);var r=Wr(t)?zt(t):a,n=r?r[0]:t.charAt(0),o=r?yr(r,1).join(""):t.slice(1);return n[e]()+o}}function Qr(e){return function(t){return wi(ru(tu(t).replace(Op,"")),e,"")}}function Pa(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=Vr(e.prototype),n=e.apply(r,t);return ke(n)?n:r}}function $f(e,t,r){var n=Pa(e);function o(){for(var d=arguments.length,f=T(d),h=d,b=Jr(o);h--;)f[h]=arguments[h];var A=d<3&&f[0]!==b&&f[d-1]!==b?[]:ur(f,b);if(d-=A.length,d<r)return cc(e,t,Os,o.placeholder,a,f,A,a,a,r-d);var q=this&&this!==je&&this instanceof o?n:e;return lt(q,this,f)}return o}function ic(e){return function(t,r,n){var o=xe(t);if(!et(t)){var d=U(r,3);t=Fe(t),r=function(h){return d(o[h],h,o)}}var f=e(t,r,n);return f>-1?o[d?t[f]:f]:a}}function nc(e){return Jt(function(t){var r=t.length,n=r,o=vt.prototype.thru;for(e&&t.reverse();n--;){var d=t[n];if(typeof d!="function")throw new xt(m);if(o&&!f&&Ls(d)=="wrapper")var f=new vt([],!0)}for(n=f?n:r;++n<r;){d=t[n];var h=Ls(d),b=h=="wrapper"?rn(d):a;b&&on(b[0])&&b[1]==(ee|he|J|ze)&&!b[4].length&&b[9]==1?f=f[Ls(b[0])].apply(f,b[3]):f=d.length==1&&on(d)?f[h]():f.thru(d)}return function(){var A=arguments,q=A[0];if(f&&A.length==1&&V(q))return f.plant(q).value();for(var C=0,N=r?t[C].apply(this,A):q;++C<r;)N=t[C].call(this,N);return N}})}function Os(e,t,r,n,o,d,f,h,b,A){var q=t&ee,C=t&E,N=t&K,L=t&(he|le),W=t&ge,Z=N?a:Pa(e);function H(){for(var ie=arguments.length,ce=T(ie),pt=ie;pt--;)ce[pt]=arguments[pt];if(L)var Ve=Jr(H),mt=rm(ce,Ve);if(n&&(ce=ec(ce,n,o,L)),d&&(ce=tc(ce,d,f,L)),ie-=mt,L&&ie<A){var Se=ur(ce,Ve);return cc(e,t,Os,H.placeholder,r,ce,Se,h,b,A-ie)}var Rt=C?r:this,rr=N?Rt[e]:e;return ie=ce.length,h?ce=dy(ce,h):W&&ie>1&&ce.reverse(),q&&b<ie&&(ce.length=b),this&&this!==je&&this instanceof H&&(rr=Z||Pa(rr)),rr.apply(Rt,ce)}return H}function oc(e,t){return function(r,n){return bf(r,e,t(n),{})}}function Rs(e,t){return function(r,n){var o;if(r===a&&n===a)return t;if(r!==a&&(o=r),n!==a){if(o===a)return n;typeof r=="string"||typeof n=="string"?(r=ut(r),n=ut(n)):(r=Xl(r),n=Xl(n)),o=e(r,n)}return o}}function Ji(e){return Jt(function(t){return t=Te(t,ct(U())),te(function(r){var n=this;return e(t,function(o){return lt(o,n,r)})})})}function Ps(e,t){t=t===a?" ":ut(t);var r=t.length;if(r<2)return r?$i(t,e):t;var n=$i(t,vs(e/Hr(t)));return Wr(t)?yr(zt(n),0,e).join(""):n.slice(0,e)}function Xf(e,t,r,n){var o=t&E,d=Pa(e);function f(){for(var h=-1,b=arguments.length,A=-1,q=n.length,C=T(q+b),N=this&&this!==je&&this instanceof f?d:e;++A<q;)C[A]=n[A];for(;b--;)C[A++]=arguments[++h];return lt(N,o?r:this,C)}return f}function lc(e){return function(t,r,n){return n&&typeof n!="number"&&Ye(t,r,n)&&(r=n=a),t=tr(t),r===a?(r=t,t=0):r=tr(r),n=n===a?t<r?1:-1:tr(n),zf(t,r,n,e)}}function Es(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Dt(t),r=Dt(r)),e(t,r)}}function cc(e,t,r,n,o,d,f,h,b,A){var q=t&he,C=q?f:a,N=q?a:f,L=q?d:a,W=q?a:d;t|=q?J:ue,t&=~(q?ue:J),t&$||(t&=~(E|K));var Z=[e,t,o,L,C,W,N,h,b,A],H=r.apply(a,Z);return on(e)&&vc(H,Z),H.placeholder=n,wc(H,e,t)}function Zi(e){var t=Oe[e];return function(r,n){if(r=Dt(r),n=n==null?0:He(Q(n),292),n&&wl(r)){var o=(fe(r)+"e").split("e"),d=t(o[0]+"e"+(+o[1]+n));return o=(fe(d)+"e").split("e"),+(o[0]+"e"+(+o[1]-n))}return t(r)}}var Gf=Gr&&1/ds(new Gr([,-0]))[1]==Ne?function(e){return new Gr(e)}:wn;function uc(e){return function(t){var r=$e(t);return r==nt?Ci(t):r==ot?cm(t):tm(t,e(t))}}function Qt(e,t,r,n,o,d,f,h){var b=t&K;if(!b&&typeof e!="function")throw new xt(m);var A=n?n.length:0;if(A||(t&=~(J|ue),n=o=a),f=f===a?f:Re(Q(f),0),h=h===a?h:Q(h),A-=o?o.length:0,t&ue){var q=n,C=o;n=o=a}var N=b?a:rn(e),L=[e,t,r,n,o,q,C,d,f,h];if(N&&ly(L,N),e=L[0],t=L[1],r=L[2],n=L[3],o=L[4],h=L[9]=L[9]===a?b?0:e.length:Re(L[9]-A,0),!h&&t&(he|le)&&(t&=~(he|le)),!t||t==E)var W=Hf(e,t,r);else t==he||t==le?W=$f(e,t,h):(t==J||t==(E|J))&&!o.length?W=Xf(e,t,r,n):W=Os.apply(a,L);var Z=N?Hl:vc;return wc(Z(W,L),e,t)}function dc(e,t,r,n){return e===a||Ot(e,Xr[r])&&!_e.call(n,r)?t:e}function pc(e,t,r,n,o,d){return ke(e)&&ke(t)&&(d.set(t,e),Cs(e,t,a,pc,d),d.delete(t)),e}function Yf(e){return Ma(e)?a:e}function mc(e,t,r,n,o,d){var f=r&F,h=e.length,b=t.length;if(h!=b&&!(f&&b>h))return!1;var A=d.get(e),q=d.get(t);if(A&&q)return A==t&&q==e;var C=-1,N=!0,L=r&B?new Ir:a;for(d.set(e,t),d.set(t,e);++C<h;){var W=e[C],Z=t[C];if(n)var H=f?n(Z,W,C,t,e,d):n(W,Z,C,e,t,d);if(H!==a){if(H)continue;N=!1;break}if(L){if(!Ti(t,function(ie,ce){if(!Ia(L,ce)&&(W===ie||o(W,ie,r,n,d)))return L.push(ce)})){N=!1;break}}else if(!(W===Z||o(W,Z,r,n,d))){N=!1;break}}return d.delete(e),d.delete(t),N}function Vf(e,t,r,n,o,d,f){switch(r){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ct:return!(e.byteLength!=t.byteLength||!d(new _s(e),new _s(t)));case Mt:case $t:case Ft:return Ot(+e,+t);case Rr:return e.name==t.name&&e.message==t.message;case br:case Xt:return e==t+"";case nt:var h=Ci;case ot:var b=n&F;if(h||(h=ds),e.size!=t.size&&!b)return!1;var A=f.get(e);if(A)return A==t;n|=B,f.set(e,t);var q=mc(h(e),h(t),n,o,d,f);return f.delete(e),q;case Lr:if(Ca)return Ca.call(e)==Ca.call(t)}return!1}function Kf(e,t,r,n,o,d){var f=r&F,h=en(e),b=h.length,A=en(t),q=A.length;if(b!=q&&!f)return!1;for(var C=b;C--;){var N=h[C];if(!(f?N in t:_e.call(t,N)))return!1}var L=d.get(e),W=d.get(t);if(L&&W)return L==t&&W==e;var Z=!0;d.set(e,t),d.set(t,e);for(var H=f;++C<b;){N=h[C];var ie=e[N],ce=t[N];if(n)var pt=f?n(ce,ie,N,t,e,d):n(ie,ce,N,e,t,d);if(!(pt===a?ie===ce||o(ie,ce,r,n,d):pt)){Z=!1;break}H||(H=N=="constructor")}if(Z&&!H){var Ve=e.constructor,mt=t.constructor;Ve!=mt&&"constructor"in e&&"constructor"in t&&!(typeof Ve=="function"&&Ve instanceof Ve&&typeof mt=="function"&&mt instanceof mt)&&(Z=!1)}return d.delete(e),d.delete(t),Z}function Jt(e){return cn(bc(e,a,qc),e+"")}function en(e){return Ol(e,Fe,sn)}function tn(e){return Ol(e,tt,fc)}var rn=Ts?function(e){return Ts.get(e)}:wn;function Ls(e){for(var t=e.name+"",r=Yr[t],n=_e.call(Yr,t)?r.length:0;n--;){var o=r[n],d=o.func;if(d==null||d==e)return o.name}return t}function Jr(e){var t=_e.call(c,"placeholder")?c:e;return t.placeholder}function U(){var e=c.iteratee||xn;return e=e===xn?El:e,arguments.length?e(arguments[0],arguments[1]):e}function Ms(e,t){var r=e.__data__;return sy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function an(e){for(var t=Fe(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,_c(o)]}return t}function Ar(e,t){var r=nm(e,t);return Pl(r)?r:a}function Qf(e){var t=_e.call(e,wr),r=e[wr];try{e[wr]=a;var n=!0}catch{}var o=ys.call(e);return n&&(t?e[wr]=r:delete e[wr]),o}var sn=zi?function(e){return e==null?[]:(e=xe(e),lr(zi(e),function(t){return xl.call(e,t)}))}:Tn,fc=zi?function(e){for(var t=[];e;)cr(t,sn(e)),e=gs(e);return t}:Tn,$e=Ge;(Ni&&$e(new Ni(new ArrayBuffer(1)))!=or||ka&&$e(new ka)!=nt||Oi&&$e(Oi.resolve())!=ma||Gr&&$e(new Gr)!=ot||Aa&&$e(new Aa)!=nr)&&($e=function(e){var t=Ge(e),r=t==_t?e.constructor:a,n=r?qr(r):"";if(n)switch(n){case Nm:return or;case Om:return nt;case Rm:return ma;case Pm:return ot;case Em:return nr}return t});function Jf(e,t,r){for(var n=-1,o=r.length;++n<o;){var d=r[n],f=d.size;switch(d.type){case"drop":e+=f;break;case"dropRight":t-=f;break;case"take":t=He(t,e+f);break;case"takeRight":e=Re(e,t-f);break}}return{start:e,end:t}}function Zf(e){var t=e.match(mi);return t?t[1].split(y):[]}function yc(e,t,r){t=fr(t,e);for(var n=-1,o=t.length,d=!1;++n<o;){var f=Ut(t[n]);if(!(d=e!=null&&r(e,f)))break;e=e[f]}return d||++n!=o?d:(o=e==null?0:e.length,!!o&&$s(o)&&Zt(f,o)&&(V(e)||Cr(e)))}function ey(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&_e.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function hc(e){return typeof e.constructor=="function"&&!Ea(e)?Vr(gs(e)):{}}function ty(e,t,r){var n=e.constructor;switch(t){case Ct:return Qi(e);case Mt:case $t:return new n(+e);case or:return Mf(e,r);case Mr:case Fr:case xr:case fa:case ya:case ha:case _a:case ga:case ba:return Jl(e,r);case nt:return new n;case Ft:case Xt:return new n(e);case br:return Ff(e);case ot:return new n;case Lr:return Bf(e)}}function ry(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(pi,`{
112
+ */Ha.exports,function(s,i){(function(){var a,l="4.17.21",u=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",x="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",v=500,w="__lodash_placeholder__",D=1,O=2,P=4,F=1,B=2,R=1,K=2,$=4,he=8,le=16,J=32,ue=64,ee=128,ze=256,ge=512,ae=30,it="...",ht=800,Ee=16,Re=1,j=2,se=3,Ne=1/0,Le=9007199254740991,Lt=17976931348623157e292,Wt=NaN,G=4294967295,be=G-1,Me=G>>>1,Ht=[["ary",ee],["bind",R],["bindKey",K],["curry",he],["curryRight",le],["flip",ge],["partial",J],["partialRight",ue],["rearg",ze]],Xe="[object Arguments]",ir="[object Array]",pa="[object AsyncFunction]",Mt="[object Boolean]",$t="[object Date]",Or="[object DOMException]",Pr="[object Error]",gr="[object Function]",Ja="[object GeneratorFunction]",nt="[object Map]",Ft="[object Number]",Er="[object Null]",_t="[object Object]",ma="[object Promise]",Rr="[object Proxy]",br="[object RegExp]",ot="[object Set]",Xt="[object String]",Lr="[object Symbol]",oi="[object Undefined]",nr="[object WeakMap]",Za="[object WeakSet]",Ct="[object ArrayBuffer]",or="[object DataView]",Mr="[object Float32Array]",Fr="[object Float64Array]",xr="[object Int8Array]",fa="[object Int16Array]",ya="[object Int32Array]",ha="[object Uint8Array]",_a="[object Uint8ClampedArray]",ga="[object Uint16Array]",ba="[object Uint32Array]",li=/\b__p \+= '';/g,xa=/\b(__p \+=) '' \+/g,es=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gt=/&(?:amp|lt|gt|quot|#39);/g,Br=/[&<>"']/g,va=RegExp(Gt.source),ts=RegExp(Br.source),ci=/<%-([\s\S]+?)%>/g,rs=/<%([\s\S]+?)%>/g,as=/<%=([\s\S]+?)%>/g,ss=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,is=/^\w*$/,ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wa=/[\\^$.*+?()[\]{}|]/g,ns=RegExp(wa.source),Ta=/^\s+/,di=/\s/,pi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mi=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,S=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,z=/[()=,{}\[\]\/\s]/,X=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,Be=/^\[object .+?Constructor\]$/,De=/^0o[0-7]+$/i,Ae=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,St=/($^)/,os=/['\n\r\u2028\u2029\\]/g,Je="\\ud800-\\udfff",_p="\\u0300-\\u036f",gp="\\ufe20-\\ufe2f",bp="\\u20d0-\\u20ff",Eo=_p+gp+bp,Ro="\\u2700-\\u27bf",Lo="a-z\\xdf-\\xf6\\xf8-\\xff",xp="\\xac\\xb1\\xd7\\xf7",vp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",wp="\\u2000-\\u206f",Tp=" \\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",Mo="A-Z\\xc0-\\xd6\\xd8-\\xde",Fo="\\ufe0e\\ufe0f",Bo=xp+vp+wp+Tp,fi="['’]",Ip="["+Je+"]",jo="["+Bo+"]",ls="["+Eo+"]",Uo="\\d+",Dp="["+Ro+"]",Wo="["+Lo+"]",Ho="[^"+Je+Bo+Uo+Ro+Lo+Mo+"]",yi="\\ud83c[\\udffb-\\udfff]",kp="(?:"+ls+"|"+yi+")",$o="[^"+Je+"]",hi="(?:\\ud83c[\\udde6-\\uddff]){2}",_i="[\\ud800-\\udbff][\\udc00-\\udfff]",jr="["+Mo+"]",Xo="\\u200d",Go="(?:"+Wo+"|"+Ho+")",Ap="(?:"+jr+"|"+Ho+")",Yo="(?:"+fi+"(?:d|ll|m|re|s|t|ve))?",Vo="(?:"+fi+"(?:D|LL|M|RE|S|T|VE))?",Ko=kp+"?",Qo="["+Fo+"]?",qp="(?:"+Xo+"(?:"+[$o,hi,_i].join("|")+")"+Qo+Ko+")*",Cp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jo=Qo+Ko+qp,zp="(?:"+[Dp,hi,_i].join("|")+")"+Jo,Np="(?:"+[$o+ls+"?",ls,hi,_i,Ip].join("|")+")",Op=RegExp(fi,"g"),Pp=RegExp(ls,"g"),gi=RegExp(yi+"(?="+yi+")|"+Np+Jo,"g"),Ep=RegExp([jr+"?"+Wo+"+"+Yo+"(?="+[jo,jr,"$"].join("|")+")",Ap+"+"+Vo+"(?="+[jo,jr+Go,"$"].join("|")+")",jr+"?"+Go+"+"+Yo,jr+"+"+Vo,Sp,Cp,Uo,zp].join("|"),"g"),Rp=RegExp("["+Xo+Je+Eo+Fo+"]"),Lp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mp=["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"],Fp=-1,we={};we[Mr]=we[Fr]=we[xr]=we[fa]=we[ya]=we[ha]=we[_a]=we[ga]=we[ba]=!0,we[Xe]=we[ir]=we[Ct]=we[Mt]=we[or]=we[$t]=we[Pr]=we[gr]=we[nt]=we[Ft]=we[_t]=we[br]=we[ot]=we[Xt]=we[nr]=!1;var ve={};ve[Xe]=ve[ir]=ve[Ct]=ve[or]=ve[Mt]=ve[$t]=ve[Mr]=ve[Fr]=ve[xr]=ve[fa]=ve[ya]=ve[nt]=ve[Ft]=ve[_t]=ve[br]=ve[ot]=ve[Xt]=ve[Lr]=ve[ha]=ve[_a]=ve[ga]=ve[ba]=!0,ve[Pr]=ve[gr]=ve[nr]=!1;var Bp={À:"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"},jp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Up={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Wp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Hp=parseFloat,$p=parseInt,Zo=typeof ta=="object"&&ta&&ta.Object===Object&&ta,Xp=typeof self=="object"&&self&&self.Object===Object&&self,je=Zo||Xp||Function("return this")(),bi=i&&!i.nodeType&&i,vr=bi&&!0&&s&&!s.nodeType&&s,el=vr&&vr.exports===bi,xi=el&&Zo.process,gt=function(){try{var _=vr&&vr.require&&vr.require("util").types;return _||xi&&xi.binding&&xi.binding("util")}catch{}}(),tl=gt&&gt.isArrayBuffer,rl=gt&&gt.isDate,al=gt&&gt.isMap,sl=gt&&gt.isRegExp,il=gt&&gt.isSet,nl=gt&&gt.isTypedArray;function lt(_,k,T){switch(T.length){case 0:return _.call(k);case 1:return _.call(k,T[0]);case 2:return _.call(k,T[0],T[1]);case 3:return _.call(k,T[0],T[1],T[2])}return _.apply(k,T)}function Gp(_,k,T,E){for(var Y=-1,pe=_==null?0:_.length;++Y<pe;){var Oe=_[Y];k(E,Oe,T(Oe),_)}return E}function bt(_,k){for(var T=-1,E=_==null?0:_.length;++T<E&&k(_[T],T,_)!==!1;);return _}function Yp(_,k){for(var T=_==null?0:_.length;T--&&k(_[T],T,_)!==!1;);return _}function ol(_,k){for(var T=-1,E=_==null?0:_.length;++T<E;)if(!k(_[T],T,_))return!1;return!0}function lr(_,k){for(var T=-1,E=_==null?0:_.length,Y=0,pe=[];++T<E;){var Oe=_[T];k(Oe,T,_)&&(pe[Y++]=Oe)}return pe}function cs(_,k){var T=_==null?0:_.length;return!!T&&Ur(_,k,0)>-1}function vi(_,k,T){for(var E=-1,Y=_==null?0:_.length;++E<Y;)if(T(k,_[E]))return!0;return!1}function Te(_,k){for(var T=-1,E=_==null?0:_.length,Y=Array(E);++T<E;)Y[T]=k(_[T],T,_);return Y}function cr(_,k){for(var T=-1,E=k.length,Y=_.length;++T<E;)_[Y+T]=k[T];return _}function wi(_,k,T,E){var Y=-1,pe=_==null?0:_.length;for(E&&pe&&(T=_[++Y]);++Y<pe;)T=k(T,_[Y],Y,_);return T}function Vp(_,k,T,E){var Y=_==null?0:_.length;for(E&&Y&&(T=_[--Y]);Y--;)T=k(T,_[Y],Y,_);return T}function Ti(_,k){for(var T=-1,E=_==null?0:_.length;++T<E;)if(k(_[T],T,_))return!0;return!1}var Kp=Ii("length");function Qp(_){return _.split("")}function Jp(_){return _.match(S)||[]}function ll(_,k,T){var E;return T(_,function(Y,pe,Oe){if(k(Y,pe,Oe))return E=pe,!1}),E}function us(_,k,T,E){for(var Y=_.length,pe=T+(E?1:-1);E?pe--:++pe<Y;)if(k(_[pe],pe,_))return pe;return-1}function Ur(_,k,T){return k===k?um(_,k,T):us(_,cl,T)}function Zp(_,k,T,E){for(var Y=T-1,pe=_.length;++Y<pe;)if(E(_[Y],k))return Y;return-1}function cl(_){return _!==_}function ul(_,k){var T=_==null?0:_.length;return T?ki(_,k)/T:Wt}function Ii(_){return function(k){return k==null?a:k[_]}}function Di(_){return function(k){return _==null?a:_[k]}}function dl(_,k,T,E,Y){return Y(_,function(pe,Oe,xe){T=E?(E=!1,pe):k(T,pe,Oe,xe)}),T}function em(_,k){var T=_.length;for(_.sort(k);T--;)_[T]=_[T].value;return _}function ki(_,k){for(var T,E=-1,Y=_.length;++E<Y;){var pe=k(_[E]);pe!==a&&(T=T===a?pe:T+pe)}return T}function Ai(_,k){for(var T=-1,E=Array(_);++T<_;)E[T]=k(T);return E}function tm(_,k){return Te(k,function(T){return[T,_[T]]})}function pl(_){return _&&_.slice(0,hl(_)+1).replace(Ta,"")}function ct(_){return function(k){return _(k)}}function qi(_,k){return Te(k,function(T){return _[T]})}function Ia(_,k){return _.has(k)}function ml(_,k){for(var T=-1,E=_.length;++T<E&&Ur(k,_[T],0)>-1;);return T}function fl(_,k){for(var T=_.length;T--&&Ur(k,_[T],0)>-1;);return T}function rm(_,k){for(var T=_.length,E=0;T--;)_[T]===k&&++E;return E}var am=Di(Bp),sm=Di(jp);function im(_){return"\\"+Wp[_]}function nm(_,k){return _==null?a:_[k]}function Wr(_){return Rp.test(_)}function om(_){return Lp.test(_)}function lm(_){for(var k,T=[];!(k=_.next()).done;)T.push(k.value);return T}function Ci(_){var k=-1,T=Array(_.size);return _.forEach(function(E,Y){T[++k]=[Y,E]}),T}function yl(_,k){return function(T){return _(k(T))}}function ur(_,k){for(var T=-1,E=_.length,Y=0,pe=[];++T<E;){var Oe=_[T];(Oe===k||Oe===w)&&(_[T]=w,pe[Y++]=T)}return pe}function ds(_){var k=-1,T=Array(_.size);return _.forEach(function(E){T[++k]=E}),T}function cm(_){var k=-1,T=Array(_.size);return _.forEach(function(E){T[++k]=[E,E]}),T}function um(_,k,T){for(var E=T-1,Y=_.length;++E<Y;)if(_[E]===k)return E;return-1}function dm(_,k,T){for(var E=T+1;E--;)if(_[E]===k)return E;return E}function Hr(_){return Wr(_)?mm(_):Kp(_)}function zt(_){return Wr(_)?fm(_):Qp(_)}function hl(_){for(var k=_.length;k--&&di.test(_.charAt(k)););return k}var pm=Di(Up);function mm(_){for(var k=gi.lastIndex=0;gi.test(_);)++k;return k}function fm(_){return _.match(gi)||[]}function ym(_){return _.match(Ep)||[]}var hm=function _(k){k=k==null?je:$r.defaults(je.Object(),k,$r.pick(je,Mp));var T=k.Array,E=k.Date,Y=k.Error,pe=k.Function,Oe=k.Math,xe=k.Object,Si=k.RegExp,_m=k.String,xt=k.TypeError,ps=T.prototype,gm=pe.prototype,Xr=xe.prototype,ms=k["__core-js_shared__"],fs=gm.toString,_e=Xr.hasOwnProperty,bm=0,_l=function(){var e=/[^.]+$/.exec(ms&&ms.keys&&ms.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ys=Xr.toString,xm=fs.call(xe),vm=je._,wm=Si("^"+fs.call(_e).replace(wa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hs=el?k.Buffer:a,dr=k.Symbol,_s=k.Uint8Array,gl=hs?hs.allocUnsafe:a,gs=yl(xe.getPrototypeOf,xe),bl=xe.create,xl=Xr.propertyIsEnumerable,bs=ps.splice,vl=dr?dr.isConcatSpreadable:a,Da=dr?dr.iterator:a,wr=dr?dr.toStringTag:a,xs=function(){try{var e=Ar(xe,"defineProperty");return e({},"",{}),e}catch{}}(),Tm=k.clearTimeout!==je.clearTimeout&&k.clearTimeout,Im=E&&E.now!==je.Date.now&&E.now,Dm=k.setTimeout!==je.setTimeout&&k.setTimeout,vs=Oe.ceil,ws=Oe.floor,zi=xe.getOwnPropertySymbols,km=hs?hs.isBuffer:a,wl=k.isFinite,Am=ps.join,qm=yl(xe.keys,xe),Pe=Oe.max,He=Oe.min,Cm=E.now,Sm=k.parseInt,Tl=Oe.random,zm=ps.reverse,Ni=Ar(k,"DataView"),ka=Ar(k,"Map"),Oi=Ar(k,"Promise"),Gr=Ar(k,"Set"),Aa=Ar(k,"WeakMap"),qa=Ar(xe,"create"),Ts=Aa&&new Aa,Yr={},Nm=qr(Ni),Om=qr(ka),Pm=qr(Oi),Em=qr(Gr),Rm=qr(Aa),Is=dr?dr.prototype:a,Ca=Is?Is.valueOf:a,Il=Is?Is.toString:a;function c(e){if(qe(e)&&!V(e)&&!(e instanceof oe)){if(e instanceof vt)return e;if(_e.call(e,"__wrapped__"))return Dc(e)}return new vt(e)}var Vr=function(){function e(){}return function(t){if(!ke(t))return{};if(bl)return bl(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Ds(){}function vt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}c.templateSettings={escape:ci,evaluate:rs,interpolate:as,variable:"",imports:{_:c}},c.prototype=Ds.prototype,c.prototype.constructor=c,vt.prototype=Vr(Ds.prototype),vt.prototype.constructor=vt;function oe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function Lm(){var e=new oe(this.__wrapped__);return e.__actions__=Ze(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ze(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ze(this.__views__),e}function Mm(){if(this.__filtered__){var e=new oe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Fm(){var e=this.__wrapped__.value(),t=this.__dir__,r=V(e),n=t<0,o=r?e.length:0,d=Jf(0,o,this.__views__),f=d.start,h=d.end,b=h-f,A=n?h:f-1,q=this.__iteratees__,C=q.length,N=0,L=He(b,this.__takeCount__);if(!r||!n&&o==b&&L==b)return Yl(e,this.__actions__);var W=[];e:for(;b--&&N<L;){A+=t;for(var Z=-1,H=e[A];++Z<C;){var ie=q[Z],ce=ie.iteratee,pt=ie.type,Ve=ce(H);if(pt==j)H=Ve;else if(!Ve){if(pt==Re)continue e;break e}}W[N++]=H}return W}oe.prototype=Vr(Ds.prototype),oe.prototype.constructor=oe;function Tr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Bm(){this.__data__=qa?qa(null):{},this.size=0}function jm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Um(e){var t=this.__data__;if(qa){var r=t[e];return r===g?a:r}return _e.call(t,e)?t[e]:a}function Wm(e){var t=this.__data__;return qa?t[e]!==a:_e.call(t,e)}function Hm(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qa&&t===a?g:t,this}Tr.prototype.clear=Bm,Tr.prototype.delete=jm,Tr.prototype.get=Um,Tr.prototype.has=Wm,Tr.prototype.set=Hm;function Yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $m(){this.__data__=[],this.size=0}function Xm(e){var t=this.__data__,r=ks(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():bs.call(t,r,1),--this.size,!0}function Gm(e){var t=this.__data__,r=ks(t,e);return r<0?a:t[r][1]}function Ym(e){return ks(this.__data__,e)>-1}function Vm(e,t){var r=this.__data__,n=ks(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Yt.prototype.clear=$m,Yt.prototype.delete=Xm,Yt.prototype.get=Gm,Yt.prototype.has=Ym,Yt.prototype.set=Vm;function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Km(){this.size=0,this.__data__={hash:new Tr,map:new(ka||Yt),string:new Tr}}function Qm(e){var t=Ms(this,e).delete(e);return this.size-=t?1:0,t}function Jm(e){return Ms(this,e).get(e)}function Zm(e){return Ms(this,e).has(e)}function ef(e,t){var r=Ms(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Vt.prototype.clear=Km,Vt.prototype.delete=Qm,Vt.prototype.get=Jm,Vt.prototype.has=Zm,Vt.prototype.set=ef;function Ir(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Vt;++t<r;)this.add(e[t])}function tf(e){return this.__data__.set(e,g),this}function rf(e){return this.__data__.has(e)}Ir.prototype.add=Ir.prototype.push=tf,Ir.prototype.has=rf;function Nt(e){var t=this.__data__=new Yt(e);this.size=t.size}function af(){this.__data__=new Yt,this.size=0}function sf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function nf(e){return this.__data__.get(e)}function of(e){return this.__data__.has(e)}function lf(e,t){var r=this.__data__;if(r instanceof Yt){var n=r.__data__;if(!ka||n.length<u-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Vt(n)}return r.set(e,t),this.size=r.size,this}Nt.prototype.clear=af,Nt.prototype.delete=sf,Nt.prototype.get=nf,Nt.prototype.has=of,Nt.prototype.set=lf;function Dl(e,t){var r=V(e),n=!r&&Cr(e),o=!r&&!n&&hr(e),d=!r&&!n&&!o&&Zr(e),f=r||n||o||d,h=f?Ai(e.length,_m):[],b=h.length;for(var A in e)(t||_e.call(e,A))&&!(f&&(A=="length"||o&&(A=="offset"||A=="parent")||d&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||Zt(A,b)))&&h.push(A);return h}function kl(e){var t=e.length;return t?e[Hi(0,t-1)]:a}function cf(e,t){return Fs(Ze(e),Dr(t,0,e.length))}function uf(e){return Fs(Ze(e))}function Pi(e,t,r){(r!==a&&!Ot(e[t],r)||r===a&&!(t in e))&&Kt(e,t,r)}function Sa(e,t,r){var n=e[t];(!(_e.call(e,t)&&Ot(n,r))||r===a&&!(t in e))&&Kt(e,t,r)}function ks(e,t){for(var r=e.length;r--;)if(Ot(e[r][0],t))return r;return-1}function df(e,t,r,n){return pr(e,function(o,d,f){t(n,o,r(o),f)}),n}function Al(e,t){return e&&jt(t,Fe(t),e)}function pf(e,t){return e&&jt(t,tt(t),e)}function Kt(e,t,r){t=="__proto__"&&xs?xs(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ei(e,t){for(var r=-1,n=t.length,o=T(n),d=e==null;++r<n;)o[r]=d?a:hn(e,t[r]);return o}function Dr(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function wt(e,t,r,n,o,d){var f,h=t&D,b=t&O,A=t&P;if(r&&(f=o?r(e,n,o,d):r(e)),f!==a)return f;if(!ke(e))return e;var q=V(e);if(q){if(f=ey(e),!h)return Ze(e,f)}else{var C=$e(e),N=C==gr||C==Ja;if(hr(e))return Ql(e,h);if(C==_t||C==Xe||N&&!o){if(f=b||N?{}:hc(e),!h)return b?Wf(e,pf(f,e)):Uf(e,Al(f,e))}else{if(!ve[C])return o?e:{};f=ty(e,C,h)}}d||(d=new Nt);var L=d.get(e);if(L)return L;d.set(e,f),$c(e)?e.forEach(function(H){f.add(wt(H,t,r,H,e,d))}):Wc(e)&&e.forEach(function(H,ie){f.set(ie,wt(H,t,r,ie,e,d))});var W=A?b?tn:en:b?tt:Fe,Z=q?a:W(e);return bt(Z||e,function(H,ie){Z&&(ie=H,H=e[ie]),Sa(f,ie,wt(H,t,r,ie,e,d))}),f}function mf(e){var t=Fe(e);return function(r){return ql(r,e,t)}}function ql(e,t,r){var n=r.length;if(e==null)return!n;for(e=xe(e);n--;){var o=r[n],d=t[o],f=e[o];if(f===a&&!(o in e)||!d(f))return!1}return!0}function Cl(e,t,r){if(typeof e!="function")throw new xt(m);return La(function(){e.apply(a,r)},t)}function za(e,t,r,n){var o=-1,d=cs,f=!0,h=e.length,b=[],A=t.length;if(!h)return b;r&&(t=Te(t,ct(r))),n?(d=vi,f=!1):t.length>=u&&(d=Ia,f=!1,t=new Ir(t));e:for(;++o<h;){var q=e[o],C=r==null?q:r(q);if(q=n||q!==0?q:0,f&&C===C){for(var N=A;N--;)if(t[N]===C)continue e;b.push(q)}else d(t,C,n)||b.push(q)}return b}var pr=rc(Bt),Sl=rc(Li,!0);function ff(e,t){var r=!0;return pr(e,function(n,o,d){return r=!!t(n,o,d),r}),r}function As(e,t,r){for(var n=-1,o=e.length;++n<o;){var d=e[n],f=t(d);if(f!=null&&(h===a?f===f&&!dt(f):r(f,h)))var h=f,b=d}return b}function yf(e,t,r,n){var o=e.length;for(r=Q(r),r<0&&(r=-r>o?0:o+r),n=n===a||n>o?o:Q(n),n<0&&(n+=o),n=r>n?0:Gc(n);r<n;)e[r++]=t;return e}function zl(e,t){var r=[];return pr(e,function(n,o,d){t(n,o,d)&&r.push(n)}),r}function Ue(e,t,r,n,o){var d=-1,f=e.length;for(r||(r=ay),o||(o=[]);++d<f;){var h=e[d];t>0&&r(h)?t>1?Ue(h,t-1,r,n,o):cr(o,h):n||(o[o.length]=h)}return o}var Ri=ac(),Nl=ac(!0);function Bt(e,t){return e&&Ri(e,t,Fe)}function Li(e,t){return e&&Nl(e,t,Fe)}function qs(e,t){return lr(t,function(r){return er(e[r])})}function kr(e,t){t=fr(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Ut(t[r++])];return r&&r==n?e:a}function Ol(e,t,r){var n=t(e);return V(e)?n:cr(n,r(e))}function Ge(e){return e==null?e===a?oi:Er:wr&&wr in xe(e)?Qf(e):uy(e)}function Mi(e,t){return e>t}function hf(e,t){return e!=null&&_e.call(e,t)}function _f(e,t){return e!=null&&t in xe(e)}function gf(e,t,r){return e>=He(t,r)&&e<Pe(t,r)}function Fi(e,t,r){for(var n=r?vi:cs,o=e[0].length,d=e.length,f=d,h=T(d),b=1/0,A=[];f--;){var q=e[f];f&&t&&(q=Te(q,ct(t))),b=He(q.length,b),h[f]=!r&&(t||o>=120&&q.length>=120)?new Ir(f&&q):a}q=e[0];var C=-1,N=h[0];e:for(;++C<o&&A.length<b;){var L=q[C],W=t?t(L):L;if(L=r||L!==0?L:0,!(N?Ia(N,W):n(A,W,r))){for(f=d;--f;){var Z=h[f];if(!(Z?Ia(Z,W):n(e[f],W,r)))continue e}N&&N.push(W),A.push(L)}}return A}function bf(e,t,r,n){return Bt(e,function(o,d,f){t(n,r(o),d,f)}),n}function Na(e,t,r){t=fr(t,e),e=xc(e,t);var n=e==null?e:e[Ut(It(t))];return n==null?a:lt(n,e,r)}function Pl(e){return qe(e)&&Ge(e)==Xe}function xf(e){return qe(e)&&Ge(e)==Ct}function vf(e){return qe(e)&&Ge(e)==$t}function Oa(e,t,r,n,o){return e===t?!0:e==null||t==null||!qe(e)&&!qe(t)?e!==e&&t!==t:wf(e,t,r,n,Oa,o)}function wf(e,t,r,n,o,d){var f=V(e),h=V(t),b=f?ir:$e(e),A=h?ir:$e(t);b=b==Xe?_t:b,A=A==Xe?_t:A;var q=b==_t,C=A==_t,N=b==A;if(N&&hr(e)){if(!hr(t))return!1;f=!0,q=!1}if(N&&!q)return d||(d=new Nt),f||Zr(e)?mc(e,t,r,n,o,d):Vf(e,t,b,r,n,o,d);if(!(r&F)){var L=q&&_e.call(e,"__wrapped__"),W=C&&_e.call(t,"__wrapped__");if(L||W){var Z=L?e.value():e,H=W?t.value():t;return d||(d=new Nt),o(Z,H,r,n,d)}}return N?(d||(d=new Nt),Kf(e,t,r,n,o,d)):!1}function Tf(e){return qe(e)&&$e(e)==nt}function Bi(e,t,r,n){var o=r.length,d=o,f=!n;if(e==null)return!d;for(e=xe(e);o--;){var h=r[o];if(f&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++o<d;){h=r[o];var b=h[0],A=e[b],q=h[1];if(f&&h[2]){if(A===a&&!(b in e))return!1}else{var C=new Nt;if(n)var N=n(A,q,b,e,t,C);if(!(N===a?Oa(q,A,F|B,n,C):N))return!1}}return!0}function El(e){if(!ke(e)||iy(e))return!1;var t=er(e)?wm:Be;return t.test(qr(e))}function If(e){return qe(e)&&Ge(e)==br}function Df(e){return qe(e)&&$e(e)==ot}function kf(e){return qe(e)&&$s(e.length)&&!!we[Ge(e)]}function Rl(e){return typeof e=="function"?e:e==null?rt:typeof e=="object"?V(e)?Fl(e[0],e[1]):Ml(e):su(e)}function ji(e){if(!Ra(e))return qm(e);var t=[];for(var r in xe(e))_e.call(e,r)&&r!="constructor"&&t.push(r);return t}function Af(e){if(!ke(e))return cy(e);var t=Ra(e),r=[];for(var n in e)n=="constructor"&&(t||!_e.call(e,n))||r.push(n);return r}function Ui(e,t){return e<t}function Ll(e,t){var r=-1,n=et(e)?T(e.length):[];return pr(e,function(o,d,f){n[++r]=t(o,d,f)}),n}function Ml(e){var t=an(e);return t.length==1&&t[0][2]?gc(t[0][0],t[0][1]):function(r){return r===e||Bi(r,e,t)}}function Fl(e,t){return nn(e)&&_c(t)?gc(Ut(e),t):function(r){var n=hn(r,e);return n===a&&n===t?_n(r,e):Oa(t,n,F|B)}}function Cs(e,t,r,n,o){e!==t&&Ri(t,function(d,f){if(o||(o=new Nt),ke(d))qf(e,t,f,r,Cs,n,o);else{var h=n?n(ln(e,f),d,f+"",e,t,o):a;h===a&&(h=d),Pi(e,f,h)}},tt)}function qf(e,t,r,n,o,d,f){var h=ln(e,r),b=ln(t,r),A=f.get(b);if(A){Pi(e,r,A);return}var q=d?d(h,b,r+"",e,t,f):a,C=q===a;if(C){var N=V(b),L=!N&&hr(b),W=!N&&!L&&Zr(b);q=b,N||L||W?V(h)?q=h:Ce(h)?q=Ze(h):L?(C=!1,q=Ql(b,!0)):W?(C=!1,q=Jl(b,!0)):q=[]:Ma(b)||Cr(b)?(q=h,Cr(h)?q=Yc(h):(!ke(h)||er(h))&&(q=hc(b))):C=!1}C&&(f.set(b,q),o(q,b,n,d,f),f.delete(b)),Pi(e,r,q)}function Bl(e,t){var r=e.length;if(r)return t+=t<0?r:0,Zt(t,r)?e[t]:a}function jl(e,t,r){t.length?t=Te(t,function(d){return V(d)?function(f){return kr(f,d.length===1?d[0]:d)}:d}):t=[rt];var n=-1;t=Te(t,ct(U()));var o=Ll(e,function(d,f,h){var b=Te(t,function(A){return A(d)});return{criteria:b,index:++n,value:d}});return em(o,function(d,f){return jf(d,f,r)})}function Cf(e,t){return Ul(e,t,function(r,n){return _n(e,n)})}function Ul(e,t,r){for(var n=-1,o=t.length,d={};++n<o;){var f=t[n],h=kr(e,f);r(h,f)&&Pa(d,fr(f,e),h)}return d}function Sf(e){return function(t){return kr(t,e)}}function Wi(e,t,r,n){var o=n?Zp:Ur,d=-1,f=t.length,h=e;for(e===t&&(t=Ze(t)),r&&(h=Te(e,ct(r)));++d<f;)for(var b=0,A=t[d],q=r?r(A):A;(b=o(h,q,b,n))>-1;)h!==e&&bs.call(h,b,1),bs.call(e,b,1);return e}function Wl(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==d){var d=o;Zt(o)?bs.call(e,o,1):Gi(e,o)}}return e}function Hi(e,t){return e+ws(Tl()*(t-e+1))}function zf(e,t,r,n){for(var o=-1,d=Pe(vs((t-e)/(r||1)),0),f=T(d);d--;)f[n?d:++o]=e,e+=r;return f}function $i(e,t){var r="";if(!e||t<1||t>Le)return r;do t%2&&(r+=e),t=ws(t/2),t&&(e+=e);while(t);return r}function te(e,t){return cn(bc(e,t,rt),e+"")}function Nf(e){return kl(ea(e))}function Of(e,t){var r=ea(e);return Fs(r,Dr(t,0,r.length))}function Pa(e,t,r,n){if(!ke(e))return e;t=fr(t,e);for(var o=-1,d=t.length,f=d-1,h=e;h!=null&&++o<d;){var b=Ut(t[o]),A=r;if(b==="__proto__"||b==="constructor"||b==="prototype")return e;if(o!=f){var q=h[b];A=n?n(q,b,h):a,A===a&&(A=ke(q)?q:Zt(t[o+1])?[]:{})}Sa(h,b,A),h=h[b]}return e}var Hl=Ts?function(e,t){return Ts.set(e,t),e}:rt,Pf=xs?function(e,t){return xs(e,"toString",{configurable:!0,enumerable:!1,value:bn(t),writable:!0})}:rt;function Ef(e){return Fs(ea(e))}function Tt(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var d=T(o);++n<o;)d[n]=e[n+t];return d}function Rf(e,t){var r;return pr(e,function(n,o,d){return r=t(n,o,d),!r}),!!r}function Ss(e,t,r){var n=0,o=e==null?n:e.length;if(typeof t=="number"&&t===t&&o<=Me){for(;n<o;){var d=n+o>>>1,f=e[d];f!==null&&!dt(f)&&(r?f<=t:f<t)?n=d+1:o=d}return o}return Xi(e,t,rt,r)}function Xi(e,t,r,n){var o=0,d=e==null?0:e.length;if(d===0)return 0;t=r(t);for(var f=t!==t,h=t===null,b=dt(t),A=t===a;o<d;){var q=ws((o+d)/2),C=r(e[q]),N=C!==a,L=C===null,W=C===C,Z=dt(C);if(f)var H=n||W;else A?H=W&&(n||N):h?H=W&&N&&(n||!L):b?H=W&&N&&!L&&(n||!Z):L||Z?H=!1:H=n?C<=t:C<t;H?o=q+1:d=q}return He(d,be)}function $l(e,t){for(var r=-1,n=e.length,o=0,d=[];++r<n;){var f=e[r],h=t?t(f):f;if(!r||!Ot(h,b)){var b=h;d[o++]=f===0?0:f}}return d}function Xl(e){return typeof e=="number"?e:dt(e)?Wt:+e}function ut(e){if(typeof e=="string")return e;if(V(e))return Te(e,ut)+"";if(dt(e))return Il?Il.call(e):"";var t=e+"";return t=="0"&&1/e==-Ne?"-0":t}function mr(e,t,r){var n=-1,o=cs,d=e.length,f=!0,h=[],b=h;if(r)f=!1,o=vi;else if(d>=u){var A=t?null:Gf(e);if(A)return ds(A);f=!1,o=Ia,b=new Ir}else b=t?[]:h;e:for(;++n<d;){var q=e[n],C=t?t(q):q;if(q=r||q!==0?q:0,f&&C===C){for(var N=b.length;N--;)if(b[N]===C)continue e;t&&b.push(C),h.push(q)}else o(b,C,r)||(b!==h&&b.push(C),h.push(q))}return h}function Gi(e,t){return t=fr(t,e),e=xc(e,t),e==null||delete e[Ut(It(t))]}function Gl(e,t,r,n){return Pa(e,t,r(kr(e,t)),n)}function zs(e,t,r,n){for(var o=e.length,d=n?o:-1;(n?d--:++d<o)&&t(e[d],d,e););return r?Tt(e,n?0:d,n?d+1:o):Tt(e,n?d+1:0,n?o:d)}function Yl(e,t){var r=e;return r instanceof oe&&(r=r.value()),wi(t,function(n,o){return o.func.apply(o.thisArg,cr([n],o.args))},r)}function Yi(e,t,r){var n=e.length;if(n<2)return n?mr(e[0]):[];for(var o=-1,d=T(n);++o<n;)for(var f=e[o],h=-1;++h<n;)h!=o&&(d[o]=za(d[o]||f,e[h],t,r));return mr(Ue(d,1),t,r)}function Vl(e,t,r){for(var n=-1,o=e.length,d=t.length,f={};++n<o;){var h=n<d?t[n]:a;r(f,e[n],h)}return f}function Vi(e){return Ce(e)?e:[]}function Ki(e){return typeof e=="function"?e:rt}function fr(e,t){return V(e)?e:nn(e,t)?[e]:Ic(fe(e))}var Lf=te;function yr(e,t,r){var n=e.length;return r=r===a?n:r,!t&&r>=n?e:Tt(e,t,r)}var Kl=Tm||function(e){return je.clearTimeout(e)};function Ql(e,t){if(t)return e.slice();var r=e.length,n=gl?gl(r):new e.constructor(r);return e.copy(n),n}function Qi(e){var t=new e.constructor(e.byteLength);return new _s(t).set(new _s(e)),t}function Mf(e,t){var r=t?Qi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Ff(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}function Bf(e){return Ca?xe(Ca.call(e)):{}}function Jl(e,t){var r=t?Qi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Zl(e,t){if(e!==t){var r=e!==a,n=e===null,o=e===e,d=dt(e),f=t!==a,h=t===null,b=t===t,A=dt(t);if(!h&&!A&&!d&&e>t||d&&f&&b&&!h&&!A||n&&f&&b||!r&&b||!o)return 1;if(!n&&!d&&!A&&e<t||A&&r&&o&&!n&&!d||h&&r&&o||!f&&o||!b)return-1}return 0}function jf(e,t,r){for(var n=-1,o=e.criteria,d=t.criteria,f=o.length,h=r.length;++n<f;){var b=Zl(o[n],d[n]);if(b){if(n>=h)return b;var A=r[n];return b*(A=="desc"?-1:1)}}return e.index-t.index}function ec(e,t,r,n){for(var o=-1,d=e.length,f=r.length,h=-1,b=t.length,A=Pe(d-f,0),q=T(b+A),C=!n;++h<b;)q[h]=t[h];for(;++o<f;)(C||o<d)&&(q[r[o]]=e[o]);for(;A--;)q[h++]=e[o++];return q}function tc(e,t,r,n){for(var o=-1,d=e.length,f=-1,h=r.length,b=-1,A=t.length,q=Pe(d-h,0),C=T(q+A),N=!n;++o<q;)C[o]=e[o];for(var L=o;++b<A;)C[L+b]=t[b];for(;++f<h;)(N||o<d)&&(C[L+r[f]]=e[o++]);return C}function Ze(e,t){var r=-1,n=e.length;for(t||(t=T(n));++r<n;)t[r]=e[r];return t}function jt(e,t,r,n){var o=!r;r||(r={});for(var d=-1,f=t.length;++d<f;){var h=t[d],b=n?n(r[h],e[h],h,r,e):a;b===a&&(b=e[h]),o?Kt(r,h,b):Sa(r,h,b)}return r}function Uf(e,t){return jt(e,sn(e),t)}function Wf(e,t){return jt(e,fc(e),t)}function Ns(e,t){return function(r,n){var o=V(r)?Gp:df,d=t?t():{};return o(r,e,U(n,2),d)}}function Kr(e){return te(function(t,r){var n=-1,o=r.length,d=o>1?r[o-1]:a,f=o>2?r[2]:a;for(d=e.length>3&&typeof d=="function"?(o--,d):a,f&&Ye(r[0],r[1],f)&&(d=o<3?a:d,o=1),t=xe(t);++n<o;){var h=r[n];h&&e(t,h,n,d)}return t})}function rc(e,t){return function(r,n){if(r==null)return r;if(!et(r))return e(r,n);for(var o=r.length,d=t?o:-1,f=xe(r);(t?d--:++d<o)&&n(f[d],d,f)!==!1;);return r}}function ac(e){return function(t,r,n){for(var o=-1,d=xe(t),f=n(t),h=f.length;h--;){var b=f[e?h:++o];if(r(d[b],b,d)===!1)break}return t}}function Hf(e,t,r){var n=t&R,o=Ea(e);function d(){var f=this&&this!==je&&this instanceof d?o:e;return f.apply(n?r:this,arguments)}return d}function sc(e){return function(t){t=fe(t);var r=Wr(t)?zt(t):a,n=r?r[0]:t.charAt(0),o=r?yr(r,1).join(""):t.slice(1);return n[e]()+o}}function Qr(e){return function(t){return wi(ru(tu(t).replace(Op,"")),e,"")}}function Ea(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=Vr(e.prototype),n=e.apply(r,t);return ke(n)?n:r}}function $f(e,t,r){var n=Ea(e);function o(){for(var d=arguments.length,f=T(d),h=d,b=Jr(o);h--;)f[h]=arguments[h];var A=d<3&&f[0]!==b&&f[d-1]!==b?[]:ur(f,b);if(d-=A.length,d<r)return cc(e,t,Os,o.placeholder,a,f,A,a,a,r-d);var q=this&&this!==je&&this instanceof o?n:e;return lt(q,this,f)}return o}function ic(e){return function(t,r,n){var o=xe(t);if(!et(t)){var d=U(r,3);t=Fe(t),r=function(h){return d(o[h],h,o)}}var f=e(t,r,n);return f>-1?o[d?t[f]:f]:a}}function nc(e){return Jt(function(t){var r=t.length,n=r,o=vt.prototype.thru;for(e&&t.reverse();n--;){var d=t[n];if(typeof d!="function")throw new xt(m);if(o&&!f&&Ls(d)=="wrapper")var f=new vt([],!0)}for(n=f?n:r;++n<r;){d=t[n];var h=Ls(d),b=h=="wrapper"?rn(d):a;b&&on(b[0])&&b[1]==(ee|he|J|ze)&&!b[4].length&&b[9]==1?f=f[Ls(b[0])].apply(f,b[3]):f=d.length==1&&on(d)?f[h]():f.thru(d)}return function(){var A=arguments,q=A[0];if(f&&A.length==1&&V(q))return f.plant(q).value();for(var C=0,N=r?t[C].apply(this,A):q;++C<r;)N=t[C].call(this,N);return N}})}function Os(e,t,r,n,o,d,f,h,b,A){var q=t&ee,C=t&R,N=t&K,L=t&(he|le),W=t&ge,Z=N?a:Ea(e);function H(){for(var ie=arguments.length,ce=T(ie),pt=ie;pt--;)ce[pt]=arguments[pt];if(L)var Ve=Jr(H),mt=rm(ce,Ve);if(n&&(ce=ec(ce,n,o,L)),d&&(ce=tc(ce,d,f,L)),ie-=mt,L&&ie<A){var Se=ur(ce,Ve);return cc(e,t,Os,H.placeholder,r,ce,Se,h,b,A-ie)}var Pt=C?r:this,rr=N?Pt[e]:e;return ie=ce.length,h?ce=dy(ce,h):W&&ie>1&&ce.reverse(),q&&b<ie&&(ce.length=b),this&&this!==je&&this instanceof H&&(rr=Z||Ea(rr)),rr.apply(Pt,ce)}return H}function oc(e,t){return function(r,n){return bf(r,e,t(n),{})}}function Ps(e,t){return function(r,n){var o;if(r===a&&n===a)return t;if(r!==a&&(o=r),n!==a){if(o===a)return n;typeof r=="string"||typeof n=="string"?(r=ut(r),n=ut(n)):(r=Xl(r),n=Xl(n)),o=e(r,n)}return o}}function Ji(e){return Jt(function(t){return t=Te(t,ct(U())),te(function(r){var n=this;return e(t,function(o){return lt(o,n,r)})})})}function Es(e,t){t=t===a?" ":ut(t);var r=t.length;if(r<2)return r?$i(t,e):t;var n=$i(t,vs(e/Hr(t)));return Wr(t)?yr(zt(n),0,e).join(""):n.slice(0,e)}function Xf(e,t,r,n){var o=t&R,d=Ea(e);function f(){for(var h=-1,b=arguments.length,A=-1,q=n.length,C=T(q+b),N=this&&this!==je&&this instanceof f?d:e;++A<q;)C[A]=n[A];for(;b--;)C[A++]=arguments[++h];return lt(N,o?r:this,C)}return f}function lc(e){return function(t,r,n){return n&&typeof n!="number"&&Ye(t,r,n)&&(r=n=a),t=tr(t),r===a?(r=t,t=0):r=tr(r),n=n===a?t<r?1:-1:tr(n),zf(t,r,n,e)}}function Rs(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Dt(t),r=Dt(r)),e(t,r)}}function cc(e,t,r,n,o,d,f,h,b,A){var q=t&he,C=q?f:a,N=q?a:f,L=q?d:a,W=q?a:d;t|=q?J:ue,t&=~(q?ue:J),t&$||(t&=~(R|K));var Z=[e,t,o,L,C,W,N,h,b,A],H=r.apply(a,Z);return on(e)&&vc(H,Z),H.placeholder=n,wc(H,e,t)}function Zi(e){var t=Oe[e];return function(r,n){if(r=Dt(r),n=n==null?0:He(Q(n),292),n&&wl(r)){var o=(fe(r)+"e").split("e"),d=t(o[0]+"e"+(+o[1]+n));return o=(fe(d)+"e").split("e"),+(o[0]+"e"+(+o[1]-n))}return t(r)}}var Gf=Gr&&1/ds(new Gr([,-0]))[1]==Ne?function(e){return new Gr(e)}:wn;function uc(e){return function(t){var r=$e(t);return r==nt?Ci(t):r==ot?cm(t):tm(t,e(t))}}function Qt(e,t,r,n,o,d,f,h){var b=t&K;if(!b&&typeof e!="function")throw new xt(m);var A=n?n.length:0;if(A||(t&=~(J|ue),n=o=a),f=f===a?f:Pe(Q(f),0),h=h===a?h:Q(h),A-=o?o.length:0,t&ue){var q=n,C=o;n=o=a}var N=b?a:rn(e),L=[e,t,r,n,o,q,C,d,f,h];if(N&&ly(L,N),e=L[0],t=L[1],r=L[2],n=L[3],o=L[4],h=L[9]=L[9]===a?b?0:e.length:Pe(L[9]-A,0),!h&&t&(he|le)&&(t&=~(he|le)),!t||t==R)var W=Hf(e,t,r);else t==he||t==le?W=$f(e,t,h):(t==J||t==(R|J))&&!o.length?W=Xf(e,t,r,n):W=Os.apply(a,L);var Z=N?Hl:vc;return wc(Z(W,L),e,t)}function dc(e,t,r,n){return e===a||Ot(e,Xr[r])&&!_e.call(n,r)?t:e}function pc(e,t,r,n,o,d){return ke(e)&&ke(t)&&(d.set(t,e),Cs(e,t,a,pc,d),d.delete(t)),e}function Yf(e){return Ma(e)?a:e}function mc(e,t,r,n,o,d){var f=r&F,h=e.length,b=t.length;if(h!=b&&!(f&&b>h))return!1;var A=d.get(e),q=d.get(t);if(A&&q)return A==t&&q==e;var C=-1,N=!0,L=r&B?new Ir:a;for(d.set(e,t),d.set(t,e);++C<h;){var W=e[C],Z=t[C];if(n)var H=f?n(Z,W,C,t,e,d):n(W,Z,C,e,t,d);if(H!==a){if(H)continue;N=!1;break}if(L){if(!Ti(t,function(ie,ce){if(!Ia(L,ce)&&(W===ie||o(W,ie,r,n,d)))return L.push(ce)})){N=!1;break}}else if(!(W===Z||o(W,Z,r,n,d))){N=!1;break}}return d.delete(e),d.delete(t),N}function Vf(e,t,r,n,o,d,f){switch(r){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ct:return!(e.byteLength!=t.byteLength||!d(new _s(e),new _s(t)));case Mt:case $t:case Ft:return Ot(+e,+t);case Pr:return e.name==t.name&&e.message==t.message;case br:case Xt:return e==t+"";case nt:var h=Ci;case ot:var b=n&F;if(h||(h=ds),e.size!=t.size&&!b)return!1;var A=f.get(e);if(A)return A==t;n|=B,f.set(e,t);var q=mc(h(e),h(t),n,o,d,f);return f.delete(e),q;case Lr:if(Ca)return Ca.call(e)==Ca.call(t)}return!1}function Kf(e,t,r,n,o,d){var f=r&F,h=en(e),b=h.length,A=en(t),q=A.length;if(b!=q&&!f)return!1;for(var C=b;C--;){var N=h[C];if(!(f?N in t:_e.call(t,N)))return!1}var L=d.get(e),W=d.get(t);if(L&&W)return L==t&&W==e;var Z=!0;d.set(e,t),d.set(t,e);for(var H=f;++C<b;){N=h[C];var ie=e[N],ce=t[N];if(n)var pt=f?n(ce,ie,N,t,e,d):n(ie,ce,N,e,t,d);if(!(pt===a?ie===ce||o(ie,ce,r,n,d):pt)){Z=!1;break}H||(H=N=="constructor")}if(Z&&!H){var Ve=e.constructor,mt=t.constructor;Ve!=mt&&"constructor"in e&&"constructor"in t&&!(typeof Ve=="function"&&Ve instanceof Ve&&typeof mt=="function"&&mt instanceof mt)&&(Z=!1)}return d.delete(e),d.delete(t),Z}function Jt(e){return cn(bc(e,a,qc),e+"")}function en(e){return Ol(e,Fe,sn)}function tn(e){return Ol(e,tt,fc)}var rn=Ts?function(e){return Ts.get(e)}:wn;function Ls(e){for(var t=e.name+"",r=Yr[t],n=_e.call(Yr,t)?r.length:0;n--;){var o=r[n],d=o.func;if(d==null||d==e)return o.name}return t}function Jr(e){var t=_e.call(c,"placeholder")?c:e;return t.placeholder}function U(){var e=c.iteratee||xn;return e=e===xn?Rl:e,arguments.length?e(arguments[0],arguments[1]):e}function Ms(e,t){var r=e.__data__;return sy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function an(e){for(var t=Fe(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,_c(o)]}return t}function Ar(e,t){var r=nm(e,t);return El(r)?r:a}function Qf(e){var t=_e.call(e,wr),r=e[wr];try{e[wr]=a;var n=!0}catch{}var o=ys.call(e);return n&&(t?e[wr]=r:delete e[wr]),o}var sn=zi?function(e){return e==null?[]:(e=xe(e),lr(zi(e),function(t){return xl.call(e,t)}))}:Tn,fc=zi?function(e){for(var t=[];e;)cr(t,sn(e)),e=gs(e);return t}:Tn,$e=Ge;(Ni&&$e(new Ni(new ArrayBuffer(1)))!=or||ka&&$e(new ka)!=nt||Oi&&$e(Oi.resolve())!=ma||Gr&&$e(new Gr)!=ot||Aa&&$e(new Aa)!=nr)&&($e=function(e){var t=Ge(e),r=t==_t?e.constructor:a,n=r?qr(r):"";if(n)switch(n){case Nm:return or;case Om:return nt;case Pm:return ma;case Em:return ot;case Rm:return nr}return t});function Jf(e,t,r){for(var n=-1,o=r.length;++n<o;){var d=r[n],f=d.size;switch(d.type){case"drop":e+=f;break;case"dropRight":t-=f;break;case"take":t=He(t,e+f);break;case"takeRight":e=Pe(e,t-f);break}}return{start:e,end:t}}function Zf(e){var t=e.match(mi);return t?t[1].split(y):[]}function yc(e,t,r){t=fr(t,e);for(var n=-1,o=t.length,d=!1;++n<o;){var f=Ut(t[n]);if(!(d=e!=null&&r(e,f)))break;e=e[f]}return d||++n!=o?d:(o=e==null?0:e.length,!!o&&$s(o)&&Zt(f,o)&&(V(e)||Cr(e)))}function ey(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&_e.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function hc(e){return typeof e.constructor=="function"&&!Ra(e)?Vr(gs(e)):{}}function ty(e,t,r){var n=e.constructor;switch(t){case Ct:return Qi(e);case Mt:case $t:return new n(+e);case or:return Mf(e,r);case Mr:case Fr:case xr:case fa:case ya:case ha:case _a:case ga:case ba:return Jl(e,r);case nt:return new n;case Ft:case Xt:return new n(e);case br:return Ff(e);case ot:return new n;case Lr:return Bf(e)}}function ry(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(pi,`{
113
113
  /* [wrapped with `+t+`] */
114
- `)}function ay(e){return V(e)||Cr(e)||!!(vl&&e&&e[vl])}function Zt(e,t){var r=typeof e;return t=t??Le,!!t&&(r=="number"||r!="symbol"&&Ae.test(e))&&e>-1&&e%1==0&&e<t}function Ye(e,t,r){if(!ke(r))return!1;var n=typeof t;return(n=="number"?et(r)&&Zt(t,r.length):n=="string"&&t in r)?Ot(r[t],e):!1}function nn(e,t){if(V(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||dt(e)?!0:is.test(e)||!ss.test(e)||t!=null&&e in xe(t)}function sy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function on(e){var t=Ls(e),r=c[t];if(typeof r!="function"||!(t in oe.prototype))return!1;if(e===r)return!0;var n=rn(r);return!!n&&e===n[0]}function iy(e){return!!_l&&_l in e}var ny=ms?er:In;function Ea(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Xr;return e===r}function _c(e){return e===e&&!ke(e)}function gc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in xe(r))}}function oy(e){var t=Ws(e,function(n){return r.size===v&&r.clear(),n}),r=t.cache;return t}function ly(e,t){var r=e[1],n=t[1],o=r|n,d=o<(E|K|ee),f=n==ee&&r==he||n==ee&&r==ze&&e[7].length<=t[8]||n==(ee|ze)&&t[7].length<=t[8]&&r==he;if(!(d||f))return e;n&E&&(e[2]=t[2],o|=r&E?0:$);var h=t[3];if(h){var b=e[3];e[3]=b?ec(b,h,t[4]):h,e[4]=b?ur(e[3],w):t[4]}return h=t[5],h&&(b=e[5],e[5]=b?tc(b,h,t[6]):h,e[6]=b?ur(e[5],w):t[6]),h=t[7],h&&(e[7]=h),n&ee&&(e[8]=e[8]==null?t[8]:He(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function cy(e){var t=[];if(e!=null)for(var r in xe(e))t.push(r);return t}function uy(e){return ys.call(e)}function bc(e,t,r){return t=Re(t===a?e.length-1:t,0),function(){for(var n=arguments,o=-1,d=Re(n.length-t,0),f=T(d);++o<d;)f[o]=n[t+o];o=-1;for(var h=T(t+1);++o<t;)h[o]=n[o];return h[t]=r(f),lt(e,this,h)}}function xc(e,t){return t.length<2?e:kr(e,Tt(t,0,-1))}function dy(e,t){for(var r=e.length,n=He(t.length,r),o=Ze(e);n--;){var d=t[n];e[n]=Zt(d,r)?o[d]:a}return e}function ln(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var vc=Tc(Hl),La=Dm||function(e,t){return je.setTimeout(e,t)},cn=Tc(Rf);function wc(e,t,r){var n=t+"";return cn(e,ry(n,py(Zf(n),r)))}function Tc(e){var t=0,r=0;return function(){var n=Cm(),o=Pe-(n-r);if(r=n,o>0){if(++t>=ht)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Fs(e,t){var r=-1,n=e.length,o=n-1;for(t=t===a?n:t;++r<t;){var d=Hi(r,o),f=e[d];e[d]=e[r],e[r]=f}return e.length=t,e}var Ic=oy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ui,function(r,n,o,d){t.push(o?d.replace(X,"$1"):n||r)}),t});function Ut(e){if(typeof e=="string"||dt(e))return e;var t=e+"";return t=="0"&&1/e==-Ne?"-0":t}function qr(e){if(e!=null){try{return fs.call(e)}catch{}try{return e+""}catch{}}return""}function py(e,t){return bt(Ht,function(r){var n="_."+r[0];t&r[1]&&!cs(e,n)&&e.push(n)}),e.sort()}function Dc(e){if(e instanceof oe)return e.clone();var t=new vt(e.__wrapped__,e.__chain__);return t.__actions__=Ze(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function my(e,t,r){(r?Ye(e,t,r):t===a)?t=1:t=Re(Q(t),0);var n=e==null?0:e.length;if(!n||t<1)return[];for(var o=0,d=0,f=T(vs(n/t));o<n;)f[d++]=Tt(e,o,o+=t);return f}function fy(e){for(var t=-1,r=e==null?0:e.length,n=0,o=[];++t<r;){var d=e[t];d&&(o[n++]=d)}return o}function yy(){var e=arguments.length;if(!e)return[];for(var t=T(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return cr(V(r)?Ze(r):[r],Ue(t,1))}var hy=te(function(e,t){return Ce(e)?za(e,Ue(t,1,Ce,!0)):[]}),_y=te(function(e,t){var r=It(t);return Ce(r)&&(r=a),Ce(e)?za(e,Ue(t,1,Ce,!0),U(r,2)):[]}),gy=te(function(e,t){var r=It(t);return Ce(r)&&(r=a),Ce(e)?za(e,Ue(t,1,Ce,!0),a,r):[]});function by(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Q(t),Tt(e,t<0?0:t,n)):[]}function xy(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Q(t),t=n-t,Tt(e,0,t<0?0:t)):[]}function vy(e,t){return e&&e.length?zs(e,U(t,3),!0,!0):[]}function wy(e,t){return e&&e.length?zs(e,U(t,3),!0):[]}function Ty(e,t,r,n){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&Ye(e,t,r)&&(r=0,n=o),yf(e,t,r,n)):[]}function kc(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=r==null?0:Q(r);return o<0&&(o=Re(n+o,0)),us(e,U(t,3),o)}function Ac(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=n-1;return r!==a&&(o=Q(r),o=r<0?Re(n+o,0):He(o,n-1)),us(e,U(t,3),o,!0)}function qc(e){var t=e==null?0:e.length;return t?Ue(e,1):[]}function Iy(e){var t=e==null?0:e.length;return t?Ue(e,Ne):[]}function Dy(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:Q(t),Ue(e,t)):[]}function ky(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n}function Cc(e){return e&&e.length?e[0]:a}function Ay(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=r==null?0:Q(r);return o<0&&(o=Re(n+o,0)),Ur(e,t,o)}function qy(e){var t=e==null?0:e.length;return t?Tt(e,0,-1):[]}var Cy=te(function(e){var t=Te(e,Vi);return t.length&&t[0]===e[0]?Fi(t):[]}),Sy=te(function(e){var t=It(e),r=Te(e,Vi);return t===It(r)?t=a:r.pop(),r.length&&r[0]===e[0]?Fi(r,U(t,2)):[]}),zy=te(function(e){var t=It(e),r=Te(e,Vi);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?Fi(r,a,t):[]});function Ny(e,t){return e==null?"":Am.call(e,t)}function It(e){var t=e==null?0:e.length;return t?e[t-1]:a}function Oy(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=n;return r!==a&&(o=Q(r),o=o<0?Re(n+o,0):He(o,n-1)),t===t?dm(e,t,o):us(e,cl,o,!0)}function Ry(e,t){return e&&e.length?Bl(e,Q(t)):a}var Py=te(Sc);function Sc(e,t){return e&&e.length&&t&&t.length?Wi(e,t):e}function Ey(e,t,r){return e&&e.length&&t&&t.length?Wi(e,t,U(r,2)):e}function Ly(e,t,r){return e&&e.length&&t&&t.length?Wi(e,t,a,r):e}var My=Jt(function(e,t){var r=e==null?0:e.length,n=Pi(e,t);return Wl(e,Te(t,function(o){return Zt(o,r)?+o:o}).sort(Zl)),n});function Fy(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,o=[],d=e.length;for(t=U(t,3);++n<d;){var f=e[n];t(f,n,e)&&(r.push(f),o.push(n))}return Wl(e,o),r}function un(e){return e==null?e:zm.call(e)}function By(e,t,r){var n=e==null?0:e.length;return n?(r&&typeof r!="number"&&Ye(e,t,r)?(t=0,r=n):(t=t==null?0:Q(t),r=r===a?n:Q(r)),Tt(e,t,r)):[]}function jy(e,t){return Ss(e,t)}function Uy(e,t,r){return Xi(e,t,U(r,2))}function Wy(e,t){var r=e==null?0:e.length;if(r){var n=Ss(e,t);if(n<r&&Ot(e[n],t))return n}return-1}function Hy(e,t){return Ss(e,t,!0)}function $y(e,t,r){return Xi(e,t,U(r,2),!0)}function Xy(e,t){var r=e==null?0:e.length;if(r){var n=Ss(e,t,!0)-1;if(Ot(e[n],t))return n}return-1}function Gy(e){return e&&e.length?$l(e):[]}function Yy(e,t){return e&&e.length?$l(e,U(t,2)):[]}function Vy(e){var t=e==null?0:e.length;return t?Tt(e,1,t):[]}function Ky(e,t,r){return e&&e.length?(t=r||t===a?1:Q(t),Tt(e,0,t<0?0:t)):[]}function Qy(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Q(t),t=n-t,Tt(e,t<0?0:t,n)):[]}function Jy(e,t){return e&&e.length?zs(e,U(t,3),!1,!0):[]}function Zy(e,t){return e&&e.length?zs(e,U(t,3)):[]}var eh=te(function(e){return mr(Ue(e,1,Ce,!0))}),th=te(function(e){var t=It(e);return Ce(t)&&(t=a),mr(Ue(e,1,Ce,!0),U(t,2))}),rh=te(function(e){var t=It(e);return t=typeof t=="function"?t:a,mr(Ue(e,1,Ce,!0),a,t)});function ah(e){return e&&e.length?mr(e):[]}function sh(e,t){return e&&e.length?mr(e,U(t,2)):[]}function ih(e,t){return t=typeof t=="function"?t:a,e&&e.length?mr(e,a,t):[]}function dn(e){if(!(e&&e.length))return[];var t=0;return e=lr(e,function(r){if(Ce(r))return t=Re(r.length,t),!0}),Ai(t,function(r){return Te(e,Ii(r))})}function zc(e,t){if(!(e&&e.length))return[];var r=dn(e);return t==null?r:Te(r,function(n){return lt(t,a,n)})}var nh=te(function(e,t){return Ce(e)?za(e,t):[]}),oh=te(function(e){return Yi(lr(e,Ce))}),lh=te(function(e){var t=It(e);return Ce(t)&&(t=a),Yi(lr(e,Ce),U(t,2))}),ch=te(function(e){var t=It(e);return t=typeof t=="function"?t:a,Yi(lr(e,Ce),a,t)}),uh=te(dn);function dh(e,t){return Vl(e||[],t||[],Sa)}function ph(e,t){return Vl(e||[],t||[],Ra)}var mh=te(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,zc(e,r)});function Nc(e){var t=c(e);return t.__chain__=!0,t}function fh(e,t){return t(e),e}function Bs(e,t){return t(e)}var yh=Jt(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(d){return Pi(d,e)};return t>1||this.__actions__.length||!(n instanceof oe)||!Zt(r)?this.thru(o):(n=n.slice(r,+r+(t?1:0)),n.__actions__.push({func:Bs,args:[o],thisArg:a}),new vt(n,this.__chain__).thru(function(d){return t&&!d.length&&d.push(a),d}))});function hh(){return Nc(this)}function _h(){return new vt(this.value(),this.__chain__)}function gh(){this.__values__===a&&(this.__values__=Xc(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function bh(){return this}function xh(e){for(var t,r=this;r instanceof Ds;){var n=Dc(r);n.__index__=0,n.__values__=a,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t}function vh(){var e=this.__wrapped__;if(e instanceof oe){var t=e;return this.__actions__.length&&(t=new oe(this)),t=t.reverse(),t.__actions__.push({func:Bs,args:[un],thisArg:a}),new vt(t,this.__chain__)}return this.thru(un)}function wh(){return Yl(this.__wrapped__,this.__actions__)}var Th=Ns(function(e,t,r){_e.call(e,r)?++e[r]:Kt(e,r,1)});function Ih(e,t,r){var n=V(e)?ol:ff;return r&&Ye(e,t,r)&&(t=a),n(e,U(t,3))}function Dh(e,t){var r=V(e)?lr:zl;return r(e,U(t,3))}var kh=ic(kc),Ah=ic(Ac);function qh(e,t){return Ue(js(e,t),1)}function Ch(e,t){return Ue(js(e,t),Ne)}function Sh(e,t,r){return r=r===a?1:Q(r),Ue(js(e,t),r)}function Oc(e,t){var r=V(e)?bt:pr;return r(e,U(t,3))}function Rc(e,t){var r=V(e)?Yp:Sl;return r(e,U(t,3))}var zh=Ns(function(e,t,r){_e.call(e,r)?e[r].push(t):Kt(e,r,[t])});function Nh(e,t,r,n){e=et(e)?e:ea(e),r=r&&!n?Q(r):0;var o=e.length;return r<0&&(r=Re(o+r,0)),Xs(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Ur(e,t,r)>-1}var Oh=te(function(e,t,r){var n=-1,o=typeof t=="function",d=et(e)?T(e.length):[];return pr(e,function(f){d[++n]=o?lt(t,f,r):Na(f,t,r)}),d}),Rh=Ns(function(e,t,r){Kt(e,r,t)});function js(e,t){var r=V(e)?Te:Ll;return r(e,U(t,3))}function Ph(e,t,r,n){return e==null?[]:(V(t)||(t=t==null?[]:[t]),r=n?a:r,V(r)||(r=r==null?[]:[r]),jl(e,t,r))}var Eh=Ns(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Lh(e,t,r){var n=V(e)?wi:dl,o=arguments.length<3;return n(e,U(t,4),r,o,pr)}function Mh(e,t,r){var n=V(e)?Vp:dl,o=arguments.length<3;return n(e,U(t,4),r,o,Sl)}function Fh(e,t){var r=V(e)?lr:zl;return r(e,Hs(U(t,3)))}function Bh(e){var t=V(e)?kl:Nf;return t(e)}function jh(e,t,r){(r?Ye(e,t,r):t===a)?t=1:t=Q(t);var n=V(e)?cf:Of;return n(e,t)}function Uh(e){var t=V(e)?uf:Pf;return t(e)}function Wh(e){if(e==null)return 0;if(et(e))return Xs(e)?Hr(e):e.length;var t=$e(e);return t==nt||t==ot?e.size:ji(e).length}function Hh(e,t,r){var n=V(e)?Ti:Ef;return r&&Ye(e,t,r)&&(t=a),n(e,U(t,3))}var $h=te(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ye(e,t[0],t[1])?t=[]:r>2&&Ye(t[0],t[1],t[2])&&(t=[t[0]]),jl(e,Ue(t,1),[])}),Us=Im||function(){return je.Date.now()};function Xh(e,t){if(typeof t!="function")throw new xt(m);return e=Q(e),function(){if(--e<1)return t.apply(this,arguments)}}function Pc(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Qt(e,ee,a,a,a,a,t)}function Ec(e,t){var r;if(typeof t!="function")throw new xt(m);return e=Q(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var pn=te(function(e,t,r){var n=E;if(r.length){var o=ur(r,Jr(pn));n|=J}return Qt(e,n,t,r,o)}),Lc=te(function(e,t,r){var n=E|K;if(r.length){var o=ur(r,Jr(Lc));n|=J}return Qt(t,n,e,r,o)});function Mc(e,t,r){t=r?a:t;var n=Qt(e,he,a,a,a,a,a,t);return n.placeholder=Mc.placeholder,n}function Fc(e,t,r){t=r?a:t;var n=Qt(e,le,a,a,a,a,a,t);return n.placeholder=Fc.placeholder,n}function Bc(e,t,r){var n,o,d,f,h,b,A=0,q=!1,C=!1,N=!0;if(typeof e!="function")throw new xt(m);t=Dt(t)||0,ke(r)&&(q=!!r.leading,C="maxWait"in r,d=C?Re(Dt(r.maxWait)||0,t):d,N="trailing"in r?!!r.trailing:N);function L(Se){var Rt=n,rr=o;return n=o=a,A=Se,f=e.apply(rr,Rt),f}function W(Se){return A=Se,h=La(ie,t),q?L(Se):f}function Z(Se){var Rt=Se-b,rr=Se-A,iu=t-Rt;return C?He(iu,d-rr):iu}function H(Se){var Rt=Se-b,rr=Se-A;return b===a||Rt>=t||Rt<0||C&&rr>=d}function ie(){var Se=Us();if(H(Se))return ce(Se);h=La(ie,Z(Se))}function ce(Se){return h=a,N&&n?L(Se):(n=o=a,f)}function pt(){h!==a&&Kl(h),A=0,n=b=o=h=a}function Ve(){return h===a?f:ce(Us())}function mt(){var Se=Us(),Rt=H(Se);if(n=arguments,o=this,b=Se,Rt){if(h===a)return W(b);if(C)return Kl(h),h=La(ie,t),L(b)}return h===a&&(h=La(ie,t)),f}return mt.cancel=pt,mt.flush=Ve,mt}var Gh=te(function(e,t){return Cl(e,1,t)}),Yh=te(function(e,t,r){return Cl(e,Dt(t)||0,r)});function Vh(e){return Qt(e,ge)}function Ws(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new xt(m);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],d=r.cache;if(d.has(o))return d.get(o);var f=e.apply(this,n);return r.cache=d.set(o,f)||d,f};return r.cache=new(Ws.Cache||Vt),r}Ws.Cache=Vt;function Hs(e){if(typeof e!="function")throw new xt(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 Kh(e){return Ec(2,e)}var Qh=Lf(function(e,t){t=t.length==1&&V(t[0])?Te(t[0],ct(U())):Te(Ue(t,1),ct(U()));var r=t.length;return te(function(n){for(var o=-1,d=He(n.length,r);++o<d;)n[o]=t[o].call(this,n[o]);return lt(e,this,n)})}),mn=te(function(e,t){var r=ur(t,Jr(mn));return Qt(e,J,a,t,r)}),jc=te(function(e,t){var r=ur(t,Jr(jc));return Qt(e,ue,a,t,r)}),Jh=Jt(function(e,t){return Qt(e,ze,a,a,a,t)});function Zh(e,t){if(typeof e!="function")throw new xt(m);return t=t===a?t:Q(t),te(e,t)}function e_(e,t){if(typeof e!="function")throw new xt(m);return t=t==null?0:Re(Q(t),0),te(function(r){var n=r[t],o=yr(r,0,t);return n&&cr(o,n),lt(e,this,o)})}function t_(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new xt(m);return ke(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Bc(e,t,{leading:n,maxWait:t,trailing:o})}function r_(e){return Pc(e,1)}function a_(e,t){return mn(Ki(t),e)}function s_(){if(!arguments.length)return[];var e=arguments[0];return V(e)?e:[e]}function i_(e){return wt(e,R)}function n_(e,t){return t=typeof t=="function"?t:a,wt(e,R,t)}function o_(e){return wt(e,D|R)}function l_(e,t){return t=typeof t=="function"?t:a,wt(e,D|R,t)}function c_(e,t){return t==null||ql(e,t,Fe(t))}function Ot(e,t){return e===t||e!==e&&t!==t}var u_=Es(Mi),d_=Es(function(e,t){return e>=t}),Cr=Rl(function(){return arguments}())?Rl:function(e){return qe(e)&&_e.call(e,"callee")&&!xl.call(e,"callee")},V=T.isArray,p_=tl?ct(tl):xf;function et(e){return e!=null&&$s(e.length)&&!er(e)}function Ce(e){return qe(e)&&et(e)}function m_(e){return e===!0||e===!1||qe(e)&&Ge(e)==Mt}var hr=km||In,f_=rl?ct(rl):vf;function y_(e){return qe(e)&&e.nodeType===1&&!Ma(e)}function h_(e){if(e==null)return!0;if(et(e)&&(V(e)||typeof e=="string"||typeof e.splice=="function"||hr(e)||Zr(e)||Cr(e)))return!e.length;var t=$e(e);if(t==nt||t==ot)return!e.size;if(Ea(e))return!ji(e).length;for(var r in e)if(_e.call(e,r))return!1;return!0}function __(e,t){return Oa(e,t)}function g_(e,t,r){r=typeof r=="function"?r:a;var n=r?r(e,t):a;return n===a?Oa(e,t,a,r):!!n}function fn(e){if(!qe(e))return!1;var t=Ge(e);return t==Rr||t==Or||typeof e.message=="string"&&typeof e.name=="string"&&!Ma(e)}function b_(e){return typeof e=="number"&&wl(e)}function er(e){if(!ke(e))return!1;var t=Ge(e);return t==gr||t==Ja||t==pa||t==Er}function Uc(e){return typeof e=="number"&&e==Q(e)}function $s(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Le}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function qe(e){return e!=null&&typeof e=="object"}var Wc=al?ct(al):Tf;function x_(e,t){return e===t||Bi(e,t,an(t))}function v_(e,t,r){return r=typeof r=="function"?r:a,Bi(e,t,an(t),r)}function w_(e){return Hc(e)&&e!=+e}function T_(e){if(ny(e))throw new Y(p);return Pl(e)}function I_(e){return e===null}function D_(e){return e==null}function Hc(e){return typeof e=="number"||qe(e)&&Ge(e)==Ft}function Ma(e){if(!qe(e)||Ge(e)!=_t)return!1;var t=gs(e);if(t===null)return!0;var r=_e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&fs.call(r)==xm}var yn=sl?ct(sl):If;function k_(e){return Uc(e)&&e>=-Le&&e<=Le}var $c=il?ct(il):Df;function Xs(e){return typeof e=="string"||!V(e)&&qe(e)&&Ge(e)==Xt}function dt(e){return typeof e=="symbol"||qe(e)&&Ge(e)==Lr}var Zr=nl?ct(nl):kf;function A_(e){return e===a}function q_(e){return qe(e)&&$e(e)==nr}function C_(e){return qe(e)&&Ge(e)==Za}var S_=Es(Ui),z_=Es(function(e,t){return e<=t});function Xc(e){if(!e)return[];if(et(e))return Xs(e)?zt(e):Ze(e);if(Da&&e[Da])return lm(e[Da]());var t=$e(e),r=t==nt?Ci:t==ot?ds:ea;return r(e)}function tr(e){if(!e)return e===0?e:0;if(e=Dt(e),e===Ne||e===-Ne){var t=e<0?-1:1;return t*Lt}return e===e?e:0}function Q(e){var t=tr(e),r=t%1;return t===t?r?t-r:t:0}function Gc(e){return e?Dr(Q(e),0,G):0}function Dt(e){if(typeof e=="number")return e;if(dt(e))return Wt;if(ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pl(e);var r=re.test(e);return r||De.test(e)?$p(e.slice(2),r?2:8):ne.test(e)?Wt:+e}function Yc(e){return jt(e,tt(e))}function N_(e){return e?Dr(Q(e),-Le,Le):e===0?e:0}function fe(e){return e==null?"":ut(e)}var O_=Kr(function(e,t){if(Ea(t)||et(t)){jt(t,Fe(t),e);return}for(var r in t)_e.call(t,r)&&Sa(e,r,t[r])}),Vc=Kr(function(e,t){jt(t,tt(t),e)}),Gs=Kr(function(e,t,r,n){jt(t,tt(t),e,n)}),R_=Kr(function(e,t,r,n){jt(t,Fe(t),e,n)}),P_=Jt(Pi);function E_(e,t){var r=Vr(e);return t==null?r:Al(r,t)}var L_=te(function(e,t){e=xe(e);var r=-1,n=t.length,o=n>2?t[2]:a;for(o&&Ye(t[0],t[1],o)&&(n=1);++r<n;)for(var d=t[r],f=tt(d),h=-1,b=f.length;++h<b;){var A=f[h],q=e[A];(q===a||Ot(q,Xr[A])&&!_e.call(e,A))&&(e[A]=d[A])}return e}),M_=te(function(e){return e.push(a,pc),lt(Kc,a,e)});function F_(e,t){return ll(e,U(t,3),Bt)}function B_(e,t){return ll(e,U(t,3),Li)}function j_(e,t){return e==null?e:Ei(e,U(t,3),tt)}function U_(e,t){return e==null?e:Nl(e,U(t,3),tt)}function W_(e,t){return e&&Bt(e,U(t,3))}function H_(e,t){return e&&Li(e,U(t,3))}function $_(e){return e==null?[]:qs(e,Fe(e))}function X_(e){return e==null?[]:qs(e,tt(e))}function hn(e,t,r){var n=e==null?a:kr(e,t);return n===a?r:n}function G_(e,t){return e!=null&&yc(e,t,hf)}function _n(e,t){return e!=null&&yc(e,t,_f)}var Y_=oc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ys.call(t)),e[t]=r},bn(rt)),V_=oc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ys.call(t)),_e.call(e,t)?e[t].push(r):e[t]=[r]},U),K_=te(Na);function Fe(e){return et(e)?Dl(e):ji(e)}function tt(e){return et(e)?Dl(e,!0):Af(e)}function Q_(e,t){var r={};return t=U(t,3),Bt(e,function(n,o,d){Kt(r,t(n,o,d),n)}),r}function J_(e,t){var r={};return t=U(t,3),Bt(e,function(n,o,d){Kt(r,o,t(n,o,d))}),r}var Z_=Kr(function(e,t,r){Cs(e,t,r)}),Kc=Kr(function(e,t,r,n){Cs(e,t,r,n)}),eg=Jt(function(e,t){var r={};if(e==null)return r;var n=!1;t=Te(t,function(d){return d=fr(d,e),n||(n=d.length>1),d}),jt(e,tn(e),r),n&&(r=wt(r,D|O|R,Yf));for(var o=t.length;o--;)Gi(r,t[o]);return r});function tg(e,t){return Qc(e,Hs(U(t)))}var rg=Jt(function(e,t){return e==null?{}:Cf(e,t)});function Qc(e,t){if(e==null)return{};var r=Te(tn(e),function(n){return[n]});return t=U(t),Ul(e,r,function(n,o){return t(n,o[0])})}function ag(e,t,r){t=fr(t,e);var n=-1,o=t.length;for(o||(o=1,e=a);++n<o;){var d=e==null?a:e[Ut(t[n])];d===a&&(n=o,d=r),e=er(d)?d.call(e):d}return e}function sg(e,t,r){return e==null?e:Ra(e,t,r)}function ig(e,t,r,n){return n=typeof n=="function"?n:a,e==null?e:Ra(e,t,r,n)}var Jc=uc(Fe),Zc=uc(tt);function ng(e,t,r){var n=V(e),o=n||hr(e)||Zr(e);if(t=U(t,4),r==null){var d=e&&e.constructor;o?r=n?new d:[]:ke(e)?r=er(d)?Vr(gs(e)):{}:r={}}return(o?bt:Bt)(e,function(f,h,b){return t(r,f,h,b)}),r}function og(e,t){return e==null?!0:Gi(e,t)}function lg(e,t,r){return e==null?e:Gl(e,t,Ki(r))}function cg(e,t,r,n){return n=typeof n=="function"?n:a,e==null?e:Gl(e,t,Ki(r),n)}function ea(e){return e==null?[]:qi(e,Fe(e))}function ug(e){return e==null?[]:qi(e,tt(e))}function dg(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=Dt(r),r=r===r?r:0),t!==a&&(t=Dt(t),t=t===t?t:0),Dr(Dt(e),t,r)}function pg(e,t,r){return t=tr(t),r===a?(r=t,t=0):r=tr(r),e=Dt(e),gf(e,t,r)}function mg(e,t,r){if(r&&typeof r!="boolean"&&Ye(e,t,r)&&(t=r=a),r===a&&(typeof t=="boolean"?(r=t,t=a):typeof e=="boolean"&&(r=e,e=a)),e===a&&t===a?(e=0,t=1):(e=tr(e),t===a?(t=e,e=0):t=tr(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=Tl();return He(e+o*(t-e+Hp("1e-"+((o+"").length-1))),t)}return Hi(e,t)}var fg=Qr(function(e,t,r){return t=t.toLowerCase(),e+(r?eu(t):t)});function eu(e){return gn(fe(e).toLowerCase())}function tu(e){return e=fe(e),e&&e.replace(Qe,am).replace(Rp,"")}function yg(e,t,r){e=fe(e),t=ut(t);var n=e.length;r=r===a?n:Dr(Q(r),0,n);var o=r;return r-=t.length,r>=0&&e.slice(r,o)==t}function hg(e){return e=fe(e),e&&ts.test(e)?e.replace(Br,sm):e}function _g(e){return e=fe(e),e&&ns.test(e)?e.replace(wa,"\\$&"):e}var gg=Qr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),bg=Qr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),xg=sc("toLowerCase");function vg(e,t,r){e=fe(e),t=Q(t);var n=t?Hr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Ps(ws(o),r)+e+Ps(vs(o),r)}function wg(e,t,r){e=fe(e),t=Q(t);var n=t?Hr(e):0;return t&&n<t?e+Ps(t-n,r):e}function Tg(e,t,r){e=fe(e),t=Q(t);var n=t?Hr(e):0;return t&&n<t?Ps(t-n,r)+e:e}function Ig(e,t,r){return r||t==null?t=0:t&&(t=+t),Sm(fe(e).replace(Ta,""),t||0)}function Dg(e,t,r){return(r?Ye(e,t,r):t===a)?t=1:t=Q(t),$i(fe(e),t)}function kg(){var e=arguments,t=fe(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ag=Qr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function qg(e,t,r){return r&&typeof r!="number"&&Ye(e,t,r)&&(t=r=a),r=r===a?G:r>>>0,r?(e=fe(e),e&&(typeof t=="string"||t!=null&&!yn(t))&&(t=ut(t),!t&&Wr(e))?yr(zt(e),0,r):e.split(t,r)):[]}var Cg=Qr(function(e,t,r){return e+(r?" ":"")+gn(t)});function Sg(e,t,r){return e=fe(e),r=r==null?0:Dr(Q(r),0,e.length),t=ut(t),e.slice(r,r+t.length)==t}function zg(e,t,r){var n=c.templateSettings;r&&Ye(e,t,r)&&(t=a),e=fe(e),t=Gs({},t,n,dc);var o=Gs({},t.imports,n.imports,dc),d=Fe(o),f=qi(o,d),h,b,A=0,q=t.interpolate||St,C="__p += '",N=Si((t.escape||St).source+"|"+q.source+"|"+(q===as?de:St).source+"|"+(t.evaluate||St).source+"|$","g"),L="//# sourceURL="+(_e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fp+"]")+`
114
+ `)}function ay(e){return V(e)||Cr(e)||!!(vl&&e&&e[vl])}function Zt(e,t){var r=typeof e;return t=t??Le,!!t&&(r=="number"||r!="symbol"&&Ae.test(e))&&e>-1&&e%1==0&&e<t}function Ye(e,t,r){if(!ke(r))return!1;var n=typeof t;return(n=="number"?et(r)&&Zt(t,r.length):n=="string"&&t in r)?Ot(r[t],e):!1}function nn(e,t){if(V(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||dt(e)?!0:is.test(e)||!ss.test(e)||t!=null&&e in xe(t)}function sy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function on(e){var t=Ls(e),r=c[t];if(typeof r!="function"||!(t in oe.prototype))return!1;if(e===r)return!0;var n=rn(r);return!!n&&e===n[0]}function iy(e){return!!_l&&_l in e}var ny=ms?er:In;function Ra(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Xr;return e===r}function _c(e){return e===e&&!ke(e)}function gc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in xe(r))}}function oy(e){var t=Ws(e,function(n){return r.size===v&&r.clear(),n}),r=t.cache;return t}function ly(e,t){var r=e[1],n=t[1],o=r|n,d=o<(R|K|ee),f=n==ee&&r==he||n==ee&&r==ze&&e[7].length<=t[8]||n==(ee|ze)&&t[7].length<=t[8]&&r==he;if(!(d||f))return e;n&R&&(e[2]=t[2],o|=r&R?0:$);var h=t[3];if(h){var b=e[3];e[3]=b?ec(b,h,t[4]):h,e[4]=b?ur(e[3],w):t[4]}return h=t[5],h&&(b=e[5],e[5]=b?tc(b,h,t[6]):h,e[6]=b?ur(e[5],w):t[6]),h=t[7],h&&(e[7]=h),n&ee&&(e[8]=e[8]==null?t[8]:He(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function cy(e){var t=[];if(e!=null)for(var r in xe(e))t.push(r);return t}function uy(e){return ys.call(e)}function bc(e,t,r){return t=Pe(t===a?e.length-1:t,0),function(){for(var n=arguments,o=-1,d=Pe(n.length-t,0),f=T(d);++o<d;)f[o]=n[t+o];o=-1;for(var h=T(t+1);++o<t;)h[o]=n[o];return h[t]=r(f),lt(e,this,h)}}function xc(e,t){return t.length<2?e:kr(e,Tt(t,0,-1))}function dy(e,t){for(var r=e.length,n=He(t.length,r),o=Ze(e);n--;){var d=t[n];e[n]=Zt(d,r)?o[d]:a}return e}function ln(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var vc=Tc(Hl),La=Dm||function(e,t){return je.setTimeout(e,t)},cn=Tc(Pf);function wc(e,t,r){var n=t+"";return cn(e,ry(n,py(Zf(n),r)))}function Tc(e){var t=0,r=0;return function(){var n=Cm(),o=Ee-(n-r);if(r=n,o>0){if(++t>=ht)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Fs(e,t){var r=-1,n=e.length,o=n-1;for(t=t===a?n:t;++r<t;){var d=Hi(r,o),f=e[d];e[d]=e[r],e[r]=f}return e.length=t,e}var Ic=oy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ui,function(r,n,o,d){t.push(o?d.replace(X,"$1"):n||r)}),t});function Ut(e){if(typeof e=="string"||dt(e))return e;var t=e+"";return t=="0"&&1/e==-Ne?"-0":t}function qr(e){if(e!=null){try{return fs.call(e)}catch{}try{return e+""}catch{}}return""}function py(e,t){return bt(Ht,function(r){var n="_."+r[0];t&r[1]&&!cs(e,n)&&e.push(n)}),e.sort()}function Dc(e){if(e instanceof oe)return e.clone();var t=new vt(e.__wrapped__,e.__chain__);return t.__actions__=Ze(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function my(e,t,r){(r?Ye(e,t,r):t===a)?t=1:t=Pe(Q(t),0);var n=e==null?0:e.length;if(!n||t<1)return[];for(var o=0,d=0,f=T(vs(n/t));o<n;)f[d++]=Tt(e,o,o+=t);return f}function fy(e){for(var t=-1,r=e==null?0:e.length,n=0,o=[];++t<r;){var d=e[t];d&&(o[n++]=d)}return o}function yy(){var e=arguments.length;if(!e)return[];for(var t=T(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return cr(V(r)?Ze(r):[r],Ue(t,1))}var hy=te(function(e,t){return Ce(e)?za(e,Ue(t,1,Ce,!0)):[]}),_y=te(function(e,t){var r=It(t);return Ce(r)&&(r=a),Ce(e)?za(e,Ue(t,1,Ce,!0),U(r,2)):[]}),gy=te(function(e,t){var r=It(t);return Ce(r)&&(r=a),Ce(e)?za(e,Ue(t,1,Ce,!0),a,r):[]});function by(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Q(t),Tt(e,t<0?0:t,n)):[]}function xy(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Q(t),t=n-t,Tt(e,0,t<0?0:t)):[]}function vy(e,t){return e&&e.length?zs(e,U(t,3),!0,!0):[]}function wy(e,t){return e&&e.length?zs(e,U(t,3),!0):[]}function Ty(e,t,r,n){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&Ye(e,t,r)&&(r=0,n=o),yf(e,t,r,n)):[]}function kc(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=r==null?0:Q(r);return o<0&&(o=Pe(n+o,0)),us(e,U(t,3),o)}function Ac(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=n-1;return r!==a&&(o=Q(r),o=r<0?Pe(n+o,0):He(o,n-1)),us(e,U(t,3),o,!0)}function qc(e){var t=e==null?0:e.length;return t?Ue(e,1):[]}function Iy(e){var t=e==null?0:e.length;return t?Ue(e,Ne):[]}function Dy(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:Q(t),Ue(e,t)):[]}function ky(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n}function Cc(e){return e&&e.length?e[0]:a}function Ay(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=r==null?0:Q(r);return o<0&&(o=Pe(n+o,0)),Ur(e,t,o)}function qy(e){var t=e==null?0:e.length;return t?Tt(e,0,-1):[]}var Cy=te(function(e){var t=Te(e,Vi);return t.length&&t[0]===e[0]?Fi(t):[]}),Sy=te(function(e){var t=It(e),r=Te(e,Vi);return t===It(r)?t=a:r.pop(),r.length&&r[0]===e[0]?Fi(r,U(t,2)):[]}),zy=te(function(e){var t=It(e),r=Te(e,Vi);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?Fi(r,a,t):[]});function Ny(e,t){return e==null?"":Am.call(e,t)}function It(e){var t=e==null?0:e.length;return t?e[t-1]:a}function Oy(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var o=n;return r!==a&&(o=Q(r),o=o<0?Pe(n+o,0):He(o,n-1)),t===t?dm(e,t,o):us(e,cl,o,!0)}function Py(e,t){return e&&e.length?Bl(e,Q(t)):a}var Ey=te(Sc);function Sc(e,t){return e&&e.length&&t&&t.length?Wi(e,t):e}function Ry(e,t,r){return e&&e.length&&t&&t.length?Wi(e,t,U(r,2)):e}function Ly(e,t,r){return e&&e.length&&t&&t.length?Wi(e,t,a,r):e}var My=Jt(function(e,t){var r=e==null?0:e.length,n=Ei(e,t);return Wl(e,Te(t,function(o){return Zt(o,r)?+o:o}).sort(Zl)),n});function Fy(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,o=[],d=e.length;for(t=U(t,3);++n<d;){var f=e[n];t(f,n,e)&&(r.push(f),o.push(n))}return Wl(e,o),r}function un(e){return e==null?e:zm.call(e)}function By(e,t,r){var n=e==null?0:e.length;return n?(r&&typeof r!="number"&&Ye(e,t,r)?(t=0,r=n):(t=t==null?0:Q(t),r=r===a?n:Q(r)),Tt(e,t,r)):[]}function jy(e,t){return Ss(e,t)}function Uy(e,t,r){return Xi(e,t,U(r,2))}function Wy(e,t){var r=e==null?0:e.length;if(r){var n=Ss(e,t);if(n<r&&Ot(e[n],t))return n}return-1}function Hy(e,t){return Ss(e,t,!0)}function $y(e,t,r){return Xi(e,t,U(r,2),!0)}function Xy(e,t){var r=e==null?0:e.length;if(r){var n=Ss(e,t,!0)-1;if(Ot(e[n],t))return n}return-1}function Gy(e){return e&&e.length?$l(e):[]}function Yy(e,t){return e&&e.length?$l(e,U(t,2)):[]}function Vy(e){var t=e==null?0:e.length;return t?Tt(e,1,t):[]}function Ky(e,t,r){return e&&e.length?(t=r||t===a?1:Q(t),Tt(e,0,t<0?0:t)):[]}function Qy(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===a?1:Q(t),t=n-t,Tt(e,t<0?0:t,n)):[]}function Jy(e,t){return e&&e.length?zs(e,U(t,3),!1,!0):[]}function Zy(e,t){return e&&e.length?zs(e,U(t,3)):[]}var eh=te(function(e){return mr(Ue(e,1,Ce,!0))}),th=te(function(e){var t=It(e);return Ce(t)&&(t=a),mr(Ue(e,1,Ce,!0),U(t,2))}),rh=te(function(e){var t=It(e);return t=typeof t=="function"?t:a,mr(Ue(e,1,Ce,!0),a,t)});function ah(e){return e&&e.length?mr(e):[]}function sh(e,t){return e&&e.length?mr(e,U(t,2)):[]}function ih(e,t){return t=typeof t=="function"?t:a,e&&e.length?mr(e,a,t):[]}function dn(e){if(!(e&&e.length))return[];var t=0;return e=lr(e,function(r){if(Ce(r))return t=Pe(r.length,t),!0}),Ai(t,function(r){return Te(e,Ii(r))})}function zc(e,t){if(!(e&&e.length))return[];var r=dn(e);return t==null?r:Te(r,function(n){return lt(t,a,n)})}var nh=te(function(e,t){return Ce(e)?za(e,t):[]}),oh=te(function(e){return Yi(lr(e,Ce))}),lh=te(function(e){var t=It(e);return Ce(t)&&(t=a),Yi(lr(e,Ce),U(t,2))}),ch=te(function(e){var t=It(e);return t=typeof t=="function"?t:a,Yi(lr(e,Ce),a,t)}),uh=te(dn);function dh(e,t){return Vl(e||[],t||[],Sa)}function ph(e,t){return Vl(e||[],t||[],Pa)}var mh=te(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,zc(e,r)});function Nc(e){var t=c(e);return t.__chain__=!0,t}function fh(e,t){return t(e),e}function Bs(e,t){return t(e)}var yh=Jt(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(d){return Ei(d,e)};return t>1||this.__actions__.length||!(n instanceof oe)||!Zt(r)?this.thru(o):(n=n.slice(r,+r+(t?1:0)),n.__actions__.push({func:Bs,args:[o],thisArg:a}),new vt(n,this.__chain__).thru(function(d){return t&&!d.length&&d.push(a),d}))});function hh(){return Nc(this)}function _h(){return new vt(this.value(),this.__chain__)}function gh(){this.__values__===a&&(this.__values__=Xc(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function bh(){return this}function xh(e){for(var t,r=this;r instanceof Ds;){var n=Dc(r);n.__index__=0,n.__values__=a,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t}function vh(){var e=this.__wrapped__;if(e instanceof oe){var t=e;return this.__actions__.length&&(t=new oe(this)),t=t.reverse(),t.__actions__.push({func:Bs,args:[un],thisArg:a}),new vt(t,this.__chain__)}return this.thru(un)}function wh(){return Yl(this.__wrapped__,this.__actions__)}var Th=Ns(function(e,t,r){_e.call(e,r)?++e[r]:Kt(e,r,1)});function Ih(e,t,r){var n=V(e)?ol:ff;return r&&Ye(e,t,r)&&(t=a),n(e,U(t,3))}function Dh(e,t){var r=V(e)?lr:zl;return r(e,U(t,3))}var kh=ic(kc),Ah=ic(Ac);function qh(e,t){return Ue(js(e,t),1)}function Ch(e,t){return Ue(js(e,t),Ne)}function Sh(e,t,r){return r=r===a?1:Q(r),Ue(js(e,t),r)}function Oc(e,t){var r=V(e)?bt:pr;return r(e,U(t,3))}function Pc(e,t){var r=V(e)?Yp:Sl;return r(e,U(t,3))}var zh=Ns(function(e,t,r){_e.call(e,r)?e[r].push(t):Kt(e,r,[t])});function Nh(e,t,r,n){e=et(e)?e:ea(e),r=r&&!n?Q(r):0;var o=e.length;return r<0&&(r=Pe(o+r,0)),Xs(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Ur(e,t,r)>-1}var Oh=te(function(e,t,r){var n=-1,o=typeof t=="function",d=et(e)?T(e.length):[];return pr(e,function(f){d[++n]=o?lt(t,f,r):Na(f,t,r)}),d}),Ph=Ns(function(e,t,r){Kt(e,r,t)});function js(e,t){var r=V(e)?Te:Ll;return r(e,U(t,3))}function Eh(e,t,r,n){return e==null?[]:(V(t)||(t=t==null?[]:[t]),r=n?a:r,V(r)||(r=r==null?[]:[r]),jl(e,t,r))}var Rh=Ns(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Lh(e,t,r){var n=V(e)?wi:dl,o=arguments.length<3;return n(e,U(t,4),r,o,pr)}function Mh(e,t,r){var n=V(e)?Vp:dl,o=arguments.length<3;return n(e,U(t,4),r,o,Sl)}function Fh(e,t){var r=V(e)?lr:zl;return r(e,Hs(U(t,3)))}function Bh(e){var t=V(e)?kl:Nf;return t(e)}function jh(e,t,r){(r?Ye(e,t,r):t===a)?t=1:t=Q(t);var n=V(e)?cf:Of;return n(e,t)}function Uh(e){var t=V(e)?uf:Ef;return t(e)}function Wh(e){if(e==null)return 0;if(et(e))return Xs(e)?Hr(e):e.length;var t=$e(e);return t==nt||t==ot?e.size:ji(e).length}function Hh(e,t,r){var n=V(e)?Ti:Rf;return r&&Ye(e,t,r)&&(t=a),n(e,U(t,3))}var $h=te(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ye(e,t[0],t[1])?t=[]:r>2&&Ye(t[0],t[1],t[2])&&(t=[t[0]]),jl(e,Ue(t,1),[])}),Us=Im||function(){return je.Date.now()};function Xh(e,t){if(typeof t!="function")throw new xt(m);return e=Q(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ec(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Qt(e,ee,a,a,a,a,t)}function Rc(e,t){var r;if(typeof t!="function")throw new xt(m);return e=Q(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var pn=te(function(e,t,r){var n=R;if(r.length){var o=ur(r,Jr(pn));n|=J}return Qt(e,n,t,r,o)}),Lc=te(function(e,t,r){var n=R|K;if(r.length){var o=ur(r,Jr(Lc));n|=J}return Qt(t,n,e,r,o)});function Mc(e,t,r){t=r?a:t;var n=Qt(e,he,a,a,a,a,a,t);return n.placeholder=Mc.placeholder,n}function Fc(e,t,r){t=r?a:t;var n=Qt(e,le,a,a,a,a,a,t);return n.placeholder=Fc.placeholder,n}function Bc(e,t,r){var n,o,d,f,h,b,A=0,q=!1,C=!1,N=!0;if(typeof e!="function")throw new xt(m);t=Dt(t)||0,ke(r)&&(q=!!r.leading,C="maxWait"in r,d=C?Pe(Dt(r.maxWait)||0,t):d,N="trailing"in r?!!r.trailing:N);function L(Se){var Pt=n,rr=o;return n=o=a,A=Se,f=e.apply(rr,Pt),f}function W(Se){return A=Se,h=La(ie,t),q?L(Se):f}function Z(Se){var Pt=Se-b,rr=Se-A,iu=t-Pt;return C?He(iu,d-rr):iu}function H(Se){var Pt=Se-b,rr=Se-A;return b===a||Pt>=t||Pt<0||C&&rr>=d}function ie(){var Se=Us();if(H(Se))return ce(Se);h=La(ie,Z(Se))}function ce(Se){return h=a,N&&n?L(Se):(n=o=a,f)}function pt(){h!==a&&Kl(h),A=0,n=b=o=h=a}function Ve(){return h===a?f:ce(Us())}function mt(){var Se=Us(),Pt=H(Se);if(n=arguments,o=this,b=Se,Pt){if(h===a)return W(b);if(C)return Kl(h),h=La(ie,t),L(b)}return h===a&&(h=La(ie,t)),f}return mt.cancel=pt,mt.flush=Ve,mt}var Gh=te(function(e,t){return Cl(e,1,t)}),Yh=te(function(e,t,r){return Cl(e,Dt(t)||0,r)});function Vh(e){return Qt(e,ge)}function Ws(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new xt(m);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],d=r.cache;if(d.has(o))return d.get(o);var f=e.apply(this,n);return r.cache=d.set(o,f)||d,f};return r.cache=new(Ws.Cache||Vt),r}Ws.Cache=Vt;function Hs(e){if(typeof e!="function")throw new xt(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 Kh(e){return Rc(2,e)}var Qh=Lf(function(e,t){t=t.length==1&&V(t[0])?Te(t[0],ct(U())):Te(Ue(t,1),ct(U()));var r=t.length;return te(function(n){for(var o=-1,d=He(n.length,r);++o<d;)n[o]=t[o].call(this,n[o]);return lt(e,this,n)})}),mn=te(function(e,t){var r=ur(t,Jr(mn));return Qt(e,J,a,t,r)}),jc=te(function(e,t){var r=ur(t,Jr(jc));return Qt(e,ue,a,t,r)}),Jh=Jt(function(e,t){return Qt(e,ze,a,a,a,t)});function Zh(e,t){if(typeof e!="function")throw new xt(m);return t=t===a?t:Q(t),te(e,t)}function e_(e,t){if(typeof e!="function")throw new xt(m);return t=t==null?0:Pe(Q(t),0),te(function(r){var n=r[t],o=yr(r,0,t);return n&&cr(o,n),lt(e,this,o)})}function t_(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new xt(m);return ke(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Bc(e,t,{leading:n,maxWait:t,trailing:o})}function r_(e){return Ec(e,1)}function a_(e,t){return mn(Ki(t),e)}function s_(){if(!arguments.length)return[];var e=arguments[0];return V(e)?e:[e]}function i_(e){return wt(e,P)}function n_(e,t){return t=typeof t=="function"?t:a,wt(e,P,t)}function o_(e){return wt(e,D|P)}function l_(e,t){return t=typeof t=="function"?t:a,wt(e,D|P,t)}function c_(e,t){return t==null||ql(e,t,Fe(t))}function Ot(e,t){return e===t||e!==e&&t!==t}var u_=Rs(Mi),d_=Rs(function(e,t){return e>=t}),Cr=Pl(function(){return arguments}())?Pl:function(e){return qe(e)&&_e.call(e,"callee")&&!xl.call(e,"callee")},V=T.isArray,p_=tl?ct(tl):xf;function et(e){return e!=null&&$s(e.length)&&!er(e)}function Ce(e){return qe(e)&&et(e)}function m_(e){return e===!0||e===!1||qe(e)&&Ge(e)==Mt}var hr=km||In,f_=rl?ct(rl):vf;function y_(e){return qe(e)&&e.nodeType===1&&!Ma(e)}function h_(e){if(e==null)return!0;if(et(e)&&(V(e)||typeof e=="string"||typeof e.splice=="function"||hr(e)||Zr(e)||Cr(e)))return!e.length;var t=$e(e);if(t==nt||t==ot)return!e.size;if(Ra(e))return!ji(e).length;for(var r in e)if(_e.call(e,r))return!1;return!0}function __(e,t){return Oa(e,t)}function g_(e,t,r){r=typeof r=="function"?r:a;var n=r?r(e,t):a;return n===a?Oa(e,t,a,r):!!n}function fn(e){if(!qe(e))return!1;var t=Ge(e);return t==Pr||t==Or||typeof e.message=="string"&&typeof e.name=="string"&&!Ma(e)}function b_(e){return typeof e=="number"&&wl(e)}function er(e){if(!ke(e))return!1;var t=Ge(e);return t==gr||t==Ja||t==pa||t==Rr}function Uc(e){return typeof e=="number"&&e==Q(e)}function $s(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Le}function ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function qe(e){return e!=null&&typeof e=="object"}var Wc=al?ct(al):Tf;function x_(e,t){return e===t||Bi(e,t,an(t))}function v_(e,t,r){return r=typeof r=="function"?r:a,Bi(e,t,an(t),r)}function w_(e){return Hc(e)&&e!=+e}function T_(e){if(ny(e))throw new Y(p);return El(e)}function I_(e){return e===null}function D_(e){return e==null}function Hc(e){return typeof e=="number"||qe(e)&&Ge(e)==Ft}function Ma(e){if(!qe(e)||Ge(e)!=_t)return!1;var t=gs(e);if(t===null)return!0;var r=_e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&fs.call(r)==xm}var yn=sl?ct(sl):If;function k_(e){return Uc(e)&&e>=-Le&&e<=Le}var $c=il?ct(il):Df;function Xs(e){return typeof e=="string"||!V(e)&&qe(e)&&Ge(e)==Xt}function dt(e){return typeof e=="symbol"||qe(e)&&Ge(e)==Lr}var Zr=nl?ct(nl):kf;function A_(e){return e===a}function q_(e){return qe(e)&&$e(e)==nr}function C_(e){return qe(e)&&Ge(e)==Za}var S_=Rs(Ui),z_=Rs(function(e,t){return e<=t});function Xc(e){if(!e)return[];if(et(e))return Xs(e)?zt(e):Ze(e);if(Da&&e[Da])return lm(e[Da]());var t=$e(e),r=t==nt?Ci:t==ot?ds:ea;return r(e)}function tr(e){if(!e)return e===0?e:0;if(e=Dt(e),e===Ne||e===-Ne){var t=e<0?-1:1;return t*Lt}return e===e?e:0}function Q(e){var t=tr(e),r=t%1;return t===t?r?t-r:t:0}function Gc(e){return e?Dr(Q(e),0,G):0}function Dt(e){if(typeof e=="number")return e;if(dt(e))return Wt;if(ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pl(e);var r=re.test(e);return r||De.test(e)?$p(e.slice(2),r?2:8):ne.test(e)?Wt:+e}function Yc(e){return jt(e,tt(e))}function N_(e){return e?Dr(Q(e),-Le,Le):e===0?e:0}function fe(e){return e==null?"":ut(e)}var O_=Kr(function(e,t){if(Ra(t)||et(t)){jt(t,Fe(t),e);return}for(var r in t)_e.call(t,r)&&Sa(e,r,t[r])}),Vc=Kr(function(e,t){jt(t,tt(t),e)}),Gs=Kr(function(e,t,r,n){jt(t,tt(t),e,n)}),P_=Kr(function(e,t,r,n){jt(t,Fe(t),e,n)}),E_=Jt(Ei);function R_(e,t){var r=Vr(e);return t==null?r:Al(r,t)}var L_=te(function(e,t){e=xe(e);var r=-1,n=t.length,o=n>2?t[2]:a;for(o&&Ye(t[0],t[1],o)&&(n=1);++r<n;)for(var d=t[r],f=tt(d),h=-1,b=f.length;++h<b;){var A=f[h],q=e[A];(q===a||Ot(q,Xr[A])&&!_e.call(e,A))&&(e[A]=d[A])}return e}),M_=te(function(e){return e.push(a,pc),lt(Kc,a,e)});function F_(e,t){return ll(e,U(t,3),Bt)}function B_(e,t){return ll(e,U(t,3),Li)}function j_(e,t){return e==null?e:Ri(e,U(t,3),tt)}function U_(e,t){return e==null?e:Nl(e,U(t,3),tt)}function W_(e,t){return e&&Bt(e,U(t,3))}function H_(e,t){return e&&Li(e,U(t,3))}function $_(e){return e==null?[]:qs(e,Fe(e))}function X_(e){return e==null?[]:qs(e,tt(e))}function hn(e,t,r){var n=e==null?a:kr(e,t);return n===a?r:n}function G_(e,t){return e!=null&&yc(e,t,hf)}function _n(e,t){return e!=null&&yc(e,t,_f)}var Y_=oc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ys.call(t)),e[t]=r},bn(rt)),V_=oc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=ys.call(t)),_e.call(e,t)?e[t].push(r):e[t]=[r]},U),K_=te(Na);function Fe(e){return et(e)?Dl(e):ji(e)}function tt(e){return et(e)?Dl(e,!0):Af(e)}function Q_(e,t){var r={};return t=U(t,3),Bt(e,function(n,o,d){Kt(r,t(n,o,d),n)}),r}function J_(e,t){var r={};return t=U(t,3),Bt(e,function(n,o,d){Kt(r,o,t(n,o,d))}),r}var Z_=Kr(function(e,t,r){Cs(e,t,r)}),Kc=Kr(function(e,t,r,n){Cs(e,t,r,n)}),eg=Jt(function(e,t){var r={};if(e==null)return r;var n=!1;t=Te(t,function(d){return d=fr(d,e),n||(n=d.length>1),d}),jt(e,tn(e),r),n&&(r=wt(r,D|O|P,Yf));for(var o=t.length;o--;)Gi(r,t[o]);return r});function tg(e,t){return Qc(e,Hs(U(t)))}var rg=Jt(function(e,t){return e==null?{}:Cf(e,t)});function Qc(e,t){if(e==null)return{};var r=Te(tn(e),function(n){return[n]});return t=U(t),Ul(e,r,function(n,o){return t(n,o[0])})}function ag(e,t,r){t=fr(t,e);var n=-1,o=t.length;for(o||(o=1,e=a);++n<o;){var d=e==null?a:e[Ut(t[n])];d===a&&(n=o,d=r),e=er(d)?d.call(e):d}return e}function sg(e,t,r){return e==null?e:Pa(e,t,r)}function ig(e,t,r,n){return n=typeof n=="function"?n:a,e==null?e:Pa(e,t,r,n)}var Jc=uc(Fe),Zc=uc(tt);function ng(e,t,r){var n=V(e),o=n||hr(e)||Zr(e);if(t=U(t,4),r==null){var d=e&&e.constructor;o?r=n?new d:[]:ke(e)?r=er(d)?Vr(gs(e)):{}:r={}}return(o?bt:Bt)(e,function(f,h,b){return t(r,f,h,b)}),r}function og(e,t){return e==null?!0:Gi(e,t)}function lg(e,t,r){return e==null?e:Gl(e,t,Ki(r))}function cg(e,t,r,n){return n=typeof n=="function"?n:a,e==null?e:Gl(e,t,Ki(r),n)}function ea(e){return e==null?[]:qi(e,Fe(e))}function ug(e){return e==null?[]:qi(e,tt(e))}function dg(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=Dt(r),r=r===r?r:0),t!==a&&(t=Dt(t),t=t===t?t:0),Dr(Dt(e),t,r)}function pg(e,t,r){return t=tr(t),r===a?(r=t,t=0):r=tr(r),e=Dt(e),gf(e,t,r)}function mg(e,t,r){if(r&&typeof r!="boolean"&&Ye(e,t,r)&&(t=r=a),r===a&&(typeof t=="boolean"?(r=t,t=a):typeof e=="boolean"&&(r=e,e=a)),e===a&&t===a?(e=0,t=1):(e=tr(e),t===a?(t=e,e=0):t=tr(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=Tl();return He(e+o*(t-e+Hp("1e-"+((o+"").length-1))),t)}return Hi(e,t)}var fg=Qr(function(e,t,r){return t=t.toLowerCase(),e+(r?eu(t):t)});function eu(e){return gn(fe(e).toLowerCase())}function tu(e){return e=fe(e),e&&e.replace(Qe,am).replace(Pp,"")}function yg(e,t,r){e=fe(e),t=ut(t);var n=e.length;r=r===a?n:Dr(Q(r),0,n);var o=r;return r-=t.length,r>=0&&e.slice(r,o)==t}function hg(e){return e=fe(e),e&&ts.test(e)?e.replace(Br,sm):e}function _g(e){return e=fe(e),e&&ns.test(e)?e.replace(wa,"\\$&"):e}var gg=Qr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),bg=Qr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),xg=sc("toLowerCase");function vg(e,t,r){e=fe(e),t=Q(t);var n=t?Hr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Es(ws(o),r)+e+Es(vs(o),r)}function wg(e,t,r){e=fe(e),t=Q(t);var n=t?Hr(e):0;return t&&n<t?e+Es(t-n,r):e}function Tg(e,t,r){e=fe(e),t=Q(t);var n=t?Hr(e):0;return t&&n<t?Es(t-n,r)+e:e}function Ig(e,t,r){return r||t==null?t=0:t&&(t=+t),Sm(fe(e).replace(Ta,""),t||0)}function Dg(e,t,r){return(r?Ye(e,t,r):t===a)?t=1:t=Q(t),$i(fe(e),t)}function kg(){var e=arguments,t=fe(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ag=Qr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function qg(e,t,r){return r&&typeof r!="number"&&Ye(e,t,r)&&(t=r=a),r=r===a?G:r>>>0,r?(e=fe(e),e&&(typeof t=="string"||t!=null&&!yn(t))&&(t=ut(t),!t&&Wr(e))?yr(zt(e),0,r):e.split(t,r)):[]}var Cg=Qr(function(e,t,r){return e+(r?" ":"")+gn(t)});function Sg(e,t,r){return e=fe(e),r=r==null?0:Dr(Q(r),0,e.length),t=ut(t),e.slice(r,r+t.length)==t}function zg(e,t,r){var n=c.templateSettings;r&&Ye(e,t,r)&&(t=a),e=fe(e),t=Gs({},t,n,dc);var o=Gs({},t.imports,n.imports,dc),d=Fe(o),f=qi(o,d),h,b,A=0,q=t.interpolate||St,C="__p += '",N=Si((t.escape||St).source+"|"+q.source+"|"+(q===as?de:St).source+"|"+(t.evaluate||St).source+"|$","g"),L="//# sourceURL="+(_e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fp+"]")+`
115
115
  `;e.replace(N,function(H,ie,ce,pt,Ve,mt){return ce||(ce=pt),C+=e.slice(A,mt).replace(os,im),ie&&(h=!0,C+=`' +
116
116
  __e(`+ie+`) +
117
117
  '`),Ve&&(b=!0,C+=`';
@@ -128,17 +128,17 @@ __p += '`),ce&&(C+=`' +
128
128
  function print() { __p += __j.call(arguments, '') }
129
129
  `:`;
130
130
  `)+C+`return __p
131
- }`;var Z=au(function(){return pe(d,L+"return "+C).apply(a,f)});if(Z.source=C,fn(Z))throw Z;return Z}function Ng(e){return fe(e).toLowerCase()}function Og(e){return fe(e).toUpperCase()}function Rg(e,t,r){if(e=fe(e),e&&(r||t===a))return pl(e);if(!e||!(t=ut(t)))return e;var n=zt(e),o=zt(t),d=ml(n,o),f=fl(n,o)+1;return yr(n,d,f).join("")}function Pg(e,t,r){if(e=fe(e),e&&(r||t===a))return e.slice(0,hl(e)+1);if(!e||!(t=ut(t)))return e;var n=zt(e),o=fl(n,zt(t))+1;return yr(n,0,o).join("")}function Eg(e,t,r){if(e=fe(e),e&&(r||t===a))return e.replace(Ta,"");if(!e||!(t=ut(t)))return e;var n=zt(e),o=ml(n,zt(t));return yr(n,o).join("")}function Lg(e,t){var r=ae,n=it;if(ke(t)){var o="separator"in t?t.separator:o;r="length"in t?Q(t.length):r,n="omission"in t?ut(t.omission):n}e=fe(e);var d=e.length;if(Wr(e)){var f=zt(e);d=f.length}if(r>=d)return e;var h=r-Hr(n);if(h<1)return n;var b=f?yr(f,0,h).join(""):e.slice(0,h);if(o===a)return b+n;if(f&&(h+=b.length-h),yn(o)){if(e.slice(h).search(o)){var A,q=b;for(o.global||(o=Si(o.source,fe(me.exec(o))+"g")),o.lastIndex=0;A=o.exec(q);)var C=A.index;b=b.slice(0,C===a?h:C)}}else if(e.indexOf(ut(o),h)!=h){var N=b.lastIndexOf(o);N>-1&&(b=b.slice(0,N))}return b+n}function Mg(e){return e=fe(e),e&&va.test(e)?e.replace(Gt,pm):e}var Fg=Qr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),gn=sc("toUpperCase");function ru(e,t,r){return e=fe(e),t=r?a:t,t===a?om(e)?ym(e):Jp(e):e.match(t)||[]}var au=te(function(e,t){try{return lt(e,a,t)}catch(r){return fn(r)?r:new Y(r)}}),Bg=Jt(function(e,t){return bt(t,function(r){r=Ut(r),Kt(e,r,pn(e[r],e))}),e});function jg(e){var t=e==null?0:e.length,r=U();return e=t?Te(e,function(n){if(typeof n[1]!="function")throw new xt(m);return[r(n[0]),n[1]]}):[],te(function(n){for(var o=-1;++o<t;){var d=e[o];if(lt(d[0],this,n))return lt(d[1],this,n)}})}function Ug(e){return mf(wt(e,D))}function bn(e){return function(){return e}}function Wg(e,t){return e==null||e!==e?t:e}var Hg=nc(),$g=nc(!0);function rt(e){return e}function xn(e){return El(typeof e=="function"?e:wt(e,D))}function Xg(e){return Ml(wt(e,D))}function Gg(e,t){return Fl(e,wt(t,D))}var Yg=te(function(e,t){return function(r){return Na(r,e,t)}}),Vg=te(function(e,t){return function(r){return Na(e,r,t)}});function vn(e,t,r){var n=Fe(t),o=qs(t,n);r==null&&!(ke(t)&&(o.length||!n.length))&&(r=t,t=e,e=this,o=qs(t,Fe(t)));var d=!(ke(r)&&"chain"in r)||!!r.chain,f=er(e);return bt(o,function(h){var b=t[h];e[h]=b,f&&(e.prototype[h]=function(){var A=this.__chain__;if(d||A){var q=e(this.__wrapped__),C=q.__actions__=Ze(this.__actions__);return C.push({func:b,args:arguments,thisArg:e}),q.__chain__=A,q}return b.apply(e,cr([this.value()],arguments))})}),e}function Kg(){return je._===this&&(je._=vm),this}function wn(){}function Qg(e){return e=Q(e),te(function(t){return Bl(t,e)})}var Jg=Ji(Te),Zg=Ji(ol),eb=Ji(Ti);function su(e){return nn(e)?Ii(Ut(e)):Sf(e)}function tb(e){return function(t){return e==null?a:kr(e,t)}}var rb=lc(),ab=lc(!0);function Tn(){return[]}function In(){return!1}function sb(){return{}}function ib(){return""}function nb(){return!0}function ob(e,t){if(e=Q(e),e<1||e>Le)return[];var r=G,n=He(e,G);t=U(t),e-=G;for(var o=Ai(n,t);++r<e;)t(r);return o}function lb(e){return V(e)?Te(e,Ut):dt(e)?[e]:Ze(Ic(fe(e)))}function cb(e){var t=++bm;return fe(e)+t}var ub=Rs(function(e,t){return e+t},0),db=Zi("ceil"),pb=Rs(function(e,t){return e/t},1),mb=Zi("floor");function fb(e){return e&&e.length?As(e,rt,Mi):a}function yb(e,t){return e&&e.length?As(e,U(t,2),Mi):a}function hb(e){return ul(e,rt)}function _b(e,t){return ul(e,U(t,2))}function gb(e){return e&&e.length?As(e,rt,Ui):a}function bb(e,t){return e&&e.length?As(e,U(t,2),Ui):a}var xb=Rs(function(e,t){return e*t},1),vb=Zi("round"),wb=Rs(function(e,t){return e-t},0);function Tb(e){return e&&e.length?ki(e,rt):0}function Ib(e,t){return e&&e.length?ki(e,U(t,2)):0}return c.after=Xh,c.ary=Pc,c.assign=O_,c.assignIn=Vc,c.assignInWith=Gs,c.assignWith=R_,c.at=P_,c.before=Ec,c.bind=pn,c.bindAll=Bg,c.bindKey=Lc,c.castArray=s_,c.chain=Nc,c.chunk=my,c.compact=fy,c.concat=yy,c.cond=jg,c.conforms=Ug,c.constant=bn,c.countBy=Th,c.create=E_,c.curry=Mc,c.curryRight=Fc,c.debounce=Bc,c.defaults=L_,c.defaultsDeep=M_,c.defer=Gh,c.delay=Yh,c.difference=hy,c.differenceBy=_y,c.differenceWith=gy,c.drop=by,c.dropRight=xy,c.dropRightWhile=vy,c.dropWhile=wy,c.fill=Ty,c.filter=Dh,c.flatMap=qh,c.flatMapDeep=Ch,c.flatMapDepth=Sh,c.flatten=qc,c.flattenDeep=Iy,c.flattenDepth=Dy,c.flip=Vh,c.flow=Hg,c.flowRight=$g,c.fromPairs=ky,c.functions=$_,c.functionsIn=X_,c.groupBy=zh,c.initial=qy,c.intersection=Cy,c.intersectionBy=Sy,c.intersectionWith=zy,c.invert=Y_,c.invertBy=V_,c.invokeMap=Oh,c.iteratee=xn,c.keyBy=Rh,c.keys=Fe,c.keysIn=tt,c.map=js,c.mapKeys=Q_,c.mapValues=J_,c.matches=Xg,c.matchesProperty=Gg,c.memoize=Ws,c.merge=Z_,c.mergeWith=Kc,c.method=Yg,c.methodOf=Vg,c.mixin=vn,c.negate=Hs,c.nthArg=Qg,c.omit=eg,c.omitBy=tg,c.once=Kh,c.orderBy=Ph,c.over=Jg,c.overArgs=Qh,c.overEvery=Zg,c.overSome=eb,c.partial=mn,c.partialRight=jc,c.partition=Eh,c.pick=rg,c.pickBy=Qc,c.property=su,c.propertyOf=tb,c.pull=Py,c.pullAll=Sc,c.pullAllBy=Ey,c.pullAllWith=Ly,c.pullAt=My,c.range=rb,c.rangeRight=ab,c.rearg=Jh,c.reject=Fh,c.remove=Fy,c.rest=Zh,c.reverse=un,c.sampleSize=jh,c.set=sg,c.setWith=ig,c.shuffle=Uh,c.slice=By,c.sortBy=$h,c.sortedUniq=Gy,c.sortedUniqBy=Yy,c.split=qg,c.spread=e_,c.tail=Vy,c.take=Ky,c.takeRight=Qy,c.takeRightWhile=Jy,c.takeWhile=Zy,c.tap=fh,c.throttle=t_,c.thru=Bs,c.toArray=Xc,c.toPairs=Jc,c.toPairsIn=Zc,c.toPath=lb,c.toPlainObject=Yc,c.transform=ng,c.unary=r_,c.union=eh,c.unionBy=th,c.unionWith=rh,c.uniq=ah,c.uniqBy=sh,c.uniqWith=ih,c.unset=og,c.unzip=dn,c.unzipWith=zc,c.update=lg,c.updateWith=cg,c.values=ea,c.valuesIn=ug,c.without=nh,c.words=ru,c.wrap=a_,c.xor=oh,c.xorBy=lh,c.xorWith=ch,c.zip=uh,c.zipObject=dh,c.zipObjectDeep=ph,c.zipWith=mh,c.entries=Jc,c.entriesIn=Zc,c.extend=Vc,c.extendWith=Gs,vn(c,c),c.add=ub,c.attempt=au,c.camelCase=fg,c.capitalize=eu,c.ceil=db,c.clamp=dg,c.clone=i_,c.cloneDeep=o_,c.cloneDeepWith=l_,c.cloneWith=n_,c.conformsTo=c_,c.deburr=tu,c.defaultTo=Wg,c.divide=pb,c.endsWith=yg,c.eq=Ot,c.escape=hg,c.escapeRegExp=_g,c.every=Ih,c.find=kh,c.findIndex=kc,c.findKey=F_,c.findLast=Ah,c.findLastIndex=Ac,c.findLastKey=B_,c.floor=mb,c.forEach=Oc,c.forEachRight=Rc,c.forIn=j_,c.forInRight=U_,c.forOwn=W_,c.forOwnRight=H_,c.get=hn,c.gt=u_,c.gte=d_,c.has=G_,c.hasIn=_n,c.head=Cc,c.identity=rt,c.includes=Nh,c.indexOf=Ay,c.inRange=pg,c.invoke=K_,c.isArguments=Cr,c.isArray=V,c.isArrayBuffer=p_,c.isArrayLike=et,c.isArrayLikeObject=Ce,c.isBoolean=m_,c.isBuffer=hr,c.isDate=f_,c.isElement=y_,c.isEmpty=h_,c.isEqual=__,c.isEqualWith=g_,c.isError=fn,c.isFinite=b_,c.isFunction=er,c.isInteger=Uc,c.isLength=$s,c.isMap=Wc,c.isMatch=x_,c.isMatchWith=v_,c.isNaN=w_,c.isNative=T_,c.isNil=D_,c.isNull=I_,c.isNumber=Hc,c.isObject=ke,c.isObjectLike=qe,c.isPlainObject=Ma,c.isRegExp=yn,c.isSafeInteger=k_,c.isSet=$c,c.isString=Xs,c.isSymbol=dt,c.isTypedArray=Zr,c.isUndefined=A_,c.isWeakMap=q_,c.isWeakSet=C_,c.join=Ny,c.kebabCase=gg,c.last=It,c.lastIndexOf=Oy,c.lowerCase=bg,c.lowerFirst=xg,c.lt=S_,c.lte=z_,c.max=fb,c.maxBy=yb,c.mean=hb,c.meanBy=_b,c.min=gb,c.minBy=bb,c.stubArray=Tn,c.stubFalse=In,c.stubObject=sb,c.stubString=ib,c.stubTrue=nb,c.multiply=xb,c.nth=Ry,c.noConflict=Kg,c.noop=wn,c.now=Us,c.pad=vg,c.padEnd=wg,c.padStart=Tg,c.parseInt=Ig,c.random=mg,c.reduce=Lh,c.reduceRight=Mh,c.repeat=Dg,c.replace=kg,c.result=ag,c.round=vb,c.runInContext=_,c.sample=Bh,c.size=Wh,c.snakeCase=Ag,c.some=Hh,c.sortedIndex=jy,c.sortedIndexBy=Uy,c.sortedIndexOf=Wy,c.sortedLastIndex=Hy,c.sortedLastIndexBy=$y,c.sortedLastIndexOf=Xy,c.startCase=Cg,c.startsWith=Sg,c.subtract=wb,c.sum=Tb,c.sumBy=Ib,c.template=zg,c.times=ob,c.toFinite=tr,c.toInteger=Q,c.toLength=Gc,c.toLower=Ng,c.toNumber=Dt,c.toSafeInteger=N_,c.toString=fe,c.toUpper=Og,c.trim=Rg,c.trimEnd=Pg,c.trimStart=Eg,c.truncate=Lg,c.unescape=Mg,c.uniqueId=cb,c.upperCase=Fg,c.upperFirst=gn,c.each=Oc,c.eachRight=Rc,c.first=Cc,vn(c,function(){var e={};return Bt(c,function(t,r){_e.call(c.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),c.VERSION=l,bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),bt(["drop","take"],function(e,t){oe.prototype[e]=function(r){r=r===a?1:Re(Q(r),0);var n=this.__filtered__&&!t?new oe(this):this.clone();return n.__filtered__?n.__takeCount__=He(r,n.__takeCount__):n.__views__.push({size:He(r,G),type:e+(n.__dir__<0?"Right":"")}),n},oe.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),bt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==Ee||r==se;oe.prototype[e]=function(o){var d=this.clone();return d.__iteratees__.push({iteratee:U(o,3),type:r}),d.__filtered__=d.__filtered__||n,d}}),bt(["head","last"],function(e,t){var r="take"+(t?"Right":"");oe.prototype[e]=function(){return this[r](1).value()[0]}}),bt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");oe.prototype[e]=function(){return this.__filtered__?new oe(this):this[r](1)}}),oe.prototype.compact=function(){return this.filter(rt)},oe.prototype.find=function(e){return this.filter(e).head()},oe.prototype.findLast=function(e){return this.reverse().find(e)},oe.prototype.invokeMap=te(function(e,t){return typeof e=="function"?new oe(this):this.map(function(r){return Na(r,e,t)})}),oe.prototype.reject=function(e){return this.filter(Hs(U(e)))},oe.prototype.slice=function(e,t){e=Q(e);var r=this;return r.__filtered__&&(e>0||t<0)?new oe(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=Q(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},oe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},oe.prototype.toArray=function(){return this.take(G)},Bt(oe.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=c[n?"take"+(t=="last"?"Right":""):t],d=n||/^find/.test(t);o&&(c.prototype[t]=function(){var f=this.__wrapped__,h=n?[1]:arguments,b=f instanceof oe,A=h[0],q=b||V(f),C=function(ie){var ce=o.apply(c,cr([ie],h));return n&&N?ce[0]:ce};q&&r&&typeof A=="function"&&A.length!=1&&(b=q=!1);var N=this.__chain__,L=!!this.__actions__.length,W=d&&!N,Z=b&&!L;if(!d&&q){f=Z?f:new oe(this);var H=e.apply(f,h);return H.__actions__.push({func:Bs,args:[C],thisArg:a}),new vt(H,N)}return W&&Z?e.apply(this,h):(H=this.thru(C),W?n?H.value()[0]:H.value():H)})}),bt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ps[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var o=arguments;if(n&&!this.__chain__){var d=this.value();return t.apply(V(d)?d:[],o)}return this[r](function(f){return t.apply(V(f)?f:[],o)})}}),Bt(oe.prototype,function(e,t){var r=c[t];if(r){var n=r.name+"";_e.call(Yr,n)||(Yr[n]=[]),Yr[n].push({name:t,func:r})}}),Yr[Os(a,K).name]=[{name:"wrapper",func:a}],oe.prototype.clone=Lm,oe.prototype.reverse=Mm,oe.prototype.value=Fm,c.prototype.at=yh,c.prototype.chain=hh,c.prototype.commit=_h,c.prototype.next=gh,c.prototype.plant=xh,c.prototype.reverse=vh,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=wh,c.prototype.first=c.prototype.head,Da&&(c.prototype[Da]=bh),c},$r=hm();vr?((vr.exports=$r)._=$r,bi._=$r):je._=$r}).call(ta)}(Ha,Ha.exports);var kd=Ha.exports;const Pt="tccScript",Ad={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|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|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\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|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|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|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|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|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|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|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|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|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 At;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(At||(At={}));const qd={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:At.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/else/,action:{indentAction:At.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:At.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:At.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:At.Indent}},{beforeText:/^\s*$/,action:{indentAction:At.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 Et(s,i=1){return s+Math.round(255*Math.min(Math.max(i,0),1)).toString(16).toUpperCase().padStart(2,"0")}const Cd={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":Et(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":Et(I["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Et(I["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Et(I["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Et(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"]}},Sd={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":Et(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":Et(I["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Et(I["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Et(I["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Et(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"]}},zd=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Nd=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,Wn={"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 Od{constructor(i){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:(a=[],l)=>{const u=new Map,p=l.indexOf("(");for(let m=p+1,x=p;m<l.length;m++)l[m]!==","&&l[m]!==")"||(x++,u.set(l.slice(x,m),x),x=m+1);return a.map(({name:m,displayType:x,desc:g})=>{const v=[],w=u.get(m),D=w+m.length;return v.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(x||""))),g&&v.push(Array.isArray(g)?g.join(this._formatter.lineBreak):g),{label:[w,D],documentation:{value:v.join(this._formatter.lineBreak)}}})}}),this._formatter=ye,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(i)}getSignatureHelpValues(i,a){const l=this._getFuncItems(i);if(!(l!=null&&l.length))return null;const u=this._getSequentialSignatures(i,l),p=this._getActiveIndex(l,a);return{signatures:u,...p}}_getActiveIndex(i,a=[]){let l=0,u=-1;a.some(m=>!!m)||(u=a.length-1);const p=a.pop();if(p)for(const[m,x]of i.entries()){const{args:g}=x;if(g&&g.length){const v=g.findIndex(w=>w.name===p);if(v!=-1){u=v,l=m;break}}}return{activeParameter:u,activeSignature:l}}_getFuncItems(i){return kt.functions.get(i)||zr.userFuncs.get(i)||zr.methodFuncs.get(i)}_getSequentialSignatures(i,a){return a.map(l=>{const u=this._getSignatureLabel(i,l);return{label:u,documentation:this._getFormattedSignatureDocumentation(l),parameters:this._getSignatureParams(l.args,u)}})}_getSignatureLabel(i,a,l=!1){const u=[i];return l&&u.push("<type>"),a.args&&(u.push("("),u.push(a.args.map(({name:p})=>p).join(", ")),u.push(")")),u.join("")}_getFormattedSignatureDocumentation(i){const{desc:a}=i,l=[];a&&l.push(Array.isArray(a)?a.join(this._formatter.lineBreak):a);const u=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
131
+ }`;var Z=au(function(){return pe(d,L+"return "+C).apply(a,f)});if(Z.source=C,fn(Z))throw Z;return Z}function Ng(e){return fe(e).toLowerCase()}function Og(e){return fe(e).toUpperCase()}function Pg(e,t,r){if(e=fe(e),e&&(r||t===a))return pl(e);if(!e||!(t=ut(t)))return e;var n=zt(e),o=zt(t),d=ml(n,o),f=fl(n,o)+1;return yr(n,d,f).join("")}function Eg(e,t,r){if(e=fe(e),e&&(r||t===a))return e.slice(0,hl(e)+1);if(!e||!(t=ut(t)))return e;var n=zt(e),o=fl(n,zt(t))+1;return yr(n,0,o).join("")}function Rg(e,t,r){if(e=fe(e),e&&(r||t===a))return e.replace(Ta,"");if(!e||!(t=ut(t)))return e;var n=zt(e),o=ml(n,zt(t));return yr(n,o).join("")}function Lg(e,t){var r=ae,n=it;if(ke(t)){var o="separator"in t?t.separator:o;r="length"in t?Q(t.length):r,n="omission"in t?ut(t.omission):n}e=fe(e);var d=e.length;if(Wr(e)){var f=zt(e);d=f.length}if(r>=d)return e;var h=r-Hr(n);if(h<1)return n;var b=f?yr(f,0,h).join(""):e.slice(0,h);if(o===a)return b+n;if(f&&(h+=b.length-h),yn(o)){if(e.slice(h).search(o)){var A,q=b;for(o.global||(o=Si(o.source,fe(me.exec(o))+"g")),o.lastIndex=0;A=o.exec(q);)var C=A.index;b=b.slice(0,C===a?h:C)}}else if(e.indexOf(ut(o),h)!=h){var N=b.lastIndexOf(o);N>-1&&(b=b.slice(0,N))}return b+n}function Mg(e){return e=fe(e),e&&va.test(e)?e.replace(Gt,pm):e}var Fg=Qr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),gn=sc("toUpperCase");function ru(e,t,r){return e=fe(e),t=r?a:t,t===a?om(e)?ym(e):Jp(e):e.match(t)||[]}var au=te(function(e,t){try{return lt(e,a,t)}catch(r){return fn(r)?r:new Y(r)}}),Bg=Jt(function(e,t){return bt(t,function(r){r=Ut(r),Kt(e,r,pn(e[r],e))}),e});function jg(e){var t=e==null?0:e.length,r=U();return e=t?Te(e,function(n){if(typeof n[1]!="function")throw new xt(m);return[r(n[0]),n[1]]}):[],te(function(n){for(var o=-1;++o<t;){var d=e[o];if(lt(d[0],this,n))return lt(d[1],this,n)}})}function Ug(e){return mf(wt(e,D))}function bn(e){return function(){return e}}function Wg(e,t){return e==null||e!==e?t:e}var Hg=nc(),$g=nc(!0);function rt(e){return e}function xn(e){return Rl(typeof e=="function"?e:wt(e,D))}function Xg(e){return Ml(wt(e,D))}function Gg(e,t){return Fl(e,wt(t,D))}var Yg=te(function(e,t){return function(r){return Na(r,e,t)}}),Vg=te(function(e,t){return function(r){return Na(e,r,t)}});function vn(e,t,r){var n=Fe(t),o=qs(t,n);r==null&&!(ke(t)&&(o.length||!n.length))&&(r=t,t=e,e=this,o=qs(t,Fe(t)));var d=!(ke(r)&&"chain"in r)||!!r.chain,f=er(e);return bt(o,function(h){var b=t[h];e[h]=b,f&&(e.prototype[h]=function(){var A=this.__chain__;if(d||A){var q=e(this.__wrapped__),C=q.__actions__=Ze(this.__actions__);return C.push({func:b,args:arguments,thisArg:e}),q.__chain__=A,q}return b.apply(e,cr([this.value()],arguments))})}),e}function Kg(){return je._===this&&(je._=vm),this}function wn(){}function Qg(e){return e=Q(e),te(function(t){return Bl(t,e)})}var Jg=Ji(Te),Zg=Ji(ol),eb=Ji(Ti);function su(e){return nn(e)?Ii(Ut(e)):Sf(e)}function tb(e){return function(t){return e==null?a:kr(e,t)}}var rb=lc(),ab=lc(!0);function Tn(){return[]}function In(){return!1}function sb(){return{}}function ib(){return""}function nb(){return!0}function ob(e,t){if(e=Q(e),e<1||e>Le)return[];var r=G,n=He(e,G);t=U(t),e-=G;for(var o=Ai(n,t);++r<e;)t(r);return o}function lb(e){return V(e)?Te(e,Ut):dt(e)?[e]:Ze(Ic(fe(e)))}function cb(e){var t=++bm;return fe(e)+t}var ub=Ps(function(e,t){return e+t},0),db=Zi("ceil"),pb=Ps(function(e,t){return e/t},1),mb=Zi("floor");function fb(e){return e&&e.length?As(e,rt,Mi):a}function yb(e,t){return e&&e.length?As(e,U(t,2),Mi):a}function hb(e){return ul(e,rt)}function _b(e,t){return ul(e,U(t,2))}function gb(e){return e&&e.length?As(e,rt,Ui):a}function bb(e,t){return e&&e.length?As(e,U(t,2),Ui):a}var xb=Ps(function(e,t){return e*t},1),vb=Zi("round"),wb=Ps(function(e,t){return e-t},0);function Tb(e){return e&&e.length?ki(e,rt):0}function Ib(e,t){return e&&e.length?ki(e,U(t,2)):0}return c.after=Xh,c.ary=Ec,c.assign=O_,c.assignIn=Vc,c.assignInWith=Gs,c.assignWith=P_,c.at=E_,c.before=Rc,c.bind=pn,c.bindAll=Bg,c.bindKey=Lc,c.castArray=s_,c.chain=Nc,c.chunk=my,c.compact=fy,c.concat=yy,c.cond=jg,c.conforms=Ug,c.constant=bn,c.countBy=Th,c.create=R_,c.curry=Mc,c.curryRight=Fc,c.debounce=Bc,c.defaults=L_,c.defaultsDeep=M_,c.defer=Gh,c.delay=Yh,c.difference=hy,c.differenceBy=_y,c.differenceWith=gy,c.drop=by,c.dropRight=xy,c.dropRightWhile=vy,c.dropWhile=wy,c.fill=Ty,c.filter=Dh,c.flatMap=qh,c.flatMapDeep=Ch,c.flatMapDepth=Sh,c.flatten=qc,c.flattenDeep=Iy,c.flattenDepth=Dy,c.flip=Vh,c.flow=Hg,c.flowRight=$g,c.fromPairs=ky,c.functions=$_,c.functionsIn=X_,c.groupBy=zh,c.initial=qy,c.intersection=Cy,c.intersectionBy=Sy,c.intersectionWith=zy,c.invert=Y_,c.invertBy=V_,c.invokeMap=Oh,c.iteratee=xn,c.keyBy=Ph,c.keys=Fe,c.keysIn=tt,c.map=js,c.mapKeys=Q_,c.mapValues=J_,c.matches=Xg,c.matchesProperty=Gg,c.memoize=Ws,c.merge=Z_,c.mergeWith=Kc,c.method=Yg,c.methodOf=Vg,c.mixin=vn,c.negate=Hs,c.nthArg=Qg,c.omit=eg,c.omitBy=tg,c.once=Kh,c.orderBy=Eh,c.over=Jg,c.overArgs=Qh,c.overEvery=Zg,c.overSome=eb,c.partial=mn,c.partialRight=jc,c.partition=Rh,c.pick=rg,c.pickBy=Qc,c.property=su,c.propertyOf=tb,c.pull=Ey,c.pullAll=Sc,c.pullAllBy=Ry,c.pullAllWith=Ly,c.pullAt=My,c.range=rb,c.rangeRight=ab,c.rearg=Jh,c.reject=Fh,c.remove=Fy,c.rest=Zh,c.reverse=un,c.sampleSize=jh,c.set=sg,c.setWith=ig,c.shuffle=Uh,c.slice=By,c.sortBy=$h,c.sortedUniq=Gy,c.sortedUniqBy=Yy,c.split=qg,c.spread=e_,c.tail=Vy,c.take=Ky,c.takeRight=Qy,c.takeRightWhile=Jy,c.takeWhile=Zy,c.tap=fh,c.throttle=t_,c.thru=Bs,c.toArray=Xc,c.toPairs=Jc,c.toPairsIn=Zc,c.toPath=lb,c.toPlainObject=Yc,c.transform=ng,c.unary=r_,c.union=eh,c.unionBy=th,c.unionWith=rh,c.uniq=ah,c.uniqBy=sh,c.uniqWith=ih,c.unset=og,c.unzip=dn,c.unzipWith=zc,c.update=lg,c.updateWith=cg,c.values=ea,c.valuesIn=ug,c.without=nh,c.words=ru,c.wrap=a_,c.xor=oh,c.xorBy=lh,c.xorWith=ch,c.zip=uh,c.zipObject=dh,c.zipObjectDeep=ph,c.zipWith=mh,c.entries=Jc,c.entriesIn=Zc,c.extend=Vc,c.extendWith=Gs,vn(c,c),c.add=ub,c.attempt=au,c.camelCase=fg,c.capitalize=eu,c.ceil=db,c.clamp=dg,c.clone=i_,c.cloneDeep=o_,c.cloneDeepWith=l_,c.cloneWith=n_,c.conformsTo=c_,c.deburr=tu,c.defaultTo=Wg,c.divide=pb,c.endsWith=yg,c.eq=Ot,c.escape=hg,c.escapeRegExp=_g,c.every=Ih,c.find=kh,c.findIndex=kc,c.findKey=F_,c.findLast=Ah,c.findLastIndex=Ac,c.findLastKey=B_,c.floor=mb,c.forEach=Oc,c.forEachRight=Pc,c.forIn=j_,c.forInRight=U_,c.forOwn=W_,c.forOwnRight=H_,c.get=hn,c.gt=u_,c.gte=d_,c.has=G_,c.hasIn=_n,c.head=Cc,c.identity=rt,c.includes=Nh,c.indexOf=Ay,c.inRange=pg,c.invoke=K_,c.isArguments=Cr,c.isArray=V,c.isArrayBuffer=p_,c.isArrayLike=et,c.isArrayLikeObject=Ce,c.isBoolean=m_,c.isBuffer=hr,c.isDate=f_,c.isElement=y_,c.isEmpty=h_,c.isEqual=__,c.isEqualWith=g_,c.isError=fn,c.isFinite=b_,c.isFunction=er,c.isInteger=Uc,c.isLength=$s,c.isMap=Wc,c.isMatch=x_,c.isMatchWith=v_,c.isNaN=w_,c.isNative=T_,c.isNil=D_,c.isNull=I_,c.isNumber=Hc,c.isObject=ke,c.isObjectLike=qe,c.isPlainObject=Ma,c.isRegExp=yn,c.isSafeInteger=k_,c.isSet=$c,c.isString=Xs,c.isSymbol=dt,c.isTypedArray=Zr,c.isUndefined=A_,c.isWeakMap=q_,c.isWeakSet=C_,c.join=Ny,c.kebabCase=gg,c.last=It,c.lastIndexOf=Oy,c.lowerCase=bg,c.lowerFirst=xg,c.lt=S_,c.lte=z_,c.max=fb,c.maxBy=yb,c.mean=hb,c.meanBy=_b,c.min=gb,c.minBy=bb,c.stubArray=Tn,c.stubFalse=In,c.stubObject=sb,c.stubString=ib,c.stubTrue=nb,c.multiply=xb,c.nth=Py,c.noConflict=Kg,c.noop=wn,c.now=Us,c.pad=vg,c.padEnd=wg,c.padStart=Tg,c.parseInt=Ig,c.random=mg,c.reduce=Lh,c.reduceRight=Mh,c.repeat=Dg,c.replace=kg,c.result=ag,c.round=vb,c.runInContext=_,c.sample=Bh,c.size=Wh,c.snakeCase=Ag,c.some=Hh,c.sortedIndex=jy,c.sortedIndexBy=Uy,c.sortedIndexOf=Wy,c.sortedLastIndex=Hy,c.sortedLastIndexBy=$y,c.sortedLastIndexOf=Xy,c.startCase=Cg,c.startsWith=Sg,c.subtract=wb,c.sum=Tb,c.sumBy=Ib,c.template=zg,c.times=ob,c.toFinite=tr,c.toInteger=Q,c.toLength=Gc,c.toLower=Ng,c.toNumber=Dt,c.toSafeInteger=N_,c.toString=fe,c.toUpper=Og,c.trim=Pg,c.trimEnd=Eg,c.trimStart=Rg,c.truncate=Lg,c.unescape=Mg,c.uniqueId=cb,c.upperCase=Fg,c.upperFirst=gn,c.each=Oc,c.eachRight=Pc,c.first=Cc,vn(c,function(){var e={};return Bt(c,function(t,r){_e.call(c.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),c.VERSION=l,bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),bt(["drop","take"],function(e,t){oe.prototype[e]=function(r){r=r===a?1:Pe(Q(r),0);var n=this.__filtered__&&!t?new oe(this):this.clone();return n.__filtered__?n.__takeCount__=He(r,n.__takeCount__):n.__views__.push({size:He(r,G),type:e+(n.__dir__<0?"Right":"")}),n},oe.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),bt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==Re||r==se;oe.prototype[e]=function(o){var d=this.clone();return d.__iteratees__.push({iteratee:U(o,3),type:r}),d.__filtered__=d.__filtered__||n,d}}),bt(["head","last"],function(e,t){var r="take"+(t?"Right":"");oe.prototype[e]=function(){return this[r](1).value()[0]}}),bt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");oe.prototype[e]=function(){return this.__filtered__?new oe(this):this[r](1)}}),oe.prototype.compact=function(){return this.filter(rt)},oe.prototype.find=function(e){return this.filter(e).head()},oe.prototype.findLast=function(e){return this.reverse().find(e)},oe.prototype.invokeMap=te(function(e,t){return typeof e=="function"?new oe(this):this.map(function(r){return Na(r,e,t)})}),oe.prototype.reject=function(e){return this.filter(Hs(U(e)))},oe.prototype.slice=function(e,t){e=Q(e);var r=this;return r.__filtered__&&(e>0||t<0)?new oe(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=Q(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},oe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},oe.prototype.toArray=function(){return this.take(G)},Bt(oe.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=c[n?"take"+(t=="last"?"Right":""):t],d=n||/^find/.test(t);o&&(c.prototype[t]=function(){var f=this.__wrapped__,h=n?[1]:arguments,b=f instanceof oe,A=h[0],q=b||V(f),C=function(ie){var ce=o.apply(c,cr([ie],h));return n&&N?ce[0]:ce};q&&r&&typeof A=="function"&&A.length!=1&&(b=q=!1);var N=this.__chain__,L=!!this.__actions__.length,W=d&&!N,Z=b&&!L;if(!d&&q){f=Z?f:new oe(this);var H=e.apply(f,h);return H.__actions__.push({func:Bs,args:[C],thisArg:a}),new vt(H,N)}return W&&Z?e.apply(this,h):(H=this.thru(C),W?n?H.value()[0]:H.value():H)})}),bt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ps[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var o=arguments;if(n&&!this.__chain__){var d=this.value();return t.apply(V(d)?d:[],o)}return this[r](function(f){return t.apply(V(f)?f:[],o)})}}),Bt(oe.prototype,function(e,t){var r=c[t];if(r){var n=r.name+"";_e.call(Yr,n)||(Yr[n]=[]),Yr[n].push({name:t,func:r})}}),Yr[Os(a,K).name]=[{name:"wrapper",func:a}],oe.prototype.clone=Lm,oe.prototype.reverse=Mm,oe.prototype.value=Fm,c.prototype.at=yh,c.prototype.chain=hh,c.prototype.commit=_h,c.prototype.next=gh,c.prototype.plant=xh,c.prototype.reverse=vh,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=wh,c.prototype.first=c.prototype.head,Da&&(c.prototype[Da]=bh),c},$r=hm();vr?((vr.exports=$r)._=$r,bi._=$r):je._=$r}).call(ta)}(Ha,Ha.exports);var kd=Ha.exports;const Et="tccScript",Ad={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|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|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\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|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|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|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|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|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|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|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|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|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 At;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(At||(At={}));const qd={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:At.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/else/,action:{indentAction:At.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:At.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:At.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:At.Indent}},{beforeText:/^\s*$/,action:{indentAction:At.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 Rt(s,i=1){return s+Math.round(255*Math.min(Math.max(i,0),1)).toString(16).toUpperCase().padStart(2,"0")}const Cd={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":Rt(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":Rt(I["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Rt(I["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Rt(I["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Rt(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"]}},Sd={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":Rt(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":Rt(I["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Rt(I["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Rt(I["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Rt(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"]}},zd=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Nd=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,Wn={"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 Od{constructor(i){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:(a=[],l)=>{const u=new Map,p=l.indexOf("(");for(let m=p+1,x=p;m<l.length;m++)l[m]!==","&&l[m]!==")"||(x++,u.set(l.slice(x,m),x),x=m+1);return a.map(({name:m,displayType:x,desc:g})=>{const v=[],w=u.get(m),D=w+m.length;return v.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(x||""))),g&&v.push(Array.isArray(g)?g.join(this._formatter.lineBreak):g),{label:[w,D],documentation:{value:v.join(this._formatter.lineBreak)}}})}}),this._formatter=ye,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(i)}getSignatureHelpValues(i,a){const l=this._getFuncItems(i);if(!(l!=null&&l.length))return null;const u=this._getSequentialSignatures(i,l),p=this._getActiveIndex(l,a);return{signatures:u,...p}}_getActiveIndex(i,a=[]){let l=0,u=-1;a.some(m=>!!m)||(u=a.length-1);const p=a.pop();if(p)for(const[m,x]of i.entries()){const{args:g}=x;if(g&&g.length){const v=g.findIndex(w=>w.name===p);if(v!=-1){u=v,l=m;break}}}return{activeParameter:u,activeSignature:l}}_getFuncItems(i){return kt.functions.get(i)||zr.userFuncs.get(i)||zr.methodFuncs.get(i)}_getSequentialSignatures(i,a){return a.map(l=>{const u=this._getSignatureLabel(i,l);return{label:u,documentation:this._getFormattedSignatureDocumentation(l),parameters:this._getSignatureParams(l.args,u)}})}_getSignatureLabel(i,a,l=!1){const u=[i];return l&&u.push("<type>"),a.args&&(u.push("("),u.push(a.args.map(({name:p})=>p).join(", ")),u.push(")")),u.join("")}_getFormattedSignatureDocumentation(i){const{desc:a}=i,l=[];a&&l.push(Array.isArray(a)?a.join(this._formatter.lineBreak):a);const u=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
132
132
  ${this._formatter.code("Shift")} +
133
- ${this._formatter.code("Space")}`;return l.push(this._formatter.lineBreak),l.push(this._formatter.italic(`${u} ${Ie.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...l)}}}const Rd=new Od(window.navigator.userAgent);class Pd{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=Wn}getDocumentColors(i){const a=[];return i.forEach(l=>{const{range:u}=l;let{matches:p}=l;p=p||[];const m=p[0]||"";let x=null;this._isHexToken(m)?x=this._hexToColor(m):this._isRgbColor(m)?x=this._rgbToColor(m):this._colors[m]?x=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&p[1]&&p[6]&&(x=this._extractNewExpression(p[1],Number(p[6]))),x&&a.push({color:x,range:u})}),a}get _defultColorsRegStr(){return Object.keys(Wn).reduce((i,a)=>`${i}|${a}`,"")}get colorMatchesRegStr(){const i=`#[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*(${i})\\s*,\\s*(\\d+)\\s*\\)|${i}`}getDocumentColorPresentations(i,{color:a,range:l}){const u=i.getValueInRange(l);if(this._isHexToken(u)||this._colors[u])return[{label:this._colorRgbRepresentation(a)},{label:this._colorHexRepresentation(a)}];if(this._isColorExpression(u)||this._isRgbColor(u)){const p=this._isColorExpression(u)?this._colorNewRepresentation(a):this._colorRgbRepresentation(a);if(!p)return[];const m=this._colorHexRepresentation(a);return[{label:p,textEdit:{text:p,range:l}},{label:m,textEdit:{text:m,range:l}}]}return null}_hexFromNumber(i){const a=this._denormalize(i).toString(16);return a.length===1?`0${a}`:a}_normalize(i){return i/255}_denormalize(i){return Math.round(255*i)}_normalizeAlpha(i){return(100-i)/100}_denormalizeAlpha(i){return 100-Math.round(100*i)}_extractNewExpression(i,a){let l=null;return this._isHexToken(i)?l=this._hexToColor(i):this._isRgbColor(i)?l=this._rgbToColor(i):this._colors[i]&&(l=this._hexToColor(this._colors[i])),l&&!Number.isNaN(a)?{...l,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(i){const a=this._hexFromNumber(i.red),l=this._hexFromNumber(i.green),u=this._hexFromNumber(i.blue),p=this._hexFromNumber(i.alpha);return`#${a}${l}${u}${i.alpha===1?"":p}`}_colorRgbRepresentation(i){const a=this._denormalize(i.red),l=this._denormalize(i.green),u=this._denormalize(i.blue),p=this._denormalizeAlpha(i.alpha),m=[a,l,u];return p>0&&m.push(p),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(i){const a={...i,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(i.alpha)})`}_hexToColor(i){const a=(i=this._isHexToken(i)?i.slice(1):i).length===3||i.length===4,l=a?`${i.slice(0,1)}${i.slice(0,1)}`:i.slice(0,2),u=a?`${i.slice(1,2)}${i.slice(1,2)}`:i.slice(2,4),p=a?`${i.slice(2,3)}${i.slice(2,3)}`:i.slice(4,6),m=(a?`${i.slice(3,4)}${i.slice(3,4)}`:i.slice(6,8))||"ff";return{red:this._normalize(parseInt(l,16)),green:this._normalize(parseInt(u,16)),blue:this._normalize(parseInt(p,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(i){const a=i.replace(/[^\d,]/g,"").split(","),l=this._normalize(Number(a[0])),u=this._normalize(Number(a[1])),p=this._normalize(Number(a[2])),m=this._normalizeAlpha(Number(a[3]))||1;return isNaN(l)||isNaN(u)||isNaN(p)?null:{red:l,green:u,blue:p,alpha:m}}_isHexToken(i){return i.charAt(0)==="#"}_isRgbColor(i){return i.startsWith("color.rgb")}_isColorExpression(i){return i.startsWith("color.new")}}const Zs=new Pd;function Ed(s,i){var D;const a={startLineNumber:i.lineNumber,startColumn:1,endLineNumber:i.lineNumber,endColumn:i.column},l=s.getValueInRange(a),u=l.match(/([\w.]+)$/)||[],p=(D=u[0])==null?void 0:D.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=p?p[1]?p[1]:p[2]?p[2]:void 0:void 0,x=s.getWordUntilPosition(i),g=la.parseCurrentInputFunc(l),v={startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:x.startColumn,endColumn:x.endColumn};let w=Hn(zr.getSuggestions(m)||[],v);if(u[0]==="."&&(w=[]),g&&!m&&!/=\s*\w+$/.test(l)){const O=Hn(zr.getArgSuggestions(g.funcName)||[],v);w=w.concat(O)}return{suggestions:w||[]}}function Ld(s,i){const a=s.getLineContent(i.lineNumber),l=la.parseLineContentFuncVar(a,i.column,i.lineNumber);if(l&&l.docValue.length){const u=wd(l.docValue,l.index,l.isBuildIn);if(u)return{contents:[{value:u}]}}return{contents:[]}}function Md(s,i){var D,O;const a={startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:1,endColumn:i.column},l=s.getValueInRange(a),u=s.findMatches(String(zd),a,!0,!1,null,!0),p=s.findMatches(String(Nd),a,!0,!1,null,!0),m=(D=u.pop())==null?void 0:D.matches,x=(O=p.pop())==null?void 0:O.matches;let g=!1;u.length%2===0?m&&m[0]==='"'&&(g=!0):m&&!m[0]&&(g=!0);let v=!1;p.length%2===0?x&&x[0]==="'"&&(v=!0):x&&!x[0]&&(v=!0);const w=la.parseCurrentInputFuncAndArg(l,v,g);if(w){const{funcName:R,args:F}=w,B=Rd.getSignatureHelpValues(R,F);if(B)return{value:B,dispose:()=>{console.log("dispose")}}}return null}function Fd(s){let i=s.findMatches(Zs.colorMatchesRegStr,!0,!0,!1,null,!0);return i=i.filter(l=>{const u=s.getValueInRange({...l.range,startColumn:0});return u.indexOf("//")===-1||u.indexOf("//")>l.range.endColumn}),Zs.getDocumentColors(i)}function Bd(s,i){return Zs.getDocumentColorPresentations(s,i)||[]}function jd(s,i,a){const l=s.getModel(),u=l==null?void 0:l.getLineContent(a.startLineNumber),p=la.parseLineContentFuncVar(u||"",a.startColumn+1,a.startLineNumber);if(!p||p.isBuildIn||!p.docValue||!p.docValue[0].pos)return!0;const{lineNumber:m,column:x}=p.docValue[0].pos,g={startLineNumber:m,endLineNumber:m,startColumn:x,endColumn:x};return s.revealRangeInCenterIfOutsideViewport(g),s.setSelection(g),!0}function Ud(s,i){return{uri:s.uri,range:{startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:i.column-1,endColumn:i.column-1}}}function Hn(s,i){return s.map(a=>(a.range=i,a))}const $n="tcc_last_edited_script",Xn="tcc_original_script",ei="tcc_cursor_position";var ca={},ua=nu;if(process.env.NODE_ENV==="production")ca.createRoot=ua.createRoot,ca.hydrateRoot=ua.hydrateRoot;else{var $a=ua.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ca.createRoot=function(s,i){$a.usingClientEntryPoint=!0;try{return ua.createRoot(s,i)}finally{$a.usingClientEntryPoint=!1}},ca.hydrateRoot=function(s,i,a){$a.usingClientEntryPoint=!0;try{return ua.hydrateRoot(s,i,a)}finally{$a.usingClientEntryPoint=!1}}}var We;(function(s){s.added="added",s.removed="removed",s.modified="modified"})(We||(We={}));const Wd=(s,i)=>{const{close:a,retracement:l}=s,[u,p]=M.useState("modified");return M.useImperativeHandle(i,()=>({updateType(m){p(m)}})),ft.jsxs("div",{className:`content-popup content-${u}-popup`,children:[ft.jsx("div",{className:`triangle-popup triangle-${u}-popup`}),ft.jsxs("div",{className:`header-popup header-${u}-popup`,children:[ft.jsx("div",{className:"title-popup",children:"Local working changes"}),ft.jsx("div",{className:"actions-popup",children:ft.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:ft.jsx("span",{className:"icon-popup",role:"img",children:ft.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:ft.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),ft.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},Hd=M.forwardRef(Wd);class $d{constructor(i,a,l=!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=i,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=l?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",a==null||a.onDidScrollChange(this.scrollChangeHandler.bind(this)),ca.createRoot(this._domNode).render(ft.jsx(Hd,{ref:u=>this._content=u,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(i,a,l){var u;this._top=a,(u=this._content)==null||u.updateType(l),this._domNode.style.top=`${i}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(i){const a=i.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function sr(){}sr.prototype={diff:function(i,a){var l,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=u.callback;typeof u=="function"&&(p=u,u={}),this.options=u;var m=this;function x(le){return p?(setTimeout(function(){p(void 0,le)},0),!0):le}i=this.castInput(i),a=this.castInput(a),i=this.removeEmpty(this.tokenize(i)),a=this.removeEmpty(this.tokenize(a));var g=a.length,v=i.length,w=1,D=g+v;u.maxEditLength&&(D=Math.min(D,u.maxEditLength));var O=(l=u.timeout)!==null&&l!==void 0?l:1/0,R=Date.now()+O,F=[{oldPos:-1,lastComponent:void 0}],B=this.extractCommon(F[0],a,i,0);if(F[0].oldPos+1>=v&&B+1>=g)return x([{value:this.join(a),count:a.length}]);var E=-1/0,K=1/0;function $(){for(var le=Math.max(E,-w);le<=Math.min(K,w);le+=2){var J=void 0,ue=F[le-1],ee=F[le+1];ue&&(F[le-1]=void 0);var ze=!1;if(ee){var ge=ee.oldPos-le;ze=ee&&0<=ge&&ge<g}var ae=ue&&ue.oldPos+1<v;if(!ze&&!ae){F[le]=void 0;continue}if(!ae||ze&&ue.oldPos+1<ee.oldPos?J=m.addToPath(ee,!0,void 0,0):J=m.addToPath(ue,void 0,!0,1),B=m.extractCommon(J,a,i,le),J.oldPos+1>=v&&B+1>=g)return x(Xd(m,J.lastComponent,a,i,m.useLongestToken));F[le]=J,J.oldPos+1>=v&&(K=Math.min(K,le-1)),B+1>=g&&(E=Math.max(E,le+1))}w++}if(p)(function le(){setTimeout(function(){if(w>D||Date.now()>R)return p();$()||le()},0)})();else for(;w<=D&&Date.now()<=R;){var he=$();if(he)return he}},addToPath:function(i,a,l,u){var p=i.lastComponent;return p&&p.added===a&&p.removed===l?{oldPos:i.oldPos+u,lastComponent:{count:p.count+1,added:a,removed:l,previousComponent:p.previousComponent}}:{oldPos:i.oldPos+u,lastComponent:{count:1,added:a,removed:l,previousComponent:p}}},extractCommon:function(i,a,l,u){for(var p=a.length,m=l.length,x=i.oldPos,g=x-u,v=0;g+1<p&&x+1<m&&this.equals(a[g+1],l[x+1]);)g++,x++,v++;return v&&(i.lastComponent={count:v,previousComponent:i.lastComponent}),i.oldPos=x,g},equals:function(i,a){return this.options.comparator?this.options.comparator(i,a):i===a||this.options.ignoreCase&&i.toLowerCase()===a.toLowerCase()},removeEmpty:function(i){for(var a=[],l=0;l<i.length;l++)i[l]&&a.push(i[l]);return a},castInput:function(i){return i},tokenize:function(i){return i.split("")},join:function(i){return i.join("")}};function Xd(s,i,a,l,u){for(var p=[],m;i;)p.push(i),m=i.previousComponent,delete i.previousComponent,i=m;p.reverse();for(var x=0,g=p.length,v=0,w=0;x<g;x++){var D=p[x];if(D.removed){if(D.value=s.join(l.slice(w,w+D.count)),w+=D.count,x&&p[x-1].added){var R=p[x-1];p[x-1]=p[x],p[x]=R}}else{if(!D.added&&u){var O=a.slice(v,v+D.count);O=O.map(function(B,E){var K=l[w+E];return K.length>B.length?K:B}),D.value=s.join(O)}else D.value=s.join(a.slice(v,v+D.count));v+=D.count,D.added||(w+=D.count)}}var F=p[g-1];return g>1&&typeof F.value=="string"&&(F.added||F.removed)&&s.equals("",F.value)&&(p[g-2].value+=F.value,p.pop()),p}var Gn=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Yn=/\S/,Vn=new sr;Vn.equals=function(s,i){return this.options.ignoreCase&&(s=s.toLowerCase(),i=i.toLowerCase()),s===i||this.options.ignoreWhitespace&&!Yn.test(s)&&!Yn.test(i)},Vn.tokenize=function(s){for(var i=s.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<i.length-1;a++)!i[a+1]&&i[a+2]&&Gn.test(i[a])&&Gn.test(i[a+2])&&(i[a]+=i[a+2],i.splice(a+1,2),a--);return i};var ti=new sr;ti.tokenize=function(s){this.options.stripTrailingCr&&(s=s.replace(/\r\n/g,`
134
- `));var i=[],a=s.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var l=0;l<a.length;l++){var u=a[l];l%2&&!this.options.newlineIsToken?i[i.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),i.push(u))}return i};function Gd(s,i,a){return ti.diff(s,i,a)}var Yd=new sr;Yd.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var Vd=new sr;Vd.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Xa(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xa=function(i){return typeof i}:Xa=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Xa(s)}var Kd=Object.prototype.toString,da=new sr;da.useLongestToken=!0,da.tokenize=ti.tokenize,da.castInput=function(s){var i=this.options,a=i.undefinedReplacement,l=i.stringifyReplacer,u=l===void 0?function(p,m){return typeof m>"u"?a:m}:l;return typeof s=="string"?s:JSON.stringify(ri(s,null,null,u),u," ")},da.equals=function(s,i){return sr.prototype.equals.call(da,s.replace(/,([\r\n])/g,"$1"),i.replace(/,([\r\n])/g,"$1"))};function ri(s,i,a,l,u){i=i||[],a=a||[],l&&(s=l(u,s));var p;for(p=0;p<i.length;p+=1)if(i[p]===s)return a[p];var m;if(Kd.call(s)==="[object Array]"){for(i.push(s),m=new Array(s.length),a.push(m),p=0;p<s.length;p+=1)m[p]=ri(s[p],i,a,l,u);return i.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Xa(s)==="object"&&s!==null){i.push(s),m={},a.push(m);var x=[],g;for(g in s)s.hasOwnProperty(g)&&x.push(g);for(x.sort(),p=0;p<x.length;p+=1)g=x[p],m[g]=ri(s[g],i,a,l,g);i.pop(),a.pop()}else m=s;return m}var ai=new sr;ai.tokenize=function(s){return s.slice()},ai.join=ai.removeEmpty=function(s){return s};class Qd{constructor(i,a,l){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=i,this._monaco=a,this._originalModel=this._monaco.editor.createModel(localStorage.getItem(Xn)||"",Pt),this._oldDecorations=[],this._init(),this._eventListening(l)}_init(){var i;this._changeEvent(),this._didChangeListener=(i=this._editor.getModel())==null?void 0:i.onDidChangeContent(()=>this._changeEvent())}update(i){var a;this._originalModel=this._monaco.editor.createModel(i,Pt),(a=this._editor.getModel())==null||a.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var i,a,l,u;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(i=this._didChangeListener)==null||i.dispose(),(a=this._onMouseDownListener)==null||a.dispose(),(l=this._editor.getModel())==null||l.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(u=this._diffEditor)==null||u.dispose(),this._diffEditor=void 0}_changesHandle(i){let a=0,l;const u=[];let p=0;for(const m of i){const{added:x,removed:g,count:v=1,value:w}=m;x?l&&l.removed?(a=this._changeHandle(u,a,p,v,We.modified),p=0,l=void 0):(l&&l.added&&(a=this._changeHandle(u,a,p,l.count||1,We.added),p=0),l=m):g?l&&l.added?(a=this._changeHandle(u,a,p,l.count||1,We.modified),p=0,l=void 0):(l&&l.removed&&this._addDecorationList(u,a,We.removed),l=m):/^\n+$/.test(w)?l&&(l.added||l.removed)?p=v:a+=v:(l&&l.added?(a=this._changeHandle(u,a,p,l.count||1,We.added),p=0,l=void 0):l&&l.removed&&(this._addDecorationList(u,a,We.removed),l=void 0),a+=v)}return l&&l.added?a=this._changeHandle(u,a,p,l.count||1,We.added):l&&l.removed&&this._addDecorationList(u,a,We.removed),u}_changeHandle(i,a,l,u,p){for(let m=1;m<=u;m++)this._addDecorationList(i,a+m,p);return a+=u+l,a}_addDecorationList(i,a,l){i.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${l} line-decoration_${l}`}})}_changeEvent(){var u,p;const i=Gd(this._originalModel.getValue(),((u=this._editor.getModel())==null?void 0:u.getValue())||""),a=this._changesHandle(i),l=((p=this._editor.getModel())==null?void 0:p.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=l}_eventListening(i){const a=new $d("diff.popup.widget",this._editor);this._editor.addOverlayWidget(a),this._onMouseDownListener=this._editor.onMouseDown(l=>this._onMouseDownHandle(l,i)),this._diffPopupWidget=a}_onMouseDownHandle(i,a){var x,g,v,w,D,O;const l=(x=i.target.element)==null?void 0:x.classList,u=l==null?void 0:l.contains(`line-${We.added}`),p=l==null?void 0:l.contains(`line-${We.modified}`),m=l==null?void 0:l.contains(`line-${We.removed}`);if(u||p||m){const R=((v=(g=i==null?void 0:i.target)==null?void 0:g.position)==null?void 0:v.lineNumber)||0,F=((w=this._editor)==null?void 0:w.getTopForLineNumber(R+1))||0,B=((D=this._editor)==null?void 0:D.getScrollTop())||0,E=u?We.added:p?We.modified:We.removed;(O=this._diffPopupWidget)==null||O.show(F-B,F,E),this._diffEditor||(this._diffEditor=this._createDiffEditor(a)),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(R+1)}}_createDiffEditor(i="vs-dark"){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{theme:i,renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class Jd{constructor(i,a){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}),this._editor=i,this._monaco=a,this._init()}setModelMarkers(i){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",i)}addDiffDecorations(){this._decorations||(this._decorations=new Qd(this._editor,this._monaco))}removeDiffDecorations(){var i;(i=this._decorations)==null||i.dispose(),this._decorations=void 0}setValue(i){this._editor.setValue(i)}saveScripts(){var a;const i=this._editor.getValue();localStorage.setItem(Xn,i||""),(a=this._decorations)==null||a.update(i),console.log("保存成功")}getEditorLayout(){var l;const i=this._editor.getContentHeight(),a=(l=this._editor.getModel())==null?void 0:l.getLineCount();return{contentHeight:i,lineCount:a}}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._addListening(),this._setCursorPosition()}_setCursorPosition(){const i=localStorage.getItem(ei);this._editor.setPosition(i?JSON.parse(i):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Pt}),this._monaco.languages.registerCompletionItemProvider(Pt,{triggerCharacters:["."],provideCompletionItems:Ed}),this._monaco.languages.registerHoverProvider(Pt,{provideHover:Ld}),this._monaco.languages.registerSignatureHelpProvider(Pt,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:Md}),this._monaco.languages.registerColorProvider(Pt,{provideColorPresentations:Bd,provideDocumentColors:Fd}),this._monaco.editor.registerEditorOpener({openCodeEditor:jd}),this._monaco.languages.registerDefinitionProvider(Pt,{provideDefinition:Ud})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",Sd),this._monaco.editor.defineTheme("vs",Cd),this._monaco.languages.setMonarchTokensProvider(Pt,Ad),this._monaco.languages.setLanguageConfiguration(Pt,qd)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(i,a)=>{var l;(l=this._editor.getAction(a))==null||l.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:2,run:()=>{this.saveScripts()}})}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(i){this._changPositionListener&&this._changPositionListener.dispose();const a=localStorage.getItem(ei);i&&i(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(l=>{localStorage.setItem(ei,JSON.stringify(l.position)),i&&i(l.position)})}_addListening(){const i=this._editor;document.addEventListener("keydown",function(a){(a.ctrlKey||a.metaKey)&&a.key==="f"&&(a.preventDefault(),i.trigger("keyboard","actions.find",null))},!1)}}/**
133
+ ${this._formatter.code("Space")}`;return l.push(this._formatter.lineBreak),l.push(this._formatter.italic(`${u} ${Ie.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...l)}}}const Pd=new Od(window.navigator.userAgent);class Ed{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=Wn}getDocumentColors(i){const a=[];return i.forEach(l=>{const{range:u}=l;let{matches:p}=l;p=p||[];const m=p[0]||"";let x=null;this._isHexToken(m)?x=this._hexToColor(m):this._isRgbColor(m)?x=this._rgbToColor(m):this._colors[m]?x=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&p[1]&&p[6]&&(x=this._extractNewExpression(p[1],Number(p[6]))),x&&a.push({color:x,range:u})}),a}get _defultColorsRegStr(){return Object.keys(Wn).reduce((i,a)=>`${i}|${a}`,"")}get colorMatchesRegStr(){const i=`#[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*(${i})\\s*,\\s*(\\d+)\\s*\\)|${i}`}getDocumentColorPresentations(i,{color:a,range:l}){const u=i.getValueInRange(l);if(this._isHexToken(u)||this._colors[u])return[{label:this._colorRgbRepresentation(a)},{label:this._colorHexRepresentation(a)}];if(this._isColorExpression(u)||this._isRgbColor(u)){const p=this._isColorExpression(u)?this._colorNewRepresentation(a):this._colorRgbRepresentation(a);if(!p)return[];const m=this._colorHexRepresentation(a);return[{label:p,textEdit:{text:p,range:l}},{label:m,textEdit:{text:m,range:l}}]}return null}_hexFromNumber(i){const a=this._denormalize(i).toString(16);return a.length===1?`0${a}`:a}_normalize(i){return i/255}_denormalize(i){return Math.round(255*i)}_normalizeAlpha(i){return(100-i)/100}_denormalizeAlpha(i){return 100-Math.round(100*i)}_extractNewExpression(i,a){let l=null;return this._isHexToken(i)?l=this._hexToColor(i):this._isRgbColor(i)?l=this._rgbToColor(i):this._colors[i]&&(l=this._hexToColor(this._colors[i])),l&&!Number.isNaN(a)?{...l,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(i){const a=this._hexFromNumber(i.red),l=this._hexFromNumber(i.green),u=this._hexFromNumber(i.blue),p=this._hexFromNumber(i.alpha);return`#${a}${l}${u}${i.alpha===1?"":p}`}_colorRgbRepresentation(i){const a=this._denormalize(i.red),l=this._denormalize(i.green),u=this._denormalize(i.blue),p=this._denormalizeAlpha(i.alpha),m=[a,l,u];return p>0&&m.push(p),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(i){const a={...i,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(i.alpha)})`}_hexToColor(i){const a=(i=this._isHexToken(i)?i.slice(1):i).length===3||i.length===4,l=a?`${i.slice(0,1)}${i.slice(0,1)}`:i.slice(0,2),u=a?`${i.slice(1,2)}${i.slice(1,2)}`:i.slice(2,4),p=a?`${i.slice(2,3)}${i.slice(2,3)}`:i.slice(4,6),m=(a?`${i.slice(3,4)}${i.slice(3,4)}`:i.slice(6,8))||"ff";return{red:this._normalize(parseInt(l,16)),green:this._normalize(parseInt(u,16)),blue:this._normalize(parseInt(p,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(i){const a=i.replace(/[^\d,]/g,"").split(","),l=this._normalize(Number(a[0])),u=this._normalize(Number(a[1])),p=this._normalize(Number(a[2])),m=this._normalizeAlpha(Number(a[3]))||1;return isNaN(l)||isNaN(u)||isNaN(p)?null:{red:l,green:u,blue:p,alpha:m}}_isHexToken(i){return i.charAt(0)==="#"}_isRgbColor(i){return i.startsWith("color.rgb")}_isColorExpression(i){return i.startsWith("color.new")}}const Zs=new Ed;function Rd(s,i){var D;const a={startLineNumber:i.lineNumber,startColumn:1,endLineNumber:i.lineNumber,endColumn:i.column},l=s.getValueInRange(a),u=l.match(/([\w.]+)$/)||[],p=(D=u[0])==null?void 0:D.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=p?p[1]?p[1]:p[2]?p[2]:void 0:void 0,x=s.getWordUntilPosition(i),g=la.parseCurrentInputFunc(l),v={startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:x.startColumn,endColumn:x.endColumn};let w=Hn(zr.getSuggestions(m)||[],v);if(u[0]==="."&&(w=[]),g&&!m&&!/=\s*\w+$/.test(l)){const O=Hn(zr.getArgSuggestions(g.funcName)||[],v);w=w.concat(O)}return{suggestions:w||[]}}function Ld(s,i){const a=s.getLineContent(i.lineNumber),l=la.parseLineContentFuncVar(a,i.column,i.lineNumber);if(l&&l.docValue.length){const u=wd(l.docValue,l.index,l.isBuildIn);if(u)return{contents:[{value:u}]}}return{contents:[]}}function Md(s,i){var D,O;const a={startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:1,endColumn:i.column},l=s.getValueInRange(a),u=s.findMatches(String(zd),a,!0,!1,null,!0),p=s.findMatches(String(Nd),a,!0,!1,null,!0),m=(D=u.pop())==null?void 0:D.matches,x=(O=p.pop())==null?void 0:O.matches;let g=!1;u.length%2===0?m&&m[0]==='"'&&(g=!0):m&&!m[0]&&(g=!0);let v=!1;p.length%2===0?x&&x[0]==="'"&&(v=!0):x&&!x[0]&&(v=!0);const w=la.parseCurrentInputFuncAndArg(l,v,g);if(w){const{funcName:P,args:F}=w,B=Pd.getSignatureHelpValues(P,F);if(B)return{value:B,dispose:()=>{console.log("dispose")}}}return null}function Fd(s){let i=s.findMatches(Zs.colorMatchesRegStr,!0,!0,!1,null,!0);return i=i.filter(l=>{const u=s.getValueInRange({...l.range,startColumn:0});return u.indexOf("//")===-1||u.indexOf("//")>l.range.endColumn}),Zs.getDocumentColors(i)}function Bd(s,i){return Zs.getDocumentColorPresentations(s,i)||[]}function jd(s,i,a){const l=s.getModel(),u=l==null?void 0:l.getLineContent(a.startLineNumber),p=la.parseLineContentFuncVar(u||"",a.startColumn+1,a.startLineNumber);if(!p||p.isBuildIn||!p.docValue||!p.docValue[0].pos)return!0;const{lineNumber:m,column:x}=p.docValue[0].pos,g={startLineNumber:m,endLineNumber:m,startColumn:x,endColumn:x};return s.revealRangeInCenterIfOutsideViewport(g),s.setSelection(g),!0}function Ud(s,i){return{uri:s.uri,range:{startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:i.column-1,endColumn:i.column-1}}}function Hn(s,i){return s.map(a=>(a.range=i,a))}const $n="tcc_last_edited_script",Xn="tcc_original_script",ei="tcc_cursor_position";var ca={},ua=nu;if(process.env.NODE_ENV==="production")ca.createRoot=ua.createRoot,ca.hydrateRoot=ua.hydrateRoot;else{var $a=ua.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ca.createRoot=function(s,i){$a.usingClientEntryPoint=!0;try{return ua.createRoot(s,i)}finally{$a.usingClientEntryPoint=!1}},ca.hydrateRoot=function(s,i,a){$a.usingClientEntryPoint=!0;try{return ua.hydrateRoot(s,i,a)}finally{$a.usingClientEntryPoint=!1}}}var We;(function(s){s.added="added",s.removed="removed",s.modified="modified"})(We||(We={}));const Wd=(s,i)=>{const{close:a,retracement:l}=s,[u,p]=M.useState("modified");return M.useImperativeHandle(i,()=>({updateType(m){p(m)}})),ft.jsxs("div",{className:`content-popup content-${u}-popup`,children:[ft.jsx("div",{className:`triangle-popup triangle-${u}-popup`}),ft.jsxs("div",{className:`header-popup header-${u}-popup`,children:[ft.jsx("div",{className:"title-popup",children:"Local working changes"}),ft.jsx("div",{className:"actions-popup",children:ft.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:ft.jsx("span",{className:"icon-popup",role:"img",children:ft.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:ft.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),ft.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},Hd=M.forwardRef(Wd);class $d{constructor(i,a,l=!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=i,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=l?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",a==null||a.onDidScrollChange(this.scrollChangeHandler.bind(this)),ca.createRoot(this._domNode).render(ft.jsx(Hd,{ref:u=>this._content=u,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(i,a,l){var u;this._top=a,(u=this._content)==null||u.updateType(l),this._domNode.style.top=`${i}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(i){const a=i.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function sr(){}sr.prototype={diff:function(i,a){var l,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=u.callback;typeof u=="function"&&(p=u,u={}),this.options=u;var m=this;function x(le){return p?(setTimeout(function(){p(void 0,le)},0),!0):le}i=this.castInput(i),a=this.castInput(a),i=this.removeEmpty(this.tokenize(i)),a=this.removeEmpty(this.tokenize(a));var g=a.length,v=i.length,w=1,D=g+v;u.maxEditLength&&(D=Math.min(D,u.maxEditLength));var O=(l=u.timeout)!==null&&l!==void 0?l:1/0,P=Date.now()+O,F=[{oldPos:-1,lastComponent:void 0}],B=this.extractCommon(F[0],a,i,0);if(F[0].oldPos+1>=v&&B+1>=g)return x([{value:this.join(a),count:a.length}]);var R=-1/0,K=1/0;function $(){for(var le=Math.max(R,-w);le<=Math.min(K,w);le+=2){var J=void 0,ue=F[le-1],ee=F[le+1];ue&&(F[le-1]=void 0);var ze=!1;if(ee){var ge=ee.oldPos-le;ze=ee&&0<=ge&&ge<g}var ae=ue&&ue.oldPos+1<v;if(!ze&&!ae){F[le]=void 0;continue}if(!ae||ze&&ue.oldPos+1<ee.oldPos?J=m.addToPath(ee,!0,void 0,0):J=m.addToPath(ue,void 0,!0,1),B=m.extractCommon(J,a,i,le),J.oldPos+1>=v&&B+1>=g)return x(Xd(m,J.lastComponent,a,i,m.useLongestToken));F[le]=J,J.oldPos+1>=v&&(K=Math.min(K,le-1)),B+1>=g&&(R=Math.max(R,le+1))}w++}if(p)(function le(){setTimeout(function(){if(w>D||Date.now()>P)return p();$()||le()},0)})();else for(;w<=D&&Date.now()<=P;){var he=$();if(he)return he}},addToPath:function(i,a,l,u){var p=i.lastComponent;return p&&p.added===a&&p.removed===l?{oldPos:i.oldPos+u,lastComponent:{count:p.count+1,added:a,removed:l,previousComponent:p.previousComponent}}:{oldPos:i.oldPos+u,lastComponent:{count:1,added:a,removed:l,previousComponent:p}}},extractCommon:function(i,a,l,u){for(var p=a.length,m=l.length,x=i.oldPos,g=x-u,v=0;g+1<p&&x+1<m&&this.equals(a[g+1],l[x+1]);)g++,x++,v++;return v&&(i.lastComponent={count:v,previousComponent:i.lastComponent}),i.oldPos=x,g},equals:function(i,a){return this.options.comparator?this.options.comparator(i,a):i===a||this.options.ignoreCase&&i.toLowerCase()===a.toLowerCase()},removeEmpty:function(i){for(var a=[],l=0;l<i.length;l++)i[l]&&a.push(i[l]);return a},castInput:function(i){return i},tokenize:function(i){return i.split("")},join:function(i){return i.join("")}};function Xd(s,i,a,l,u){for(var p=[],m;i;)p.push(i),m=i.previousComponent,delete i.previousComponent,i=m;p.reverse();for(var x=0,g=p.length,v=0,w=0;x<g;x++){var D=p[x];if(D.removed){if(D.value=s.join(l.slice(w,w+D.count)),w+=D.count,x&&p[x-1].added){var P=p[x-1];p[x-1]=p[x],p[x]=P}}else{if(!D.added&&u){var O=a.slice(v,v+D.count);O=O.map(function(B,R){var K=l[w+R];return K.length>B.length?K:B}),D.value=s.join(O)}else D.value=s.join(a.slice(v,v+D.count));v+=D.count,D.added||(w+=D.count)}}var F=p[g-1];return g>1&&typeof F.value=="string"&&(F.added||F.removed)&&s.equals("",F.value)&&(p[g-2].value+=F.value,p.pop()),p}var Gn=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Yn=/\S/,Vn=new sr;Vn.equals=function(s,i){return this.options.ignoreCase&&(s=s.toLowerCase(),i=i.toLowerCase()),s===i||this.options.ignoreWhitespace&&!Yn.test(s)&&!Yn.test(i)},Vn.tokenize=function(s){for(var i=s.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<i.length-1;a++)!i[a+1]&&i[a+2]&&Gn.test(i[a])&&Gn.test(i[a+2])&&(i[a]+=i[a+2],i.splice(a+1,2),a--);return i};var ti=new sr;ti.tokenize=function(s){this.options.stripTrailingCr&&(s=s.replace(/\r\n/g,`
134
+ `));var i=[],a=s.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var l=0;l<a.length;l++){var u=a[l];l%2&&!this.options.newlineIsToken?i[i.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),i.push(u))}return i};function Gd(s,i,a){return ti.diff(s,i,a)}var Yd=new sr;Yd.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var Vd=new sr;Vd.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Xa(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xa=function(i){return typeof i}:Xa=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Xa(s)}var Kd=Object.prototype.toString,da=new sr;da.useLongestToken=!0,da.tokenize=ti.tokenize,da.castInput=function(s){var i=this.options,a=i.undefinedReplacement,l=i.stringifyReplacer,u=l===void 0?function(p,m){return typeof m>"u"?a:m}:l;return typeof s=="string"?s:JSON.stringify(ri(s,null,null,u),u," ")},da.equals=function(s,i){return sr.prototype.equals.call(da,s.replace(/,([\r\n])/g,"$1"),i.replace(/,([\r\n])/g,"$1"))};function ri(s,i,a,l,u){i=i||[],a=a||[],l&&(s=l(u,s));var p;for(p=0;p<i.length;p+=1)if(i[p]===s)return a[p];var m;if(Kd.call(s)==="[object Array]"){for(i.push(s),m=new Array(s.length),a.push(m),p=0;p<s.length;p+=1)m[p]=ri(s[p],i,a,l,u);return i.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Xa(s)==="object"&&s!==null){i.push(s),m={},a.push(m);var x=[],g;for(g in s)s.hasOwnProperty(g)&&x.push(g);for(x.sort(),p=0;p<x.length;p+=1)g=x[p],m[g]=ri(s[g],i,a,l,g);i.pop(),a.pop()}else m=s;return m}var ai=new sr;ai.tokenize=function(s){return s.slice()},ai.join=ai.removeEmpty=function(s){return s};class Qd{constructor(i,a,l){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=i,this._monaco=a,this._originalModel=this._monaco.editor.createModel(localStorage.getItem(Xn)||"",Et),this._oldDecorations=[],this._init(),this._eventListening(l)}_init(){var i;this._changeEvent(),this._didChangeListener=(i=this._editor.getModel())==null?void 0:i.onDidChangeContent(()=>this._changeEvent())}update(i){var a;this._originalModel=this._monaco.editor.createModel(i,Et),(a=this._editor.getModel())==null||a.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var i,a,l,u;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(i=this._didChangeListener)==null||i.dispose(),(a=this._onMouseDownListener)==null||a.dispose(),(l=this._editor.getModel())==null||l.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(u=this._diffEditor)==null||u.dispose(),this._diffEditor=void 0}_changesHandle(i){let a=0,l;const u=[];let p=0;for(const m of i){const{added:x,removed:g,count:v=1,value:w}=m;x?l&&l.removed?(a=this._changeHandle(u,a,p,v,We.modified),p=0,l=void 0):(l&&l.added&&(a=this._changeHandle(u,a,p,l.count||1,We.added),p=0),l=m):g?l&&l.added?(a=this._changeHandle(u,a,p,l.count||1,We.modified),p=0,l=void 0):(l&&l.removed&&this._addDecorationList(u,a,We.removed),l=m):/^\n+$/.test(w)?l&&(l.added||l.removed)?p=v:a+=v:(l&&l.added?(a=this._changeHandle(u,a,p,l.count||1,We.added),p=0,l=void 0):l&&l.removed&&(this._addDecorationList(u,a,We.removed),l=void 0),a+=v)}return l&&l.added?a=this._changeHandle(u,a,p,l.count||1,We.added):l&&l.removed&&this._addDecorationList(u,a,We.removed),u}_changeHandle(i,a,l,u,p){for(let m=1;m<=u;m++)this._addDecorationList(i,a+m,p);return a+=u+l,a}_addDecorationList(i,a,l){i.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${l} line-decoration_${l}`}})}_changeEvent(){var u,p;const i=Gd(this._originalModel.getValue(),((u=this._editor.getModel())==null?void 0:u.getValue())||""),a=this._changesHandle(i),l=((p=this._editor.getModel())==null?void 0:p.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=l}_eventListening(i){const a=new $d("diff.popup.widget",this._editor);this._editor.addOverlayWidget(a),this._onMouseDownListener=this._editor.onMouseDown(l=>this._onMouseDownHandle(l,i)),this._diffPopupWidget=a}_onMouseDownHandle(i,a){var x,g,v,w,D,O;const l=(x=i.target.element)==null?void 0:x.classList,u=l==null?void 0:l.contains(`line-${We.added}`),p=l==null?void 0:l.contains(`line-${We.modified}`),m=l==null?void 0:l.contains(`line-${We.removed}`);if(u||p||m){const P=((v=(g=i==null?void 0:i.target)==null?void 0:g.position)==null?void 0:v.lineNumber)||0,F=((w=this._editor)==null?void 0:w.getTopForLineNumber(P+1))||0,B=((D=this._editor)==null?void 0:D.getScrollTop())||0,R=u?We.added:p?We.modified:We.removed;(O=this._diffPopupWidget)==null||O.show(F-B,F,R),this._diffEditor||(this._diffEditor=this._createDiffEditor(a)),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(P+1)}}_createDiffEditor(i="vs-dark"){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{theme:i,renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class Jd{constructor(i,a){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}),this._editor=i,this._monaco=a,this._init()}setModelMarkers(i){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",i)}addDiffDecorations(){this._decorations||(this._decorations=new Qd(this._editor,this._monaco))}removeDiffDecorations(){var i;(i=this._decorations)==null||i.dispose(),this._decorations=void 0}setValue(i){this._editor.setValue(i)}saveScripts(){var a;const i=this._editor.getValue();localStorage.setItem(Xn,i||""),(a=this._decorations)==null||a.update(i),console.log("保存成功")}getEditorLayout(){var l;const i=this._editor.getContentHeight(),a=(l=this._editor.getModel())==null?void 0:l.getLineCount();return{contentHeight:i,lineCount:a}}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._addListening(),this._setCursorPosition()}_setCursorPosition(){const i=localStorage.getItem(ei);this._editor.setPosition(i?JSON.parse(i):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Et}),this._monaco.languages.registerCompletionItemProvider(Et,{triggerCharacters:["."],provideCompletionItems:Rd}),this._monaco.languages.registerHoverProvider(Et,{provideHover:Ld}),this._monaco.languages.registerSignatureHelpProvider(Et,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:Md}),this._monaco.languages.registerColorProvider(Et,{provideColorPresentations:Bd,provideDocumentColors:Fd}),this._monaco.editor.registerEditorOpener({openCodeEditor:jd}),this._monaco.languages.registerDefinitionProvider(Et,{provideDefinition:Ud})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",Sd),this._monaco.editor.defineTheme("vs",Cd),this._monaco.languages.setMonarchTokensProvider(Et,Ad),this._monaco.languages.setLanguageConfiguration(Et,qd)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(i,a)=>{var l;(l=this._editor.getAction(a))==null||l.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:2,run:()=>{this.saveScripts()}})}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(i){this._changPositionListener&&this._changPositionListener.dispose();const a=localStorage.getItem(ei);i&&i(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(l=>{localStorage.setItem(ei,JSON.stringify(l.position)),i&&i(l.position)})}_addListening(){const i=this._editor;document.addEventListener("keydown",function(a){(a.ctrlKey||a.metaKey)&&a.key==="f"&&(a.preventDefault(),i.trigger("keyboard","actions.find",null))},!1)}}/**
135
135
  * @license
136
136
  * Copyright 2019 Google LLC
137
137
  * SPDX-License-Identifier: Apache-2.0
138
- */const Kn=Symbol("Comlink.proxy"),Zd=Symbol("Comlink.endpoint"),ep=Symbol("Comlink.releaseProxy"),si=Symbol("Comlink.finalizer"),Ga=Symbol("Comlink.thrown"),Qn=s=>typeof s=="object"&&s!==null||typeof s=="function",tp={canHandle:s=>Qn(s)&&s[Kn],serialize(s){const{port1:i,port2:a}=new MessageChannel;return Zn(s,i),[a,[a]]},deserialize(s){return s.start(),ii(s)}},rp={canHandle:s=>Qn(s)&&Ga in s,serialize({value:s}){let i;return s instanceof Error?i={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:i={isError:!1,value:s},[i,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},Jn=new Map([["proxy",tp],["throw",rp]]);function ap(s,i){for(const a of s)if(i===a||a==="*"||a instanceof RegExp&&a.test(i))return!0;return!1}function Zn(s,i=globalThis,a=["*"]){i.addEventListener("message",function l(u){if(!u||!u.data)return;if(!ap(a,u.origin)){console.warn(`Invalid origin '${u.origin}' for comlink proxy`);return}const{id:p,type:m,path:x}=Object.assign({path:[]},u.data),g=(u.data.argumentList||[]).map(_r);let v;try{const w=x.slice(0,-1).reduce((O,R)=>O[R],s),D=x.reduce((O,R)=>O[R],s);switch(m){case"GET":v=D;break;case"SET":w[x.slice(-1)[0]]=_r(u.data.value),v=!0;break;case"APPLY":v=D.apply(w,g);break;case"CONSTRUCT":{const O=new D(...g);v=cp(O)}break;case"ENDPOINT":{const{port1:O,port2:R}=new MessageChannel;Zn(s,R),v=lp(O,[O])}break;case"RELEASE":v=void 0;break;default:return}}catch(w){v={value:w,[Ga]:0}}Promise.resolve(v).catch(w=>({value:w,[Ga]:0})).then(w=>{const[D,O]=Qa(w);i.postMessage(Object.assign(Object.assign({},D),{id:p}),O),m==="RELEASE"&&(i.removeEventListener("message",l),eo(i),si in s&&typeof s[si]=="function"&&s[si]())}).catch(w=>{const[D,O]=Qa({value:new TypeError("Unserializable return value"),[Ga]:0});i.postMessage(Object.assign(Object.assign({},D),{id:p}),O)})}),i.start&&i.start()}function sp(s){return s.constructor.name==="MessagePort"}function eo(s){sp(s)&&s.close()}function ii(s,i){return ni(s,[],i)}function Ya(s){if(s)throw new Error("Proxy has been released and is not useable")}function to(s){return Nr(s,{type:"RELEASE"}).then(()=>{eo(s)})}const Va=new WeakMap,Ka="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const i=(Va.get(s)||0)-1;Va.set(s,i),i===0&&to(s)});function ip(s,i){const a=(Va.get(i)||0)+1;Va.set(i,a),Ka&&Ka.register(s,i,s)}function np(s){Ka&&Ka.unregister(s)}function ni(s,i=[],a=function(){}){let l=!1;const u=new Proxy(a,{get(p,m){if(Ya(l),m===ep)return()=>{np(u),to(s),l=!0};if(m==="then"){if(i.length===0)return{then:()=>u};const x=Nr(s,{type:"GET",path:i.map(g=>g.toString())}).then(_r);return x.then.bind(x)}return ni(s,[...i,m])},set(p,m,x){Ya(l);const[g,v]=Qa(x);return Nr(s,{type:"SET",path:[...i,m].map(w=>w.toString()),value:g},v).then(_r)},apply(p,m,x){Ya(l);const g=i[i.length-1];if(g===Zd)return Nr(s,{type:"ENDPOINT"}).then(_r);if(g==="bind")return ni(s,i.slice(0,-1));const[v,w]=ro(x);return Nr(s,{type:"APPLY",path:i.map(D=>D.toString()),argumentList:v},w).then(_r)},construct(p,m){Ya(l);const[x,g]=ro(m);return Nr(s,{type:"CONSTRUCT",path:i.map(v=>v.toString()),argumentList:x},g).then(_r)}});return ip(u,s),u}function op(s){return Array.prototype.concat.apply([],s)}function ro(s){const i=s.map(Qa);return[i.map(a=>a[0]),op(i.map(a=>a[1]))]}const ao=new WeakMap;function lp(s,i){return ao.set(s,i),s}function cp(s){return Object.assign(s,{[Kn]:!0})}function Qa(s){for(const[i,a]of Jn)if(a.canHandle(s)){const[l,u]=a.serialize(s);return[{type:"HANDLER",name:i,value:l},u]}return[{type:"RAW",value:s},ao.get(s)||[]]}function _r(s){switch(s.type){case"HANDLER":return Jn.get(s.name).deserialize(s.value);case"RAW":return s.value}}function Nr(s,i,a){return new Promise(l=>{const u=up();s.addEventListener("message",function p(m){!m.data||!m.data.id||m.data.id!==u||(s.removeEventListener("message",p),l(m.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:u},i),a)})}function up(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const so=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-Bx4RsHhS.js").href:new URL("assets/scriptsRunWorker-Bx4RsHhS.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:Fa&&Fa.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});so.onerror=s=>{console.error(s)};const dp=ii(so),pp=ii(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-cXJaK8VI.js").href:new URL("assets/parserTccWorker-cXJaK8VI.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:Fa&&Fa.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function io(s,i=!1){const{functions:a,types:l,constants:u,variables:p,methods:m}=kt;return await pp(s,i,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(l),constants:Object.fromEntries(u),variables:Object.fromEntries(p)})}async function no(s,i,a=!0){return await dp(s,i,a)}function mp(s){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:s==null?void 0:s.name})}var qt;(function(s){s.BOOL="bool",s.INT="int",s.FLOAT="float",s.ARRAY="array",s.BOX="box",s.CHART_POINT="chart.point",s.COLOR="color",s.CONST="const",s.LABEL="label",s.LINE="line",s.LINEFILL="linefill",s.MAP="map",s.MATRIX="matrix",s.POLYLINE="polyline",s.SERIES="series",s.SIMPLE="simple",s.STRING="string",s.TABLE="table",s.UNDETERMINED="undetermined type",s.INPUT="input",s.NA="na",s.VOID="void"})(qt||(qt={}));var oo;(function(s){s.FlowStmt="FlowStmt",s.DeclareAssign="DeclareAssign",s.VarBlockStmt="VarBlockStmt",s.VarSingle="VarSingle",s.VarMultiple="VarMultiple",s.ParenthesizedExpression="ParenthesizedExpression",s.AdditiveExpression="AdditiveExpression",s.RelationalExpression="RelationalExpression",s.EqualityExpression="EqualityExpression",s.TernaryExpression="TernaryExpression",s.UnaryExpression="UnaryExpression",s.NotExpression="NotExpression",s.MemberIndexExpression="MemberIndexExpression",s.MethodExpression="MethodExpression",s.LogicalAndExpression="LogicalAndExpression",s.LogicalOrExpression="LogicalOrExpression",s.MultiplicativeExpression="MultiplicativeExpression",s.Brackethesized="Brackethesized",s.IfStatement="IfStatement",s.ForToStatement="ForToStatement",s.ForInStatement="ForInStatement",s.SwitchStatement="SwitchStatement",s.CaseClause="CaseClause",s.DefaultCaluse="DefaultCaluse",s.WhileStatement="WhileStatement",s.ImportElement="ImportElement",s.Literal="Literal",s.ArrowFunction="ArrowFunction",s.ArrowMethod="ArrowMethod",s.TypeStatement="TypeStatement",s.Name="Name",s.AgainAssign="AgainAssign"})(oo||(oo={}));var lo;(function(s){s.dividends="dividends",s.none="none",s.splits="splits"})(lo||(lo={}));var co;(function(s){s.freqAll="freq_all",s.freqOncePerBar="freq_once_per_bar",s.freqOncePerBarClose="freq_once_per_bar_close"})(co||(co={}));var uo;(function(s){s.gapsOff="gaps_off",s.gapsOn="gaps_on",s.lookaheadOff="lookahead_off",s.lookaheadOn="lookahead_on"})(uo||(uo={}));var po;(function(s){s.all="all",s.dataWindow="data_window",s.none="none",s.pane="pane",s.priceScale="price_scale",s.statusLine="status_line"})(po||(po={}));var mo;(function(s){s.both="both",s.left="left",s.none="none",s.right="right"})(mo||(mo={}));var fo;(function(s){s.inherit="inherit",s.mintick="mintick",s.percent="percent",s.price="price",s.volume="volume"})(fo||(fo={}));var yo;(function(s){s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"})(yo||(yo={}));var ho;(function(s){s.styleArrowdown="style_arrowdown",s.styleArrowup="style_arrowup",s.styleCircle="style_circle",s.styleCross="style_cross",s.styleDiamond="style_diamond",s.styleFlag="style_flag",s.styleLabelCenter="style_label_center",s.styleLabelDown="style_label_down",s.styleLabelLeft="style_label_left",s.styleLabelLowerLeft="style_label_lower_left",s.styleLabelLowerRight="style_label_lower_right",s.styleLabelRight="style_label_right",s.styleLabelUp="style_label_up",s.styleLabelUpperLeft="style_label_upper_left",s.styleLabelUpperRight="style_label_upper_right",s.styleNone="style_none",s.styleSquare="style_square",s.styleTextOutline="style_text_outline",s.styleTriangledown="style_triangledown",s.styleTriangleup="style_triangleup",s.styleXcross="style_xcross"})(ho||(ho={}));var _o;(function(s){s.styleArrowBoth="style_arrow_both",s.styleArrowLeft="style_arrow_left",s.styleArrowRight="style_arrow_right",s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"})(_o||(_o={}));var go;(function(s){s.abovebar="abovebar",s.absolute="absolute",s.belowbar="belowbar",s.bottom="bottom",s.top="top"})(go||(go={}));var bo;(function(s){s.ascending="ascending",s.descending="descending"})(bo||(bo={}));var xo;(function(s){s.styleArea="Area",s.styleAreabr="Area With Breaks",s.styleCircles="Circles",s.styleColumns="Columns",s.styleCross="Cross",s.styleHistogram="Histogram",s.styleLine="Line",s.styleLinebr="Line With Breaks",s.styleStepline="Step Line",s.styleSteplineDiamond="Step Line With Diamonds",s.styleSteplinebr="Step line with Breaks"})(xo||(xo={}));var vo;(function(s){s.bottomCenter="bottom_center",s.bottomLeft="bottom_left",s.bottomRight="bottom_right",s.middleCenter="middle_center",s.middleLeft="middle_left",s.middleRight="middle_right",s.topCenter="top_center",s.topLeft="top_left",s.topRight="top_right"})(vo||(vo={}));var wo;(function(s){s.left="left",s.none="none",s.right="right"})(wo||(wo={}));var To;(function(s){s.extended="extended",s.regular="regular"})(To||(To={}));var Io;(function(s){s.arrowdown="arrowdown",s.arrowup="arrowup",s.circle="circle",s.cross="cross",s.diamond="diamond",s.flag="flag",s.labeldown="labeldown",s.labelup="labelup",s.square="square",s.triangledown="triangledown",s.triangleup="triangleup",s.xcross="xcross"})(Io||(Io={}));var Do;(function(s){s.auto="auto",s.huge="huge",s.large="large",s.normal="normal",s.small="small",s.tiny="tiny"})(Do||(Do={}));var ko;(function(s){s.cash="cash",s.fixed="fixed",s.percentOfEquity="percent_of_equity"})(ko||(ko={}));var Ao;(function(s){s.cashPerContract="cash_per_contract",s.cashPerOrder="cash_per_order",s.percent="percent"})(Ao||(Ao={}));var qo;(function(s){s.all="all",s.long="long",s.short="short"})(qo||(qo={}));var Co;(function(s){s.cancel="cancel",s.none="none",s.reduce="reduce"})(Co||(Co={}));var So;(function(s){s.alignBottom="align_bottom",s.alignCenter="align_center",s.alignLeft="align_left",s.alignRight="align_right",s.alignTop="align_top",s.wrapAuto="wrap_auto",s.wrapNone="wrap_none"})(So||(So={}));var zo;(function(s){s.bar_index="bar_index",s.bar_time="bar_time"})(zo||(zo={}));var No;(function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"})(No||(No={}));var Oo;(function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"})(Oo||(Oo={}));var Ro;(function(s){s.traditional="Traditional",s.fibonacci="Fibonacci",s.woodie="Woodie",s.classic="Classic",s.dm="DM",s.camarilla="Camarilla"})(Ro||(Ro={})),qt.SERIES,qt.SIMPLE,qt.INPUT,qt.CONST,qt.INT,qt.FLOAT,qt.BOOL,qt.COLOR,qt.STRING;const fp={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1};self.MonacoEnvironment={getWorker(){return new mp({name:"Editor Worker"})}},Qs.config({monaco:lu});const yp=(s,i)=>{const{height:a,width:l,theme:u,options:p,hasDiff:m,readOnly:x,onChange:g,onDeclareConfigChange:v,onCursorPositionChange:w}=s,D=M.useRef(null);M.useImperativeHandle(i,()=>({saveScript(){var E;(E=D.current)==null||E.saveScripts()},setScript(E){var K;(K=D.current)==null||K.setValue(E)},gotoLine(){var E;(E=D.current)==null||E.gotoLine()},getEditorLayout(){var E;return(E=D.current)==null?void 0:E.getEditorLayout()}})),M.useEffect(()=>{var E,K;m?(K=D.current)==null||K.addDiffDecorations():(E=D.current)==null||E.removeDiffDecorations()},[m]);function O(E,K){var he;zr.initBuiltinsTrees(),D.current=new Jd(E,K),m&&((he=D.current)==null||he.addDiffDecorations());const $=E.getValue()+`
138
+ */const Kn=Symbol("Comlink.proxy"),Zd=Symbol("Comlink.endpoint"),ep=Symbol("Comlink.releaseProxy"),si=Symbol("Comlink.finalizer"),Ga=Symbol("Comlink.thrown"),Qn=s=>typeof s=="object"&&s!==null||typeof s=="function",tp={canHandle:s=>Qn(s)&&s[Kn],serialize(s){const{port1:i,port2:a}=new MessageChannel;return Zn(s,i),[a,[a]]},deserialize(s){return s.start(),ii(s)}},rp={canHandle:s=>Qn(s)&&Ga in s,serialize({value:s}){let i;return s instanceof Error?i={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:i={isError:!1,value:s},[i,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},Jn=new Map([["proxy",tp],["throw",rp]]);function ap(s,i){for(const a of s)if(i===a||a==="*"||a instanceof RegExp&&a.test(i))return!0;return!1}function Zn(s,i=globalThis,a=["*"]){i.addEventListener("message",function l(u){if(!u||!u.data)return;if(!ap(a,u.origin)){console.warn(`Invalid origin '${u.origin}' for comlink proxy`);return}const{id:p,type:m,path:x}=Object.assign({path:[]},u.data),g=(u.data.argumentList||[]).map(_r);let v;try{const w=x.slice(0,-1).reduce((O,P)=>O[P],s),D=x.reduce((O,P)=>O[P],s);switch(m){case"GET":v=D;break;case"SET":w[x.slice(-1)[0]]=_r(u.data.value),v=!0;break;case"APPLY":v=D.apply(w,g);break;case"CONSTRUCT":{const O=new D(...g);v=cp(O)}break;case"ENDPOINT":{const{port1:O,port2:P}=new MessageChannel;Zn(s,P),v=lp(O,[O])}break;case"RELEASE":v=void 0;break;default:return}}catch(w){v={value:w,[Ga]:0}}Promise.resolve(v).catch(w=>({value:w,[Ga]:0})).then(w=>{const[D,O]=Qa(w);i.postMessage(Object.assign(Object.assign({},D),{id:p}),O),m==="RELEASE"&&(i.removeEventListener("message",l),eo(i),si in s&&typeof s[si]=="function"&&s[si]())}).catch(w=>{const[D,O]=Qa({value:new TypeError("Unserializable return value"),[Ga]:0});i.postMessage(Object.assign(Object.assign({},D),{id:p}),O)})}),i.start&&i.start()}function sp(s){return s.constructor.name==="MessagePort"}function eo(s){sp(s)&&s.close()}function ii(s,i){return ni(s,[],i)}function Ya(s){if(s)throw new Error("Proxy has been released and is not useable")}function to(s){return Nr(s,{type:"RELEASE"}).then(()=>{eo(s)})}const Va=new WeakMap,Ka="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const i=(Va.get(s)||0)-1;Va.set(s,i),i===0&&to(s)});function ip(s,i){const a=(Va.get(i)||0)+1;Va.set(i,a),Ka&&Ka.register(s,i,s)}function np(s){Ka&&Ka.unregister(s)}function ni(s,i=[],a=function(){}){let l=!1;const u=new Proxy(a,{get(p,m){if(Ya(l),m===ep)return()=>{np(u),to(s),l=!0};if(m==="then"){if(i.length===0)return{then:()=>u};const x=Nr(s,{type:"GET",path:i.map(g=>g.toString())}).then(_r);return x.then.bind(x)}return ni(s,[...i,m])},set(p,m,x){Ya(l);const[g,v]=Qa(x);return Nr(s,{type:"SET",path:[...i,m].map(w=>w.toString()),value:g},v).then(_r)},apply(p,m,x){Ya(l);const g=i[i.length-1];if(g===Zd)return Nr(s,{type:"ENDPOINT"}).then(_r);if(g==="bind")return ni(s,i.slice(0,-1));const[v,w]=ro(x);return Nr(s,{type:"APPLY",path:i.map(D=>D.toString()),argumentList:v},w).then(_r)},construct(p,m){Ya(l);const[x,g]=ro(m);return Nr(s,{type:"CONSTRUCT",path:i.map(v=>v.toString()),argumentList:x},g).then(_r)}});return ip(u,s),u}function op(s){return Array.prototype.concat.apply([],s)}function ro(s){const i=s.map(Qa);return[i.map(a=>a[0]),op(i.map(a=>a[1]))]}const ao=new WeakMap;function lp(s,i){return ao.set(s,i),s}function cp(s){return Object.assign(s,{[Kn]:!0})}function Qa(s){for(const[i,a]of Jn)if(a.canHandle(s)){const[l,u]=a.serialize(s);return[{type:"HANDLER",name:i,value:l},u]}return[{type:"RAW",value:s},ao.get(s)||[]]}function _r(s){switch(s.type){case"HANDLER":return Jn.get(s.name).deserialize(s.value);case"RAW":return s.value}}function Nr(s,i,a){return new Promise(l=>{const u=up();s.addEventListener("message",function p(m){!m.data||!m.data.id||m.data.id!==u||(s.removeEventListener("message",p),l(m.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:u},i),a)})}function up(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const so=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-DEh9seQE.js").href:new URL("assets/scriptsRunWorker-DEh9seQE.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:Fa&&Fa.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});so.onerror=s=>{console.error(s)};const dp=ii(so),pp=ii(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-cXJaK8VI.js").href:new URL("assets/parserTccWorker-cXJaK8VI.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:Fa&&Fa.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function io(s,i=!1){const{functions:a,types:l,constants:u,variables:p,methods:m}=kt;return await pp(s,i,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(l),constants:Object.fromEntries(u),variables:Object.fromEntries(p)})}async function no(s,i,a=!0){return await dp(s,i,a)}function mp(s){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:s==null?void 0:s.name})}var qt;(function(s){s.BOOL="bool",s.INT="int",s.FLOAT="float",s.ARRAY="array",s.BOX="box",s.CHART_POINT="chart.point",s.COLOR="color",s.CONST="const",s.LABEL="label",s.LINE="line",s.LINEFILL="linefill",s.MAP="map",s.MATRIX="matrix",s.POLYLINE="polyline",s.SERIES="series",s.SIMPLE="simple",s.STRING="string",s.TABLE="table",s.UNDETERMINED="undetermined type",s.INPUT="input",s.NA="na",s.VOID="void"})(qt||(qt={}));var oo;(function(s){s.FlowStmt="FlowStmt",s.DeclareAssign="DeclareAssign",s.VarBlockStmt="VarBlockStmt",s.VarSingle="VarSingle",s.VarMultiple="VarMultiple",s.ParenthesizedExpression="ParenthesizedExpression",s.AdditiveExpression="AdditiveExpression",s.RelationalExpression="RelationalExpression",s.EqualityExpression="EqualityExpression",s.TernaryExpression="TernaryExpression",s.UnaryExpression="UnaryExpression",s.NotExpression="NotExpression",s.MemberIndexExpression="MemberIndexExpression",s.MethodExpression="MethodExpression",s.LogicalAndExpression="LogicalAndExpression",s.LogicalOrExpression="LogicalOrExpression",s.MultiplicativeExpression="MultiplicativeExpression",s.Brackethesized="Brackethesized",s.IfStatement="IfStatement",s.ForToStatement="ForToStatement",s.ForInStatement="ForInStatement",s.SwitchStatement="SwitchStatement",s.CaseClause="CaseClause",s.DefaultCaluse="DefaultCaluse",s.WhileStatement="WhileStatement",s.ImportElement="ImportElement",s.Literal="Literal",s.ArrowFunction="ArrowFunction",s.ArrowMethod="ArrowMethod",s.TypeStatement="TypeStatement",s.Name="Name",s.AgainAssign="AgainAssign"})(oo||(oo={}));var lo;(function(s){s.dividends="dividends",s.none="none",s.splits="splits"})(lo||(lo={}));var co;(function(s){s.freqAll="freq_all",s.freqOncePerBar="freq_once_per_bar",s.freqOncePerBarClose="freq_once_per_bar_close"})(co||(co={}));var uo;(function(s){s.gapsOff="gaps_off",s.gapsOn="gaps_on",s.lookaheadOff="lookahead_off",s.lookaheadOn="lookahead_on"})(uo||(uo={}));var po;(function(s){s.all="all",s.dataWindow="data_window",s.none="none",s.pane="pane",s.priceScale="price_scale",s.statusLine="status_line"})(po||(po={}));var mo;(function(s){s.both="both",s.left="left",s.none="none",s.right="right"})(mo||(mo={}));var fo;(function(s){s.inherit="inherit",s.mintick="mintick",s.percent="percent",s.price="price",s.volume="volume"})(fo||(fo={}));var yo;(function(s){s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"})(yo||(yo={}));var ho;(function(s){s.styleArrowdown="style_arrowdown",s.styleArrowup="style_arrowup",s.styleCircle="style_circle",s.styleCross="style_cross",s.styleDiamond="style_diamond",s.styleFlag="style_flag",s.styleLabelCenter="style_label_center",s.styleLabelDown="style_label_down",s.styleLabelLeft="style_label_left",s.styleLabelLowerLeft="style_label_lower_left",s.styleLabelLowerRight="style_label_lower_right",s.styleLabelRight="style_label_right",s.styleLabelUp="style_label_up",s.styleLabelUpperLeft="style_label_upper_left",s.styleLabelUpperRight="style_label_upper_right",s.styleNone="style_none",s.styleSquare="style_square",s.styleTextOutline="style_text_outline",s.styleTriangledown="style_triangledown",s.styleTriangleup="style_triangleup",s.styleXcross="style_xcross"})(ho||(ho={}));var _o;(function(s){s.styleArrowBoth="style_arrow_both",s.styleArrowLeft="style_arrow_left",s.styleArrowRight="style_arrow_right",s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"})(_o||(_o={}));var go;(function(s){s.abovebar="abovebar",s.absolute="absolute",s.belowbar="belowbar",s.bottom="bottom",s.top="top"})(go||(go={}));var bo;(function(s){s.ascending="ascending",s.descending="descending"})(bo||(bo={}));var xo;(function(s){s.styleArea="Area",s.styleAreabr="Area With Breaks",s.styleCircles="Circles",s.styleColumns="Columns",s.styleCross="Cross",s.styleHistogram="Histogram",s.styleLine="Line",s.styleLinebr="Line With Breaks",s.styleStepline="Step Line",s.styleSteplineDiamond="Step Line With Diamonds",s.styleSteplinebr="Step line with Breaks"})(xo||(xo={}));var vo;(function(s){s.bottomCenter="bottom_center",s.bottomLeft="bottom_left",s.bottomRight="bottom_right",s.middleCenter="middle_center",s.middleLeft="middle_left",s.middleRight="middle_right",s.topCenter="top_center",s.topLeft="top_left",s.topRight="top_right"})(vo||(vo={}));var wo;(function(s){s.left="left",s.none="none",s.right="right"})(wo||(wo={}));var To;(function(s){s.extended="extended",s.regular="regular"})(To||(To={}));var Io;(function(s){s.arrowdown="arrowdown",s.arrowup="arrowup",s.circle="circle",s.cross="cross",s.diamond="diamond",s.flag="flag",s.labeldown="labeldown",s.labelup="labelup",s.square="square",s.triangledown="triangledown",s.triangleup="triangleup",s.xcross="xcross"})(Io||(Io={}));var Do;(function(s){s.auto="auto",s.huge="huge",s.large="large",s.normal="normal",s.small="small",s.tiny="tiny"})(Do||(Do={}));var ko;(function(s){s.cash="cash",s.fixed="fixed",s.percentOfEquity="percent_of_equity"})(ko||(ko={}));var Ao;(function(s){s.cashPerContract="cash_per_contract",s.cashPerOrder="cash_per_order",s.percent="percent"})(Ao||(Ao={}));var qo;(function(s){s.all="all",s.long="long",s.short="short"})(qo||(qo={}));var Co;(function(s){s.cancel="cancel",s.none="none",s.reduce="reduce"})(Co||(Co={}));var So;(function(s){s.alignBottom="align_bottom",s.alignCenter="align_center",s.alignLeft="align_left",s.alignRight="align_right",s.alignTop="align_top",s.wrapAuto="wrap_auto",s.wrapNone="wrap_none"})(So||(So={}));var zo;(function(s){s.bar_index="bar_index",s.bar_time="bar_time"})(zo||(zo={}));var No;(function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"})(No||(No={}));var Oo;(function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"})(Oo||(Oo={}));var Po;(function(s){s.traditional="Traditional",s.fibonacci="Fibonacci",s.woodie="Woodie",s.classic="Classic",s.dm="DM",s.camarilla="Camarilla"})(Po||(Po={})),qt.SERIES,qt.SIMPLE,qt.INPUT,qt.CONST,qt.INT,qt.FLOAT,qt.BOOL,qt.COLOR,qt.STRING;const fp={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1};self.MonacoEnvironment={getWorker(){return new mp({name:"Editor Worker"})}},Qs.config({monaco:lu});const yp=(s,i)=>{const{height:a,width:l,theme:u,options:p,hasDiff:m,readOnly:x,onChange:g,onDeclareConfigChange:v,onCursorPositionChange:w}=s,D=M.useRef(null);M.useImperativeHandle(i,()=>({saveScript(){var R;(R=D.current)==null||R.saveScripts()},setScript(R){var K;(K=D.current)==null||K.setValue(R)},gotoLine(){var R;(R=D.current)==null||R.gotoLine()},getEditorLayout(){var R;return(R=D.current)==null?void 0:R.getEditorLayout()}})),M.useEffect(()=>{var R,K;m?(K=D.current)==null||K.addDiffDecorations():(R=D.current)==null||R.removeDiffDecorations()},[m]);function O(R,K){var he;zr.initBuiltinsTrees(),D.current=new Jd(R,K),m&&((he=D.current)==null||he.addDiffDecorations());const $=R.getValue()+`
139
139
 
140
- `;D.current.onChangeCursorPosition(w),g&&g($),!x&&R($)}const R=M.useCallback(async E=>{var j;const K=Date.now(),{errors:$,functions:he,methods:le,types:J,variables:ue,overloadsFuncs:ee,preParserCode:ze}=await io(E),ge=new Map(Object.entries(he)),ae=new Map(Object.entries(le)),it=new Map(Object.entries(J)),ht=new Map(Object.entries(ue));la.setUserDefined({functions:ge,methods:ae,types:it,variables:ht},ee),zr.setUserDefind(ge,it,ht,ae);const Pe=$.map(se=>({...se,severity:se.type||at.MarkerSeverity.Error}));if(x)return;try{console.log(ze);const se=await no(ze,{isPreParser:!0});v&&v(se)}catch(se){console.log(se,"==================error- Run TccScript Server"),$.push({message:`Runtime Error: ${se.message}`,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(j=D.current)==null||j.setModelMarkers(Pe);const Ee=Date.now();console.log((Ee-K)/1e3)},[v,x]),F=M.useMemo(()=>kd.debounce(R,1e3),[R]);function B(E){var K;if(x){R(E||"");return}(K=D.current)==null||K.setModelMarkers([]),localStorage.setItem($n,E||""),E!==void 0&&(E=E+`
140
+ `;D.current.onChangeCursorPosition(w),g&&g($),!x&&P($)}const P=M.useCallback(async R=>{var j;const K=Date.now(),{errors:$,functions:he,methods:le,types:J,variables:ue,overloadsFuncs:ee,preParserCode:ze}=await io(R),ge=new Map(Object.entries(he)),ae=new Map(Object.entries(le)),it=new Map(Object.entries(J)),ht=new Map(Object.entries(ue));la.setUserDefined({functions:ge,methods:ae,types:it,variables:ht},ee),zr.setUserDefind(ge,it,ht,ae);const Ee=$.map(se=>({...se,severity:se.type||at.MarkerSeverity.Error}));if(x)return;try{console.log(ze);const se=await no(ze,{isPreParser:!0});v&&v(se)}catch(se){console.log(se,"==================error- Run TccScript Server"),$.push({message:`Runtime Error: ${se.message}`,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(j=D.current)==null||j.setModelMarkers(Ee);const Re=Date.now();console.log((Re-K)/1e3)},[v,x]),F=M.useMemo(()=>kd.debounce(P,1e3),[P]);function B(R){var K;if(x){P(R||"");return}(K=D.current)==null||K.setModelMarkers([]),localStorage.setItem($n,R||""),R!==void 0&&(R=R+`
141
141
 
142
- `,g&&g(E),F(E))}return ft.jsx(yd,{height:a||"90vh",width:l||"100%",defaultLanguage:"tccScript",defaultValue:!x&&localStorage.getItem($n)||`indicator("我的脚本")
142
+ `,g&&g(R),F(R))}return ft.jsx(yd,{height:a||"90vh",width:l||"100%",defaultLanguage:"tccScript",defaultValue:!x&&localStorage.getItem($n)||`indicator("我的脚本")
143
143
  plot(close)
144
144
  `,theme:u||"vs-dark",options:{colorDecorators:!0,matchOnWordStartOnly:!0,suggest:{matchOnWordStartOnly:!0},fontSize:13,...x?fp:{},...p},onMount:O,onChange:B})},hp=M.forwardRef(yp);Ke.VMarkerSeverity=void 0,function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"}(Ke.VMarkerSeverity||(Ke.VMarkerSeverity={})),Ke.TradingVueEditor=hp,Ke.parseTcc=io,Ke.scriptsRun=no,Object.defineProperty(Ke,Symbol.toStringTag,{value:"Module"})});