@guihz/trading-vue-editor-tes 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 Dn;function Rc(){return Dn||(Dn=1,process.env.NODE_ENV!=="production"&&function(){var n=F,s=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"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),R=Symbol.iterator,L="@@iterator";function J(y){if(y===null||typeof y!="object")return null;var S=R&&y[R]||y[L];return typeof S=="function"?S:null}var de=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function ee(y){{for(var S=arguments.length,N=new Array(S>1?S-1:0),H=1;H<S;H++)N[H-1]=arguments[H];De("error",y,N)}}function De(y,S,N){{var H=de.ReactDebugCurrentFrame,ce=H.getStackAddendum();ce!==""&&(S+="%s",N=N.concat([ce]));var pe=N.map(function(se){return String(se)});pe.unshift("Warning: "+S),Function.prototype.apply.call(console[y],console,pe)}}var ne=!1,Y=!1,le=!1,K=!1,Ne=!1,_e;_e=Symbol.for("react.module.reference");function re(y){return!!(typeof y=="string"||typeof y=="function"||y===l||y===p||Ne||y===u||y===b||y===w||K||y===E||ne||Y||le||typeof y=="object"&&y!==null&&(y.$$typeof===z||y.$$typeof===k||y.$$typeof===m||y.$$typeof===v||y.$$typeof===g||y.$$typeof===_e||y.getModuleId!==void 0))}function yt(y,S,N){var H=y.displayName;if(H)return H;var ce=S.displayName||S.name||"";return ce!==""?N+"("+ce+")":N}function kt(y){return y.displayName||"Context"}function Pe(y){if(y==null)return null;if(typeof y.tag=="number"&&ee("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 b:return"Suspense";case w:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case v:var S=y;return kt(S)+".Consumer";case m:var N=y;return kt(N._context)+".Provider";case g:return yt(y,y.render,"ForwardRef");case k:var H=y.displayName||null;return H!==null?H:Pe(y.type)||"Memo";case z:{var ce=y,pe=ce._payload,se=ce._init;try{return Pe(se(pe))}catch{return null}}}return null}var we=Object.assign,W=0,ye,Re,Me,Ot,jt,V,ge;function Le(){}Le.__reactDisabledLog=!0;function Ut(){{if(W===0){ye=console.log,Re=console.info,Me=console.warn,Ot=console.error,jt=console.group,V=console.groupCollapsed,ge=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}W++}}function $e(){{if(W--,W===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:we({},y,{value:ye}),info:we({},y,{value:Re}),warn:we({},y,{value:Me}),error:we({},y,{value:Ot}),group:we({},y,{value:jt}),groupCollapsed:we({},y,{value:V}),groupEnd:we({},y,{value:ge})})}W<0&&ee("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var sr=de.ReactCurrentDispatcher,da;function Et(y,S,N){{if(da===void 0)try{throw Error()}catch(ce){var H=ce.stack.trim().match(/\n( *(at )?)/);da=H&&H[1]||""}return`
20
- `+da+y}}var Wt=!1,Nr;{var Pr=typeof WeakMap=="function"?WeakMap:Map;Nr=new Pr}function _r(y,S){if(!y||Wt)return"";{var N=Nr.get(y);if(N!==void 0)return N}var H;Wt=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var pe;pe=sr.current,sr.current=null,Ut();try{if(S){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(Ze){H=Ze}Reflect.construct(y,[],se)}else{try{se.call()}catch(Ze){H=Ze}y.call(se.prototype)}}else{try{throw Error()}catch(Ze){H=Ze}y()}}catch(Ze){if(Ze&&H&&typeof Ze.stack=="string"){for(var te=Ze.stack.split(`
19
+ */var Dn;function Rc(){return Dn||(Dn=1,process.env.NODE_ENV!=="production"&&function(){var n=F,s=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"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),R=Symbol.iterator,L="@@iterator";function Z(y){if(y===null||typeof y!="object")return null;var S=R&&y[R]||y[L];return typeof S=="function"?S:null}var de=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function ee(y){{for(var S=arguments.length,N=new Array(S>1?S-1:0),H=1;H<S;H++)N[H-1]=arguments[H];De("error",y,N)}}function De(y,S,N){{var H=de.ReactDebugCurrentFrame,ce=H.getStackAddendum();ce!==""&&(S+="%s",N=N.concat([ce]));var pe=N.map(function(se){return String(se)});pe.unshift("Warning: "+S),Function.prototype.apply.call(console[y],console,pe)}}var ne=!1,Y=!1,le=!1,K=!1,Ne=!1,_e;_e=Symbol.for("react.module.reference");function re(y){return!!(typeof y=="string"||typeof y=="function"||y===l||y===p||Ne||y===u||y===b||y===w||K||y===E||ne||Y||le||typeof y=="object"&&y!==null&&(y.$$typeof===z||y.$$typeof===k||y.$$typeof===m||y.$$typeof===v||y.$$typeof===g||y.$$typeof===_e||y.getModuleId!==void 0))}function yt(y,S,N){var H=y.displayName;if(H)return H;var ce=S.displayName||S.name||"";return ce!==""?N+"("+ce+")":N}function kt(y){return y.displayName||"Context"}function Pe(y){if(y==null)return null;if(typeof y.tag=="number"&&ee("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 b:return"Suspense";case w:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case v:var S=y;return kt(S)+".Consumer";case m:var N=y;return kt(N._context)+".Provider";case g:return yt(y,y.render,"ForwardRef");case k:var H=y.displayName||null;return H!==null?H:Pe(y.type)||"Memo";case z:{var ce=y,pe=ce._payload,se=ce._init;try{return Pe(se(pe))}catch{return null}}}return null}var we=Object.assign,W=0,ye,Re,Me,Ot,jt,V,ge;function Le(){}Le.__reactDisabledLog=!0;function Ut(){{if(W===0){ye=console.log,Re=console.info,Me=console.warn,Ot=console.error,jt=console.group,V=console.groupCollapsed,ge=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}W++}}function $e(){{if(W--,W===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:we({},y,{value:ye}),info:we({},y,{value:Re}),warn:we({},y,{value:Me}),error:we({},y,{value:Ot}),group:we({},y,{value:jt}),groupCollapsed:we({},y,{value:V}),groupEnd:we({},y,{value:ge})})}W<0&&ee("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var sr=de.ReactCurrentDispatcher,da;function Et(y,S,N){{if(da===void 0)try{throw Error()}catch(ce){var H=ce.stack.trim().match(/\n( *(at )?)/);da=H&&H[1]||""}return`
20
+ `+da+y}}var Wt=!1,Nr;{var Pr=typeof WeakMap=="function"?WeakMap:Map;Nr=new Pr}function _r(y,S){if(!y||Wt)return"";{var N=Nr.get(y);if(N!==void 0)return N}var H;Wt=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var pe;pe=sr.current,sr.current=null,Ut();try{if(S){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(Je){H=Je}Reflect.construct(y,[],se)}else{try{se.call()}catch(Je){H=Je}y.call(se.prototype)}}else{try{throw Error()}catch(Je){H=Je}y()}}catch(Je){if(Je&&H&&typeof Je.stack=="string"){for(var te=Je.stack.split(`
21
21
  `),Be=H.stack.split(`
22
22
  `),ke=te.length-1,qe=Be.length-1;ke>=1&&qe>=0&&te[ke]!==Be[qe];)qe--;for(;ke>=1&&qe>=0;ke--,qe--)if(te[ke]!==Be[qe]){if(ke!==1||qe!==1)do if(ke--,qe--,qe<0||te[ke]!==Be[qe]){var Qe=`
23
- `+te[ke].replace(" at new "," at ");return y.displayName&&Qe.includes("<anonymous>")&&(Qe=Qe.replace("<anonymous>",y.displayName)),typeof y=="function"&&Nr.set(y,Qe),Qe}while(ke>=1&&qe>=0);break}}}finally{Wt=!1,sr.current=pe,$e(),Error.prepareStackTrace=ce}var qt=y?y.displayName||y.name:"",ns=qt?Et(qt):"";return typeof y=="function"&&Nr.set(y,ns),ns}function Qa(y,S,N){return _r(y,!1)}function st(y){var S=y.prototype;return!!(S&&S.isReactComponent)}function Mt(y,S,N){if(y==null)return"";if(typeof y=="function")return _r(y,st(y));if(typeof y=="string")return Et(y);switch(y){case b:return Et("Suspense");case w:return Et("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case g:return Qa(y.render);case k:return Mt(y.type,S,N);case z:{var H=y,ce=H._payload,pe=H._init;try{return Mt(pe(ce),S,N)}catch{}}}return""}var Rr=Object.prototype.hasOwnProperty,ht={},pa=de.ReactDebugCurrentFrame;function Or(y){if(y){var S=y._owner,N=Mt(y.type,y._source,S?S.type:null);pa.setExtraStackFrame(N)}else pa.setExtraStackFrame(null)}function gr(y,S,N,H,ce){{var pe=Function.call.bind(Rr);for(var se in y)if(pe(y,se)){var te=void 0;try{if(typeof y[se]!="function"){var Be=Error((H||"React class")+": "+N+" type `"+se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[se]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Be.name="Invariant Violation",Be}te=y[se](S,se,H,N,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ke){te=ke}te&&!(te instanceof Error)&&(Or(ce),ee("%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).",H||"React class",N,se,typeof te),Or(null)),te instanceof Error&&!(te.message in ht)&&(ht[te.message]=!0,Or(ce),ee("Failed %s type: %s",N,te.message),Or(null))}}}var it=Array.isArray;function Ht(y){return it(y)}function Er(y){{var S=typeof Symbol=="function"&&Symbol.toStringTag,N=S&&y[Symbol.toStringTag]||y.constructor.name||"Object";return N}}function ii(y){try{return ir(y),!1}catch{return!0}}function ir(y){return""+y}function Za(y){if(ii(y))return ee("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Er(y)),ir(y)}var At=de.ReactCurrentOwner,nr={key:!0,ref:!0,__self:!0,__source:!0},Mr,Lr,br;br={};function ma(y){if(Rr.call(y,"ref")){var S=Object.getOwnPropertyDescriptor(y,"ref").get;if(S&&S.isReactWarning)return!1}return y.ref!==void 0}function fa(y){if(Rr.call(y,"key")){var S=Object.getOwnPropertyDescriptor(y,"key").get;if(S&&S.isReactWarning)return!1}return y.key!==void 0}function ya(y,S){if(typeof y.ref=="string"&&At.current&&S&&At.current.stateNode!==S){var N=Pe(At.current.type);br[N]||(ee('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(At.current.type),y.ref),br[N]=!0)}}function ha(y,S){{var N=function(){Mr||(Mr=!0,ee("%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))};N.isReactWarning=!0,Object.defineProperty(y,"key",{get:N,configurable:!0})}}function _a(y,S){{var N=function(){Lr||(Lr=!0,ee("%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))};N.isReactWarning=!0,Object.defineProperty(y,"ref",{get:N,configurable:!0})}}var ga=function(y,S,N,H,ce,pe,se){var te={$$typeof:s,type:y,key:S,ref:N,props:se,_owner:pe};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function ni(y,S,N,H,ce){{var pe,se={},te=null,Be=null;N!==void 0&&(Za(N),te=""+N),fa(S)&&(Za(S.key),te=""+S.key),ma(S)&&(Be=S.ref,ya(S,ce));for(pe in S)Rr.call(S,pe)&&!nr.hasOwnProperty(pe)&&(se[pe]=S[pe]);if(y&&y.defaultProps){var ke=y.defaultProps;for(pe in ke)se[pe]===void 0&&(se[pe]=ke[pe])}if(te||Be){var qe=typeof y=="function"?y.displayName||y.name||"Unknown":y;te&&ha(se,qe),Be&&_a(se,qe)}return ga(y,te,Be,ce,H,At.current,se)}}var ba=de.ReactCurrentOwner,Ja=de.ReactDebugCurrentFrame;function Vt(y){if(y){var S=y._owner,N=Mt(y.type,y._source,S?S.type:null);Ja.setExtraStackFrame(N)}else Ja.setExtraStackFrame(null)}var Fr;Fr=!1;function xa(y){return typeof y=="object"&&y!==null&&y.$$typeof===s}function es(){{if(ba.current){var y=Pe(ba.current.type);if(y)return`
23
+ `+te[ke].replace(" at new "," at ");return y.displayName&&Qe.includes("<anonymous>")&&(Qe=Qe.replace("<anonymous>",y.displayName)),typeof y=="function"&&Nr.set(y,Qe),Qe}while(ke>=1&&qe>=0);break}}}finally{Wt=!1,sr.current=pe,$e(),Error.prepareStackTrace=ce}var qt=y?y.displayName||y.name:"",ns=qt?Et(qt):"";return typeof y=="function"&&Nr.set(y,ns),ns}function Qa(y,S,N){return _r(y,!1)}function st(y){var S=y.prototype;return!!(S&&S.isReactComponent)}function Mt(y,S,N){if(y==null)return"";if(typeof y=="function")return _r(y,st(y));if(typeof y=="string")return Et(y);switch(y){case b:return Et("Suspense");case w:return Et("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case g:return Qa(y.render);case k:return Mt(y.type,S,N);case z:{var H=y,ce=H._payload,pe=H._init;try{return Mt(pe(ce),S,N)}catch{}}}return""}var Rr=Object.prototype.hasOwnProperty,ht={},pa=de.ReactDebugCurrentFrame;function Or(y){if(y){var S=y._owner,N=Mt(y.type,y._source,S?S.type:null);pa.setExtraStackFrame(N)}else pa.setExtraStackFrame(null)}function gr(y,S,N,H,ce){{var pe=Function.call.bind(Rr);for(var se in y)if(pe(y,se)){var te=void 0;try{if(typeof y[se]!="function"){var Be=Error((H||"React class")+": "+N+" type `"+se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[se]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Be.name="Invariant Violation",Be}te=y[se](S,se,H,N,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ke){te=ke}te&&!(te instanceof Error)&&(Or(ce),ee("%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).",H||"React class",N,se,typeof te),Or(null)),te instanceof Error&&!(te.message in ht)&&(ht[te.message]=!0,Or(ce),ee("Failed %s type: %s",N,te.message),Or(null))}}}var it=Array.isArray;function Ht(y){return it(y)}function Er(y){{var S=typeof Symbol=="function"&&Symbol.toStringTag,N=S&&y[Symbol.toStringTag]||y.constructor.name||"Object";return N}}function ii(y){try{return ir(y),!1}catch{return!0}}function ir(y){return""+y}function Ja(y){if(ii(y))return ee("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Er(y)),ir(y)}var At=de.ReactCurrentOwner,nr={key:!0,ref:!0,__self:!0,__source:!0},Mr,Lr,br;br={};function ma(y){if(Rr.call(y,"ref")){var S=Object.getOwnPropertyDescriptor(y,"ref").get;if(S&&S.isReactWarning)return!1}return y.ref!==void 0}function fa(y){if(Rr.call(y,"key")){var S=Object.getOwnPropertyDescriptor(y,"key").get;if(S&&S.isReactWarning)return!1}return y.key!==void 0}function ya(y,S){if(typeof y.ref=="string"&&At.current&&S&&At.current.stateNode!==S){var N=Pe(At.current.type);br[N]||(ee('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(At.current.type),y.ref),br[N]=!0)}}function ha(y,S){{var N=function(){Mr||(Mr=!0,ee("%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))};N.isReactWarning=!0,Object.defineProperty(y,"key",{get:N,configurable:!0})}}function _a(y,S){{var N=function(){Lr||(Lr=!0,ee("%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))};N.isReactWarning=!0,Object.defineProperty(y,"ref",{get:N,configurable:!0})}}var ga=function(y,S,N,H,ce,pe,se){var te={$$typeof:s,type:y,key:S,ref:N,props:se,_owner:pe};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function ni(y,S,N,H,ce){{var pe,se={},te=null,Be=null;N!==void 0&&(Ja(N),te=""+N),fa(S)&&(Ja(S.key),te=""+S.key),ma(S)&&(Be=S.ref,ya(S,ce));for(pe in S)Rr.call(S,pe)&&!nr.hasOwnProperty(pe)&&(se[pe]=S[pe]);if(y&&y.defaultProps){var ke=y.defaultProps;for(pe in ke)se[pe]===void 0&&(se[pe]=ke[pe])}if(te||Be){var qe=typeof y=="function"?y.displayName||y.name||"Unknown":y;te&&ha(se,qe),Be&&_a(se,qe)}return ga(y,te,Be,ce,H,At.current,se)}}var ba=de.ReactCurrentOwner,Za=de.ReactDebugCurrentFrame;function Vt(y){if(y){var S=y._owner,N=Mt(y.type,y._source,S?S.type:null);Za.setExtraStackFrame(N)}else Za.setExtraStackFrame(null)}var Fr;Fr=!1;function xa(y){return typeof y=="object"&&y!==null&&y.$$typeof===s}function es(){{if(ba.current){var y=Pe(ba.current.type);if(y)return`
24
24
 
25
25
  Check the render method of \``+y+"`."}return""}}function oi(y){{if(y!==void 0){var S=y.fileName.replace(/^.*[\\\/]/,""),N=y.lineNumber;return`
26
26
 
27
27
  Check your code at `+S+":"+N+"."}return""}}var ts={};function rs(y){{var S=es();if(!S){var N=typeof y=="string"?y:y.displayName||y.name;N&&(S=`
28
28
 
29
- Check the top-level render call using <`+N+">.")}return S}}function as(y,S){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var N=rs(S);if(ts[N])return;ts[N]=!0;var H="";y&&y._owner&&y._owner!==ba.current&&(H=" It was passed a child from "+Pe(y._owner.type)+"."),Vt(y),ee('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,H),Vt(null)}}function ss(y,S){{if(typeof y!="object")return;if(Ht(y))for(var N=0;N<y.length;N++){var H=y[N];xa(H)&&as(H,S)}else if(xa(y))y._store&&(y._store.validated=!0);else if(y){var ce=J(y);if(typeof ce=="function"&&ce!==y.entries)for(var pe=ce.call(y),se;!(se=pe.next()).done;)xa(se.value)&&as(se.value,S)}}}function li(y){{var S=y.type;if(S==null||typeof S=="string")return;var N;if(typeof S=="function")N=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===g||S.$$typeof===k))N=S.propTypes;else return;if(N){var H=Pe(S);gr(N,y.props,"prop",H,y)}else if(S.PropTypes!==void 0&&!Fr){Fr=!0;var ce=Pe(S);ee("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&ee("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function va(y){{for(var S=Object.keys(y.props),N=0;N<S.length;N++){var H=S[N];if(H!=="children"&&H!=="key"){Vt(y),ee("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",H),Vt(null);break}}y.ref!==null&&(Vt(y),ee("Invalid attribute `ref` supplied to `React.Fragment`."),Vt(null))}}function is(y,S,N,H,ce,pe){{var se=re(y);if(!se){var te="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(te+=" 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=oi(ce);Be?te+=Be:te+=es();var ke;y===null?ke="null":Ht(y)?ke="array":y!==void 0&&y.$$typeof===s?(ke="<"+(Pe(y.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):ke=typeof y,ee("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ke,te)}var qe=ni(y,S,N,ce,pe);if(qe==null)return qe;if(se){var Qe=S.children;if(Qe!==void 0)if(H)if(Ht(Qe)){for(var qt=0;qt<Qe.length;qt++)ss(Qe[qt],y);Object.freeze&&Object.freeze(Qe)}else ee("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 ss(Qe,y)}return y===l?va(qe):li(qe),qe}}function wa(y,S,N){return is(y,S,N,!0)}function ci(y,S,N){return is(y,S,N,!1)}var ui=ci,di=wa;ra.Fragment=l,ra.jsx=ui,ra.jsxs=di}()),ra}process.env.NODE_ENV==="production"?Gs.exports=Pc():Gs.exports=Rc();var mt=Gs.exports;function Oc(n,s,a){return s in n?Object.defineProperty(n,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[s]=a,n}function kn(n,s){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);s&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),a.push.apply(a,l)}return a}function An(n){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?kn(Object(a),!0).forEach(function(l){Oc(n,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):kn(Object(a)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(a,l))})}return n}function Ec(n,s){if(n==null)return{};var a={},l=Object.keys(n),u,p;for(p=0;p<l.length;p++)u=l[p],!(s.indexOf(u)>=0)&&(a[u]=n[u]);return a}function Mc(n,s){if(n==null)return{};var a=Ec(n,s),l,u;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(u=0;u<p.length;u++)l=p[u],!(s.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(n,l)&&(a[l]=n[l])}return a}function Lc(n,s){return Fc(n)||Bc(n,s)||jc(n,s)||Uc()}function Fc(n){if(Array.isArray(n))return n}function Bc(n,s){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var a=[],l=!0,u=!1,p=void 0;try{for(var m=n[Symbol.iterator](),v;!(l=(v=m.next()).done)&&(a.push(v.value),!(s&&a.length===s));l=!0);}catch(g){u=!0,p=g}finally{try{!l&&m.return!=null&&m.return()}finally{if(u)throw p}}return a}}function jc(n,s){if(n){if(typeof n=="string")return qn(n,s);var a=Object.prototype.toString.call(n).slice(8,-1);if(a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set")return Array.from(n);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return qn(n,s)}}function qn(n,s){(s==null||s>n.length)&&(s=n.length);for(var a=0,l=new Array(s);a<s;a++)l[a]=n[a];return l}function Uc(){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 Wc(n,s,a){return s in n?Object.defineProperty(n,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[s]=a,n}function Cn(n,s){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);s&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),a.push.apply(a,l)}return a}function Sn(n){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?Cn(Object(a),!0).forEach(function(l){Wc(n,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):Cn(Object(a)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(a,l))})}return n}function Hc(){for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return function(l){return s.reduceRight(function(u,p){return p(u)},l)}}function aa(n){return function s(){for(var a=this,l=arguments.length,u=new Array(l),p=0;p<l;p++)u[p]=arguments[p];return u.length>=n.length?n.apply(this,u):function(){for(var m=arguments.length,v=new Array(m),g=0;g<m;g++)v[g]=arguments[g];return s.apply(a,[].concat(u,v))}}}function Fa(n){return{}.toString.call(n).includes("Object")}function Vc(n){return!Object.keys(n).length}function sa(n){return typeof n=="function"}function $c(n,s){return Object.prototype.hasOwnProperty.call(n,s)}function Gc(n,s){return Fa(s)||tr("changeType"),Object.keys(s).some(function(a){return!$c(n,a)})&&tr("changeField"),s}function Xc(n){sa(n)||tr("selectorType")}function Yc(n){sa(n)||Fa(n)||tr("handlerType"),Fa(n)&&Object.values(n).some(function(s){return!sa(s)})&&tr("handlersType")}function Kc(n){n||tr("initialIsRequired"),Fa(n)||tr("initialType"),Vc(n)&&tr("initialContent")}function Qc(n,s){throw new Error(n[s]||n.default)}var Zc={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"},tr=aa(Qc)(Zc),Ba={changes:Gc,selector:Xc,handler:Yc,initial:Kc};function Jc(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ba.initial(n),Ba.handler(s);var a={current:n},l=aa(ru)(a,s),u=aa(tu)(a),p=aa(Ba.changes)(n),m=aa(eu)(a);function v(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(w){return w};return Ba.selector(b),b(a.current)}function g(b){Hc(l,u,p,m)(b)}return[v,g]}function eu(n,s){return sa(s)?s(n.current):s}function tu(n,s){return n.current=Sn(Sn({},n.current),s),s}function ru(n,s,a){return sa(s)?s(n.current):Object.keys(a).forEach(function(l){var u;return(u=s[l])===null||u===void 0?void 0:u.call(s,n.current[l])}),a}var au={create:Jc},su={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function iu(n){return function s(){for(var a=this,l=arguments.length,u=new Array(l),p=0;p<l;p++)u[p]=arguments[p];return u.length>=n.length?n.apply(this,u):function(){for(var m=arguments.length,v=new Array(m),g=0;g<m;g++)v[g]=arguments[g];return s.apply(a,[].concat(u,v))}}}function nu(n){return{}.toString.call(n).includes("Object")}function ou(n){return n||Nn("configIsRequired"),nu(n)||Nn("configType"),n.urls?(lu(),{paths:{vs:n.urls.monacoBase}}):n}function lu(){console.warn(zn.deprecation)}function cu(n,s){throw new Error(n[s]||n.default)}var zn={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 <`+N+">.")}return S}}function as(y,S){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var N=rs(S);if(ts[N])return;ts[N]=!0;var H="";y&&y._owner&&y._owner!==ba.current&&(H=" It was passed a child from "+Pe(y._owner.type)+"."),Vt(y),ee('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,H),Vt(null)}}function ss(y,S){{if(typeof y!="object")return;if(Ht(y))for(var N=0;N<y.length;N++){var H=y[N];xa(H)&&as(H,S)}else if(xa(y))y._store&&(y._store.validated=!0);else if(y){var ce=Z(y);if(typeof ce=="function"&&ce!==y.entries)for(var pe=ce.call(y),se;!(se=pe.next()).done;)xa(se.value)&&as(se.value,S)}}}function li(y){{var S=y.type;if(S==null||typeof S=="string")return;var N;if(typeof S=="function")N=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===g||S.$$typeof===k))N=S.propTypes;else return;if(N){var H=Pe(S);gr(N,y.props,"prop",H,y)}else if(S.PropTypes!==void 0&&!Fr){Fr=!0;var ce=Pe(S);ee("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&ee("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function va(y){{for(var S=Object.keys(y.props),N=0;N<S.length;N++){var H=S[N];if(H!=="children"&&H!=="key"){Vt(y),ee("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",H),Vt(null);break}}y.ref!==null&&(Vt(y),ee("Invalid attribute `ref` supplied to `React.Fragment`."),Vt(null))}}function is(y,S,N,H,ce,pe){{var se=re(y);if(!se){var te="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(te+=" 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=oi(ce);Be?te+=Be:te+=es();var ke;y===null?ke="null":Ht(y)?ke="array":y!==void 0&&y.$$typeof===s?(ke="<"+(Pe(y.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):ke=typeof y,ee("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ke,te)}var qe=ni(y,S,N,ce,pe);if(qe==null)return qe;if(se){var Qe=S.children;if(Qe!==void 0)if(H)if(Ht(Qe)){for(var qt=0;qt<Qe.length;qt++)ss(Qe[qt],y);Object.freeze&&Object.freeze(Qe)}else ee("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 ss(Qe,y)}return y===l?va(qe):li(qe),qe}}function wa(y,S,N){return is(y,S,N,!0)}function ci(y,S,N){return is(y,S,N,!1)}var ui=ci,di=wa;ra.Fragment=l,ra.jsx=ui,ra.jsxs=di}()),ra}process.env.NODE_ENV==="production"?Gs.exports=Pc():Gs.exports=Rc();var mt=Gs.exports;function Oc(n,s,a){return s in n?Object.defineProperty(n,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[s]=a,n}function kn(n,s){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);s&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),a.push.apply(a,l)}return a}function An(n){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?kn(Object(a),!0).forEach(function(l){Oc(n,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):kn(Object(a)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(a,l))})}return n}function Ec(n,s){if(n==null)return{};var a={},l=Object.keys(n),u,p;for(p=0;p<l.length;p++)u=l[p],!(s.indexOf(u)>=0)&&(a[u]=n[u]);return a}function Mc(n,s){if(n==null)return{};var a=Ec(n,s),l,u;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(u=0;u<p.length;u++)l=p[u],!(s.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(n,l)&&(a[l]=n[l])}return a}function Lc(n,s){return Fc(n)||Bc(n,s)||jc(n,s)||Uc()}function Fc(n){if(Array.isArray(n))return n}function Bc(n,s){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var a=[],l=!0,u=!1,p=void 0;try{for(var m=n[Symbol.iterator](),v;!(l=(v=m.next()).done)&&(a.push(v.value),!(s&&a.length===s));l=!0);}catch(g){u=!0,p=g}finally{try{!l&&m.return!=null&&m.return()}finally{if(u)throw p}}return a}}function jc(n,s){if(n){if(typeof n=="string")return qn(n,s);var a=Object.prototype.toString.call(n).slice(8,-1);if(a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set")return Array.from(n);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return qn(n,s)}}function qn(n,s){(s==null||s>n.length)&&(s=n.length);for(var a=0,l=new Array(s);a<s;a++)l[a]=n[a];return l}function Uc(){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 Wc(n,s,a){return s in n?Object.defineProperty(n,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[s]=a,n}function Cn(n,s){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);s&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),a.push.apply(a,l)}return a}function Sn(n){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?Cn(Object(a),!0).forEach(function(l){Wc(n,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):Cn(Object(a)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(a,l))})}return n}function Hc(){for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return function(l){return s.reduceRight(function(u,p){return p(u)},l)}}function aa(n){return function s(){for(var a=this,l=arguments.length,u=new Array(l),p=0;p<l;p++)u[p]=arguments[p];return u.length>=n.length?n.apply(this,u):function(){for(var m=arguments.length,v=new Array(m),g=0;g<m;g++)v[g]=arguments[g];return s.apply(a,[].concat(u,v))}}}function Fa(n){return{}.toString.call(n).includes("Object")}function Vc(n){return!Object.keys(n).length}function sa(n){return typeof n=="function"}function $c(n,s){return Object.prototype.hasOwnProperty.call(n,s)}function Gc(n,s){return Fa(s)||tr("changeType"),Object.keys(s).some(function(a){return!$c(n,a)})&&tr("changeField"),s}function Xc(n){sa(n)||tr("selectorType")}function Yc(n){sa(n)||Fa(n)||tr("handlerType"),Fa(n)&&Object.values(n).some(function(s){return!sa(s)})&&tr("handlersType")}function Kc(n){n||tr("initialIsRequired"),Fa(n)||tr("initialType"),Vc(n)&&tr("initialContent")}function Qc(n,s){throw new Error(n[s]||n.default)}var Jc={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"},tr=aa(Qc)(Jc),Ba={changes:Gc,selector:Xc,handler:Yc,initial:Kc};function Zc(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ba.initial(n),Ba.handler(s);var a={current:n},l=aa(ru)(a,s),u=aa(tu)(a),p=aa(Ba.changes)(n),m=aa(eu)(a);function v(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(w){return w};return Ba.selector(b),b(a.current)}function g(b){Hc(l,u,p,m)(b)}return[v,g]}function eu(n,s){return sa(s)?s(n.current):s}function tu(n,s){return n.current=Sn(Sn({},n.current),s),s}function ru(n,s,a){return sa(s)?s(n.current):Object.keys(a).forEach(function(l){var u;return(u=s[l])===null||u===void 0?void 0:u.call(s,n.current[l])}),a}var au={create:Zc},su={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function iu(n){return function s(){for(var a=this,l=arguments.length,u=new Array(l),p=0;p<l;p++)u[p]=arguments[p];return u.length>=n.length?n.apply(this,u):function(){for(var m=arguments.length,v=new Array(m),g=0;g<m;g++)v[g]=arguments[g];return s.apply(a,[].concat(u,v))}}}function nu(n){return{}.toString.call(n).includes("Object")}function ou(n){return n||Nn("configIsRequired"),nu(n)||Nn("configType"),n.urls?(lu(),{paths:{vs:n.urls.monacoBase}}):n}function lu(){console.warn(zn.deprecation)}function cu(n,s){throw new Error(n[s]||n.default)}var zn={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
- `},Nn=iu(cu)(zn),uu={config:ou},du=function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return function(u){return a.reduceRight(function(p,m){return m(p)},u)}};function Pn(n,s){return Object.keys(s).forEach(function(a){s[a]instanceof Object&&n[a]&&Object.assign(s[a],Pn(n[a],s[a]))}),An(An({},n),s)}var pu={type:"cancelation",msg:"operation is manually canceled"};function Xs(n){var s=!1,a=new Promise(function(l,u){n.then(function(p){return s?u(pu):l(p)}),n.catch(u)});return a.cancel=function(){return s=!0},a}var mu=au.create({config:su,isInitialized:!1,resolve:null,reject:null,monaco:null}),Rn=Lc(mu,2),ia=Rn[0],ja=Rn[1];function fu(n){var s=uu.config(n),a=s.monaco,l=Mc(s,["monaco"]);ja(function(u){return{config:Pn(u.config,l),monaco:a}})}function yu(){var n=ia(function(s){var a=s.monaco,l=s.isInitialized,u=s.resolve;return{monaco:a,isInitialized:l,resolve:u}});if(!n.isInitialized){if(ja({isInitialized:!0}),n.monaco)return n.resolve(n.monaco),Xs(Ys);if(window.monaco&&window.monaco.editor)return On(window.monaco),n.resolve(window.monaco),Xs(Ys);du(hu,gu)(bu)}return Xs(Ys)}function hu(n){return document.body.appendChild(n)}function _u(n){var s=document.createElement("script");return n&&(s.src=n),s}function gu(n){var s=ia(function(l){var u=l.config,p=l.reject;return{config:u,reject:p}}),a=_u("".concat(s.config.paths.vs,"/loader.js"));return a.onload=function(){return n()},a.onerror=s.reject,a}function bu(){var n=ia(function(a){var l=a.config,u=a.resolve,p=a.reject;return{config:l,resolve:u,reject:p}}),s=window.require;s.config(n.config),s(["vs/editor/editor.main"],function(a){On(a),n.resolve(a)},function(a){n.reject(a)})}function On(n){ia().monaco||ja({monaco:n})}function xu(){return ia(function(n){var s=n.monaco;return s})}var Ys=new Promise(function(n,s){return ja({resolve:n,reject:s})}),En={config:fu,init:yu,__getMonacoInstance:xu},vu={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Ks=vu,wu={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Tu=wu;function Iu({children:n}){return F.createElement("div",{style:Tu.container},n)}var Du=Iu,ku=Du;function Au({width:n,height:s,isEditorReady:a,loading:l,_ref:u,className:p,wrapperProps:m}){return F.createElement("section",{style:{...Ks.wrapper,width:n,height:s},...m},!a&&F.createElement(ku,null,l),F.createElement("div",{ref:u,style:{...Ks.fullWidth,...!a&&Ks.hide},className:p}))}var qu=Au,Mn=F.memo(qu);function Cu(n){F.useEffect(n,[])}var Ln=Cu;function Su(n,s,a=!0){let l=F.useRef(!0);F.useEffect(l.current||!a?()=>{l.current=!1}:n,s)}var at=Su;function na(){}function Cr(n,s,a,l){return zu(n,l)||Nu(n,s,a,l)}function zu(n,s){return n.editor.getModel(Fn(n,s))}function Nu(n,s,a,l){return n.editor.createModel(s,a,l?Fn(n,l):void 0)}function Fn(n,s){return n.Uri.parse(s)}function Pu({original:n,modified:s,language:a,originalLanguage:l,modifiedLanguage:u,originalModelPath:p,modifiedModelPath:m,keepCurrentOriginalModel:v=!1,keepCurrentModifiedModel:g=!1,theme:b="light",loading:w="Loading...",options:k={},height:z="100%",width:E="100%",className:R,wrapperProps:L={},beforeMount:J=na,onMount:de=na}){let[ee,De]=F.useState(!1),[ne,Y]=F.useState(!0),le=F.useRef(null),K=F.useRef(null),Ne=F.useRef(null),_e=F.useRef(de),re=F.useRef(J),yt=F.useRef(!1);Ln(()=>{let W=En.init();return W.then(ye=>(K.current=ye)&&Y(!1)).catch(ye=>(ye==null?void 0:ye.type)!=="cancelation"&&console.error("Monaco initialization: error:",ye)),()=>le.current?we():W.cancel()}),at(()=>{if(le.current&&K.current){let W=le.current.getOriginalEditor(),ye=Cr(K.current,n||"",l||a||"text",p||"");ye!==W.getModel()&&W.setModel(ye)}},[p],ee),at(()=>{if(le.current&&K.current){let W=le.current.getModifiedEditor(),ye=Cr(K.current,s||"",u||a||"text",m||"");ye!==W.getModel()&&W.setModel(ye)}},[m],ee),at(()=>{let W=le.current.getModifiedEditor();W.getOption(K.current.editor.EditorOption.readOnly)?W.setValue(s||""):s!==W.getValue()&&(W.executeEdits("",[{range:W.getModel().getFullModelRange(),text:s||"",forceMoveMarkers:!0}]),W.pushUndoStop())},[s],ee),at(()=>{var W,ye;(ye=(W=le.current)==null?void 0:W.getModel())==null||ye.original.setValue(n||"")},[n],ee),at(()=>{let{original:W,modified:ye}=le.current.getModel();K.current.editor.setModelLanguage(W,l||a||"text"),K.current.editor.setModelLanguage(ye,u||a||"text")},[a,l,u],ee),at(()=>{var W;(W=K.current)==null||W.editor.setTheme(b)},[b],ee),at(()=>{var W;(W=le.current)==null||W.updateOptions(k)},[k],ee);let kt=F.useCallback(()=>{var Re;if(!K.current)return;re.current(K.current);let W=Cr(K.current,n||"",l||a||"text",p||""),ye=Cr(K.current,s||"",u||a||"text",m||"");(Re=le.current)==null||Re.setModel({original:W,modified:ye})},[a,s,u,n,l,p,m]),Pe=F.useCallback(()=>{var W;!yt.current&&Ne.current&&(le.current=K.current.editor.createDiffEditor(Ne.current,{automaticLayout:!0,...k}),kt(),(W=K.current)==null||W.editor.setTheme(b),De(!0),yt.current=!0)},[k,b,kt]);F.useEffect(()=>{ee&&_e.current(le.current,K.current)},[ee]),F.useEffect(()=>{!ne&&!ee&&Pe()},[ne,ee,Pe]);function we(){var ye,Re,Me,Ot;let W=(ye=le.current)==null?void 0:ye.getModel();v||((Re=W==null?void 0:W.original)==null||Re.dispose()),g||((Me=W==null?void 0:W.modified)==null||Me.dispose()),(Ot=le.current)==null||Ot.dispose()}return F.createElement(Mn,{width:E,height:z,isEditorReady:ee,loading:w,_ref:Ne,className:R,wrapperProps:L})}var Ru=Pu;F.memo(Ru);function Ou(n){let s=F.useRef();return F.useEffect(()=>{s.current=n},[n]),s.current}var Eu=Ou,Ua=new Map;function Mu({defaultValue:n,defaultLanguage:s,defaultPath:a,value:l,language:u,path:p,theme:m="light",line:v,loading:g="Loading...",options:b={},overrideServices:w={},saveViewState:k=!0,keepCurrentModel:z=!1,width:E="100%",height:R="100%",className:L,wrapperProps:J={},beforeMount:de=na,onMount:ee=na,onChange:De,onValidate:ne=na}){let[Y,le]=F.useState(!1),[K,Ne]=F.useState(!0),_e=F.useRef(null),re=F.useRef(null),yt=F.useRef(null),kt=F.useRef(ee),Pe=F.useRef(de),we=F.useRef(),W=F.useRef(l),ye=Eu(p),Re=F.useRef(!1),Me=F.useRef(!1);Ln(()=>{let V=En.init();return V.then(ge=>(_e.current=ge)&&Ne(!1)).catch(ge=>(ge==null?void 0:ge.type)!=="cancelation"&&console.error("Monaco initialization: error:",ge)),()=>re.current?jt():V.cancel()}),at(()=>{var ge,Le,Ut,$e;let V=Cr(_e.current,n||l||"",s||u||"",p||a||"");V!==((ge=re.current)==null?void 0:ge.getModel())&&(k&&Ua.set(ye,(Le=re.current)==null?void 0:Le.saveViewState()),(Ut=re.current)==null||Ut.setModel(V),k&&(($e=re.current)==null||$e.restoreViewState(Ua.get(p))))},[p],Y),at(()=>{var V;(V=re.current)==null||V.updateOptions(b)},[b],Y),at(()=>{!re.current||l===void 0||(re.current.getOption(_e.current.editor.EditorOption.readOnly)?re.current.setValue(l):l!==re.current.getValue()&&(Me.current=!0,re.current.executeEdits("",[{range:re.current.getModel().getFullModelRange(),text:l,forceMoveMarkers:!0}]),re.current.pushUndoStop(),Me.current=!1))},[l],Y),at(()=>{var ge,Le;let V=(ge=re.current)==null?void 0:ge.getModel();V&&u&&((Le=_e.current)==null||Le.editor.setModelLanguage(V,u))},[u],Y),at(()=>{var V;v!==void 0&&((V=re.current)==null||V.revealLine(v))},[v],Y),at(()=>{var V;(V=_e.current)==null||V.editor.setTheme(m)},[m],Y);let Ot=F.useCallback(()=>{var V;if(!(!yt.current||!_e.current)&&!Re.current){Pe.current(_e.current);let ge=p||a,Le=Cr(_e.current,l||n||"",s||u||"",ge||"");re.current=(V=_e.current)==null?void 0:V.editor.create(yt.current,{model:Le,automaticLayout:!0,...b},w),k&&re.current.restoreViewState(Ua.get(ge)),_e.current.editor.setTheme(m),v!==void 0&&re.current.revealLine(v),le(!0),Re.current=!0}},[n,s,a,l,u,p,b,w,k,m,v]);F.useEffect(()=>{Y&&kt.current(re.current,_e.current)},[Y]),F.useEffect(()=>{!K&&!Y&&Ot()},[K,Y,Ot]),W.current=l,F.useEffect(()=>{var V,ge;Y&&De&&((V=we.current)==null||V.dispose(),we.current=(ge=re.current)==null?void 0:ge.onDidChangeModelContent(Le=>{Me.current||De(re.current.getValue(),Le)}))},[Y,De]),F.useEffect(()=>{if(Y){let V=_e.current.editor.onDidChangeMarkers(ge=>{var Ut;let Le=(Ut=re.current.getModel())==null?void 0:Ut.uri;if(Le&&ge.find($e=>$e.path===Le.path)){let $e=_e.current.editor.getModelMarkers({resource:Le});ne==null||ne($e)}});return()=>{V==null||V.dispose()}}return()=>{}},[Y,ne]);function jt(){var V,ge;(V=we.current)==null||V.dispose(),z?k&&Ua.set(p,re.current.saveViewState()):(ge=re.current.getModel())==null||ge.dispose(),re.current.dispose()}return F.createElement(Mn,{width:E,height:R,isEditorReady:Y,loading:g,_ref:yt,className:L,wrapperProps:J})}var Lu=Mu,Fu=F.memo(Lu);const Bn={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
+ `},Nn=iu(cu)(zn),uu={config:ou},du=function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return function(u){return a.reduceRight(function(p,m){return m(p)},u)}};function Pn(n,s){return Object.keys(s).forEach(function(a){s[a]instanceof Object&&n[a]&&Object.assign(s[a],Pn(n[a],s[a]))}),An(An({},n),s)}var pu={type:"cancelation",msg:"operation is manually canceled"};function Xs(n){var s=!1,a=new Promise(function(l,u){n.then(function(p){return s?u(pu):l(p)}),n.catch(u)});return a.cancel=function(){return s=!0},a}var mu=au.create({config:su,isInitialized:!1,resolve:null,reject:null,monaco:null}),Rn=Lc(mu,2),ia=Rn[0],ja=Rn[1];function fu(n){var s=uu.config(n),a=s.monaco,l=Mc(s,["monaco"]);ja(function(u){return{config:Pn(u.config,l),monaco:a}})}function yu(){var n=ia(function(s){var a=s.monaco,l=s.isInitialized,u=s.resolve;return{monaco:a,isInitialized:l,resolve:u}});if(!n.isInitialized){if(ja({isInitialized:!0}),n.monaco)return n.resolve(n.monaco),Xs(Ys);if(window.monaco&&window.monaco.editor)return On(window.monaco),n.resolve(window.monaco),Xs(Ys);du(hu,gu)(bu)}return Xs(Ys)}function hu(n){return document.body.appendChild(n)}function _u(n){var s=document.createElement("script");return n&&(s.src=n),s}function gu(n){var s=ia(function(l){var u=l.config,p=l.reject;return{config:u,reject:p}}),a=_u("".concat(s.config.paths.vs,"/loader.js"));return a.onload=function(){return n()},a.onerror=s.reject,a}function bu(){var n=ia(function(a){var l=a.config,u=a.resolve,p=a.reject;return{config:l,resolve:u,reject:p}}),s=window.require;s.config(n.config),s(["vs/editor/editor.main"],function(a){On(a),n.resolve(a)},function(a){n.reject(a)})}function On(n){ia().monaco||ja({monaco:n})}function xu(){return ia(function(n){var s=n.monaco;return s})}var Ys=new Promise(function(n,s){return ja({resolve:n,reject:s})}),En={config:fu,init:yu,__getMonacoInstance:xu},vu={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Ks=vu,wu={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Tu=wu;function Iu({children:n}){return F.createElement("div",{style:Tu.container},n)}var Du=Iu,ku=Du;function Au({width:n,height:s,isEditorReady:a,loading:l,_ref:u,className:p,wrapperProps:m}){return F.createElement("section",{style:{...Ks.wrapper,width:n,height:s},...m},!a&&F.createElement(ku,null,l),F.createElement("div",{ref:u,style:{...Ks.fullWidth,...!a&&Ks.hide},className:p}))}var qu=Au,Mn=F.memo(qu);function Cu(n){F.useEffect(n,[])}var Ln=Cu;function Su(n,s,a=!0){let l=F.useRef(!0);F.useEffect(l.current||!a?()=>{l.current=!1}:n,s)}var at=Su;function na(){}function Cr(n,s,a,l){return zu(n,l)||Nu(n,s,a,l)}function zu(n,s){return n.editor.getModel(Fn(n,s))}function Nu(n,s,a,l){return n.editor.createModel(s,a,l?Fn(n,l):void 0)}function Fn(n,s){return n.Uri.parse(s)}function Pu({original:n,modified:s,language:a,originalLanguage:l,modifiedLanguage:u,originalModelPath:p,modifiedModelPath:m,keepCurrentOriginalModel:v=!1,keepCurrentModifiedModel:g=!1,theme:b="light",loading:w="Loading...",options:k={},height:z="100%",width:E="100%",className:R,wrapperProps:L={},beforeMount:Z=na,onMount:de=na}){let[ee,De]=F.useState(!1),[ne,Y]=F.useState(!0),le=F.useRef(null),K=F.useRef(null),Ne=F.useRef(null),_e=F.useRef(de),re=F.useRef(Z),yt=F.useRef(!1);Ln(()=>{let W=En.init();return W.then(ye=>(K.current=ye)&&Y(!1)).catch(ye=>(ye==null?void 0:ye.type)!=="cancelation"&&console.error("Monaco initialization: error:",ye)),()=>le.current?we():W.cancel()}),at(()=>{if(le.current&&K.current){let W=le.current.getOriginalEditor(),ye=Cr(K.current,n||"",l||a||"text",p||"");ye!==W.getModel()&&W.setModel(ye)}},[p],ee),at(()=>{if(le.current&&K.current){let W=le.current.getModifiedEditor(),ye=Cr(K.current,s||"",u||a||"text",m||"");ye!==W.getModel()&&W.setModel(ye)}},[m],ee),at(()=>{let W=le.current.getModifiedEditor();W.getOption(K.current.editor.EditorOption.readOnly)?W.setValue(s||""):s!==W.getValue()&&(W.executeEdits("",[{range:W.getModel().getFullModelRange(),text:s||"",forceMoveMarkers:!0}]),W.pushUndoStop())},[s],ee),at(()=>{var W,ye;(ye=(W=le.current)==null?void 0:W.getModel())==null||ye.original.setValue(n||"")},[n],ee),at(()=>{let{original:W,modified:ye}=le.current.getModel();K.current.editor.setModelLanguage(W,l||a||"text"),K.current.editor.setModelLanguage(ye,u||a||"text")},[a,l,u],ee),at(()=>{var W;(W=K.current)==null||W.editor.setTheme(b)},[b],ee),at(()=>{var W;(W=le.current)==null||W.updateOptions(k)},[k],ee);let kt=F.useCallback(()=>{var Re;if(!K.current)return;re.current(K.current);let W=Cr(K.current,n||"",l||a||"text",p||""),ye=Cr(K.current,s||"",u||a||"text",m||"");(Re=le.current)==null||Re.setModel({original:W,modified:ye})},[a,s,u,n,l,p,m]),Pe=F.useCallback(()=>{var W;!yt.current&&Ne.current&&(le.current=K.current.editor.createDiffEditor(Ne.current,{automaticLayout:!0,...k}),kt(),(W=K.current)==null||W.editor.setTheme(b),De(!0),yt.current=!0)},[k,b,kt]);F.useEffect(()=>{ee&&_e.current(le.current,K.current)},[ee]),F.useEffect(()=>{!ne&&!ee&&Pe()},[ne,ee,Pe]);function we(){var ye,Re,Me,Ot;let W=(ye=le.current)==null?void 0:ye.getModel();v||((Re=W==null?void 0:W.original)==null||Re.dispose()),g||((Me=W==null?void 0:W.modified)==null||Me.dispose()),(Ot=le.current)==null||Ot.dispose()}return F.createElement(Mn,{width:E,height:z,isEditorReady:ee,loading:w,_ref:Ne,className:R,wrapperProps:L})}var Ru=Pu;F.memo(Ru);function Ou(n){let s=F.useRef();return F.useEffect(()=>{s.current=n},[n]),s.current}var Eu=Ou,Ua=new Map;function Mu({defaultValue:n,defaultLanguage:s,defaultPath:a,value:l,language:u,path:p,theme:m="light",line:v,loading:g="Loading...",options:b={},overrideServices:w={},saveViewState:k=!0,keepCurrentModel:z=!1,width:E="100%",height:R="100%",className:L,wrapperProps:Z={},beforeMount:de=na,onMount:ee=na,onChange:De,onValidate:ne=na}){let[Y,le]=F.useState(!1),[K,Ne]=F.useState(!0),_e=F.useRef(null),re=F.useRef(null),yt=F.useRef(null),kt=F.useRef(ee),Pe=F.useRef(de),we=F.useRef(),W=F.useRef(l),ye=Eu(p),Re=F.useRef(!1),Me=F.useRef(!1);Ln(()=>{let V=En.init();return V.then(ge=>(_e.current=ge)&&Ne(!1)).catch(ge=>(ge==null?void 0:ge.type)!=="cancelation"&&console.error("Monaco initialization: error:",ge)),()=>re.current?jt():V.cancel()}),at(()=>{var ge,Le,Ut,$e;let V=Cr(_e.current,n||l||"",s||u||"",p||a||"");V!==((ge=re.current)==null?void 0:ge.getModel())&&(k&&Ua.set(ye,(Le=re.current)==null?void 0:Le.saveViewState()),(Ut=re.current)==null||Ut.setModel(V),k&&(($e=re.current)==null||$e.restoreViewState(Ua.get(p))))},[p],Y),at(()=>{var V;(V=re.current)==null||V.updateOptions(b)},[b],Y),at(()=>{!re.current||l===void 0||(re.current.getOption(_e.current.editor.EditorOption.readOnly)?re.current.setValue(l):l!==re.current.getValue()&&(Me.current=!0,re.current.executeEdits("",[{range:re.current.getModel().getFullModelRange(),text:l,forceMoveMarkers:!0}]),re.current.pushUndoStop(),Me.current=!1))},[l],Y),at(()=>{var ge,Le;let V=(ge=re.current)==null?void 0:ge.getModel();V&&u&&((Le=_e.current)==null||Le.editor.setModelLanguage(V,u))},[u],Y),at(()=>{var V;v!==void 0&&((V=re.current)==null||V.revealLine(v))},[v],Y),at(()=>{var V;(V=_e.current)==null||V.editor.setTheme(m)},[m],Y);let Ot=F.useCallback(()=>{var V;if(!(!yt.current||!_e.current)&&!Re.current){Pe.current(_e.current);let ge=p||a,Le=Cr(_e.current,l||n||"",s||u||"",ge||"");re.current=(V=_e.current)==null?void 0:V.editor.create(yt.current,{model:Le,automaticLayout:!0,...b},w),k&&re.current.restoreViewState(Ua.get(ge)),_e.current.editor.setTheme(m),v!==void 0&&re.current.revealLine(v),le(!0),Re.current=!0}},[n,s,a,l,u,p,b,w,k,m,v]);F.useEffect(()=>{Y&&kt.current(re.current,_e.current)},[Y]),F.useEffect(()=>{!K&&!Y&&Ot()},[K,Y,Ot]),W.current=l,F.useEffect(()=>{var V,ge;Y&&De&&((V=we.current)==null||V.dispose(),we.current=(ge=re.current)==null?void 0:ge.onDidChangeModelContent(Le=>{Me.current||De(re.current.getValue(),Le)}))},[Y,De]),F.useEffect(()=>{if(Y){let V=_e.current.editor.onDidChangeMarkers(ge=>{var Ut;let Le=(Ut=re.current.getModel())==null?void 0:Ut.uri;if(Le&&ge.find($e=>$e.path===Le.path)){let $e=_e.current.editor.getModelMarkers({resource:Le});ne==null||ne($e)}});return()=>{V==null||V.dispose()}}return()=>{}},[Y,ne]);function jt(){var V,ge;(V=we.current)==null||V.dispose(),z?k&&Ua.set(p,re.current.saveViewState()):(ge=re.current.getModel())==null||ge.dispose(),re.current.dispose()}return F.createElement(Mn,{width:E,height:R,isEditorReady:Y,loading:g,_ref:yt,className:L,wrapperProps:Z})}var Lu=Mu,Fu=F.memo(Lu);const Bn={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(s){return`**${s}**`}italic(s){return`*${s.replace(">","&gt;").replace("<","&lt;")}*`}pineCode(s){return`\`\`\`
104
104
  ${s}
105
- \`\`\``}code(s){return`\`${s}\``}paragraph(...s){return[this.paragraphBreak,...s,this.paragraphBreak].join(this.lineBreak)}link(s,a){return`[${s}](${a.href})`}}const fe=new Vu;function $u(n,s=0,a=!0){const l=n[s];if(!l)return"";const u=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:p,title:m,desc:v,type:g,syntax:b,returns:w,remarks:k,fields:z}=l,E=[`${fe.bold(p)} (${m})`];if(n.length>1&&E.push(fe.italic(`+${n.length-1} overloads`)),E.push(fe.delimiter),v&&E.push(fe.paragraph(Array.isArray(v)?v.join(fe.lineBreak):v||"")),g&&E.push(fe.paragraph(fe.bold(ft.Type),fe.italic(g))),b&&b.length&&E.push(fe.paragraph(fe.bold(ft.Syntax),fe.pineCode(b.join(fe.lineBreak)))),w&&E.push(fe.paragraph(fe.bold(ft.Returns),fe.lineBreak,w.join(fe.lineBreak))),k&&k.length&&n.length<=1){let R="";typeof k=="string"?R=k:R=k.join(fe.lineBreak)||"",R.length<200&&E.push(fe.paragraph(fe.bold(ft.Remarks),fe.lineBreak,R))}if(z){const R=[];for(const L of z){const J=L.desc?` - ${L.desc}`:"";R.push(`${L.name} (${L.type}) ${J}`)}E.push(fe.paragraph(fe.bold(ft.Fields),fe.lineBreak,R.join(fe.paragraphBreak)))}return a&&E.push(fe.italic(`${fe.code(u?"⌘":"Ctrl")} + ${ju.clickOnKeywordForMoreHelp}`)),E.join(E.length===2?" ":fe.lineBreak)}function Gu(n){return n.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}class Xu{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=fe,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(s){return this._funcArgsCache.get(s)||this._userFuncArgsCache.get(s)}getSuggestions(s){return s?this._namespaceCache.get(s)||this._userNamespaceCache.get(s):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(s,a,l,u){this._initUserDefind();const p=this._mergeTreeSlices(this._generateTreeSlice(rr.methods,"method"),this._generateTreeSlice(u,"method"));this._getMethodNamespaceCache(p),this._userMethods=u,this._userTypes=a,this._userFunctions=s;const m=this._generateTreeSlice(s,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(l,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(s,a,l){const u=this._getUserVariableCompletionItems(l),p=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(s,void 0,!0);return[...p,...m,...u,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:s,keywords:a,types:l,functions:u}=this._builtinSubtreeCache,p=this._getVariableCompletionItems(s),m=this._getKeywordCompletionItems(a),v=this._getTypeCompletionItems(l),g=this._getFunctionCompletionItems(u),b=this._getSnippetsCompletionsList();return[...p,...m,...v,...g,...this._outermostNsItems.values(),...b]}_getNodeKey(s,a){return`${a}_${s}`}_mergeTreeSlices(...s){const a=new Map;for(const l of s)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(s,a){const l=this._namespaceCache.get(s);l?this._namespaceCache.set(s,[...l,...a]):this._namespaceCache.set(s,a)}_mergeUserCompletions(s,a){const l=this._userNamespaceCache.get(s);l?this._userNamespaceCache.set(s,[...l,...a]):this._userNamespaceCache.set(s,a)}_generateTreeSlice(s,a){const l=new Map;for(const[u,p]of s){const[m,...v]=u.split("."),g=v.length>0,b=l.get(this._getNodeKey(m,g?"ns":a));let w=new Map,k=p.map(E=>({...E,name:u})),z=this._getNodeKey(u,a);if(g&&a!=="type"){const E=new Map([[v.join("."),p]]);k=[{name:m,title:Ie.namespace}],z=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(E,a)}b&&(k=[{name:m,title:Ie.namespace}],w=this._mergeTreeSlices(b.children,w)),l.set(z,{value:k,children:w})}return l}_getBuiltinsCacheFragment(){const{keywords:s,variables:a,constants:l,types:u,functions:p}=rr;return this._builtinSubtreeCache={keywords:this._generateTreeSlice(s,"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(s,a){const l=[],u=[];for(const[p,m]of s){const{value:v,children:g}=m;if(p.startsWith("ns")){const b=this._getNamespaceCompletionItem(v[0]);if(a){u.push({...b});const k=`${a}.${b.label}`;b.label=k,b.insertText=k}const w=this._getVariableCompletionItems(g,b.label);a||this._outermostNsItems.set(p,b),l.push(...w)}else{const b=this._getVariableCompletionItem(v[0],a?3:2);if(a){u.push({...b});const{label:w}=b;b.label=`${a}.${w}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${w}\r`}l.push(b)}}return u.length&&a&&this._mergeCompletions(a,u),l}_setUserVariableSubItems(s,a){var g,b;let l=[];const u=Gu(s.type||""),p=this._methodNamespaceCache.get(u),m=a?`${a}.${s.name}`:s.name;p&&(l=p.filter(w=>{var R;const k=`${u}.${w.label}`,z=rr.methods.get(k)||this._userMethods.get(k),E=z==null?void 0:z.some(L=>!L.thisType||L.thisType[0].includes("<>")||L.thisType.includes(s.type||""));if(E&&z){const L=this._getNamedArgumentsCompletionList(((R=z[0])==null?void 0:R.args)||[]),J=`${m}.${w.label}`;this._userFuncArgsCache.set(J,L),this._methodFuncs.set(J,z)}return E}));const v=(b=(g=this._userTypes.get(u))==null?void 0:g[0])==null?void 0:b.fields;if(v)for(const w of v){const k=w.name,z=w.type,E=this._getInstanceTypeCompletionItemProp({name:k,type:z});this._setUserVariableSubItems({name:k,type:z},s.name),l.push({...E})}l.length&&this._mergeUserCompletions(m,l)}_getUserVariableCompletionItems(s,a){const l=[],u=[];for(const[p,m]of s){const{value:v,children:g}=m;if(this._setUserVariableSubItems(v[0]),p.startsWith("ns")){const b=this._getNamespaceCompletionItem(v[0]);if(a){u.push({...b});const k=`${a}.${b.label}`;b.label=k,b.insertText=k}const w=this._getUserVariableCompletionItems(g,b.label);a||this._userOutermostNsItems.set(p,b),l.push(...w)}else{const b=this._getVariableCompletionItem(v[0],a?2:1,!0);if(a){u.push({...b});const{label:w}=b;b.label=`${a}.${w}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${w}\r`}l.push(b)}}return u.length&&a&&this._mergeUserCompletions(a,u),l}_getTypeCompletionItems(s,a=!1){const l=[];for(const[,u]of s){const{value:p}=u,m=a?this._getCustomTypeCompletionItem(p[0]):this._getTypeCompletionItem(p[0]);l.push(m)}return l}_getKeywordCompletionItems(s){const a=[];for(const[,l]of s){const{value:u}=l,p=this._getKeywordCompletionItem(u[0]);a.push(p)}return a}_getMethodNamespaceCache(s,a){const l=[];for(const[u,p]of s){const{value:m,children:v}=p;if(u.startsWith("ns")){const g=this._getNamespaceCompletionItem(m[0]);if(a){l.push({...g});const b=`${a}.${g.label}`;g.label=b,g.insertText=b}this._getMethodNamespaceCache(v,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:b}=g;g.label=`${a}.${b}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${b}\r`}}}a&&this._methodNamespaceCache.set(a,l)}_getFunctionCompletionItems(s,a,l=!1){const u=[],p=[];for(const[m,v]of s){const{value:g,children:b}=v;if(m.startsWith("ns")){const w=this._getNamespaceCompletionItem(g[0]);if(a){p.push({...w});const z=`${a}.${w.label}`;w.label=z,w.insertText=z}const k=this._getFunctionCompletionItems(b,w.label,l);a||(l?this._userOutermostNsItems.set(m,w):this._outermostNsItems.set(m,w)),u.push(...k)}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:k}=w;w.label=`${a}.${k}`,w.insertText=`${a}.${w.insertText}`,w.filterText=`${k}\r`}u.push(w)}}return p.length&&a&&(l?this._mergeUserCompletions(a,p):this._mergeCompletions(a,p)),u}_getSnippetsCompletionsList(){return Bu.map(s=>{const{label:a,kind:l,insertText:u}=s,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:pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:pt.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(s,a){for(const[l,u]of s){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((b,w)=>{const k=w.args;return k&&k.length&&k.forEach(z=>{b.set(z.name,z)}),b},m);const v=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${p}`:p;this._funcArgsCache.set(g,v)}}}_getUserFuncArgumentsCompletionItemsToCache(s,a){for(const[l,u]of s){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((b,w)=>{const k=w.args;return k&&k.length&&k.forEach(z=>{b.set(z.name,z)}),b},m);const v=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${p}`:p;this._userFuncArgsCache.set(g,v)}}}_getNamedArgumentsCompletionList(s){return s.map(a=>{const{name:l,desc:u,displayType:p}=a,m=`${l} = `,v=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,v)},insertText:m,detail:`(${Ie.parameter}) ${Ie.types} ${p}`,kind:pt.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(s,a=2,l=!0){const u=this._extractExamples(s),p=this._extractDescription(s),m=[this._createDescriptionSection(p)];u.length?m.push(this._createExampleSection(u)):s.syntax&&s.syntax.length&&m.push(this._createSyntaxSection(s.syntax));const v={value:m.join(this._formatter.lineBreak)},g=l?Ie.variables:Ie.userDefinedVariable;return{documentation:v,label:s.name,insertText:s.name,kind:pt.languages.CompletionItemKind.Variable,sortText:`${a}_${s.name}`,detail:`(${g}) ${s.type}`}}_getKeywordCompletionItem(s,a=2){const l=this._extractExamples(s),u=this._extractDescription(s),p=[this._createDescriptionSection(u)];return l.length?p.push(this._createExampleSection(l)):s.syntax&&s.syntax.length&&p.push(this._createSyntaxSection(s.syntax)),{documentation:{value:p.join(this._formatter.lineBreak)},label:s.name,insertText:s.name,kind:pt.languages.CompletionItemKind.Keyword,sortText:`${a}_${s.name}`,detail:`(${Ie.keywords})`}}_getTypeCompletionItem(s){const a=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(a)},label:s.name,insertText:s.name,kind:pt.languages.CompletionItemKind.Keyword,sortText:`1_${s.name}`,detail:`(${Ie.types})`}}_getCustomTypeCompletionItem(s){const a=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(a)},label:s.name,insertText:s.name,kind:pt.languages.CompletionItemKind.Keyword,sortText:`2_${s.name}`,detail:`(${Ie.userDefinedType})`}}_getInstanceTypeCompletionItemProp(s){const a=this._extractDescription(s),l=[];return a&&l.push(this._formatter.paragraph(this._formatter.bold(ft.Description),this._formatter.lineBreak,a)),{documentation:{value:l.join(this._formatter.lineBreak)},label:s.name,insertText:s.name,kind:pt.languages.CompletionItemKind.Field,sortText:`2_${s.name}`,detail:`(${Ie.field}) ${s.type}`}}_getFunctionCompletionItem(s,a=2,l=!0){var E;const u=s.returnedTypes&&s.returnedTypes[0]||s.syntax&&s.syntax[0]&&((E=s.syntax[0].split("→").pop())==null?void 0:E.trim()),p=this._extractExamples(s),m=this._extractDescription(s),v=[this._createDescriptionSection(m)];p.length?v.push(this._createExampleSection(p)):s.syntax&&s.syntax.length&&v.push(this._createSyntaxSection(s.syntax)),s.returns&&s.returns.length&&v.push(this._createReturnSection(s.returns));const g={value:v.join(this._formatter.lineBreak)},b=s.name,w=l?Ie.functions:Ie.userDefinedFunction,k=s.template,z=k?`${Hu(b)}<\${1}>`:b;return{documentation:g,label:k?`${b.replace(/<.+>/,"")}<type>`:b,kind:pt.languages.CompletionItemKind.Function,sortText:`${a}_${b}`,insertTextRules:pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:z+this._bracketsPostfix,detail:`(${w}) ${Ie.returns} ${u}`,command:{id:"tcc.editor.function",title:"",arguments:[k?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(s,a=2){const l=[this._createDescriptionSection(Ie.namespaceDesc)];return{label:s.name,documentation:{value:l.join(this._formatter.lineBreak)},detail:`(${Ie.namespace}) ${s.name}`,insertText:s.name,sortText:`${a}_${s.name}`,kind:pt.languages.CompletionItemKind.Module}}_extractExamples(s){let a;return s.examples||s.detailedDesc&&((a=s.detailedDesc[0])===null||a===void 0?void 0:a.examples)||[]}_extractDescription(s){return Array.isArray(s.desc)?s.desc.join(this._formatter.lineBreak):s.desc||""}_createExampleSection(s){return this._formatter.paragraph(this._formatter.bold(ft.Example),this._formatter.pineCode(s.join(this._formatter.lineBreak)))}_createSyntaxSection(s){return this._formatter.paragraph(this._formatter.bold(ft.Syntax),this._formatter.pineCode(s.join(this._formatter.lineBreak)))}_createReturnSection(s){return this._formatter.paragraph(this._formatter.bold(ft.Returns),this._formatter.lineBreak,s.join(this._formatter.lineBreak))}_createDescriptionSection(s){return!s||s.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(ft.Description),this._formatter.lineBreak,s)}}const Sr=new Xu;class Yu{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(s,a){const{functions:l,variables:u,types:p,methods:m}=s;l&&(this._userFunctions=l),u&&(this._userVariables=u),p&&(this._userTypes=p),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(s,a,l){const u=s.indexOf("//");if(this._removeString(s).indexOf("//")!==-1&&u<=a)return;s=s+" ";const p=this._getVariablesDocVal(s,a,l);if(p)return p;const m=this._getFuncsDocVal(s,a,l);if(m)return m;const v=s.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(v){const g=this._matchContent(v,s,a);if(g){const b=this._getBuildInOther(g.name);if(b)return{docValue:b,isBuildIn:!0,index:0};{const w=this._getBuildInFunc(`${g.name}<type>`);if(w)return{docValue:w,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(s){return rr.functions.get(s)}_getBuildInMethod(s){return rr.methods.get(s)}_getBuildInOther(s){const{keywords:a,variables:l,constants:u,types:p}=rr;return a.get(s)||l.get(s)||u.get(s)||p.get(s)}parseCurrentInputFunc(s,a=!1,l=!1){let u=s.length-1,p=0,m=a,v=l;for(;u>=0;){const g=s.charAt(u);if(u-=1,/['"]/.test(g)){const b=g;if(g==="'"){if(m){m=!1;continue}}else if(v){v=!1;continue}for(;u>=0;){const w=s.charAt(u);if(u-=1,w===b)break}}if(!(m||v)&&(/\)/.test(g)&&(p+=1),/\(/.test(g))){if(p>0){p-=1;continue}let b="";for(;u>=0;){const w=s.charAt(u);if(u-=1,!(/\s/.test(w)&&!b)){if(/[^\w.]/.test(w))break;b=w+b}}if(b)return{funcName:b,startIndex:u+1}}}}parseCurrentInputFuncAndArg(s,a=!1,l=!1){const{funcName:u,startIndex:p}=this.parseCurrentInputFunc(s,a,l)||{};if(u&&typeof p=="number"){let m=s.slice(p+u.length).trim().slice(1),v=-1;if(a&&(v=m.lastIndexOf("'")),l){const w=m.lastIndexOf('"');(w!==-1&&w<v||v===-1)&&(v=w)}v!==-1&&(m=m.substring(0,v));const b=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(w=>{const k=w.trim().split("=");return k.length<=1?"":k[0].trim()});return{funcName:u,args:b}}}_removeString(s){return s.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(s,a,l){const u=this._removeString(s).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,s,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},v=this._getBuildInOther(p.name);if(v)return m.docValue=v,m;const g=this._getUserVariablesDocVal(p.name,a,l);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1});const b=this._getUserTypesDocVal(p.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const w=this._getTypesAndFileds(s,p.name,a,l);if(w&&typeof w!="string")return Object.assign(m,{docValue:[w],isBuildIn:!1})}}}_getUserVariablesDocVal(s,a,l){const m=[...this._userVariables.get(s)||[]].sort((v,g)=>(g.scope||0)-(v.scope||0)).find(v=>{const g=v.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(s){const a=this._userTypes.get(s);if(a)return a[0].title=Ie.userDefinedType,a}_getTypesAndFileds(s,a,l,u){var p,m;if(a.includes(".")){const v=a.split(".");let g=v[0],b,w=null,k=s.indexOf(a,l-a.length)+1,z=k+g.length-1;for(const E of v.slice(1)){if(!w){const R=k<=l&&z>=l,L=this._getUserVariablesDocVal(g,l,u);if(R&&L)return L;w=L==null?void 0:L.type}if(w){b=w,k=z+2,z=z+E.length+1;const R=this._userTypes.get(w),L=(m=(p=R==null?void 0:R[0])==null?void 0:p.fields)==null?void 0:m.find(J=>J.name===E);if(L&&k<=l&&z>=l)return{name:`${w}.${E}`,type:this._arrayTypeTransform(L.type),title:Ie.field};w=L==null?void 0:L.type}else g=`${g}.${E}`,z=z+E.length+1}return b}}_getFuncsDocVal(s,a,l){const u=s.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,s,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},v=this._getBuildInFunc(p.name);if(v)return m.index=this._getOverloadsFuncIndex(v,a,p.name,l),Object.assign(m,{docValue:v});const g=this._getUserFuncsDocVal(p.name);if(g)return Object.assign(m,{docValue:g,isBuildIn:!1});const b=this._getUserVarFuncsDocVal(s,p.name,a,l);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1})}}}_getOverloadsFuncIndex(s,a,l,u){if(s.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(s){const a=this._userFunctions.get(s);if(a)return a[0].title=Ie.userDefinedFunction,a}_getUserMethodsDocVal(s){const a=this._userMethods.get(s);if(a)return a[0].title=Ie.userDefinedMethod,a}_getUserVarFuncsDocVal(s,a,l,u){var p;if(a.includes(".")){const m=a.split("."),v=this._getTypesAndFileds(s,a,l,u);if(typeof v=="string"){const b=`${this._arrayTypeTransform(v).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,w=this._getBuildInMethod(b);if(w){const k=this._getOverloadsFuncIndex(w,l,b,u);return{...w[0],name:b,index:k}}return(p=this._getUserMethodsDocVal(b))==null?void 0:p[0]}else return v}}_arrayTypeTransform(s=""){return s.includes("[]")?`array<${s.replace("[]","")}>`:s}_matchContent(s,a,l){let u=0;for(const p of s){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(s,a,l){const u=s.charAt(a-1),p=/[\w\d."']/;if(p.test(u))return!1;const m=s.charAt(l);return!p.test(m)}}const oa=new Yu;var Wa={exports:{}};/**
105
+ \`\`\``}code(s){return`\`${s}\``}paragraph(...s){return[this.paragraphBreak,...s,this.paragraphBreak].join(this.lineBreak)}link(s,a){return`[${s}](${a.href})`}}const fe=new Vu;function $u(n,s=0,a=!0){const l=n[s];if(!l)return"";const u=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:p,title:m,desc:v,type:g,syntax:b,returns:w,remarks:k,fields:z}=l,E=[`${fe.bold(p)} (${m})`];if(n.length>1&&E.push(fe.italic(`+${n.length-1} overloads`)),E.push(fe.delimiter),v&&E.push(fe.paragraph(Array.isArray(v)?v.join(fe.lineBreak):v||"")),g&&E.push(fe.paragraph(fe.bold(ft.Type),fe.italic(g))),b&&b.length&&E.push(fe.paragraph(fe.bold(ft.Syntax),fe.pineCode(b.join(fe.lineBreak)))),w&&E.push(fe.paragraph(fe.bold(ft.Returns),fe.lineBreak,w.join(fe.lineBreak))),k&&k.length&&n.length<=1){let R="";typeof k=="string"?R=k:R=k.join(fe.lineBreak)||"",R.length<200&&E.push(fe.paragraph(fe.bold(ft.Remarks),fe.lineBreak,R))}if(z){const R=[];for(const L of z){const Z=L.desc?` - ${L.desc}`:"";R.push(`${L.name} (${L.type}) ${Z}`)}E.push(fe.paragraph(fe.bold(ft.Fields),fe.lineBreak,R.join(fe.paragraphBreak)))}return a&&E.push(fe.italic(`${fe.code(u?"⌘":"Ctrl")} + ${ju.clickOnKeywordForMoreHelp}`)),E.join(E.length===2?" ":fe.lineBreak)}function Gu(n){return n.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}class Xu{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=fe,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(s){return this._funcArgsCache.get(s)||this._userFuncArgsCache.get(s)}getSuggestions(s){return s?this._namespaceCache.get(s)||this._userNamespaceCache.get(s):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(s,a,l,u){this._initUserDefind();const p=this._mergeTreeSlices(this._generateTreeSlice(rr.methods,"method"),this._generateTreeSlice(u,"method"));this._getMethodNamespaceCache(p),this._userMethods=u,this._userTypes=a,this._userFunctions=s;const m=this._generateTreeSlice(s,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(l,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(s,a,l){const u=this._getUserVariableCompletionItems(l),p=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(s,void 0,!0);return[...p,...m,...u,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:s,keywords:a,types:l,functions:u}=this._builtinSubtreeCache,p=this._getVariableCompletionItems(s),m=this._getKeywordCompletionItems(a),v=this._getTypeCompletionItems(l),g=this._getFunctionCompletionItems(u),b=this._getSnippetsCompletionsList();return[...p,...m,...v,...g,...this._outermostNsItems.values(),...b]}_getNodeKey(s,a){return`${a}_${s}`}_mergeTreeSlices(...s){const a=new Map;for(const l of s)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(s,a){const l=this._namespaceCache.get(s);l?this._namespaceCache.set(s,[...l,...a]):this._namespaceCache.set(s,a)}_mergeUserCompletions(s,a){const l=this._userNamespaceCache.get(s);l?this._userNamespaceCache.set(s,[...l,...a]):this._userNamespaceCache.set(s,a)}_generateTreeSlice(s,a){const l=new Map;for(const[u,p]of s){const[m,...v]=u.split("."),g=v.length>0,b=l.get(this._getNodeKey(m,g?"ns":a));let w=new Map,k=p.map(E=>({...E,name:u})),z=this._getNodeKey(u,a);if(g&&a!=="type"){const E=new Map([[v.join("."),p]]);k=[{name:m,title:Ie.namespace}],z=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(E,a)}b&&(k=[{name:m,title:Ie.namespace}],w=this._mergeTreeSlices(b.children,w)),l.set(z,{value:k,children:w})}return l}_getBuiltinsCacheFragment(){const{keywords:s,variables:a,constants:l,types:u,functions:p}=rr;return this._builtinSubtreeCache={keywords:this._generateTreeSlice(s,"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(s,a){const l=[],u=[];for(const[p,m]of s){const{value:v,children:g}=m;if(p.startsWith("ns")){const b=this._getNamespaceCompletionItem(v[0]);if(a){u.push({...b});const k=`${a}.${b.label}`;b.label=k,b.insertText=k}const w=this._getVariableCompletionItems(g,b.label);a||this._outermostNsItems.set(p,b),l.push(...w)}else{const b=this._getVariableCompletionItem(v[0],a?3:2);if(a){u.push({...b});const{label:w}=b;b.label=`${a}.${w}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${w}\r`}l.push(b)}}return u.length&&a&&this._mergeCompletions(a,u),l}_setUserVariableSubItems(s,a){var g,b;let l=[];const u=Gu(s.type||""),p=this._methodNamespaceCache.get(u),m=a?`${a}.${s.name}`:s.name;p&&(l=p.filter(w=>{var R;const k=`${u}.${w.label}`,z=rr.methods.get(k)||this._userMethods.get(k),E=z==null?void 0:z.some(L=>!L.thisType||L.thisType[0].includes("<>")||L.thisType.includes(s.type||""));if(E&&z){const L=this._getNamedArgumentsCompletionList(((R=z[0])==null?void 0:R.args)||[]),Z=`${m}.${w.label}`;this._userFuncArgsCache.set(Z,L),this._methodFuncs.set(Z,z)}return E}));const v=(b=(g=this._userTypes.get(u))==null?void 0:g[0])==null?void 0:b.fields;if(v)for(const w of v){const k=w.name,z=w.type,E=this._getInstanceTypeCompletionItemProp({name:k,type:z});this._setUserVariableSubItems({name:k,type:z},s.name),l.push({...E})}l.length&&this._mergeUserCompletions(m,l)}_getUserVariableCompletionItems(s,a){const l=[],u=[];for(const[p,m]of s){const{value:v,children:g}=m;if(this._setUserVariableSubItems(v[0]),p.startsWith("ns")){const b=this._getNamespaceCompletionItem(v[0]);if(a){u.push({...b});const k=`${a}.${b.label}`;b.label=k,b.insertText=k}const w=this._getUserVariableCompletionItems(g,b.label);a||this._userOutermostNsItems.set(p,b),l.push(...w)}else{const b=this._getVariableCompletionItem(v[0],a?2:1,!0);if(a){u.push({...b});const{label:w}=b;b.label=`${a}.${w}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${w}\r`}l.push(b)}}return u.length&&a&&this._mergeUserCompletions(a,u),l}_getTypeCompletionItems(s,a=!1){const l=[];for(const[,u]of s){const{value:p}=u,m=a?this._getCustomTypeCompletionItem(p[0]):this._getTypeCompletionItem(p[0]);l.push(m)}return l}_getKeywordCompletionItems(s){const a=[];for(const[,l]of s){const{value:u}=l,p=this._getKeywordCompletionItem(u[0]);a.push(p)}return a}_getMethodNamespaceCache(s,a){const l=[];for(const[u,p]of s){const{value:m,children:v}=p;if(u.startsWith("ns")){const g=this._getNamespaceCompletionItem(m[0]);if(a){l.push({...g});const b=`${a}.${g.label}`;g.label=b,g.insertText=b}this._getMethodNamespaceCache(v,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:b}=g;g.label=`${a}.${b}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${b}\r`}}}a&&this._methodNamespaceCache.set(a,l)}_getFunctionCompletionItems(s,a,l=!1){const u=[],p=[];for(const[m,v]of s){const{value:g,children:b}=v;if(m.startsWith("ns")){const w=this._getNamespaceCompletionItem(g[0]);if(a){p.push({...w});const z=`${a}.${w.label}`;w.label=z,w.insertText=z}const k=this._getFunctionCompletionItems(b,w.label,l);a||(l?this._userOutermostNsItems.set(m,w):this._outermostNsItems.set(m,w)),u.push(...k)}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:k}=w;w.label=`${a}.${k}`,w.insertText=`${a}.${w.insertText}`,w.filterText=`${k}\r`}u.push(w)}}return p.length&&a&&(l?this._mergeUserCompletions(a,p):this._mergeCompletions(a,p)),u}_getSnippetsCompletionsList(){return Bu.map(s=>{const{label:a,kind:l,insertText:u}=s,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:pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:pt.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(s,a){for(const[l,u]of s){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((b,w)=>{const k=w.args;return k&&k.length&&k.forEach(z=>{b.set(z.name,z)}),b},m);const v=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${p}`:p;this._funcArgsCache.set(g,v)}}}_getUserFuncArgumentsCompletionItemsToCache(s,a){for(const[l,u]of s){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((b,w)=>{const k=w.args;return k&&k.length&&k.forEach(z=>{b.set(z.name,z)}),b},m);const v=this._getNamedArgumentsCompletionList([...m.values()]),g=a?`${a}.${p}`:p;this._userFuncArgsCache.set(g,v)}}}_getNamedArgumentsCompletionList(s){return s.map(a=>{const{name:l,desc:u,displayType:p}=a,m=`${l} = `,v=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,v)},insertText:m,detail:`(${Ie.parameter}) ${Ie.types} ${p}`,kind:pt.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(s,a=2,l=!0){const u=this._extractExamples(s),p=this._extractDescription(s),m=[this._createDescriptionSection(p)];u.length?m.push(this._createExampleSection(u)):s.syntax&&s.syntax.length&&m.push(this._createSyntaxSection(s.syntax));const v={value:m.join(this._formatter.lineBreak)},g=l?Ie.variables:Ie.userDefinedVariable;return{documentation:v,label:s.name,insertText:s.name,kind:pt.languages.CompletionItemKind.Variable,sortText:`${a}_${s.name}`,detail:`(${g}) ${s.type}`}}_getKeywordCompletionItem(s,a=2){const l=this._extractExamples(s),u=this._extractDescription(s),p=[this._createDescriptionSection(u)];return l.length?p.push(this._createExampleSection(l)):s.syntax&&s.syntax.length&&p.push(this._createSyntaxSection(s.syntax)),{documentation:{value:p.join(this._formatter.lineBreak)},label:s.name,insertText:s.name,kind:pt.languages.CompletionItemKind.Keyword,sortText:`${a}_${s.name}`,detail:`(${Ie.keywords})`}}_getTypeCompletionItem(s){const a=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(a)},label:s.name,insertText:s.name,kind:pt.languages.CompletionItemKind.Keyword,sortText:`1_${s.name}`,detail:`(${Ie.types})`}}_getCustomTypeCompletionItem(s){const a=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(a)},label:s.name,insertText:s.name,kind:pt.languages.CompletionItemKind.Keyword,sortText:`2_${s.name}`,detail:`(${Ie.userDefinedType})`}}_getInstanceTypeCompletionItemProp(s){const a=this._extractDescription(s),l=[];return a&&l.push(this._formatter.paragraph(this._formatter.bold(ft.Description),this._formatter.lineBreak,a)),{documentation:{value:l.join(this._formatter.lineBreak)},label:s.name,insertText:s.name,kind:pt.languages.CompletionItemKind.Field,sortText:`2_${s.name}`,detail:`(${Ie.field}) ${s.type}`}}_getFunctionCompletionItem(s,a=2,l=!0){var E;const u=s.returnedTypes&&s.returnedTypes[0]||s.syntax&&s.syntax[0]&&((E=s.syntax[0].split("→").pop())==null?void 0:E.trim()),p=this._extractExamples(s),m=this._extractDescription(s),v=[this._createDescriptionSection(m)];p.length?v.push(this._createExampleSection(p)):s.syntax&&s.syntax.length&&v.push(this._createSyntaxSection(s.syntax)),s.returns&&s.returns.length&&v.push(this._createReturnSection(s.returns));const g={value:v.join(this._formatter.lineBreak)},b=s.name,w=l?Ie.functions:Ie.userDefinedFunction,k=s.template,z=k?`${Hu(b)}<\${1}>`:b;return{documentation:g,label:k?`${b.replace(/<.+>/,"")}<type>`:b,kind:pt.languages.CompletionItemKind.Function,sortText:`${a}_${b}`,insertTextRules:pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:z+this._bracketsPostfix,detail:`(${w}) ${Ie.returns} ${u}`,command:{id:"tcc.editor.function",title:"",arguments:[k?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(s,a=2){const l=[this._createDescriptionSection(Ie.namespaceDesc)];return{label:s.name,documentation:{value:l.join(this._formatter.lineBreak)},detail:`(${Ie.namespace}) ${s.name}`,insertText:s.name,sortText:`${a}_${s.name}`,kind:pt.languages.CompletionItemKind.Module}}_extractExamples(s){let a;return s.examples||s.detailedDesc&&((a=s.detailedDesc[0])===null||a===void 0?void 0:a.examples)||[]}_extractDescription(s){return Array.isArray(s.desc)?s.desc.join(this._formatter.lineBreak):s.desc||""}_createExampleSection(s){return this._formatter.paragraph(this._formatter.bold(ft.Example),this._formatter.pineCode(s.join(this._formatter.lineBreak)))}_createSyntaxSection(s){return this._formatter.paragraph(this._formatter.bold(ft.Syntax),this._formatter.pineCode(s.join(this._formatter.lineBreak)))}_createReturnSection(s){return this._formatter.paragraph(this._formatter.bold(ft.Returns),this._formatter.lineBreak,s.join(this._formatter.lineBreak))}_createDescriptionSection(s){return!s||s.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(ft.Description),this._formatter.lineBreak,s)}}const Sr=new Xu;class Yu{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(s,a){const{functions:l,variables:u,types:p,methods:m}=s;l&&(this._userFunctions=l),u&&(this._userVariables=u),p&&(this._userTypes=p),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(s,a,l){const u=s.indexOf("//");if(this._removeString(s).indexOf("//")!==-1&&u<=a)return;s=s+" ";const p=this._getVariablesDocVal(s,a,l);if(p)return p;const m=this._getFuncsDocVal(s,a,l);if(m)return m;const v=s.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(v){const g=this._matchContent(v,s,a);if(g){const b=this._getBuildInOther(g.name);if(b)return{docValue:b,isBuildIn:!0,index:0};{const w=this._getBuildInFunc(`${g.name}<type>`);if(w)return{docValue:w,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(s){return rr.functions.get(s)}_getBuildInMethod(s){return rr.methods.get(s)}_getBuildInOther(s){const{keywords:a,variables:l,constants:u,types:p}=rr;return a.get(s)||l.get(s)||u.get(s)||p.get(s)}parseCurrentInputFunc(s,a=!1,l=!1){let u=s.length-1,p=0,m=a,v=l;for(;u>=0;){const g=s.charAt(u);if(u-=1,/['"]/.test(g)){const b=g;if(g==="'"){if(m){m=!1;continue}}else if(v){v=!1;continue}for(;u>=0;){const w=s.charAt(u);if(u-=1,w===b)break}}if(!(m||v)&&(/\)/.test(g)&&(p+=1),/\(/.test(g))){if(p>0){p-=1;continue}let b="";for(;u>=0;){const w=s.charAt(u);if(u-=1,!(/\s/.test(w)&&!b)){if(/[^\w.]/.test(w))break;b=w+b}}if(b)return{funcName:b,startIndex:u+1}}}}parseCurrentInputFuncAndArg(s,a=!1,l=!1){const{funcName:u,startIndex:p}=this.parseCurrentInputFunc(s,a,l)||{};if(u&&typeof p=="number"){let m=s.slice(p+u.length).trim().slice(1),v=-1;if(a&&(v=m.lastIndexOf("'")),l){const w=m.lastIndexOf('"');(w!==-1&&w<v||v===-1)&&(v=w)}v!==-1&&(m=m.substring(0,v));const b=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(w=>{const k=w.trim().split("=");return k.length<=1?"":k[0].trim()});return{funcName:u,args:b}}}_removeString(s){return s.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(s,a,l){const u=this._removeString(s).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,s,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},v=this._getBuildInOther(p.name);if(v)return m.docValue=v,m;const g=this._getUserVariablesDocVal(p.name,a,l);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1});const b=this._getUserTypesDocVal(p.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const w=this._getTypesAndFileds(s,p.name,a,l);if(w&&typeof w!="string")return Object.assign(m,{docValue:[w],isBuildIn:!1})}}}_getUserVariablesDocVal(s,a,l){const m=[...this._userVariables.get(s)||[]].sort((v,g)=>(g.scope||0)-(v.scope||0)).find(v=>{const g=v.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(s){const a=this._userTypes.get(s);if(a)return a[0].title=Ie.userDefinedType,a}_getTypesAndFileds(s,a,l,u){var p,m;if(a.includes(".")){const v=a.split(".");let g=v[0],b,w=null,k=s.indexOf(a,l-a.length)+1,z=k+g.length-1;for(const E of v.slice(1)){if(!w){const R=k<=l&&z>=l,L=this._getUserVariablesDocVal(g,l,u);if(R&&L)return L;w=L==null?void 0:L.type}if(w){b=w,k=z+2,z=z+E.length+1;const R=this._userTypes.get(w),L=(m=(p=R==null?void 0:R[0])==null?void 0:p.fields)==null?void 0:m.find(Z=>Z.name===E);if(L&&k<=l&&z>=l)return{name:`${w}.${E}`,type:this._arrayTypeTransform(L.type),title:Ie.field};w=L==null?void 0:L.type}else g=`${g}.${E}`,z=z+E.length+1}return b}}_getFuncsDocVal(s,a,l){const u=s.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,s,a);if(p){const m={docValue:void 0,isBuildIn:!0,index:0},v=this._getBuildInFunc(p.name);if(v)return m.index=this._getOverloadsFuncIndex(v,a,p.name,l),Object.assign(m,{docValue:v});const g=this._getUserFuncsDocVal(p.name);if(g)return Object.assign(m,{docValue:g,isBuildIn:!1});const b=this._getUserVarFuncsDocVal(s,p.name,a,l);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1})}}}_getOverloadsFuncIndex(s,a,l,u){if(s.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(s){const a=this._userFunctions.get(s);if(a)return a[0].title=Ie.userDefinedFunction,a}_getUserMethodsDocVal(s){const a=this._userMethods.get(s);if(a)return a[0].title=Ie.userDefinedMethod,a}_getUserVarFuncsDocVal(s,a,l,u){var p;if(a.includes(".")){const m=a.split("."),v=this._getTypesAndFileds(s,a,l,u);if(typeof v=="string"){const b=`${this._arrayTypeTransform(v).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,w=this._getBuildInMethod(b);if(w){const k=this._getOverloadsFuncIndex(w,l,b,u);return{...w[0],name:b,index:k}}return(p=this._getUserMethodsDocVal(b))==null?void 0:p[0]}else return v}}_arrayTypeTransform(s=""){return s.includes("[]")?`array<${s.replace("[]","")}>`:s}_matchContent(s,a,l){let u=0;for(const p of s){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(s,a,l){const u=s.charAt(a-1),p=/[\w\d."']/;if(p.test(u))return!1;const m=s.charAt(l);return!p.test(m)}}const oa=new Yu;var Wa={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
- */Wa.exports,function(n,s){(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",v="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",b=500,w="__lodash_placeholder__",k=1,z=2,E=4,R=1,L=2,J=1,de=2,ee=4,De=8,ne=16,Y=32,le=64,K=128,Ne=256,_e=512,re=30,yt="...",kt=800,Pe=16,we=1,W=2,ye=3,Re=1/0,Me=9007199254740991,Ot=17976931348623157e292,jt=NaN,V=4294967295,ge=V-1,Le=V>>>1,Ut=[["ary",K],["bind",J],["bindKey",de],["curry",De],["curryRight",ne],["flip",_e],["partial",Y],["partialRight",le],["rearg",Ne]],$e="[object Arguments]",sr="[object Array]",da="[object AsyncFunction]",Et="[object Boolean]",Wt="[object Date]",Nr="[object DOMException]",Pr="[object Error]",_r="[object Function]",Qa="[object GeneratorFunction]",st="[object Map]",Mt="[object Number]",Rr="[object Null]",ht="[object Object]",pa="[object Promise]",Or="[object Proxy]",gr="[object RegExp]",it="[object Set]",Ht="[object String]",Er="[object Symbol]",ii="[object Undefined]",ir="[object WeakMap]",Za="[object WeakSet]",At="[object ArrayBuffer]",nr="[object DataView]",Mr="[object Float32Array]",Lr="[object Float64Array]",br="[object Int8Array]",ma="[object Int16Array]",fa="[object Int32Array]",ya="[object Uint8Array]",ha="[object Uint8ClampedArray]",_a="[object Uint16Array]",ga="[object Uint32Array]",ni=/\b__p \+= '';/g,ba=/\b(__p \+=) '' \+/g,Ja=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vt=/&(?:amp|lt|gt|quot|#39);/g,Fr=/[&<>"']/g,xa=RegExp(Vt.source),es=RegExp(Fr.source),oi=/<%-([\s\S]+?)%>/g,ts=/<%([\s\S]+?)%>/g,rs=/<%=([\s\S]+?)%>/g,as=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ss=/^\w*$/,li=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,va=/[\\^$.*+?()[\]{}|]/g,is=RegExp(va.source),wa=/^\s+/,ci=/\s/,ui=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,di=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,S=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,N=/[()=,{}\[\]\/\s]/,H=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,se=/^[-+]0x[0-9a-f]+$/i,te=/^0b[01]+$/i,Be=/^\[object .+?Constructor\]$/,ke=/^0o[0-7]+$/i,qe=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qt=/($^)/,ns=/['\n\r\u2028\u2029\\]/g,Ze="\\ud800-\\udfff",Fd="\\u0300-\\u036f",Bd="\\ufe20-\\ufe2f",jd="\\u20d0-\\u20ff",no=Fd+Bd+jd,oo="\\u2700-\\u27bf",lo="a-z\\xdf-\\xf6\\xf8-\\xff",Ud="\\xac\\xb1\\xd7\\xf7",Wd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hd="\\u2000-\\u206f",Vd=" \\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",co="A-Z\\xc0-\\xd6\\xd8-\\xde",uo="\\ufe0e\\ufe0f",po=Ud+Wd+Hd+Vd,pi="['’]",$d="["+Ze+"]",mo="["+po+"]",os="["+no+"]",fo="\\d+",Gd="["+oo+"]",yo="["+lo+"]",ho="[^"+Ze+po+fo+oo+lo+co+"]",mi="\\ud83c[\\udffb-\\udfff]",Xd="(?:"+os+"|"+mi+")",_o="[^"+Ze+"]",fi="(?:\\ud83c[\\udde6-\\uddff]){2}",yi="[\\ud800-\\udbff][\\udc00-\\udfff]",Br="["+co+"]",go="\\u200d",bo="(?:"+yo+"|"+ho+")",Yd="(?:"+Br+"|"+ho+")",xo="(?:"+pi+"(?:d|ll|m|re|s|t|ve))?",vo="(?:"+pi+"(?:D|LL|M|RE|S|T|VE))?",wo=Xd+"?",To="["+uo+"]?",Kd="(?:"+go+"(?:"+[_o,fi,yi].join("|")+")"+To+wo+")*",Qd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Io=To+wo+Kd,Jd="(?:"+[Gd,fi,yi].join("|")+")"+Io,ep="(?:"+[_o+os+"?",os,fi,yi,$d].join("|")+")",tp=RegExp(pi,"g"),rp=RegExp(os,"g"),hi=RegExp(mi+"(?="+mi+")|"+ep+Io,"g"),ap=RegExp([Br+"?"+yo+"+"+xo+"(?="+[mo,Br,"$"].join("|")+")",Yd+"+"+vo+"(?="+[mo,Br+bo,"$"].join("|")+")",Br+"?"+bo+"+"+xo,Br+"+"+vo,Zd,Qd,fo,Jd].join("|"),"g"),sp=RegExp("["+go+Ze+no+uo+"]"),ip=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,np=["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"],op=-1,ve={};ve[Mr]=ve[Lr]=ve[br]=ve[ma]=ve[fa]=ve[ya]=ve[ha]=ve[_a]=ve[ga]=!0,ve[$e]=ve[sr]=ve[At]=ve[Et]=ve[nr]=ve[Wt]=ve[Pr]=ve[_r]=ve[st]=ve[Mt]=ve[ht]=ve[gr]=ve[it]=ve[Ht]=ve[ir]=!1;var xe={};xe[$e]=xe[sr]=xe[At]=xe[nr]=xe[Et]=xe[Wt]=xe[Mr]=xe[Lr]=xe[br]=xe[ma]=xe[fa]=xe[st]=xe[Mt]=xe[ht]=xe[gr]=xe[it]=xe[Ht]=xe[Er]=xe[ya]=xe[ha]=xe[_a]=xe[ga]=!0,xe[Pr]=xe[_r]=xe[ir]=!1;var lp={À:"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"},cp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},up={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},dp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pp=parseFloat,mp=parseInt,Do=typeof ea=="object"&&ea&&ea.Object===Object&&ea,fp=typeof self=="object"&&self&&self.Object===Object&&self,je=Do||fp||Function("return this")(),_i=s&&!s.nodeType&&s,xr=_i&&!0&&n&&!n.nodeType&&n,ko=xr&&xr.exports===_i,gi=ko&&Do.process,_t=function(){try{var _=xr&&xr.require&&xr.require("util").types;return _||gi&&gi.binding&&gi.binding("util")}catch{}}(),Ao=_t&&_t.isArrayBuffer,qo=_t&&_t.isDate,Co=_t&&_t.isMap,So=_t&&_t.isRegExp,zo=_t&&_t.isSet,No=_t&&_t.isTypedArray;function nt(_,D,T){switch(T.length){case 0:return _.call(D);case 1:return _.call(D,T[0]);case 2:return _.call(D,T[0],T[1]);case 3:return _.call(D,T[0],T[1],T[2])}return _.apply(D,T)}function yp(_,D,T,O){for(var $=-1,ue=_==null?0:_.length;++$<ue;){var Oe=_[$];D(O,Oe,T(Oe),_)}return O}function gt(_,D){for(var T=-1,O=_==null?0:_.length;++T<O&&D(_[T],T,_)!==!1;);return _}function hp(_,D){for(var T=_==null?0:_.length;T--&&D(_[T],T,_)!==!1;);return _}function Po(_,D){for(var T=-1,O=_==null?0:_.length;++T<O;)if(!D(_[T],T,_))return!1;return!0}function or(_,D){for(var T=-1,O=_==null?0:_.length,$=0,ue=[];++T<O;){var Oe=_[T];D(Oe,T,_)&&(ue[$++]=Oe)}return ue}function ls(_,D){var T=_==null?0:_.length;return!!T&&jr(_,D,0)>-1}function bi(_,D,T){for(var O=-1,$=_==null?0:_.length;++O<$;)if(T(D,_[O]))return!0;return!1}function Te(_,D){for(var T=-1,O=_==null?0:_.length,$=Array(O);++T<O;)$[T]=D(_[T],T,_);return $}function lr(_,D){for(var T=-1,O=D.length,$=_.length;++T<O;)_[$+T]=D[T];return _}function xi(_,D,T,O){var $=-1,ue=_==null?0:_.length;for(O&&ue&&(T=_[++$]);++$<ue;)T=D(T,_[$],$,_);return T}function _p(_,D,T,O){var $=_==null?0:_.length;for(O&&$&&(T=_[--$]);$--;)T=D(T,_[$],$,_);return T}function vi(_,D){for(var T=-1,O=_==null?0:_.length;++T<O;)if(D(_[T],T,_))return!0;return!1}var gp=wi("length");function bp(_){return _.split("")}function xp(_){return _.match(S)||[]}function Ro(_,D,T){var O;return T(_,function($,ue,Oe){if(D($,ue,Oe))return O=ue,!1}),O}function cs(_,D,T,O){for(var $=_.length,ue=T+(O?1:-1);O?ue--:++ue<$;)if(D(_[ue],ue,_))return ue;return-1}function jr(_,D,T){return D===D?Np(_,D,T):cs(_,Oo,T)}function vp(_,D,T,O){for(var $=T-1,ue=_.length;++$<ue;)if(O(_[$],D))return $;return-1}function Oo(_){return _!==_}function Eo(_,D){var T=_==null?0:_.length;return T?Ii(_,D)/T:jt}function wi(_){return function(D){return D==null?a:D[_]}}function Ti(_){return function(D){return _==null?a:_[D]}}function Mo(_,D,T,O,$){return $(_,function(ue,Oe,be){T=O?(O=!1,ue):D(T,ue,Oe,be)}),T}function wp(_,D){var T=_.length;for(_.sort(D);T--;)_[T]=_[T].value;return _}function Ii(_,D){for(var T,O=-1,$=_.length;++O<$;){var ue=D(_[O]);ue!==a&&(T=T===a?ue:T+ue)}return T}function Di(_,D){for(var T=-1,O=Array(_);++T<_;)O[T]=D(T);return O}function Tp(_,D){return Te(D,function(T){return[T,_[T]]})}function Lo(_){return _&&_.slice(0,Uo(_)+1).replace(wa,"")}function ot(_){return function(D){return _(D)}}function ki(_,D){return Te(D,function(T){return _[T]})}function Ta(_,D){return _.has(D)}function Fo(_,D){for(var T=-1,O=_.length;++T<O&&jr(D,_[T],0)>-1;);return T}function Bo(_,D){for(var T=_.length;T--&&jr(D,_[T],0)>-1;);return T}function Ip(_,D){for(var T=_.length,O=0;T--;)_[T]===D&&++O;return O}var Dp=Ti(lp),kp=Ti(cp);function Ap(_){return"\\"+dp[_]}function qp(_,D){return _==null?a:_[D]}function Ur(_){return sp.test(_)}function Cp(_){return ip.test(_)}function Sp(_){for(var D,T=[];!(D=_.next()).done;)T.push(D.value);return T}function Ai(_){var D=-1,T=Array(_.size);return _.forEach(function(O,$){T[++D]=[$,O]}),T}function jo(_,D){return function(T){return _(D(T))}}function cr(_,D){for(var T=-1,O=_.length,$=0,ue=[];++T<O;){var Oe=_[T];(Oe===D||Oe===w)&&(_[T]=w,ue[$++]=T)}return ue}function us(_){var D=-1,T=Array(_.size);return _.forEach(function(O){T[++D]=O}),T}function zp(_){var D=-1,T=Array(_.size);return _.forEach(function(O){T[++D]=[O,O]}),T}function Np(_,D,T){for(var O=T-1,$=_.length;++O<$;)if(_[O]===D)return O;return-1}function Pp(_,D,T){for(var O=T+1;O--;)if(_[O]===D)return O;return O}function Wr(_){return Ur(_)?Op(_):gp(_)}function Ct(_){return Ur(_)?Ep(_):bp(_)}function Uo(_){for(var D=_.length;D--&&ci.test(_.charAt(D)););return D}var Rp=Ti(up);function Op(_){for(var D=hi.lastIndex=0;hi.test(_);)++D;return D}function Ep(_){return _.match(hi)||[]}function Mp(_){return _.match(ap)||[]}var Lp=function _(D){D=D==null?je:Hr.defaults(je.Object(),D,Hr.pick(je,np));var T=D.Array,O=D.Date,$=D.Error,ue=D.Function,Oe=D.Math,be=D.Object,qi=D.RegExp,Fp=D.String,bt=D.TypeError,ds=T.prototype,Bp=ue.prototype,Vr=be.prototype,ps=D["__core-js_shared__"],ms=Bp.toString,he=Vr.hasOwnProperty,jp=0,Wo=function(){var e=/[^.]+$/.exec(ps&&ps.keys&&ps.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),fs=Vr.toString,Up=ms.call(be),Wp=je._,Hp=qi("^"+ms.call(he).replace(va,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ys=ko?D.Buffer:a,ur=D.Symbol,hs=D.Uint8Array,Ho=ys?ys.allocUnsafe:a,_s=jo(be.getPrototypeOf,be),Vo=be.create,$o=Vr.propertyIsEnumerable,gs=ds.splice,Go=ur?ur.isConcatSpreadable:a,Ia=ur?ur.iterator:a,vr=ur?ur.toStringTag:a,bs=function(){try{var e=kr(be,"defineProperty");return e({},"",{}),e}catch{}}(),Vp=D.clearTimeout!==je.clearTimeout&&D.clearTimeout,$p=O&&O.now!==je.Date.now&&O.now,Gp=D.setTimeout!==je.setTimeout&&D.setTimeout,xs=Oe.ceil,vs=Oe.floor,Ci=be.getOwnPropertySymbols,Xp=ys?ys.isBuffer:a,Xo=D.isFinite,Yp=ds.join,Kp=jo(be.keys,be),Ee=Oe.max,He=Oe.min,Qp=O.now,Zp=D.parseInt,Yo=Oe.random,Jp=ds.reverse,Si=kr(D,"DataView"),Da=kr(D,"Map"),zi=kr(D,"Promise"),$r=kr(D,"Set"),ka=kr(D,"WeakMap"),Aa=kr(be,"create"),ws=ka&&new ka,Gr={},em=Ar(Si),tm=Ar(Da),rm=Ar(zi),am=Ar($r),sm=Ar(ka),Ts=ur?ur.prototype:a,qa=Ts?Ts.valueOf:a,Ko=Ts?Ts.toString:a;function c(e){if(Ce(e)&&!G(e)&&!(e instanceof ie)){if(e instanceof xt)return e;if(he.call(e,"__wrapped__"))return Ql(e)}return new xt(e)}var Xr=function(){function e(){}return function(t){if(!Ae(t))return{};if(Vo)return Vo(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Is(){}function xt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}c.templateSettings={escape:oi,evaluate:ts,interpolate:rs,variable:"",imports:{_:c}},c.prototype=Is.prototype,c.prototype.constructor=c,xt.prototype=Xr(Is.prototype),xt.prototype.constructor=xt;function ie(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function im(){var e=new ie(this.__wrapped__);return e.__actions__=Je(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Je(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Je(this.__views__),e}function nm(){if(this.__filtered__){var e=new ie(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function om(){var e=this.__wrapped__.value(),t=this.__dir__,r=G(e),i=t<0,o=r?e.length:0,d=xf(0,o,this.__views__),f=d.start,h=d.end,x=h-f,A=i?h:f-1,q=this.__iteratees__,C=q.length,P=0,M=He(x,this.__takeCount__);if(!r||!i&&o==x&&M==x)return xl(e,this.__actions__);var j=[];e:for(;x--&&P<M;){A+=t;for(var Q=-1,U=e[A];++Q<C;){var ae=q[Q],oe=ae.iteratee,ut=ae.type,Ye=oe(U);if(ut==W)U=Ye;else if(!Ye){if(ut==we)continue e;break e}}j[P++]=U}return j}ie.prototype=Xr(Is.prototype),ie.prototype.constructor=ie;function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function lm(){this.__data__=Aa?Aa(null):{},this.size=0}function cm(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(Aa){var r=t[e];return r===g?a:r}return he.call(t,e)?t[e]:a}function dm(e){var t=this.__data__;return Aa?t[e]!==a:he.call(t,e)}function pm(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Aa&&t===a?g:t,this}wr.prototype.clear=lm,wr.prototype.delete=cm,wr.prototype.get=um,wr.prototype.has=dm,wr.prototype.set=pm;function $t(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function mm(){this.__data__=[],this.size=0}function fm(e){var t=this.__data__,r=Ds(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():gs.call(t,r,1),--this.size,!0}function ym(e){var t=this.__data__,r=Ds(t,e);return r<0?a:t[r][1]}function hm(e){return Ds(this.__data__,e)>-1}function _m(e,t){var r=this.__data__,i=Ds(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}$t.prototype.clear=mm,$t.prototype.delete=fm,$t.prototype.get=ym,$t.prototype.has=hm,$t.prototype.set=_m;function Gt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function gm(){this.size=0,this.__data__={hash:new wr,map:new(Da||$t),string:new wr}}function bm(e){var t=Ms(this,e).delete(e);return this.size-=t?1:0,t}function xm(e){return Ms(this,e).get(e)}function vm(e){return Ms(this,e).has(e)}function wm(e,t){var r=Ms(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Gt.prototype.clear=gm,Gt.prototype.delete=bm,Gt.prototype.get=xm,Gt.prototype.has=vm,Gt.prototype.set=wm;function Tr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Gt;++t<r;)this.add(e[t])}function Tm(e){return this.__data__.set(e,g),this}function Im(e){return this.__data__.has(e)}Tr.prototype.add=Tr.prototype.push=Tm,Tr.prototype.has=Im;function St(e){var t=this.__data__=new $t(e);this.size=t.size}function Dm(){this.__data__=new $t,this.size=0}function km(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Am(e){return this.__data__.get(e)}function qm(e){return this.__data__.has(e)}function Cm(e,t){var r=this.__data__;if(r instanceof $t){var i=r.__data__;if(!Da||i.length<u-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gt(i)}return r.set(e,t),this.size=r.size,this}St.prototype.clear=Dm,St.prototype.delete=km,St.prototype.get=Am,St.prototype.has=qm,St.prototype.set=Cm;function Qo(e,t){var r=G(e),i=!r&&qr(e),o=!r&&!i&&yr(e),d=!r&&!i&&!o&&Zr(e),f=r||i||o||d,h=f?Di(e.length,Fp):[],x=h.length;for(var A in e)(t||he.call(e,A))&&!(f&&(A=="length"||o&&(A=="offset"||A=="parent")||d&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||Qt(A,x)))&&h.push(A);return h}function Zo(e){var t=e.length;return t?e[Ui(0,t-1)]:a}function Sm(e,t){return Ls(Je(e),Ir(t,0,e.length))}function zm(e){return Ls(Je(e))}function Ni(e,t,r){(r!==a&&!zt(e[t],r)||r===a&&!(t in e))&&Xt(e,t,r)}function Ca(e,t,r){var i=e[t];(!(he.call(e,t)&&zt(i,r))||r===a&&!(t in e))&&Xt(e,t,r)}function Ds(e,t){for(var r=e.length;r--;)if(zt(e[r][0],t))return r;return-1}function Nm(e,t,r,i){return dr(e,function(o,d,f){t(i,o,r(o),f)}),i}function Jo(e,t){return e&&Ft(t,Fe(t),e)}function Pm(e,t){return e&&Ft(t,tt(t),e)}function Xt(e,t,r){t=="__proto__"&&bs?bs(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Pi(e,t){for(var r=-1,i=t.length,o=T(i),d=e==null;++r<i;)o[r]=d?a:fn(e,t[r]);return o}function Ir(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function vt(e,t,r,i,o,d){var f,h=t&k,x=t&z,A=t&E;if(r&&(f=o?r(e,i,o,d):r(e)),f!==a)return f;if(!Ae(e))return e;var q=G(e);if(q){if(f=wf(e),!h)return Je(e,f)}else{var C=Ve(e),P=C==_r||C==Qa;if(yr(e))return Tl(e,h);if(C==ht||C==$e||P&&!o){if(f=x||P?{}:Ul(e),!h)return x?df(e,Pm(f,e)):uf(e,Jo(f,e))}else{if(!xe[C])return o?e:{};f=Tf(e,C,h)}}d||(d=new St);var M=d.get(e);if(M)return M;d.set(e,f),_c(e)?e.forEach(function(U){f.add(vt(U,t,r,U,e,d))}):yc(e)&&e.forEach(function(U,ae){f.set(ae,vt(U,t,r,ae,e,d))});var j=A?x?Ji:Zi:x?tt:Fe,Q=q?a:j(e);return gt(Q||e,function(U,ae){Q&&(ae=U,U=e[ae]),Ca(f,ae,vt(U,t,r,ae,e,d))}),f}function Rm(e){var t=Fe(e);return function(r){return el(r,e,t)}}function el(e,t,r){var i=r.length;if(e==null)return!i;for(e=be(e);i--;){var o=r[i],d=t[o],f=e[o];if(f===a&&!(o in e)||!d(f))return!1}return!0}function tl(e,t,r){if(typeof e!="function")throw new bt(m);return Ea(function(){e.apply(a,r)},t)}function Sa(e,t,r,i){var o=-1,d=ls,f=!0,h=e.length,x=[],A=t.length;if(!h)return x;r&&(t=Te(t,ot(r))),i?(d=bi,f=!1):t.length>=u&&(d=Ta,f=!1,t=new Tr(t));e:for(;++o<h;){var q=e[o],C=r==null?q:r(q);if(q=i||q!==0?q:0,f&&C===C){for(var P=A;P--;)if(t[P]===C)continue e;x.push(q)}else d(t,C,i)||x.push(q)}return x}var dr=ql(Lt),rl=ql(Oi,!0);function Om(e,t){var r=!0;return dr(e,function(i,o,d){return r=!!t(i,o,d),r}),r}function ks(e,t,r){for(var i=-1,o=e.length;++i<o;){var d=e[i],f=t(d);if(f!=null&&(h===a?f===f&&!ct(f):r(f,h)))var h=f,x=d}return x}function Em(e,t,r,i){var o=e.length;for(r=X(r),r<0&&(r=-r>o?0:o+r),i=i===a||i>o?o:X(i),i<0&&(i+=o),i=r>i?0:bc(i);r<i;)e[r++]=t;return e}function al(e,t){var r=[];return dr(e,function(i,o,d){t(i,o,d)&&r.push(i)}),r}function Ue(e,t,r,i,o){var d=-1,f=e.length;for(r||(r=Df),o||(o=[]);++d<f;){var h=e[d];t>0&&r(h)?t>1?Ue(h,t-1,r,i,o):lr(o,h):i||(o[o.length]=h)}return o}var Ri=Cl(),sl=Cl(!0);function Lt(e,t){return e&&Ri(e,t,Fe)}function Oi(e,t){return e&&sl(e,t,Fe)}function As(e,t){return or(t,function(r){return Zt(e[r])})}function Dr(e,t){t=mr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Bt(t[r++])];return r&&r==i?e:a}function il(e,t,r){var i=t(e);return G(e)?i:lr(i,r(e))}function Ge(e){return e==null?e===a?ii:Rr:vr&&vr in be(e)?bf(e):Nf(e)}function Ei(e,t){return e>t}function Mm(e,t){return e!=null&&he.call(e,t)}function Lm(e,t){return e!=null&&t in be(e)}function Fm(e,t,r){return e>=He(t,r)&&e<Ee(t,r)}function Mi(e,t,r){for(var i=r?bi:ls,o=e[0].length,d=e.length,f=d,h=T(d),x=1/0,A=[];f--;){var q=e[f];f&&t&&(q=Te(q,ot(t))),x=He(q.length,x),h[f]=!r&&(t||o>=120&&q.length>=120)?new Tr(f&&q):a}q=e[0];var C=-1,P=h[0];e:for(;++C<o&&A.length<x;){var M=q[C],j=t?t(M):M;if(M=r||M!==0?M:0,!(P?Ta(P,j):i(A,j,r))){for(f=d;--f;){var Q=h[f];if(!(Q?Ta(Q,j):i(e[f],j,r)))continue e}P&&P.push(j),A.push(M)}}return A}function Bm(e,t,r,i){return Lt(e,function(o,d,f){t(i,r(o),d,f)}),i}function za(e,t,r){t=mr(t,e),e=$l(e,t);var i=e==null?e:e[Bt(Tt(t))];return i==null?a:nt(i,e,r)}function nl(e){return Ce(e)&&Ge(e)==$e}function jm(e){return Ce(e)&&Ge(e)==At}function Um(e){return Ce(e)&&Ge(e)==Wt}function Na(e,t,r,i,o){return e===t?!0:e==null||t==null||!Ce(e)&&!Ce(t)?e!==e&&t!==t:Wm(e,t,r,i,Na,o)}function Wm(e,t,r,i,o,d){var f=G(e),h=G(t),x=f?sr:Ve(e),A=h?sr:Ve(t);x=x==$e?ht:x,A=A==$e?ht:A;var q=x==ht,C=A==ht,P=x==A;if(P&&yr(e)){if(!yr(t))return!1;f=!0,q=!1}if(P&&!q)return d||(d=new St),f||Zr(e)?Fl(e,t,r,i,o,d):_f(e,t,x,r,i,o,d);if(!(r&R)){var M=q&&he.call(e,"__wrapped__"),j=C&&he.call(t,"__wrapped__");if(M||j){var Q=M?e.value():e,U=j?t.value():t;return d||(d=new St),o(Q,U,r,i,d)}}return P?(d||(d=new St),gf(e,t,r,i,o,d)):!1}function Hm(e){return Ce(e)&&Ve(e)==st}function Li(e,t,r,i){var o=r.length,d=o,f=!i;if(e==null)return!d;for(e=be(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 x=h[0],A=e[x],q=h[1];if(f&&h[2]){if(A===a&&!(x in e))return!1}else{var C=new St;if(i)var P=i(A,q,x,e,t,C);if(!(P===a?Na(q,A,R|L,i,C):P))return!1}}return!0}function ol(e){if(!Ae(e)||Af(e))return!1;var t=Zt(e)?Hp:Be;return t.test(Ar(e))}function Vm(e){return Ce(e)&&Ge(e)==gr}function $m(e){return Ce(e)&&Ve(e)==it}function Gm(e){return Ce(e)&&Hs(e.length)&&!!ve[Ge(e)]}function ll(e){return typeof e=="function"?e:e==null?rt:typeof e=="object"?G(e)?dl(e[0],e[1]):ul(e):Sc(e)}function Fi(e){if(!Oa(e))return Kp(e);var t=[];for(var r in be(e))he.call(e,r)&&r!="constructor"&&t.push(r);return t}function Xm(e){if(!Ae(e))return zf(e);var t=Oa(e),r=[];for(var i in e)i=="constructor"&&(t||!he.call(e,i))||r.push(i);return r}function Bi(e,t){return e<t}function cl(e,t){var r=-1,i=et(e)?T(e.length):[];return dr(e,function(o,d,f){i[++r]=t(o,d,f)}),i}function ul(e){var t=tn(e);return t.length==1&&t[0][2]?Hl(t[0][0],t[0][1]):function(r){return r===e||Li(r,e,t)}}function dl(e,t){return an(e)&&Wl(t)?Hl(Bt(e),t):function(r){var i=fn(r,e);return i===a&&i===t?yn(r,e):Na(t,i,R|L)}}function qs(e,t,r,i,o){e!==t&&Ri(t,function(d,f){if(o||(o=new St),Ae(d))Ym(e,t,f,r,qs,i,o);else{var h=i?i(nn(e,f),d,f+"",e,t,o):a;h===a&&(h=d),Ni(e,f,h)}},tt)}function Ym(e,t,r,i,o,d,f){var h=nn(e,r),x=nn(t,r),A=f.get(x);if(A){Ni(e,r,A);return}var q=d?d(h,x,r+"",e,t,f):a,C=q===a;if(C){var P=G(x),M=!P&&yr(x),j=!P&&!M&&Zr(x);q=x,P||M||j?G(h)?q=h:Se(h)?q=Je(h):M?(C=!1,q=Tl(x,!0)):j?(C=!1,q=Il(x,!0)):q=[]:Ma(x)||qr(x)?(q=h,qr(h)?q=xc(h):(!Ae(h)||Zt(h))&&(q=Ul(x))):C=!1}C&&(f.set(x,q),o(q,x,i,d,f),f.delete(x)),Ni(e,r,q)}function pl(e,t){var r=e.length;if(r)return t+=t<0?r:0,Qt(t,r)?e[t]:a}function ml(e,t,r){t.length?t=Te(t,function(d){return G(d)?function(f){return Dr(f,d.length===1?d[0]:d)}:d}):t=[rt];var i=-1;t=Te(t,ot(B()));var o=cl(e,function(d,f,h){var x=Te(t,function(A){return A(d)});return{criteria:x,index:++i,value:d}});return wp(o,function(d,f){return cf(d,f,r)})}function Km(e,t){return fl(e,t,function(r,i){return yn(e,i)})}function fl(e,t,r){for(var i=-1,o=t.length,d={};++i<o;){var f=t[i],h=Dr(e,f);r(h,f)&&Pa(d,mr(f,e),h)}return d}function Qm(e){return function(t){return Dr(t,e)}}function ji(e,t,r,i){var o=i?vp:jr,d=-1,f=t.length,h=e;for(e===t&&(t=Je(t)),r&&(h=Te(e,ot(r)));++d<f;)for(var x=0,A=t[d],q=r?r(A):A;(x=o(h,q,x,i))>-1;)h!==e&&gs.call(h,x,1),gs.call(e,x,1);return e}function yl(e,t){for(var r=e?t.length:0,i=r-1;r--;){var o=t[r];if(r==i||o!==d){var d=o;Qt(o)?gs.call(e,o,1):Vi(e,o)}}return e}function Ui(e,t){return e+vs(Yo()*(t-e+1))}function Zm(e,t,r,i){for(var o=-1,d=Ee(xs((t-e)/(r||1)),0),f=T(d);d--;)f[i?d:++o]=e,e+=r;return f}function Wi(e,t){var r="";if(!e||t<1||t>Me)return r;do t%2&&(r+=e),t=vs(t/2),t&&(e+=e);while(t);return r}function Z(e,t){return on(Vl(e,t,rt),e+"")}function Jm(e){return Zo(Jr(e))}function ef(e,t){var r=Jr(e);return Ls(r,Ir(t,0,r.length))}function Pa(e,t,r,i){if(!Ae(e))return e;t=mr(t,e);for(var o=-1,d=t.length,f=d-1,h=e;h!=null&&++o<d;){var x=Bt(t[o]),A=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(o!=f){var q=h[x];A=i?i(q,x,h):a,A===a&&(A=Ae(q)?q:Qt(t[o+1])?[]:{})}Ca(h,x,A),h=h[x]}return e}var hl=ws?function(e,t){return ws.set(e,t),e}:rt,tf=bs?function(e,t){return bs(e,"toString",{configurable:!0,enumerable:!1,value:_n(t),writable:!0})}:rt;function rf(e){return Ls(Jr(e))}function wt(e,t,r){var i=-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);++i<o;)d[i]=e[i+t];return d}function af(e,t){var r;return dr(e,function(i,o,d){return r=t(i,o,d),!r}),!!r}function Cs(e,t,r){var i=0,o=e==null?i:e.length;if(typeof t=="number"&&t===t&&o<=Le){for(;i<o;){var d=i+o>>>1,f=e[d];f!==null&&!ct(f)&&(r?f<=t:f<t)?i=d+1:o=d}return o}return Hi(e,t,rt,r)}function Hi(e,t,r,i){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,x=ct(t),A=t===a;o<d;){var q=vs((o+d)/2),C=r(e[q]),P=C!==a,M=C===null,j=C===C,Q=ct(C);if(f)var U=i||j;else A?U=j&&(i||P):h?U=j&&P&&(i||!M):x?U=j&&P&&!M&&(i||!Q):M||Q?U=!1:U=i?C<=t:C<t;U?o=q+1:d=q}return He(d,ge)}function _l(e,t){for(var r=-1,i=e.length,o=0,d=[];++r<i;){var f=e[r],h=t?t(f):f;if(!r||!zt(h,x)){var x=h;d[o++]=f===0?0:f}}return d}function gl(e){return typeof e=="number"?e:ct(e)?jt:+e}function lt(e){if(typeof e=="string")return e;if(G(e))return Te(e,lt)+"";if(ct(e))return Ko?Ko.call(e):"";var t=e+"";return t=="0"&&1/e==-Re?"-0":t}function pr(e,t,r){var i=-1,o=ls,d=e.length,f=!0,h=[],x=h;if(r)f=!1,o=bi;else if(d>=u){var A=t?null:yf(e);if(A)return us(A);f=!1,o=Ta,x=new Tr}else x=t?[]:h;e:for(;++i<d;){var q=e[i],C=t?t(q):q;if(q=r||q!==0?q:0,f&&C===C){for(var P=x.length;P--;)if(x[P]===C)continue e;t&&x.push(C),h.push(q)}else o(x,C,r)||(x!==h&&x.push(C),h.push(q))}return h}function Vi(e,t){return t=mr(t,e),e=$l(e,t),e==null||delete e[Bt(Tt(t))]}function bl(e,t,r,i){return Pa(e,t,r(Dr(e,t)),i)}function Ss(e,t,r,i){for(var o=e.length,d=i?o:-1;(i?d--:++d<o)&&t(e[d],d,e););return r?wt(e,i?0:d,i?d+1:o):wt(e,i?d+1:0,i?o:d)}function xl(e,t){var r=e;return r instanceof ie&&(r=r.value()),xi(t,function(i,o){return o.func.apply(o.thisArg,lr([i],o.args))},r)}function $i(e,t,r){var i=e.length;if(i<2)return i?pr(e[0]):[];for(var o=-1,d=T(i);++o<i;)for(var f=e[o],h=-1;++h<i;)h!=o&&(d[o]=Sa(d[o]||f,e[h],t,r));return pr(Ue(d,1),t,r)}function vl(e,t,r){for(var i=-1,o=e.length,d=t.length,f={};++i<o;){var h=i<d?t[i]:a;r(f,e[i],h)}return f}function Gi(e){return Se(e)?e:[]}function Xi(e){return typeof e=="function"?e:rt}function mr(e,t){return G(e)?e:an(e,t)?[e]:Kl(me(e))}var sf=Z;function fr(e,t,r){var i=e.length;return r=r===a?i:r,!t&&r>=i?e:wt(e,t,r)}var wl=Vp||function(e){return je.clearTimeout(e)};function Tl(e,t){if(t)return e.slice();var r=e.length,i=Ho?Ho(r):new e.constructor(r);return e.copy(i),i}function Yi(e){var t=new e.constructor(e.byteLength);return new hs(t).set(new hs(e)),t}function nf(e,t){var r=t?Yi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function of(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}function lf(e){return qa?be(qa.call(e)):{}}function Il(e,t){var r=t?Yi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Dl(e,t){if(e!==t){var r=e!==a,i=e===null,o=e===e,d=ct(e),f=t!==a,h=t===null,x=t===t,A=ct(t);if(!h&&!A&&!d&&e>t||d&&f&&x&&!h&&!A||i&&f&&x||!r&&x||!o)return 1;if(!i&&!d&&!A&&e<t||A&&r&&o&&!i&&!d||h&&r&&o||!f&&o||!x)return-1}return 0}function cf(e,t,r){for(var i=-1,o=e.criteria,d=t.criteria,f=o.length,h=r.length;++i<f;){var x=Dl(o[i],d[i]);if(x){if(i>=h)return x;var A=r[i];return x*(A=="desc"?-1:1)}}return e.index-t.index}function kl(e,t,r,i){for(var o=-1,d=e.length,f=r.length,h=-1,x=t.length,A=Ee(d-f,0),q=T(x+A),C=!i;++h<x;)q[h]=t[h];for(;++o<f;)(C||o<d)&&(q[r[o]]=e[o]);for(;A--;)q[h++]=e[o++];return q}function Al(e,t,r,i){for(var o=-1,d=e.length,f=-1,h=r.length,x=-1,A=t.length,q=Ee(d-h,0),C=T(q+A),P=!i;++o<q;)C[o]=e[o];for(var M=o;++x<A;)C[M+x]=t[x];for(;++f<h;)(P||o<d)&&(C[M+r[f]]=e[o++]);return C}function Je(e,t){var r=-1,i=e.length;for(t||(t=T(i));++r<i;)t[r]=e[r];return t}function Ft(e,t,r,i){var o=!r;r||(r={});for(var d=-1,f=t.length;++d<f;){var h=t[d],x=i?i(r[h],e[h],h,r,e):a;x===a&&(x=e[h]),o?Xt(r,h,x):Ca(r,h,x)}return r}function uf(e,t){return Ft(e,rn(e),t)}function df(e,t){return Ft(e,Bl(e),t)}function zs(e,t){return function(r,i){var o=G(r)?yp:Nm,d=t?t():{};return o(r,e,B(i,2),d)}}function Yr(e){return Z(function(t,r){var i=-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&&Xe(r[0],r[1],f)&&(d=o<3?a:d,o=1),t=be(t);++i<o;){var h=r[i];h&&e(t,h,i,d)}return t})}function ql(e,t){return function(r,i){if(r==null)return r;if(!et(r))return e(r,i);for(var o=r.length,d=t?o:-1,f=be(r);(t?d--:++d<o)&&i(f[d],d,f)!==!1;);return r}}function Cl(e){return function(t,r,i){for(var o=-1,d=be(t),f=i(t),h=f.length;h--;){var x=f[e?h:++o];if(r(d[x],x,d)===!1)break}return t}}function pf(e,t,r){var i=t&J,o=Ra(e);function d(){var f=this&&this!==je&&this instanceof d?o:e;return f.apply(i?r:this,arguments)}return d}function Sl(e){return function(t){t=me(t);var r=Ur(t)?Ct(t):a,i=r?r[0]:t.charAt(0),o=r?fr(r,1).join(""):t.slice(1);return i[e]()+o}}function Kr(e){return function(t){return xi(qc(Ac(t).replace(tp,"")),e,"")}}function Ra(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=Xr(e.prototype),i=e.apply(r,t);return Ae(i)?i:r}}function mf(e,t,r){var i=Ra(e);function o(){for(var d=arguments.length,f=T(d),h=d,x=Qr(o);h--;)f[h]=arguments[h];var A=d<3&&f[0]!==x&&f[d-1]!==x?[]:cr(f,x);if(d-=A.length,d<r)return Ol(e,t,Ns,o.placeholder,a,f,A,a,a,r-d);var q=this&&this!==je&&this instanceof o?i:e;return nt(q,this,f)}return o}function zl(e){return function(t,r,i){var o=be(t);if(!et(t)){var d=B(r,3);t=Fe(t),r=function(h){return d(o[h],h,o)}}var f=e(t,r,i);return f>-1?o[d?t[f]:f]:a}}function Nl(e){return Kt(function(t){var r=t.length,i=r,o=xt.prototype.thru;for(e&&t.reverse();i--;){var d=t[i];if(typeof d!="function")throw new bt(m);if(o&&!f&&Es(d)=="wrapper")var f=new xt([],!0)}for(i=f?i:r;++i<r;){d=t[i];var h=Es(d),x=h=="wrapper"?en(d):a;x&&sn(x[0])&&x[1]==(K|De|Y|Ne)&&!x[4].length&&x[9]==1?f=f[Es(x[0])].apply(f,x[3]):f=d.length==1&&sn(d)?f[h]():f.thru(d)}return function(){var A=arguments,q=A[0];if(f&&A.length==1&&G(q))return f.plant(q).value();for(var C=0,P=r?t[C].apply(this,A):q;++C<r;)P=t[C].call(this,P);return P}})}function Ns(e,t,r,i,o,d,f,h,x,A){var q=t&K,C=t&J,P=t&de,M=t&(De|ne),j=t&_e,Q=P?a:Ra(e);function U(){for(var ae=arguments.length,oe=T(ae),ut=ae;ut--;)oe[ut]=arguments[ut];if(M)var Ye=Qr(U),dt=Ip(oe,Ye);if(i&&(oe=kl(oe,i,o,M)),d&&(oe=Al(oe,d,f,M)),ae-=dt,M&&ae<A){var ze=cr(oe,Ye);return Ol(e,t,Ns,U.placeholder,r,oe,ze,h,x,A-ae)}var Nt=C?r:this,er=P?Nt[e]:e;return ae=oe.length,h?oe=Pf(oe,h):j&&ae>1&&oe.reverse(),q&&x<ae&&(oe.length=x),this&&this!==je&&this instanceof U&&(er=Q||Ra(er)),er.apply(Nt,oe)}return U}function Pl(e,t){return function(r,i){return Bm(r,e,t(i),{})}}function Ps(e,t){return function(r,i){var o;if(r===a&&i===a)return t;if(r!==a&&(o=r),i!==a){if(o===a)return i;typeof r=="string"||typeof i=="string"?(r=lt(r),i=lt(i)):(r=gl(r),i=gl(i)),o=e(r,i)}return o}}function Ki(e){return Kt(function(t){return t=Te(t,ot(B())),Z(function(r){var i=this;return e(t,function(o){return nt(o,i,r)})})})}function Rs(e,t){t=t===a?" ":lt(t);var r=t.length;if(r<2)return r?Wi(t,e):t;var i=Wi(t,xs(e/Wr(t)));return Ur(t)?fr(Ct(i),0,e).join(""):i.slice(0,e)}function ff(e,t,r,i){var o=t&J,d=Ra(e);function f(){for(var h=-1,x=arguments.length,A=-1,q=i.length,C=T(q+x),P=this&&this!==je&&this instanceof f?d:e;++A<q;)C[A]=i[A];for(;x--;)C[A++]=arguments[++h];return nt(P,o?r:this,C)}return f}function Rl(e){return function(t,r,i){return i&&typeof i!="number"&&Xe(t,r,i)&&(r=i=a),t=Jt(t),r===a?(r=t,t=0):r=Jt(r),i=i===a?t<r?1:-1:Jt(i),Zm(t,r,i,e)}}function Os(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=It(t),r=It(r)),e(t,r)}}function Ol(e,t,r,i,o,d,f,h,x,A){var q=t&De,C=q?f:a,P=q?a:f,M=q?d:a,j=q?a:d;t|=q?Y:le,t&=~(q?le:Y),t&ee||(t&=~(J|de));var Q=[e,t,o,M,C,j,P,h,x,A],U=r.apply(a,Q);return sn(e)&&Gl(U,Q),U.placeholder=i,Xl(U,e,t)}function Qi(e){var t=Oe[e];return function(r,i){if(r=It(r),i=i==null?0:He(X(i),292),i&&Xo(r)){var o=(me(r)+"e").split("e"),d=t(o[0]+"e"+(+o[1]+i));return o=(me(d)+"e").split("e"),+(o[0]+"e"+(+o[1]-i))}return t(r)}}var yf=$r&&1/us(new $r([,-0]))[1]==Re?function(e){return new $r(e)}:xn;function El(e){return function(t){var r=Ve(t);return r==st?Ai(t):r==it?zp(t):Tp(t,e(t))}}function Yt(e,t,r,i,o,d,f,h){var x=t&de;if(!x&&typeof e!="function")throw new bt(m);var A=i?i.length:0;if(A||(t&=~(Y|le),i=o=a),f=f===a?f:Ee(X(f),0),h=h===a?h:X(h),A-=o?o.length:0,t&le){var q=i,C=o;i=o=a}var P=x?a:en(e),M=[e,t,r,i,o,q,C,d,f,h];if(P&&Sf(M,P),e=M[0],t=M[1],r=M[2],i=M[3],o=M[4],h=M[9]=M[9]===a?x?0:e.length:Ee(M[9]-A,0),!h&&t&(De|ne)&&(t&=~(De|ne)),!t||t==J)var j=pf(e,t,r);else t==De||t==ne?j=mf(e,t,h):(t==Y||t==(J|Y))&&!o.length?j=ff(e,t,r,i):j=Ns.apply(a,M);var Q=P?hl:Gl;return Xl(Q(j,M),e,t)}function Ml(e,t,r,i){return e===a||zt(e,Vr[r])&&!he.call(i,r)?t:e}function Ll(e,t,r,i,o,d){return Ae(e)&&Ae(t)&&(d.set(t,e),qs(e,t,a,Ll,d),d.delete(t)),e}function hf(e){return Ma(e)?a:e}function Fl(e,t,r,i,o,d){var f=r&R,h=e.length,x=t.length;if(h!=x&&!(f&&x>h))return!1;var A=d.get(e),q=d.get(t);if(A&&q)return A==t&&q==e;var C=-1,P=!0,M=r&L?new Tr:a;for(d.set(e,t),d.set(t,e);++C<h;){var j=e[C],Q=t[C];if(i)var U=f?i(Q,j,C,t,e,d):i(j,Q,C,e,t,d);if(U!==a){if(U)continue;P=!1;break}if(M){if(!vi(t,function(ae,oe){if(!Ta(M,oe)&&(j===ae||o(j,ae,r,i,d)))return M.push(oe)})){P=!1;break}}else if(!(j===Q||o(j,Q,r,i,d))){P=!1;break}}return d.delete(e),d.delete(t),P}function _f(e,t,r,i,o,d,f){switch(r){case nr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case At:return!(e.byteLength!=t.byteLength||!d(new hs(e),new hs(t)));case Et:case Wt:case Mt:return zt(+e,+t);case Pr:return e.name==t.name&&e.message==t.message;case gr:case Ht:return e==t+"";case st:var h=Ai;case it:var x=i&R;if(h||(h=us),e.size!=t.size&&!x)return!1;var A=f.get(e);if(A)return A==t;i|=L,f.set(e,t);var q=Fl(h(e),h(t),i,o,d,f);return f.delete(e),q;case Er:if(qa)return qa.call(e)==qa.call(t)}return!1}function gf(e,t,r,i,o,d){var f=r&R,h=Zi(e),x=h.length,A=Zi(t),q=A.length;if(x!=q&&!f)return!1;for(var C=x;C--;){var P=h[C];if(!(f?P in t:he.call(t,P)))return!1}var M=d.get(e),j=d.get(t);if(M&&j)return M==t&&j==e;var Q=!0;d.set(e,t),d.set(t,e);for(var U=f;++C<x;){P=h[C];var ae=e[P],oe=t[P];if(i)var ut=f?i(oe,ae,P,t,e,d):i(ae,oe,P,e,t,d);if(!(ut===a?ae===oe||o(ae,oe,r,i,d):ut)){Q=!1;break}U||(U=P=="constructor")}if(Q&&!U){var Ye=e.constructor,dt=t.constructor;Ye!=dt&&"constructor"in e&&"constructor"in t&&!(typeof Ye=="function"&&Ye instanceof Ye&&typeof dt=="function"&&dt instanceof dt)&&(Q=!1)}return d.delete(e),d.delete(t),Q}function Kt(e){return on(Vl(e,a,ec),e+"")}function Zi(e){return il(e,Fe,rn)}function Ji(e){return il(e,tt,Bl)}var en=ws?function(e){return ws.get(e)}:xn;function Es(e){for(var t=e.name+"",r=Gr[t],i=he.call(Gr,t)?r.length:0;i--;){var o=r[i],d=o.func;if(d==null||d==e)return o.name}return t}function Qr(e){var t=he.call(c,"placeholder")?c:e;return t.placeholder}function B(){var e=c.iteratee||gn;return e=e===gn?ll:e,arguments.length?e(arguments[0],arguments[1]):e}function Ms(e,t){var r=e.__data__;return kf(t)?r[typeof t=="string"?"string":"hash"]:r.map}function tn(e){for(var t=Fe(e),r=t.length;r--;){var i=t[r],o=e[i];t[r]=[i,o,Wl(o)]}return t}function kr(e,t){var r=qp(e,t);return ol(r)?r:a}function bf(e){var t=he.call(e,vr),r=e[vr];try{e[vr]=a;var i=!0}catch{}var o=fs.call(e);return i&&(t?e[vr]=r:delete e[vr]),o}var rn=Ci?function(e){return e==null?[]:(e=be(e),or(Ci(e),function(t){return $o.call(e,t)}))}:vn,Bl=Ci?function(e){for(var t=[];e;)lr(t,rn(e)),e=_s(e);return t}:vn,Ve=Ge;(Si&&Ve(new Si(new ArrayBuffer(1)))!=nr||Da&&Ve(new Da)!=st||zi&&Ve(zi.resolve())!=pa||$r&&Ve(new $r)!=it||ka&&Ve(new ka)!=ir)&&(Ve=function(e){var t=Ge(e),r=t==ht?e.constructor:a,i=r?Ar(r):"";if(i)switch(i){case em:return nr;case tm:return st;case rm:return pa;case am:return it;case sm:return ir}return t});function xf(e,t,r){for(var i=-1,o=r.length;++i<o;){var d=r[i],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=Ee(e,t-f);break}}return{start:e,end:t}}function vf(e){var t=e.match(di);return t?t[1].split(y):[]}function jl(e,t,r){t=mr(t,e);for(var i=-1,o=t.length,d=!1;++i<o;){var f=Bt(t[i]);if(!(d=e!=null&&r(e,f)))break;e=e[f]}return d||++i!=o?d:(o=e==null?0:e.length,!!o&&Hs(o)&&Qt(f,o)&&(G(e)||qr(e)))}function wf(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&he.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Ul(e){return typeof e.constructor=="function"&&!Oa(e)?Xr(_s(e)):{}}function Tf(e,t,r){var i=e.constructor;switch(t){case At:return Yi(e);case Et:case Wt:return new i(+e);case nr:return nf(e,r);case Mr:case Lr:case br:case ma:case fa:case ya:case ha:case _a:case ga:return Il(e,r);case st:return new i;case Mt:case Ht:return new i(e);case gr:return of(e);case it:return new i;case Er:return lf(e)}}function If(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(ui,`{
112
+ */Wa.exports,function(n,s){(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",v="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",b=500,w="__lodash_placeholder__",k=1,z=2,E=4,R=1,L=2,Z=1,de=2,ee=4,De=8,ne=16,Y=32,le=64,K=128,Ne=256,_e=512,re=30,yt="...",kt=800,Pe=16,we=1,W=2,ye=3,Re=1/0,Me=9007199254740991,Ot=17976931348623157e292,jt=NaN,V=4294967295,ge=V-1,Le=V>>>1,Ut=[["ary",K],["bind",Z],["bindKey",de],["curry",De],["curryRight",ne],["flip",_e],["partial",Y],["partialRight",le],["rearg",Ne]],$e="[object Arguments]",sr="[object Array]",da="[object AsyncFunction]",Et="[object Boolean]",Wt="[object Date]",Nr="[object DOMException]",Pr="[object Error]",_r="[object Function]",Qa="[object GeneratorFunction]",st="[object Map]",Mt="[object Number]",Rr="[object Null]",ht="[object Object]",pa="[object Promise]",Or="[object Proxy]",gr="[object RegExp]",it="[object Set]",Ht="[object String]",Er="[object Symbol]",ii="[object Undefined]",ir="[object WeakMap]",Ja="[object WeakSet]",At="[object ArrayBuffer]",nr="[object DataView]",Mr="[object Float32Array]",Lr="[object Float64Array]",br="[object Int8Array]",ma="[object Int16Array]",fa="[object Int32Array]",ya="[object Uint8Array]",ha="[object Uint8ClampedArray]",_a="[object Uint16Array]",ga="[object Uint32Array]",ni=/\b__p \+= '';/g,ba=/\b(__p \+=) '' \+/g,Za=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vt=/&(?:amp|lt|gt|quot|#39);/g,Fr=/[&<>"']/g,xa=RegExp(Vt.source),es=RegExp(Fr.source),oi=/<%-([\s\S]+?)%>/g,ts=/<%([\s\S]+?)%>/g,rs=/<%=([\s\S]+?)%>/g,as=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ss=/^\w*$/,li=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,va=/[\\^$.*+?()[\]{}|]/g,is=RegExp(va.source),wa=/^\s+/,ci=/\s/,ui=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,di=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,S=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,N=/[()=,{}\[\]\/\s]/,H=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,se=/^[-+]0x[0-9a-f]+$/i,te=/^0b[01]+$/i,Be=/^\[object .+?Constructor\]$/,ke=/^0o[0-7]+$/i,qe=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qt=/($^)/,ns=/['\n\r\u2028\u2029\\]/g,Je="\\ud800-\\udfff",Fd="\\u0300-\\u036f",Bd="\\ufe20-\\ufe2f",jd="\\u20d0-\\u20ff",no=Fd+Bd+jd,oo="\\u2700-\\u27bf",lo="a-z\\xdf-\\xf6\\xf8-\\xff",Ud="\\xac\\xb1\\xd7\\xf7",Wd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hd="\\u2000-\\u206f",Vd=" \\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",co="A-Z\\xc0-\\xd6\\xd8-\\xde",uo="\\ufe0e\\ufe0f",po=Ud+Wd+Hd+Vd,pi="['’]",$d="["+Je+"]",mo="["+po+"]",os="["+no+"]",fo="\\d+",Gd="["+oo+"]",yo="["+lo+"]",ho="[^"+Je+po+fo+oo+lo+co+"]",mi="\\ud83c[\\udffb-\\udfff]",Xd="(?:"+os+"|"+mi+")",_o="[^"+Je+"]",fi="(?:\\ud83c[\\udde6-\\uddff]){2}",yi="[\\ud800-\\udbff][\\udc00-\\udfff]",Br="["+co+"]",go="\\u200d",bo="(?:"+yo+"|"+ho+")",Yd="(?:"+Br+"|"+ho+")",xo="(?:"+pi+"(?:d|ll|m|re|s|t|ve))?",vo="(?:"+pi+"(?:D|LL|M|RE|S|T|VE))?",wo=Xd+"?",To="["+uo+"]?",Kd="(?:"+go+"(?:"+[_o,fi,yi].join("|")+")"+To+wo+")*",Qd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Io=To+wo+Kd,Zd="(?:"+[Gd,fi,yi].join("|")+")"+Io,ep="(?:"+[_o+os+"?",os,fi,yi,$d].join("|")+")",tp=RegExp(pi,"g"),rp=RegExp(os,"g"),hi=RegExp(mi+"(?="+mi+")|"+ep+Io,"g"),ap=RegExp([Br+"?"+yo+"+"+xo+"(?="+[mo,Br,"$"].join("|")+")",Yd+"+"+vo+"(?="+[mo,Br+bo,"$"].join("|")+")",Br+"?"+bo+"+"+xo,Br+"+"+vo,Jd,Qd,fo,Zd].join("|"),"g"),sp=RegExp("["+go+Je+no+uo+"]"),ip=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,np=["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"],op=-1,ve={};ve[Mr]=ve[Lr]=ve[br]=ve[ma]=ve[fa]=ve[ya]=ve[ha]=ve[_a]=ve[ga]=!0,ve[$e]=ve[sr]=ve[At]=ve[Et]=ve[nr]=ve[Wt]=ve[Pr]=ve[_r]=ve[st]=ve[Mt]=ve[ht]=ve[gr]=ve[it]=ve[Ht]=ve[ir]=!1;var xe={};xe[$e]=xe[sr]=xe[At]=xe[nr]=xe[Et]=xe[Wt]=xe[Mr]=xe[Lr]=xe[br]=xe[ma]=xe[fa]=xe[st]=xe[Mt]=xe[ht]=xe[gr]=xe[it]=xe[Ht]=xe[Er]=xe[ya]=xe[ha]=xe[_a]=xe[ga]=!0,xe[Pr]=xe[_r]=xe[ir]=!1;var lp={À:"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"},cp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},up={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},dp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pp=parseFloat,mp=parseInt,Do=typeof ea=="object"&&ea&&ea.Object===Object&&ea,fp=typeof self=="object"&&self&&self.Object===Object&&self,je=Do||fp||Function("return this")(),_i=s&&!s.nodeType&&s,xr=_i&&!0&&n&&!n.nodeType&&n,ko=xr&&xr.exports===_i,gi=ko&&Do.process,_t=function(){try{var _=xr&&xr.require&&xr.require("util").types;return _||gi&&gi.binding&&gi.binding("util")}catch{}}(),Ao=_t&&_t.isArrayBuffer,qo=_t&&_t.isDate,Co=_t&&_t.isMap,So=_t&&_t.isRegExp,zo=_t&&_t.isSet,No=_t&&_t.isTypedArray;function nt(_,D,T){switch(T.length){case 0:return _.call(D);case 1:return _.call(D,T[0]);case 2:return _.call(D,T[0],T[1]);case 3:return _.call(D,T[0],T[1],T[2])}return _.apply(D,T)}function yp(_,D,T,O){for(var $=-1,ue=_==null?0:_.length;++$<ue;){var Oe=_[$];D(O,Oe,T(Oe),_)}return O}function gt(_,D){for(var T=-1,O=_==null?0:_.length;++T<O&&D(_[T],T,_)!==!1;);return _}function hp(_,D){for(var T=_==null?0:_.length;T--&&D(_[T],T,_)!==!1;);return _}function Po(_,D){for(var T=-1,O=_==null?0:_.length;++T<O;)if(!D(_[T],T,_))return!1;return!0}function or(_,D){for(var T=-1,O=_==null?0:_.length,$=0,ue=[];++T<O;){var Oe=_[T];D(Oe,T,_)&&(ue[$++]=Oe)}return ue}function ls(_,D){var T=_==null?0:_.length;return!!T&&jr(_,D,0)>-1}function bi(_,D,T){for(var O=-1,$=_==null?0:_.length;++O<$;)if(T(D,_[O]))return!0;return!1}function Te(_,D){for(var T=-1,O=_==null?0:_.length,$=Array(O);++T<O;)$[T]=D(_[T],T,_);return $}function lr(_,D){for(var T=-1,O=D.length,$=_.length;++T<O;)_[$+T]=D[T];return _}function xi(_,D,T,O){var $=-1,ue=_==null?0:_.length;for(O&&ue&&(T=_[++$]);++$<ue;)T=D(T,_[$],$,_);return T}function _p(_,D,T,O){var $=_==null?0:_.length;for(O&&$&&(T=_[--$]);$--;)T=D(T,_[$],$,_);return T}function vi(_,D){for(var T=-1,O=_==null?0:_.length;++T<O;)if(D(_[T],T,_))return!0;return!1}var gp=wi("length");function bp(_){return _.split("")}function xp(_){return _.match(S)||[]}function Ro(_,D,T){var O;return T(_,function($,ue,Oe){if(D($,ue,Oe))return O=ue,!1}),O}function cs(_,D,T,O){for(var $=_.length,ue=T+(O?1:-1);O?ue--:++ue<$;)if(D(_[ue],ue,_))return ue;return-1}function jr(_,D,T){return D===D?Np(_,D,T):cs(_,Oo,T)}function vp(_,D,T,O){for(var $=T-1,ue=_.length;++$<ue;)if(O(_[$],D))return $;return-1}function Oo(_){return _!==_}function Eo(_,D){var T=_==null?0:_.length;return T?Ii(_,D)/T:jt}function wi(_){return function(D){return D==null?a:D[_]}}function Ti(_){return function(D){return _==null?a:_[D]}}function Mo(_,D,T,O,$){return $(_,function(ue,Oe,be){T=O?(O=!1,ue):D(T,ue,Oe,be)}),T}function wp(_,D){var T=_.length;for(_.sort(D);T--;)_[T]=_[T].value;return _}function Ii(_,D){for(var T,O=-1,$=_.length;++O<$;){var ue=D(_[O]);ue!==a&&(T=T===a?ue:T+ue)}return T}function Di(_,D){for(var T=-1,O=Array(_);++T<_;)O[T]=D(T);return O}function Tp(_,D){return Te(D,function(T){return[T,_[T]]})}function Lo(_){return _&&_.slice(0,Uo(_)+1).replace(wa,"")}function ot(_){return function(D){return _(D)}}function ki(_,D){return Te(D,function(T){return _[T]})}function Ta(_,D){return _.has(D)}function Fo(_,D){for(var T=-1,O=_.length;++T<O&&jr(D,_[T],0)>-1;);return T}function Bo(_,D){for(var T=_.length;T--&&jr(D,_[T],0)>-1;);return T}function Ip(_,D){for(var T=_.length,O=0;T--;)_[T]===D&&++O;return O}var Dp=Ti(lp),kp=Ti(cp);function Ap(_){return"\\"+dp[_]}function qp(_,D){return _==null?a:_[D]}function Ur(_){return sp.test(_)}function Cp(_){return ip.test(_)}function Sp(_){for(var D,T=[];!(D=_.next()).done;)T.push(D.value);return T}function Ai(_){var D=-1,T=Array(_.size);return _.forEach(function(O,$){T[++D]=[$,O]}),T}function jo(_,D){return function(T){return _(D(T))}}function cr(_,D){for(var T=-1,O=_.length,$=0,ue=[];++T<O;){var Oe=_[T];(Oe===D||Oe===w)&&(_[T]=w,ue[$++]=T)}return ue}function us(_){var D=-1,T=Array(_.size);return _.forEach(function(O){T[++D]=O}),T}function zp(_){var D=-1,T=Array(_.size);return _.forEach(function(O){T[++D]=[O,O]}),T}function Np(_,D,T){for(var O=T-1,$=_.length;++O<$;)if(_[O]===D)return O;return-1}function Pp(_,D,T){for(var O=T+1;O--;)if(_[O]===D)return O;return O}function Wr(_){return Ur(_)?Op(_):gp(_)}function Ct(_){return Ur(_)?Ep(_):bp(_)}function Uo(_){for(var D=_.length;D--&&ci.test(_.charAt(D)););return D}var Rp=Ti(up);function Op(_){for(var D=hi.lastIndex=0;hi.test(_);)++D;return D}function Ep(_){return _.match(hi)||[]}function Mp(_){return _.match(ap)||[]}var Lp=function _(D){D=D==null?je:Hr.defaults(je.Object(),D,Hr.pick(je,np));var T=D.Array,O=D.Date,$=D.Error,ue=D.Function,Oe=D.Math,be=D.Object,qi=D.RegExp,Fp=D.String,bt=D.TypeError,ds=T.prototype,Bp=ue.prototype,Vr=be.prototype,ps=D["__core-js_shared__"],ms=Bp.toString,he=Vr.hasOwnProperty,jp=0,Wo=function(){var e=/[^.]+$/.exec(ps&&ps.keys&&ps.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),fs=Vr.toString,Up=ms.call(be),Wp=je._,Hp=qi("^"+ms.call(he).replace(va,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ys=ko?D.Buffer:a,ur=D.Symbol,hs=D.Uint8Array,Ho=ys?ys.allocUnsafe:a,_s=jo(be.getPrototypeOf,be),Vo=be.create,$o=Vr.propertyIsEnumerable,gs=ds.splice,Go=ur?ur.isConcatSpreadable:a,Ia=ur?ur.iterator:a,vr=ur?ur.toStringTag:a,bs=function(){try{var e=kr(be,"defineProperty");return e({},"",{}),e}catch{}}(),Vp=D.clearTimeout!==je.clearTimeout&&D.clearTimeout,$p=O&&O.now!==je.Date.now&&O.now,Gp=D.setTimeout!==je.setTimeout&&D.setTimeout,xs=Oe.ceil,vs=Oe.floor,Ci=be.getOwnPropertySymbols,Xp=ys?ys.isBuffer:a,Xo=D.isFinite,Yp=ds.join,Kp=jo(be.keys,be),Ee=Oe.max,He=Oe.min,Qp=O.now,Jp=D.parseInt,Yo=Oe.random,Zp=ds.reverse,Si=kr(D,"DataView"),Da=kr(D,"Map"),zi=kr(D,"Promise"),$r=kr(D,"Set"),ka=kr(D,"WeakMap"),Aa=kr(be,"create"),ws=ka&&new ka,Gr={},em=Ar(Si),tm=Ar(Da),rm=Ar(zi),am=Ar($r),sm=Ar(ka),Ts=ur?ur.prototype:a,qa=Ts?Ts.valueOf:a,Ko=Ts?Ts.toString:a;function c(e){if(Ce(e)&&!G(e)&&!(e instanceof ie)){if(e instanceof xt)return e;if(he.call(e,"__wrapped__"))return Ql(e)}return new xt(e)}var Xr=function(){function e(){}return function(t){if(!Ae(t))return{};if(Vo)return Vo(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Is(){}function xt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}c.templateSettings={escape:oi,evaluate:ts,interpolate:rs,variable:"",imports:{_:c}},c.prototype=Is.prototype,c.prototype.constructor=c,xt.prototype=Xr(Is.prototype),xt.prototype.constructor=xt;function ie(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function im(){var e=new ie(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 nm(){if(this.__filtered__){var e=new ie(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function om(){var e=this.__wrapped__.value(),t=this.__dir__,r=G(e),i=t<0,o=r?e.length:0,d=xf(0,o,this.__views__),f=d.start,h=d.end,x=h-f,A=i?h:f-1,q=this.__iteratees__,C=q.length,P=0,M=He(x,this.__takeCount__);if(!r||!i&&o==x&&M==x)return xl(e,this.__actions__);var j=[];e:for(;x--&&P<M;){A+=t;for(var Q=-1,U=e[A];++Q<C;){var ae=q[Q],oe=ae.iteratee,ut=ae.type,Ye=oe(U);if(ut==W)U=Ye;else if(!Ye){if(ut==we)continue e;break e}}j[P++]=U}return j}ie.prototype=Xr(Is.prototype),ie.prototype.constructor=ie;function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function lm(){this.__data__=Aa?Aa(null):{},this.size=0}function cm(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(Aa){var r=t[e];return r===g?a:r}return he.call(t,e)?t[e]:a}function dm(e){var t=this.__data__;return Aa?t[e]!==a:he.call(t,e)}function pm(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Aa&&t===a?g:t,this}wr.prototype.clear=lm,wr.prototype.delete=cm,wr.prototype.get=um,wr.prototype.has=dm,wr.prototype.set=pm;function $t(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function mm(){this.__data__=[],this.size=0}function fm(e){var t=this.__data__,r=Ds(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():gs.call(t,r,1),--this.size,!0}function ym(e){var t=this.__data__,r=Ds(t,e);return r<0?a:t[r][1]}function hm(e){return Ds(this.__data__,e)>-1}function _m(e,t){var r=this.__data__,i=Ds(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}$t.prototype.clear=mm,$t.prototype.delete=fm,$t.prototype.get=ym,$t.prototype.has=hm,$t.prototype.set=_m;function Gt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function gm(){this.size=0,this.__data__={hash:new wr,map:new(Da||$t),string:new wr}}function bm(e){var t=Ms(this,e).delete(e);return this.size-=t?1:0,t}function xm(e){return Ms(this,e).get(e)}function vm(e){return Ms(this,e).has(e)}function wm(e,t){var r=Ms(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Gt.prototype.clear=gm,Gt.prototype.delete=bm,Gt.prototype.get=xm,Gt.prototype.has=vm,Gt.prototype.set=wm;function Tr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Gt;++t<r;)this.add(e[t])}function Tm(e){return this.__data__.set(e,g),this}function Im(e){return this.__data__.has(e)}Tr.prototype.add=Tr.prototype.push=Tm,Tr.prototype.has=Im;function St(e){var t=this.__data__=new $t(e);this.size=t.size}function Dm(){this.__data__=new $t,this.size=0}function km(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Am(e){return this.__data__.get(e)}function qm(e){return this.__data__.has(e)}function Cm(e,t){var r=this.__data__;if(r instanceof $t){var i=r.__data__;if(!Da||i.length<u-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gt(i)}return r.set(e,t),this.size=r.size,this}St.prototype.clear=Dm,St.prototype.delete=km,St.prototype.get=Am,St.prototype.has=qm,St.prototype.set=Cm;function Qo(e,t){var r=G(e),i=!r&&qr(e),o=!r&&!i&&yr(e),d=!r&&!i&&!o&&Jr(e),f=r||i||o||d,h=f?Di(e.length,Fp):[],x=h.length;for(var A in e)(t||he.call(e,A))&&!(f&&(A=="length"||o&&(A=="offset"||A=="parent")||d&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||Qt(A,x)))&&h.push(A);return h}function Jo(e){var t=e.length;return t?e[Ui(0,t-1)]:a}function Sm(e,t){return Ls(Ze(e),Ir(t,0,e.length))}function zm(e){return Ls(Ze(e))}function Ni(e,t,r){(r!==a&&!zt(e[t],r)||r===a&&!(t in e))&&Xt(e,t,r)}function Ca(e,t,r){var i=e[t];(!(he.call(e,t)&&zt(i,r))||r===a&&!(t in e))&&Xt(e,t,r)}function Ds(e,t){for(var r=e.length;r--;)if(zt(e[r][0],t))return r;return-1}function Nm(e,t,r,i){return dr(e,function(o,d,f){t(i,o,r(o),f)}),i}function Zo(e,t){return e&&Ft(t,Fe(t),e)}function Pm(e,t){return e&&Ft(t,tt(t),e)}function Xt(e,t,r){t=="__proto__"&&bs?bs(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Pi(e,t){for(var r=-1,i=t.length,o=T(i),d=e==null;++r<i;)o[r]=d?a:fn(e,t[r]);return o}function Ir(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function vt(e,t,r,i,o,d){var f,h=t&k,x=t&z,A=t&E;if(r&&(f=o?r(e,i,o,d):r(e)),f!==a)return f;if(!Ae(e))return e;var q=G(e);if(q){if(f=wf(e),!h)return Ze(e,f)}else{var C=Ve(e),P=C==_r||C==Qa;if(yr(e))return Tl(e,h);if(C==ht||C==$e||P&&!o){if(f=x||P?{}:Ul(e),!h)return x?df(e,Pm(f,e)):uf(e,Zo(f,e))}else{if(!xe[C])return o?e:{};f=Tf(e,C,h)}}d||(d=new St);var M=d.get(e);if(M)return M;d.set(e,f),_c(e)?e.forEach(function(U){f.add(vt(U,t,r,U,e,d))}):yc(e)&&e.forEach(function(U,ae){f.set(ae,vt(U,t,r,ae,e,d))});var j=A?x?Zi:Ji:x?tt:Fe,Q=q?a:j(e);return gt(Q||e,function(U,ae){Q&&(ae=U,U=e[ae]),Ca(f,ae,vt(U,t,r,ae,e,d))}),f}function Rm(e){var t=Fe(e);return function(r){return el(r,e,t)}}function el(e,t,r){var i=r.length;if(e==null)return!i;for(e=be(e);i--;){var o=r[i],d=t[o],f=e[o];if(f===a&&!(o in e)||!d(f))return!1}return!0}function tl(e,t,r){if(typeof e!="function")throw new bt(m);return Ea(function(){e.apply(a,r)},t)}function Sa(e,t,r,i){var o=-1,d=ls,f=!0,h=e.length,x=[],A=t.length;if(!h)return x;r&&(t=Te(t,ot(r))),i?(d=bi,f=!1):t.length>=u&&(d=Ta,f=!1,t=new Tr(t));e:for(;++o<h;){var q=e[o],C=r==null?q:r(q);if(q=i||q!==0?q:0,f&&C===C){for(var P=A;P--;)if(t[P]===C)continue e;x.push(q)}else d(t,C,i)||x.push(q)}return x}var dr=ql(Lt),rl=ql(Oi,!0);function Om(e,t){var r=!0;return dr(e,function(i,o,d){return r=!!t(i,o,d),r}),r}function ks(e,t,r){for(var i=-1,o=e.length;++i<o;){var d=e[i],f=t(d);if(f!=null&&(h===a?f===f&&!ct(f):r(f,h)))var h=f,x=d}return x}function Em(e,t,r,i){var o=e.length;for(r=X(r),r<0&&(r=-r>o?0:o+r),i=i===a||i>o?o:X(i),i<0&&(i+=o),i=r>i?0:bc(i);r<i;)e[r++]=t;return e}function al(e,t){var r=[];return dr(e,function(i,o,d){t(i,o,d)&&r.push(i)}),r}function Ue(e,t,r,i,o){var d=-1,f=e.length;for(r||(r=Df),o||(o=[]);++d<f;){var h=e[d];t>0&&r(h)?t>1?Ue(h,t-1,r,i,o):lr(o,h):i||(o[o.length]=h)}return o}var Ri=Cl(),sl=Cl(!0);function Lt(e,t){return e&&Ri(e,t,Fe)}function Oi(e,t){return e&&sl(e,t,Fe)}function As(e,t){return or(t,function(r){return Jt(e[r])})}function Dr(e,t){t=mr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Bt(t[r++])];return r&&r==i?e:a}function il(e,t,r){var i=t(e);return G(e)?i:lr(i,r(e))}function Ge(e){return e==null?e===a?ii:Rr:vr&&vr in be(e)?bf(e):Nf(e)}function Ei(e,t){return e>t}function Mm(e,t){return e!=null&&he.call(e,t)}function Lm(e,t){return e!=null&&t in be(e)}function Fm(e,t,r){return e>=He(t,r)&&e<Ee(t,r)}function Mi(e,t,r){for(var i=r?bi:ls,o=e[0].length,d=e.length,f=d,h=T(d),x=1/0,A=[];f--;){var q=e[f];f&&t&&(q=Te(q,ot(t))),x=He(q.length,x),h[f]=!r&&(t||o>=120&&q.length>=120)?new Tr(f&&q):a}q=e[0];var C=-1,P=h[0];e:for(;++C<o&&A.length<x;){var M=q[C],j=t?t(M):M;if(M=r||M!==0?M:0,!(P?Ta(P,j):i(A,j,r))){for(f=d;--f;){var Q=h[f];if(!(Q?Ta(Q,j):i(e[f],j,r)))continue e}P&&P.push(j),A.push(M)}}return A}function Bm(e,t,r,i){return Lt(e,function(o,d,f){t(i,r(o),d,f)}),i}function za(e,t,r){t=mr(t,e),e=$l(e,t);var i=e==null?e:e[Bt(Tt(t))];return i==null?a:nt(i,e,r)}function nl(e){return Ce(e)&&Ge(e)==$e}function jm(e){return Ce(e)&&Ge(e)==At}function Um(e){return Ce(e)&&Ge(e)==Wt}function Na(e,t,r,i,o){return e===t?!0:e==null||t==null||!Ce(e)&&!Ce(t)?e!==e&&t!==t:Wm(e,t,r,i,Na,o)}function Wm(e,t,r,i,o,d){var f=G(e),h=G(t),x=f?sr:Ve(e),A=h?sr:Ve(t);x=x==$e?ht:x,A=A==$e?ht:A;var q=x==ht,C=A==ht,P=x==A;if(P&&yr(e)){if(!yr(t))return!1;f=!0,q=!1}if(P&&!q)return d||(d=new St),f||Jr(e)?Fl(e,t,r,i,o,d):_f(e,t,x,r,i,o,d);if(!(r&R)){var M=q&&he.call(e,"__wrapped__"),j=C&&he.call(t,"__wrapped__");if(M||j){var Q=M?e.value():e,U=j?t.value():t;return d||(d=new St),o(Q,U,r,i,d)}}return P?(d||(d=new St),gf(e,t,r,i,o,d)):!1}function Hm(e){return Ce(e)&&Ve(e)==st}function Li(e,t,r,i){var o=r.length,d=o,f=!i;if(e==null)return!d;for(e=be(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 x=h[0],A=e[x],q=h[1];if(f&&h[2]){if(A===a&&!(x in e))return!1}else{var C=new St;if(i)var P=i(A,q,x,e,t,C);if(!(P===a?Na(q,A,R|L,i,C):P))return!1}}return!0}function ol(e){if(!Ae(e)||Af(e))return!1;var t=Jt(e)?Hp:Be;return t.test(Ar(e))}function Vm(e){return Ce(e)&&Ge(e)==gr}function $m(e){return Ce(e)&&Ve(e)==it}function Gm(e){return Ce(e)&&Hs(e.length)&&!!ve[Ge(e)]}function ll(e){return typeof e=="function"?e:e==null?rt:typeof e=="object"?G(e)?dl(e[0],e[1]):ul(e):Sc(e)}function Fi(e){if(!Oa(e))return Kp(e);var t=[];for(var r in be(e))he.call(e,r)&&r!="constructor"&&t.push(r);return t}function Xm(e){if(!Ae(e))return zf(e);var t=Oa(e),r=[];for(var i in e)i=="constructor"&&(t||!he.call(e,i))||r.push(i);return r}function Bi(e,t){return e<t}function cl(e,t){var r=-1,i=et(e)?T(e.length):[];return dr(e,function(o,d,f){i[++r]=t(o,d,f)}),i}function ul(e){var t=tn(e);return t.length==1&&t[0][2]?Hl(t[0][0],t[0][1]):function(r){return r===e||Li(r,e,t)}}function dl(e,t){return an(e)&&Wl(t)?Hl(Bt(e),t):function(r){var i=fn(r,e);return i===a&&i===t?yn(r,e):Na(t,i,R|L)}}function qs(e,t,r,i,o){e!==t&&Ri(t,function(d,f){if(o||(o=new St),Ae(d))Ym(e,t,f,r,qs,i,o);else{var h=i?i(nn(e,f),d,f+"",e,t,o):a;h===a&&(h=d),Ni(e,f,h)}},tt)}function Ym(e,t,r,i,o,d,f){var h=nn(e,r),x=nn(t,r),A=f.get(x);if(A){Ni(e,r,A);return}var q=d?d(h,x,r+"",e,t,f):a,C=q===a;if(C){var P=G(x),M=!P&&yr(x),j=!P&&!M&&Jr(x);q=x,P||M||j?G(h)?q=h:Se(h)?q=Ze(h):M?(C=!1,q=Tl(x,!0)):j?(C=!1,q=Il(x,!0)):q=[]:Ma(x)||qr(x)?(q=h,qr(h)?q=xc(h):(!Ae(h)||Jt(h))&&(q=Ul(x))):C=!1}C&&(f.set(x,q),o(q,x,i,d,f),f.delete(x)),Ni(e,r,q)}function pl(e,t){var r=e.length;if(r)return t+=t<0?r:0,Qt(t,r)?e[t]:a}function ml(e,t,r){t.length?t=Te(t,function(d){return G(d)?function(f){return Dr(f,d.length===1?d[0]:d)}:d}):t=[rt];var i=-1;t=Te(t,ot(B()));var o=cl(e,function(d,f,h){var x=Te(t,function(A){return A(d)});return{criteria:x,index:++i,value:d}});return wp(o,function(d,f){return cf(d,f,r)})}function Km(e,t){return fl(e,t,function(r,i){return yn(e,i)})}function fl(e,t,r){for(var i=-1,o=t.length,d={};++i<o;){var f=t[i],h=Dr(e,f);r(h,f)&&Pa(d,mr(f,e),h)}return d}function Qm(e){return function(t){return Dr(t,e)}}function ji(e,t,r,i){var o=i?vp:jr,d=-1,f=t.length,h=e;for(e===t&&(t=Ze(t)),r&&(h=Te(e,ot(r)));++d<f;)for(var x=0,A=t[d],q=r?r(A):A;(x=o(h,q,x,i))>-1;)h!==e&&gs.call(h,x,1),gs.call(e,x,1);return e}function yl(e,t){for(var r=e?t.length:0,i=r-1;r--;){var o=t[r];if(r==i||o!==d){var d=o;Qt(o)?gs.call(e,o,1):Vi(e,o)}}return e}function Ui(e,t){return e+vs(Yo()*(t-e+1))}function Jm(e,t,r,i){for(var o=-1,d=Ee(xs((t-e)/(r||1)),0),f=T(d);d--;)f[i?d:++o]=e,e+=r;return f}function Wi(e,t){var r="";if(!e||t<1||t>Me)return r;do t%2&&(r+=e),t=vs(t/2),t&&(e+=e);while(t);return r}function J(e,t){return on(Vl(e,t,rt),e+"")}function Zm(e){return Jo(Zr(e))}function ef(e,t){var r=Zr(e);return Ls(r,Ir(t,0,r.length))}function Pa(e,t,r,i){if(!Ae(e))return e;t=mr(t,e);for(var o=-1,d=t.length,f=d-1,h=e;h!=null&&++o<d;){var x=Bt(t[o]),A=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(o!=f){var q=h[x];A=i?i(q,x,h):a,A===a&&(A=Ae(q)?q:Qt(t[o+1])?[]:{})}Ca(h,x,A),h=h[x]}return e}var hl=ws?function(e,t){return ws.set(e,t),e}:rt,tf=bs?function(e,t){return bs(e,"toString",{configurable:!0,enumerable:!1,value:_n(t),writable:!0})}:rt;function rf(e){return Ls(Zr(e))}function wt(e,t,r){var i=-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);++i<o;)d[i]=e[i+t];return d}function af(e,t){var r;return dr(e,function(i,o,d){return r=t(i,o,d),!r}),!!r}function Cs(e,t,r){var i=0,o=e==null?i:e.length;if(typeof t=="number"&&t===t&&o<=Le){for(;i<o;){var d=i+o>>>1,f=e[d];f!==null&&!ct(f)&&(r?f<=t:f<t)?i=d+1:o=d}return o}return Hi(e,t,rt,r)}function Hi(e,t,r,i){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,x=ct(t),A=t===a;o<d;){var q=vs((o+d)/2),C=r(e[q]),P=C!==a,M=C===null,j=C===C,Q=ct(C);if(f)var U=i||j;else A?U=j&&(i||P):h?U=j&&P&&(i||!M):x?U=j&&P&&!M&&(i||!Q):M||Q?U=!1:U=i?C<=t:C<t;U?o=q+1:d=q}return He(d,ge)}function _l(e,t){for(var r=-1,i=e.length,o=0,d=[];++r<i;){var f=e[r],h=t?t(f):f;if(!r||!zt(h,x)){var x=h;d[o++]=f===0?0:f}}return d}function gl(e){return typeof e=="number"?e:ct(e)?jt:+e}function lt(e){if(typeof e=="string")return e;if(G(e))return Te(e,lt)+"";if(ct(e))return Ko?Ko.call(e):"";var t=e+"";return t=="0"&&1/e==-Re?"-0":t}function pr(e,t,r){var i=-1,o=ls,d=e.length,f=!0,h=[],x=h;if(r)f=!1,o=bi;else if(d>=u){var A=t?null:yf(e);if(A)return us(A);f=!1,o=Ta,x=new Tr}else x=t?[]:h;e:for(;++i<d;){var q=e[i],C=t?t(q):q;if(q=r||q!==0?q:0,f&&C===C){for(var P=x.length;P--;)if(x[P]===C)continue e;t&&x.push(C),h.push(q)}else o(x,C,r)||(x!==h&&x.push(C),h.push(q))}return h}function Vi(e,t){return t=mr(t,e),e=$l(e,t),e==null||delete e[Bt(Tt(t))]}function bl(e,t,r,i){return Pa(e,t,r(Dr(e,t)),i)}function Ss(e,t,r,i){for(var o=e.length,d=i?o:-1;(i?d--:++d<o)&&t(e[d],d,e););return r?wt(e,i?0:d,i?d+1:o):wt(e,i?d+1:0,i?o:d)}function xl(e,t){var r=e;return r instanceof ie&&(r=r.value()),xi(t,function(i,o){return o.func.apply(o.thisArg,lr([i],o.args))},r)}function $i(e,t,r){var i=e.length;if(i<2)return i?pr(e[0]):[];for(var o=-1,d=T(i);++o<i;)for(var f=e[o],h=-1;++h<i;)h!=o&&(d[o]=Sa(d[o]||f,e[h],t,r));return pr(Ue(d,1),t,r)}function vl(e,t,r){for(var i=-1,o=e.length,d=t.length,f={};++i<o;){var h=i<d?t[i]:a;r(f,e[i],h)}return f}function Gi(e){return Se(e)?e:[]}function Xi(e){return typeof e=="function"?e:rt}function mr(e,t){return G(e)?e:an(e,t)?[e]:Kl(me(e))}var sf=J;function fr(e,t,r){var i=e.length;return r=r===a?i:r,!t&&r>=i?e:wt(e,t,r)}var wl=Vp||function(e){return je.clearTimeout(e)};function Tl(e,t){if(t)return e.slice();var r=e.length,i=Ho?Ho(r):new e.constructor(r);return e.copy(i),i}function Yi(e){var t=new e.constructor(e.byteLength);return new hs(t).set(new hs(e)),t}function nf(e,t){var r=t?Yi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function of(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}function lf(e){return qa?be(qa.call(e)):{}}function Il(e,t){var r=t?Yi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Dl(e,t){if(e!==t){var r=e!==a,i=e===null,o=e===e,d=ct(e),f=t!==a,h=t===null,x=t===t,A=ct(t);if(!h&&!A&&!d&&e>t||d&&f&&x&&!h&&!A||i&&f&&x||!r&&x||!o)return 1;if(!i&&!d&&!A&&e<t||A&&r&&o&&!i&&!d||h&&r&&o||!f&&o||!x)return-1}return 0}function cf(e,t,r){for(var i=-1,o=e.criteria,d=t.criteria,f=o.length,h=r.length;++i<f;){var x=Dl(o[i],d[i]);if(x){if(i>=h)return x;var A=r[i];return x*(A=="desc"?-1:1)}}return e.index-t.index}function kl(e,t,r,i){for(var o=-1,d=e.length,f=r.length,h=-1,x=t.length,A=Ee(d-f,0),q=T(x+A),C=!i;++h<x;)q[h]=t[h];for(;++o<f;)(C||o<d)&&(q[r[o]]=e[o]);for(;A--;)q[h++]=e[o++];return q}function Al(e,t,r,i){for(var o=-1,d=e.length,f=-1,h=r.length,x=-1,A=t.length,q=Ee(d-h,0),C=T(q+A),P=!i;++o<q;)C[o]=e[o];for(var M=o;++x<A;)C[M+x]=t[x];for(;++f<h;)(P||o<d)&&(C[M+r[f]]=e[o++]);return C}function Ze(e,t){var r=-1,i=e.length;for(t||(t=T(i));++r<i;)t[r]=e[r];return t}function Ft(e,t,r,i){var o=!r;r||(r={});for(var d=-1,f=t.length;++d<f;){var h=t[d],x=i?i(r[h],e[h],h,r,e):a;x===a&&(x=e[h]),o?Xt(r,h,x):Ca(r,h,x)}return r}function uf(e,t){return Ft(e,rn(e),t)}function df(e,t){return Ft(e,Bl(e),t)}function zs(e,t){return function(r,i){var o=G(r)?yp:Nm,d=t?t():{};return o(r,e,B(i,2),d)}}function Yr(e){return J(function(t,r){var i=-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&&Xe(r[0],r[1],f)&&(d=o<3?a:d,o=1),t=be(t);++i<o;){var h=r[i];h&&e(t,h,i,d)}return t})}function ql(e,t){return function(r,i){if(r==null)return r;if(!et(r))return e(r,i);for(var o=r.length,d=t?o:-1,f=be(r);(t?d--:++d<o)&&i(f[d],d,f)!==!1;);return r}}function Cl(e){return function(t,r,i){for(var o=-1,d=be(t),f=i(t),h=f.length;h--;){var x=f[e?h:++o];if(r(d[x],x,d)===!1)break}return t}}function pf(e,t,r){var i=t&Z,o=Ra(e);function d(){var f=this&&this!==je&&this instanceof d?o:e;return f.apply(i?r:this,arguments)}return d}function Sl(e){return function(t){t=me(t);var r=Ur(t)?Ct(t):a,i=r?r[0]:t.charAt(0),o=r?fr(r,1).join(""):t.slice(1);return i[e]()+o}}function Kr(e){return function(t){return xi(qc(Ac(t).replace(tp,"")),e,"")}}function Ra(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=Xr(e.prototype),i=e.apply(r,t);return Ae(i)?i:r}}function mf(e,t,r){var i=Ra(e);function o(){for(var d=arguments.length,f=T(d),h=d,x=Qr(o);h--;)f[h]=arguments[h];var A=d<3&&f[0]!==x&&f[d-1]!==x?[]:cr(f,x);if(d-=A.length,d<r)return Ol(e,t,Ns,o.placeholder,a,f,A,a,a,r-d);var q=this&&this!==je&&this instanceof o?i:e;return nt(q,this,f)}return o}function zl(e){return function(t,r,i){var o=be(t);if(!et(t)){var d=B(r,3);t=Fe(t),r=function(h){return d(o[h],h,o)}}var f=e(t,r,i);return f>-1?o[d?t[f]:f]:a}}function Nl(e){return Kt(function(t){var r=t.length,i=r,o=xt.prototype.thru;for(e&&t.reverse();i--;){var d=t[i];if(typeof d!="function")throw new bt(m);if(o&&!f&&Es(d)=="wrapper")var f=new xt([],!0)}for(i=f?i:r;++i<r;){d=t[i];var h=Es(d),x=h=="wrapper"?en(d):a;x&&sn(x[0])&&x[1]==(K|De|Y|Ne)&&!x[4].length&&x[9]==1?f=f[Es(x[0])].apply(f,x[3]):f=d.length==1&&sn(d)?f[h]():f.thru(d)}return function(){var A=arguments,q=A[0];if(f&&A.length==1&&G(q))return f.plant(q).value();for(var C=0,P=r?t[C].apply(this,A):q;++C<r;)P=t[C].call(this,P);return P}})}function Ns(e,t,r,i,o,d,f,h,x,A){var q=t&K,C=t&Z,P=t&de,M=t&(De|ne),j=t&_e,Q=P?a:Ra(e);function U(){for(var ae=arguments.length,oe=T(ae),ut=ae;ut--;)oe[ut]=arguments[ut];if(M)var Ye=Qr(U),dt=Ip(oe,Ye);if(i&&(oe=kl(oe,i,o,M)),d&&(oe=Al(oe,d,f,M)),ae-=dt,M&&ae<A){var ze=cr(oe,Ye);return Ol(e,t,Ns,U.placeholder,r,oe,ze,h,x,A-ae)}var Nt=C?r:this,er=P?Nt[e]:e;return ae=oe.length,h?oe=Pf(oe,h):j&&ae>1&&oe.reverse(),q&&x<ae&&(oe.length=x),this&&this!==je&&this instanceof U&&(er=Q||Ra(er)),er.apply(Nt,oe)}return U}function Pl(e,t){return function(r,i){return Bm(r,e,t(i),{})}}function Ps(e,t){return function(r,i){var o;if(r===a&&i===a)return t;if(r!==a&&(o=r),i!==a){if(o===a)return i;typeof r=="string"||typeof i=="string"?(r=lt(r),i=lt(i)):(r=gl(r),i=gl(i)),o=e(r,i)}return o}}function Ki(e){return Kt(function(t){return t=Te(t,ot(B())),J(function(r){var i=this;return e(t,function(o){return nt(o,i,r)})})})}function Rs(e,t){t=t===a?" ":lt(t);var r=t.length;if(r<2)return r?Wi(t,e):t;var i=Wi(t,xs(e/Wr(t)));return Ur(t)?fr(Ct(i),0,e).join(""):i.slice(0,e)}function ff(e,t,r,i){var o=t&Z,d=Ra(e);function f(){for(var h=-1,x=arguments.length,A=-1,q=i.length,C=T(q+x),P=this&&this!==je&&this instanceof f?d:e;++A<q;)C[A]=i[A];for(;x--;)C[A++]=arguments[++h];return nt(P,o?r:this,C)}return f}function Rl(e){return function(t,r,i){return i&&typeof i!="number"&&Xe(t,r,i)&&(r=i=a),t=Zt(t),r===a?(r=t,t=0):r=Zt(r),i=i===a?t<r?1:-1:Zt(i),Jm(t,r,i,e)}}function Os(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=It(t),r=It(r)),e(t,r)}}function Ol(e,t,r,i,o,d,f,h,x,A){var q=t&De,C=q?f:a,P=q?a:f,M=q?d:a,j=q?a:d;t|=q?Y:le,t&=~(q?le:Y),t&ee||(t&=~(Z|de));var Q=[e,t,o,M,C,j,P,h,x,A],U=r.apply(a,Q);return sn(e)&&Gl(U,Q),U.placeholder=i,Xl(U,e,t)}function Qi(e){var t=Oe[e];return function(r,i){if(r=It(r),i=i==null?0:He(X(i),292),i&&Xo(r)){var o=(me(r)+"e").split("e"),d=t(o[0]+"e"+(+o[1]+i));return o=(me(d)+"e").split("e"),+(o[0]+"e"+(+o[1]-i))}return t(r)}}var yf=$r&&1/us(new $r([,-0]))[1]==Re?function(e){return new $r(e)}:xn;function El(e){return function(t){var r=Ve(t);return r==st?Ai(t):r==it?zp(t):Tp(t,e(t))}}function Yt(e,t,r,i,o,d,f,h){var x=t&de;if(!x&&typeof e!="function")throw new bt(m);var A=i?i.length:0;if(A||(t&=~(Y|le),i=o=a),f=f===a?f:Ee(X(f),0),h=h===a?h:X(h),A-=o?o.length:0,t&le){var q=i,C=o;i=o=a}var P=x?a:en(e),M=[e,t,r,i,o,q,C,d,f,h];if(P&&Sf(M,P),e=M[0],t=M[1],r=M[2],i=M[3],o=M[4],h=M[9]=M[9]===a?x?0:e.length:Ee(M[9]-A,0),!h&&t&(De|ne)&&(t&=~(De|ne)),!t||t==Z)var j=pf(e,t,r);else t==De||t==ne?j=mf(e,t,h):(t==Y||t==(Z|Y))&&!o.length?j=ff(e,t,r,i):j=Ns.apply(a,M);var Q=P?hl:Gl;return Xl(Q(j,M),e,t)}function Ml(e,t,r,i){return e===a||zt(e,Vr[r])&&!he.call(i,r)?t:e}function Ll(e,t,r,i,o,d){return Ae(e)&&Ae(t)&&(d.set(t,e),qs(e,t,a,Ll,d),d.delete(t)),e}function hf(e){return Ma(e)?a:e}function Fl(e,t,r,i,o,d){var f=r&R,h=e.length,x=t.length;if(h!=x&&!(f&&x>h))return!1;var A=d.get(e),q=d.get(t);if(A&&q)return A==t&&q==e;var C=-1,P=!0,M=r&L?new Tr:a;for(d.set(e,t),d.set(t,e);++C<h;){var j=e[C],Q=t[C];if(i)var U=f?i(Q,j,C,t,e,d):i(j,Q,C,e,t,d);if(U!==a){if(U)continue;P=!1;break}if(M){if(!vi(t,function(ae,oe){if(!Ta(M,oe)&&(j===ae||o(j,ae,r,i,d)))return M.push(oe)})){P=!1;break}}else if(!(j===Q||o(j,Q,r,i,d))){P=!1;break}}return d.delete(e),d.delete(t),P}function _f(e,t,r,i,o,d,f){switch(r){case nr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case At:return!(e.byteLength!=t.byteLength||!d(new hs(e),new hs(t)));case Et:case Wt:case Mt:return zt(+e,+t);case Pr:return e.name==t.name&&e.message==t.message;case gr:case Ht:return e==t+"";case st:var h=Ai;case it:var x=i&R;if(h||(h=us),e.size!=t.size&&!x)return!1;var A=f.get(e);if(A)return A==t;i|=L,f.set(e,t);var q=Fl(h(e),h(t),i,o,d,f);return f.delete(e),q;case Er:if(qa)return qa.call(e)==qa.call(t)}return!1}function gf(e,t,r,i,o,d){var f=r&R,h=Ji(e),x=h.length,A=Ji(t),q=A.length;if(x!=q&&!f)return!1;for(var C=x;C--;){var P=h[C];if(!(f?P in t:he.call(t,P)))return!1}var M=d.get(e),j=d.get(t);if(M&&j)return M==t&&j==e;var Q=!0;d.set(e,t),d.set(t,e);for(var U=f;++C<x;){P=h[C];var ae=e[P],oe=t[P];if(i)var ut=f?i(oe,ae,P,t,e,d):i(ae,oe,P,e,t,d);if(!(ut===a?ae===oe||o(ae,oe,r,i,d):ut)){Q=!1;break}U||(U=P=="constructor")}if(Q&&!U){var Ye=e.constructor,dt=t.constructor;Ye!=dt&&"constructor"in e&&"constructor"in t&&!(typeof Ye=="function"&&Ye instanceof Ye&&typeof dt=="function"&&dt instanceof dt)&&(Q=!1)}return d.delete(e),d.delete(t),Q}function Kt(e){return on(Vl(e,a,ec),e+"")}function Ji(e){return il(e,Fe,rn)}function Zi(e){return il(e,tt,Bl)}var en=ws?function(e){return ws.get(e)}:xn;function Es(e){for(var t=e.name+"",r=Gr[t],i=he.call(Gr,t)?r.length:0;i--;){var o=r[i],d=o.func;if(d==null||d==e)return o.name}return t}function Qr(e){var t=he.call(c,"placeholder")?c:e;return t.placeholder}function B(){var e=c.iteratee||gn;return e=e===gn?ll:e,arguments.length?e(arguments[0],arguments[1]):e}function Ms(e,t){var r=e.__data__;return kf(t)?r[typeof t=="string"?"string":"hash"]:r.map}function tn(e){for(var t=Fe(e),r=t.length;r--;){var i=t[r],o=e[i];t[r]=[i,o,Wl(o)]}return t}function kr(e,t){var r=qp(e,t);return ol(r)?r:a}function bf(e){var t=he.call(e,vr),r=e[vr];try{e[vr]=a;var i=!0}catch{}var o=fs.call(e);return i&&(t?e[vr]=r:delete e[vr]),o}var rn=Ci?function(e){return e==null?[]:(e=be(e),or(Ci(e),function(t){return $o.call(e,t)}))}:vn,Bl=Ci?function(e){for(var t=[];e;)lr(t,rn(e)),e=_s(e);return t}:vn,Ve=Ge;(Si&&Ve(new Si(new ArrayBuffer(1)))!=nr||Da&&Ve(new Da)!=st||zi&&Ve(zi.resolve())!=pa||$r&&Ve(new $r)!=it||ka&&Ve(new ka)!=ir)&&(Ve=function(e){var t=Ge(e),r=t==ht?e.constructor:a,i=r?Ar(r):"";if(i)switch(i){case em:return nr;case tm:return st;case rm:return pa;case am:return it;case sm:return ir}return t});function xf(e,t,r){for(var i=-1,o=r.length;++i<o;){var d=r[i],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=Ee(e,t-f);break}}return{start:e,end:t}}function vf(e){var t=e.match(di);return t?t[1].split(y):[]}function jl(e,t,r){t=mr(t,e);for(var i=-1,o=t.length,d=!1;++i<o;){var f=Bt(t[i]);if(!(d=e!=null&&r(e,f)))break;e=e[f]}return d||++i!=o?d:(o=e==null?0:e.length,!!o&&Hs(o)&&Qt(f,o)&&(G(e)||qr(e)))}function wf(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&he.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Ul(e){return typeof e.constructor=="function"&&!Oa(e)?Xr(_s(e)):{}}function Tf(e,t,r){var i=e.constructor;switch(t){case At:return Yi(e);case Et:case Wt:return new i(+e);case nr:return nf(e,r);case Mr:case Lr:case br:case ma:case fa:case ya:case ha:case _a:case ga:return Il(e,r);case st:return new i;case Mt:case Ht:return new i(e);case gr:return of(e);case it:return new i;case Er:return lf(e)}}function If(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(ui,`{
113
113
  /* [wrapped with `+t+`] */
114
- `)}function Df(e){return G(e)||qr(e)||!!(Go&&e&&e[Go])}function Qt(e,t){var r=typeof e;return t=t??Me,!!t&&(r=="number"||r!="symbol"&&qe.test(e))&&e>-1&&e%1==0&&e<t}function Xe(e,t,r){if(!Ae(r))return!1;var i=typeof t;return(i=="number"?et(r)&&Qt(t,r.length):i=="string"&&t in r)?zt(r[t],e):!1}function an(e,t){if(G(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ct(e)?!0:ss.test(e)||!as.test(e)||t!=null&&e in be(t)}function kf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sn(e){var t=Es(e),r=c[t];if(typeof r!="function"||!(t in ie.prototype))return!1;if(e===r)return!0;var i=en(r);return!!i&&e===i[0]}function Af(e){return!!Wo&&Wo in e}var qf=ps?Zt:wn;function Oa(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vr;return e===r}function Wl(e){return e===e&&!Ae(e)}function Hl(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in be(r))}}function Cf(e){var t=Us(e,function(i){return r.size===b&&r.clear(),i}),r=t.cache;return t}function Sf(e,t){var r=e[1],i=t[1],o=r|i,d=o<(J|de|K),f=i==K&&r==De||i==K&&r==Ne&&e[7].length<=t[8]||i==(K|Ne)&&t[7].length<=t[8]&&r==De;if(!(d||f))return e;i&J&&(e[2]=t[2],o|=r&J?0:ee);var h=t[3];if(h){var x=e[3];e[3]=x?kl(x,h,t[4]):h,e[4]=x?cr(e[3],w):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Al(x,h,t[6]):h,e[6]=x?cr(e[5],w):t[6]),h=t[7],h&&(e[7]=h),i&K&&(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 zf(e){var t=[];if(e!=null)for(var r in be(e))t.push(r);return t}function Nf(e){return fs.call(e)}function Vl(e,t,r){return t=Ee(t===a?e.length-1:t,0),function(){for(var i=arguments,o=-1,d=Ee(i.length-t,0),f=T(d);++o<d;)f[o]=i[t+o];o=-1;for(var h=T(t+1);++o<t;)h[o]=i[o];return h[t]=r(f),nt(e,this,h)}}function $l(e,t){return t.length<2?e:Dr(e,wt(t,0,-1))}function Pf(e,t){for(var r=e.length,i=He(t.length,r),o=Je(e);i--;){var d=t[i];e[i]=Qt(d,r)?o[d]:a}return e}function nn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Gl=Yl(hl),Ea=Gp||function(e,t){return je.setTimeout(e,t)},on=Yl(tf);function Xl(e,t,r){var i=t+"";return on(e,If(i,Rf(vf(i),r)))}function Yl(e){var t=0,r=0;return function(){var i=Qp(),o=Pe-(i-r);if(r=i,o>0){if(++t>=kt)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ls(e,t){var r=-1,i=e.length,o=i-1;for(t=t===a?i:t;++r<t;){var d=Ui(r,o),f=e[d];e[d]=e[r],e[r]=f}return e.length=t,e}var Kl=Cf(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(li,function(r,i,o,d){t.push(o?d.replace(H,"$1"):i||r)}),t});function Bt(e){if(typeof e=="string"||ct(e))return e;var t=e+"";return t=="0"&&1/e==-Re?"-0":t}function Ar(e){if(e!=null){try{return ms.call(e)}catch{}try{return e+""}catch{}}return""}function Rf(e,t){return gt(Ut,function(r){var i="_."+r[0];t&r[1]&&!ls(e,i)&&e.push(i)}),e.sort()}function Ql(e){if(e instanceof ie)return e.clone();var t=new xt(e.__wrapped__,e.__chain__);return t.__actions__=Je(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Of(e,t,r){(r?Xe(e,t,r):t===a)?t=1:t=Ee(X(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var o=0,d=0,f=T(xs(i/t));o<i;)f[d++]=wt(e,o,o+=t);return f}function Ef(e){for(var t=-1,r=e==null?0:e.length,i=0,o=[];++t<r;){var d=e[t];d&&(o[i++]=d)}return o}function Mf(){var e=arguments.length;if(!e)return[];for(var t=T(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return lr(G(r)?Je(r):[r],Ue(t,1))}var Lf=Z(function(e,t){return Se(e)?Sa(e,Ue(t,1,Se,!0)):[]}),Ff=Z(function(e,t){var r=Tt(t);return Se(r)&&(r=a),Se(e)?Sa(e,Ue(t,1,Se,!0),B(r,2)):[]}),Bf=Z(function(e,t){var r=Tt(t);return Se(r)&&(r=a),Se(e)?Sa(e,Ue(t,1,Se,!0),a,r):[]});function jf(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:X(t),wt(e,t<0?0:t,i)):[]}function Uf(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:X(t),t=i-t,wt(e,0,t<0?0:t)):[]}function Wf(e,t){return e&&e.length?Ss(e,B(t,3),!0,!0):[]}function Hf(e,t){return e&&e.length?Ss(e,B(t,3),!0):[]}function Vf(e,t,r,i){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&Xe(e,t,r)&&(r=0,i=o),Em(e,t,r,i)):[]}function Zl(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var o=r==null?0:X(r);return o<0&&(o=Ee(i+o,0)),cs(e,B(t,3),o)}function Jl(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var o=i-1;return r!==a&&(o=X(r),o=r<0?Ee(i+o,0):He(o,i-1)),cs(e,B(t,3),o,!0)}function ec(e){var t=e==null?0:e.length;return t?Ue(e,1):[]}function $f(e){var t=e==null?0:e.length;return t?Ue(e,Re):[]}function Gf(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:X(t),Ue(e,t)):[]}function Xf(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var o=e[t];i[o[0]]=o[1]}return i}function tc(e){return e&&e.length?e[0]:a}function Yf(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var o=r==null?0:X(r);return o<0&&(o=Ee(i+o,0)),jr(e,t,o)}function Kf(e){var t=e==null?0:e.length;return t?wt(e,0,-1):[]}var Qf=Z(function(e){var t=Te(e,Gi);return t.length&&t[0]===e[0]?Mi(t):[]}),Zf=Z(function(e){var t=Tt(e),r=Te(e,Gi);return t===Tt(r)?t=a:r.pop(),r.length&&r[0]===e[0]?Mi(r,B(t,2)):[]}),Jf=Z(function(e){var t=Tt(e),r=Te(e,Gi);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?Mi(r,a,t):[]});function ey(e,t){return e==null?"":Yp.call(e,t)}function Tt(e){var t=e==null?0:e.length;return t?e[t-1]:a}function ty(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var o=i;return r!==a&&(o=X(r),o=o<0?Ee(i+o,0):He(o,i-1)),t===t?Pp(e,t,o):cs(e,Oo,o,!0)}function ry(e,t){return e&&e.length?pl(e,X(t)):a}var ay=Z(rc);function rc(e,t){return e&&e.length&&t&&t.length?ji(e,t):e}function sy(e,t,r){return e&&e.length&&t&&t.length?ji(e,t,B(r,2)):e}function iy(e,t,r){return e&&e.length&&t&&t.length?ji(e,t,a,r):e}var ny=Kt(function(e,t){var r=e==null?0:e.length,i=Pi(e,t);return yl(e,Te(t,function(o){return Qt(o,r)?+o:o}).sort(Dl)),i});function oy(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,o=[],d=e.length;for(t=B(t,3);++i<d;){var f=e[i];t(f,i,e)&&(r.push(f),o.push(i))}return yl(e,o),r}function ln(e){return e==null?e:Jp.call(e)}function ly(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Xe(e,t,r)?(t=0,r=i):(t=t==null?0:X(t),r=r===a?i:X(r)),wt(e,t,r)):[]}function cy(e,t){return Cs(e,t)}function uy(e,t,r){return Hi(e,t,B(r,2))}function dy(e,t){var r=e==null?0:e.length;if(r){var i=Cs(e,t);if(i<r&&zt(e[i],t))return i}return-1}function py(e,t){return Cs(e,t,!0)}function my(e,t,r){return Hi(e,t,B(r,2),!0)}function fy(e,t){var r=e==null?0:e.length;if(r){var i=Cs(e,t,!0)-1;if(zt(e[i],t))return i}return-1}function yy(e){return e&&e.length?_l(e):[]}function hy(e,t){return e&&e.length?_l(e,B(t,2)):[]}function _y(e){var t=e==null?0:e.length;return t?wt(e,1,t):[]}function gy(e,t,r){return e&&e.length?(t=r||t===a?1:X(t),wt(e,0,t<0?0:t)):[]}function by(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:X(t),t=i-t,wt(e,t<0?0:t,i)):[]}function xy(e,t){return e&&e.length?Ss(e,B(t,3),!1,!0):[]}function vy(e,t){return e&&e.length?Ss(e,B(t,3)):[]}var wy=Z(function(e){return pr(Ue(e,1,Se,!0))}),Ty=Z(function(e){var t=Tt(e);return Se(t)&&(t=a),pr(Ue(e,1,Se,!0),B(t,2))}),Iy=Z(function(e){var t=Tt(e);return t=typeof t=="function"?t:a,pr(Ue(e,1,Se,!0),a,t)});function Dy(e){return e&&e.length?pr(e):[]}function ky(e,t){return e&&e.length?pr(e,B(t,2)):[]}function Ay(e,t){return t=typeof t=="function"?t:a,e&&e.length?pr(e,a,t):[]}function cn(e){if(!(e&&e.length))return[];var t=0;return e=or(e,function(r){if(Se(r))return t=Ee(r.length,t),!0}),Di(t,function(r){return Te(e,wi(r))})}function ac(e,t){if(!(e&&e.length))return[];var r=cn(e);return t==null?r:Te(r,function(i){return nt(t,a,i)})}var qy=Z(function(e,t){return Se(e)?Sa(e,t):[]}),Cy=Z(function(e){return $i(or(e,Se))}),Sy=Z(function(e){var t=Tt(e);return Se(t)&&(t=a),$i(or(e,Se),B(t,2))}),zy=Z(function(e){var t=Tt(e);return t=typeof t=="function"?t:a,$i(or(e,Se),a,t)}),Ny=Z(cn);function Py(e,t){return vl(e||[],t||[],Ca)}function Ry(e,t){return vl(e||[],t||[],Pa)}var Oy=Z(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,ac(e,r)});function sc(e){var t=c(e);return t.__chain__=!0,t}function Ey(e,t){return t(e),e}function Fs(e,t){return t(e)}var My=Kt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(d){return Pi(d,e)};return t>1||this.__actions__.length||!(i instanceof ie)||!Qt(r)?this.thru(o):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:Fs,args:[o],thisArg:a}),new xt(i,this.__chain__).thru(function(d){return t&&!d.length&&d.push(a),d}))});function Ly(){return sc(this)}function Fy(){return new xt(this.value(),this.__chain__)}function By(){this.__values__===a&&(this.__values__=gc(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function jy(){return this}function Uy(e){for(var t,r=this;r instanceof Is;){var i=Ql(r);i.__index__=0,i.__values__=a,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t}function Wy(){var e=this.__wrapped__;if(e instanceof ie){var t=e;return this.__actions__.length&&(t=new ie(this)),t=t.reverse(),t.__actions__.push({func:Fs,args:[ln],thisArg:a}),new xt(t,this.__chain__)}return this.thru(ln)}function Hy(){return xl(this.__wrapped__,this.__actions__)}var Vy=zs(function(e,t,r){he.call(e,r)?++e[r]:Xt(e,r,1)});function $y(e,t,r){var i=G(e)?Po:Om;return r&&Xe(e,t,r)&&(t=a),i(e,B(t,3))}function Gy(e,t){var r=G(e)?or:al;return r(e,B(t,3))}var Xy=zl(Zl),Yy=zl(Jl);function Ky(e,t){return Ue(Bs(e,t),1)}function Qy(e,t){return Ue(Bs(e,t),Re)}function Zy(e,t,r){return r=r===a?1:X(r),Ue(Bs(e,t),r)}function ic(e,t){var r=G(e)?gt:dr;return r(e,B(t,3))}function nc(e,t){var r=G(e)?hp:rl;return r(e,B(t,3))}var Jy=zs(function(e,t,r){he.call(e,r)?e[r].push(t):Xt(e,r,[t])});function eh(e,t,r,i){e=et(e)?e:Jr(e),r=r&&!i?X(r):0;var o=e.length;return r<0&&(r=Ee(o+r,0)),Vs(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&jr(e,t,r)>-1}var th=Z(function(e,t,r){var i=-1,o=typeof t=="function",d=et(e)?T(e.length):[];return dr(e,function(f){d[++i]=o?nt(t,f,r):za(f,t,r)}),d}),rh=zs(function(e,t,r){Xt(e,r,t)});function Bs(e,t){var r=G(e)?Te:cl;return r(e,B(t,3))}function ah(e,t,r,i){return e==null?[]:(G(t)||(t=t==null?[]:[t]),r=i?a:r,G(r)||(r=r==null?[]:[r]),ml(e,t,r))}var sh=zs(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function ih(e,t,r){var i=G(e)?xi:Mo,o=arguments.length<3;return i(e,B(t,4),r,o,dr)}function nh(e,t,r){var i=G(e)?_p:Mo,o=arguments.length<3;return i(e,B(t,4),r,o,rl)}function oh(e,t){var r=G(e)?or:al;return r(e,Ws(B(t,3)))}function lh(e){var t=G(e)?Zo:Jm;return t(e)}function ch(e,t,r){(r?Xe(e,t,r):t===a)?t=1:t=X(t);var i=G(e)?Sm:ef;return i(e,t)}function uh(e){var t=G(e)?zm:rf;return t(e)}function dh(e){if(e==null)return 0;if(et(e))return Vs(e)?Wr(e):e.length;var t=Ve(e);return t==st||t==it?e.size:Fi(e).length}function ph(e,t,r){var i=G(e)?vi:af;return r&&Xe(e,t,r)&&(t=a),i(e,B(t,3))}var mh=Z(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Xe(e,t[0],t[1])?t=[]:r>2&&Xe(t[0],t[1],t[2])&&(t=[t[0]]),ml(e,Ue(t,1),[])}),js=$p||function(){return je.Date.now()};function fh(e,t){if(typeof t!="function")throw new bt(m);return e=X(e),function(){if(--e<1)return t.apply(this,arguments)}}function oc(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Yt(e,K,a,a,a,a,t)}function lc(e,t){var r;if(typeof t!="function")throw new bt(m);return e=X(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var un=Z(function(e,t,r){var i=J;if(r.length){var o=cr(r,Qr(un));i|=Y}return Yt(e,i,t,r,o)}),cc=Z(function(e,t,r){var i=J|de;if(r.length){var o=cr(r,Qr(cc));i|=Y}return Yt(t,i,e,r,o)});function uc(e,t,r){t=r?a:t;var i=Yt(e,De,a,a,a,a,a,t);return i.placeholder=uc.placeholder,i}function dc(e,t,r){t=r?a:t;var i=Yt(e,ne,a,a,a,a,a,t);return i.placeholder=dc.placeholder,i}function pc(e,t,r){var i,o,d,f,h,x,A=0,q=!1,C=!1,P=!0;if(typeof e!="function")throw new bt(m);t=It(t)||0,Ae(r)&&(q=!!r.leading,C="maxWait"in r,d=C?Ee(It(r.maxWait)||0,t):d,P="trailing"in r?!!r.trailing:P);function M(ze){var Nt=i,er=o;return i=o=a,A=ze,f=e.apply(er,Nt),f}function j(ze){return A=ze,h=Ea(ae,t),q?M(ze):f}function Q(ze){var Nt=ze-x,er=ze-A,zc=t-Nt;return C?He(zc,d-er):zc}function U(ze){var Nt=ze-x,er=ze-A;return x===a||Nt>=t||Nt<0||C&&er>=d}function ae(){var ze=js();if(U(ze))return oe(ze);h=Ea(ae,Q(ze))}function oe(ze){return h=a,P&&i?M(ze):(i=o=a,f)}function ut(){h!==a&&wl(h),A=0,i=x=o=h=a}function Ye(){return h===a?f:oe(js())}function dt(){var ze=js(),Nt=U(ze);if(i=arguments,o=this,x=ze,Nt){if(h===a)return j(x);if(C)return wl(h),h=Ea(ae,t),M(x)}return h===a&&(h=Ea(ae,t)),f}return dt.cancel=ut,dt.flush=Ye,dt}var yh=Z(function(e,t){return tl(e,1,t)}),hh=Z(function(e,t,r){return tl(e,It(t)||0,r)});function _h(e){return Yt(e,_e)}function Us(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new bt(m);var r=function(){var i=arguments,o=t?t.apply(this,i):i[0],d=r.cache;if(d.has(o))return d.get(o);var f=e.apply(this,i);return r.cache=d.set(o,f)||d,f};return r.cache=new(Us.Cache||Gt),r}Us.Cache=Gt;function Ws(e){if(typeof e!="function")throw new bt(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 gh(e){return lc(2,e)}var bh=sf(function(e,t){t=t.length==1&&G(t[0])?Te(t[0],ot(B())):Te(Ue(t,1),ot(B()));var r=t.length;return Z(function(i){for(var o=-1,d=He(i.length,r);++o<d;)i[o]=t[o].call(this,i[o]);return nt(e,this,i)})}),dn=Z(function(e,t){var r=cr(t,Qr(dn));return Yt(e,Y,a,t,r)}),mc=Z(function(e,t){var r=cr(t,Qr(mc));return Yt(e,le,a,t,r)}),xh=Kt(function(e,t){return Yt(e,Ne,a,a,a,t)});function vh(e,t){if(typeof e!="function")throw new bt(m);return t=t===a?t:X(t),Z(e,t)}function wh(e,t){if(typeof e!="function")throw new bt(m);return t=t==null?0:Ee(X(t),0),Z(function(r){var i=r[t],o=fr(r,0,t);return i&&lr(o,i),nt(e,this,o)})}function Th(e,t,r){var i=!0,o=!0;if(typeof e!="function")throw new bt(m);return Ae(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),pc(e,t,{leading:i,maxWait:t,trailing:o})}function Ih(e){return oc(e,1)}function Dh(e,t){return dn(Xi(t),e)}function kh(){if(!arguments.length)return[];var e=arguments[0];return G(e)?e:[e]}function Ah(e){return vt(e,E)}function qh(e,t){return t=typeof t=="function"?t:a,vt(e,E,t)}function Ch(e){return vt(e,k|E)}function Sh(e,t){return t=typeof t=="function"?t:a,vt(e,k|E,t)}function zh(e,t){return t==null||el(e,t,Fe(t))}function zt(e,t){return e===t||e!==e&&t!==t}var Nh=Os(Ei),Ph=Os(function(e,t){return e>=t}),qr=nl(function(){return arguments}())?nl:function(e){return Ce(e)&&he.call(e,"callee")&&!$o.call(e,"callee")},G=T.isArray,Rh=Ao?ot(Ao):jm;function et(e){return e!=null&&Hs(e.length)&&!Zt(e)}function Se(e){return Ce(e)&&et(e)}function Oh(e){return e===!0||e===!1||Ce(e)&&Ge(e)==Et}var yr=Xp||wn,Eh=qo?ot(qo):Um;function Mh(e){return Ce(e)&&e.nodeType===1&&!Ma(e)}function Lh(e){if(e==null)return!0;if(et(e)&&(G(e)||typeof e=="string"||typeof e.splice=="function"||yr(e)||Zr(e)||qr(e)))return!e.length;var t=Ve(e);if(t==st||t==it)return!e.size;if(Oa(e))return!Fi(e).length;for(var r in e)if(he.call(e,r))return!1;return!0}function Fh(e,t){return Na(e,t)}function Bh(e,t,r){r=typeof r=="function"?r:a;var i=r?r(e,t):a;return i===a?Na(e,t,a,r):!!i}function pn(e){if(!Ce(e))return!1;var t=Ge(e);return t==Pr||t==Nr||typeof e.message=="string"&&typeof e.name=="string"&&!Ma(e)}function jh(e){return typeof e=="number"&&Xo(e)}function Zt(e){if(!Ae(e))return!1;var t=Ge(e);return t==_r||t==Qa||t==da||t==Or}function fc(e){return typeof e=="number"&&e==X(e)}function Hs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Me}function Ae(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ce(e){return e!=null&&typeof e=="object"}var yc=Co?ot(Co):Hm;function Uh(e,t){return e===t||Li(e,t,tn(t))}function Wh(e,t,r){return r=typeof r=="function"?r:a,Li(e,t,tn(t),r)}function Hh(e){return hc(e)&&e!=+e}function Vh(e){if(qf(e))throw new $(p);return ol(e)}function $h(e){return e===null}function Gh(e){return e==null}function hc(e){return typeof e=="number"||Ce(e)&&Ge(e)==Mt}function Ma(e){if(!Ce(e)||Ge(e)!=ht)return!1;var t=_s(e);if(t===null)return!0;var r=he.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ms.call(r)==Up}var mn=So?ot(So):Vm;function Xh(e){return fc(e)&&e>=-Me&&e<=Me}var _c=zo?ot(zo):$m;function Vs(e){return typeof e=="string"||!G(e)&&Ce(e)&&Ge(e)==Ht}function ct(e){return typeof e=="symbol"||Ce(e)&&Ge(e)==Er}var Zr=No?ot(No):Gm;function Yh(e){return e===a}function Kh(e){return Ce(e)&&Ve(e)==ir}function Qh(e){return Ce(e)&&Ge(e)==Za}var Zh=Os(Bi),Jh=Os(function(e,t){return e<=t});function gc(e){if(!e)return[];if(et(e))return Vs(e)?Ct(e):Je(e);if(Ia&&e[Ia])return Sp(e[Ia]());var t=Ve(e),r=t==st?Ai:t==it?us:Jr;return r(e)}function Jt(e){if(!e)return e===0?e:0;if(e=It(e),e===Re||e===-Re){var t=e<0?-1:1;return t*Ot}return e===e?e:0}function X(e){var t=Jt(e),r=t%1;return t===t?r?t-r:t:0}function bc(e){return e?Ir(X(e),0,V):0}function It(e){if(typeof e=="number")return e;if(ct(e))return jt;if(Ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lo(e);var r=te.test(e);return r||ke.test(e)?mp(e.slice(2),r?2:8):se.test(e)?jt:+e}function xc(e){return Ft(e,tt(e))}function e_(e){return e?Ir(X(e),-Me,Me):e===0?e:0}function me(e){return e==null?"":lt(e)}var t_=Yr(function(e,t){if(Oa(t)||et(t)){Ft(t,Fe(t),e);return}for(var r in t)he.call(t,r)&&Ca(e,r,t[r])}),vc=Yr(function(e,t){Ft(t,tt(t),e)}),$s=Yr(function(e,t,r,i){Ft(t,tt(t),e,i)}),r_=Yr(function(e,t,r,i){Ft(t,Fe(t),e,i)}),a_=Kt(Pi);function s_(e,t){var r=Xr(e);return t==null?r:Jo(r,t)}var i_=Z(function(e,t){e=be(e);var r=-1,i=t.length,o=i>2?t[2]:a;for(o&&Xe(t[0],t[1],o)&&(i=1);++r<i;)for(var d=t[r],f=tt(d),h=-1,x=f.length;++h<x;){var A=f[h],q=e[A];(q===a||zt(q,Vr[A])&&!he.call(e,A))&&(e[A]=d[A])}return e}),n_=Z(function(e){return e.push(a,Ll),nt(wc,a,e)});function o_(e,t){return Ro(e,B(t,3),Lt)}function l_(e,t){return Ro(e,B(t,3),Oi)}function c_(e,t){return e==null?e:Ri(e,B(t,3),tt)}function u_(e,t){return e==null?e:sl(e,B(t,3),tt)}function d_(e,t){return e&&Lt(e,B(t,3))}function p_(e,t){return e&&Oi(e,B(t,3))}function m_(e){return e==null?[]:As(e,Fe(e))}function f_(e){return e==null?[]:As(e,tt(e))}function fn(e,t,r){var i=e==null?a:Dr(e,t);return i===a?r:i}function y_(e,t){return e!=null&&jl(e,t,Mm)}function yn(e,t){return e!=null&&jl(e,t,Lm)}var h_=Pl(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=fs.call(t)),e[t]=r},_n(rt)),__=Pl(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=fs.call(t)),he.call(e,t)?e[t].push(r):e[t]=[r]},B),g_=Z(za);function Fe(e){return et(e)?Qo(e):Fi(e)}function tt(e){return et(e)?Qo(e,!0):Xm(e)}function b_(e,t){var r={};return t=B(t,3),Lt(e,function(i,o,d){Xt(r,t(i,o,d),i)}),r}function x_(e,t){var r={};return t=B(t,3),Lt(e,function(i,o,d){Xt(r,o,t(i,o,d))}),r}var v_=Yr(function(e,t,r){qs(e,t,r)}),wc=Yr(function(e,t,r,i){qs(e,t,r,i)}),w_=Kt(function(e,t){var r={};if(e==null)return r;var i=!1;t=Te(t,function(d){return d=mr(d,e),i||(i=d.length>1),d}),Ft(e,Ji(e),r),i&&(r=vt(r,k|z|E,hf));for(var o=t.length;o--;)Vi(r,t[o]);return r});function T_(e,t){return Tc(e,Ws(B(t)))}var I_=Kt(function(e,t){return e==null?{}:Km(e,t)});function Tc(e,t){if(e==null)return{};var r=Te(Ji(e),function(i){return[i]});return t=B(t),fl(e,r,function(i,o){return t(i,o[0])})}function D_(e,t,r){t=mr(t,e);var i=-1,o=t.length;for(o||(o=1,e=a);++i<o;){var d=e==null?a:e[Bt(t[i])];d===a&&(i=o,d=r),e=Zt(d)?d.call(e):d}return e}function k_(e,t,r){return e==null?e:Pa(e,t,r)}function A_(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Pa(e,t,r,i)}var Ic=El(Fe),Dc=El(tt);function q_(e,t,r){var i=G(e),o=i||yr(e)||Zr(e);if(t=B(t,4),r==null){var d=e&&e.constructor;o?r=i?new d:[]:Ae(e)?r=Zt(d)?Xr(_s(e)):{}:r={}}return(o?gt:Lt)(e,function(f,h,x){return t(r,f,h,x)}),r}function C_(e,t){return e==null?!0:Vi(e,t)}function S_(e,t,r){return e==null?e:bl(e,t,Xi(r))}function z_(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:bl(e,t,Xi(r),i)}function Jr(e){return e==null?[]:ki(e,Fe(e))}function N_(e){return e==null?[]:ki(e,tt(e))}function P_(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=It(r),r=r===r?r:0),t!==a&&(t=It(t),t=t===t?t:0),Ir(It(e),t,r)}function R_(e,t,r){return t=Jt(t),r===a?(r=t,t=0):r=Jt(r),e=It(e),Fm(e,t,r)}function O_(e,t,r){if(r&&typeof r!="boolean"&&Xe(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=Jt(e),t===a?(t=e,e=0):t=Jt(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=Yo();return He(e+o*(t-e+pp("1e-"+((o+"").length-1))),t)}return Ui(e,t)}var E_=Kr(function(e,t,r){return t=t.toLowerCase(),e+(r?kc(t):t)});function kc(e){return hn(me(e).toLowerCase())}function Ac(e){return e=me(e),e&&e.replace(Qe,Dp).replace(rp,"")}function M_(e,t,r){e=me(e),t=lt(t);var i=e.length;r=r===a?i:Ir(X(r),0,i);var o=r;return r-=t.length,r>=0&&e.slice(r,o)==t}function L_(e){return e=me(e),e&&es.test(e)?e.replace(Fr,kp):e}function F_(e){return e=me(e),e&&is.test(e)?e.replace(va,"\\$&"):e}var B_=Kr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),j_=Kr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),U_=Sl("toLowerCase");function W_(e,t,r){e=me(e),t=X(t);var i=t?Wr(e):0;if(!t||i>=t)return e;var o=(t-i)/2;return Rs(vs(o),r)+e+Rs(xs(o),r)}function H_(e,t,r){e=me(e),t=X(t);var i=t?Wr(e):0;return t&&i<t?e+Rs(t-i,r):e}function V_(e,t,r){e=me(e),t=X(t);var i=t?Wr(e):0;return t&&i<t?Rs(t-i,r)+e:e}function $_(e,t,r){return r||t==null?t=0:t&&(t=+t),Zp(me(e).replace(wa,""),t||0)}function G_(e,t,r){return(r?Xe(e,t,r):t===a)?t=1:t=X(t),Wi(me(e),t)}function X_(){var e=arguments,t=me(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Y_=Kr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function K_(e,t,r){return r&&typeof r!="number"&&Xe(e,t,r)&&(t=r=a),r=r===a?V:r>>>0,r?(e=me(e),e&&(typeof t=="string"||t!=null&&!mn(t))&&(t=lt(t),!t&&Ur(e))?fr(Ct(e),0,r):e.split(t,r)):[]}var Q_=Kr(function(e,t,r){return e+(r?" ":"")+hn(t)});function Z_(e,t,r){return e=me(e),r=r==null?0:Ir(X(r),0,e.length),t=lt(t),e.slice(r,r+t.length)==t}function J_(e,t,r){var i=c.templateSettings;r&&Xe(e,t,r)&&(t=a),e=me(e),t=$s({},t,i,Ml);var o=$s({},t.imports,i.imports,Ml),d=Fe(o),f=ki(o,d),h,x,A=0,q=t.interpolate||qt,C="__p += '",P=qi((t.escape||qt).source+"|"+q.source+"|"+(q===rs?ce:qt).source+"|"+(t.evaluate||qt).source+"|$","g"),M="//# sourceURL="+(he.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++op+"]")+`
114
+ `)}function Df(e){return G(e)||qr(e)||!!(Go&&e&&e[Go])}function Qt(e,t){var r=typeof e;return t=t??Me,!!t&&(r=="number"||r!="symbol"&&qe.test(e))&&e>-1&&e%1==0&&e<t}function Xe(e,t,r){if(!Ae(r))return!1;var i=typeof t;return(i=="number"?et(r)&&Qt(t,r.length):i=="string"&&t in r)?zt(r[t],e):!1}function an(e,t){if(G(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ct(e)?!0:ss.test(e)||!as.test(e)||t!=null&&e in be(t)}function kf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sn(e){var t=Es(e),r=c[t];if(typeof r!="function"||!(t in ie.prototype))return!1;if(e===r)return!0;var i=en(r);return!!i&&e===i[0]}function Af(e){return!!Wo&&Wo in e}var qf=ps?Jt:wn;function Oa(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vr;return e===r}function Wl(e){return e===e&&!Ae(e)}function Hl(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in be(r))}}function Cf(e){var t=Us(e,function(i){return r.size===b&&r.clear(),i}),r=t.cache;return t}function Sf(e,t){var r=e[1],i=t[1],o=r|i,d=o<(Z|de|K),f=i==K&&r==De||i==K&&r==Ne&&e[7].length<=t[8]||i==(K|Ne)&&t[7].length<=t[8]&&r==De;if(!(d||f))return e;i&Z&&(e[2]=t[2],o|=r&Z?0:ee);var h=t[3];if(h){var x=e[3];e[3]=x?kl(x,h,t[4]):h,e[4]=x?cr(e[3],w):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Al(x,h,t[6]):h,e[6]=x?cr(e[5],w):t[6]),h=t[7],h&&(e[7]=h),i&K&&(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 zf(e){var t=[];if(e!=null)for(var r in be(e))t.push(r);return t}function Nf(e){return fs.call(e)}function Vl(e,t,r){return t=Ee(t===a?e.length-1:t,0),function(){for(var i=arguments,o=-1,d=Ee(i.length-t,0),f=T(d);++o<d;)f[o]=i[t+o];o=-1;for(var h=T(t+1);++o<t;)h[o]=i[o];return h[t]=r(f),nt(e,this,h)}}function $l(e,t){return t.length<2?e:Dr(e,wt(t,0,-1))}function Pf(e,t){for(var r=e.length,i=He(t.length,r),o=Ze(e);i--;){var d=t[i];e[i]=Qt(d,r)?o[d]:a}return e}function nn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Gl=Yl(hl),Ea=Gp||function(e,t){return je.setTimeout(e,t)},on=Yl(tf);function Xl(e,t,r){var i=t+"";return on(e,If(i,Rf(vf(i),r)))}function Yl(e){var t=0,r=0;return function(){var i=Qp(),o=Pe-(i-r);if(r=i,o>0){if(++t>=kt)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ls(e,t){var r=-1,i=e.length,o=i-1;for(t=t===a?i:t;++r<t;){var d=Ui(r,o),f=e[d];e[d]=e[r],e[r]=f}return e.length=t,e}var Kl=Cf(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(li,function(r,i,o,d){t.push(o?d.replace(H,"$1"):i||r)}),t});function Bt(e){if(typeof e=="string"||ct(e))return e;var t=e+"";return t=="0"&&1/e==-Re?"-0":t}function Ar(e){if(e!=null){try{return ms.call(e)}catch{}try{return e+""}catch{}}return""}function Rf(e,t){return gt(Ut,function(r){var i="_."+r[0];t&r[1]&&!ls(e,i)&&e.push(i)}),e.sort()}function Ql(e){if(e instanceof ie)return e.clone();var t=new xt(e.__wrapped__,e.__chain__);return t.__actions__=Ze(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Of(e,t,r){(r?Xe(e,t,r):t===a)?t=1:t=Ee(X(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var o=0,d=0,f=T(xs(i/t));o<i;)f[d++]=wt(e,o,o+=t);return f}function Ef(e){for(var t=-1,r=e==null?0:e.length,i=0,o=[];++t<r;){var d=e[t];d&&(o[i++]=d)}return o}function Mf(){var e=arguments.length;if(!e)return[];for(var t=T(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return lr(G(r)?Ze(r):[r],Ue(t,1))}var Lf=J(function(e,t){return Se(e)?Sa(e,Ue(t,1,Se,!0)):[]}),Ff=J(function(e,t){var r=Tt(t);return Se(r)&&(r=a),Se(e)?Sa(e,Ue(t,1,Se,!0),B(r,2)):[]}),Bf=J(function(e,t){var r=Tt(t);return Se(r)&&(r=a),Se(e)?Sa(e,Ue(t,1,Se,!0),a,r):[]});function jf(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:X(t),wt(e,t<0?0:t,i)):[]}function Uf(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:X(t),t=i-t,wt(e,0,t<0?0:t)):[]}function Wf(e,t){return e&&e.length?Ss(e,B(t,3),!0,!0):[]}function Hf(e,t){return e&&e.length?Ss(e,B(t,3),!0):[]}function Vf(e,t,r,i){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&Xe(e,t,r)&&(r=0,i=o),Em(e,t,r,i)):[]}function Jl(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var o=r==null?0:X(r);return o<0&&(o=Ee(i+o,0)),cs(e,B(t,3),o)}function Zl(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var o=i-1;return r!==a&&(o=X(r),o=r<0?Ee(i+o,0):He(o,i-1)),cs(e,B(t,3),o,!0)}function ec(e){var t=e==null?0:e.length;return t?Ue(e,1):[]}function $f(e){var t=e==null?0:e.length;return t?Ue(e,Re):[]}function Gf(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:X(t),Ue(e,t)):[]}function Xf(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var o=e[t];i[o[0]]=o[1]}return i}function tc(e){return e&&e.length?e[0]:a}function Yf(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var o=r==null?0:X(r);return o<0&&(o=Ee(i+o,0)),jr(e,t,o)}function Kf(e){var t=e==null?0:e.length;return t?wt(e,0,-1):[]}var Qf=J(function(e){var t=Te(e,Gi);return t.length&&t[0]===e[0]?Mi(t):[]}),Jf=J(function(e){var t=Tt(e),r=Te(e,Gi);return t===Tt(r)?t=a:r.pop(),r.length&&r[0]===e[0]?Mi(r,B(t,2)):[]}),Zf=J(function(e){var t=Tt(e),r=Te(e,Gi);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?Mi(r,a,t):[]});function ey(e,t){return e==null?"":Yp.call(e,t)}function Tt(e){var t=e==null?0:e.length;return t?e[t-1]:a}function ty(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var o=i;return r!==a&&(o=X(r),o=o<0?Ee(i+o,0):He(o,i-1)),t===t?Pp(e,t,o):cs(e,Oo,o,!0)}function ry(e,t){return e&&e.length?pl(e,X(t)):a}var ay=J(rc);function rc(e,t){return e&&e.length&&t&&t.length?ji(e,t):e}function sy(e,t,r){return e&&e.length&&t&&t.length?ji(e,t,B(r,2)):e}function iy(e,t,r){return e&&e.length&&t&&t.length?ji(e,t,a,r):e}var ny=Kt(function(e,t){var r=e==null?0:e.length,i=Pi(e,t);return yl(e,Te(t,function(o){return Qt(o,r)?+o:o}).sort(Dl)),i});function oy(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,o=[],d=e.length;for(t=B(t,3);++i<d;){var f=e[i];t(f,i,e)&&(r.push(f),o.push(i))}return yl(e,o),r}function ln(e){return e==null?e:Zp.call(e)}function ly(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Xe(e,t,r)?(t=0,r=i):(t=t==null?0:X(t),r=r===a?i:X(r)),wt(e,t,r)):[]}function cy(e,t){return Cs(e,t)}function uy(e,t,r){return Hi(e,t,B(r,2))}function dy(e,t){var r=e==null?0:e.length;if(r){var i=Cs(e,t);if(i<r&&zt(e[i],t))return i}return-1}function py(e,t){return Cs(e,t,!0)}function my(e,t,r){return Hi(e,t,B(r,2),!0)}function fy(e,t){var r=e==null?0:e.length;if(r){var i=Cs(e,t,!0)-1;if(zt(e[i],t))return i}return-1}function yy(e){return e&&e.length?_l(e):[]}function hy(e,t){return e&&e.length?_l(e,B(t,2)):[]}function _y(e){var t=e==null?0:e.length;return t?wt(e,1,t):[]}function gy(e,t,r){return e&&e.length?(t=r||t===a?1:X(t),wt(e,0,t<0?0:t)):[]}function by(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:X(t),t=i-t,wt(e,t<0?0:t,i)):[]}function xy(e,t){return e&&e.length?Ss(e,B(t,3),!1,!0):[]}function vy(e,t){return e&&e.length?Ss(e,B(t,3)):[]}var wy=J(function(e){return pr(Ue(e,1,Se,!0))}),Ty=J(function(e){var t=Tt(e);return Se(t)&&(t=a),pr(Ue(e,1,Se,!0),B(t,2))}),Iy=J(function(e){var t=Tt(e);return t=typeof t=="function"?t:a,pr(Ue(e,1,Se,!0),a,t)});function Dy(e){return e&&e.length?pr(e):[]}function ky(e,t){return e&&e.length?pr(e,B(t,2)):[]}function Ay(e,t){return t=typeof t=="function"?t:a,e&&e.length?pr(e,a,t):[]}function cn(e){if(!(e&&e.length))return[];var t=0;return e=or(e,function(r){if(Se(r))return t=Ee(r.length,t),!0}),Di(t,function(r){return Te(e,wi(r))})}function ac(e,t){if(!(e&&e.length))return[];var r=cn(e);return t==null?r:Te(r,function(i){return nt(t,a,i)})}var qy=J(function(e,t){return Se(e)?Sa(e,t):[]}),Cy=J(function(e){return $i(or(e,Se))}),Sy=J(function(e){var t=Tt(e);return Se(t)&&(t=a),$i(or(e,Se),B(t,2))}),zy=J(function(e){var t=Tt(e);return t=typeof t=="function"?t:a,$i(or(e,Se),a,t)}),Ny=J(cn);function Py(e,t){return vl(e||[],t||[],Ca)}function Ry(e,t){return vl(e||[],t||[],Pa)}var Oy=J(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,ac(e,r)});function sc(e){var t=c(e);return t.__chain__=!0,t}function Ey(e,t){return t(e),e}function Fs(e,t){return t(e)}var My=Kt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(d){return Pi(d,e)};return t>1||this.__actions__.length||!(i instanceof ie)||!Qt(r)?this.thru(o):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:Fs,args:[o],thisArg:a}),new xt(i,this.__chain__).thru(function(d){return t&&!d.length&&d.push(a),d}))});function Ly(){return sc(this)}function Fy(){return new xt(this.value(),this.__chain__)}function By(){this.__values__===a&&(this.__values__=gc(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function jy(){return this}function Uy(e){for(var t,r=this;r instanceof Is;){var i=Ql(r);i.__index__=0,i.__values__=a,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t}function Wy(){var e=this.__wrapped__;if(e instanceof ie){var t=e;return this.__actions__.length&&(t=new ie(this)),t=t.reverse(),t.__actions__.push({func:Fs,args:[ln],thisArg:a}),new xt(t,this.__chain__)}return this.thru(ln)}function Hy(){return xl(this.__wrapped__,this.__actions__)}var Vy=zs(function(e,t,r){he.call(e,r)?++e[r]:Xt(e,r,1)});function $y(e,t,r){var i=G(e)?Po:Om;return r&&Xe(e,t,r)&&(t=a),i(e,B(t,3))}function Gy(e,t){var r=G(e)?or:al;return r(e,B(t,3))}var Xy=zl(Jl),Yy=zl(Zl);function Ky(e,t){return Ue(Bs(e,t),1)}function Qy(e,t){return Ue(Bs(e,t),Re)}function Jy(e,t,r){return r=r===a?1:X(r),Ue(Bs(e,t),r)}function ic(e,t){var r=G(e)?gt:dr;return r(e,B(t,3))}function nc(e,t){var r=G(e)?hp:rl;return r(e,B(t,3))}var Zy=zs(function(e,t,r){he.call(e,r)?e[r].push(t):Xt(e,r,[t])});function eh(e,t,r,i){e=et(e)?e:Zr(e),r=r&&!i?X(r):0;var o=e.length;return r<0&&(r=Ee(o+r,0)),Vs(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&jr(e,t,r)>-1}var th=J(function(e,t,r){var i=-1,o=typeof t=="function",d=et(e)?T(e.length):[];return dr(e,function(f){d[++i]=o?nt(t,f,r):za(f,t,r)}),d}),rh=zs(function(e,t,r){Xt(e,r,t)});function Bs(e,t){var r=G(e)?Te:cl;return r(e,B(t,3))}function ah(e,t,r,i){return e==null?[]:(G(t)||(t=t==null?[]:[t]),r=i?a:r,G(r)||(r=r==null?[]:[r]),ml(e,t,r))}var sh=zs(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function ih(e,t,r){var i=G(e)?xi:Mo,o=arguments.length<3;return i(e,B(t,4),r,o,dr)}function nh(e,t,r){var i=G(e)?_p:Mo,o=arguments.length<3;return i(e,B(t,4),r,o,rl)}function oh(e,t){var r=G(e)?or:al;return r(e,Ws(B(t,3)))}function lh(e){var t=G(e)?Jo:Zm;return t(e)}function ch(e,t,r){(r?Xe(e,t,r):t===a)?t=1:t=X(t);var i=G(e)?Sm:ef;return i(e,t)}function uh(e){var t=G(e)?zm:rf;return t(e)}function dh(e){if(e==null)return 0;if(et(e))return Vs(e)?Wr(e):e.length;var t=Ve(e);return t==st||t==it?e.size:Fi(e).length}function ph(e,t,r){var i=G(e)?vi:af;return r&&Xe(e,t,r)&&(t=a),i(e,B(t,3))}var mh=J(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Xe(e,t[0],t[1])?t=[]:r>2&&Xe(t[0],t[1],t[2])&&(t=[t[0]]),ml(e,Ue(t,1),[])}),js=$p||function(){return je.Date.now()};function fh(e,t){if(typeof t!="function")throw new bt(m);return e=X(e),function(){if(--e<1)return t.apply(this,arguments)}}function oc(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Yt(e,K,a,a,a,a,t)}function lc(e,t){var r;if(typeof t!="function")throw new bt(m);return e=X(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var un=J(function(e,t,r){var i=Z;if(r.length){var o=cr(r,Qr(un));i|=Y}return Yt(e,i,t,r,o)}),cc=J(function(e,t,r){var i=Z|de;if(r.length){var o=cr(r,Qr(cc));i|=Y}return Yt(t,i,e,r,o)});function uc(e,t,r){t=r?a:t;var i=Yt(e,De,a,a,a,a,a,t);return i.placeholder=uc.placeholder,i}function dc(e,t,r){t=r?a:t;var i=Yt(e,ne,a,a,a,a,a,t);return i.placeholder=dc.placeholder,i}function pc(e,t,r){var i,o,d,f,h,x,A=0,q=!1,C=!1,P=!0;if(typeof e!="function")throw new bt(m);t=It(t)||0,Ae(r)&&(q=!!r.leading,C="maxWait"in r,d=C?Ee(It(r.maxWait)||0,t):d,P="trailing"in r?!!r.trailing:P);function M(ze){var Nt=i,er=o;return i=o=a,A=ze,f=e.apply(er,Nt),f}function j(ze){return A=ze,h=Ea(ae,t),q?M(ze):f}function Q(ze){var Nt=ze-x,er=ze-A,zc=t-Nt;return C?He(zc,d-er):zc}function U(ze){var Nt=ze-x,er=ze-A;return x===a||Nt>=t||Nt<0||C&&er>=d}function ae(){var ze=js();if(U(ze))return oe(ze);h=Ea(ae,Q(ze))}function oe(ze){return h=a,P&&i?M(ze):(i=o=a,f)}function ut(){h!==a&&wl(h),A=0,i=x=o=h=a}function Ye(){return h===a?f:oe(js())}function dt(){var ze=js(),Nt=U(ze);if(i=arguments,o=this,x=ze,Nt){if(h===a)return j(x);if(C)return wl(h),h=Ea(ae,t),M(x)}return h===a&&(h=Ea(ae,t)),f}return dt.cancel=ut,dt.flush=Ye,dt}var yh=J(function(e,t){return tl(e,1,t)}),hh=J(function(e,t,r){return tl(e,It(t)||0,r)});function _h(e){return Yt(e,_e)}function Us(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new bt(m);var r=function(){var i=arguments,o=t?t.apply(this,i):i[0],d=r.cache;if(d.has(o))return d.get(o);var f=e.apply(this,i);return r.cache=d.set(o,f)||d,f};return r.cache=new(Us.Cache||Gt),r}Us.Cache=Gt;function Ws(e){if(typeof e!="function")throw new bt(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 gh(e){return lc(2,e)}var bh=sf(function(e,t){t=t.length==1&&G(t[0])?Te(t[0],ot(B())):Te(Ue(t,1),ot(B()));var r=t.length;return J(function(i){for(var o=-1,d=He(i.length,r);++o<d;)i[o]=t[o].call(this,i[o]);return nt(e,this,i)})}),dn=J(function(e,t){var r=cr(t,Qr(dn));return Yt(e,Y,a,t,r)}),mc=J(function(e,t){var r=cr(t,Qr(mc));return Yt(e,le,a,t,r)}),xh=Kt(function(e,t){return Yt(e,Ne,a,a,a,t)});function vh(e,t){if(typeof e!="function")throw new bt(m);return t=t===a?t:X(t),J(e,t)}function wh(e,t){if(typeof e!="function")throw new bt(m);return t=t==null?0:Ee(X(t),0),J(function(r){var i=r[t],o=fr(r,0,t);return i&&lr(o,i),nt(e,this,o)})}function Th(e,t,r){var i=!0,o=!0;if(typeof e!="function")throw new bt(m);return Ae(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),pc(e,t,{leading:i,maxWait:t,trailing:o})}function Ih(e){return oc(e,1)}function Dh(e,t){return dn(Xi(t),e)}function kh(){if(!arguments.length)return[];var e=arguments[0];return G(e)?e:[e]}function Ah(e){return vt(e,E)}function qh(e,t){return t=typeof t=="function"?t:a,vt(e,E,t)}function Ch(e){return vt(e,k|E)}function Sh(e,t){return t=typeof t=="function"?t:a,vt(e,k|E,t)}function zh(e,t){return t==null||el(e,t,Fe(t))}function zt(e,t){return e===t||e!==e&&t!==t}var Nh=Os(Ei),Ph=Os(function(e,t){return e>=t}),qr=nl(function(){return arguments}())?nl:function(e){return Ce(e)&&he.call(e,"callee")&&!$o.call(e,"callee")},G=T.isArray,Rh=Ao?ot(Ao):jm;function et(e){return e!=null&&Hs(e.length)&&!Jt(e)}function Se(e){return Ce(e)&&et(e)}function Oh(e){return e===!0||e===!1||Ce(e)&&Ge(e)==Et}var yr=Xp||wn,Eh=qo?ot(qo):Um;function Mh(e){return Ce(e)&&e.nodeType===1&&!Ma(e)}function Lh(e){if(e==null)return!0;if(et(e)&&(G(e)||typeof e=="string"||typeof e.splice=="function"||yr(e)||Jr(e)||qr(e)))return!e.length;var t=Ve(e);if(t==st||t==it)return!e.size;if(Oa(e))return!Fi(e).length;for(var r in e)if(he.call(e,r))return!1;return!0}function Fh(e,t){return Na(e,t)}function Bh(e,t,r){r=typeof r=="function"?r:a;var i=r?r(e,t):a;return i===a?Na(e,t,a,r):!!i}function pn(e){if(!Ce(e))return!1;var t=Ge(e);return t==Pr||t==Nr||typeof e.message=="string"&&typeof e.name=="string"&&!Ma(e)}function jh(e){return typeof e=="number"&&Xo(e)}function Jt(e){if(!Ae(e))return!1;var t=Ge(e);return t==_r||t==Qa||t==da||t==Or}function fc(e){return typeof e=="number"&&e==X(e)}function Hs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Me}function Ae(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ce(e){return e!=null&&typeof e=="object"}var yc=Co?ot(Co):Hm;function Uh(e,t){return e===t||Li(e,t,tn(t))}function Wh(e,t,r){return r=typeof r=="function"?r:a,Li(e,t,tn(t),r)}function Hh(e){return hc(e)&&e!=+e}function Vh(e){if(qf(e))throw new $(p);return ol(e)}function $h(e){return e===null}function Gh(e){return e==null}function hc(e){return typeof e=="number"||Ce(e)&&Ge(e)==Mt}function Ma(e){if(!Ce(e)||Ge(e)!=ht)return!1;var t=_s(e);if(t===null)return!0;var r=he.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ms.call(r)==Up}var mn=So?ot(So):Vm;function Xh(e){return fc(e)&&e>=-Me&&e<=Me}var _c=zo?ot(zo):$m;function Vs(e){return typeof e=="string"||!G(e)&&Ce(e)&&Ge(e)==Ht}function ct(e){return typeof e=="symbol"||Ce(e)&&Ge(e)==Er}var Jr=No?ot(No):Gm;function Yh(e){return e===a}function Kh(e){return Ce(e)&&Ve(e)==ir}function Qh(e){return Ce(e)&&Ge(e)==Ja}var Jh=Os(Bi),Zh=Os(function(e,t){return e<=t});function gc(e){if(!e)return[];if(et(e))return Vs(e)?Ct(e):Ze(e);if(Ia&&e[Ia])return Sp(e[Ia]());var t=Ve(e),r=t==st?Ai:t==it?us:Zr;return r(e)}function Zt(e){if(!e)return e===0?e:0;if(e=It(e),e===Re||e===-Re){var t=e<0?-1:1;return t*Ot}return e===e?e:0}function X(e){var t=Zt(e),r=t%1;return t===t?r?t-r:t:0}function bc(e){return e?Ir(X(e),0,V):0}function It(e){if(typeof e=="number")return e;if(ct(e))return jt;if(Ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lo(e);var r=te.test(e);return r||ke.test(e)?mp(e.slice(2),r?2:8):se.test(e)?jt:+e}function xc(e){return Ft(e,tt(e))}function e_(e){return e?Ir(X(e),-Me,Me):e===0?e:0}function me(e){return e==null?"":lt(e)}var t_=Yr(function(e,t){if(Oa(t)||et(t)){Ft(t,Fe(t),e);return}for(var r in t)he.call(t,r)&&Ca(e,r,t[r])}),vc=Yr(function(e,t){Ft(t,tt(t),e)}),$s=Yr(function(e,t,r,i){Ft(t,tt(t),e,i)}),r_=Yr(function(e,t,r,i){Ft(t,Fe(t),e,i)}),a_=Kt(Pi);function s_(e,t){var r=Xr(e);return t==null?r:Zo(r,t)}var i_=J(function(e,t){e=be(e);var r=-1,i=t.length,o=i>2?t[2]:a;for(o&&Xe(t[0],t[1],o)&&(i=1);++r<i;)for(var d=t[r],f=tt(d),h=-1,x=f.length;++h<x;){var A=f[h],q=e[A];(q===a||zt(q,Vr[A])&&!he.call(e,A))&&(e[A]=d[A])}return e}),n_=J(function(e){return e.push(a,Ll),nt(wc,a,e)});function o_(e,t){return Ro(e,B(t,3),Lt)}function l_(e,t){return Ro(e,B(t,3),Oi)}function c_(e,t){return e==null?e:Ri(e,B(t,3),tt)}function u_(e,t){return e==null?e:sl(e,B(t,3),tt)}function d_(e,t){return e&&Lt(e,B(t,3))}function p_(e,t){return e&&Oi(e,B(t,3))}function m_(e){return e==null?[]:As(e,Fe(e))}function f_(e){return e==null?[]:As(e,tt(e))}function fn(e,t,r){var i=e==null?a:Dr(e,t);return i===a?r:i}function y_(e,t){return e!=null&&jl(e,t,Mm)}function yn(e,t){return e!=null&&jl(e,t,Lm)}var h_=Pl(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=fs.call(t)),e[t]=r},_n(rt)),__=Pl(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=fs.call(t)),he.call(e,t)?e[t].push(r):e[t]=[r]},B),g_=J(za);function Fe(e){return et(e)?Qo(e):Fi(e)}function tt(e){return et(e)?Qo(e,!0):Xm(e)}function b_(e,t){var r={};return t=B(t,3),Lt(e,function(i,o,d){Xt(r,t(i,o,d),i)}),r}function x_(e,t){var r={};return t=B(t,3),Lt(e,function(i,o,d){Xt(r,o,t(i,o,d))}),r}var v_=Yr(function(e,t,r){qs(e,t,r)}),wc=Yr(function(e,t,r,i){qs(e,t,r,i)}),w_=Kt(function(e,t){var r={};if(e==null)return r;var i=!1;t=Te(t,function(d){return d=mr(d,e),i||(i=d.length>1),d}),Ft(e,Zi(e),r),i&&(r=vt(r,k|z|E,hf));for(var o=t.length;o--;)Vi(r,t[o]);return r});function T_(e,t){return Tc(e,Ws(B(t)))}var I_=Kt(function(e,t){return e==null?{}:Km(e,t)});function Tc(e,t){if(e==null)return{};var r=Te(Zi(e),function(i){return[i]});return t=B(t),fl(e,r,function(i,o){return t(i,o[0])})}function D_(e,t,r){t=mr(t,e);var i=-1,o=t.length;for(o||(o=1,e=a);++i<o;){var d=e==null?a:e[Bt(t[i])];d===a&&(i=o,d=r),e=Jt(d)?d.call(e):d}return e}function k_(e,t,r){return e==null?e:Pa(e,t,r)}function A_(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Pa(e,t,r,i)}var Ic=El(Fe),Dc=El(tt);function q_(e,t,r){var i=G(e),o=i||yr(e)||Jr(e);if(t=B(t,4),r==null){var d=e&&e.constructor;o?r=i?new d:[]:Ae(e)?r=Jt(d)?Xr(_s(e)):{}:r={}}return(o?gt:Lt)(e,function(f,h,x){return t(r,f,h,x)}),r}function C_(e,t){return e==null?!0:Vi(e,t)}function S_(e,t,r){return e==null?e:bl(e,t,Xi(r))}function z_(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:bl(e,t,Xi(r),i)}function Zr(e){return e==null?[]:ki(e,Fe(e))}function N_(e){return e==null?[]:ki(e,tt(e))}function P_(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=It(r),r=r===r?r:0),t!==a&&(t=It(t),t=t===t?t:0),Ir(It(e),t,r)}function R_(e,t,r){return t=Zt(t),r===a?(r=t,t=0):r=Zt(r),e=It(e),Fm(e,t,r)}function O_(e,t,r){if(r&&typeof r!="boolean"&&Xe(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=Zt(e),t===a?(t=e,e=0):t=Zt(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=Yo();return He(e+o*(t-e+pp("1e-"+((o+"").length-1))),t)}return Ui(e,t)}var E_=Kr(function(e,t,r){return t=t.toLowerCase(),e+(r?kc(t):t)});function kc(e){return hn(me(e).toLowerCase())}function Ac(e){return e=me(e),e&&e.replace(Qe,Dp).replace(rp,"")}function M_(e,t,r){e=me(e),t=lt(t);var i=e.length;r=r===a?i:Ir(X(r),0,i);var o=r;return r-=t.length,r>=0&&e.slice(r,o)==t}function L_(e){return e=me(e),e&&es.test(e)?e.replace(Fr,kp):e}function F_(e){return e=me(e),e&&is.test(e)?e.replace(va,"\\$&"):e}var B_=Kr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),j_=Kr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),U_=Sl("toLowerCase");function W_(e,t,r){e=me(e),t=X(t);var i=t?Wr(e):0;if(!t||i>=t)return e;var o=(t-i)/2;return Rs(vs(o),r)+e+Rs(xs(o),r)}function H_(e,t,r){e=me(e),t=X(t);var i=t?Wr(e):0;return t&&i<t?e+Rs(t-i,r):e}function V_(e,t,r){e=me(e),t=X(t);var i=t?Wr(e):0;return t&&i<t?Rs(t-i,r)+e:e}function $_(e,t,r){return r||t==null?t=0:t&&(t=+t),Jp(me(e).replace(wa,""),t||0)}function G_(e,t,r){return(r?Xe(e,t,r):t===a)?t=1:t=X(t),Wi(me(e),t)}function X_(){var e=arguments,t=me(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Y_=Kr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function K_(e,t,r){return r&&typeof r!="number"&&Xe(e,t,r)&&(t=r=a),r=r===a?V:r>>>0,r?(e=me(e),e&&(typeof t=="string"||t!=null&&!mn(t))&&(t=lt(t),!t&&Ur(e))?fr(Ct(e),0,r):e.split(t,r)):[]}var Q_=Kr(function(e,t,r){return e+(r?" ":"")+hn(t)});function J_(e,t,r){return e=me(e),r=r==null?0:Ir(X(r),0,e.length),t=lt(t),e.slice(r,r+t.length)==t}function Z_(e,t,r){var i=c.templateSettings;r&&Xe(e,t,r)&&(t=a),e=me(e),t=$s({},t,i,Ml);var o=$s({},t.imports,i.imports,Ml),d=Fe(o),f=ki(o,d),h,x,A=0,q=t.interpolate||qt,C="__p += '",P=qi((t.escape||qt).source+"|"+q.source+"|"+(q===rs?ce:qt).source+"|"+(t.evaluate||qt).source+"|$","g"),M="//# sourceURL="+(he.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++op+"]")+`
115
115
  `;e.replace(P,function(U,ae,oe,ut,Ye,dt){return oe||(oe=ut),C+=e.slice(A,dt).replace(ns,Ap),ae&&(h=!0,C+=`' +
116
116
  __e(`+ae+`) +
117
117
  '`),Ye&&(x=!0,C+=`';
@@ -122,22 +122,22 @@ __p += '`),oe&&(C+=`' +
122
122
  `;var j=he.call(t,"variable")&&t.variable;if(!j)C=`with (obj) {
123
123
  `+C+`
124
124
  }
125
- `;else if(N.test(j))throw new $(v);C=(x?C.replace(ni,""):C).replace(ba,"$1").replace(Ja,"$1;"),C="function("+(j||"obj")+`) {
125
+ `;else if(N.test(j))throw new $(v);C=(x?C.replace(ni,""):C).replace(ba,"$1").replace(Za,"$1;"),C="function("+(j||"obj")+`) {
126
126
  `+(j?"":`obj || (obj = {});
127
127
  `)+"var __t, __p = ''"+(h?", __e = _.escape":"")+(x?`, __j = Array.prototype.join;
128
128
  function print() { __p += __j.call(arguments, '') }
129
129
  `:`;
130
130
  `)+C+`return __p
131
- }`;var Q=Cc(function(){return ue(d,M+"return "+C).apply(a,f)});if(Q.source=C,pn(Q))throw Q;return Q}function eg(e){return me(e).toLowerCase()}function tg(e){return me(e).toUpperCase()}function rg(e,t,r){if(e=me(e),e&&(r||t===a))return Lo(e);if(!e||!(t=lt(t)))return e;var i=Ct(e),o=Ct(t),d=Fo(i,o),f=Bo(i,o)+1;return fr(i,d,f).join("")}function ag(e,t,r){if(e=me(e),e&&(r||t===a))return e.slice(0,Uo(e)+1);if(!e||!(t=lt(t)))return e;var i=Ct(e),o=Bo(i,Ct(t))+1;return fr(i,0,o).join("")}function sg(e,t,r){if(e=me(e),e&&(r||t===a))return e.replace(wa,"");if(!e||!(t=lt(t)))return e;var i=Ct(e),o=Fo(i,Ct(t));return fr(i,o).join("")}function ig(e,t){var r=re,i=yt;if(Ae(t)){var o="separator"in t?t.separator:o;r="length"in t?X(t.length):r,i="omission"in t?lt(t.omission):i}e=me(e);var d=e.length;if(Ur(e)){var f=Ct(e);d=f.length}if(r>=d)return e;var h=r-Wr(i);if(h<1)return i;var x=f?fr(f,0,h).join(""):e.slice(0,h);if(o===a)return x+i;if(f&&(h+=x.length-h),mn(o)){if(e.slice(h).search(o)){var A,q=x;for(o.global||(o=qi(o.source,me(pe.exec(o))+"g")),o.lastIndex=0;A=o.exec(q);)var C=A.index;x=x.slice(0,C===a?h:C)}}else if(e.indexOf(lt(o),h)!=h){var P=x.lastIndexOf(o);P>-1&&(x=x.slice(0,P))}return x+i}function ng(e){return e=me(e),e&&xa.test(e)?e.replace(Vt,Rp):e}var og=Kr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),hn=Sl("toUpperCase");function qc(e,t,r){return e=me(e),t=r?a:t,t===a?Cp(e)?Mp(e):xp(e):e.match(t)||[]}var Cc=Z(function(e,t){try{return nt(e,a,t)}catch(r){return pn(r)?r:new $(r)}}),lg=Kt(function(e,t){return gt(t,function(r){r=Bt(r),Xt(e,r,un(e[r],e))}),e});function cg(e){var t=e==null?0:e.length,r=B();return e=t?Te(e,function(i){if(typeof i[1]!="function")throw new bt(m);return[r(i[0]),i[1]]}):[],Z(function(i){for(var o=-1;++o<t;){var d=e[o];if(nt(d[0],this,i))return nt(d[1],this,i)}})}function ug(e){return Rm(vt(e,k))}function _n(e){return function(){return e}}function dg(e,t){return e==null||e!==e?t:e}var pg=Nl(),mg=Nl(!0);function rt(e){return e}function gn(e){return ll(typeof e=="function"?e:vt(e,k))}function fg(e){return ul(vt(e,k))}function yg(e,t){return dl(e,vt(t,k))}var hg=Z(function(e,t){return function(r){return za(r,e,t)}}),_g=Z(function(e,t){return function(r){return za(e,r,t)}});function bn(e,t,r){var i=Fe(t),o=As(t,i);r==null&&!(Ae(t)&&(o.length||!i.length))&&(r=t,t=e,e=this,o=As(t,Fe(t)));var d=!(Ae(r)&&"chain"in r)||!!r.chain,f=Zt(e);return gt(o,function(h){var x=t[h];e[h]=x,f&&(e.prototype[h]=function(){var A=this.__chain__;if(d||A){var q=e(this.__wrapped__),C=q.__actions__=Je(this.__actions__);return C.push({func:x,args:arguments,thisArg:e}),q.__chain__=A,q}return x.apply(e,lr([this.value()],arguments))})}),e}function gg(){return je._===this&&(je._=Wp),this}function xn(){}function bg(e){return e=X(e),Z(function(t){return pl(t,e)})}var xg=Ki(Te),vg=Ki(Po),wg=Ki(vi);function Sc(e){return an(e)?wi(Bt(e)):Qm(e)}function Tg(e){return function(t){return e==null?a:Dr(e,t)}}var Ig=Rl(),Dg=Rl(!0);function vn(){return[]}function wn(){return!1}function kg(){return{}}function Ag(){return""}function qg(){return!0}function Cg(e,t){if(e=X(e),e<1||e>Me)return[];var r=V,i=He(e,V);t=B(t),e-=V;for(var o=Di(i,t);++r<e;)t(r);return o}function Sg(e){return G(e)?Te(e,Bt):ct(e)?[e]:Je(Kl(me(e)))}function zg(e){var t=++jp;return me(e)+t}var Ng=Ps(function(e,t){return e+t},0),Pg=Qi("ceil"),Rg=Ps(function(e,t){return e/t},1),Og=Qi("floor");function Eg(e){return e&&e.length?ks(e,rt,Ei):a}function Mg(e,t){return e&&e.length?ks(e,B(t,2),Ei):a}function Lg(e){return Eo(e,rt)}function Fg(e,t){return Eo(e,B(t,2))}function Bg(e){return e&&e.length?ks(e,rt,Bi):a}function jg(e,t){return e&&e.length?ks(e,B(t,2),Bi):a}var Ug=Ps(function(e,t){return e*t},1),Wg=Qi("round"),Hg=Ps(function(e,t){return e-t},0);function Vg(e){return e&&e.length?Ii(e,rt):0}function $g(e,t){return e&&e.length?Ii(e,B(t,2)):0}return c.after=fh,c.ary=oc,c.assign=t_,c.assignIn=vc,c.assignInWith=$s,c.assignWith=r_,c.at=a_,c.before=lc,c.bind=un,c.bindAll=lg,c.bindKey=cc,c.castArray=kh,c.chain=sc,c.chunk=Of,c.compact=Ef,c.concat=Mf,c.cond=cg,c.conforms=ug,c.constant=_n,c.countBy=Vy,c.create=s_,c.curry=uc,c.curryRight=dc,c.debounce=pc,c.defaults=i_,c.defaultsDeep=n_,c.defer=yh,c.delay=hh,c.difference=Lf,c.differenceBy=Ff,c.differenceWith=Bf,c.drop=jf,c.dropRight=Uf,c.dropRightWhile=Wf,c.dropWhile=Hf,c.fill=Vf,c.filter=Gy,c.flatMap=Ky,c.flatMapDeep=Qy,c.flatMapDepth=Zy,c.flatten=ec,c.flattenDeep=$f,c.flattenDepth=Gf,c.flip=_h,c.flow=pg,c.flowRight=mg,c.fromPairs=Xf,c.functions=m_,c.functionsIn=f_,c.groupBy=Jy,c.initial=Kf,c.intersection=Qf,c.intersectionBy=Zf,c.intersectionWith=Jf,c.invert=h_,c.invertBy=__,c.invokeMap=th,c.iteratee=gn,c.keyBy=rh,c.keys=Fe,c.keysIn=tt,c.map=Bs,c.mapKeys=b_,c.mapValues=x_,c.matches=fg,c.matchesProperty=yg,c.memoize=Us,c.merge=v_,c.mergeWith=wc,c.method=hg,c.methodOf=_g,c.mixin=bn,c.negate=Ws,c.nthArg=bg,c.omit=w_,c.omitBy=T_,c.once=gh,c.orderBy=ah,c.over=xg,c.overArgs=bh,c.overEvery=vg,c.overSome=wg,c.partial=dn,c.partialRight=mc,c.partition=sh,c.pick=I_,c.pickBy=Tc,c.property=Sc,c.propertyOf=Tg,c.pull=ay,c.pullAll=rc,c.pullAllBy=sy,c.pullAllWith=iy,c.pullAt=ny,c.range=Ig,c.rangeRight=Dg,c.rearg=xh,c.reject=oh,c.remove=oy,c.rest=vh,c.reverse=ln,c.sampleSize=ch,c.set=k_,c.setWith=A_,c.shuffle=uh,c.slice=ly,c.sortBy=mh,c.sortedUniq=yy,c.sortedUniqBy=hy,c.split=K_,c.spread=wh,c.tail=_y,c.take=gy,c.takeRight=by,c.takeRightWhile=xy,c.takeWhile=vy,c.tap=Ey,c.throttle=Th,c.thru=Fs,c.toArray=gc,c.toPairs=Ic,c.toPairsIn=Dc,c.toPath=Sg,c.toPlainObject=xc,c.transform=q_,c.unary=Ih,c.union=wy,c.unionBy=Ty,c.unionWith=Iy,c.uniq=Dy,c.uniqBy=ky,c.uniqWith=Ay,c.unset=C_,c.unzip=cn,c.unzipWith=ac,c.update=S_,c.updateWith=z_,c.values=Jr,c.valuesIn=N_,c.without=qy,c.words=qc,c.wrap=Dh,c.xor=Cy,c.xorBy=Sy,c.xorWith=zy,c.zip=Ny,c.zipObject=Py,c.zipObjectDeep=Ry,c.zipWith=Oy,c.entries=Ic,c.entriesIn=Dc,c.extend=vc,c.extendWith=$s,bn(c,c),c.add=Ng,c.attempt=Cc,c.camelCase=E_,c.capitalize=kc,c.ceil=Pg,c.clamp=P_,c.clone=Ah,c.cloneDeep=Ch,c.cloneDeepWith=Sh,c.cloneWith=qh,c.conformsTo=zh,c.deburr=Ac,c.defaultTo=dg,c.divide=Rg,c.endsWith=M_,c.eq=zt,c.escape=L_,c.escapeRegExp=F_,c.every=$y,c.find=Xy,c.findIndex=Zl,c.findKey=o_,c.findLast=Yy,c.findLastIndex=Jl,c.findLastKey=l_,c.floor=Og,c.forEach=ic,c.forEachRight=nc,c.forIn=c_,c.forInRight=u_,c.forOwn=d_,c.forOwnRight=p_,c.get=fn,c.gt=Nh,c.gte=Ph,c.has=y_,c.hasIn=yn,c.head=tc,c.identity=rt,c.includes=eh,c.indexOf=Yf,c.inRange=R_,c.invoke=g_,c.isArguments=qr,c.isArray=G,c.isArrayBuffer=Rh,c.isArrayLike=et,c.isArrayLikeObject=Se,c.isBoolean=Oh,c.isBuffer=yr,c.isDate=Eh,c.isElement=Mh,c.isEmpty=Lh,c.isEqual=Fh,c.isEqualWith=Bh,c.isError=pn,c.isFinite=jh,c.isFunction=Zt,c.isInteger=fc,c.isLength=Hs,c.isMap=yc,c.isMatch=Uh,c.isMatchWith=Wh,c.isNaN=Hh,c.isNative=Vh,c.isNil=Gh,c.isNull=$h,c.isNumber=hc,c.isObject=Ae,c.isObjectLike=Ce,c.isPlainObject=Ma,c.isRegExp=mn,c.isSafeInteger=Xh,c.isSet=_c,c.isString=Vs,c.isSymbol=ct,c.isTypedArray=Zr,c.isUndefined=Yh,c.isWeakMap=Kh,c.isWeakSet=Qh,c.join=ey,c.kebabCase=B_,c.last=Tt,c.lastIndexOf=ty,c.lowerCase=j_,c.lowerFirst=U_,c.lt=Zh,c.lte=Jh,c.max=Eg,c.maxBy=Mg,c.mean=Lg,c.meanBy=Fg,c.min=Bg,c.minBy=jg,c.stubArray=vn,c.stubFalse=wn,c.stubObject=kg,c.stubString=Ag,c.stubTrue=qg,c.multiply=Ug,c.nth=ry,c.noConflict=gg,c.noop=xn,c.now=js,c.pad=W_,c.padEnd=H_,c.padStart=V_,c.parseInt=$_,c.random=O_,c.reduce=ih,c.reduceRight=nh,c.repeat=G_,c.replace=X_,c.result=D_,c.round=Wg,c.runInContext=_,c.sample=lh,c.size=dh,c.snakeCase=Y_,c.some=ph,c.sortedIndex=cy,c.sortedIndexBy=uy,c.sortedIndexOf=dy,c.sortedLastIndex=py,c.sortedLastIndexBy=my,c.sortedLastIndexOf=fy,c.startCase=Q_,c.startsWith=Z_,c.subtract=Hg,c.sum=Vg,c.sumBy=$g,c.template=J_,c.times=Cg,c.toFinite=Jt,c.toInteger=X,c.toLength=bc,c.toLower=eg,c.toNumber=It,c.toSafeInteger=e_,c.toString=me,c.toUpper=tg,c.trim=rg,c.trimEnd=ag,c.trimStart=sg,c.truncate=ig,c.unescape=ng,c.uniqueId=zg,c.upperCase=og,c.upperFirst=hn,c.each=ic,c.eachRight=nc,c.first=tc,bn(c,function(){var e={};return Lt(c,function(t,r){he.call(c.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),c.VERSION=l,gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),gt(["drop","take"],function(e,t){ie.prototype[e]=function(r){r=r===a?1:Ee(X(r),0);var i=this.__filtered__&&!t?new ie(this):this.clone();return i.__filtered__?i.__takeCount__=He(r,i.__takeCount__):i.__views__.push({size:He(r,V),type:e+(i.__dir__<0?"Right":"")}),i},ie.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),gt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==we||r==ye;ie.prototype[e]=function(o){var d=this.clone();return d.__iteratees__.push({iteratee:B(o,3),type:r}),d.__filtered__=d.__filtered__||i,d}}),gt(["head","last"],function(e,t){var r="take"+(t?"Right":"");ie.prototype[e]=function(){return this[r](1).value()[0]}}),gt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ie.prototype[e]=function(){return this.__filtered__?new ie(this):this[r](1)}}),ie.prototype.compact=function(){return this.filter(rt)},ie.prototype.find=function(e){return this.filter(e).head()},ie.prototype.findLast=function(e){return this.reverse().find(e)},ie.prototype.invokeMap=Z(function(e,t){return typeof e=="function"?new ie(this):this.map(function(r){return za(r,e,t)})}),ie.prototype.reject=function(e){return this.filter(Ws(B(e)))},ie.prototype.slice=function(e,t){e=X(e);var r=this;return r.__filtered__&&(e>0||t<0)?new ie(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=X(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},ie.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ie.prototype.toArray=function(){return this.take(V)},Lt(ie.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=c[i?"take"+(t=="last"?"Right":""):t],d=i||/^find/.test(t);o&&(c.prototype[t]=function(){var f=this.__wrapped__,h=i?[1]:arguments,x=f instanceof ie,A=h[0],q=x||G(f),C=function(ae){var oe=o.apply(c,lr([ae],h));return i&&P?oe[0]:oe};q&&r&&typeof A=="function"&&A.length!=1&&(x=q=!1);var P=this.__chain__,M=!!this.__actions__.length,j=d&&!P,Q=x&&!M;if(!d&&q){f=Q?f:new ie(this);var U=e.apply(f,h);return U.__actions__.push({func:Fs,args:[C],thisArg:a}),new xt(U,P)}return j&&Q?e.apply(this,h):(U=this.thru(C),j?i?U.value()[0]:U.value():U)})}),gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ds[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var o=arguments;if(i&&!this.__chain__){var d=this.value();return t.apply(G(d)?d:[],o)}return this[r](function(f){return t.apply(G(f)?f:[],o)})}}),Lt(ie.prototype,function(e,t){var r=c[t];if(r){var i=r.name+"";he.call(Gr,i)||(Gr[i]=[]),Gr[i].push({name:t,func:r})}}),Gr[Ns(a,de).name]=[{name:"wrapper",func:a}],ie.prototype.clone=im,ie.prototype.reverse=nm,ie.prototype.value=om,c.prototype.at=My,c.prototype.chain=Ly,c.prototype.commit=Fy,c.prototype.next=By,c.prototype.plant=Uy,c.prototype.reverse=Wy,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=Hy,c.prototype.first=c.prototype.head,Ia&&(c.prototype[Ia]=jy),c},Hr=Lp();xr?((xr.exports=Hr)._=Hr,_i._=Hr):je._=Hr}).call(ea)}(Wa,Wa.exports);var Ku=Wa.exports;const Pt="tccScript",Qu={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 Dt;(function(n){n[n.None=0]="None",n[n.Indent=1]="Indent",n[n.IndentOutdent=2]="IndentOutdent",n[n.Outdent=3]="Outdent"})(Dt||(Dt={}));const Zu={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:Dt.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:Dt.Indent}},{beforeText:/else/,action:{indentAction:Dt.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:Dt.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:Dt.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:Dt.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:Dt.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:Dt.Indent}},{beforeText:/^\s*$/,action:{indentAction:Dt.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(n,s=1){return n+Math.round(255*Math.min(Math.max(s,0),1)).toString(16).toUpperCase().padStart(2,"0")}const Ju={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"]}},ed={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"]}},td=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,rd=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,Un={"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 ad{constructor(s){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,v=p;m<l.length;m++)l[m]!==","&&l[m]!==")"||(v++,u.set(l.slice(v,m),v),v=m+1);return a.map(({name:m,displayType:v,desc:g})=>{const b=[],w=u.get(m),k=w+m.length;return b.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(v||""))),g&&b.push(Array.isArray(g)?g.join(this._formatter.lineBreak):g),{label:[w,k],documentation:{value:b.join(this._formatter.lineBreak)}}})}}),this._formatter=fe,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(s)}getSignatureHelpValues(s,a){const l=this._getFuncItems(s);if(!(l!=null&&l.length))return null;const u=this._getSequentialSignatures(s,l),p=this._getActiveIndex(l,a);return{signatures:u,...p}}_getActiveIndex(s,a=[]){let l=0,u=-1;a.some(m=>!!m)||(u=a.length-1);const p=a.pop();if(p)for(const[m,v]of s.entries()){const{args:g}=v;if(g&&g.length){const b=g.findIndex(w=>w.name===p);if(b!=-1){u=b,l=m;break}}}return{activeParameter:u,activeSignature:l}}_getFuncItems(s){return rr.functions.get(s)||Sr.userFuncs.get(s)||Sr.methodFuncs.get(s)}_getSequentialSignatures(s,a){return a.map(l=>{const u=this._getSignatureLabel(s,l);return{label:u,documentation:this._getFormattedSignatureDocumentation(l),parameters:this._getSignatureParams(l.args,u)}})}_getSignatureLabel(s,a,l=!1){const u=[s];return l&&u.push("<type>"),a.args&&(u.push("("),u.push(a.args.map(({name:p})=>p).join(", ")),u.push(")")),u.join("")}_getFormattedSignatureDocumentation(s){const{desc:a}=s,l=[];a&&l.push(Array.isArray(a)?a.join(this._formatter.lineBreak):a);const u=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
131
+ }`;var Q=Cc(function(){return ue(d,M+"return "+C).apply(a,f)});if(Q.source=C,pn(Q))throw Q;return Q}function eg(e){return me(e).toLowerCase()}function tg(e){return me(e).toUpperCase()}function rg(e,t,r){if(e=me(e),e&&(r||t===a))return Lo(e);if(!e||!(t=lt(t)))return e;var i=Ct(e),o=Ct(t),d=Fo(i,o),f=Bo(i,o)+1;return fr(i,d,f).join("")}function ag(e,t,r){if(e=me(e),e&&(r||t===a))return e.slice(0,Uo(e)+1);if(!e||!(t=lt(t)))return e;var i=Ct(e),o=Bo(i,Ct(t))+1;return fr(i,0,o).join("")}function sg(e,t,r){if(e=me(e),e&&(r||t===a))return e.replace(wa,"");if(!e||!(t=lt(t)))return e;var i=Ct(e),o=Fo(i,Ct(t));return fr(i,o).join("")}function ig(e,t){var r=re,i=yt;if(Ae(t)){var o="separator"in t?t.separator:o;r="length"in t?X(t.length):r,i="omission"in t?lt(t.omission):i}e=me(e);var d=e.length;if(Ur(e)){var f=Ct(e);d=f.length}if(r>=d)return e;var h=r-Wr(i);if(h<1)return i;var x=f?fr(f,0,h).join(""):e.slice(0,h);if(o===a)return x+i;if(f&&(h+=x.length-h),mn(o)){if(e.slice(h).search(o)){var A,q=x;for(o.global||(o=qi(o.source,me(pe.exec(o))+"g")),o.lastIndex=0;A=o.exec(q);)var C=A.index;x=x.slice(0,C===a?h:C)}}else if(e.indexOf(lt(o),h)!=h){var P=x.lastIndexOf(o);P>-1&&(x=x.slice(0,P))}return x+i}function ng(e){return e=me(e),e&&xa.test(e)?e.replace(Vt,Rp):e}var og=Kr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),hn=Sl("toUpperCase");function qc(e,t,r){return e=me(e),t=r?a:t,t===a?Cp(e)?Mp(e):xp(e):e.match(t)||[]}var Cc=J(function(e,t){try{return nt(e,a,t)}catch(r){return pn(r)?r:new $(r)}}),lg=Kt(function(e,t){return gt(t,function(r){r=Bt(r),Xt(e,r,un(e[r],e))}),e});function cg(e){var t=e==null?0:e.length,r=B();return e=t?Te(e,function(i){if(typeof i[1]!="function")throw new bt(m);return[r(i[0]),i[1]]}):[],J(function(i){for(var o=-1;++o<t;){var d=e[o];if(nt(d[0],this,i))return nt(d[1],this,i)}})}function ug(e){return Rm(vt(e,k))}function _n(e){return function(){return e}}function dg(e,t){return e==null||e!==e?t:e}var pg=Nl(),mg=Nl(!0);function rt(e){return e}function gn(e){return ll(typeof e=="function"?e:vt(e,k))}function fg(e){return ul(vt(e,k))}function yg(e,t){return dl(e,vt(t,k))}var hg=J(function(e,t){return function(r){return za(r,e,t)}}),_g=J(function(e,t){return function(r){return za(e,r,t)}});function bn(e,t,r){var i=Fe(t),o=As(t,i);r==null&&!(Ae(t)&&(o.length||!i.length))&&(r=t,t=e,e=this,o=As(t,Fe(t)));var d=!(Ae(r)&&"chain"in r)||!!r.chain,f=Jt(e);return gt(o,function(h){var x=t[h];e[h]=x,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:x,args:arguments,thisArg:e}),q.__chain__=A,q}return x.apply(e,lr([this.value()],arguments))})}),e}function gg(){return je._===this&&(je._=Wp),this}function xn(){}function bg(e){return e=X(e),J(function(t){return pl(t,e)})}var xg=Ki(Te),vg=Ki(Po),wg=Ki(vi);function Sc(e){return an(e)?wi(Bt(e)):Qm(e)}function Tg(e){return function(t){return e==null?a:Dr(e,t)}}var Ig=Rl(),Dg=Rl(!0);function vn(){return[]}function wn(){return!1}function kg(){return{}}function Ag(){return""}function qg(){return!0}function Cg(e,t){if(e=X(e),e<1||e>Me)return[];var r=V,i=He(e,V);t=B(t),e-=V;for(var o=Di(i,t);++r<e;)t(r);return o}function Sg(e){return G(e)?Te(e,Bt):ct(e)?[e]:Ze(Kl(me(e)))}function zg(e){var t=++jp;return me(e)+t}var Ng=Ps(function(e,t){return e+t},0),Pg=Qi("ceil"),Rg=Ps(function(e,t){return e/t},1),Og=Qi("floor");function Eg(e){return e&&e.length?ks(e,rt,Ei):a}function Mg(e,t){return e&&e.length?ks(e,B(t,2),Ei):a}function Lg(e){return Eo(e,rt)}function Fg(e,t){return Eo(e,B(t,2))}function Bg(e){return e&&e.length?ks(e,rt,Bi):a}function jg(e,t){return e&&e.length?ks(e,B(t,2),Bi):a}var Ug=Ps(function(e,t){return e*t},1),Wg=Qi("round"),Hg=Ps(function(e,t){return e-t},0);function Vg(e){return e&&e.length?Ii(e,rt):0}function $g(e,t){return e&&e.length?Ii(e,B(t,2)):0}return c.after=fh,c.ary=oc,c.assign=t_,c.assignIn=vc,c.assignInWith=$s,c.assignWith=r_,c.at=a_,c.before=lc,c.bind=un,c.bindAll=lg,c.bindKey=cc,c.castArray=kh,c.chain=sc,c.chunk=Of,c.compact=Ef,c.concat=Mf,c.cond=cg,c.conforms=ug,c.constant=_n,c.countBy=Vy,c.create=s_,c.curry=uc,c.curryRight=dc,c.debounce=pc,c.defaults=i_,c.defaultsDeep=n_,c.defer=yh,c.delay=hh,c.difference=Lf,c.differenceBy=Ff,c.differenceWith=Bf,c.drop=jf,c.dropRight=Uf,c.dropRightWhile=Wf,c.dropWhile=Hf,c.fill=Vf,c.filter=Gy,c.flatMap=Ky,c.flatMapDeep=Qy,c.flatMapDepth=Jy,c.flatten=ec,c.flattenDeep=$f,c.flattenDepth=Gf,c.flip=_h,c.flow=pg,c.flowRight=mg,c.fromPairs=Xf,c.functions=m_,c.functionsIn=f_,c.groupBy=Zy,c.initial=Kf,c.intersection=Qf,c.intersectionBy=Jf,c.intersectionWith=Zf,c.invert=h_,c.invertBy=__,c.invokeMap=th,c.iteratee=gn,c.keyBy=rh,c.keys=Fe,c.keysIn=tt,c.map=Bs,c.mapKeys=b_,c.mapValues=x_,c.matches=fg,c.matchesProperty=yg,c.memoize=Us,c.merge=v_,c.mergeWith=wc,c.method=hg,c.methodOf=_g,c.mixin=bn,c.negate=Ws,c.nthArg=bg,c.omit=w_,c.omitBy=T_,c.once=gh,c.orderBy=ah,c.over=xg,c.overArgs=bh,c.overEvery=vg,c.overSome=wg,c.partial=dn,c.partialRight=mc,c.partition=sh,c.pick=I_,c.pickBy=Tc,c.property=Sc,c.propertyOf=Tg,c.pull=ay,c.pullAll=rc,c.pullAllBy=sy,c.pullAllWith=iy,c.pullAt=ny,c.range=Ig,c.rangeRight=Dg,c.rearg=xh,c.reject=oh,c.remove=oy,c.rest=vh,c.reverse=ln,c.sampleSize=ch,c.set=k_,c.setWith=A_,c.shuffle=uh,c.slice=ly,c.sortBy=mh,c.sortedUniq=yy,c.sortedUniqBy=hy,c.split=K_,c.spread=wh,c.tail=_y,c.take=gy,c.takeRight=by,c.takeRightWhile=xy,c.takeWhile=vy,c.tap=Ey,c.throttle=Th,c.thru=Fs,c.toArray=gc,c.toPairs=Ic,c.toPairsIn=Dc,c.toPath=Sg,c.toPlainObject=xc,c.transform=q_,c.unary=Ih,c.union=wy,c.unionBy=Ty,c.unionWith=Iy,c.uniq=Dy,c.uniqBy=ky,c.uniqWith=Ay,c.unset=C_,c.unzip=cn,c.unzipWith=ac,c.update=S_,c.updateWith=z_,c.values=Zr,c.valuesIn=N_,c.without=qy,c.words=qc,c.wrap=Dh,c.xor=Cy,c.xorBy=Sy,c.xorWith=zy,c.zip=Ny,c.zipObject=Py,c.zipObjectDeep=Ry,c.zipWith=Oy,c.entries=Ic,c.entriesIn=Dc,c.extend=vc,c.extendWith=$s,bn(c,c),c.add=Ng,c.attempt=Cc,c.camelCase=E_,c.capitalize=kc,c.ceil=Pg,c.clamp=P_,c.clone=Ah,c.cloneDeep=Ch,c.cloneDeepWith=Sh,c.cloneWith=qh,c.conformsTo=zh,c.deburr=Ac,c.defaultTo=dg,c.divide=Rg,c.endsWith=M_,c.eq=zt,c.escape=L_,c.escapeRegExp=F_,c.every=$y,c.find=Xy,c.findIndex=Jl,c.findKey=o_,c.findLast=Yy,c.findLastIndex=Zl,c.findLastKey=l_,c.floor=Og,c.forEach=ic,c.forEachRight=nc,c.forIn=c_,c.forInRight=u_,c.forOwn=d_,c.forOwnRight=p_,c.get=fn,c.gt=Nh,c.gte=Ph,c.has=y_,c.hasIn=yn,c.head=tc,c.identity=rt,c.includes=eh,c.indexOf=Yf,c.inRange=R_,c.invoke=g_,c.isArguments=qr,c.isArray=G,c.isArrayBuffer=Rh,c.isArrayLike=et,c.isArrayLikeObject=Se,c.isBoolean=Oh,c.isBuffer=yr,c.isDate=Eh,c.isElement=Mh,c.isEmpty=Lh,c.isEqual=Fh,c.isEqualWith=Bh,c.isError=pn,c.isFinite=jh,c.isFunction=Jt,c.isInteger=fc,c.isLength=Hs,c.isMap=yc,c.isMatch=Uh,c.isMatchWith=Wh,c.isNaN=Hh,c.isNative=Vh,c.isNil=Gh,c.isNull=$h,c.isNumber=hc,c.isObject=Ae,c.isObjectLike=Ce,c.isPlainObject=Ma,c.isRegExp=mn,c.isSafeInteger=Xh,c.isSet=_c,c.isString=Vs,c.isSymbol=ct,c.isTypedArray=Jr,c.isUndefined=Yh,c.isWeakMap=Kh,c.isWeakSet=Qh,c.join=ey,c.kebabCase=B_,c.last=Tt,c.lastIndexOf=ty,c.lowerCase=j_,c.lowerFirst=U_,c.lt=Jh,c.lte=Zh,c.max=Eg,c.maxBy=Mg,c.mean=Lg,c.meanBy=Fg,c.min=Bg,c.minBy=jg,c.stubArray=vn,c.stubFalse=wn,c.stubObject=kg,c.stubString=Ag,c.stubTrue=qg,c.multiply=Ug,c.nth=ry,c.noConflict=gg,c.noop=xn,c.now=js,c.pad=W_,c.padEnd=H_,c.padStart=V_,c.parseInt=$_,c.random=O_,c.reduce=ih,c.reduceRight=nh,c.repeat=G_,c.replace=X_,c.result=D_,c.round=Wg,c.runInContext=_,c.sample=lh,c.size=dh,c.snakeCase=Y_,c.some=ph,c.sortedIndex=cy,c.sortedIndexBy=uy,c.sortedIndexOf=dy,c.sortedLastIndex=py,c.sortedLastIndexBy=my,c.sortedLastIndexOf=fy,c.startCase=Q_,c.startsWith=J_,c.subtract=Hg,c.sum=Vg,c.sumBy=$g,c.template=Z_,c.times=Cg,c.toFinite=Zt,c.toInteger=X,c.toLength=bc,c.toLower=eg,c.toNumber=It,c.toSafeInteger=e_,c.toString=me,c.toUpper=tg,c.trim=rg,c.trimEnd=ag,c.trimStart=sg,c.truncate=ig,c.unescape=ng,c.uniqueId=zg,c.upperCase=og,c.upperFirst=hn,c.each=ic,c.eachRight=nc,c.first=tc,bn(c,function(){var e={};return Lt(c,function(t,r){he.call(c.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),c.VERSION=l,gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),gt(["drop","take"],function(e,t){ie.prototype[e]=function(r){r=r===a?1:Ee(X(r),0);var i=this.__filtered__&&!t?new ie(this):this.clone();return i.__filtered__?i.__takeCount__=He(r,i.__takeCount__):i.__views__.push({size:He(r,V),type:e+(i.__dir__<0?"Right":"")}),i},ie.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),gt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==we||r==ye;ie.prototype[e]=function(o){var d=this.clone();return d.__iteratees__.push({iteratee:B(o,3),type:r}),d.__filtered__=d.__filtered__||i,d}}),gt(["head","last"],function(e,t){var r="take"+(t?"Right":"");ie.prototype[e]=function(){return this[r](1).value()[0]}}),gt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ie.prototype[e]=function(){return this.__filtered__?new ie(this):this[r](1)}}),ie.prototype.compact=function(){return this.filter(rt)},ie.prototype.find=function(e){return this.filter(e).head()},ie.prototype.findLast=function(e){return this.reverse().find(e)},ie.prototype.invokeMap=J(function(e,t){return typeof e=="function"?new ie(this):this.map(function(r){return za(r,e,t)})}),ie.prototype.reject=function(e){return this.filter(Ws(B(e)))},ie.prototype.slice=function(e,t){e=X(e);var r=this;return r.__filtered__&&(e>0||t<0)?new ie(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=X(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},ie.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ie.prototype.toArray=function(){return this.take(V)},Lt(ie.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=c[i?"take"+(t=="last"?"Right":""):t],d=i||/^find/.test(t);o&&(c.prototype[t]=function(){var f=this.__wrapped__,h=i?[1]:arguments,x=f instanceof ie,A=h[0],q=x||G(f),C=function(ae){var oe=o.apply(c,lr([ae],h));return i&&P?oe[0]:oe};q&&r&&typeof A=="function"&&A.length!=1&&(x=q=!1);var P=this.__chain__,M=!!this.__actions__.length,j=d&&!P,Q=x&&!M;if(!d&&q){f=Q?f:new ie(this);var U=e.apply(f,h);return U.__actions__.push({func:Fs,args:[C],thisArg:a}),new xt(U,P)}return j&&Q?e.apply(this,h):(U=this.thru(C),j?i?U.value()[0]:U.value():U)})}),gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ds[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var o=arguments;if(i&&!this.__chain__){var d=this.value();return t.apply(G(d)?d:[],o)}return this[r](function(f){return t.apply(G(f)?f:[],o)})}}),Lt(ie.prototype,function(e,t){var r=c[t];if(r){var i=r.name+"";he.call(Gr,i)||(Gr[i]=[]),Gr[i].push({name:t,func:r})}}),Gr[Ns(a,de).name]=[{name:"wrapper",func:a}],ie.prototype.clone=im,ie.prototype.reverse=nm,ie.prototype.value=om,c.prototype.at=My,c.prototype.chain=Ly,c.prototype.commit=Fy,c.prototype.next=By,c.prototype.plant=Uy,c.prototype.reverse=Wy,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=Hy,c.prototype.first=c.prototype.head,Ia&&(c.prototype[Ia]=jy),c},Hr=Lp();xr?((xr.exports=Hr)._=Hr,_i._=Hr):je._=Hr}).call(ea)}(Wa,Wa.exports);var Ku=Wa.exports;const Pt="tccScript",Qu={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 Dt;(function(n){n[n.None=0]="None",n[n.Indent=1]="Indent",n[n.IndentOutdent=2]="IndentOutdent",n[n.Outdent=3]="Outdent"})(Dt||(Dt={}));const Ju={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:Dt.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:Dt.Indent}},{beforeText:/else/,action:{indentAction:Dt.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:Dt.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:Dt.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:Dt.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:Dt.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:Dt.Indent}},{beforeText:/^\s*$/,action:{indentAction:Dt.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(n,s=1){return n+Math.round(255*Math.min(Math.max(s,0),1)).toString(16).toUpperCase().padStart(2,"0")}const Zu={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"]}},ed={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"]}},td=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,rd=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,Un={"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 ad{constructor(s){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,v=p;m<l.length;m++)l[m]!==","&&l[m]!==")"||(v++,u.set(l.slice(v,m),v),v=m+1);return a.map(({name:m,displayType:v,desc:g})=>{const b=[],w=u.get(m),k=w+m.length;return b.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(v||""))),g&&b.push(Array.isArray(g)?g.join(this._formatter.lineBreak):g),{label:[w,k],documentation:{value:b.join(this._formatter.lineBreak)}}})}}),this._formatter=fe,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(s)}getSignatureHelpValues(s,a){const l=this._getFuncItems(s);if(!(l!=null&&l.length))return null;const u=this._getSequentialSignatures(s,l),p=this._getActiveIndex(l,a);return{signatures:u,...p}}_getActiveIndex(s,a=[]){let l=0,u=-1;a.some(m=>!!m)||(u=a.length-1);const p=a.pop();if(p)for(const[m,v]of s.entries()){const{args:g}=v;if(g&&g.length){const b=g.findIndex(w=>w.name===p);if(b!=-1){u=b,l=m;break}}}return{activeParameter:u,activeSignature:l}}_getFuncItems(s){return rr.functions.get(s)||Sr.userFuncs.get(s)||Sr.methodFuncs.get(s)}_getSequentialSignatures(s,a){return a.map(l=>{const u=this._getSignatureLabel(s,l);return{label:u,documentation:this._getFormattedSignatureDocumentation(l),parameters:this._getSignatureParams(l.args,u)}})}_getSignatureLabel(s,a,l=!1){const u=[s];return l&&u.push("<type>"),a.args&&(u.push("("),u.push(a.args.map(({name:p})=>p).join(", ")),u.push(")")),u.join("")}_getFormattedSignatureDocumentation(s){const{desc:a}=s,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 sd=new ad(window.navigator.userAgent);class id{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=Un}getDocumentColors(s){const a=[];return s.forEach(l=>{const{range:u}=l;let{matches:p}=l;p=p||[];const m=p[0]||"";let v=null;this._isHexToken(m)?v=this._hexToColor(m):this._isRgbColor(m)?v=this._rgbToColor(m):this._colors[m]?v=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&p[1]&&p[6]&&(v=this._extractNewExpression(p[1],Number(p[6]))),v&&a.push({color:v,range:u})}),a}get _defultColorsRegStr(){return Object.keys(Un).reduce((s,a)=>`${s}|${a}`,"")}get colorMatchesRegStr(){const s=`#[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*(${s})\\s*,\\s*(\\d+)\\s*\\)|${s}`}getDocumentColorPresentations(s,{color:a,range:l}){const u=s.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(s){const a=this._denormalize(s).toString(16);return a.length===1?`0${a}`:a}_normalize(s){return s/255}_denormalize(s){return Math.round(255*s)}_normalizeAlpha(s){return(100-s)/100}_denormalizeAlpha(s){return 100-Math.round(100*s)}_extractNewExpression(s,a){let l=null;return this._isHexToken(s)?l=this._hexToColor(s):this._isRgbColor(s)?l=this._rgbToColor(s):this._colors[s]&&(l=this._hexToColor(this._colors[s])),l&&!Number.isNaN(a)?{...l,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(s){const a=this._hexFromNumber(s.red),l=this._hexFromNumber(s.green),u=this._hexFromNumber(s.blue),p=this._hexFromNumber(s.alpha);return`#${a}${l}${u}${s.alpha===1?"":p}`}_colorRgbRepresentation(s){const a=this._denormalize(s.red),l=this._denormalize(s.green),u=this._denormalize(s.blue),p=this._denormalizeAlpha(s.alpha),m=[a,l,u];return p>0&&m.push(p),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(s){const a={...s,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(s.alpha)})`}_hexToColor(s){const a=(s=this._isHexToken(s)?s.slice(1):s).length===3||s.length===4,l=a?`${s.slice(0,1)}${s.slice(0,1)}`:s.slice(0,2),u=a?`${s.slice(1,2)}${s.slice(1,2)}`:s.slice(2,4),p=a?`${s.slice(2,3)}${s.slice(2,3)}`:s.slice(4,6),m=(a?`${s.slice(3,4)}${s.slice(3,4)}`:s.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(s){const a=s.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(s){return s.charAt(0)==="#"}_isRgbColor(s){return s.startsWith("color.rgb")}_isColorExpression(s){return s.startsWith("color.new")}}const Qs=new id;function nd(n,s){var k;const a={startLineNumber:s.lineNumber,startColumn:1,endLineNumber:s.lineNumber,endColumn:s.column},l=n.getValueInRange(a),u=l.match(/([\w.]+)$/)||[],p=(k=u[0])==null?void 0:k.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=p?p[1]?p[1]:p[2]?p[2]:void 0:void 0,v=n.getWordUntilPosition(s),g=oa.parseCurrentInputFunc(l),b={startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:v.startColumn,endColumn:v.endColumn};let w=Wn(Sr.getSuggestions(m)||[],b);if(u[0]==="."&&(w=[]),g&&!m&&!/=\s*\w+$/.test(l)){const z=Wn(Sr.getArgSuggestions(g.funcName)||[],b);w=w.concat(z)}return{suggestions:w||[]}}function od(n,s){const a=n.getLineContent(s.lineNumber),l=oa.parseLineContentFuncVar(a,s.column,s.lineNumber);if(l&&l.docValue.length){const u=$u(l.docValue,l.index,l.isBuildIn);if(u)return{contents:[{value:u}]}}return{contents:[]}}function ld(n,s){var k,z;const a={startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:1,endColumn:s.column},l=n.getValueInRange(a),u=n.findMatches(String(td),a,!0,!1,null,!0),p=n.findMatches(String(rd),a,!0,!1,null,!0),m=(k=u.pop())==null?void 0:k.matches,v=(z=p.pop())==null?void 0:z.matches;let g=!1;u.length%2===0?m&&m[0]==='"'&&(g=!0):m&&!m[0]&&(g=!0);let b=!1;p.length%2===0?v&&v[0]==="'"&&(b=!0):v&&!v[0]&&(b=!0);const w=oa.parseCurrentInputFuncAndArg(l,b,g);if(w){const{funcName:E,args:R}=w,L=sd.getSignatureHelpValues(E,R);if(L)return{value:L,dispose:()=>{console.log("dispose")}}}return null}function cd(n){let s=n.findMatches(Qs.colorMatchesRegStr,!0,!0,!1,null,!0);return s=s.filter(l=>{const u=n.getValueInRange({...l.range,startColumn:0});return u.indexOf("//")===-1||u.indexOf("//")>l.range.endColumn}),Qs.getDocumentColors(s)}function ud(n,s){return Qs.getDocumentColorPresentations(n,s)||[]}function dd(n,s,a){const l=n.getModel(),u=l==null?void 0:l.getLineContent(a.startLineNumber),p=oa.parseLineContentFuncVar(u||"",a.startColumn+1,a.startLineNumber);if(!p||p.isBuildIn||!p.docValue||!p.docValue[0].pos)return!0;const{lineNumber:m,column:v}=p.docValue[0].pos,g={startLineNumber:m,endLineNumber:m,startColumn:v,endColumn:v};return n.revealRangeInCenterIfOutsideViewport(g),n.setSelection(g),!0}function pd(n,s){return{uri:n.uri,range:{startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:s.column-1,endColumn:s.column-1}}}function Wn(n,s){return n.map(a=>(a.range=s,a))}const Hn="tcc_last_edited_script",Vn="tcc_original_script",Zs="tcc_cursor_position";var la={},ca=Nc;if(process.env.NODE_ENV==="production")la.createRoot=ca.createRoot,la.hydrateRoot=ca.hydrateRoot;else{var Ha=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;la.createRoot=function(n,s){Ha.usingClientEntryPoint=!0;try{return ca.createRoot(n,s)}finally{Ha.usingClientEntryPoint=!1}},la.hydrateRoot=function(n,s,a){Ha.usingClientEntryPoint=!0;try{return ca.hydrateRoot(n,s,a)}finally{Ha.usingClientEntryPoint=!1}}}var We;(function(n){n.added="added",n.removed="removed",n.modified="modified"})(We||(We={}));const md=(n,s)=>{const{close:a,retracement:l}=n,[u,p]=F.useState("modified");return F.useImperativeHandle(s,()=>({updateType(m){p(m)}})),mt.jsxs("div",{className:`content-popup content-${u}-popup`,children:[mt.jsx("div",{className:`triangle-popup triangle-${u}-popup`}),mt.jsxs("div",{className:`header-popup header-${u}-popup`,children:[mt.jsx("div",{className:"title-popup",children:"Local working changes"}),mt.jsx("div",{className:"actions-popup",children:mt.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:mt.jsx("span",{className:"icon-popup",role:"img",children:mt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:mt.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),mt.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},fd=F.forwardRef(md);class yd{constructor(s,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=s,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)),la.createRoot(this._domNode).render(mt.jsx(fd,{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(s,a,l){var u;this._top=a,(u=this._content)==null||u.updateType(l),this._domNode.style.top=`${s}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(s){const a=s.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function ar(){}ar.prototype={diff:function(s,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 v(ne){return p?(setTimeout(function(){p(void 0,ne)},0),!0):ne}s=this.castInput(s),a=this.castInput(a),s=this.removeEmpty(this.tokenize(s)),a=this.removeEmpty(this.tokenize(a));var g=a.length,b=s.length,w=1,k=g+b;u.maxEditLength&&(k=Math.min(k,u.maxEditLength));var z=(l=u.timeout)!==null&&l!==void 0?l:1/0,E=Date.now()+z,R=[{oldPos:-1,lastComponent:void 0}],L=this.extractCommon(R[0],a,s,0);if(R[0].oldPos+1>=b&&L+1>=g)return v([{value:this.join(a),count:a.length}]);var J=-1/0,de=1/0;function ee(){for(var ne=Math.max(J,-w);ne<=Math.min(de,w);ne+=2){var Y=void 0,le=R[ne-1],K=R[ne+1];le&&(R[ne-1]=void 0);var Ne=!1;if(K){var _e=K.oldPos-ne;Ne=K&&0<=_e&&_e<g}var re=le&&le.oldPos+1<b;if(!Ne&&!re){R[ne]=void 0;continue}if(!re||Ne&&le.oldPos+1<K.oldPos?Y=m.addToPath(K,!0,void 0,0):Y=m.addToPath(le,void 0,!0,1),L=m.extractCommon(Y,a,s,ne),Y.oldPos+1>=b&&L+1>=g)return v(hd(m,Y.lastComponent,a,s,m.useLongestToken));R[ne]=Y,Y.oldPos+1>=b&&(de=Math.min(de,ne-1)),L+1>=g&&(J=Math.max(J,ne+1))}w++}if(p)(function ne(){setTimeout(function(){if(w>k||Date.now()>E)return p();ee()||ne()},0)})();else for(;w<=k&&Date.now()<=E;){var De=ee();if(De)return De}},addToPath:function(s,a,l,u){var p=s.lastComponent;return p&&p.added===a&&p.removed===l?{oldPos:s.oldPos+u,lastComponent:{count:p.count+1,added:a,removed:l,previousComponent:p.previousComponent}}:{oldPos:s.oldPos+u,lastComponent:{count:1,added:a,removed:l,previousComponent:p}}},extractCommon:function(s,a,l,u){for(var p=a.length,m=l.length,v=s.oldPos,g=v-u,b=0;g+1<p&&v+1<m&&this.equals(a[g+1],l[v+1]);)g++,v++,b++;return b&&(s.lastComponent={count:b,previousComponent:s.lastComponent}),s.oldPos=v,g},equals:function(s,a){return this.options.comparator?this.options.comparator(s,a):s===a||this.options.ignoreCase&&s.toLowerCase()===a.toLowerCase()},removeEmpty:function(s){for(var a=[],l=0;l<s.length;l++)s[l]&&a.push(s[l]);return a},castInput:function(s){return s},tokenize:function(s){return s.split("")},join:function(s){return s.join("")}};function hd(n,s,a,l,u){for(var p=[],m;s;)p.push(s),m=s.previousComponent,delete s.previousComponent,s=m;p.reverse();for(var v=0,g=p.length,b=0,w=0;v<g;v++){var k=p[v];if(k.removed){if(k.value=n.join(l.slice(w,w+k.count)),w+=k.count,v&&p[v-1].added){var E=p[v-1];p[v-1]=p[v],p[v]=E}}else{if(!k.added&&u){var z=a.slice(b,b+k.count);z=z.map(function(L,J){var de=l[w+J];return de.length>L.length?de:L}),k.value=n.join(z)}else k.value=n.join(a.slice(b,b+k.count));b+=k.count,k.added||(w+=k.count)}}var R=p[g-1];return g>1&&typeof R.value=="string"&&(R.added||R.removed)&&n.equals("",R.value)&&(p[g-2].value+=R.value,p.pop()),p}var $n=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Gn=/\S/,Xn=new ar;Xn.equals=function(n,s){return this.options.ignoreCase&&(n=n.toLowerCase(),s=s.toLowerCase()),n===s||this.options.ignoreWhitespace&&!Gn.test(n)&&!Gn.test(s)},Xn.tokenize=function(n){for(var s=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<s.length-1;a++)!s[a+1]&&s[a+2]&&$n.test(s[a])&&$n.test(s[a+2])&&(s[a]+=s[a+2],s.splice(a+1,2),a--);return s};var Js=new ar;Js.tokenize=function(n){this.options.stripTrailingCr&&(n=n.replace(/\r\n/g,`
134
- `));var s=[],a=n.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?s[s.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),s.push(u))}return s};function _d(n,s,a){return Js.diff(n,s,a)}var gd=new ar;gd.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var bd=new ar;bd.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function Va(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Va=function(s){return typeof s}:Va=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Va(n)}var xd=Object.prototype.toString,ua=new ar;ua.useLongestToken=!0,ua.tokenize=Js.tokenize,ua.castInput=function(n){var s=this.options,a=s.undefinedReplacement,l=s.stringifyReplacer,u=l===void 0?function(p,m){return typeof m>"u"?a:m}:l;return typeof n=="string"?n:JSON.stringify(ei(n,null,null,u),u," ")},ua.equals=function(n,s){return ar.prototype.equals.call(ua,n.replace(/,([\r\n])/g,"$1"),s.replace(/,([\r\n])/g,"$1"))};function ei(n,s,a,l,u){s=s||[],a=a||[],l&&(n=l(u,n));var p;for(p=0;p<s.length;p+=1)if(s[p]===n)return a[p];var m;if(xd.call(n)==="[object Array]"){for(s.push(n),m=new Array(n.length),a.push(m),p=0;p<n.length;p+=1)m[p]=ei(n[p],s,a,l,u);return s.pop(),a.pop(),m}if(n&&n.toJSON&&(n=n.toJSON()),Va(n)==="object"&&n!==null){s.push(n),m={},a.push(m);var v=[],g;for(g in n)n.hasOwnProperty(g)&&v.push(g);for(v.sort(),p=0;p<v.length;p+=1)g=v[p],m[g]=ei(n[g],s,a,l,g);s.pop(),a.pop()}else m=n;return m}var ti=new ar;ti.tokenize=function(n){return n.slice()},ti.join=ti.removeEmpty=function(n){return n};class vd{constructor(s,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=s,this._monaco=a,this._originalModel=this._monaco.editor.createModel(localStorage.getItem(Vn)||"",Pt),this._oldDecorations=[],this._init(),this._eventListening(l)}_init(){var s;this._changeEvent(),this._didChangeListener=(s=this._editor.getModel())==null?void 0:s.onDidChangeContent(()=>this._changeEvent())}update(s){var a;this._originalModel=this._monaco.editor.createModel(s,Pt),(a=this._editor.getModel())==null||a.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var s,a,l,u;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(s=this._didChangeListener)==null||s.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(s){let a=0,l;const u=[];let p=0;for(const m of s){const{added:v,removed:g,count:b=1,value:w}=m;v?l&&l.removed?(a=this._changeHandle(u,a,p,b,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=b:a+=b:(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+=b)}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(s,a,l,u,p){for(let m=1;m<=u;m++)this._addDecorationList(s,a+m,p);return a+=u+l,a}_addDecorationList(s,a,l){s.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${l} line-decoration_${l}`}})}_changeEvent(){var u,p;const s=_d(this._originalModel.getValue(),((u=this._editor.getModel())==null?void 0:u.getValue())||""),a=this._changesHandle(s),l=((p=this._editor.getModel())==null?void 0:p.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=l}_eventListening(s){const a=new yd("diff.popup.widget",this._editor);this._editor.addOverlayWidget(a),this._onMouseDownListener=this._editor.onMouseDown(l=>this._onMouseDownHandle(l,s)),this._diffPopupWidget=a}_onMouseDownHandle(s,a){var v,g,b,w,k,z;const l=(v=s.target.element)==null?void 0:v.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 E=((b=(g=s==null?void 0:s.target)==null?void 0:g.position)==null?void 0:b.lineNumber)||0,R=((w=this._editor)==null?void 0:w.getTopForLineNumber(E+1))||0,L=((k=this._editor)==null?void 0:k.getScrollTop())||0,J=u?We.added:p?We.modified:We.removed;(z=this._diffPopupWidget)==null||z.show(R-L,R,J),this._diffEditor||(this._diffEditor=this._createDiffEditor(a)),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(E+1)}}_createDiffEditor(s="vs-dark"){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{theme:s,renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class wd{constructor(s,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=s,this._monaco=a,this._init()}setModelMarkers(s){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",s)}addDiffDecorations(){this._decorations||(this._decorations=new vd(this._editor,this._monaco))}removeDiffDecorations(){var s;(s=this._decorations)==null||s.dispose(),this._decorations=void 0}setValue(s){this._editor.setValue(s)}saveScripts(){var a;const s=this._editor.getValue();localStorage.setItem(Vn,s||""),(a=this._decorations)==null||a.update(s),console.log("保存成功")}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._addListening(),this._setCursorPosition()}_setCursorPosition(){const s=localStorage.getItem(Zs);this._editor.setPosition(s?JSON.parse(s):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Pt}),this._monaco.languages.registerCompletionItemProvider(Pt,{triggerCharacters:["."],provideCompletionItems:nd}),this._monaco.languages.registerHoverProvider(Pt,{provideHover:od}),this._monaco.languages.registerSignatureHelpProvider(Pt,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:ld}),this._monaco.languages.registerColorProvider(Pt,{provideColorPresentations:ud,provideDocumentColors:cd}),this._monaco.editor.registerEditorOpener({openCodeEditor:dd}),this._monaco.languages.registerDefinitionProvider(Pt,{provideDefinition:pd})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",ed),this._monaco.editor.defineTheme("vs",Ju),this._monaco.languages.setMonarchTokensProvider(Pt,Qu),this._monaco.languages.setLanguageConfiguration(Pt,Zu)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(s,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(s){this._changPositionListener&&this._changPositionListener.dispose();const a=localStorage.getItem(Zs);s&&s(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(l=>{localStorage.setItem(Zs,JSON.stringify(l.position)),s&&s(l.position)})}_addListening(){const s=this._editor;document.addEventListener("keydown",function(a){(a.ctrlKey||a.metaKey)&&a.key==="f"&&(a.preventDefault(),s.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 sd=new ad(window.navigator.userAgent);class id{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=Un}getDocumentColors(s){const a=[];return s.forEach(l=>{const{range:u}=l;let{matches:p}=l;p=p||[];const m=p[0]||"";let v=null;this._isHexToken(m)?v=this._hexToColor(m):this._isRgbColor(m)?v=this._rgbToColor(m):this._colors[m]?v=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&p[1]&&p[6]&&(v=this._extractNewExpression(p[1],Number(p[6]))),v&&a.push({color:v,range:u})}),a}get _defultColorsRegStr(){return Object.keys(Un).reduce((s,a)=>`${s}|${a}`,"")}get colorMatchesRegStr(){const s=`#[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*(${s})\\s*,\\s*(\\d+)\\s*\\)|${s}`}getDocumentColorPresentations(s,{color:a,range:l}){const u=s.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(s){const a=this._denormalize(s).toString(16);return a.length===1?`0${a}`:a}_normalize(s){return s/255}_denormalize(s){return Math.round(255*s)}_normalizeAlpha(s){return(100-s)/100}_denormalizeAlpha(s){return 100-Math.round(100*s)}_extractNewExpression(s,a){let l=null;return this._isHexToken(s)?l=this._hexToColor(s):this._isRgbColor(s)?l=this._rgbToColor(s):this._colors[s]&&(l=this._hexToColor(this._colors[s])),l&&!Number.isNaN(a)?{...l,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(s){const a=this._hexFromNumber(s.red),l=this._hexFromNumber(s.green),u=this._hexFromNumber(s.blue),p=this._hexFromNumber(s.alpha);return`#${a}${l}${u}${s.alpha===1?"":p}`}_colorRgbRepresentation(s){const a=this._denormalize(s.red),l=this._denormalize(s.green),u=this._denormalize(s.blue),p=this._denormalizeAlpha(s.alpha),m=[a,l,u];return p>0&&m.push(p),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(s){const a={...s,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(s.alpha)})`}_hexToColor(s){const a=(s=this._isHexToken(s)?s.slice(1):s).length===3||s.length===4,l=a?`${s.slice(0,1)}${s.slice(0,1)}`:s.slice(0,2),u=a?`${s.slice(1,2)}${s.slice(1,2)}`:s.slice(2,4),p=a?`${s.slice(2,3)}${s.slice(2,3)}`:s.slice(4,6),m=(a?`${s.slice(3,4)}${s.slice(3,4)}`:s.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(s){const a=s.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(s){return s.charAt(0)==="#"}_isRgbColor(s){return s.startsWith("color.rgb")}_isColorExpression(s){return s.startsWith("color.new")}}const Qs=new id;function nd(n,s){var k;const a={startLineNumber:s.lineNumber,startColumn:1,endLineNumber:s.lineNumber,endColumn:s.column},l=n.getValueInRange(a),u=l.match(/([\w.]+)$/)||[],p=(k=u[0])==null?void 0:k.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=p?p[1]?p[1]:p[2]?p[2]:void 0:void 0,v=n.getWordUntilPosition(s),g=oa.parseCurrentInputFunc(l),b={startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:v.startColumn,endColumn:v.endColumn};let w=Wn(Sr.getSuggestions(m)||[],b);if(u[0]==="."&&(w=[]),g&&!m&&!/=\s*\w+$/.test(l)){const z=Wn(Sr.getArgSuggestions(g.funcName)||[],b);w=w.concat(z)}return{suggestions:w||[]}}function od(n,s){const a=n.getLineContent(s.lineNumber),l=oa.parseLineContentFuncVar(a,s.column,s.lineNumber);if(l&&l.docValue.length){const u=$u(l.docValue,l.index,l.isBuildIn);if(u)return{contents:[{value:u}]}}return{contents:[]}}function ld(n,s){var k,z;const a={startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:1,endColumn:s.column},l=n.getValueInRange(a),u=n.findMatches(String(td),a,!0,!1,null,!0),p=n.findMatches(String(rd),a,!0,!1,null,!0),m=(k=u.pop())==null?void 0:k.matches,v=(z=p.pop())==null?void 0:z.matches;let g=!1;u.length%2===0?m&&m[0]==='"'&&(g=!0):m&&!m[0]&&(g=!0);let b=!1;p.length%2===0?v&&v[0]==="'"&&(b=!0):v&&!v[0]&&(b=!0);const w=oa.parseCurrentInputFuncAndArg(l,b,g);if(w){const{funcName:E,args:R}=w,L=sd.getSignatureHelpValues(E,R);if(L)return{value:L,dispose:()=>{console.log("dispose")}}}return null}function cd(n){let s=n.findMatches(Qs.colorMatchesRegStr,!0,!0,!1,null,!0);return s=s.filter(l=>{const u=n.getValueInRange({...l.range,startColumn:0});return u.indexOf("//")===-1||u.indexOf("//")>l.range.endColumn}),Qs.getDocumentColors(s)}function ud(n,s){return Qs.getDocumentColorPresentations(n,s)||[]}function dd(n,s,a){const l=n.getModel(),u=l==null?void 0:l.getLineContent(a.startLineNumber),p=oa.parseLineContentFuncVar(u||"",a.startColumn+1,a.startLineNumber);if(!p||p.isBuildIn||!p.docValue||!p.docValue[0].pos)return!0;const{lineNumber:m,column:v}=p.docValue[0].pos,g={startLineNumber:m,endLineNumber:m,startColumn:v,endColumn:v};return n.revealRangeInCenterIfOutsideViewport(g),n.setSelection(g),!0}function pd(n,s){return{uri:n.uri,range:{startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:s.column-1,endColumn:s.column-1}}}function Wn(n,s){return n.map(a=>(a.range=s,a))}const Hn="tcc_last_edited_script",Vn="tcc_original_script",Js="tcc_cursor_position";var la={},ca=Nc;if(process.env.NODE_ENV==="production")la.createRoot=ca.createRoot,la.hydrateRoot=ca.hydrateRoot;else{var Ha=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;la.createRoot=function(n,s){Ha.usingClientEntryPoint=!0;try{return ca.createRoot(n,s)}finally{Ha.usingClientEntryPoint=!1}},la.hydrateRoot=function(n,s,a){Ha.usingClientEntryPoint=!0;try{return ca.hydrateRoot(n,s,a)}finally{Ha.usingClientEntryPoint=!1}}}var We;(function(n){n.added="added",n.removed="removed",n.modified="modified"})(We||(We={}));const md=(n,s)=>{const{close:a,retracement:l}=n,[u,p]=F.useState("modified");return F.useImperativeHandle(s,()=>({updateType(m){p(m)}})),mt.jsxs("div",{className:`content-popup content-${u}-popup`,children:[mt.jsx("div",{className:`triangle-popup triangle-${u}-popup`}),mt.jsxs("div",{className:`header-popup header-${u}-popup`,children:[mt.jsx("div",{className:"title-popup",children:"Local working changes"}),mt.jsx("div",{className:"actions-popup",children:mt.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:mt.jsx("span",{className:"icon-popup",role:"img",children:mt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:mt.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),mt.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},fd=F.forwardRef(md);class yd{constructor(s,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=s,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)),la.createRoot(this._domNode).render(mt.jsx(fd,{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(s,a,l){var u;this._top=a,(u=this._content)==null||u.updateType(l),this._domNode.style.top=`${s}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(s){const a=s.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function ar(){}ar.prototype={diff:function(s,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 v(ne){return p?(setTimeout(function(){p(void 0,ne)},0),!0):ne}s=this.castInput(s),a=this.castInput(a),s=this.removeEmpty(this.tokenize(s)),a=this.removeEmpty(this.tokenize(a));var g=a.length,b=s.length,w=1,k=g+b;u.maxEditLength&&(k=Math.min(k,u.maxEditLength));var z=(l=u.timeout)!==null&&l!==void 0?l:1/0,E=Date.now()+z,R=[{oldPos:-1,lastComponent:void 0}],L=this.extractCommon(R[0],a,s,0);if(R[0].oldPos+1>=b&&L+1>=g)return v([{value:this.join(a),count:a.length}]);var Z=-1/0,de=1/0;function ee(){for(var ne=Math.max(Z,-w);ne<=Math.min(de,w);ne+=2){var Y=void 0,le=R[ne-1],K=R[ne+1];le&&(R[ne-1]=void 0);var Ne=!1;if(K){var _e=K.oldPos-ne;Ne=K&&0<=_e&&_e<g}var re=le&&le.oldPos+1<b;if(!Ne&&!re){R[ne]=void 0;continue}if(!re||Ne&&le.oldPos+1<K.oldPos?Y=m.addToPath(K,!0,void 0,0):Y=m.addToPath(le,void 0,!0,1),L=m.extractCommon(Y,a,s,ne),Y.oldPos+1>=b&&L+1>=g)return v(hd(m,Y.lastComponent,a,s,m.useLongestToken));R[ne]=Y,Y.oldPos+1>=b&&(de=Math.min(de,ne-1)),L+1>=g&&(Z=Math.max(Z,ne+1))}w++}if(p)(function ne(){setTimeout(function(){if(w>k||Date.now()>E)return p();ee()||ne()},0)})();else for(;w<=k&&Date.now()<=E;){var De=ee();if(De)return De}},addToPath:function(s,a,l,u){var p=s.lastComponent;return p&&p.added===a&&p.removed===l?{oldPos:s.oldPos+u,lastComponent:{count:p.count+1,added:a,removed:l,previousComponent:p.previousComponent}}:{oldPos:s.oldPos+u,lastComponent:{count:1,added:a,removed:l,previousComponent:p}}},extractCommon:function(s,a,l,u){for(var p=a.length,m=l.length,v=s.oldPos,g=v-u,b=0;g+1<p&&v+1<m&&this.equals(a[g+1],l[v+1]);)g++,v++,b++;return b&&(s.lastComponent={count:b,previousComponent:s.lastComponent}),s.oldPos=v,g},equals:function(s,a){return this.options.comparator?this.options.comparator(s,a):s===a||this.options.ignoreCase&&s.toLowerCase()===a.toLowerCase()},removeEmpty:function(s){for(var a=[],l=0;l<s.length;l++)s[l]&&a.push(s[l]);return a},castInput:function(s){return s},tokenize:function(s){return s.split("")},join:function(s){return s.join("")}};function hd(n,s,a,l,u){for(var p=[],m;s;)p.push(s),m=s.previousComponent,delete s.previousComponent,s=m;p.reverse();for(var v=0,g=p.length,b=0,w=0;v<g;v++){var k=p[v];if(k.removed){if(k.value=n.join(l.slice(w,w+k.count)),w+=k.count,v&&p[v-1].added){var E=p[v-1];p[v-1]=p[v],p[v]=E}}else{if(!k.added&&u){var z=a.slice(b,b+k.count);z=z.map(function(L,Z){var de=l[w+Z];return de.length>L.length?de:L}),k.value=n.join(z)}else k.value=n.join(a.slice(b,b+k.count));b+=k.count,k.added||(w+=k.count)}}var R=p[g-1];return g>1&&typeof R.value=="string"&&(R.added||R.removed)&&n.equals("",R.value)&&(p[g-2].value+=R.value,p.pop()),p}var $n=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Gn=/\S/,Xn=new ar;Xn.equals=function(n,s){return this.options.ignoreCase&&(n=n.toLowerCase(),s=s.toLowerCase()),n===s||this.options.ignoreWhitespace&&!Gn.test(n)&&!Gn.test(s)},Xn.tokenize=function(n){for(var s=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<s.length-1;a++)!s[a+1]&&s[a+2]&&$n.test(s[a])&&$n.test(s[a+2])&&(s[a]+=s[a+2],s.splice(a+1,2),a--);return s};var Zs=new ar;Zs.tokenize=function(n){this.options.stripTrailingCr&&(n=n.replace(/\r\n/g,`
134
+ `));var s=[],a=n.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?s[s.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),s.push(u))}return s};function _d(n,s,a){return Zs.diff(n,s,a)}var gd=new ar;gd.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var bd=new ar;bd.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function Va(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Va=function(s){return typeof s}:Va=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Va(n)}var xd=Object.prototype.toString,ua=new ar;ua.useLongestToken=!0,ua.tokenize=Zs.tokenize,ua.castInput=function(n){var s=this.options,a=s.undefinedReplacement,l=s.stringifyReplacer,u=l===void 0?function(p,m){return typeof m>"u"?a:m}:l;return typeof n=="string"?n:JSON.stringify(ei(n,null,null,u),u," ")},ua.equals=function(n,s){return ar.prototype.equals.call(ua,n.replace(/,([\r\n])/g,"$1"),s.replace(/,([\r\n])/g,"$1"))};function ei(n,s,a,l,u){s=s||[],a=a||[],l&&(n=l(u,n));var p;for(p=0;p<s.length;p+=1)if(s[p]===n)return a[p];var m;if(xd.call(n)==="[object Array]"){for(s.push(n),m=new Array(n.length),a.push(m),p=0;p<n.length;p+=1)m[p]=ei(n[p],s,a,l,u);return s.pop(),a.pop(),m}if(n&&n.toJSON&&(n=n.toJSON()),Va(n)==="object"&&n!==null){s.push(n),m={},a.push(m);var v=[],g;for(g in n)n.hasOwnProperty(g)&&v.push(g);for(v.sort(),p=0;p<v.length;p+=1)g=v[p],m[g]=ei(n[g],s,a,l,g);s.pop(),a.pop()}else m=n;return m}var ti=new ar;ti.tokenize=function(n){return n.slice()},ti.join=ti.removeEmpty=function(n){return n};class vd{constructor(s,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=s,this._monaco=a,this._originalModel=this._monaco.editor.createModel(localStorage.getItem(Vn)||"",Pt),this._oldDecorations=[],this._init(),this._eventListening(l)}_init(){var s;this._changeEvent(),this._didChangeListener=(s=this._editor.getModel())==null?void 0:s.onDidChangeContent(()=>this._changeEvent())}update(s){var a;this._originalModel=this._monaco.editor.createModel(s,Pt),(a=this._editor.getModel())==null||a.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var s,a,l,u;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(s=this._didChangeListener)==null||s.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(s){let a=0,l;const u=[];let p=0;for(const m of s){const{added:v,removed:g,count:b=1,value:w}=m;v?l&&l.removed?(a=this._changeHandle(u,a,p,b,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=b:a+=b:(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+=b)}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(s,a,l,u,p){for(let m=1;m<=u;m++)this._addDecorationList(s,a+m,p);return a+=u+l,a}_addDecorationList(s,a,l){s.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${l} line-decoration_${l}`}})}_changeEvent(){var u,p;const s=_d(this._originalModel.getValue(),((u=this._editor.getModel())==null?void 0:u.getValue())||""),a=this._changesHandle(s),l=((p=this._editor.getModel())==null?void 0:p.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=l}_eventListening(s){const a=new yd("diff.popup.widget",this._editor);this._editor.addOverlayWidget(a),this._onMouseDownListener=this._editor.onMouseDown(l=>this._onMouseDownHandle(l,s)),this._diffPopupWidget=a}_onMouseDownHandle(s,a){var v,g,b,w,k,z;const l=(v=s.target.element)==null?void 0:v.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 E=((b=(g=s==null?void 0:s.target)==null?void 0:g.position)==null?void 0:b.lineNumber)||0,R=((w=this._editor)==null?void 0:w.getTopForLineNumber(E+1))||0,L=((k=this._editor)==null?void 0:k.getScrollTop())||0,Z=u?We.added:p?We.modified:We.removed;(z=this._diffPopupWidget)==null||z.show(R-L,R,Z),this._diffEditor||(this._diffEditor=this._createDiffEditor(a)),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(E+1)}}_createDiffEditor(s="vs-dark"){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{theme:s,renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class wd{constructor(s,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=s,this._monaco=a,this._init()}setModelMarkers(s){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",s)}addDiffDecorations(){this._decorations||(this._decorations=new vd(this._editor,this._monaco))}removeDiffDecorations(){var s;(s=this._decorations)==null||s.dispose(),this._decorations=void 0}setValue(s){this._editor.setValue(s)}saveScripts(){var a;const s=this._editor.getValue();localStorage.setItem(Vn,s||""),(a=this._decorations)==null||a.update(s),console.log("保存成功")}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._addListening(),this._setCursorPosition()}_setCursorPosition(){const s=localStorage.getItem(Js);this._editor.setPosition(s?JSON.parse(s):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Pt}),this._monaco.languages.registerCompletionItemProvider(Pt,{triggerCharacters:["."],provideCompletionItems:nd}),this._monaco.languages.registerHoverProvider(Pt,{provideHover:od}),this._monaco.languages.registerSignatureHelpProvider(Pt,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:ld}),this._monaco.languages.registerColorProvider(Pt,{provideColorPresentations:ud,provideDocumentColors:cd}),this._monaco.editor.registerEditorOpener({openCodeEditor:dd}),this._monaco.languages.registerDefinitionProvider(Pt,{provideDefinition:pd})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",ed),this._monaco.editor.defineTheme("vs",Zu),this._monaco.languages.setMonarchTokensProvider(Pt,Qu),this._monaco.languages.setLanguageConfiguration(Pt,Ju)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(s,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(s){this._changPositionListener&&this._changPositionListener.dispose();const a=localStorage.getItem(Js);s&&s(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(l=>{localStorage.setItem(Js,JSON.stringify(l.position)),s&&s(l.position)})}_addListening(){const s=this._editor;document.addEventListener("keydown",function(a){(a.ctrlKey||a.metaKey)&&a.key==="f"&&(a.preventDefault(),s.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 Yn=Symbol("Comlink.proxy"),Td=Symbol("Comlink.endpoint"),Id=Symbol("Comlink.releaseProxy"),ri=Symbol("Comlink.finalizer"),$a=Symbol("Comlink.thrown"),Kn=n=>typeof n=="object"&&n!==null||typeof n=="function",Dd={canHandle:n=>Kn(n)&&n[Yn],serialize(n){const{port1:s,port2:a}=new MessageChannel;return Zn(n,s),[a,[a]]},deserialize(n){return n.start(),ai(n)}},kd={canHandle:n=>Kn(n)&&$a in n,serialize({value:n}){let s;return n instanceof Error?s={isError:!0,value:{message:n.message,name:n.name,stack:n.stack}}:s={isError:!1,value:n},[s,[]]},deserialize(n){throw n.isError?Object.assign(new Error(n.value.message),n.value):n.value}},Qn=new Map([["proxy",Dd],["throw",kd]]);function Ad(n,s){for(const a of n)if(s===a||a==="*"||a instanceof RegExp&&a.test(s))return!0;return!1}function Zn(n,s=globalThis,a=["*"]){s.addEventListener("message",function l(u){if(!u||!u.data)return;if(!Ad(a,u.origin)){console.warn(`Invalid origin '${u.origin}' for comlink proxy`);return}const{id:p,type:m,path:v}=Object.assign({path:[]},u.data),g=(u.data.argumentList||[]).map(hr);let b;try{const w=v.slice(0,-1).reduce((z,E)=>z[E],n),k=v.reduce((z,E)=>z[E],n);switch(m){case"GET":b=k;break;case"SET":w[v.slice(-1)[0]]=hr(u.data.value),b=!0;break;case"APPLY":b=k.apply(w,g);break;case"CONSTRUCT":{const z=new k(...g);b=Pd(z)}break;case"ENDPOINT":{const{port1:z,port2:E}=new MessageChannel;Zn(n,E),b=Nd(z,[z])}break;case"RELEASE":b=void 0;break;default:return}}catch(w){b={value:w,[$a]:0}}Promise.resolve(b).catch(w=>({value:w,[$a]:0})).then(w=>{const[k,z]=Ka(w);s.postMessage(Object.assign(Object.assign({},k),{id:p}),z),m==="RELEASE"&&(s.removeEventListener("message",l),Jn(s),ri in n&&typeof n[ri]=="function"&&n[ri]())}).catch(w=>{const[k,z]=Ka({value:new TypeError("Unserializable return value"),[$a]:0});s.postMessage(Object.assign(Object.assign({},k),{id:p}),z)})}),s.start&&s.start()}function qd(n){return n.constructor.name==="MessagePort"}function Jn(n){qd(n)&&n.close()}function ai(n,s){return si(n,[],s)}function Ga(n){if(n)throw new Error("Proxy has been released and is not useable")}function eo(n){return zr(n,{type:"RELEASE"}).then(()=>{Jn(n)})}const Xa=new WeakMap,Ya="FinalizationRegistry"in globalThis&&new FinalizationRegistry(n=>{const s=(Xa.get(n)||0)-1;Xa.set(n,s),s===0&&eo(n)});function Cd(n,s){const a=(Xa.get(s)||0)+1;Xa.set(s,a),Ya&&Ya.register(n,s,n)}function Sd(n){Ya&&Ya.unregister(n)}function si(n,s=[],a=function(){}){let l=!1;const u=new Proxy(a,{get(p,m){if(Ga(l),m===Id)return()=>{Sd(u),eo(n),l=!0};if(m==="then"){if(s.length===0)return{then:()=>u};const v=zr(n,{type:"GET",path:s.map(g=>g.toString())}).then(hr);return v.then.bind(v)}return si(n,[...s,m])},set(p,m,v){Ga(l);const[g,b]=Ka(v);return zr(n,{type:"SET",path:[...s,m].map(w=>w.toString()),value:g},b).then(hr)},apply(p,m,v){Ga(l);const g=s[s.length-1];if(g===Td)return zr(n,{type:"ENDPOINT"}).then(hr);if(g==="bind")return si(n,s.slice(0,-1));const[b,w]=to(v);return zr(n,{type:"APPLY",path:s.map(k=>k.toString()),argumentList:b},w).then(hr)},construct(p,m){Ga(l);const[v,g]=to(m);return zr(n,{type:"CONSTRUCT",path:s.map(b=>b.toString()),argumentList:v},g).then(hr)}});return Cd(u,n),u}function zd(n){return Array.prototype.concat.apply([],n)}function to(n){const s=n.map(Ka);return[s.map(a=>a[0]),zd(s.map(a=>a[1]))]}const ro=new WeakMap;function Nd(n,s){return ro.set(n,s),n}function Pd(n){return Object.assign(n,{[Yn]:!0})}function Ka(n){for(const[s,a]of Qn)if(a.canHandle(n)){const[l,u]=a.serialize(n);return[{type:"HANDLER",name:s,value:l},u]}return[{type:"RAW",value:n},ro.get(n)||[]]}function hr(n){switch(n.type){case"HANDLER":return Qn.get(n.name).deserialize(n.value);case"RAW":return n.value}}function zr(n,s,a){return new Promise(l=>{const u=Rd();n.addEventListener("message",function p(m){!m.data||!m.data.id||m.data.id!==u||(n.removeEventListener("message",p),l(m.data))}),n.start&&n.start(),n.postMessage(Object.assign({id:u},s),a)})}function Rd(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const ao=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-7VRMTphe.js").href:new URL("assets/scriptsRunWorker-7VRMTphe.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:La&&La.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});ao.onerror=n=>{console.error(n)};const Od=ai(ao),Ed=ai(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-D6nS9GYX.js").href:new URL("assets/parserTccWorker-D6nS9GYX.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:La&&La.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function so(n,s=!1){const{functions:a,types:l,constants:u,variables:p,methods:m}=rr;return await Ed(n,s,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(l),constants:Object.fromEntries(u),variables:Object.fromEntries(p)})}async function io(n,s,a=!0){return await Od(n,s,a)}const Md=({height:n,width:s,theme:a,options:l,hasDiff:u,onChange:p,onDeclareConfigChange:m,onCursorPositionChange:v},g)=>{const b=F.useRef(null);F.useImperativeHandle(g,()=>({saveScript(){var R;(R=b.current)==null||R.saveScripts()},setScript(R){var L;(L=b.current)==null||L.setValue(R)},gotoLine(){var R;(R=b.current)==null||R.gotoLine()}})),F.useEffect(()=>{var R,L;u?(L=b.current)==null||L.addDiffDecorations():(R=b.current)==null||R.removeDiffDecorations()},[u]);function w(R,L){var de;Sr.initBuiltinsTrees(),b.current=new wd(R,L),u&&((de=b.current)==null||de.addDiffDecorations());const J=R.getValue()+`
138
+ */const Yn=Symbol("Comlink.proxy"),Td=Symbol("Comlink.endpoint"),Id=Symbol("Comlink.releaseProxy"),ri=Symbol("Comlink.finalizer"),$a=Symbol("Comlink.thrown"),Kn=n=>typeof n=="object"&&n!==null||typeof n=="function",Dd={canHandle:n=>Kn(n)&&n[Yn],serialize(n){const{port1:s,port2:a}=new MessageChannel;return Jn(n,s),[a,[a]]},deserialize(n){return n.start(),ai(n)}},kd={canHandle:n=>Kn(n)&&$a in n,serialize({value:n}){let s;return n instanceof Error?s={isError:!0,value:{message:n.message,name:n.name,stack:n.stack}}:s={isError:!1,value:n},[s,[]]},deserialize(n){throw n.isError?Object.assign(new Error(n.value.message),n.value):n.value}},Qn=new Map([["proxy",Dd],["throw",kd]]);function Ad(n,s){for(const a of n)if(s===a||a==="*"||a instanceof RegExp&&a.test(s))return!0;return!1}function Jn(n,s=globalThis,a=["*"]){s.addEventListener("message",function l(u){if(!u||!u.data)return;if(!Ad(a,u.origin)){console.warn(`Invalid origin '${u.origin}' for comlink proxy`);return}const{id:p,type:m,path:v}=Object.assign({path:[]},u.data),g=(u.data.argumentList||[]).map(hr);let b;try{const w=v.slice(0,-1).reduce((z,E)=>z[E],n),k=v.reduce((z,E)=>z[E],n);switch(m){case"GET":b=k;break;case"SET":w[v.slice(-1)[0]]=hr(u.data.value),b=!0;break;case"APPLY":b=k.apply(w,g);break;case"CONSTRUCT":{const z=new k(...g);b=Pd(z)}break;case"ENDPOINT":{const{port1:z,port2:E}=new MessageChannel;Jn(n,E),b=Nd(z,[z])}break;case"RELEASE":b=void 0;break;default:return}}catch(w){b={value:w,[$a]:0}}Promise.resolve(b).catch(w=>({value:w,[$a]:0})).then(w=>{const[k,z]=Ka(w);s.postMessage(Object.assign(Object.assign({},k),{id:p}),z),m==="RELEASE"&&(s.removeEventListener("message",l),Zn(s),ri in n&&typeof n[ri]=="function"&&n[ri]())}).catch(w=>{const[k,z]=Ka({value:new TypeError("Unserializable return value"),[$a]:0});s.postMessage(Object.assign(Object.assign({},k),{id:p}),z)})}),s.start&&s.start()}function qd(n){return n.constructor.name==="MessagePort"}function Zn(n){qd(n)&&n.close()}function ai(n,s){return si(n,[],s)}function Ga(n){if(n)throw new Error("Proxy has been released and is not useable")}function eo(n){return zr(n,{type:"RELEASE"}).then(()=>{Zn(n)})}const Xa=new WeakMap,Ya="FinalizationRegistry"in globalThis&&new FinalizationRegistry(n=>{const s=(Xa.get(n)||0)-1;Xa.set(n,s),s===0&&eo(n)});function Cd(n,s){const a=(Xa.get(s)||0)+1;Xa.set(s,a),Ya&&Ya.register(n,s,n)}function Sd(n){Ya&&Ya.unregister(n)}function si(n,s=[],a=function(){}){let l=!1;const u=new Proxy(a,{get(p,m){if(Ga(l),m===Id)return()=>{Sd(u),eo(n),l=!0};if(m==="then"){if(s.length===0)return{then:()=>u};const v=zr(n,{type:"GET",path:s.map(g=>g.toString())}).then(hr);return v.then.bind(v)}return si(n,[...s,m])},set(p,m,v){Ga(l);const[g,b]=Ka(v);return zr(n,{type:"SET",path:[...s,m].map(w=>w.toString()),value:g},b).then(hr)},apply(p,m,v){Ga(l);const g=s[s.length-1];if(g===Td)return zr(n,{type:"ENDPOINT"}).then(hr);if(g==="bind")return si(n,s.slice(0,-1));const[b,w]=to(v);return zr(n,{type:"APPLY",path:s.map(k=>k.toString()),argumentList:b},w).then(hr)},construct(p,m){Ga(l);const[v,g]=to(m);return zr(n,{type:"CONSTRUCT",path:s.map(b=>b.toString()),argumentList:v},g).then(hr)}});return Cd(u,n),u}function zd(n){return Array.prototype.concat.apply([],n)}function to(n){const s=n.map(Ka);return[s.map(a=>a[0]),zd(s.map(a=>a[1]))]}const ro=new WeakMap;function Nd(n,s){return ro.set(n,s),n}function Pd(n){return Object.assign(n,{[Yn]:!0})}function Ka(n){for(const[s,a]of Qn)if(a.canHandle(n)){const[l,u]=a.serialize(n);return[{type:"HANDLER",name:s,value:l},u]}return[{type:"RAW",value:n},ro.get(n)||[]]}function hr(n){switch(n.type){case"HANDLER":return Qn.get(n.name).deserialize(n.value);case"RAW":return n.value}}function zr(n,s,a){return new Promise(l=>{const u=Rd();n.addEventListener("message",function p(m){!m.data||!m.data.id||m.data.id!==u||(n.removeEventListener("message",p),l(m.data))}),n.start&&n.start(),n.postMessage(Object.assign({id:u},s),a)})}function Rd(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const ao=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-B4O7gGzE.js").href:new URL("assets/scriptsRunWorker-B4O7gGzE.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:La&&La.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});ao.onerror=n=>{console.error(n)};const Od=ai(ao),Ed=ai(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-cJ5nOv5I.js").href:new URL("assets/parserTccWorker-cJ5nOv5I.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:La&&La.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function so(n,s=!1){const{functions:a,types:l,constants:u,variables:p,methods:m}=rr;return await Ed(n,s,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(l),constants:Object.fromEntries(u),variables:Object.fromEntries(p)})}async function io(n,s,a=!0){return await Od(n,s,a)}const Md=({height:n,width:s,theme:a,options:l,hasDiff:u,onChange:p,onDeclareConfigChange:m,onCursorPositionChange:v},g)=>{const b=F.useRef(null);F.useImperativeHandle(g,()=>({saveScript(){var R;(R=b.current)==null||R.saveScripts()},setScript(R){var L;(L=b.current)==null||L.setValue(R)},gotoLine(){var R;(R=b.current)==null||R.gotoLine()}})),F.useEffect(()=>{var R,L;u?(L=b.current)==null||L.addDiffDecorations():(R=b.current)==null||R.removeDiffDecorations()},[u]);function w(R,L){var de;Sr.initBuiltinsTrees(),b.current=new wd(R,L),u&&((de=b.current)==null||de.addDiffDecorations());const Z=R.getValue()+`
139
139
 
140
- `;b.current.onChangeCursorPosition(v),p&&p(J),k(J)}const k=F.useCallback(async R=>{var Pe;const L=Date.now(),{errors:J,functions:de,methods:ee,types:De,variables:ne,overloadsFuncs:Y,preParserCode:le}=await so(R);try{const we=await io(le,{isPreParser:!0});console.log(we),m&&m(we)}catch(we){console.log(we,"==================error- Run TccScript Server")}const K=new Map(Object.entries(de)),Ne=new Map(Object.entries(ee)),_e=new Map(Object.entries(De)),re=new Map(Object.entries(ne));oa.setUserDefined({functions:K,methods:Ne,types:_e,variables:re},Y),Sr.setUserDefind(K,_e,re,Ne);const yt=J.map(we=>({...we,severity:we.type||pt.MarkerSeverity.Error}));(Pe=b.current)==null||Pe.setModelMarkers(yt);const kt=Date.now();console.log((kt-L)/1e3)},[m]),z=F.useMemo(()=>Ku.debounce(k,1e3),[k]);function E(R){var L;(L=b.current)==null||L.setModelMarkers([]),localStorage.setItem(Hn,R||""),R!==void 0&&(R=R+`
140
+ `;b.current.onChangeCursorPosition(v),p&&p(Z),k(Z)}const k=F.useCallback(async R=>{var Pe;const L=Date.now(),{errors:Z,functions:de,methods:ee,types:De,variables:ne,overloadsFuncs:Y,preParserCode:le}=await so(R);try{const we=await io(le,{isPreParser:!0});console.log(we),m&&m(we)}catch(we){console.log(we,"==================error- Run TccScript Server")}const K=new Map(Object.entries(de)),Ne=new Map(Object.entries(ee)),_e=new Map(Object.entries(De)),re=new Map(Object.entries(ne));oa.setUserDefined({functions:K,methods:Ne,types:_e,variables:re},Y),Sr.setUserDefind(K,_e,re,Ne);const yt=Z.map(we=>({...we,severity:we.type||pt.MarkerSeverity.Error}));(Pe=b.current)==null||Pe.setModelMarkers(yt);const kt=Date.now();console.log((kt-L)/1e3)},[m]),z=F.useMemo(()=>Ku.debounce(k,1e3),[k]);function E(R){var L;(L=b.current)==null||L.setModelMarkers([]),localStorage.setItem(Hn,R||""),R!==void 0&&(R=R+`
141
141
 
142
142
  `,p&&p(R),z(R))}return mt.jsx(Fu,{height:n||"90vh",width:s||"100%",defaultLanguage:"tccScript",defaultValue:localStorage.getItem(Hn)||`indicator("我的脚本")
143
143
  plot(close)