@guihz/trading-vue-editor-tes 0.0.56 → 0.0.58

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.line-decoration_modified,.line-decoration_added,.line-decoration_removed{left:auto!important;right:20px;transform:scale(-1);width:4px!important}.line-modified:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background-image:linear-gradient(-45deg,#2962ff 25%,#0000 0,#0000 50%,#2962ff 0,#2962ff 75%,#0000 0,#0000);background-size:3px 3px}.line-added:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background:#089950}.modified-in-monaco-diff-editor .line-modified:before,.modified-in-monaco-diff-editor .line-added:before,.modified-in-monaco-diff-editor .line-decoration_removed:after{background:none}.line-modified:hover:before,.line-added:hover:before,.line-decoration_removed:hover:before{width:5px}.line-decoration_removed:hover:before{background-color:#f23645}.line-decoration_removed:hover:after{background:none}.line-decoration_removed:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1}.line-decoration_removed:after{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='4'%20height='18'%20viewBox='0%200%204%2018'%20fill='%23F23645'%3e%3cpath%20d='M3.7%208.11a.5.5%200%200%201%200%20.67L.89%2012a.5.5%200%200%201-.88-.33V5.3a.5.5%200%200%201%20.87-.33L3.7%208.1Z'/%3e%3c/svg%3e") 50% no-repeat;background-size:5px 20px;content:"";height:10px;left:-4px;position:absolute;top:-3px;transform:scale(-1);width:10px}.vs-dark .content-popup{background-color:#1e222d}.content-popup{position:relative;border-bottom:1px solid;display:flex;flex-direction:column;height:100%;-webkit-user-select:none;user-select:none;background-color:#fff}.header-popup{align-items:center;position:relative;z-index:1;border-left:0;border-right:0;display:flex;height:22px;justify-content:space-between;margin-top:5px;border-bottom:1px solid #fff;border-top:1px solid #fff;background-color:#fff}.title-popup{font-size:13px;font-weight:400;line-height:18px;margin-left:27px}.actions-popup{align-items:center;display:flex}.button-popup{height:24px;cursor:pointer;justify-content:center;width:24px;display:flex;padding:0 5px;align-items:center;box-sizing:border-box;transition:background-color 60ms ease,opacity 60ms ease,color 60ms ease}.icon-popup{display:flex}.triangle-popup{position:absolute;left:55px;margin-top:1px;height:8px;z-index:0;transform:rotate(-45deg);width:8px}.triangle-modified-popup{background-color:#2962ff}.vs-dark .header-modified-popup{background-color:#1e222d}.header-modified-popup{background-color:#e3effd;border-color:#2962ff}.content-modified-popup{border-bottom-color:#2962ff}.triangle-added-popup{background-color:#089950}.vs-dark .header-added-popup{background-color:#1a3326}.header-added-popup{background-color:#daf2e6;border-color:#089950}.content-added-popup{border-bottom-color:#089950}.triangle-removed-popup{background-color:#f23645}.vs-dark .header-removed-popup{background-color:#331f20}.header-removed-popup{background-color:#ffebec;border-color:#f23645}.content-removed-popup{border-bottom-color:#f23645}.tvue-script .monaco-editor.vs-dark .quick-input-widget{background:#1e222d!important}.tvue-script .monaco-editor .monaco-inputbox:focus-within,.tvue-script .monaco-editor.vs-dark .monaco-inputbox:focus-within{border-color:#2962ff}.tvue-script .monaco-editor .quick-input-widget .monaco-inputbox{background-color:unset!important;border:unset!important}.tvue-script .monaco-editor .quick-input-widget .input:active,.tvue-script .monaco-editor .quick-input-widget .input:focus{border:2px solid #2962ff}.tvue-script .monaco-editor.vs-dark .quick-input-widget .input{background-color:#1e222d!important;color:#d1d4dc!important}.tvue-script .monaco-editor .monaco-inputbox .input{font-size:14px;line-height:18px;outline:none}.tvue-script .monaco-editor .quick-input-widget .input{background-color:#fff!important;border:1px solid #d1d4dc;border-radius:6px;color:#131722!important;height:28px;padding-bottom:5px}.tvue-script .monaco-editor .overflow-guard{overflow:hidden!important}section{display:block!important}.tvue-script .monaco-editor .find-widget .codicon.toggle:before{content:"";font-size:15px;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled{height:80px!important}.tvue-script .monaco-editor .find-widget{border-bottom-left-radius:6px;border-bottom-right-radius:6px;height:44px!important;width:450px!important;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled .find-part,.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-left:17px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded{height:77px}.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .codicon.toggle{border-radius:4px;cursor:default;height:41px;left:2px;top:2px}.tvue-script .monaco-editor .find-widget .monaco-sash{display:none}.tvue-script .monaco-editor .find-widget .find-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .monaco-findInput{width:255px}.tvue-script .monaco-editor .monaco-scrollable-element{--vscode-scrollbarSlider-background: #64646466;margin-bottom:-2px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#1e222d!important}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{border-color:#50535e!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#fff!important;border-color:#d1d4dc!important;border-radius:6px;height:28px}.tvue-script .monaco-editor.vs-dark .monaco-inputbox,.tvue-script .monaco-editor.vs-dark .monaco-inputbox.idle{border:2px solid #50535e}.tvue-script .monaco-editor .monaco-inputbox,.tvue-script .monaco-editor .monaco-inputbox.idle{border:2px solid #a3a6af;border-radius:4px;overflow:hidden}.tvue-script .monaco-editor .find-widget .button{box-sizing:content-box}.tvue-script .monaco-editor .find-widget>.button.codicon-widget-close{top:10px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded:before{transform:rotate(180deg)}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle .ibwrapper>textarea.input{padding-top:4px}.tvue-script .monaco-editor .monaco-inputbox .input{line-height:18px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important;outline-color:#0000}.tvue-script .monaco-editor .monaco-inputbox:focus-within{border-color:#2962ff}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#1e222d!important}.context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#fff!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#131722!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item{border-radius:0;height:32px;margin:0}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#2a2e39!important;color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#f0f3fa!important;color:#131722!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #434651!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #e0e3eb!important;margin-left:0!important;margin-right:0!important;opacity:1}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#5d606b}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#9598a1}.monaco-menu{max-height:calc(100vh - 35px)!important}.vs-dark.manual-warpper{color:#d1d4dc}.manual-warpper{display:flex;height:100%;text-align:left;color:#131722}.vs-dark .manual-left{border-right-color:#434651}.manual-left{border-right:1px solid #e0e3eb;display:flex;flex:0 0 240px;flex-direction:column;height:100%}.manual-right{flex:1;height:100%;overflow-y:auto;-webkit-user-select:text;user-select:text}.vs-dark .manual-search{border-bottom-color:#434651}.manual-search{display:flex;align-items:center;flex:0 0 47px;padding-left:16.5px;border-bottom:1px solid #e0e3eb}.manual-search-icon{height:18px;font-size:14px;opacity:.8;pointer-events:none;transition:opacity .35s ease}.manual-search-icon svg{fill:#a3a6af}.manual-search-input{background-color:transparent;color:inherit;height:29px;width:146px;margin-left:5px;border:none;outline:none}.vs-dark .manual-search-clear svg{fill:#d1d4dc}.manual-search-clear svg{fill:#434651}.manual-search-clear{cursor:pointer;opacity:.5;text-align:center;transition:opacity .35s ease;width:36px;font-size:14px}.manual-search-clear:hover{opacity:1;transition-duration:60ms}.manual-group-list{display:flex;flex:1 1 100%;flex-direction:column;overflow-y:auto;text-align:left}.manual-group-search-list{flex:1 1 100%;overflow-y:auto;text-align:left}.vs-dark .manual-content-separator{background-color:#363a45}.manual-content-separator{background-color:#e0e3eb;height:1px}.vs-dark .manual-group-title{color:#d1d4dc;border-bottom-color:#434651}.manual-group-title{box-sizing:border-box;color:#434651;cursor:default;display:block;flex:0 0 auto;font-size:14px;font-weight:700;margin:0;padding:12px;border-bottom:1px solid #e0e3eb;-webkit-user-select:none;user-select:none}.vs-dark .manual-group-title.active{background-color:#2a2e39;border-top-color:#2a2e39;color:#d1d4dc}.manual-group-title.active{background-color:#e3effd;border-top-color:#e3effd;color:#131722}.vs-dark .manual-group-body{border-bottom-color:#434651}.manual-group-body{display:block;flex:1 1 auto;pointer-events:auto;-webkit-user-select:text;user-select:text;overflow-x:hidden;overflow-y:auto;transform:translateZ(0);border-bottom:1px solid #e0e3eb}.manual-group-body.hide,.manual-search-clear.hide,.manual-group-list.hide,.manual-group-search-list.hide{display:none}.vs-dark .manual-group-body-item{color:#b2b5be}.manual-group-body-item{box-sizing:border-box;color:#5d606b;cursor:default;display:block;font-size:14px;letter-spacing:.3px;line-height:24px;padding:2px 8px 2px 12px;position:relative;transition:none;word-break:break-all;text-decoration:none}.vs-dark .manual-group-body-item-selected{fill:#2962ff;color:#2962ff}.manual-group-body-item-selected{color:#2962ff;fill:#2962ff}.manual-group-body-item-selected:before{background-color:#2962ff;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.manual-content-wrapper{box-sizing:border-box;padding:30px 25px 25px;position:relative}.manual-content-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:2px}.vs-dark .manual-content-header-overloads{background-color:#2a2e39}.manual-content-header-overloads{background-color:#e3effd;border-radius:8px;display:inline-block;height:auto;margin-left:6px;padding:4px 8px;vertical-align:top}.vs-dark .manual-content-header-title{color:#d1d4dc}.manual-content-header-title{font-size:18px;line-height:26px;color:#131722;font-weight:700;display:inline-block;margin:0}.vs-dark .manual-content-btn{color:#d1d4dc}.manual-content-btn{align-items:center;background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;cursor:default;display:flex;height:34px;justify-content:center;margin:0;padding:0;width:34px}.vs-dark .manual-content-btn:hover{background-color:#2a2e39}.manual-content-btn:hover{background-color:#f0f3fa}.vs-dark .manual-content-args-label{color:#d1d4dc}.manual-content-args-label{color:#131722;font-weight:700}.vs-dark .manual-content-syntax{background-color:#2a2e39;color:#d1d4dc}.manual-content-syntax{background-color:#e3effd;border-radius:8px;color:#131722;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;overflow:hidden;transition:opacity .1s ease;white-space:pre-wrap;font-size:14px;line-height:21px;margin-top:8px;padding:24px;-webkit-user-select:none;user-select:none}.with-overloads{opacity:.6}.with-overloads:hover{opacity:.8}.with-overloads.selected{box-shadow:0 0 0 2px #2962ff;opacity:1}.vs-dark .manual-content-text{color:#d1d4dc}.manual-content-text{font-size:14px;line-height:21px;color:#131722;margin-top:8px}.vs-dark .manual-content-text-link{fill:#5b9cf6;color:#5b9cf6}.vs-dark .manual-content-text-link:hover{fill:#3179f5;color:#3179f5}.manual-content-text-link{color:#2962ff;fill:#2962ff}.manual-content-text-link:hover{color:#1e53e5;fill:#1e53e5}.vs-dark .manual-content-text code{background-color:#2a2e39}.manual-content-text code{background-color:#e0e3eb;border-radius:3px;padding:0 .4em}.vs-dark .manual-content-sub-title{color:#868993}.manual-content-sub-title{color:#6a6d78;font-size:11px;letter-spacing:.4px;line-height:16px;margin-top:24px;text-transform:uppercase}.manual-content-example-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.vs-dark .manual-content-example-copy{color:#868993}.manual-content-example-copy{color:#6a6d78}.vs-dark .manual-content-example{background-color:#2a2e39}.manual-content-example{background-color:#e3effd;border-radius:8px;box-shadow:none;margin-top:0;overflow:hidden}.manual-content-example code{display:block;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:13px;line-height:18px;overflow-x:auto;padding:24px}.manual-content-see_also{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;-webkit-user-select:none;user-select:none}.vs-dark .manual-content-see_also-tag{background-color:#1e222d;color:#d1d4dc}.vs-dark .manual-content-see_also-tag:hover{background-color:#363a45}.manual-content-see_also-tag{background-color:#f8f9fd;border-radius:3px;color:#131722;cursor:default;font-size:14px;line-height:21px;margin:0;padding:6px 8px}.manual-content-see_also-tag:hover{background-color:#f0f3fa}.manual-scroll::-webkit-scrollbar{height:5px;width:5px}.manual-scroll::-webkit-scrollbar-corner{display:none}.vs-dark .manual-scroll::-webkit-scrollbar-thumb,.vs-dark code::-webkit-scrollbar-thumb{background-color:#363a45}.manual-scroll::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#9598a1;border:1px solid #0000;border-radius:3px}.manual-scroll::-webkit-scrollbar-track{background-color:initial;border-radius:3px}[data-tooltip]{position:relative;text-transform:none}[data-tooltip]:before,[data-tooltip]:after{position:absolute;opacity:0;z-index:1000;pointer-events:none;transition:.2s}[data-tooltip]:before{content:"";border:5px solid transparent;border-top-color:#2a2e39;-webkit-transform:translateX(-50%);transform:translate(-50%);bottom:100%;left:50%;margin-bottom:-5px}[data-tooltip]:after{content:attr(data-tooltip);background:#2a2e39;font:12px Microsoft YaHei;color:#fff;padding:4px 8px;border-radius:2px;box-shadow:3px 3px 6px #0000004d;bottom:100%;width:max-content;left:50%;transform:translate(-50%);margin-bottom:5px}[data-tooltip]:hover:before,[data-tooltip]:hover:after{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}[data-tooltip=""]:before,[data-tooltip=""]:after{display:none!important}.vs-dark ::selection{background:#143a87}::selection{background:#bbd9fb}`)),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
2
  (function(C,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("monaco-editor"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","monaco-editor","react-dom"],M):(C=typeof globalThis<"u"?globalThis:C||self,M(C.vueEditor={},C.react,C["monaco-editor"],C["react-dom"]))})(this,function(C,M,qe,au){"use strict";var Mi=document.createElement("style");Mi.textContent=`.line-decoration_modified,.line-decoration_added,.line-decoration_removed{left:auto!important;right:20px;transform:scale(-1);width:4px!important}.line-modified:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background-image:linear-gradient(-45deg,#2962ff 25%,#0000 0,#0000 50%,#2962ff 0,#2962ff 75%,#0000 0,#0000);background-size:3px 3px}.line-added:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background:#089950}.modified-in-monaco-diff-editor .line-modified:before,.modified-in-monaco-diff-editor .line-added:before,.modified-in-monaco-diff-editor .line-decoration_removed:after{background:none}.line-modified:hover:before,.line-added:hover:before,.line-decoration_removed:hover:before{width:5px}.line-decoration_removed:hover:before{background-color:#f23645}.line-decoration_removed:hover:after{background:none}.line-decoration_removed:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1}.line-decoration_removed:after{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='4'%20height='18'%20viewBox='0%200%204%2018'%20fill='%23F23645'%3e%3cpath%20d='M3.7%208.11a.5.5%200%200%201%200%20.67L.89%2012a.5.5%200%200%201-.88-.33V5.3a.5.5%200%200%201%20.87-.33L3.7%208.1Z'/%3e%3c/svg%3e") 50% no-repeat;background-size:5px 20px;content:"";height:10px;left:-4px;position:absolute;top:-3px;transform:scale(-1);width:10px}.vs-dark .content-popup{background-color:#1e222d}.content-popup{position:relative;border-bottom:1px solid;display:flex;flex-direction:column;height:100%;-webkit-user-select:none;user-select:none;background-color:#fff}.header-popup{align-items:center;position:relative;z-index:1;border-left:0;border-right:0;display:flex;height:22px;justify-content:space-between;margin-top:5px;border-bottom:1px solid #fff;border-top:1px solid #fff;background-color:#fff}.title-popup{font-size:13px;font-weight:400;line-height:18px;margin-left:27px}.actions-popup{align-items:center;display:flex}.button-popup{height:24px;cursor:pointer;justify-content:center;width:24px;display:flex;padding:0 5px;align-items:center;box-sizing:border-box;transition:background-color 60ms ease,opacity 60ms ease,color 60ms ease}.icon-popup{display:flex}.triangle-popup{position:absolute;left:55px;margin-top:1px;height:8px;z-index:0;transform:rotate(-45deg);width:8px}.triangle-modified-popup{background-color:#2962ff}.vs-dark .header-modified-popup{background-color:#1e222d}.header-modified-popup{background-color:#e3effd;border-color:#2962ff}.content-modified-popup{border-bottom-color:#2962ff}.triangle-added-popup{background-color:#089950}.vs-dark .header-added-popup{background-color:#1a3326}.header-added-popup{background-color:#daf2e6;border-color:#089950}.content-added-popup{border-bottom-color:#089950}.triangle-removed-popup{background-color:#f23645}.vs-dark .header-removed-popup{background-color:#331f20}.header-removed-popup{background-color:#ffebec;border-color:#f23645}.content-removed-popup{border-bottom-color:#f23645}.tvue-script .monaco-editor.vs-dark .quick-input-widget{background:#1e222d!important}.tvue-script .monaco-editor .monaco-inputbox:focus-within,.tvue-script .monaco-editor.vs-dark .monaco-inputbox:focus-within{border-color:#2962ff}.tvue-script .monaco-editor .quick-input-widget .monaco-inputbox{background-color:unset!important;border:unset!important}.tvue-script .monaco-editor .quick-input-widget .input:active,.tvue-script .monaco-editor .quick-input-widget .input:focus{border:2px solid #2962ff}.tvue-script .monaco-editor.vs-dark .quick-input-widget .input{background-color:#1e222d!important;color:#d1d4dc!important}.tvue-script .monaco-editor .monaco-inputbox .input{font-size:14px;line-height:18px;outline:none}.tvue-script .monaco-editor .quick-input-widget .input{background-color:#fff!important;border:1px solid #d1d4dc;border-radius:6px;color:#131722!important;height:28px;padding-bottom:5px}.tvue-script .monaco-editor .overflow-guard{overflow:hidden!important}section{display:block!important}.tvue-script .monaco-editor .find-widget .codicon.toggle:before{content:"";font-size:15px;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled{height:80px!important}.tvue-script .monaco-editor .find-widget{border-bottom-left-radius:6px;border-bottom-right-radius:6px;height:44px!important;width:450px!important;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled .find-part,.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-left:17px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded{height:77px}.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .codicon.toggle{border-radius:4px;cursor:default;height:41px;left:2px;top:2px}.tvue-script .monaco-editor .find-widget .monaco-sash{display:none}.tvue-script .monaco-editor .find-widget .find-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .monaco-findInput{width:255px}.tvue-script .monaco-editor .monaco-scrollable-element{--vscode-scrollbarSlider-background: #64646466;margin-bottom:-2px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#1e222d!important}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{border-color:#50535e!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#fff!important;border-color:#d1d4dc!important;border-radius:6px;height:28px}.tvue-script .monaco-editor.vs-dark .monaco-inputbox,.tvue-script .monaco-editor.vs-dark .monaco-inputbox.idle{border:2px solid #50535e}.tvue-script .monaco-editor .monaco-inputbox,.tvue-script .monaco-editor .monaco-inputbox.idle{border:2px solid #a3a6af;border-radius:4px;overflow:hidden}.tvue-script .monaco-editor .find-widget .button{box-sizing:content-box}.tvue-script .monaco-editor .find-widget>.button.codicon-widget-close{top:10px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded:before{transform:rotate(180deg)}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle .ibwrapper>textarea.input{padding-top:4px}.tvue-script .monaco-editor .monaco-inputbox .input{line-height:18px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important;outline-color:#0000}.tvue-script .monaco-editor .monaco-inputbox:focus-within{border-color:#2962ff}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#1e222d!important}.context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#fff!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#131722!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item{border-radius:0;height:32px;margin:0}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#2a2e39!important;color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#f0f3fa!important;color:#131722!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #434651!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #e0e3eb!important;margin-left:0!important;margin-right:0!important;opacity:1}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#5d606b}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#9598a1}.monaco-menu{max-height:calc(100vh - 35px)!important}.vs-dark.manual-warpper{color:#d1d4dc}.manual-warpper{display:flex;height:100%;text-align:left;color:#131722}.vs-dark .manual-left{border-right-color:#434651}.manual-left{border-right:1px solid #e0e3eb;display:flex;flex:0 0 240px;flex-direction:column;height:100%}.manual-right{flex:1;height:100%;overflow-y:auto;-webkit-user-select:text;user-select:text}.vs-dark .manual-search{border-bottom-color:#434651}.manual-search{display:flex;align-items:center;flex:0 0 47px;padding-left:16.5px;border-bottom:1px solid #e0e3eb}.manual-search-icon{height:18px;font-size:14px;opacity:.8;pointer-events:none;transition:opacity .35s ease}.manual-search-icon svg{fill:#a3a6af}.manual-search-input{background-color:transparent;color:inherit;height:29px;width:146px;margin-left:5px;border:none;outline:none}.vs-dark .manual-search-clear svg{fill:#d1d4dc}.manual-search-clear svg{fill:#434651}.manual-search-clear{cursor:pointer;opacity:.5;text-align:center;transition:opacity .35s ease;width:36px;font-size:14px}.manual-search-clear:hover{opacity:1;transition-duration:60ms}.manual-group-list{display:flex;flex:1 1 100%;flex-direction:column;overflow-y:auto;text-align:left}.manual-group-search-list{flex:1 1 100%;overflow-y:auto;text-align:left}.vs-dark .manual-content-separator{background-color:#363a45}.manual-content-separator{background-color:#e0e3eb;height:1px}.vs-dark .manual-group-title{color:#d1d4dc;border-bottom-color:#434651}.manual-group-title{box-sizing:border-box;color:#434651;cursor:default;display:block;flex:0 0 auto;font-size:14px;font-weight:700;margin:0;padding:12px;border-bottom:1px solid #e0e3eb;-webkit-user-select:none;user-select:none}.vs-dark .manual-group-title.active{background-color:#2a2e39;border-top-color:#2a2e39;color:#d1d4dc}.manual-group-title.active{background-color:#e3effd;border-top-color:#e3effd;color:#131722}.vs-dark .manual-group-body{border-bottom-color:#434651}.manual-group-body{display:block;flex:1 1 auto;pointer-events:auto;-webkit-user-select:text;user-select:text;overflow-x:hidden;overflow-y:auto;transform:translateZ(0);border-bottom:1px solid #e0e3eb}.manual-group-body.hide,.manual-search-clear.hide,.manual-group-list.hide,.manual-group-search-list.hide{display:none}.vs-dark .manual-group-body-item{color:#b2b5be}.manual-group-body-item{box-sizing:border-box;color:#5d606b;cursor:default;display:block;font-size:14px;letter-spacing:.3px;line-height:24px;padding:2px 8px 2px 12px;position:relative;transition:none;word-break:break-all;text-decoration:none}.vs-dark .manual-group-body-item-selected{fill:#2962ff;color:#2962ff}.manual-group-body-item-selected{color:#2962ff;fill:#2962ff}.manual-group-body-item-selected:before{background-color:#2962ff;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.manual-content-wrapper{box-sizing:border-box;padding:30px 25px 25px;position:relative}.manual-content-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:2px}.vs-dark .manual-content-header-overloads{background-color:#2a2e39}.manual-content-header-overloads{background-color:#e3effd;border-radius:8px;display:inline-block;height:auto;margin-left:6px;padding:4px 8px;vertical-align:top}.vs-dark .manual-content-header-title{color:#d1d4dc}.manual-content-header-title{font-size:18px;line-height:26px;color:#131722;font-weight:700;display:inline-block;margin:0}.vs-dark .manual-content-btn{color:#d1d4dc}.manual-content-btn{align-items:center;background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;cursor:default;display:flex;height:34px;justify-content:center;margin:0;padding:0;width:34px}.vs-dark .manual-content-btn:hover{background-color:#2a2e39}.manual-content-btn:hover{background-color:#f0f3fa}.vs-dark .manual-content-args-label{color:#d1d4dc}.manual-content-args-label{color:#131722;font-weight:700}.vs-dark .manual-content-syntax{background-color:#2a2e39;color:#d1d4dc}.manual-content-syntax{background-color:#e3effd;border-radius:8px;color:#131722;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;overflow:hidden;transition:opacity .1s ease;white-space:pre-wrap;font-size:14px;line-height:21px;margin-top:8px;padding:24px;-webkit-user-select:none;user-select:none}.with-overloads{opacity:.6}.with-overloads:hover{opacity:.8}.with-overloads.selected{box-shadow:0 0 0 2px #2962ff;opacity:1}.vs-dark .manual-content-text{color:#d1d4dc}.manual-content-text{font-size:14px;line-height:21px;color:#131722;margin-top:8px}.vs-dark .manual-content-text-link{fill:#5b9cf6;color:#5b9cf6}.vs-dark .manual-content-text-link:hover{fill:#3179f5;color:#3179f5}.manual-content-text-link{color:#2962ff;fill:#2962ff}.manual-content-text-link:hover{color:#1e53e5;fill:#1e53e5}.vs-dark .manual-content-text code{background-color:#2a2e39}.manual-content-text code{background-color:#e0e3eb;border-radius:3px;padding:0 .4em}.vs-dark .manual-content-sub-title{color:#868993}.manual-content-sub-title{color:#6a6d78;font-size:11px;letter-spacing:.4px;line-height:16px;margin-top:24px;text-transform:uppercase}.manual-content-example-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.vs-dark .manual-content-example-copy{color:#868993}.manual-content-example-copy{color:#6a6d78}.vs-dark .manual-content-example{background-color:#2a2e39}.manual-content-example{background-color:#e3effd;border-radius:8px;box-shadow:none;margin-top:0;overflow:hidden}.manual-content-example code{display:block;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:13px;line-height:18px;overflow-x:auto;padding:24px}.manual-content-see_also{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;-webkit-user-select:none;user-select:none}.vs-dark .manual-content-see_also-tag{background-color:#1e222d;color:#d1d4dc}.vs-dark .manual-content-see_also-tag:hover{background-color:#363a45}.manual-content-see_also-tag{background-color:#f8f9fd;border-radius:3px;color:#131722;cursor:default;font-size:14px;line-height:21px;margin:0;padding:6px 8px}.manual-content-see_also-tag:hover{background-color:#f0f3fa}.manual-scroll::-webkit-scrollbar{height:5px;width:5px}.manual-scroll::-webkit-scrollbar-corner{display:none}.vs-dark .manual-scroll::-webkit-scrollbar-thumb,.vs-dark code::-webkit-scrollbar-thumb{background-color:#363a45}.manual-scroll::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#9598a1;border:1px solid #0000;border-radius:3px}.manual-scroll::-webkit-scrollbar-track{background-color:initial;border-radius:3px}[data-tooltip]{position:relative;text-transform:none}[data-tooltip]:before,[data-tooltip]:after{position:absolute;opacity:0;z-index:1000;pointer-events:none;transition:.2s}[data-tooltip]:before{content:"";border:5px solid transparent;border-top-color:#2a2e39;-webkit-transform:translateX(-50%);transform:translate(-50%);bottom:100%;left:50%;margin-bottom:-5px}[data-tooltip]:after{content:attr(data-tooltip);background:#2a2e39;font:12px Microsoft YaHei;color:#fff;padding:4px 8px;border-radius:2px;box-shadow:3px 3px 6px #0000004d;bottom:100%;width:max-content;left:50%;transform:translate(-50%);margin-bottom:5px}[data-tooltip]:hover:before,[data-tooltip]:hover:after{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}[data-tooltip=""]:before,[data-tooltip=""]:after{display:none!important}.vs-dark ::selection{background:#143a87}::selection{background:#bbd9fb}
3
- `,document.head.appendChild(Mi);var ja=typeof document<"u"?document.currentScript:null;function su(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:()=>s[a]})}}return n.default=s,Object.freeze(n)}const nu=su(qe);var Fi;(function(s){s.Comment="comment",s.Text="text",s.String="string",s.Paren="paren",s.StringInvalid="string.invalid",s.ConstantNumericInteger="constant.numeric.integer",s.ConstantNumericFloat="constant.numeric.float",s.ConstantLanguage="constant.language",s.ConstantLanguageBoolean="constant.other.boolean",s.ConstantOtherColor="constant.other.color",s.SupportVariable="support.variable",s.SupportType="support.type",s.Keyword="keyword",s.KeywordEquals="keyword.equals",s.KeywordOperator="keyword.operator",s.CustomType="entity.name.type",s.VariableOther="variable.other",s.Property="variable.other.property",s.SupportFunction="support.function",s.SupportMethod="support.method",s.ImportedFunction="meta.function-call",s.Function="entity.name.function",s.ImportName="entity.name.module",s.ImportAlias="entity.name.module.name",s.ExtensionMethod="entity.name.method",s.Annotation="comment.annotation",s.PunctuationOperator="punctuation.operator",s.Empty="empty",s.Source="source"})(Fi||(Fi={}));var _t;(function(s){s.Type="type",s.Returns="Returns",s.Syntax="Syntax",s.Remarks="Remarks",s.Fields="Fields",s.Description="Description",s.Example="Example"})(_t||(_t={})),C.Actions=void 0,function(s){s.Save="save",s.Find="find",s.TriggerConsole="trigger.console"}(C.Actions||(C.Actions={}));var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function iu(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Zs={exports:{}},aa={};/**
3
+ `,document.head.appendChild(Mi);var ja=typeof document<"u"?document.currentScript:null;function su(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:()=>s[a]})}}return n.default=s,Object.freeze(n)}const nu=su(qe);var Fi;(function(s){s.Comment="comment",s.Text="text",s.String="string",s.Paren="paren",s.StringInvalid="string.invalid",s.ConstantNumericInteger="constant.numeric.integer",s.ConstantNumericFloat="constant.numeric.float",s.ConstantLanguage="constant.language",s.ConstantLanguageBoolean="constant.other.boolean",s.ConstantOtherColor="constant.other.color",s.SupportVariable="support.variable",s.SupportType="support.type",s.Keyword="keyword",s.KeywordEquals="keyword.equals",s.KeywordOperator="keyword.operator",s.CustomType="entity.name.type",s.VariableOther="variable.other",s.Property="variable.other.property",s.SupportFunction="support.function",s.SupportMethod="support.method",s.ImportedFunction="meta.function-call",s.Function="entity.name.function",s.ImportName="entity.name.module",s.ImportAlias="entity.name.module.name",s.ExtensionMethod="entity.name.method",s.Annotation="comment.annotation",s.PunctuationOperator="punctuation.operator",s.Empty="empty",s.Source="source"})(Fi||(Fi={}));var _t;(function(s){s.Type="type",s.Returns="Returns",s.Syntax="Syntax",s.Remarks="Remarks",s.Fields="Fields",s.Description="Description",s.Example="Example"})(_t||(_t={})),C.Actions=void 0,function(s){s.Save="save",s.Find="find",s.TriggerConsole="trigger.console"}(C.Actions||(C.Actions={}));var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function iu(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Js={exports:{}},aa={};/**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
6
6
  *
@@ -16,17 +16,17 @@
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 Bi;function lu(){return Bi||(Bi=1,process.env.NODE_ENV!=="production"&&function(){var s=M,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),h=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),j=Symbol.iterator,E="@@iterator";function V(y){if(y===null||typeof y!="object")return null;var O=j&&y[j]||y[E];return typeof O=="function"?O:null}var J=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function G(y){{for(var O=arguments.length,U=new Array(O>1?O-1:0),ee=1;ee<O;ee++)U[ee-1]=arguments[ee];F("error",y,U)}}function F(y,O,U){{var ee=J.ReactDebugCurrentFrame,ye=ee.getStackAddendum();ye!==""&&(O+="%s",U=U.concat([ye]));var ge=U.map(function(pe){return String(pe)});ge.unshift("Warning: "+O),Function.prototype.apply.call(console[y],console,ge)}}var A=!1,k=!1,B=!1,H=!1,le=!1,ie;ie=Symbol.for("react.module.reference");function ce(y){return!!(typeof y=="string"||typeof y=="function"||y===o||y===c||le||y===u||y===g||y===x||H||y===L||A||k||B||typeof y=="object"&&y!==null&&(y.$$typeof===R||y.$$typeof===T||y.$$typeof===m||y.$$typeof===h||y.$$typeof===b||y.$$typeof===ie||y.getModuleId!==void 0))}function bt(y,O,U){var ee=y.displayName;if(ee)return ee;var ye=O.displayName||O.name||"";return ye!==""?U+"("+ye+")":U}function zt(y){return y.displayName||"Context"}function Me(y){if(y==null)return null;if(typeof y.tag=="number"&&G("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 o:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case x:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case h:var O=y;return zt(O)+".Consumer";case m:var U=y;return zt(U._context)+".Provider";case b:return bt(y,y.render,"ForwardRef");case T:var ee=y.displayName||null;return ee!==null?ee:Me(y.type)||"Memo";case R:{var ye=y,ge=ye._payload,pe=ye._init;try{return Me(pe(ge))}catch{return null}}}return null}var Fe=Object.assign,Y=0,he,Oe,Le,lt,je,te,Te;function We(){}We.__reactDisabledLog=!0;function Ht(){{if(Y===0){he=console.log,Oe=console.info,Le=console.warn,lt=console.error,je=console.group,te=console.groupCollapsed,Te=console.groupEnd;var y={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}Y++}}function Qe(){{if(Y--,Y===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fe({},y,{value:he}),info:Fe({},y,{value:Oe}),warn:Fe({},y,{value:Le}),error:Fe({},y,{value:lt}),group:Fe({},y,{value:je}),groupCollapsed:Fe({},y,{value:te}),groupEnd:Fe({},y,{value:Te})})}Y<0&&G("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var nr=J.ReactCurrentDispatcher,ma;function Ft(y,O,U){{if(ma===void 0)try{throw Error()}catch(ye){var ee=ye.stack.trim().match(/\n( *(at )?)/);ma=ee&&ee[1]||""}return`
19
+ */var Bi;function lu(){return Bi||(Bi=1,process.env.NODE_ENV!=="production"&&function(){var s=M,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),h=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),j=Symbol.iterator,E="@@iterator";function V(y){if(y===null||typeof y!="object")return null;var O=j&&y[j]||y[E];return typeof O=="function"?O:null}var Z=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function G(y){{for(var O=arguments.length,U=new Array(O>1?O-1:0),ee=1;ee<O;ee++)U[ee-1]=arguments[ee];F("error",y,U)}}function F(y,O,U){{var ee=Z.ReactDebugCurrentFrame,ye=ee.getStackAddendum();ye!==""&&(O+="%s",U=U.concat([ye]));var ge=U.map(function(pe){return String(pe)});ge.unshift("Warning: "+O),Function.prototype.apply.call(console[y],console,ge)}}var A=!1,k=!1,B=!1,H=!1,le=!1,ie;ie=Symbol.for("react.module.reference");function ce(y){return!!(typeof y=="string"||typeof y=="function"||y===o||y===c||le||y===u||y===g||y===x||H||y===L||A||k||B||typeof y=="object"&&y!==null&&(y.$$typeof===R||y.$$typeof===T||y.$$typeof===m||y.$$typeof===h||y.$$typeof===b||y.$$typeof===ie||y.getModuleId!==void 0))}function bt(y,O,U){var ee=y.displayName;if(ee)return ee;var ye=O.displayName||O.name||"";return ye!==""?U+"("+ye+")":U}function xt(y){return y.displayName||"Context"}function Me(y){if(y==null)return null;if(typeof y.tag=="number"&&G("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 o:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case x:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case h:var O=y;return xt(O)+".Consumer";case m:var U=y;return xt(U._context)+".Provider";case b:return bt(y,y.render,"ForwardRef");case T:var ee=y.displayName||null;return ee!==null?ee:Me(y.type)||"Memo";case R:{var ye=y,ge=ye._payload,pe=ye._init;try{return Me(pe(ge))}catch{return null}}}return null}var Fe=Object.assign,Y=0,he,Oe,Le,lt,je,te,Te;function We(){}We.__reactDisabledLog=!0;function Ht(){{if(Y===0){he=console.log,Oe=console.info,Le=console.warn,lt=console.error,je=console.group,te=console.groupCollapsed,Te=console.groupEnd;var y={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}Y++}}function Qe(){{if(Y--,Y===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fe({},y,{value:he}),info:Fe({},y,{value:Oe}),warn:Fe({},y,{value:Le}),error:Fe({},y,{value:lt}),group:Fe({},y,{value:je}),groupCollapsed:Fe({},y,{value:te}),groupEnd:Fe({},y,{value:Te})})}Y<0&&G("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var nr=Z.ReactCurrentDispatcher,ma;function Ft(y,O,U){{if(ma===void 0)try{throw Error()}catch(ye){var ee=ye.stack.trim().match(/\n( *(at )?)/);ma=ee&&ee[1]||""}return`
20
20
  `+ma+y}}var $t=!1,Pr;{var Er=typeof WeakMap=="function"?WeakMap:Map;Pr=new Er}function br(y,O){if(!y||$t)return"";{var U=Pr.get(y);if(U!==void 0)return U}var ee;$t=!0;var ye=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ge;ge=nr.current,nr.current=null,Ht();try{if(O){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(rt){ee=rt}Reflect.construct(y,[],pe)}else{try{pe.call()}catch(rt){ee=rt}y.call(pe.prototype)}}else{try{throw Error()}catch(rt){ee=rt}y()}}catch(rt){if(rt&&ee&&typeof rt.stack=="string"){for(var ue=rt.stack.split(`
21
21
  `),$e=ee.stack.split(`
22
22
  `),Ce=ue.length-1,ze=$e.length-1;Ce>=1&&ze>=0&&ue[Ce]!==$e[ze];)ze--;for(;Ce>=1&&ze>=0;Ce--,ze--)if(ue[Ce]!==$e[ze]){if(Ce!==1||ze!==1)do if(Ce--,ze--,ze<0||ue[Ce]!==$e[ze]){var tt=`
23
- `+ue[Ce].replace(" at new "," at ");return y.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",y.displayName)),typeof y=="function"&&Pr.set(y,tt),tt}while(Ce>=1&&ze>=0);break}}}finally{$t=!1,nr.current=ge,Qe(),Error.prepareStackTrace=ye}var Ot=y?y.displayName||y.name:"",ds=Ot?Ft(Ot):"";return typeof y=="function"&&Pr.set(y,ds),ds}function rs(y,O,U){return br(y,!1)}function ct(y){var O=y.prototype;return!!(O&&O.isReactComponent)}function jt(y,O,U){if(y==null)return"";if(typeof y=="function")return br(y,ct(y));if(typeof y=="string")return Ft(y);switch(y){case g:return Ft("Suspense");case x:return Ft("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case b:return rs(y.render);case T:return jt(y.type,O,U);case R:{var ee=y,ye=ee._payload,ge=ee._init;try{return jt(ge(ye),O,U)}catch{}}}return""}var Rr=Object.prototype.hasOwnProperty,xt={},fa=J.ReactDebugCurrentFrame;function Lr(y){if(y){var O=y._owner,U=jt(y.type,y._source,O?O.type:null);fa.setExtraStackFrame(U)}else fa.setExtraStackFrame(null)}function xr(y,O,U,ee,ye){{var ge=Function.call.bind(Rr);for(var pe in y)if(ge(y,pe)){var ue=void 0;try{if(typeof y[pe]!="function"){var $e=Error((ee||"React class")+": "+U+" type `"+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $e.name="Invariant Violation",$e}ue=y[pe](O,pe,ee,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ce){ue=Ce}ue&&!(ue instanceof Error)&&(Lr(ye),G("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ee||"React class",U,pe,typeof ue),Lr(null)),ue instanceof Error&&!(ue.message in xt)&&(xt[ue.message]=!0,Lr(ye),G("Failed %s type: %s",U,ue.message),Lr(null))}}}var ut=Array.isArray;function Xt(y){return ut(y)}function Mr(y){{var O=typeof Symbol=="function"&&Symbol.toStringTag,U=O&&y[Symbol.toStringTag]||y.constructor.name||"Object";return U}}function wn(y){try{return ir(y),!1}catch{return!0}}function ir(y){return""+y}function as(y){if(wn(y))return G("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mr(y)),ir(y)}var Nt=J.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Fr,jr,wr;wr={};function ya(y){if(Rr.call(y,"ref")){var O=Object.getOwnPropertyDescriptor(y,"ref").get;if(O&&O.isReactWarning)return!1}return y.ref!==void 0}function ha(y){if(Rr.call(y,"key")){var O=Object.getOwnPropertyDescriptor(y,"key").get;if(O&&O.isReactWarning)return!1}return y.key!==void 0}function _a(y,O){if(typeof y.ref=="string"&&Nt.current&&O&&Nt.current.stateNode!==O){var U=Me(Nt.current.type);wr[U]||(G('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Me(Nt.current.type),y.ref),wr[U]=!0)}}function ga(y,O){{var U=function(){Fr||(Fr=!0,G("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};U.isReactWarning=!0,Object.defineProperty(y,"key",{get:U,configurable:!0})}}function ba(y,O){{var U=function(){jr||(jr=!0,G("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};U.isReactWarning=!0,Object.defineProperty(y,"ref",{get:U,configurable:!0})}}var xa=function(y,O,U,ee,ye,ge,pe){var ue={$$typeof:n,type:y,key:O,ref:U,props:pe,_owner:ge};return ue._store={},Object.defineProperty(ue._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ue,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.defineProperty(ue,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.freeze&&(Object.freeze(ue.props),Object.freeze(ue)),ue};function vn(y,O,U,ee,ye){{var ge,pe={},ue=null,$e=null;U!==void 0&&(as(U),ue=""+U),ha(O)&&(as(O.key),ue=""+O.key),ya(O)&&($e=O.ref,_a(O,ye));for(ge in O)Rr.call(O,ge)&&!or.hasOwnProperty(ge)&&(pe[ge]=O[ge]);if(y&&y.defaultProps){var Ce=y.defaultProps;for(ge in Ce)pe[ge]===void 0&&(pe[ge]=Ce[ge])}if(ue||$e){var ze=typeof y=="function"?y.displayName||y.name||"Unknown":y;ue&&ga(pe,ze),$e&&ba(pe,ze)}return xa(y,ue,$e,ye,ee,Nt.current,pe)}}var wa=J.ReactCurrentOwner,ss=J.ReactDebugCurrentFrame;function Gt(y){if(y){var O=y._owner,U=jt(y.type,y._source,O?O.type:null);ss.setExtraStackFrame(U)}else ss.setExtraStackFrame(null)}var Br;Br=!1;function va(y){return typeof y=="object"&&y!==null&&y.$$typeof===n}function ns(){{if(wa.current){var y=Me(wa.current.type);if(y)return`
23
+ `+ue[Ce].replace(" at new "," at ");return y.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",y.displayName)),typeof y=="function"&&Pr.set(y,tt),tt}while(Ce>=1&&ze>=0);break}}}finally{$t=!1,nr.current=ge,Qe(),Error.prepareStackTrace=ye}var Ot=y?y.displayName||y.name:"",ds=Ot?Ft(Ot):"";return typeof y=="function"&&Pr.set(y,ds),ds}function rs(y,O,U){return br(y,!1)}function ct(y){var O=y.prototype;return!!(O&&O.isReactComponent)}function jt(y,O,U){if(y==null)return"";if(typeof y=="function")return br(y,ct(y));if(typeof y=="string")return Ft(y);switch(y){case g:return Ft("Suspense");case x:return Ft("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case b:return rs(y.render);case T:return jt(y.type,O,U);case R:{var ee=y,ye=ee._payload,ge=ee._init;try{return jt(ge(ye),O,U)}catch{}}}return""}var Rr=Object.prototype.hasOwnProperty,wt={},fa=Z.ReactDebugCurrentFrame;function Lr(y){if(y){var O=y._owner,U=jt(y.type,y._source,O?O.type:null);fa.setExtraStackFrame(U)}else fa.setExtraStackFrame(null)}function xr(y,O,U,ee,ye){{var ge=Function.call.bind(Rr);for(var pe in y)if(ge(y,pe)){var ue=void 0;try{if(typeof y[pe]!="function"){var $e=Error((ee||"React class")+": "+U+" type `"+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $e.name="Invariant Violation",$e}ue=y[pe](O,pe,ee,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ce){ue=Ce}ue&&!(ue instanceof Error)&&(Lr(ye),G("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ee||"React class",U,pe,typeof ue),Lr(null)),ue instanceof Error&&!(ue.message in wt)&&(wt[ue.message]=!0,Lr(ye),G("Failed %s type: %s",U,ue.message),Lr(null))}}}var ut=Array.isArray;function Xt(y){return ut(y)}function Mr(y){{var O=typeof Symbol=="function"&&Symbol.toStringTag,U=O&&y[Symbol.toStringTag]||y.constructor.name||"Object";return U}}function wn(y){try{return ir(y),!1}catch{return!0}}function ir(y){return""+y}function as(y){if(wn(y))return G("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mr(y)),ir(y)}var Nt=Z.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Fr,jr,wr;wr={};function ya(y){if(Rr.call(y,"ref")){var O=Object.getOwnPropertyDescriptor(y,"ref").get;if(O&&O.isReactWarning)return!1}return y.ref!==void 0}function ha(y){if(Rr.call(y,"key")){var O=Object.getOwnPropertyDescriptor(y,"key").get;if(O&&O.isReactWarning)return!1}return y.key!==void 0}function _a(y,O){if(typeof y.ref=="string"&&Nt.current&&O&&Nt.current.stateNode!==O){var U=Me(Nt.current.type);wr[U]||(G('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Me(Nt.current.type),y.ref),wr[U]=!0)}}function ga(y,O){{var U=function(){Fr||(Fr=!0,G("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};U.isReactWarning=!0,Object.defineProperty(y,"key",{get:U,configurable:!0})}}function ba(y,O){{var U=function(){jr||(jr=!0,G("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};U.isReactWarning=!0,Object.defineProperty(y,"ref",{get:U,configurable:!0})}}var xa=function(y,O,U,ee,ye,ge,pe){var ue={$$typeof:n,type:y,key:O,ref:U,props:pe,_owner:ge};return ue._store={},Object.defineProperty(ue._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ue,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.defineProperty(ue,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.freeze&&(Object.freeze(ue.props),Object.freeze(ue)),ue};function vn(y,O,U,ee,ye){{var ge,pe={},ue=null,$e=null;U!==void 0&&(as(U),ue=""+U),ha(O)&&(as(O.key),ue=""+O.key),ya(O)&&($e=O.ref,_a(O,ye));for(ge in O)Rr.call(O,ge)&&!or.hasOwnProperty(ge)&&(pe[ge]=O[ge]);if(y&&y.defaultProps){var Ce=y.defaultProps;for(ge in Ce)pe[ge]===void 0&&(pe[ge]=Ce[ge])}if(ue||$e){var ze=typeof y=="function"?y.displayName||y.name||"Unknown":y;ue&&ga(pe,ze),$e&&ba(pe,ze)}return xa(y,ue,$e,ye,ee,Nt.current,pe)}}var wa=Z.ReactCurrentOwner,ss=Z.ReactDebugCurrentFrame;function Gt(y){if(y){var O=y._owner,U=jt(y.type,y._source,O?O.type:null);ss.setExtraStackFrame(U)}else ss.setExtraStackFrame(null)}var Br;Br=!1;function va(y){return typeof y=="object"&&y!==null&&y.$$typeof===n}function ns(){{if(wa.current){var y=Me(wa.current.type);if(y)return`
24
24
 
25
25
  Check the render method of \``+y+"`."}return""}}function Tn(y){{if(y!==void 0){var O=y.fileName.replace(/^.*[\\\/]/,""),U=y.lineNumber;return`
26
26
 
27
27
  Check your code at `+O+":"+U+"."}return""}}var is={};function os(y){{var O=ns();if(!O){var U=typeof y=="string"?y:y.displayName||y.name;U&&(O=`
28
28
 
29
- Check the top-level render call using <`+U+">.")}return O}}function ls(y,O){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var U=os(O);if(is[U])return;is[U]=!0;var ee="";y&&y._owner&&y._owner!==wa.current&&(ee=" It was passed a child from "+Me(y._owner.type)+"."),Gt(y),G('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,ee),Gt(null)}}function cs(y,O){{if(typeof y!="object")return;if(Xt(y))for(var U=0;U<y.length;U++){var ee=y[U];va(ee)&&ls(ee,O)}else if(va(y))y._store&&(y._store.validated=!0);else if(y){var ye=V(y);if(typeof ye=="function"&&ye!==y.entries)for(var ge=ye.call(y),pe;!(pe=ge.next()).done;)va(pe.value)&&ls(pe.value,O)}}}function In(y){{var O=y.type;if(O==null||typeof O=="string")return;var U;if(typeof O=="function")U=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===b||O.$$typeof===T))U=O.propTypes;else return;if(U){var ee=Me(O);xr(U,y.props,"prop",ee,y)}else if(O.PropTypes!==void 0&&!Br){Br=!0;var ye=Me(O);G("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ye||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&G("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ta(y){{for(var O=Object.keys(y.props),U=0;U<O.length;U++){var ee=O[U];if(ee!=="children"&&ee!=="key"){Gt(y),G("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ee),Gt(null);break}}y.ref!==null&&(Gt(y),G("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function us(y,O,U,ee,ye,ge){{var pe=ce(y);if(!pe){var ue="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(ue+=" 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 $e=Tn(ye);$e?ue+=$e:ue+=ns();var Ce;y===null?Ce="null":Xt(y)?Ce="array":y!==void 0&&y.$$typeof===n?(Ce="<"+(Me(y.type)||"Unknown")+" />",ue=" Did you accidentally export a JSX literal instead of a component?"):Ce=typeof y,G("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ce,ue)}var ze=vn(y,O,U,ye,ge);if(ze==null)return ze;if(pe){var tt=O.children;if(tt!==void 0)if(ee)if(Xt(tt)){for(var Ot=0;Ot<tt.length;Ot++)cs(tt[Ot],y);Object.freeze&&Object.freeze(tt)}else G("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else cs(tt,y)}return y===o?Ta(ze):In(ze),ze}}function Ia(y,O,U){return us(y,O,U,!0)}function kn(y,O,U){return us(y,O,U,!1)}var Dn=kn,An=Ia;sa.Fragment=o,sa.jsx=Dn,sa.jsxs=An}()),sa}process.env.NODE_ENV==="production"?Zs.exports=ou():Zs.exports=lu();var P=Zs.exports;function cu(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}function Ui(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function Wi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Ui(Object(a),!0).forEach(function(o){cu(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Ui(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function uu(s,n){if(s==null)return{};var a={},o=Object.keys(s),u,c;for(c=0;c<o.length;c++)u=o[c],!(n.indexOf(u)>=0)&&(a[u]=s[u]);return a}function du(s,n){if(s==null)return{};var a=uu(s,n),o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(u=0;u<c.length;u++)o=c[u],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function pu(s,n){return mu(s)||fu(s,n)||yu(s,n)||hu()}function mu(s){if(Array.isArray(s))return s}function fu(s,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var a=[],o=!0,u=!1,c=void 0;try{for(var m=s[Symbol.iterator](),h;!(o=(h=m.next()).done)&&(a.push(h.value),!(n&&a.length===n));o=!0);}catch(b){u=!0,c=b}finally{try{!o&&m.return!=null&&m.return()}finally{if(u)throw c}}return a}}function yu(s,n){if(s){if(typeof s=="string")return Hi(s,n);var a=Object.prototype.toString.call(s).slice(8,-1);if(a==="Object"&&s.constructor&&(a=s.constructor.name),a==="Map"||a==="Set")return Array.from(s);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Hi(s,n)}}function Hi(s,n){(n==null||n>s.length)&&(n=s.length);for(var a=0,o=new Array(n);a<n;a++)o[a]=s[a];return o}function hu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
+ Check the top-level render call using <`+U+">.")}return O}}function ls(y,O){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var U=os(O);if(is[U])return;is[U]=!0;var ee="";y&&y._owner&&y._owner!==wa.current&&(ee=" It was passed a child from "+Me(y._owner.type)+"."),Gt(y),G('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,ee),Gt(null)}}function cs(y,O){{if(typeof y!="object")return;if(Xt(y))for(var U=0;U<y.length;U++){var ee=y[U];va(ee)&&ls(ee,O)}else if(va(y))y._store&&(y._store.validated=!0);else if(y){var ye=V(y);if(typeof ye=="function"&&ye!==y.entries)for(var ge=ye.call(y),pe;!(pe=ge.next()).done;)va(pe.value)&&ls(pe.value,O)}}}function In(y){{var O=y.type;if(O==null||typeof O=="string")return;var U;if(typeof O=="function")U=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===b||O.$$typeof===T))U=O.propTypes;else return;if(U){var ee=Me(O);xr(U,y.props,"prop",ee,y)}else if(O.PropTypes!==void 0&&!Br){Br=!0;var ye=Me(O);G("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ye||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&G("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ta(y){{for(var O=Object.keys(y.props),U=0;U<O.length;U++){var ee=O[U];if(ee!=="children"&&ee!=="key"){Gt(y),G("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ee),Gt(null);break}}y.ref!==null&&(Gt(y),G("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function us(y,O,U,ee,ye,ge){{var pe=ce(y);if(!pe){var ue="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(ue+=" 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 $e=Tn(ye);$e?ue+=$e:ue+=ns();var Ce;y===null?Ce="null":Xt(y)?Ce="array":y!==void 0&&y.$$typeof===n?(Ce="<"+(Me(y.type)||"Unknown")+" />",ue=" Did you accidentally export a JSX literal instead of a component?"):Ce=typeof y,G("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ce,ue)}var ze=vn(y,O,U,ye,ge);if(ze==null)return ze;if(pe){var tt=O.children;if(tt!==void 0)if(ee)if(Xt(tt)){for(var Ot=0;Ot<tt.length;Ot++)cs(tt[Ot],y);Object.freeze&&Object.freeze(tt)}else G("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else cs(tt,y)}return y===o?Ta(ze):In(ze),ze}}function Ia(y,O,U){return us(y,O,U,!0)}function kn(y,O,U){return us(y,O,U,!1)}var Dn=kn,An=Ia;sa.Fragment=o,sa.jsx=Dn,sa.jsxs=An}()),sa}process.env.NODE_ENV==="production"?Js.exports=ou():Js.exports=lu();var P=Js.exports;function cu(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}function Ui(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function Wi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Ui(Object(a),!0).forEach(function(o){cu(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Ui(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function uu(s,n){if(s==null)return{};var a={},o=Object.keys(s),u,c;for(c=0;c<o.length;c++)u=o[c],!(n.indexOf(u)>=0)&&(a[u]=s[u]);return a}function du(s,n){if(s==null)return{};var a=uu(s,n),o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(u=0;u<c.length;u++)o=c[u],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function pu(s,n){return mu(s)||fu(s,n)||yu(s,n)||hu()}function mu(s){if(Array.isArray(s))return s}function fu(s,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var a=[],o=!0,u=!1,c=void 0;try{for(var m=s[Symbol.iterator](),h;!(o=(h=m.next()).done)&&(a.push(h.value),!(n&&a.length===n));o=!0);}catch(b){u=!0,c=b}finally{try{!o&&m.return!=null&&m.return()}finally{if(u)throw c}}return a}}function yu(s,n){if(s){if(typeof s=="string")return Hi(s,n);var a=Object.prototype.toString.call(s).slice(8,-1);if(a==="Object"&&s.constructor&&(a=s.constructor.name),a==="Map"||a==="Set")return Array.from(s);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Hi(s,n)}}function Hi(s,n){(n==null||n>s.length)&&(n=s.length);for(var a=0,o=new Array(n);a<n;a++)o[a]=s[a];return o}function hu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
30
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _u(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}function $i(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function Xi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?$i(Object(a),!0).forEach(function(o){_u(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):$i(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function gu(){for(var s=arguments.length,n=new Array(s),a=0;a<s;a++)n[a]=arguments[a];return function(o){return n.reduceRight(function(u,c){return c(u)},o)}}function na(s){return function n(){for(var a=this,o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,h=new Array(m),b=0;b<m;b++)h[b]=arguments[b];return n.apply(a,[].concat(u,h))}}}function Ba(s){return{}.toString.call(s).includes("Object")}function bu(s){return!Object.keys(s).length}function ia(s){return typeof s=="function"}function xu(s,n){return Object.prototype.hasOwnProperty.call(s,n)}function wu(s,n){return Ba(n)||ar("changeType"),Object.keys(n).some(function(a){return!xu(s,a)})&&ar("changeField"),n}function vu(s){ia(s)||ar("selectorType")}function Tu(s){ia(s)||Ba(s)||ar("handlerType"),Ba(s)&&Object.values(s).some(function(n){return!ia(n)})&&ar("handlersType")}function Iu(s){s||ar("initialIsRequired"),Ba(s)||ar("initialType"),bu(s)&&ar("initialContent")}function ku(s,n){throw new Error(s[n]||s.default)}var Du={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},ar=na(ku)(Du),Ua={changes:wu,selector:vu,handler:Tu,initial:Iu};function Au(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ua.initial(s),Ua.handler(n);var a={current:s},o=na(Su)(a,n),u=na(Cu)(a),c=na(Ua.changes)(s),m=na(qu)(a);function h(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(x){return x};return Ua.selector(g),g(a.current)}function b(g){gu(o,u,c,m)(g)}return[h,b]}function qu(s,n){return ia(n)?n(s.current):n}function Cu(s,n){return s.current=Xi(Xi({},s.current),n),n}function Su(s,n,a){return ia(n)?n(s.current):Object.keys(a).forEach(function(o){var u;return(u=n[o])===null||u===void 0?void 0:u.call(n,s.current[o])}),a}var zu={create:Au},Nu={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Ou(s){return function n(){for(var a=this,o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,h=new Array(m),b=0;b<m;b++)h[b]=arguments[b];return n.apply(a,[].concat(u,h))}}}function Pu(s){return{}.toString.call(s).includes("Object")}function Eu(s){return s||Vi("configIsRequired"),Pu(s)||Vi("configType"),s.urls?(Ru(),{paths:{vs:s.urls.monacoBase}}):s}function Ru(){console.warn(Gi.deprecation)}function Lu(s,n){throw new Error(s[n]||s.default)}var Gi={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
 
@@ -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
- `},Vi=Ou(Lu)(Gi),Mu={config:Eu},Fu=function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return function(u){return a.reduceRight(function(c,m){return m(c)},u)}};function Yi(s,n){return Object.keys(n).forEach(function(a){n[a]instanceof Object&&s[a]&&Object.assign(n[a],Yi(s[a],n[a]))}),Wi(Wi({},s),n)}var ju={type:"cancelation",msg:"operation is manually canceled"};function Js(s){var n=!1,a=new Promise(function(o,u){s.then(function(c){return n?u(ju):o(c)}),s.catch(u)});return a.cancel=function(){return n=!0},a}var Bu=zu.create({config:Nu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Ki=pu(Bu,2),oa=Ki[0],Wa=Ki[1];function Uu(s){var n=Mu.config(s),a=n.monaco,o=du(n,["monaco"]);Wa(function(u){return{config:Yi(u.config,o),monaco:a}})}function Wu(){var s=oa(function(n){var a=n.monaco,o=n.isInitialized,u=n.resolve;return{monaco:a,isInitialized:o,resolve:u}});if(!s.isInitialized){if(Wa({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),Js(en);if(window.monaco&&window.monaco.editor)return Qi(window.monaco),s.resolve(window.monaco),Js(en);Fu(Hu,Xu)(Gu)}return Js(en)}function Hu(s){return document.body.appendChild(s)}function $u(s){var n=document.createElement("script");return s&&(n.src=s),n}function Xu(s){var n=oa(function(o){var u=o.config,c=o.reject;return{config:u,reject:c}}),a=$u("".concat(n.config.paths.vs,"/loader.js"));return a.onload=function(){return s()},a.onerror=n.reject,a}function Gu(){var s=oa(function(a){var o=a.config,u=a.resolve,c=a.reject;return{config:o,resolve:u,reject:c}}),n=window.require;n.config(s.config),n(["vs/editor/editor.main"],function(a){Qi(a),s.resolve(a)},function(a){s.reject(a)})}function Qi(s){oa().monaco||Wa({monaco:s})}function Vu(){return oa(function(s){var n=s.monaco;return n})}var en=new Promise(function(s,n){return Wa({resolve:s,reject:n})}),tn={config:Uu,init:Wu,__getMonacoInstance:Vu},Yu={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},rn=Yu,Ku={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Qu=Ku;function Zu({children:s}){return M.createElement("div",{style:Qu.container},s)}var Ju=Zu,ed=Ju;function td({width:s,height:n,isEditorReady:a,loading:o,_ref:u,className:c,wrapperProps:m}){return M.createElement("section",{style:{...rn.wrapper,width:s,height:n},...m},!a&&M.createElement(ed,null,o),M.createElement("div",{ref:u,style:{...rn.fullWidth,...!a&&rn.hide},className:c}))}var rd=td,Zi=M.memo(rd);function ad(s){M.useEffect(s,[])}var Ji=ad;function sd(s,n,a=!0){let o=M.useRef(!0);M.useEffect(o.current||!a?()=>{o.current=!1}:s,n)}var ot=sd;function la(){}function zr(s,n,a,o){return nd(s,o)||id(s,n,a,o)}function nd(s,n){return s.editor.getModel(eo(s,n))}function id(s,n,a,o){return s.editor.createModel(n,a,o?eo(s,o):void 0)}function eo(s,n){return s.Uri.parse(n)}function od({original:s,modified:n,language:a,originalLanguage:o,modifiedLanguage:u,originalModelPath:c,modifiedModelPath:m,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:b=!1,theme:g="light",loading:x="Loading...",options:T={},height:R="100%",width:L="100%",className:j,wrapperProps:E={},beforeMount:V=la,onMount:J=la}){let[G,F]=M.useState(!1),[A,k]=M.useState(!0),B=M.useRef(null),H=M.useRef(null),le=M.useRef(null),ie=M.useRef(J),ce=M.useRef(V),bt=M.useRef(!1);Ji(()=>{let Y=tn.init();return Y.then(he=>(H.current=he)&&k(!1)).catch(he=>(he==null?void 0:he.type)!=="cancelation"&&console.error("Monaco initialization: error:",he)),()=>B.current?Fe():Y.cancel()}),ot(()=>{if(B.current&&H.current){let Y=B.current.getOriginalEditor(),he=zr(H.current,s||"",o||a||"text",c||"");he!==Y.getModel()&&Y.setModel(he)}},[c],G),ot(()=>{if(B.current&&H.current){let Y=B.current.getModifiedEditor(),he=zr(H.current,n||"",u||a||"text",m||"");he!==Y.getModel()&&Y.setModel(he)}},[m],G),ot(()=>{let Y=B.current.getModifiedEditor();Y.getOption(H.current.editor.EditorOption.readOnly)?Y.setValue(n||""):n!==Y.getValue()&&(Y.executeEdits("",[{range:Y.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),Y.pushUndoStop())},[n],G),ot(()=>{var Y,he;(he=(Y=B.current)==null?void 0:Y.getModel())==null||he.original.setValue(s||"")},[s],G),ot(()=>{let{original:Y,modified:he}=B.current.getModel();H.current.editor.setModelLanguage(Y,o||a||"text"),H.current.editor.setModelLanguage(he,u||a||"text")},[a,o,u],G),ot(()=>{var Y;(Y=H.current)==null||Y.editor.setTheme(g)},[g],G),ot(()=>{var Y;(Y=B.current)==null||Y.updateOptions(T)},[T],G);let zt=M.useCallback(()=>{var Oe;if(!H.current)return;ce.current(H.current);let Y=zr(H.current,s||"",o||a||"text",c||""),he=zr(H.current,n||"",u||a||"text",m||"");(Oe=B.current)==null||Oe.setModel({original:Y,modified:he})},[a,n,u,s,o,c,m]),Me=M.useCallback(()=>{var Y;!bt.current&&le.current&&(B.current=H.current.editor.createDiffEditor(le.current,{automaticLayout:!0,...T}),zt(),(Y=H.current)==null||Y.editor.setTheme(g),F(!0),bt.current=!0)},[T,g,zt]);M.useEffect(()=>{G&&ie.current(B.current,H.current)},[G]),M.useEffect(()=>{!A&&!G&&Me()},[A,G,Me]);function Fe(){var he,Oe,Le,lt;let Y=(he=B.current)==null?void 0:he.getModel();h||((Oe=Y==null?void 0:Y.original)==null||Oe.dispose()),b||((Le=Y==null?void 0:Y.modified)==null||Le.dispose()),(lt=B.current)==null||lt.dispose()}return M.createElement(Zi,{width:L,height:R,isEditorReady:G,loading:x,_ref:le,className:j,wrapperProps:E})}var ld=od,cd=M.memo(ld);function ud(s){let n=M.useRef();return M.useEffect(()=>{n.current=s},[s]),n.current}var dd=ud,Ha=new Map;function pd({defaultValue:s,defaultLanguage:n,defaultPath:a,value:o,language:u,path:c,theme:m="light",line:h,loading:b="Loading...",options:g={},overrideServices:x={},saveViewState:T=!0,keepCurrentModel:R=!1,width:L="100%",height:j="100%",className:E,wrapperProps:V={},beforeMount:J=la,onMount:G=la,onChange:F,onValidate:A=la}){let[k,B]=M.useState(!1),[H,le]=M.useState(!0),ie=M.useRef(null),ce=M.useRef(null),bt=M.useRef(null),zt=M.useRef(G),Me=M.useRef(J),Fe=M.useRef(),Y=M.useRef(o),he=dd(c),Oe=M.useRef(!1),Le=M.useRef(!1);Ji(()=>{let te=tn.init();return te.then(Te=>(ie.current=Te)&&le(!1)).catch(Te=>(Te==null?void 0:Te.type)!=="cancelation"&&console.error("Monaco initialization: error:",Te)),()=>ce.current?je():te.cancel()}),ot(()=>{var Te,We,Ht,Qe;let te=zr(ie.current,s||o||"",n||u||"",c||a||"");te!==((Te=ce.current)==null?void 0:Te.getModel())&&(T&&Ha.set(he,(We=ce.current)==null?void 0:We.saveViewState()),(Ht=ce.current)==null||Ht.setModel(te),T&&((Qe=ce.current)==null||Qe.restoreViewState(Ha.get(c))))},[c],k),ot(()=>{var te;(te=ce.current)==null||te.updateOptions(g)},[g],k),ot(()=>{!ce.current||o===void 0||(ce.current.getOption(ie.current.editor.EditorOption.readOnly)?ce.current.setValue(o):o!==ce.current.getValue()&&(Le.current=!0,ce.current.executeEdits("",[{range:ce.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),ce.current.pushUndoStop(),Le.current=!1))},[o],k),ot(()=>{var Te,We;let te=(Te=ce.current)==null?void 0:Te.getModel();te&&u&&((We=ie.current)==null||We.editor.setModelLanguage(te,u))},[u],k),ot(()=>{var te;h!==void 0&&((te=ce.current)==null||te.revealLine(h))},[h],k),ot(()=>{var te;(te=ie.current)==null||te.editor.setTheme(m)},[m],k);let lt=M.useCallback(()=>{var te;if(!(!bt.current||!ie.current)&&!Oe.current){Me.current(ie.current);let Te=c||a,We=zr(ie.current,o||s||"",n||u||"",Te||"");ce.current=(te=ie.current)==null?void 0:te.editor.create(bt.current,{model:We,automaticLayout:!0,...g},x),T&&ce.current.restoreViewState(Ha.get(Te)),ie.current.editor.setTheme(m),h!==void 0&&ce.current.revealLine(h),B(!0),Oe.current=!0}},[s,n,a,o,u,c,g,x,T,m,h]);M.useEffect(()=>{k&&zt.current(ce.current,ie.current)},[k]),M.useEffect(()=>{!H&&!k&&lt()},[H,k,lt]),Y.current=o,M.useEffect(()=>{var te,Te;k&&F&&((te=Fe.current)==null||te.dispose(),Fe.current=(Te=ce.current)==null?void 0:Te.onDidChangeModelContent(We=>{Le.current||F(ce.current.getValue(),We)}))},[k,F]),M.useEffect(()=>{if(k){let te=ie.current.editor.onDidChangeMarkers(Te=>{var Ht;let We=(Ht=ce.current.getModel())==null?void 0:Ht.uri;if(We&&Te.find(Qe=>Qe.path===We.path)){let Qe=ie.current.editor.getModelMarkers({resource:We});A==null||A(Qe)}});return()=>{te==null||te.dispose()}}return()=>{}},[k,A]);function je(){var te,Te;(te=Fe.current)==null||te.dispose(),R?T&&Ha.set(c,ce.current.saveViewState()):(Te=ce.current.getModel())==null||Te.dispose(),ce.current.dispose()}return M.createElement(Zi,{width:L,height:j,isEditorReady:k,loading:b,_ref:bt,className:E,wrapperProps:V})}var md=pd,fd=M.memo(md);const to={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
+ `},Vi=Ou(Lu)(Gi),Mu={config:Eu},Fu=function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return function(u){return a.reduceRight(function(c,m){return m(c)},u)}};function Yi(s,n){return Object.keys(n).forEach(function(a){n[a]instanceof Object&&s[a]&&Object.assign(n[a],Yi(s[a],n[a]))}),Wi(Wi({},s),n)}var ju={type:"cancelation",msg:"operation is manually canceled"};function Zs(s){var n=!1,a=new Promise(function(o,u){s.then(function(c){return n?u(ju):o(c)}),s.catch(u)});return a.cancel=function(){return n=!0},a}var Bu=zu.create({config:Nu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Ki=pu(Bu,2),oa=Ki[0],Wa=Ki[1];function Uu(s){var n=Mu.config(s),a=n.monaco,o=du(n,["monaco"]);Wa(function(u){return{config:Yi(u.config,o),monaco:a}})}function Wu(){var s=oa(function(n){var a=n.monaco,o=n.isInitialized,u=n.resolve;return{monaco:a,isInitialized:o,resolve:u}});if(!s.isInitialized){if(Wa({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),Zs(en);if(window.monaco&&window.monaco.editor)return Qi(window.monaco),s.resolve(window.monaco),Zs(en);Fu(Hu,Xu)(Gu)}return Zs(en)}function Hu(s){return document.body.appendChild(s)}function $u(s){var n=document.createElement("script");return s&&(n.src=s),n}function Xu(s){var n=oa(function(o){var u=o.config,c=o.reject;return{config:u,reject:c}}),a=$u("".concat(n.config.paths.vs,"/loader.js"));return a.onload=function(){return s()},a.onerror=n.reject,a}function Gu(){var s=oa(function(a){var o=a.config,u=a.resolve,c=a.reject;return{config:o,resolve:u,reject:c}}),n=window.require;n.config(s.config),n(["vs/editor/editor.main"],function(a){Qi(a),s.resolve(a)},function(a){s.reject(a)})}function Qi(s){oa().monaco||Wa({monaco:s})}function Vu(){return oa(function(s){var n=s.monaco;return n})}var en=new Promise(function(s,n){return Wa({resolve:s,reject:n})}),tn={config:Uu,init:Wu,__getMonacoInstance:Vu},Yu={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},rn=Yu,Ku={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Qu=Ku;function Ju({children:s}){return M.createElement("div",{style:Qu.container},s)}var Zu=Ju,ed=Zu;function td({width:s,height:n,isEditorReady:a,loading:o,_ref:u,className:c,wrapperProps:m}){return M.createElement("section",{style:{...rn.wrapper,width:s,height:n},...m},!a&&M.createElement(ed,null,o),M.createElement("div",{ref:u,style:{...rn.fullWidth,...!a&&rn.hide},className:c}))}var rd=td,Ji=M.memo(rd);function ad(s){M.useEffect(s,[])}var Zi=ad;function sd(s,n,a=!0){let o=M.useRef(!0);M.useEffect(o.current||!a?()=>{o.current=!1}:s,n)}var ot=sd;function la(){}function zr(s,n,a,o){return nd(s,o)||id(s,n,a,o)}function nd(s,n){return s.editor.getModel(eo(s,n))}function id(s,n,a,o){return s.editor.createModel(n,a,o?eo(s,o):void 0)}function eo(s,n){return s.Uri.parse(n)}function od({original:s,modified:n,language:a,originalLanguage:o,modifiedLanguage:u,originalModelPath:c,modifiedModelPath:m,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:b=!1,theme:g="light",loading:x="Loading...",options:T={},height:R="100%",width:L="100%",className:j,wrapperProps:E={},beforeMount:V=la,onMount:Z=la}){let[G,F]=M.useState(!1),[A,k]=M.useState(!0),B=M.useRef(null),H=M.useRef(null),le=M.useRef(null),ie=M.useRef(Z),ce=M.useRef(V),bt=M.useRef(!1);Zi(()=>{let Y=tn.init();return Y.then(he=>(H.current=he)&&k(!1)).catch(he=>(he==null?void 0:he.type)!=="cancelation"&&console.error("Monaco initialization: error:",he)),()=>B.current?Fe():Y.cancel()}),ot(()=>{if(B.current&&H.current){let Y=B.current.getOriginalEditor(),he=zr(H.current,s||"",o||a||"text",c||"");he!==Y.getModel()&&Y.setModel(he)}},[c],G),ot(()=>{if(B.current&&H.current){let Y=B.current.getModifiedEditor(),he=zr(H.current,n||"",u||a||"text",m||"");he!==Y.getModel()&&Y.setModel(he)}},[m],G),ot(()=>{let Y=B.current.getModifiedEditor();Y.getOption(H.current.editor.EditorOption.readOnly)?Y.setValue(n||""):n!==Y.getValue()&&(Y.executeEdits("",[{range:Y.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),Y.pushUndoStop())},[n],G),ot(()=>{var Y,he;(he=(Y=B.current)==null?void 0:Y.getModel())==null||he.original.setValue(s||"")},[s],G),ot(()=>{let{original:Y,modified:he}=B.current.getModel();H.current.editor.setModelLanguage(Y,o||a||"text"),H.current.editor.setModelLanguage(he,u||a||"text")},[a,o,u],G),ot(()=>{var Y;(Y=H.current)==null||Y.editor.setTheme(g)},[g],G),ot(()=>{var Y;(Y=B.current)==null||Y.updateOptions(T)},[T],G);let xt=M.useCallback(()=>{var Oe;if(!H.current)return;ce.current(H.current);let Y=zr(H.current,s||"",o||a||"text",c||""),he=zr(H.current,n||"",u||a||"text",m||"");(Oe=B.current)==null||Oe.setModel({original:Y,modified:he})},[a,n,u,s,o,c,m]),Me=M.useCallback(()=>{var Y;!bt.current&&le.current&&(B.current=H.current.editor.createDiffEditor(le.current,{automaticLayout:!0,...T}),xt(),(Y=H.current)==null||Y.editor.setTheme(g),F(!0),bt.current=!0)},[T,g,xt]);M.useEffect(()=>{G&&ie.current(B.current,H.current)},[G]),M.useEffect(()=>{!A&&!G&&Me()},[A,G,Me]);function Fe(){var he,Oe,Le,lt;let Y=(he=B.current)==null?void 0:he.getModel();h||((Oe=Y==null?void 0:Y.original)==null||Oe.dispose()),b||((Le=Y==null?void 0:Y.modified)==null||Le.dispose()),(lt=B.current)==null||lt.dispose()}return M.createElement(Ji,{width:L,height:R,isEditorReady:G,loading:x,_ref:le,className:j,wrapperProps:E})}var ld=od,cd=M.memo(ld);function ud(s){let n=M.useRef();return M.useEffect(()=>{n.current=s},[s]),n.current}var dd=ud,Ha=new Map;function pd({defaultValue:s,defaultLanguage:n,defaultPath:a,value:o,language:u,path:c,theme:m="light",line:h,loading:b="Loading...",options:g={},overrideServices:x={},saveViewState:T=!0,keepCurrentModel:R=!1,width:L="100%",height:j="100%",className:E,wrapperProps:V={},beforeMount:Z=la,onMount:G=la,onChange:F,onValidate:A=la}){let[k,B]=M.useState(!1),[H,le]=M.useState(!0),ie=M.useRef(null),ce=M.useRef(null),bt=M.useRef(null),xt=M.useRef(G),Me=M.useRef(Z),Fe=M.useRef(),Y=M.useRef(o),he=dd(c),Oe=M.useRef(!1),Le=M.useRef(!1);Zi(()=>{let te=tn.init();return te.then(Te=>(ie.current=Te)&&le(!1)).catch(Te=>(Te==null?void 0:Te.type)!=="cancelation"&&console.error("Monaco initialization: error:",Te)),()=>ce.current?je():te.cancel()}),ot(()=>{var Te,We,Ht,Qe;let te=zr(ie.current,s||o||"",n||u||"",c||a||"");te!==((Te=ce.current)==null?void 0:Te.getModel())&&(T&&Ha.set(he,(We=ce.current)==null?void 0:We.saveViewState()),(Ht=ce.current)==null||Ht.setModel(te),T&&((Qe=ce.current)==null||Qe.restoreViewState(Ha.get(c))))},[c],k),ot(()=>{var te;(te=ce.current)==null||te.updateOptions(g)},[g],k),ot(()=>{!ce.current||o===void 0||(ce.current.getOption(ie.current.editor.EditorOption.readOnly)?ce.current.setValue(o):o!==ce.current.getValue()&&(Le.current=!0,ce.current.executeEdits("",[{range:ce.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),ce.current.pushUndoStop(),Le.current=!1))},[o],k),ot(()=>{var Te,We;let te=(Te=ce.current)==null?void 0:Te.getModel();te&&u&&((We=ie.current)==null||We.editor.setModelLanguage(te,u))},[u],k),ot(()=>{var te;h!==void 0&&((te=ce.current)==null||te.revealLine(h))},[h],k),ot(()=>{var te;(te=ie.current)==null||te.editor.setTheme(m)},[m],k);let lt=M.useCallback(()=>{var te;if(!(!bt.current||!ie.current)&&!Oe.current){Me.current(ie.current);let Te=c||a,We=zr(ie.current,o||s||"",n||u||"",Te||"");ce.current=(te=ie.current)==null?void 0:te.editor.create(bt.current,{model:We,automaticLayout:!0,...g},x),T&&ce.current.restoreViewState(Ha.get(Te)),ie.current.editor.setTheme(m),h!==void 0&&ce.current.revealLine(h),B(!0),Oe.current=!0}},[s,n,a,o,u,c,g,x,T,m,h]);M.useEffect(()=>{k&&xt.current(ce.current,ie.current)},[k]),M.useEffect(()=>{!H&&!k&&lt()},[H,k,lt]),Y.current=o,M.useEffect(()=>{var te,Te;k&&F&&((te=Fe.current)==null||te.dispose(),Fe.current=(Te=ce.current)==null?void 0:Te.onDidChangeModelContent(We=>{Le.current||F(ce.current.getValue(),We)}))},[k,F]),M.useEffect(()=>{if(k){let te=ie.current.editor.onDidChangeMarkers(Te=>{var Ht;let We=(Ht=ce.current.getModel())==null?void 0:Ht.uri;if(We&&Te.find(Qe=>Qe.path===We.path)){let Qe=ie.current.editor.getModelMarkers({resource:We});A==null||A(Qe)}});return()=>{te==null||te.dispose()}}return()=>{}},[k,A]);function je(){var te,Te;(te=Fe.current)==null||te.dispose(),R?T&&Ha.set(c,ce.current.saveViewState()):(Te=ce.current.getModel())==null||Te.dispose(),ce.current.dispose()}return M.createElement(Ji,{width:L,height:j,isEditorReady:k,loading:b,_ref:bt,className:E,wrapperProps:V})}var md=pd,fd=M.memo(md);const to={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,23 +102,23 @@ else
102
102
 
103
103
  `}bold(n){return`**${n}**`}italic(n){return`*${n.replace(">","&gt;").replace("<","&lt;")}*`}pineCode(n){return`\`\`\`
104
104
  ${n}
105
- \`\`\``}code(n){return`\`${n}\``}paragraph(...n){return[this.paragraphBreak,...n,this.paragraphBreak].join(this.lineBreak)}link(n,a){return`[${n}](${a.href})`}}const we=new xd;function wd(s,n=0,a=!0){const o=s[n];if(!o)return"";const u=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:c,title:m,desc:h,type:b,syntax:g,returns:x,remarks:T,fields:R}=o,L=[`${we.bold(c)} (${m})`];if(s.length>1&&L.push(we.italic(`+${s.length-1} overloads`)),L.push(we.delimiter),h&&L.push(we.paragraph(Array.isArray(h)?h.join(we.lineBreak):h||"")),b&&L.push(we.paragraph(we.bold(_t.Type),we.italic(b))),g&&g.length&&L.push(we.paragraph(we.bold(_t.Syntax),we.pineCode(g.join(we.lineBreak)))),x&&L.push(we.paragraph(we.bold(_t.Returns),we.lineBreak,x.join(we.lineBreak))),T&&T.length&&s.length<=1){let j="";typeof T=="string"?j=T:j=T.join(we.lineBreak)||"",j.length<200&&L.push(we.paragraph(we.bold(_t.Remarks),we.lineBreak,j))}if(R){const j=[];for(const E of R){const V=E.desc?` - ${E.desc}`:"";j.push(`${E.name} (${E.type}) ${V}`)}L.push(we.paragraph(we.bold(_t.Fields),we.lineBreak,j.join(we.paragraphBreak)))}return a&&L.push(we.italic(`${we.code(u?"⌘":"Ctrl")} + ${hd.clickOnKeywordForMoreHelp}`)),L.join(L.length===2?" ":we.lineBreak)}const an="tcc_cursor_position",vd=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function Td(s){return s.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function Id(s){const n=s.getContribution("editor.contrib.contextmenu"),a=n==null?void 0:n._getMenuActions;n._getMenuActions=function(){return a.apply(n,arguments).filter(function(u){return!vd.includes(u.id)})}}class kd{constructor(){Object.defineProperty(this,"bracketsPostfix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_builtinSubtreeCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_namespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_suggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_outermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFuncArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userOutermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nextIsBracket",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_annotationSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=we,this._namespaceCache=new Map,this._suggestions=[],this._outermostNsItems=new Map,this._funcArgsCache=new Map,this._userSuggestions=[],this._userFuncArgsCache=new Map,this._userNamespaceCache=new Map,this._userOutermostNsItems=new Map,this._methodNamespaceCache=new Map,this._userMethods=new Map,this._userTypes=new Map,this._methodFuncs=new Map,this._userFunctions=new Map,this._nextIsBracket=!1,this._annotationSuggestions=[]}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}set nextIsBracket(n){this._nextIsBracket=n}get nextIsBracket(){return this._nextIsBracket}get annotationSuggestions(){return this._getAnnotationCompletionItems(this._builtinSubtreeCache.annotations)}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(n){return this._funcArgsCache.get(n)||this._userFuncArgsCache.get(n)}getSuggestions(n){return n?this._namespaceCache.get(n)||this._userNamespaceCache.get(n):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(n,a,o,u){this._initUserDefind();const c=this._mergeTreeSlices(this._generateTreeSlice(gt.methods,"method"),this._generateTreeSlice(u,"method"));this._getMethodNamespaceCache(c),this._userMethods=u,this._userTypes=a,this._userFunctions=n;const m=this._generateTreeSlice(n,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(o,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(n,a,o){const u=this._getUserVariableCompletionItems(o),c=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(n,void 0,!0);return[...c,...m,...u,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:n,keywords:a,types:o,functions:u}=this._builtinSubtreeCache,c=this._getVariableCompletionItems(n),m=this._getKeywordCompletionItems(a),h=this._getTypeCompletionItems(o),b=this._getFunctionCompletionItems(u),g=this._getSnippetsCompletionsList();return[...c,...m,...h,...b,...this._outermostNsItems.values(),...g]}_getNodeKey(n,a){return`${a}_${n}`}_mergeTreeSlices(...n){const a=new Map;for(const o of n)for(const[u,c]of o){const m=a.get(u);m?a.set(u,{...m,children:this._mergeTreeSlices(c.children,m.children)}):a.set(u,c)}return a}_mergeCompletions(n,a){const o=this._namespaceCache.get(n);o?this._namespaceCache.set(n,[...o,...a]):this._namespaceCache.set(n,a)}_mergeUserCompletions(n,a){const o=this._userNamespaceCache.get(n);o?this._userNamespaceCache.set(n,[...o,...a]):this._userNamespaceCache.set(n,a)}_generateTreeSlice(n,a){const o=new Map;for(const[u,c]of n){const[m,...h]=u.split("."),b=h.length>0,g=o.get(this._getNodeKey(m,b?"ns":a));let x=new Map,T=c.map(L=>({...L,name:u})),R=this._getNodeKey(u,a);if(b&&a!=="type"){const L=new Map([[h.join("."),c]]);T=[{name:m,title:xe.namespace}],R=this._getNodeKey(m,"ns"),x=this._generateTreeSlice(L,a)}g&&(T=[{name:m,title:xe.namespace}],x=this._mergeTreeSlices(g.children,x)),o.set(R,{value:T,children:x})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:a,constants:o,types:u,functions:c,annotations:m}=gt,h=this._generateTreeSlice(m,"an");return h.delete("an_@version="),this._builtinSubtreeCache={keywords:this._generateTreeSlice(n,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(a,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(u,"type"),functions:this._generateTreeSlice(c,"fun"),annotations:h},this._builtinSubtreeCache}_getVariableCompletionItems(n,a){const o=[],u=[];for(const[c,m]of n){const{value:h,children:b}=m;if(c.startsWith("ns")){const g=this._getNamespaceCompletionItem(h[0]);if(a){u.push({...g});const T=`${a}.${g.label}`;g.label=T,g.insertText=T}const x=this._getVariableCompletionItems(b,g.label);a||this._outermostNsItems.set(c,g),o.push(...x)}else{const g=this._getVariableCompletionItem(h[0],a?3:2);if(a){u.push({...g});const{label:x}=g;g.label=`${a}.${x}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${x}\r`}o.push(g)}}return u.length&&a&&this._mergeCompletions(a,u),o}_setUserVariableSubItems(n,a){var g,x,T,R;let o=[];const u=Td(n.type||""),c=this._methodNamespaceCache.get(u),m=a?`${a}.${n.name}`:n.name;c&&(o=c.filter(L=>{var J;const j=`${u}.${L.label}`,E=gt.methods.get(j)||this._userMethods.get(j),V=E==null?void 0:E.some(G=>!G.thisType||G.thisType[0].includes("<>")||G.thisType.includes(n.type||""));if(V&&E){const G=this._getNamedArgumentsCompletionList(((J=E[0])==null?void 0:J.args)||[]),F=`${m}.${L.label}`;this._userFuncArgsCache.set(F,G),this._methodFuncs.set(F,E)}return V}));const{types:h}=gt,b=((x=(g=this._userTypes.get(u))==null?void 0:g[0])==null?void 0:x.fields)||((R=(T=h.get(u))==null?void 0:T[0])==null?void 0:R.fields);if(b)for(const L of b){const j=L.name,E=L.type,V=this._getInstanceTypeCompletionItemProp({name:j,type:E});this._setUserVariableSubItems({name:j,type:E},n.name),o.push({...V})}o.length&&this._mergeUserCompletions(m,o)}_getUserVariableCompletionItems(n,a){const o=[],u=[];for(const[c,m]of n){const{value:h,children:b}=m;if(this._setUserVariableSubItems(h[0]),c.startsWith("ns")){const g=this._getNamespaceCompletionItem(h[0]);if(a){u.push({...g});const T=`${a}.${g.label}`;g.label=T,g.insertText=T}const x=this._getUserVariableCompletionItems(b,g.label);a||this._userOutermostNsItems.set(c,g),o.push(...x)}else{const g=this._getVariableCompletionItem(h[0],a?2:1,!1);if(a){u.push({...g});const{label:x}=g;g.label=`${a}.${x}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${x}\r`}o.push(g)}}return u.length&&a&&this._mergeUserCompletions(a,u),o}_getTypeCompletionItems(n,a=!1){const o=[];for(const[,u]of n){const{value:c}=u,m=a?this._getCustomTypeCompletionItem(c[0]):this._getTypeCompletionItem(c[0]);o.push(m)}return o}_getAnnotationCompletionItems(n){const a=[];for(const[,o]of n){const{value:u}=o,c=this._getAnnotationCompletionItem(u[0]);a.push(c)}return a}_getKeywordCompletionItems(n){const a=[];for(const[,o]of n){const{value:u}=o,c=this._getKeywordCompletionItem(u[0]);a.push(c)}return a}_getMethodNamespaceCache(n,a){const o=[];for(const[u,c]of n){const{value:m,children:h}=c;if(u.startsWith("ns")){const b=this._getNamespaceCompletionItem(m[0]);if(a){o.push({...b});const g=`${a}.${b.label}`;b.label=g,b.insertText=g}this._getMethodNamespaceCache(h,b.label)}else{const b=this._getFunctionCompletionItem(m[0],a?3:2);if(m.length>1&&(b.detail=`${b.detail} (+${m.length-1} overloads)`),a){o.push({...b});const{label:g}=b;b.label=`${a}.${g}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${g}\r`}}}a&&this._methodNamespaceCache.set(a,o)}_getFunctionCompletionItems(n,a,o=!1){const u=[],c=[];for(const[m,h]of n){const{value:b,children:g}=h;if(m.startsWith("ns")){const x=this._getNamespaceCompletionItem(b[0]);if(a){c.push({...x});const R=`${a}.${x.label}`;x.label=R,x.insertText=R}const T=this._getFunctionCompletionItems(g,x.label,o);a||(o?this._userOutermostNsItems.set(m,x):this._outermostNsItems.set(m,x)),u.push(...T)}else{const x=this._getFunctionCompletionItem(b[0],a?3:2,!o);if(b.length>1&&(x.detail=`${x.detail} (+${b.length-1} overloads)`),a){c.push({...x});const{label:T}=x;x.label=`${a}.${T}`,x.insertText=`${a}.${x.insertText}`,x.filterText=`${T}\r`}u.push(x)}}return c.length&&a&&(o?this._mergeUserCompletions(a,c):this._mergeCompletions(a,c)),u}_getSnippetsCompletionsList(){return yd.map(n=>{const{label:a,kind:o,insertText:u}=n,c=a.charAt(0).toUpperCase()+a.substring(1),m={value:this._formatter.pineCode(u.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:a,detail:`(${c} ${o})`,insertText:u,insertTextRules:qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:qe.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(n,a){for(const[o,u]of n){const{name:c}=u.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${c}`:c);else{const m=new Map;u.value.reduce((g,x)=>{const T=x.args;return T&&T.length&&T.forEach(R=>{g.set(R.name,R)}),g},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),b=a?`${a}.${c}`:c;this._funcArgsCache.set(b,h)}}}_getUserFuncArgumentsCompletionItemsToCache(n,a){for(const[o,u]of n){const{name:c}=u.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${c}`:c);else{const m=new Map;u.value.reduce((g,x)=>{const T=x.args;return T&&T.length&&T.forEach(R=>{g.set(R.name,R)}),g},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),b=a?`${a}.${c}`:c;this._userFuncArgsCache.set(b,h)}}}_getNamedArgumentsCompletionList(n){return n.map(a=>{const{name:o,desc:u,displayType:c}=a,m=`${o} = `,h=Array.isArray(u)?u.join(this._formatter.delimiter):u||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(xe.Description),this._formatter.lineBreak,h)},insertText:m,detail:`(${xe.parameter}) ${xe.types} ${c}`,kind:qe.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(n,a=2,o=!0){const u=this._extractExamples(n),c=this._extractDescription(n),m=[this._createDescriptionSection(c)];u.length?m.push(this._createExampleSection(u)):n.syntax&&n.syntax.length&&m.push(this._createSyntaxSection(n.syntax));const h={value:m.join(this._formatter.lineBreak)},b=o?xe.variables:xe.userDefinedVariable;return{documentation:h,label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Variable,sortText:`${a}_${n.name}`,detail:`(${b}) ${n.type}`}}_getKeywordCompletionItem(n,a=2){const o=this._extractExamples(n),u=this._extractDescription(n),c=[this._createDescriptionSection(u)];return o.length?c.push(this._createExampleSection(o)):n.syntax&&n.syntax.length&&c.push(this._createSyntaxSection(n.syntax)),{documentation:{value:c.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Keyword,sortText:`${a}_${n.name}`,detail:`(${xe.keywords})`}}_getTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Keyword,sortText:`1_${n.name}`,detail:`(${xe.types})`}}_getCustomTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Keyword,sortText:`2_${n.name}`,detail:`(${xe.userDefinedType})`}}_getInstanceTypeCompletionItemProp(n){const a=this._extractDescription(n),o=[];return a&&o.push(this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,a)),{documentation:{value:o.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Field,sortText:`2_${n.name}`,detail:`(${xe.field}) ${n.type}`}}_getFunctionCompletionItem(n,a=2,o=!0){var L;const u=n.returnedTypes&&n.returnedTypes[0]||n.syntax&&n.syntax[0]&&((L=n.syntax[0].split("→").pop())==null?void 0:L.trim()),c=this._extractExamples(n),m=this._extractDescription(n),h=[this._createDescriptionSection(m)];c.length?h.push(this._createExampleSection(c)):n.syntax&&n.syntax.length&&h.push(this._createSyntaxSection(n.syntax)),n.returns&&n.returns.length&&h.push(this._createReturnSection(n.returns));const b={value:h.join(this._formatter.lineBreak)},g=n.name,x=o?xe.functions:xe.userDefinedFunction,T=n.template,R=T?`${bd(g)}<\${1}>`:g;return{documentation:b,label:T?`${g.replace(/<.+>/,"")}<type>`:g,kind:qe.languages.CompletionItemKind.Function,sortText:`${a}_${g}`,insertTextRules:qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:R+this.bracketsPostfix,originInsertText:R,detail:`(${x}) ${xe.returns} ${u}`,command:{id:"tcc.editor.function",title:"",arguments:[T?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getAnnotationCompletionItem(n){const a=this._extractDescription(n),o=this._extractExamples(n),u=[this._createDescriptionSection(a)];return o.length&&u.push(this._createExampleSection(o)),{documentation:{value:u.join(this._formatter.lineBreak)},label:n.name,insertText:n.name.replace("@",""),kind:qe.languages.CompletionItemKind.Keyword,detail:`(${xe.annotations})`}}_getNamespaceCompletionItem(n,a=2){const o=[this._createDescriptionSection(xe.namespaceDesc)];return{label:n.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${xe.namespace}) ${n.name}`,insertText:n.name,sortText:`${a}_${n.name}`,kind:qe.languages.CompletionItemKind.Module}}_extractExamples(n){let a;return n.examples||n.detailedDesc&&((a=n.detailedDesc[0])===null||a===void 0?void 0:a.examples)||[]}_extractDescription(n){return Array.isArray(n.desc)?n.desc.join(this._formatter.lineBreak):n.desc||""}_createExampleSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,n)}}const Ct=new kd;class Dd{constructor(){Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userVariables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_overloadsFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._userFunctions=new Map,this._userVariables=new Map,this._userTypes=new Map,this._userMethods=new Map,this._overloadsFuncs=[]}setUserDefined(n,a){const{functions:o,variables:u,types:c,methods:m}=n;o&&(this._userFunctions=o),u&&(this._userVariables=u),c&&(this._userTypes=c),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(n,a,o,u){let c=(o==null?void 0:o.getLineContent(a))||"";const m=c.indexOf("//");if(this._removeString(c).indexOf("//")!==-1&&m<=n)return;c=c+" ";const h=this._getVariablesDocVal(c,n,a);if(h){if(h.isBuildIn){const x=o==null?void 0:o.getWordAtPosition(u||new qe.Position(a,n));if(((o==null?void 0:o.getValueInRange({startLineNumber:a,startColumn:(x==null?void 0:x.endColumn)||0,endLineNumber:a,endColumn:((x==null?void 0:x.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return h}const b=this._getFuncsDocVal(c,n,a);if(b)return b;const g=c.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(g){const x=this._matchContent(g,c,n);if(x){const T=this._getBuildInOther(x.name);if(T)return{docValue:T,isBuildIn:!0,index:0};{const R=this._getBuildInFunc(`${x.name}<type>`);if(R)return{docValue:R,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(n){return gt.functions.get(n)}_getBuildInMethod(n){return gt.methods.get(n)}_getBuildInOther(n){const{keywords:a,variables:o,constants:u,types:c}=gt;return a.get(n)||o.get(n)||u.get(n)||c.get(n)}parseCurrentInputFunc(n,a=!1,o=!1){let u=n.length-1,c=0,m=a,h=o;for(;u>=0;){const b=n.charAt(u);if(u-=1,/['"]/.test(b)){const g=b;if(b==="'"){if(m){m=!1;continue}}else if(h){h=!1;continue}for(;u>=0;){const x=n.charAt(u);if(u-=1,x===g)break}}if(!(m||h)&&(/\)/.test(b)&&(c+=1),/\(/.test(b))){if(c>0){c-=1;continue}let g="";for(;u>=0;){const x=n.charAt(u);if(u-=1,!(/\s/.test(x)&&!g)){if(/[^\w.]/.test(x))break;g=x+g}}if(g)return{funcName:g,startIndex:u+1}}}}parseCurrentInputFuncAndArg(n,a=!1,o=!1){const{funcName:u,startIndex:c}=this.parseCurrentInputFunc(n,a,o)||{};if(u&&typeof c=="number"){let m=n.slice(c+u.length).trim().slice(1),h=-1;if(a&&(h=m.lastIndexOf("'")),o){const x=m.lastIndexOf('"');(x!==-1&&x<h||h===-1)&&(h=x)}h!==-1&&(m=m.substring(0,h));const g=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(x=>{const T=x.trim().split("=");return T.length<=1?"":T[0].trim()});return{funcName:u,args:g}}}_removeString(n){return n.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(n,a,o){const u=this._removeString(n).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(u){const c=this._matchContent(u,n,a);if(c){const m={docValue:void 0,isBuildIn:!0,index:0},h=this._getBuildInOther(c.name);if(h)return m.docValue=h,m;const b=this._getUserVariablesDocVal(c.name,a,o);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1});const g=this._getUserTypesDocVal(c.name);if(g)return Object.assign(m,{docValue:g,isBuildIn:!1});const x=this._getTypesAndFileds(n,c.name,a,o);if(x&&typeof x!="string")return Object.assign(m,{docValue:[x],isBuildIn:!1})}}}_getUserVariablesDocVal(n,a,o){const m=[...this._userVariables.get(n)||[]].sort((h,b)=>(b.scope||0)-(h.scope||0)).find(h=>{const b=h.range;return((b==null?void 0:b.startColumn)||0)<=a&&((b==null?void 0:b.startLineNumber)||0)<=o&&((b==null?void 0:b.endLineNumber)||0)>=o});if(m)return m.title=xe.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(n){const a=this._userTypes.get(n);if(a)return a[0].title=xe.userDefinedType,a}_getTypesAndFileds(n,a,o,u){var c,m;if(a.includes(".")){const h=a.split(".");let b=h[0],g,x=null,T=n.indexOf(a,o-a.length)+1,R=T+b.length-1;for(const L of h.slice(1)){if(!x){const j=T<=o&&R>=o,E=this._getUserVariablesDocVal(b,o,u);if(j&&E)return E;x=E==null?void 0:E.type}if(x){g=x,T=R+2,R=R+L.length+1;const j=this._userTypes.get(x)||gt.types.get(x),E=(m=(c=j==null?void 0:j[0])==null?void 0:c.fields)==null?void 0:m.find(V=>V.name===L);if(E&&T<=o&&R>=o)return{name:`${x}.${L}`,desc:E.desc,type:this._arrayTypeTransform(E.type),title:xe.field};x=E==null?void 0:E.type}else b=`${b}.${L}`,R=R+L.length+1}return g}}_getFuncsDocVal(n,a,o){const u=n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(u){const c=this._matchContent(u,n,a);if(c){const m={docValue:void 0,isBuildIn:!0,endIndex:c.endIndex,index:0},h=this._getBuildInFunc(c.name);if(h)return m.index=this._getOverloadsFuncIndex(h,a,c.name,o),Object.assign(m,{docValue:h});const b=this._getUserFuncsDocVal(c.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const g=this._getUserVarFuncsDocVal(n,c.name,a,o);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1})}}}_getOverloadsFuncIndex(n,a,o,u){if(n.length>1){const c=this._overloadsFuncs.find(m=>m.name===o&&m.line===u&&m.startColumn<=a&&m.endColumn>=a);if(c)return c.index}return 0}_getUserFuncsDocVal(n){const a=this._userFunctions.get(n);if(a)return a[0].title=xe.userDefinedFunction,a}_getUserMethodsDocVal(n){const a=this._userMethods.get(n);if(a)return a[0].title=xe.userDefinedMethod,a}_getUserVarFuncsDocVal(n,a,o,u){var c;if(a.includes(".")){const m=a.split("."),h=this._getTypesAndFileds(n,a,o,u);if(typeof h=="string"){const g=`${this._arrayTypeTransform(h).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,x=this._getBuildInMethod(g);if(x){const T=this._getOverloadsFuncIndex(x,o,g,u);return{...x[0],name:g,index:T}}return(c=this._getUserMethodsDocVal(g))==null?void 0:c[0]}else return h}}_arrayTypeTransform(n=""){return n.includes("[]")?`array<${n.replace("[]","")}>`:n}_matchContent(n,a,o){let u=0;for(const c of n){u=o-c.length;const m=a.indexOf(c,u);if(u=m+c.length,this._judgeVal(a,m,u)&&m+1<=o&&u>=o)return{name:c,endIndex:u}}}_judgeVal(n,a,o){const u=n.charAt(a-1),c=/[\w\d."']/;if(c.test(u))return!1;const m=n.charAt(o);return!c.test(m)}}const Nr=new Dd;var $a={exports:{}};/**
105
+ \`\`\``}code(n){return`\`${n}\``}paragraph(...n){return[this.paragraphBreak,...n,this.paragraphBreak].join(this.lineBreak)}link(n,a){return`[${n}](${a.href})`}}const we=new xd;function wd(s,n=0,a=!0){const o=s[n];if(!o)return"";const u=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:c,title:m,desc:h,type:b,syntax:g,returns:x,remarks:T,fields:R}=o,L=[`${we.bold(c)} (${m})`];if(s.length>1&&L.push(we.italic(`+${s.length-1} overloads`)),L.push(we.delimiter),h&&L.push(we.paragraph(Array.isArray(h)?h.join(we.lineBreak):h||"")),b&&L.push(we.paragraph(we.bold(_t.Type),we.italic(b))),g&&g.length&&L.push(we.paragraph(we.bold(_t.Syntax),we.pineCode(g.join(we.lineBreak)))),x&&L.push(we.paragraph(we.bold(_t.Returns),we.lineBreak,x.join(we.lineBreak))),T&&T.length&&s.length<=1){let j="";typeof T=="string"?j=T:j=T.join(we.lineBreak)||"",j.length<200&&L.push(we.paragraph(we.bold(_t.Remarks),we.lineBreak,j))}if(R){const j=[];for(const E of R){const V=E.desc?` - ${E.desc}`:"";j.push(`${E.name} (${E.type}) ${V}`)}L.push(we.paragraph(we.bold(_t.Fields),we.lineBreak,j.join(we.paragraphBreak)))}return a&&L.push(we.italic(`${we.code(u?"⌘":"Ctrl")} + ${hd.clickOnKeywordForMoreHelp}`)),L.join(L.length===2?" ":we.lineBreak)}const an="tcc_cursor_position",vd=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function Td(s){return s.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function Id(s){const n=s.getContribution("editor.contrib.contextmenu"),a=n==null?void 0:n._getMenuActions;n._getMenuActions=function(){return a.apply(n,arguments).filter(function(u){return!vd.includes(u.id)})}}class kd{constructor(){Object.defineProperty(this,"bracketsPostfix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_builtinSubtreeCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_namespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_suggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_outermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFuncArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userOutermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nextIsBracket",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_annotationSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=we,this._namespaceCache=new Map,this._suggestions=[],this._outermostNsItems=new Map,this._funcArgsCache=new Map,this._userSuggestions=[],this._userFuncArgsCache=new Map,this._userNamespaceCache=new Map,this._userOutermostNsItems=new Map,this._methodNamespaceCache=new Map,this._userMethods=new Map,this._userTypes=new Map,this._methodFuncs=new Map,this._userFunctions=new Map,this._nextIsBracket=!1,this._annotationSuggestions=[]}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}set nextIsBracket(n){this._nextIsBracket=n}get nextIsBracket(){return this._nextIsBracket}get annotationSuggestions(){return this._getAnnotationCompletionItems(this._builtinSubtreeCache.annotations)}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(n){return this._funcArgsCache.get(n)||this._userFuncArgsCache.get(n)}getSuggestions(n){return n?this._namespaceCache.get(n)||this._userNamespaceCache.get(n):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(n,a,o,u){this._initUserDefind();const c=this._mergeTreeSlices(this._generateTreeSlice(gt.methods,"method"),this._generateTreeSlice(u,"method"));this._getMethodNamespaceCache(c),this._userMethods=u,this._userTypes=a,this._userFunctions=n;const m=this._generateTreeSlice(n,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(o,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(n,a,o){const u=this._getUserVariableCompletionItems(o),c=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(n,void 0,!0);return[...c,...m,...u,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:n,keywords:a,types:o,functions:u}=this._builtinSubtreeCache,c=this._getVariableCompletionItems(n),m=this._getKeywordCompletionItems(a),h=this._getTypeCompletionItems(o),b=this._getFunctionCompletionItems(u),g=this._getSnippetsCompletionsList();return[...c,...m,...h,...b,...this._outermostNsItems.values(),...g]}_getNodeKey(n,a){return`${a}_${n}`}_mergeTreeSlices(...n){const a=new Map;for(const o of n)for(const[u,c]of o){const m=a.get(u);m?a.set(u,{...m,children:this._mergeTreeSlices(c.children,m.children)}):a.set(u,c)}return a}_mergeCompletions(n,a){const o=this._namespaceCache.get(n);o?this._namespaceCache.set(n,[...o,...a]):this._namespaceCache.set(n,a)}_mergeUserCompletions(n,a){const o=this._userNamespaceCache.get(n);o?this._userNamespaceCache.set(n,[...o,...a]):this._userNamespaceCache.set(n,a)}_generateTreeSlice(n,a){const o=new Map;for(const[u,c]of n){const[m,...h]=u.split("."),b=h.length>0,g=o.get(this._getNodeKey(m,b?"ns":a));let x=new Map,T=c.map(L=>({...L,name:u})),R=this._getNodeKey(u,a);if(b&&a!=="type"){const L=new Map([[h.join("."),c]]);T=[{name:m,title:xe.namespace}],R=this._getNodeKey(m,"ns"),x=this._generateTreeSlice(L,a)}g&&(T=[{name:m,title:xe.namespace}],x=this._mergeTreeSlices(g.children,x)),o.set(R,{value:T,children:x})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:a,constants:o,types:u,functions:c,annotations:m}=gt,h=this._generateTreeSlice(m,"an");return h.delete("an_@version="),this._builtinSubtreeCache={keywords:this._generateTreeSlice(n,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(a,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(u,"type"),functions:this._generateTreeSlice(c,"fun"),annotations:h},this._builtinSubtreeCache}_getVariableCompletionItems(n,a){const o=[],u=[];for(const[c,m]of n){const{value:h,children:b}=m;if(c.startsWith("ns")){const g=this._getNamespaceCompletionItem(h[0]);if(a){u.push({...g});const T=`${a}.${g.label}`;g.label=T,g.insertText=T}const x=this._getVariableCompletionItems(b,g.label);a||this._outermostNsItems.set(c,g),o.push(...x)}else{const g=this._getVariableCompletionItem(h[0],a?3:2);if(a){u.push({...g});const{label:x}=g;g.label=`${a}.${x}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${x}\r`}o.push(g)}}return u.length&&a&&this._mergeCompletions(a,u),o}_setUserVariableSubItems(n,a){var g,x,T,R;let o=[];const u=Td(n.type||""),c=this._methodNamespaceCache.get(u),m=a?`${a}.${n.name}`:n.name;c&&(o=c.filter(L=>{var Z;const j=`${u}.${L.label}`,E=gt.methods.get(j)||this._userMethods.get(j),V=E==null?void 0:E.some(G=>!G.thisType||G.thisType[0].includes("<>")||G.thisType.includes(n.type||""));if(V&&E){const G=this._getNamedArgumentsCompletionList(((Z=E[0])==null?void 0:Z.args)||[]),F=`${m}.${L.label}`;this._userFuncArgsCache.set(F,G),this._methodFuncs.set(F,E)}return V}));const{types:h}=gt,b=((x=(g=this._userTypes.get(u))==null?void 0:g[0])==null?void 0:x.fields)||((R=(T=h.get(u))==null?void 0:T[0])==null?void 0:R.fields);if(b)for(const L of b){const j=L.name,E=L.type,V=this._getInstanceTypeCompletionItemProp({name:j,type:E});this._setUserVariableSubItems({name:j,type:E},n.name),o.push({...V})}o.length&&this._mergeUserCompletions(m,o)}_getUserVariableCompletionItems(n,a){const o=[],u=[];for(const[c,m]of n){const{value:h,children:b}=m;if(this._setUserVariableSubItems(h[0]),c.startsWith("ns")){const g=this._getNamespaceCompletionItem(h[0]);if(a){u.push({...g});const T=`${a}.${g.label}`;g.label=T,g.insertText=T}const x=this._getUserVariableCompletionItems(b,g.label);a||this._userOutermostNsItems.set(c,g),o.push(...x)}else{const g=this._getVariableCompletionItem(h[0],a?2:1,!1);if(a){u.push({...g});const{label:x}=g;g.label=`${a}.${x}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${x}\r`}o.push(g)}}return u.length&&a&&this._mergeUserCompletions(a,u),o}_getTypeCompletionItems(n,a=!1){const o=[];for(const[,u]of n){const{value:c}=u,m=a?this._getCustomTypeCompletionItem(c[0]):this._getTypeCompletionItem(c[0]);o.push(m)}return o}_getAnnotationCompletionItems(n){const a=[];for(const[,o]of n){const{value:u}=o,c=this._getAnnotationCompletionItem(u[0]);a.push(c)}return a}_getKeywordCompletionItems(n){const a=[];for(const[,o]of n){const{value:u}=o,c=this._getKeywordCompletionItem(u[0]);a.push(c)}return a}_getMethodNamespaceCache(n,a){const o=[];for(const[u,c]of n){const{value:m,children:h}=c;if(u.startsWith("ns")){const b=this._getNamespaceCompletionItem(m[0]);if(a){o.push({...b});const g=`${a}.${b.label}`;b.label=g,b.insertText=g}this._getMethodNamespaceCache(h,b.label)}else{const b=this._getFunctionCompletionItem(m[0],a?3:2);if(m.length>1&&(b.detail=`${b.detail} (+${m.length-1} overloads)`),a){o.push({...b});const{label:g}=b;b.label=`${a}.${g}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${g}\r`}}}a&&this._methodNamespaceCache.set(a,o)}_getFunctionCompletionItems(n,a,o=!1){const u=[],c=[];for(const[m,h]of n){const{value:b,children:g}=h;if(m.startsWith("ns")){const x=this._getNamespaceCompletionItem(b[0]);if(a){c.push({...x});const R=`${a}.${x.label}`;x.label=R,x.insertText=R}const T=this._getFunctionCompletionItems(g,x.label,o);a||(o?this._userOutermostNsItems.set(m,x):this._outermostNsItems.set(m,x)),u.push(...T)}else{const x=this._getFunctionCompletionItem(b[0],a?3:2,!o);if(b.length>1&&(x.detail=`${x.detail} (+${b.length-1} overloads)`),a){c.push({...x});const{label:T}=x;x.label=`${a}.${T}`,x.insertText=`${a}.${x.insertText}`,x.filterText=`${T}\r`}u.push(x)}}return c.length&&a&&(o?this._mergeUserCompletions(a,c):this._mergeCompletions(a,c)),u}_getSnippetsCompletionsList(){return yd.map(n=>{const{label:a,kind:o,insertText:u}=n,c=a.charAt(0).toUpperCase()+a.substring(1),m={value:this._formatter.pineCode(u.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:a,detail:`(${c} ${o})`,insertText:u,insertTextRules:qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:qe.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(n,a){for(const[o,u]of n){const{name:c}=u.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${c}`:c);else{const m=new Map;u.value.reduce((g,x)=>{const T=x.args;return T&&T.length&&T.forEach(R=>{g.set(R.name,R)}),g},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),b=a?`${a}.${c}`:c;this._funcArgsCache.set(b,h)}}}_getUserFuncArgumentsCompletionItemsToCache(n,a){for(const[o,u]of n){const{name:c}=u.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${c}`:c);else{const m=new Map;u.value.reduce((g,x)=>{const T=x.args;return T&&T.length&&T.forEach(R=>{g.set(R.name,R)}),g},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),b=a?`${a}.${c}`:c;this._userFuncArgsCache.set(b,h)}}}_getNamedArgumentsCompletionList(n){return n.map(a=>{const{name:o,desc:u,displayType:c}=a,m=`${o} = `,h=Array.isArray(u)?u.join(this._formatter.delimiter):u||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(xe.Description),this._formatter.lineBreak,h)},insertText:m,detail:`(${xe.parameter}) ${xe.types} ${c}`,kind:qe.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(n,a=2,o=!0){const u=this._extractExamples(n),c=this._extractDescription(n),m=[this._createDescriptionSection(c)];u.length?m.push(this._createExampleSection(u)):n.syntax&&n.syntax.length&&m.push(this._createSyntaxSection(n.syntax));const h={value:m.join(this._formatter.lineBreak)},b=o?xe.variables:xe.userDefinedVariable;return{documentation:h,label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Variable,sortText:`${a}_${n.name}`,detail:`(${b}) ${n.type}`}}_getKeywordCompletionItem(n,a=2){const o=this._extractExamples(n),u=this._extractDescription(n),c=[this._createDescriptionSection(u)];return o.length?c.push(this._createExampleSection(o)):n.syntax&&n.syntax.length&&c.push(this._createSyntaxSection(n.syntax)),{documentation:{value:c.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Keyword,sortText:`${a}_${n.name}`,detail:`(${xe.keywords})`}}_getTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Keyword,sortText:`1_${n.name}`,detail:`(${xe.types})`}}_getCustomTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Keyword,sortText:`2_${n.name}`,detail:`(${xe.userDefinedType})`}}_getInstanceTypeCompletionItemProp(n){const a=this._extractDescription(n),o=[];return a&&o.push(this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,a)),{documentation:{value:o.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Field,sortText:`2_${n.name}`,detail:`(${xe.field}) ${n.type}`}}_getFunctionCompletionItem(n,a=2,o=!0){var L;const u=n.returnedTypes&&n.returnedTypes[0]||n.syntax&&n.syntax[0]&&((L=n.syntax[0].split("→").pop())==null?void 0:L.trim()),c=this._extractExamples(n),m=this._extractDescription(n),h=[this._createDescriptionSection(m)];c.length?h.push(this._createExampleSection(c)):n.syntax&&n.syntax.length&&h.push(this._createSyntaxSection(n.syntax)),n.returns&&n.returns.length&&h.push(this._createReturnSection(n.returns));const b={value:h.join(this._formatter.lineBreak)},g=n.name,x=o?xe.functions:xe.userDefinedFunction,T=n.template,R=T?`${bd(g)}<\${1}>`:g;return{documentation:b,label:T?`${g.replace(/<.+>/,"")}<type>`:g,kind:qe.languages.CompletionItemKind.Function,sortText:`${a}_${g}`,insertTextRules:qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:R+this.bracketsPostfix,originInsertText:R,detail:`(${x}) ${xe.returns} ${u}`,command:{id:"tcc.editor.function",title:"",arguments:[T?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getAnnotationCompletionItem(n){const a=this._extractDescription(n),o=this._extractExamples(n),u=[this._createDescriptionSection(a)];return o.length&&u.push(this._createExampleSection(o)),{documentation:{value:u.join(this._formatter.lineBreak)},label:n.name,insertText:n.name.replace("@",""),kind:qe.languages.CompletionItemKind.Keyword,detail:`(${xe.annotations})`}}_getNamespaceCompletionItem(n,a=2){const o=[this._createDescriptionSection(xe.namespaceDesc)];return{label:n.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${xe.namespace}) ${n.name}`,insertText:n.name,sortText:`${a}_${n.name}`,kind:qe.languages.CompletionItemKind.Module}}_extractExamples(n){let a;return n.examples||n.detailedDesc&&((a=n.detailedDesc[0])===null||a===void 0?void 0:a.examples)||[]}_extractDescription(n){return Array.isArray(n.desc)?n.desc.join(this._formatter.lineBreak):n.desc||""}_createExampleSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,n)}}const St=new kd;class Dd{constructor(){Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userVariables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_overloadsFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._userFunctions=new Map,this._userVariables=new Map,this._userTypes=new Map,this._userMethods=new Map,this._overloadsFuncs=[]}setUserDefined(n,a){const{functions:o,variables:u,types:c,methods:m}=n;o&&(this._userFunctions=o),u&&(this._userVariables=u),c&&(this._userTypes=c),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(n,a,o,u){let c=(o==null?void 0:o.getLineContent(a))||"";const m=c.indexOf("//");if(this._removeString(c).indexOf("//")!==-1&&m<=n)return;c=c+" ";const h=this._getVariablesDocVal(c,n,a);if(h){if(h.isBuildIn){const x=o==null?void 0:o.getWordAtPosition(u||new qe.Position(a,n));if(((o==null?void 0:o.getValueInRange({startLineNumber:a,startColumn:(x==null?void 0:x.endColumn)||0,endLineNumber:a,endColumn:((x==null?void 0:x.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return h}const b=this._getFuncsDocVal(c,n,a);if(b)return b;const g=c.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(g){const x=this._matchContent(g,c,n);if(x){const T=this._getBuildInOther(x.name);if(T)return{docValue:T,isBuildIn:!0,index:0};{const R=this._getBuildInFunc(`${x.name}<type>`);if(R)return{docValue:R,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(n){return gt.functions.get(n)}_getBuildInMethod(n){return gt.methods.get(n)}_getBuildInOther(n){const{keywords:a,variables:o,constants:u,types:c}=gt;return a.get(n)||o.get(n)||u.get(n)||c.get(n)}parseCurrentInputFunc(n,a=!1,o=!1){let u=n.length-1,c=0,m=a,h=o;for(;u>=0;){const b=n.charAt(u);if(u-=1,/['"]/.test(b)){const g=b;if(b==="'"){if(m){m=!1;continue}}else if(h){h=!1;continue}for(;u>=0;){const x=n.charAt(u);if(u-=1,x===g)break}}if(!(m||h)&&(/\)/.test(b)&&(c+=1),/\(/.test(b))){if(c>0){c-=1;continue}let g="";for(;u>=0;){const x=n.charAt(u);if(u-=1,!(/\s/.test(x)&&!g)){if(/[^\w.]/.test(x))break;g=x+g}}if(g)return{funcName:g,startIndex:u+1}}}}parseCurrentInputFuncAndArg(n,a=!1,o=!1){const{funcName:u,startIndex:c}=this.parseCurrentInputFunc(n,a,o)||{};if(u&&typeof c=="number"){let m=n.slice(c+u.length).trim().slice(1),h=-1;if(a&&(h=m.lastIndexOf("'")),o){const x=m.lastIndexOf('"');(x!==-1&&x<h||h===-1)&&(h=x)}h!==-1&&(m=m.substring(0,h));const g=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(x=>{const T=x.trim().split("=");return T.length<=1?"":T[0].trim()});return{funcName:u,args:g}}}_removeString(n){return n.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(n,a,o){const u=this._removeString(n).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(u){const c=this._matchContent(u,n,a);if(c){const m={docValue:void 0,isBuildIn:!0,index:0},h=this._getBuildInOther(c.name);if(h)return m.docValue=h,m;const b=this._getUserVariablesDocVal(c.name,a,o);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1});const g=this._getUserTypesDocVal(c.name);if(g)return Object.assign(m,{docValue:g,isBuildIn:!1});const x=this._getTypesAndFileds(n,c.name,a,o);if(x&&typeof x!="string")return Object.assign(m,{docValue:[x],isBuildIn:!1})}}}_getUserVariablesDocVal(n,a,o){const m=[...this._userVariables.get(n)||[]].sort((h,b)=>(b.scope||0)-(h.scope||0)).find(h=>{const b=h.range;return((b==null?void 0:b.startColumn)||0)<=a&&((b==null?void 0:b.startLineNumber)||0)<=o&&((b==null?void 0:b.endLineNumber)||0)>=o});if(m)return m.title=xe.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(n){const a=this._userTypes.get(n);if(a)return a[0].title=xe.userDefinedType,a}_getTypesAndFileds(n,a,o,u){var c,m;if(a.includes(".")){const h=a.split(".");let b=h[0],g,x=null,T=n.indexOf(a,o-a.length)+1,R=T+b.length-1;for(const L of h.slice(1)){if(!x){const j=T<=o&&R>=o,E=this._getUserVariablesDocVal(b,o,u);if(j&&E)return E;x=E==null?void 0:E.type}if(x){g=x,T=R+2,R=R+L.length+1;const j=this._userTypes.get(x)||gt.types.get(x),E=(m=(c=j==null?void 0:j[0])==null?void 0:c.fields)==null?void 0:m.find(V=>V.name===L);if(E&&T<=o&&R>=o)return{name:`${x}.${L}`,desc:E.desc,type:this._arrayTypeTransform(E.type),title:xe.field};x=E==null?void 0:E.type}else b=`${b}.${L}`,R=R+L.length+1}return g}}_getFuncsDocVal(n,a,o){const u=n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(u){const c=this._matchContent(u,n,a);if(c){const m={docValue:void 0,isBuildIn:!0,endIndex:c.endIndex,index:0},h=this._getBuildInFunc(c.name);if(h)return m.index=this._getOverloadsFuncIndex(h,a,c.name,o),Object.assign(m,{docValue:h});const b=this._getUserFuncsDocVal(c.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const g=this._getUserVarFuncsDocVal(n,c.name,a,o);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1})}}}_getOverloadsFuncIndex(n,a,o,u){if(n.length>1){const c=this._overloadsFuncs.find(m=>m.name===o&&m.line===u&&m.startColumn<=a&&m.endColumn>=a);if(c)return c.index}return 0}_getUserFuncsDocVal(n){const a=this._userFunctions.get(n);if(a)return a[0].title=xe.userDefinedFunction,a}_getUserMethodsDocVal(n){const a=this._userMethods.get(n);if(a)return a[0].title=xe.userDefinedMethod,a}_getUserVarFuncsDocVal(n,a,o,u){var c;if(a.includes(".")){const m=a.split("."),h=this._getTypesAndFileds(n,a,o,u);if(typeof h=="string"){const g=`${this._arrayTypeTransform(h).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,x=this._getBuildInMethod(g);if(x){const T=this._getOverloadsFuncIndex(x,o,g,u);return{...x[0],name:g,index:T}}return(c=this._getUserMethodsDocVal(g))==null?void 0:c[0]}else return h}}_arrayTypeTransform(n=""){return n.includes("[]")?`array<${n.replace("[]","")}>`:n}_matchContent(n,a,o){let u=0;for(const c of n){u=o-c.length;const m=a.indexOf(c,u);if(u=m+c.length,this._judgeVal(a,m,u)&&m+1<=o&&u>=o)return{name:c,endIndex:u}}}_judgeVal(n,a,o){const u=n.charAt(a-1),c=/[\w\d."']/;if(c.test(u))return!1;const m=n.charAt(o);return!c.test(m)}}const Nr=new Dd;var $a={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
- */$a.exports,function(s,n){(function(){var a,o="4.17.21",u=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",h="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",g=500,x="__lodash_placeholder__",T=1,R=2,L=4,j=1,E=2,V=1,J=2,G=4,F=8,A=16,k=32,B=64,H=128,le=256,ie=512,ce=30,bt="...",zt=800,Me=16,Fe=1,Y=2,he=3,Oe=1/0,Le=9007199254740991,lt=17976931348623157e292,je=NaN,te=4294967295,Te=te-1,We=te>>>1,Ht=[["ary",H],["bind",V],["bindKey",J],["curry",F],["curryRight",A],["flip",ie],["partial",k],["partialRight",B],["rearg",le]],Qe="[object Arguments]",nr="[object Array]",ma="[object AsyncFunction]",Ft="[object Boolean]",$t="[object Date]",Pr="[object DOMException]",Er="[object Error]",br="[object Function]",rs="[object GeneratorFunction]",ct="[object Map]",jt="[object Number]",Rr="[object Null]",xt="[object Object]",fa="[object Promise]",Lr="[object Proxy]",xr="[object RegExp]",ut="[object Set]",Xt="[object String]",Mr="[object Symbol]",wn="[object Undefined]",ir="[object WeakMap]",as="[object WeakSet]",Nt="[object ArrayBuffer]",or="[object DataView]",Fr="[object Float32Array]",jr="[object Float64Array]",wr="[object Int8Array]",ya="[object Int16Array]",ha="[object Int32Array]",_a="[object Uint8Array]",ga="[object Uint8ClampedArray]",ba="[object Uint16Array]",xa="[object Uint32Array]",vn=/\b__p \+= '';/g,wa=/\b(__p \+=) '' \+/g,ss=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gt=/&(?:amp|lt|gt|quot|#39);/g,Br=/[&<>"']/g,va=RegExp(Gt.source),ns=RegExp(Br.source),Tn=/<%-([\s\S]+?)%>/g,is=/<%([\s\S]+?)%>/g,os=/<%=([\s\S]+?)%>/g,ls=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cs=/^\w*$/,In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,us=RegExp(Ta.source),Ia=/^\s+/,kn=/\s/,Dn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,An=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,O=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,U=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,ye=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,ue=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,Ce=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ot=/($^)/,ds=/['\n\r\u2028\u2029\\]/g,rt="\\ud800-\\udfff",Mp="\\u0300-\\u036f",Fp="\\ufe20-\\ufe2f",jp="\\u20d0-\\u20ff",No=Mp+Fp+jp,Oo="\\u2700-\\u27bf",Po="a-z\\xdf-\\xf6\\xf8-\\xff",Bp="\\xac\\xb1\\xd7\\xf7",Up="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wp="\\u2000-\\u206f",Hp=" \\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",Eo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ro="\\ufe0e\\ufe0f",Lo=Bp+Up+Wp+Hp,qn="['’]",$p="["+rt+"]",Mo="["+Lo+"]",ps="["+No+"]",Fo="\\d+",Xp="["+Oo+"]",jo="["+Po+"]",Bo="[^"+rt+Lo+Fo+Oo+Po+Eo+"]",Cn="\\ud83c[\\udffb-\\udfff]",Gp="(?:"+ps+"|"+Cn+")",Uo="[^"+rt+"]",Sn="(?:\\ud83c[\\udde6-\\uddff]){2}",zn="[\\ud800-\\udbff][\\udc00-\\udfff]",Ur="["+Eo+"]",Wo="\\u200d",Ho="(?:"+jo+"|"+Bo+")",Vp="(?:"+Ur+"|"+Bo+")",$o="(?:"+qn+"(?:d|ll|m|re|s|t|ve))?",Xo="(?:"+qn+"(?:D|LL|M|RE|S|T|VE))?",Go=Gp+"?",Vo="["+Ro+"]?",Yp="(?:"+Wo+"(?:"+[Uo,Sn,zn].join("|")+")"+Vo+Go+")*",Kp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yo=Vo+Go+Yp,Zp="(?:"+[Xp,Sn,zn].join("|")+")"+Yo,Jp="(?:"+[Uo+ps+"?",ps,Sn,zn,$p].join("|")+")",em=RegExp(qn,"g"),tm=RegExp(ps,"g"),Nn=RegExp(Cn+"(?="+Cn+")|"+Jp+Yo,"g"),rm=RegExp([Ur+"?"+jo+"+"+$o+"(?="+[Mo,Ur,"$"].join("|")+")",Vp+"+"+Xo+"(?="+[Mo,Ur+Ho,"$"].join("|")+")",Ur+"?"+Ho+"+"+$o,Ur+"+"+Xo,Qp,Kp,Fo,Zp].join("|"),"g"),am=RegExp("["+Wo+rt+No+Ro+"]"),sm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nm=["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"],im=-1,De={};De[Fr]=De[jr]=De[wr]=De[ya]=De[ha]=De[_a]=De[ga]=De[ba]=De[xa]=!0,De[Qe]=De[nr]=De[Nt]=De[Ft]=De[or]=De[$t]=De[Er]=De[br]=De[ct]=De[jt]=De[xt]=De[xr]=De[ut]=De[Xt]=De[ir]=!1;var ke={};ke[Qe]=ke[nr]=ke[Nt]=ke[or]=ke[Ft]=ke[$t]=ke[Fr]=ke[jr]=ke[wr]=ke[ya]=ke[ha]=ke[ct]=ke[jt]=ke[xt]=ke[xr]=ke[ut]=ke[Xt]=ke[Mr]=ke[_a]=ke[ga]=ke[ba]=ke[xa]=!0,ke[Er]=ke[br]=ke[ir]=!1;var om={À:"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"},lm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},um={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dm=parseFloat,pm=parseInt,Ko=typeof ra=="object"&&ra&&ra.Object===Object&&ra,mm=typeof self=="object"&&self&&self.Object===Object&&self,Xe=Ko||mm||Function("return this")(),On=n&&!n.nodeType&&n,vr=On&&!0&&s&&!s.nodeType&&s,Qo=vr&&vr.exports===On,Pn=Qo&&Ko.process,wt=function(){try{var w=vr&&vr.require&&vr.require("util").types;return w||Pn&&Pn.binding&&Pn.binding("util")}catch{}}(),Zo=wt&&wt.isArrayBuffer,Jo=wt&&wt.isDate,el=wt&&wt.isMap,tl=wt&&wt.isRegExp,rl=wt&&wt.isSet,al=wt&&wt.isTypedArray;function dt(w,q,I){switch(I.length){case 0:return w.call(q);case 1:return w.call(q,I[0]);case 2:return w.call(q,I[0],I[1]);case 3:return w.call(q,I[0],I[1],I[2])}return w.apply(q,I)}function fm(w,q,I,$){for(var re=-1,_e=w==null?0:w.length;++re<_e;){var Be=w[re];q($,Be,I(Be),w)}return $}function vt(w,q){for(var I=-1,$=w==null?0:w.length;++I<$&&q(w[I],I,w)!==!1;);return w}function ym(w,q){for(var I=w==null?0:w.length;I--&&q(w[I],I,w)!==!1;);return w}function sl(w,q){for(var I=-1,$=w==null?0:w.length;++I<$;)if(!q(w[I],I,w))return!1;return!0}function lr(w,q){for(var I=-1,$=w==null?0:w.length,re=0,_e=[];++I<$;){var Be=w[I];q(Be,I,w)&&(_e[re++]=Be)}return _e}function ms(w,q){var I=w==null?0:w.length;return!!I&&Wr(w,q,0)>-1}function En(w,q,I){for(var $=-1,re=w==null?0:w.length;++$<re;)if(I(q,w[$]))return!0;return!1}function Ae(w,q){for(var I=-1,$=w==null?0:w.length,re=Array($);++I<$;)re[I]=q(w[I],I,w);return re}function cr(w,q){for(var I=-1,$=q.length,re=w.length;++I<$;)w[re+I]=q[I];return w}function Rn(w,q,I,$){var re=-1,_e=w==null?0:w.length;for($&&_e&&(I=w[++re]);++re<_e;)I=q(I,w[re],re,w);return I}function hm(w,q,I,$){var re=w==null?0:w.length;for($&&re&&(I=w[--re]);re--;)I=q(I,w[re],re,w);return I}function Ln(w,q){for(var I=-1,$=w==null?0:w.length;++I<$;)if(q(w[I],I,w))return!0;return!1}var _m=Mn("length");function gm(w){return w.split("")}function bm(w){return w.match(O)||[]}function nl(w,q,I){var $;return I(w,function(re,_e,Be){if(q(re,_e,Be))return $=_e,!1}),$}function fs(w,q,I,$){for(var re=w.length,_e=I+($?1:-1);$?_e--:++_e<re;)if(q(w[_e],_e,w))return _e;return-1}function Wr(w,q,I){return q===q?zm(w,q,I):fs(w,il,I)}function xm(w,q,I,$){for(var re=I-1,_e=w.length;++re<_e;)if($(w[re],q))return re;return-1}function il(w){return w!==w}function ol(w,q){var I=w==null?0:w.length;return I?jn(w,q)/I:je}function Mn(w){return function(q){return q==null?a:q[w]}}function Fn(w){return function(q){return w==null?a:w[q]}}function ll(w,q,I,$,re){return re(w,function(_e,Be,Ie){I=$?($=!1,_e):q(I,_e,Be,Ie)}),I}function wm(w,q){var I=w.length;for(w.sort(q);I--;)w[I]=w[I].value;return w}function jn(w,q){for(var I,$=-1,re=w.length;++$<re;){var _e=q(w[$]);_e!==a&&(I=I===a?_e:I+_e)}return I}function Bn(w,q){for(var I=-1,$=Array(w);++I<w;)$[I]=q(I);return $}function vm(w,q){return Ae(q,function(I){return[I,w[I]]})}function cl(w){return w&&w.slice(0,ml(w)+1).replace(Ia,"")}function pt(w){return function(q){return w(q)}}function Un(w,q){return Ae(q,function(I){return w[I]})}function ka(w,q){return w.has(q)}function ul(w,q){for(var I=-1,$=w.length;++I<$&&Wr(q,w[I],0)>-1;);return I}function dl(w,q){for(var I=w.length;I--&&Wr(q,w[I],0)>-1;);return I}function Tm(w,q){for(var I=w.length,$=0;I--;)w[I]===q&&++$;return $}var Im=Fn(om),km=Fn(lm);function Dm(w){return"\\"+um[w]}function Am(w,q){return w==null?a:w[q]}function Hr(w){return am.test(w)}function qm(w){return sm.test(w)}function Cm(w){for(var q,I=[];!(q=w.next()).done;)I.push(q.value);return I}function Wn(w){var q=-1,I=Array(w.size);return w.forEach(function($,re){I[++q]=[re,$]}),I}function pl(w,q){return function(I){return w(q(I))}}function ur(w,q){for(var I=-1,$=w.length,re=0,_e=[];++I<$;){var Be=w[I];(Be===q||Be===x)&&(w[I]=x,_e[re++]=I)}return _e}function ys(w){var q=-1,I=Array(w.size);return w.forEach(function($){I[++q]=$}),I}function Sm(w){var q=-1,I=Array(w.size);return w.forEach(function($){I[++q]=[$,$]}),I}function zm(w,q,I){for(var $=I-1,re=w.length;++$<re;)if(w[$]===q)return $;return-1}function Nm(w,q,I){for(var $=I+1;$--;)if(w[$]===q)return $;return $}function $r(w){return Hr(w)?Pm(w):_m(w)}function Pt(w){return Hr(w)?Em(w):gm(w)}function ml(w){for(var q=w.length;q--&&kn.test(w.charAt(q)););return q}var Om=Fn(cm);function Pm(w){for(var q=Nn.lastIndex=0;Nn.test(w);)++q;return q}function Em(w){return w.match(Nn)||[]}function Rm(w){return w.match(rm)||[]}var Lm=function w(q){q=q==null?Xe:Xr.defaults(Xe.Object(),q,Xr.pick(Xe,nm));var I=q.Array,$=q.Date,re=q.Error,_e=q.Function,Be=q.Math,Ie=q.Object,Hn=q.RegExp,Mm=q.String,Tt=q.TypeError,hs=I.prototype,Fm=_e.prototype,Gr=Ie.prototype,_s=q["__core-js_shared__"],gs=Fm.toString,ve=Gr.hasOwnProperty,jm=0,fl=function(){var e=/[^.]+$/.exec(_s&&_s.keys&&_s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),bs=Gr.toString,Bm=gs.call(Ie),Um=Xe._,Wm=Hn("^"+gs.call(ve).replace(Ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xs=Qo?q.Buffer:a,dr=q.Symbol,ws=q.Uint8Array,yl=xs?xs.allocUnsafe:a,vs=pl(Ie.getPrototypeOf,Ie),hl=Ie.create,_l=Gr.propertyIsEnumerable,Ts=hs.splice,gl=dr?dr.isConcatSpreadable:a,Da=dr?dr.iterator:a,Tr=dr?dr.toStringTag:a,Is=function(){try{var e=qr(Ie,"defineProperty");return e({},"",{}),e}catch{}}(),Hm=q.clearTimeout!==Xe.clearTimeout&&q.clearTimeout,$m=$&&$.now!==Xe.Date.now&&$.now,Xm=q.setTimeout!==Xe.setTimeout&&q.setTimeout,ks=Be.ceil,Ds=Be.floor,$n=Ie.getOwnPropertySymbols,Gm=xs?xs.isBuffer:a,bl=q.isFinite,Vm=hs.join,Ym=pl(Ie.keys,Ie),Ue=Be.max,Ye=Be.min,Km=$.now,Qm=q.parseInt,xl=Be.random,Zm=hs.reverse,Xn=qr(q,"DataView"),Aa=qr(q,"Map"),Gn=qr(q,"Promise"),Vr=qr(q,"Set"),qa=qr(q,"WeakMap"),Ca=qr(Ie,"create"),As=qa&&new qa,Yr={},Jm=Cr(Xn),ef=Cr(Aa),tf=Cr(Gn),rf=Cr(Vr),af=Cr(qa),qs=dr?dr.prototype:a,Sa=qs?qs.valueOf:a,wl=qs?qs.toString:a;function d(e){if(Ne(e)&&!ae(e)&&!(e instanceof me)){if(e instanceof It)return e;if(ve.call(e,"__wrapped__"))return vc(e)}return new It(e)}var Kr=function(){function e(){}return function(t){if(!Se(t))return{};if(hl)return hl(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Cs(){}function It(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}d.templateSettings={escape:Tn,evaluate:is,interpolate:os,variable:"",imports:{_:d}},d.prototype=Cs.prototype,d.prototype.constructor=d,It.prototype=Kr(Cs.prototype),It.prototype.constructor=It;function me(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function sf(){var e=new me(this.__wrapped__);return e.__actions__=at(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=at(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=at(this.__views__),e}function nf(){if(this.__filtered__){var e=new me(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function of(){var e=this.__wrapped__.value(),t=this.__dir__,r=ae(e),i=t<0,l=r?e.length:0,p=by(0,l,this.__views__),f=p.start,_=p.end,v=_-f,S=i?_:f-1,z=this.__iteratees__,N=z.length,W=0,X=Ye(v,this.__takeCount__);if(!r||!i&&l==v&&X==v)return $l(e,this.__actions__);var Q=[];e:for(;v--&&W<X;){S+=t;for(var ne=-1,Z=e[S];++ne<N;){var de=z[ne],fe=de.iteratee,yt=de.type,et=fe(Z);if(yt==Y)Z=et;else if(!et){if(yt==Fe)continue e;break e}}Q[W++]=Z}return Q}me.prototype=Kr(Cs.prototype),me.prototype.constructor=me;function Ir(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 lf(){this.__data__=Ca?Ca(null):{},this.size=0}function cf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function uf(e){var t=this.__data__;if(Ca){var r=t[e];return r===b?a:r}return ve.call(t,e)?t[e]:a}function df(e){var t=this.__data__;return Ca?t[e]!==a:ve.call(t,e)}function pf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ca&&t===a?b:t,this}Ir.prototype.clear=lf,Ir.prototype.delete=cf,Ir.prototype.get=uf,Ir.prototype.has=df,Ir.prototype.set=pf;function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function mf(){this.__data__=[],this.size=0}function ff(e){var t=this.__data__,r=Ss(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Ts.call(t,r,1),--this.size,!0}function yf(e){var t=this.__data__,r=Ss(t,e);return r<0?a:t[r][1]}function hf(e){return Ss(this.__data__,e)>-1}function _f(e,t){var r=this.__data__,i=Ss(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}Vt.prototype.clear=mf,Vt.prototype.delete=ff,Vt.prototype.get=yf,Vt.prototype.has=hf,Vt.prototype.set=_f;function Yt(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 gf(){this.size=0,this.__data__={hash:new Ir,map:new(Aa||Vt),string:new Ir}}function bf(e){var t=Us(this,e).delete(e);return this.size-=t?1:0,t}function xf(e){return Us(this,e).get(e)}function wf(e){return Us(this,e).has(e)}function vf(e,t){var r=Us(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Yt.prototype.clear=gf,Yt.prototype.delete=bf,Yt.prototype.get=xf,Yt.prototype.has=wf,Yt.prototype.set=vf;function kr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Yt;++t<r;)this.add(e[t])}function Tf(e){return this.__data__.set(e,b),this}function If(e){return this.__data__.has(e)}kr.prototype.add=kr.prototype.push=Tf,kr.prototype.has=If;function Et(e){var t=this.__data__=new Vt(e);this.size=t.size}function kf(){this.__data__=new Vt,this.size=0}function Df(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Af(e){return this.__data__.get(e)}function qf(e){return this.__data__.has(e)}function Cf(e,t){var r=this.__data__;if(r instanceof Vt){var i=r.__data__;if(!Aa||i.length<u-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Yt(i)}return r.set(e,t),this.size=r.size,this}Et.prototype.clear=kf,Et.prototype.delete=Df,Et.prototype.get=Af,Et.prototype.has=qf,Et.prototype.set=Cf;function vl(e,t){var r=ae(e),i=!r&&Sr(e),l=!r&&!i&&hr(e),p=!r&&!i&&!l&&ea(e),f=r||i||l||p,_=f?Bn(e.length,Mm):[],v=_.length;for(var S in e)(t||ve.call(e,S))&&!(f&&(S=="length"||l&&(S=="offset"||S=="parent")||p&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||Jt(S,v)))&&_.push(S);return _}function Tl(e){var t=e.length;return t?e[si(0,t-1)]:a}function Sf(e,t){return Ws(at(e),Dr(t,0,e.length))}function zf(e){return Ws(at(e))}function Vn(e,t,r){(r!==a&&!Rt(e[t],r)||r===a&&!(t in e))&&Kt(e,t,r)}function za(e,t,r){var i=e[t];(!(ve.call(e,t)&&Rt(i,r))||r===a&&!(t in e))&&Kt(e,t,r)}function Ss(e,t){for(var r=e.length;r--;)if(Rt(e[r][0],t))return r;return-1}function Nf(e,t,r,i){return pr(e,function(l,p,f){t(i,l,r(l),f)}),i}function Il(e,t){return e&&Ut(t,He(t),e)}function Of(e,t){return e&&Ut(t,nt(t),e)}function Kt(e,t,r){t=="__proto__"&&Is?Is(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Yn(e,t){for(var r=-1,i=t.length,l=I(i),p=e==null;++r<i;)l[r]=p?a:Ci(e,t[r]);return l}function Dr(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function kt(e,t,r,i,l,p){var f,_=t&T,v=t&R,S=t&L;if(r&&(f=l?r(e,i,l,p):r(e)),f!==a)return f;if(!Se(e))return e;var z=ae(e);if(z){if(f=wy(e),!_)return at(e,f)}else{var N=Ke(e),W=N==br||N==rs;if(hr(e))return Vl(e,_);if(N==xt||N==Qe||W&&!l){if(f=v||W?{}:mc(e),!_)return v?uy(e,Of(f,e)):cy(e,Il(f,e))}else{if(!ke[N])return l?e:{};f=vy(e,N,_)}}p||(p=new Et);var X=p.get(e);if(X)return X;p.set(e,f),Uc(e)?e.forEach(function(Z){f.add(kt(Z,t,r,Z,e,p))}):jc(e)&&e.forEach(function(Z,de){f.set(de,kt(Z,t,r,de,e,p))});var Q=S?v?yi:fi:v?nt:He,ne=z?a:Q(e);return vt(ne||e,function(Z,de){ne&&(de=Z,Z=e[de]),za(f,de,kt(Z,t,r,de,e,p))}),f}function Pf(e){var t=He(e);return function(r){return kl(r,e,t)}}function kl(e,t,r){var i=r.length;if(e==null)return!i;for(e=Ie(e);i--;){var l=r[i],p=t[l],f=e[l];if(f===a&&!(l in e)||!p(f))return!1}return!0}function Dl(e,t,r){if(typeof e!="function")throw new Tt(m);return Ma(function(){e.apply(a,r)},t)}function Na(e,t,r,i){var l=-1,p=ms,f=!0,_=e.length,v=[],S=t.length;if(!_)return v;r&&(t=Ae(t,pt(r))),i?(p=En,f=!1):t.length>=u&&(p=ka,f=!1,t=new kr(t));e:for(;++l<_;){var z=e[l],N=r==null?z:r(z);if(z=i||z!==0?z:0,f&&N===N){for(var W=S;W--;)if(t[W]===N)continue e;v.push(z)}else p(t,N,i)||v.push(z)}return v}var pr=Jl(Bt),Al=Jl(Qn,!0);function Ef(e,t){var r=!0;return pr(e,function(i,l,p){return r=!!t(i,l,p),r}),r}function zs(e,t,r){for(var i=-1,l=e.length;++i<l;){var p=e[i],f=t(p);if(f!=null&&(_===a?f===f&&!ft(f):r(f,_)))var _=f,v=p}return v}function Rf(e,t,r,i){var l=e.length;for(r=se(r),r<0&&(r=-r>l?0:l+r),i=i===a||i>l?l:se(i),i<0&&(i+=l),i=r>i?0:Hc(i);r<i;)e[r++]=t;return e}function ql(e,t){var r=[];return pr(e,function(i,l,p){t(i,l,p)&&r.push(i)}),r}function Ge(e,t,r,i,l){var p=-1,f=e.length;for(r||(r=Iy),l||(l=[]);++p<f;){var _=e[p];t>0&&r(_)?t>1?Ge(_,t-1,r,i,l):cr(l,_):i||(l[l.length]=_)}return l}var Kn=ec(),Cl=ec(!0);function Bt(e,t){return e&&Kn(e,t,He)}function Qn(e,t){return e&&Cl(e,t,He)}function Ns(e,t){return lr(t,function(r){return er(e[r])})}function Ar(e,t){t=fr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Wt(t[r++])];return r&&r==i?e:a}function Sl(e,t,r){var i=t(e);return ae(e)?i:cr(i,r(e))}function Ze(e){return e==null?e===a?wn:Rr:Tr&&Tr in Ie(e)?gy(e):zy(e)}function Zn(e,t){return e>t}function Lf(e,t){return e!=null&&ve.call(e,t)}function Mf(e,t){return e!=null&&t in Ie(e)}function Ff(e,t,r){return e>=Ye(t,r)&&e<Ue(t,r)}function Jn(e,t,r){for(var i=r?En:ms,l=e[0].length,p=e.length,f=p,_=I(p),v=1/0,S=[];f--;){var z=e[f];f&&t&&(z=Ae(z,pt(t))),v=Ye(z.length,v),_[f]=!r&&(t||l>=120&&z.length>=120)?new kr(f&&z):a}z=e[0];var N=-1,W=_[0];e:for(;++N<l&&S.length<v;){var X=z[N],Q=t?t(X):X;if(X=r||X!==0?X:0,!(W?ka(W,Q):i(S,Q,r))){for(f=p;--f;){var ne=_[f];if(!(ne?ka(ne,Q):i(e[f],Q,r)))continue e}W&&W.push(Q),S.push(X)}}return S}function jf(e,t,r,i){return Bt(e,function(l,p,f){t(i,r(l),p,f)}),i}function Oa(e,t,r){t=fr(t,e),e=_c(e,t);var i=e==null?e:e[Wt(At(t))];return i==null?a:dt(i,e,r)}function zl(e){return Ne(e)&&Ze(e)==Qe}function Bf(e){return Ne(e)&&Ze(e)==Nt}function Uf(e){return Ne(e)&&Ze(e)==$t}function Pa(e,t,r,i,l){return e===t?!0:e==null||t==null||!Ne(e)&&!Ne(t)?e!==e&&t!==t:Wf(e,t,r,i,Pa,l)}function Wf(e,t,r,i,l,p){var f=ae(e),_=ae(t),v=f?nr:Ke(e),S=_?nr:Ke(t);v=v==Qe?xt:v,S=S==Qe?xt:S;var z=v==xt,N=S==xt,W=v==S;if(W&&hr(e)){if(!hr(t))return!1;f=!0,z=!1}if(W&&!z)return p||(p=new Et),f||ea(e)?uc(e,t,r,i,l,p):hy(e,t,v,r,i,l,p);if(!(r&j)){var X=z&&ve.call(e,"__wrapped__"),Q=N&&ve.call(t,"__wrapped__");if(X||Q){var ne=X?e.value():e,Z=Q?t.value():t;return p||(p=new Et),l(ne,Z,r,i,p)}}return W?(p||(p=new Et),_y(e,t,r,i,l,p)):!1}function Hf(e){return Ne(e)&&Ke(e)==ct}function ei(e,t,r,i){var l=r.length,p=l,f=!i;if(e==null)return!p;for(e=Ie(e);l--;){var _=r[l];if(f&&_[2]?_[1]!==e[_[0]]:!(_[0]in e))return!1}for(;++l<p;){_=r[l];var v=_[0],S=e[v],z=_[1];if(f&&_[2]){if(S===a&&!(v in e))return!1}else{var N=new Et;if(i)var W=i(S,z,v,e,t,N);if(!(W===a?Pa(z,S,j|E,i,N):W))return!1}}return!0}function Nl(e){if(!Se(e)||Dy(e))return!1;var t=er(e)?Wm:$e;return t.test(Cr(e))}function $f(e){return Ne(e)&&Ze(e)==xr}function Xf(e){return Ne(e)&&Ke(e)==ut}function Gf(e){return Ne(e)&&Ys(e.length)&&!!De[Ze(e)]}function Ol(e){return typeof e=="function"?e:e==null?it:typeof e=="object"?ae(e)?Rl(e[0],e[1]):El(e):tu(e)}function ti(e){if(!La(e))return Ym(e);var t=[];for(var r in Ie(e))ve.call(e,r)&&r!="constructor"&&t.push(r);return t}function Vf(e){if(!Se(e))return Sy(e);var t=La(e),r=[];for(var i in e)i=="constructor"&&(t||!ve.call(e,i))||r.push(i);return r}function ri(e,t){return e<t}function Pl(e,t){var r=-1,i=st(e)?I(e.length):[];return pr(e,function(l,p,f){i[++r]=t(l,p,f)}),i}function El(e){var t=_i(e);return t.length==1&&t[0][2]?yc(t[0][0],t[0][1]):function(r){return r===e||ei(r,e,t)}}function Rl(e,t){return bi(e)&&fc(t)?yc(Wt(e),t):function(r){var i=Ci(r,e);return i===a&&i===t?Si(r,e):Pa(t,i,j|E)}}function Os(e,t,r,i,l){e!==t&&Kn(t,function(p,f){if(l||(l=new Et),Se(p))Yf(e,t,f,r,Os,i,l);else{var _=i?i(wi(e,f),p,f+"",e,t,l):a;_===a&&(_=p),Vn(e,f,_)}},nt)}function Yf(e,t,r,i,l,p,f){var _=wi(e,r),v=wi(t,r),S=f.get(v);if(S){Vn(e,r,S);return}var z=p?p(_,v,r+"",e,t,f):a,N=z===a;if(N){var W=ae(v),X=!W&&hr(v),Q=!W&&!X&&ea(v);z=v,W||X||Q?ae(_)?z=_:Pe(_)?z=at(_):X?(N=!1,z=Vl(v,!0)):Q?(N=!1,z=Yl(v,!0)):z=[]:Fa(v)||Sr(v)?(z=_,Sr(_)?z=$c(_):(!Se(_)||er(_))&&(z=mc(v))):N=!1}N&&(f.set(v,z),l(z,v,i,p,f),f.delete(v)),Vn(e,r,z)}function Ll(e,t){var r=e.length;if(r)return t+=t<0?r:0,Jt(t,r)?e[t]:a}function Ml(e,t,r){t.length?t=Ae(t,function(p){return ae(p)?function(f){return Ar(f,p.length===1?p[0]:p)}:p}):t=[it];var i=-1;t=Ae(t,pt(K()));var l=Pl(e,function(p,f,_){var v=Ae(t,function(S){return S(p)});return{criteria:v,index:++i,value:p}});return wm(l,function(p,f){return ly(p,f,r)})}function Kf(e,t){return Fl(e,t,function(r,i){return Si(e,i)})}function Fl(e,t,r){for(var i=-1,l=t.length,p={};++i<l;){var f=t[i],_=Ar(e,f);r(_,f)&&Ea(p,fr(f,e),_)}return p}function Qf(e){return function(t){return Ar(t,e)}}function ai(e,t,r,i){var l=i?xm:Wr,p=-1,f=t.length,_=e;for(e===t&&(t=at(t)),r&&(_=Ae(e,pt(r)));++p<f;)for(var v=0,S=t[p],z=r?r(S):S;(v=l(_,z,v,i))>-1;)_!==e&&Ts.call(_,v,1),Ts.call(e,v,1);return e}function jl(e,t){for(var r=e?t.length:0,i=r-1;r--;){var l=t[r];if(r==i||l!==p){var p=l;Jt(l)?Ts.call(e,l,1):oi(e,l)}}return e}function si(e,t){return e+Ds(xl()*(t-e+1))}function Zf(e,t,r,i){for(var l=-1,p=Ue(ks((t-e)/(r||1)),0),f=I(p);p--;)f[i?p:++l]=e,e+=r;return f}function ni(e,t){var r="";if(!e||t<1||t>Le)return r;do t%2&&(r+=e),t=Ds(t/2),t&&(e+=e);while(t);return r}function oe(e,t){return vi(hc(e,t,it),e+"")}function Jf(e){return Tl(ta(e))}function ey(e,t){var r=ta(e);return Ws(r,Dr(t,0,r.length))}function Ea(e,t,r,i){if(!Se(e))return e;t=fr(t,e);for(var l=-1,p=t.length,f=p-1,_=e;_!=null&&++l<p;){var v=Wt(t[l]),S=r;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(l!=f){var z=_[v];S=i?i(z,v,_):a,S===a&&(S=Se(z)?z:Jt(t[l+1])?[]:{})}za(_,v,S),_=_[v]}return e}var Bl=As?function(e,t){return As.set(e,t),e}:it,ty=Is?function(e,t){return Is(e,"toString",{configurable:!0,enumerable:!1,value:Ni(t),writable:!0})}:it;function ry(e){return Ws(ta(e))}function Dt(e,t,r){var i=-1,l=e.length;t<0&&(t=-t>l?0:l+t),r=r>l?l:r,r<0&&(r+=l),l=t>r?0:r-t>>>0,t>>>=0;for(var p=I(l);++i<l;)p[i]=e[i+t];return p}function ay(e,t){var r;return pr(e,function(i,l,p){return r=t(i,l,p),!r}),!!r}function Ps(e,t,r){var i=0,l=e==null?i:e.length;if(typeof t=="number"&&t===t&&l<=We){for(;i<l;){var p=i+l>>>1,f=e[p];f!==null&&!ft(f)&&(r?f<=t:f<t)?i=p+1:l=p}return l}return ii(e,t,it,r)}function ii(e,t,r,i){var l=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var f=t!==t,_=t===null,v=ft(t),S=t===a;l<p;){var z=Ds((l+p)/2),N=r(e[z]),W=N!==a,X=N===null,Q=N===N,ne=ft(N);if(f)var Z=i||Q;else S?Z=Q&&(i||W):_?Z=Q&&W&&(i||!X):v?Z=Q&&W&&!X&&(i||!ne):X||ne?Z=!1:Z=i?N<=t:N<t;Z?l=z+1:p=z}return Ye(p,Te)}function Ul(e,t){for(var r=-1,i=e.length,l=0,p=[];++r<i;){var f=e[r],_=t?t(f):f;if(!r||!Rt(_,v)){var v=_;p[l++]=f===0?0:f}}return p}function Wl(e){return typeof e=="number"?e:ft(e)?je:+e}function mt(e){if(typeof e=="string")return e;if(ae(e))return Ae(e,mt)+"";if(ft(e))return wl?wl.call(e):"";var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function mr(e,t,r){var i=-1,l=ms,p=e.length,f=!0,_=[],v=_;if(r)f=!1,l=En;else if(p>=u){var S=t?null:fy(e);if(S)return ys(S);f=!1,l=ka,v=new kr}else v=t?[]:_;e:for(;++i<p;){var z=e[i],N=t?t(z):z;if(z=r||z!==0?z:0,f&&N===N){for(var W=v.length;W--;)if(v[W]===N)continue e;t&&v.push(N),_.push(z)}else l(v,N,r)||(v!==_&&v.push(N),_.push(z))}return _}function oi(e,t){return t=fr(t,e),e=_c(e,t),e==null||delete e[Wt(At(t))]}function Hl(e,t,r,i){return Ea(e,t,r(Ar(e,t)),i)}function Es(e,t,r,i){for(var l=e.length,p=i?l:-1;(i?p--:++p<l)&&t(e[p],p,e););return r?Dt(e,i?0:p,i?p+1:l):Dt(e,i?p+1:0,i?l:p)}function $l(e,t){var r=e;return r instanceof me&&(r=r.value()),Rn(t,function(i,l){return l.func.apply(l.thisArg,cr([i],l.args))},r)}function li(e,t,r){var i=e.length;if(i<2)return i?mr(e[0]):[];for(var l=-1,p=I(i);++l<i;)for(var f=e[l],_=-1;++_<i;)_!=l&&(p[l]=Na(p[l]||f,e[_],t,r));return mr(Ge(p,1),t,r)}function Xl(e,t,r){for(var i=-1,l=e.length,p=t.length,f={};++i<l;){var _=i<p?t[i]:a;r(f,e[i],_)}return f}function ci(e){return Pe(e)?e:[]}function ui(e){return typeof e=="function"?e:it}function fr(e,t){return ae(e)?e:bi(e,t)?[e]:wc(be(e))}var sy=oe;function yr(e,t,r){var i=e.length;return r=r===a?i:r,!t&&r>=i?e:Dt(e,t,r)}var Gl=Hm||function(e){return Xe.clearTimeout(e)};function Vl(e,t){if(t)return e.slice();var r=e.length,i=yl?yl(r):new e.constructor(r);return e.copy(i),i}function di(e){var t=new e.constructor(e.byteLength);return new ws(t).set(new ws(e)),t}function ny(e,t){var r=t?di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function iy(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}function oy(e){return Sa?Ie(Sa.call(e)):{}}function Yl(e,t){var r=t?di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Kl(e,t){if(e!==t){var r=e!==a,i=e===null,l=e===e,p=ft(e),f=t!==a,_=t===null,v=t===t,S=ft(t);if(!_&&!S&&!p&&e>t||p&&f&&v&&!_&&!S||i&&f&&v||!r&&v||!l)return 1;if(!i&&!p&&!S&&e<t||S&&r&&l&&!i&&!p||_&&r&&l||!f&&l||!v)return-1}return 0}function ly(e,t,r){for(var i=-1,l=e.criteria,p=t.criteria,f=l.length,_=r.length;++i<f;){var v=Kl(l[i],p[i]);if(v){if(i>=_)return v;var S=r[i];return v*(S=="desc"?-1:1)}}return e.index-t.index}function Ql(e,t,r,i){for(var l=-1,p=e.length,f=r.length,_=-1,v=t.length,S=Ue(p-f,0),z=I(v+S),N=!i;++_<v;)z[_]=t[_];for(;++l<f;)(N||l<p)&&(z[r[l]]=e[l]);for(;S--;)z[_++]=e[l++];return z}function Zl(e,t,r,i){for(var l=-1,p=e.length,f=-1,_=r.length,v=-1,S=t.length,z=Ue(p-_,0),N=I(z+S),W=!i;++l<z;)N[l]=e[l];for(var X=l;++v<S;)N[X+v]=t[v];for(;++f<_;)(W||l<p)&&(N[X+r[f]]=e[l++]);return N}function at(e,t){var r=-1,i=e.length;for(t||(t=I(i));++r<i;)t[r]=e[r];return t}function Ut(e,t,r,i){var l=!r;r||(r={});for(var p=-1,f=t.length;++p<f;){var _=t[p],v=i?i(r[_],e[_],_,r,e):a;v===a&&(v=e[_]),l?Kt(r,_,v):za(r,_,v)}return r}function cy(e,t){return Ut(e,gi(e),t)}function uy(e,t){return Ut(e,dc(e),t)}function Rs(e,t){return function(r,i){var l=ae(r)?fm:Nf,p=t?t():{};return l(r,e,K(i,2),p)}}function Qr(e){return oe(function(t,r){var i=-1,l=r.length,p=l>1?r[l-1]:a,f=l>2?r[2]:a;for(p=e.length>3&&typeof p=="function"?(l--,p):a,f&&Je(r[0],r[1],f)&&(p=l<3?a:p,l=1),t=Ie(t);++i<l;){var _=r[i];_&&e(t,_,i,p)}return t})}function Jl(e,t){return function(r,i){if(r==null)return r;if(!st(r))return e(r,i);for(var l=r.length,p=t?l:-1,f=Ie(r);(t?p--:++p<l)&&i(f[p],p,f)!==!1;);return r}}function ec(e){return function(t,r,i){for(var l=-1,p=Ie(t),f=i(t),_=f.length;_--;){var v=f[e?_:++l];if(r(p[v],v,p)===!1)break}return t}}function dy(e,t,r){var i=t&V,l=Ra(e);function p(){var f=this&&this!==Xe&&this instanceof p?l:e;return f.apply(i?r:this,arguments)}return p}function tc(e){return function(t){t=be(t);var r=Hr(t)?Pt(t):a,i=r?r[0]:t.charAt(0),l=r?yr(r,1).join(""):t.slice(1);return i[e]()+l}}function Zr(e){return function(t){return Rn(Jc(Zc(t).replace(em,"")),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=Kr(e.prototype),i=e.apply(r,t);return Se(i)?i:r}}function py(e,t,r){var i=Ra(e);function l(){for(var p=arguments.length,f=I(p),_=p,v=Jr(l);_--;)f[_]=arguments[_];var S=p<3&&f[0]!==v&&f[p-1]!==v?[]:ur(f,v);if(p-=S.length,p<r)return ic(e,t,Ls,l.placeholder,a,f,S,a,a,r-p);var z=this&&this!==Xe&&this instanceof l?i:e;return dt(z,this,f)}return l}function rc(e){return function(t,r,i){var l=Ie(t);if(!st(t)){var p=K(r,3);t=He(t),r=function(_){return p(l[_],_,l)}}var f=e(t,r,i);return f>-1?l[p?t[f]:f]:a}}function ac(e){return Zt(function(t){var r=t.length,i=r,l=It.prototype.thru;for(e&&t.reverse();i--;){var p=t[i];if(typeof p!="function")throw new Tt(m);if(l&&!f&&Bs(p)=="wrapper")var f=new It([],!0)}for(i=f?i:r;++i<r;){p=t[i];var _=Bs(p),v=_=="wrapper"?hi(p):a;v&&xi(v[0])&&v[1]==(H|F|k|le)&&!v[4].length&&v[9]==1?f=f[Bs(v[0])].apply(f,v[3]):f=p.length==1&&xi(p)?f[_]():f.thru(p)}return function(){var S=arguments,z=S[0];if(f&&S.length==1&&ae(z))return f.plant(z).value();for(var N=0,W=r?t[N].apply(this,S):z;++N<r;)W=t[N].call(this,W);return W}})}function Ls(e,t,r,i,l,p,f,_,v,S){var z=t&H,N=t&V,W=t&J,X=t&(F|A),Q=t&ie,ne=W?a:Ra(e);function Z(){for(var de=arguments.length,fe=I(de),yt=de;yt--;)fe[yt]=arguments[yt];if(X)var et=Jr(Z),ht=Tm(fe,et);if(i&&(fe=Ql(fe,i,l,X)),p&&(fe=Zl(fe,p,f,X)),de-=ht,X&&de<S){var Ee=ur(fe,et);return ic(e,t,Ls,Z.placeholder,r,fe,Ee,_,v,S-de)}var Lt=N?r:this,rr=W?Lt[e]:e;return de=fe.length,_?fe=Ny(fe,_):Q&&de>1&&fe.reverse(),z&&v<de&&(fe.length=v),this&&this!==Xe&&this instanceof Z&&(rr=ne||Ra(rr)),rr.apply(Lt,fe)}return Z}function sc(e,t){return function(r,i){return jf(r,e,t(i),{})}}function Ms(e,t){return function(r,i){var l;if(r===a&&i===a)return t;if(r!==a&&(l=r),i!==a){if(l===a)return i;typeof r=="string"||typeof i=="string"?(r=mt(r),i=mt(i)):(r=Wl(r),i=Wl(i)),l=e(r,i)}return l}}function pi(e){return Zt(function(t){return t=Ae(t,pt(K())),oe(function(r){var i=this;return e(t,function(l){return dt(l,i,r)})})})}function Fs(e,t){t=t===a?" ":mt(t);var r=t.length;if(r<2)return r?ni(t,e):t;var i=ni(t,ks(e/$r(t)));return Hr(t)?yr(Pt(i),0,e).join(""):i.slice(0,e)}function my(e,t,r,i){var l=t&V,p=Ra(e);function f(){for(var _=-1,v=arguments.length,S=-1,z=i.length,N=I(z+v),W=this&&this!==Xe&&this instanceof f?p:e;++S<z;)N[S]=i[S];for(;v--;)N[S++]=arguments[++_];return dt(W,l?r:this,N)}return f}function nc(e){return function(t,r,i){return i&&typeof i!="number"&&Je(t,r,i)&&(r=i=a),t=tr(t),r===a?(r=t,t=0):r=tr(r),i=i===a?t<r?1:-1:tr(i),Zf(t,r,i,e)}}function js(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=qt(t),r=qt(r)),e(t,r)}}function ic(e,t,r,i,l,p,f,_,v,S){var z=t&F,N=z?f:a,W=z?a:f,X=z?p:a,Q=z?a:p;t|=z?k:B,t&=~(z?B:k),t&G||(t&=~(V|J));var ne=[e,t,l,X,N,Q,W,_,v,S],Z=r.apply(a,ne);return xi(e)&&gc(Z,ne),Z.placeholder=i,bc(Z,e,t)}function mi(e){var t=Be[e];return function(r,i){if(r=qt(r),i=i==null?0:Ye(se(i),292),i&&bl(r)){var l=(be(r)+"e").split("e"),p=t(l[0]+"e"+(+l[1]+i));return l=(be(p)+"e").split("e"),+(l[0]+"e"+(+l[1]-i))}return t(r)}}var fy=Vr&&1/ys(new Vr([,-0]))[1]==Oe?function(e){return new Vr(e)}:Ei;function oc(e){return function(t){var r=Ke(t);return r==ct?Wn(t):r==ut?Sm(t):vm(t,e(t))}}function Qt(e,t,r,i,l,p,f,_){var v=t&J;if(!v&&typeof e!="function")throw new Tt(m);var S=i?i.length:0;if(S||(t&=~(k|B),i=l=a),f=f===a?f:Ue(se(f),0),_=_===a?_:se(_),S-=l?l.length:0,t&B){var z=i,N=l;i=l=a}var W=v?a:hi(e),X=[e,t,r,i,l,z,N,p,f,_];if(W&&Cy(X,W),e=X[0],t=X[1],r=X[2],i=X[3],l=X[4],_=X[9]=X[9]===a?v?0:e.length:Ue(X[9]-S,0),!_&&t&(F|A)&&(t&=~(F|A)),!t||t==V)var Q=dy(e,t,r);else t==F||t==A?Q=py(e,t,_):(t==k||t==(V|k))&&!l.length?Q=my(e,t,r,i):Q=Ls.apply(a,X);var ne=W?Bl:gc;return bc(ne(Q,X),e,t)}function lc(e,t,r,i){return e===a||Rt(e,Gr[r])&&!ve.call(i,r)?t:e}function cc(e,t,r,i,l,p){return Se(e)&&Se(t)&&(p.set(t,e),Os(e,t,a,cc,p),p.delete(t)),e}function yy(e){return Fa(e)?a:e}function uc(e,t,r,i,l,p){var f=r&j,_=e.length,v=t.length;if(_!=v&&!(f&&v>_))return!1;var S=p.get(e),z=p.get(t);if(S&&z)return S==t&&z==e;var N=-1,W=!0,X=r&E?new kr:a;for(p.set(e,t),p.set(t,e);++N<_;){var Q=e[N],ne=t[N];if(i)var Z=f?i(ne,Q,N,t,e,p):i(Q,ne,N,e,t,p);if(Z!==a){if(Z)continue;W=!1;break}if(X){if(!Ln(t,function(de,fe){if(!ka(X,fe)&&(Q===de||l(Q,de,r,i,p)))return X.push(fe)})){W=!1;break}}else if(!(Q===ne||l(Q,ne,r,i,p))){W=!1;break}}return p.delete(e),p.delete(t),W}function hy(e,t,r,i,l,p,f){switch(r){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Nt:return!(e.byteLength!=t.byteLength||!p(new ws(e),new ws(t)));case Ft:case $t:case jt:return Rt(+e,+t);case Er:return e.name==t.name&&e.message==t.message;case xr:case Xt:return e==t+"";case ct:var _=Wn;case ut:var v=i&j;if(_||(_=ys),e.size!=t.size&&!v)return!1;var S=f.get(e);if(S)return S==t;i|=E,f.set(e,t);var z=uc(_(e),_(t),i,l,p,f);return f.delete(e),z;case Mr:if(Sa)return Sa.call(e)==Sa.call(t)}return!1}function _y(e,t,r,i,l,p){var f=r&j,_=fi(e),v=_.length,S=fi(t),z=S.length;if(v!=z&&!f)return!1;for(var N=v;N--;){var W=_[N];if(!(f?W in t:ve.call(t,W)))return!1}var X=p.get(e),Q=p.get(t);if(X&&Q)return X==t&&Q==e;var ne=!0;p.set(e,t),p.set(t,e);for(var Z=f;++N<v;){W=_[N];var de=e[W],fe=t[W];if(i)var yt=f?i(fe,de,W,t,e,p):i(de,fe,W,e,t,p);if(!(yt===a?de===fe||l(de,fe,r,i,p):yt)){ne=!1;break}Z||(Z=W=="constructor")}if(ne&&!Z){var et=e.constructor,ht=t.constructor;et!=ht&&"constructor"in e&&"constructor"in t&&!(typeof et=="function"&&et instanceof et&&typeof ht=="function"&&ht instanceof ht)&&(ne=!1)}return p.delete(e),p.delete(t),ne}function Zt(e){return vi(hc(e,a,kc),e+"")}function fi(e){return Sl(e,He,gi)}function yi(e){return Sl(e,nt,dc)}var hi=As?function(e){return As.get(e)}:Ei;function Bs(e){for(var t=e.name+"",r=Yr[t],i=ve.call(Yr,t)?r.length:0;i--;){var l=r[i],p=l.func;if(p==null||p==e)return l.name}return t}function Jr(e){var t=ve.call(d,"placeholder")?d:e;return t.placeholder}function K(){var e=d.iteratee||Oi;return e=e===Oi?Ol:e,arguments.length?e(arguments[0],arguments[1]):e}function Us(e,t){var r=e.__data__;return ky(t)?r[typeof t=="string"?"string":"hash"]:r.map}function _i(e){for(var t=He(e),r=t.length;r--;){var i=t[r],l=e[i];t[r]=[i,l,fc(l)]}return t}function qr(e,t){var r=Am(e,t);return Nl(r)?r:a}function gy(e){var t=ve.call(e,Tr),r=e[Tr];try{e[Tr]=a;var i=!0}catch{}var l=bs.call(e);return i&&(t?e[Tr]=r:delete e[Tr]),l}var gi=$n?function(e){return e==null?[]:(e=Ie(e),lr($n(e),function(t){return _l.call(e,t)}))}:Ri,dc=$n?function(e){for(var t=[];e;)cr(t,gi(e)),e=vs(e);return t}:Ri,Ke=Ze;(Xn&&Ke(new Xn(new ArrayBuffer(1)))!=or||Aa&&Ke(new Aa)!=ct||Gn&&Ke(Gn.resolve())!=fa||Vr&&Ke(new Vr)!=ut||qa&&Ke(new qa)!=ir)&&(Ke=function(e){var t=Ze(e),r=t==xt?e.constructor:a,i=r?Cr(r):"";if(i)switch(i){case Jm:return or;case ef:return ct;case tf:return fa;case rf:return ut;case af:return ir}return t});function by(e,t,r){for(var i=-1,l=r.length;++i<l;){var p=r[i],f=p.size;switch(p.type){case"drop":e+=f;break;case"dropRight":t-=f;break;case"take":t=Ye(t,e+f);break;case"takeRight":e=Ue(e,t-f);break}}return{start:e,end:t}}function xy(e){var t=e.match(An);return t?t[1].split(y):[]}function pc(e,t,r){t=fr(t,e);for(var i=-1,l=t.length,p=!1;++i<l;){var f=Wt(t[i]);if(!(p=e!=null&&r(e,f)))break;e=e[f]}return p||++i!=l?p:(l=e==null?0:e.length,!!l&&Ys(l)&&Jt(f,l)&&(ae(e)||Sr(e)))}function wy(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&ve.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function mc(e){return typeof e.constructor=="function"&&!La(e)?Kr(vs(e)):{}}function vy(e,t,r){var i=e.constructor;switch(t){case Nt:return di(e);case Ft:case $t:return new i(+e);case or:return ny(e,r);case Fr:case jr:case wr:case ya:case ha:case _a:case ga:case ba:case xa:return Yl(e,r);case ct:return new i;case jt:case Xt:return new i(e);case xr:return iy(e);case ut:return new i;case Mr:return oy(e)}}function Ty(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(Dn,`{
112
+ */$a.exports,function(s,n){(function(){var a,o="4.17.21",u=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",h="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",g=500,x="__lodash_placeholder__",T=1,R=2,L=4,j=1,E=2,V=1,Z=2,G=4,F=8,A=16,k=32,B=64,H=128,le=256,ie=512,ce=30,bt="...",xt=800,Me=16,Fe=1,Y=2,he=3,Oe=1/0,Le=9007199254740991,lt=17976931348623157e292,je=NaN,te=4294967295,Te=te-1,We=te>>>1,Ht=[["ary",H],["bind",V],["bindKey",Z],["curry",F],["curryRight",A],["flip",ie],["partial",k],["partialRight",B],["rearg",le]],Qe="[object Arguments]",nr="[object Array]",ma="[object AsyncFunction]",Ft="[object Boolean]",$t="[object Date]",Pr="[object DOMException]",Er="[object Error]",br="[object Function]",rs="[object GeneratorFunction]",ct="[object Map]",jt="[object Number]",Rr="[object Null]",wt="[object Object]",fa="[object Promise]",Lr="[object Proxy]",xr="[object RegExp]",ut="[object Set]",Xt="[object String]",Mr="[object Symbol]",wn="[object Undefined]",ir="[object WeakMap]",as="[object WeakSet]",Nt="[object ArrayBuffer]",or="[object DataView]",Fr="[object Float32Array]",jr="[object Float64Array]",wr="[object Int8Array]",ya="[object Int16Array]",ha="[object Int32Array]",_a="[object Uint8Array]",ga="[object Uint8ClampedArray]",ba="[object Uint16Array]",xa="[object Uint32Array]",vn=/\b__p \+= '';/g,wa=/\b(__p \+=) '' \+/g,ss=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gt=/&(?:amp|lt|gt|quot|#39);/g,Br=/[&<>"']/g,va=RegExp(Gt.source),ns=RegExp(Br.source),Tn=/<%-([\s\S]+?)%>/g,is=/<%([\s\S]+?)%>/g,os=/<%=([\s\S]+?)%>/g,ls=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cs=/^\w*$/,In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,us=RegExp(Ta.source),Ia=/^\s+/,kn=/\s/,Dn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,An=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,O=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,U=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,ye=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,ue=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,Ce=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ot=/($^)/,ds=/['\n\r\u2028\u2029\\]/g,rt="\\ud800-\\udfff",Mp="\\u0300-\\u036f",Fp="\\ufe20-\\ufe2f",jp="\\u20d0-\\u20ff",No=Mp+Fp+jp,Oo="\\u2700-\\u27bf",Po="a-z\\xdf-\\xf6\\xf8-\\xff",Bp="\\xac\\xb1\\xd7\\xf7",Up="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wp="\\u2000-\\u206f",Hp=" \\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",Eo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ro="\\ufe0e\\ufe0f",Lo=Bp+Up+Wp+Hp,qn="['’]",$p="["+rt+"]",Mo="["+Lo+"]",ps="["+No+"]",Fo="\\d+",Xp="["+Oo+"]",jo="["+Po+"]",Bo="[^"+rt+Lo+Fo+Oo+Po+Eo+"]",Cn="\\ud83c[\\udffb-\\udfff]",Gp="(?:"+ps+"|"+Cn+")",Uo="[^"+rt+"]",Sn="(?:\\ud83c[\\udde6-\\uddff]){2}",zn="[\\ud800-\\udbff][\\udc00-\\udfff]",Ur="["+Eo+"]",Wo="\\u200d",Ho="(?:"+jo+"|"+Bo+")",Vp="(?:"+Ur+"|"+Bo+")",$o="(?:"+qn+"(?:d|ll|m|re|s|t|ve))?",Xo="(?:"+qn+"(?:D|LL|M|RE|S|T|VE))?",Go=Gp+"?",Vo="["+Ro+"]?",Yp="(?:"+Wo+"(?:"+[Uo,Sn,zn].join("|")+")"+Vo+Go+")*",Kp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yo=Vo+Go+Yp,Jp="(?:"+[Xp,Sn,zn].join("|")+")"+Yo,Zp="(?:"+[Uo+ps+"?",ps,Sn,zn,$p].join("|")+")",em=RegExp(qn,"g"),tm=RegExp(ps,"g"),Nn=RegExp(Cn+"(?="+Cn+")|"+Zp+Yo,"g"),rm=RegExp([Ur+"?"+jo+"+"+$o+"(?="+[Mo,Ur,"$"].join("|")+")",Vp+"+"+Xo+"(?="+[Mo,Ur+Ho,"$"].join("|")+")",Ur+"?"+Ho+"+"+$o,Ur+"+"+Xo,Qp,Kp,Fo,Jp].join("|"),"g"),am=RegExp("["+Wo+rt+No+Ro+"]"),sm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nm=["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"],im=-1,De={};De[Fr]=De[jr]=De[wr]=De[ya]=De[ha]=De[_a]=De[ga]=De[ba]=De[xa]=!0,De[Qe]=De[nr]=De[Nt]=De[Ft]=De[or]=De[$t]=De[Er]=De[br]=De[ct]=De[jt]=De[wt]=De[xr]=De[ut]=De[Xt]=De[ir]=!1;var ke={};ke[Qe]=ke[nr]=ke[Nt]=ke[or]=ke[Ft]=ke[$t]=ke[Fr]=ke[jr]=ke[wr]=ke[ya]=ke[ha]=ke[ct]=ke[jt]=ke[wt]=ke[xr]=ke[ut]=ke[Xt]=ke[Mr]=ke[_a]=ke[ga]=ke[ba]=ke[xa]=!0,ke[Er]=ke[br]=ke[ir]=!1;var om={À:"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"},lm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},um={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dm=parseFloat,pm=parseInt,Ko=typeof ra=="object"&&ra&&ra.Object===Object&&ra,mm=typeof self=="object"&&self&&self.Object===Object&&self,Xe=Ko||mm||Function("return this")(),On=n&&!n.nodeType&&n,vr=On&&!0&&s&&!s.nodeType&&s,Qo=vr&&vr.exports===On,Pn=Qo&&Ko.process,vt=function(){try{var w=vr&&vr.require&&vr.require("util").types;return w||Pn&&Pn.binding&&Pn.binding("util")}catch{}}(),Jo=vt&&vt.isArrayBuffer,Zo=vt&&vt.isDate,el=vt&&vt.isMap,tl=vt&&vt.isRegExp,rl=vt&&vt.isSet,al=vt&&vt.isTypedArray;function dt(w,q,I){switch(I.length){case 0:return w.call(q);case 1:return w.call(q,I[0]);case 2:return w.call(q,I[0],I[1]);case 3:return w.call(q,I[0],I[1],I[2])}return w.apply(q,I)}function fm(w,q,I,$){for(var re=-1,_e=w==null?0:w.length;++re<_e;){var Be=w[re];q($,Be,I(Be),w)}return $}function Tt(w,q){for(var I=-1,$=w==null?0:w.length;++I<$&&q(w[I],I,w)!==!1;);return w}function ym(w,q){for(var I=w==null?0:w.length;I--&&q(w[I],I,w)!==!1;);return w}function sl(w,q){for(var I=-1,$=w==null?0:w.length;++I<$;)if(!q(w[I],I,w))return!1;return!0}function lr(w,q){for(var I=-1,$=w==null?0:w.length,re=0,_e=[];++I<$;){var Be=w[I];q(Be,I,w)&&(_e[re++]=Be)}return _e}function ms(w,q){var I=w==null?0:w.length;return!!I&&Wr(w,q,0)>-1}function En(w,q,I){for(var $=-1,re=w==null?0:w.length;++$<re;)if(I(q,w[$]))return!0;return!1}function Ae(w,q){for(var I=-1,$=w==null?0:w.length,re=Array($);++I<$;)re[I]=q(w[I],I,w);return re}function cr(w,q){for(var I=-1,$=q.length,re=w.length;++I<$;)w[re+I]=q[I];return w}function Rn(w,q,I,$){var re=-1,_e=w==null?0:w.length;for($&&_e&&(I=w[++re]);++re<_e;)I=q(I,w[re],re,w);return I}function hm(w,q,I,$){var re=w==null?0:w.length;for($&&re&&(I=w[--re]);re--;)I=q(I,w[re],re,w);return I}function Ln(w,q){for(var I=-1,$=w==null?0:w.length;++I<$;)if(q(w[I],I,w))return!0;return!1}var _m=Mn("length");function gm(w){return w.split("")}function bm(w){return w.match(O)||[]}function nl(w,q,I){var $;return I(w,function(re,_e,Be){if(q(re,_e,Be))return $=_e,!1}),$}function fs(w,q,I,$){for(var re=w.length,_e=I+($?1:-1);$?_e--:++_e<re;)if(q(w[_e],_e,w))return _e;return-1}function Wr(w,q,I){return q===q?zm(w,q,I):fs(w,il,I)}function xm(w,q,I,$){for(var re=I-1,_e=w.length;++re<_e;)if($(w[re],q))return re;return-1}function il(w){return w!==w}function ol(w,q){var I=w==null?0:w.length;return I?jn(w,q)/I:je}function Mn(w){return function(q){return q==null?a:q[w]}}function Fn(w){return function(q){return w==null?a:w[q]}}function ll(w,q,I,$,re){return re(w,function(_e,Be,Ie){I=$?($=!1,_e):q(I,_e,Be,Ie)}),I}function wm(w,q){var I=w.length;for(w.sort(q);I--;)w[I]=w[I].value;return w}function jn(w,q){for(var I,$=-1,re=w.length;++$<re;){var _e=q(w[$]);_e!==a&&(I=I===a?_e:I+_e)}return I}function Bn(w,q){for(var I=-1,$=Array(w);++I<w;)$[I]=q(I);return $}function vm(w,q){return Ae(q,function(I){return[I,w[I]]})}function cl(w){return w&&w.slice(0,ml(w)+1).replace(Ia,"")}function pt(w){return function(q){return w(q)}}function Un(w,q){return Ae(q,function(I){return w[I]})}function ka(w,q){return w.has(q)}function ul(w,q){for(var I=-1,$=w.length;++I<$&&Wr(q,w[I],0)>-1;);return I}function dl(w,q){for(var I=w.length;I--&&Wr(q,w[I],0)>-1;);return I}function Tm(w,q){for(var I=w.length,$=0;I--;)w[I]===q&&++$;return $}var Im=Fn(om),km=Fn(lm);function Dm(w){return"\\"+um[w]}function Am(w,q){return w==null?a:w[q]}function Hr(w){return am.test(w)}function qm(w){return sm.test(w)}function Cm(w){for(var q,I=[];!(q=w.next()).done;)I.push(q.value);return I}function Wn(w){var q=-1,I=Array(w.size);return w.forEach(function($,re){I[++q]=[re,$]}),I}function pl(w,q){return function(I){return w(q(I))}}function ur(w,q){for(var I=-1,$=w.length,re=0,_e=[];++I<$;){var Be=w[I];(Be===q||Be===x)&&(w[I]=x,_e[re++]=I)}return _e}function ys(w){var q=-1,I=Array(w.size);return w.forEach(function($){I[++q]=$}),I}function Sm(w){var q=-1,I=Array(w.size);return w.forEach(function($){I[++q]=[$,$]}),I}function zm(w,q,I){for(var $=I-1,re=w.length;++$<re;)if(w[$]===q)return $;return-1}function Nm(w,q,I){for(var $=I+1;$--;)if(w[$]===q)return $;return $}function $r(w){return Hr(w)?Pm(w):_m(w)}function Pt(w){return Hr(w)?Em(w):gm(w)}function ml(w){for(var q=w.length;q--&&kn.test(w.charAt(q)););return q}var Om=Fn(cm);function Pm(w){for(var q=Nn.lastIndex=0;Nn.test(w);)++q;return q}function Em(w){return w.match(Nn)||[]}function Rm(w){return w.match(rm)||[]}var Lm=function w(q){q=q==null?Xe:Xr.defaults(Xe.Object(),q,Xr.pick(Xe,nm));var I=q.Array,$=q.Date,re=q.Error,_e=q.Function,Be=q.Math,Ie=q.Object,Hn=q.RegExp,Mm=q.String,It=q.TypeError,hs=I.prototype,Fm=_e.prototype,Gr=Ie.prototype,_s=q["__core-js_shared__"],gs=Fm.toString,ve=Gr.hasOwnProperty,jm=0,fl=function(){var e=/[^.]+$/.exec(_s&&_s.keys&&_s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),bs=Gr.toString,Bm=gs.call(Ie),Um=Xe._,Wm=Hn("^"+gs.call(ve).replace(Ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xs=Qo?q.Buffer:a,dr=q.Symbol,ws=q.Uint8Array,yl=xs?xs.allocUnsafe:a,vs=pl(Ie.getPrototypeOf,Ie),hl=Ie.create,_l=Gr.propertyIsEnumerable,Ts=hs.splice,gl=dr?dr.isConcatSpreadable:a,Da=dr?dr.iterator:a,Tr=dr?dr.toStringTag:a,Is=function(){try{var e=qr(Ie,"defineProperty");return e({},"",{}),e}catch{}}(),Hm=q.clearTimeout!==Xe.clearTimeout&&q.clearTimeout,$m=$&&$.now!==Xe.Date.now&&$.now,Xm=q.setTimeout!==Xe.setTimeout&&q.setTimeout,ks=Be.ceil,Ds=Be.floor,$n=Ie.getOwnPropertySymbols,Gm=xs?xs.isBuffer:a,bl=q.isFinite,Vm=hs.join,Ym=pl(Ie.keys,Ie),Ue=Be.max,Ye=Be.min,Km=$.now,Qm=q.parseInt,xl=Be.random,Jm=hs.reverse,Xn=qr(q,"DataView"),Aa=qr(q,"Map"),Gn=qr(q,"Promise"),Vr=qr(q,"Set"),qa=qr(q,"WeakMap"),Ca=qr(Ie,"create"),As=qa&&new qa,Yr={},Zm=Cr(Xn),ef=Cr(Aa),tf=Cr(Gn),rf=Cr(Vr),af=Cr(qa),qs=dr?dr.prototype:a,Sa=qs?qs.valueOf:a,wl=qs?qs.toString:a;function d(e){if(Ne(e)&&!ae(e)&&!(e instanceof me)){if(e instanceof kt)return e;if(ve.call(e,"__wrapped__"))return vc(e)}return new kt(e)}var Kr=function(){function e(){}return function(t){if(!Se(t))return{};if(hl)return hl(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Cs(){}function kt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}d.templateSettings={escape:Tn,evaluate:is,interpolate:os,variable:"",imports:{_:d}},d.prototype=Cs.prototype,d.prototype.constructor=d,kt.prototype=Kr(Cs.prototype),kt.prototype.constructor=kt;function me(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function sf(){var e=new me(this.__wrapped__);return e.__actions__=at(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=at(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=at(this.__views__),e}function nf(){if(this.__filtered__){var e=new me(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function of(){var e=this.__wrapped__.value(),t=this.__dir__,r=ae(e),i=t<0,l=r?e.length:0,p=by(0,l,this.__views__),f=p.start,_=p.end,v=_-f,S=i?_:f-1,z=this.__iteratees__,N=z.length,W=0,X=Ye(v,this.__takeCount__);if(!r||!i&&l==v&&X==v)return $l(e,this.__actions__);var Q=[];e:for(;v--&&W<X;){S+=t;for(var ne=-1,J=e[S];++ne<N;){var de=z[ne],fe=de.iteratee,yt=de.type,et=fe(J);if(yt==Y)J=et;else if(!et){if(yt==Fe)continue e;break e}}Q[W++]=J}return Q}me.prototype=Kr(Cs.prototype),me.prototype.constructor=me;function Ir(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 lf(){this.__data__=Ca?Ca(null):{},this.size=0}function cf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function uf(e){var t=this.__data__;if(Ca){var r=t[e];return r===b?a:r}return ve.call(t,e)?t[e]:a}function df(e){var t=this.__data__;return Ca?t[e]!==a:ve.call(t,e)}function pf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ca&&t===a?b:t,this}Ir.prototype.clear=lf,Ir.prototype.delete=cf,Ir.prototype.get=uf,Ir.prototype.has=df,Ir.prototype.set=pf;function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function mf(){this.__data__=[],this.size=0}function ff(e){var t=this.__data__,r=Ss(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Ts.call(t,r,1),--this.size,!0}function yf(e){var t=this.__data__,r=Ss(t,e);return r<0?a:t[r][1]}function hf(e){return Ss(this.__data__,e)>-1}function _f(e,t){var r=this.__data__,i=Ss(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}Vt.prototype.clear=mf,Vt.prototype.delete=ff,Vt.prototype.get=yf,Vt.prototype.has=hf,Vt.prototype.set=_f;function Yt(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 gf(){this.size=0,this.__data__={hash:new Ir,map:new(Aa||Vt),string:new Ir}}function bf(e){var t=Us(this,e).delete(e);return this.size-=t?1:0,t}function xf(e){return Us(this,e).get(e)}function wf(e){return Us(this,e).has(e)}function vf(e,t){var r=Us(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Yt.prototype.clear=gf,Yt.prototype.delete=bf,Yt.prototype.get=xf,Yt.prototype.has=wf,Yt.prototype.set=vf;function kr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Yt;++t<r;)this.add(e[t])}function Tf(e){return this.__data__.set(e,b),this}function If(e){return this.__data__.has(e)}kr.prototype.add=kr.prototype.push=Tf,kr.prototype.has=If;function Et(e){var t=this.__data__=new Vt(e);this.size=t.size}function kf(){this.__data__=new Vt,this.size=0}function Df(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Af(e){return this.__data__.get(e)}function qf(e){return this.__data__.has(e)}function Cf(e,t){var r=this.__data__;if(r instanceof Vt){var i=r.__data__;if(!Aa||i.length<u-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Yt(i)}return r.set(e,t),this.size=r.size,this}Et.prototype.clear=kf,Et.prototype.delete=Df,Et.prototype.get=Af,Et.prototype.has=qf,Et.prototype.set=Cf;function vl(e,t){var r=ae(e),i=!r&&Sr(e),l=!r&&!i&&hr(e),p=!r&&!i&&!l&&ea(e),f=r||i||l||p,_=f?Bn(e.length,Mm):[],v=_.length;for(var S in e)(t||ve.call(e,S))&&!(f&&(S=="length"||l&&(S=="offset"||S=="parent")||p&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||Zt(S,v)))&&_.push(S);return _}function Tl(e){var t=e.length;return t?e[si(0,t-1)]:a}function Sf(e,t){return Ws(at(e),Dr(t,0,e.length))}function zf(e){return Ws(at(e))}function Vn(e,t,r){(r!==a&&!Rt(e[t],r)||r===a&&!(t in e))&&Kt(e,t,r)}function za(e,t,r){var i=e[t];(!(ve.call(e,t)&&Rt(i,r))||r===a&&!(t in e))&&Kt(e,t,r)}function Ss(e,t){for(var r=e.length;r--;)if(Rt(e[r][0],t))return r;return-1}function Nf(e,t,r,i){return pr(e,function(l,p,f){t(i,l,r(l),f)}),i}function Il(e,t){return e&&Ut(t,He(t),e)}function Of(e,t){return e&&Ut(t,nt(t),e)}function Kt(e,t,r){t=="__proto__"&&Is?Is(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Yn(e,t){for(var r=-1,i=t.length,l=I(i),p=e==null;++r<i;)l[r]=p?a:Ci(e,t[r]);return l}function Dr(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function Dt(e,t,r,i,l,p){var f,_=t&T,v=t&R,S=t&L;if(r&&(f=l?r(e,i,l,p):r(e)),f!==a)return f;if(!Se(e))return e;var z=ae(e);if(z){if(f=wy(e),!_)return at(e,f)}else{var N=Ke(e),W=N==br||N==rs;if(hr(e))return Vl(e,_);if(N==wt||N==Qe||W&&!l){if(f=v||W?{}:mc(e),!_)return v?uy(e,Of(f,e)):cy(e,Il(f,e))}else{if(!ke[N])return l?e:{};f=vy(e,N,_)}}p||(p=new Et);var X=p.get(e);if(X)return X;p.set(e,f),Uc(e)?e.forEach(function(J){f.add(Dt(J,t,r,J,e,p))}):jc(e)&&e.forEach(function(J,de){f.set(de,Dt(J,t,r,de,e,p))});var Q=S?v?yi:fi:v?nt:He,ne=z?a:Q(e);return Tt(ne||e,function(J,de){ne&&(de=J,J=e[de]),za(f,de,Dt(J,t,r,de,e,p))}),f}function Pf(e){var t=He(e);return function(r){return kl(r,e,t)}}function kl(e,t,r){var i=r.length;if(e==null)return!i;for(e=Ie(e);i--;){var l=r[i],p=t[l],f=e[l];if(f===a&&!(l in e)||!p(f))return!1}return!0}function Dl(e,t,r){if(typeof e!="function")throw new It(m);return Ma(function(){e.apply(a,r)},t)}function Na(e,t,r,i){var l=-1,p=ms,f=!0,_=e.length,v=[],S=t.length;if(!_)return v;r&&(t=Ae(t,pt(r))),i?(p=En,f=!1):t.length>=u&&(p=ka,f=!1,t=new kr(t));e:for(;++l<_;){var z=e[l],N=r==null?z:r(z);if(z=i||z!==0?z:0,f&&N===N){for(var W=S;W--;)if(t[W]===N)continue e;v.push(z)}else p(t,N,i)||v.push(z)}return v}var pr=Zl(Bt),Al=Zl(Qn,!0);function Ef(e,t){var r=!0;return pr(e,function(i,l,p){return r=!!t(i,l,p),r}),r}function zs(e,t,r){for(var i=-1,l=e.length;++i<l;){var p=e[i],f=t(p);if(f!=null&&(_===a?f===f&&!ft(f):r(f,_)))var _=f,v=p}return v}function Rf(e,t,r,i){var l=e.length;for(r=se(r),r<0&&(r=-r>l?0:l+r),i=i===a||i>l?l:se(i),i<0&&(i+=l),i=r>i?0:Hc(i);r<i;)e[r++]=t;return e}function ql(e,t){var r=[];return pr(e,function(i,l,p){t(i,l,p)&&r.push(i)}),r}function Ge(e,t,r,i,l){var p=-1,f=e.length;for(r||(r=Iy),l||(l=[]);++p<f;){var _=e[p];t>0&&r(_)?t>1?Ge(_,t-1,r,i,l):cr(l,_):i||(l[l.length]=_)}return l}var Kn=ec(),Cl=ec(!0);function Bt(e,t){return e&&Kn(e,t,He)}function Qn(e,t){return e&&Cl(e,t,He)}function Ns(e,t){return lr(t,function(r){return er(e[r])})}function Ar(e,t){t=fr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Wt(t[r++])];return r&&r==i?e:a}function Sl(e,t,r){var i=t(e);return ae(e)?i:cr(i,r(e))}function Je(e){return e==null?e===a?wn:Rr:Tr&&Tr in Ie(e)?gy(e):zy(e)}function Jn(e,t){return e>t}function Lf(e,t){return e!=null&&ve.call(e,t)}function Mf(e,t){return e!=null&&t in Ie(e)}function Ff(e,t,r){return e>=Ye(t,r)&&e<Ue(t,r)}function Zn(e,t,r){for(var i=r?En:ms,l=e[0].length,p=e.length,f=p,_=I(p),v=1/0,S=[];f--;){var z=e[f];f&&t&&(z=Ae(z,pt(t))),v=Ye(z.length,v),_[f]=!r&&(t||l>=120&&z.length>=120)?new kr(f&&z):a}z=e[0];var N=-1,W=_[0];e:for(;++N<l&&S.length<v;){var X=z[N],Q=t?t(X):X;if(X=r||X!==0?X:0,!(W?ka(W,Q):i(S,Q,r))){for(f=p;--f;){var ne=_[f];if(!(ne?ka(ne,Q):i(e[f],Q,r)))continue e}W&&W.push(Q),S.push(X)}}return S}function jf(e,t,r,i){return Bt(e,function(l,p,f){t(i,r(l),p,f)}),i}function Oa(e,t,r){t=fr(t,e),e=_c(e,t);var i=e==null?e:e[Wt(qt(t))];return i==null?a:dt(i,e,r)}function zl(e){return Ne(e)&&Je(e)==Qe}function Bf(e){return Ne(e)&&Je(e)==Nt}function Uf(e){return Ne(e)&&Je(e)==$t}function Pa(e,t,r,i,l){return e===t?!0:e==null||t==null||!Ne(e)&&!Ne(t)?e!==e&&t!==t:Wf(e,t,r,i,Pa,l)}function Wf(e,t,r,i,l,p){var f=ae(e),_=ae(t),v=f?nr:Ke(e),S=_?nr:Ke(t);v=v==Qe?wt:v,S=S==Qe?wt:S;var z=v==wt,N=S==wt,W=v==S;if(W&&hr(e)){if(!hr(t))return!1;f=!0,z=!1}if(W&&!z)return p||(p=new Et),f||ea(e)?uc(e,t,r,i,l,p):hy(e,t,v,r,i,l,p);if(!(r&j)){var X=z&&ve.call(e,"__wrapped__"),Q=N&&ve.call(t,"__wrapped__");if(X||Q){var ne=X?e.value():e,J=Q?t.value():t;return p||(p=new Et),l(ne,J,r,i,p)}}return W?(p||(p=new Et),_y(e,t,r,i,l,p)):!1}function Hf(e){return Ne(e)&&Ke(e)==ct}function ei(e,t,r,i){var l=r.length,p=l,f=!i;if(e==null)return!p;for(e=Ie(e);l--;){var _=r[l];if(f&&_[2]?_[1]!==e[_[0]]:!(_[0]in e))return!1}for(;++l<p;){_=r[l];var v=_[0],S=e[v],z=_[1];if(f&&_[2]){if(S===a&&!(v in e))return!1}else{var N=new Et;if(i)var W=i(S,z,v,e,t,N);if(!(W===a?Pa(z,S,j|E,i,N):W))return!1}}return!0}function Nl(e){if(!Se(e)||Dy(e))return!1;var t=er(e)?Wm:$e;return t.test(Cr(e))}function $f(e){return Ne(e)&&Je(e)==xr}function Xf(e){return Ne(e)&&Ke(e)==ut}function Gf(e){return Ne(e)&&Ys(e.length)&&!!De[Je(e)]}function Ol(e){return typeof e=="function"?e:e==null?it:typeof e=="object"?ae(e)?Rl(e[0],e[1]):El(e):tu(e)}function ti(e){if(!La(e))return Ym(e);var t=[];for(var r in Ie(e))ve.call(e,r)&&r!="constructor"&&t.push(r);return t}function Vf(e){if(!Se(e))return Sy(e);var t=La(e),r=[];for(var i in e)i=="constructor"&&(t||!ve.call(e,i))||r.push(i);return r}function ri(e,t){return e<t}function Pl(e,t){var r=-1,i=st(e)?I(e.length):[];return pr(e,function(l,p,f){i[++r]=t(l,p,f)}),i}function El(e){var t=_i(e);return t.length==1&&t[0][2]?yc(t[0][0],t[0][1]):function(r){return r===e||ei(r,e,t)}}function Rl(e,t){return bi(e)&&fc(t)?yc(Wt(e),t):function(r){var i=Ci(r,e);return i===a&&i===t?Si(r,e):Pa(t,i,j|E)}}function Os(e,t,r,i,l){e!==t&&Kn(t,function(p,f){if(l||(l=new Et),Se(p))Yf(e,t,f,r,Os,i,l);else{var _=i?i(wi(e,f),p,f+"",e,t,l):a;_===a&&(_=p),Vn(e,f,_)}},nt)}function Yf(e,t,r,i,l,p,f){var _=wi(e,r),v=wi(t,r),S=f.get(v);if(S){Vn(e,r,S);return}var z=p?p(_,v,r+"",e,t,f):a,N=z===a;if(N){var W=ae(v),X=!W&&hr(v),Q=!W&&!X&&ea(v);z=v,W||X||Q?ae(_)?z=_:Pe(_)?z=at(_):X?(N=!1,z=Vl(v,!0)):Q?(N=!1,z=Yl(v,!0)):z=[]:Fa(v)||Sr(v)?(z=_,Sr(_)?z=$c(_):(!Se(_)||er(_))&&(z=mc(v))):N=!1}N&&(f.set(v,z),l(z,v,i,p,f),f.delete(v)),Vn(e,r,z)}function Ll(e,t){var r=e.length;if(r)return t+=t<0?r:0,Zt(t,r)?e[t]:a}function Ml(e,t,r){t.length?t=Ae(t,function(p){return ae(p)?function(f){return Ar(f,p.length===1?p[0]:p)}:p}):t=[it];var i=-1;t=Ae(t,pt(K()));var l=Pl(e,function(p,f,_){var v=Ae(t,function(S){return S(p)});return{criteria:v,index:++i,value:p}});return wm(l,function(p,f){return ly(p,f,r)})}function Kf(e,t){return Fl(e,t,function(r,i){return Si(e,i)})}function Fl(e,t,r){for(var i=-1,l=t.length,p={};++i<l;){var f=t[i],_=Ar(e,f);r(_,f)&&Ea(p,fr(f,e),_)}return p}function Qf(e){return function(t){return Ar(t,e)}}function ai(e,t,r,i){var l=i?xm:Wr,p=-1,f=t.length,_=e;for(e===t&&(t=at(t)),r&&(_=Ae(e,pt(r)));++p<f;)for(var v=0,S=t[p],z=r?r(S):S;(v=l(_,z,v,i))>-1;)_!==e&&Ts.call(_,v,1),Ts.call(e,v,1);return e}function jl(e,t){for(var r=e?t.length:0,i=r-1;r--;){var l=t[r];if(r==i||l!==p){var p=l;Zt(l)?Ts.call(e,l,1):oi(e,l)}}return e}function si(e,t){return e+Ds(xl()*(t-e+1))}function Jf(e,t,r,i){for(var l=-1,p=Ue(ks((t-e)/(r||1)),0),f=I(p);p--;)f[i?p:++l]=e,e+=r;return f}function ni(e,t){var r="";if(!e||t<1||t>Le)return r;do t%2&&(r+=e),t=Ds(t/2),t&&(e+=e);while(t);return r}function oe(e,t){return vi(hc(e,t,it),e+"")}function Zf(e){return Tl(ta(e))}function ey(e,t){var r=ta(e);return Ws(r,Dr(t,0,r.length))}function Ea(e,t,r,i){if(!Se(e))return e;t=fr(t,e);for(var l=-1,p=t.length,f=p-1,_=e;_!=null&&++l<p;){var v=Wt(t[l]),S=r;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(l!=f){var z=_[v];S=i?i(z,v,_):a,S===a&&(S=Se(z)?z:Zt(t[l+1])?[]:{})}za(_,v,S),_=_[v]}return e}var Bl=As?function(e,t){return As.set(e,t),e}:it,ty=Is?function(e,t){return Is(e,"toString",{configurable:!0,enumerable:!1,value:Ni(t),writable:!0})}:it;function ry(e){return Ws(ta(e))}function At(e,t,r){var i=-1,l=e.length;t<0&&(t=-t>l?0:l+t),r=r>l?l:r,r<0&&(r+=l),l=t>r?0:r-t>>>0,t>>>=0;for(var p=I(l);++i<l;)p[i]=e[i+t];return p}function ay(e,t){var r;return pr(e,function(i,l,p){return r=t(i,l,p),!r}),!!r}function Ps(e,t,r){var i=0,l=e==null?i:e.length;if(typeof t=="number"&&t===t&&l<=We){for(;i<l;){var p=i+l>>>1,f=e[p];f!==null&&!ft(f)&&(r?f<=t:f<t)?i=p+1:l=p}return l}return ii(e,t,it,r)}function ii(e,t,r,i){var l=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var f=t!==t,_=t===null,v=ft(t),S=t===a;l<p;){var z=Ds((l+p)/2),N=r(e[z]),W=N!==a,X=N===null,Q=N===N,ne=ft(N);if(f)var J=i||Q;else S?J=Q&&(i||W):_?J=Q&&W&&(i||!X):v?J=Q&&W&&!X&&(i||!ne):X||ne?J=!1:J=i?N<=t:N<t;J?l=z+1:p=z}return Ye(p,Te)}function Ul(e,t){for(var r=-1,i=e.length,l=0,p=[];++r<i;){var f=e[r],_=t?t(f):f;if(!r||!Rt(_,v)){var v=_;p[l++]=f===0?0:f}}return p}function Wl(e){return typeof e=="number"?e:ft(e)?je:+e}function mt(e){if(typeof e=="string")return e;if(ae(e))return Ae(e,mt)+"";if(ft(e))return wl?wl.call(e):"";var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function mr(e,t,r){var i=-1,l=ms,p=e.length,f=!0,_=[],v=_;if(r)f=!1,l=En;else if(p>=u){var S=t?null:fy(e);if(S)return ys(S);f=!1,l=ka,v=new kr}else v=t?[]:_;e:for(;++i<p;){var z=e[i],N=t?t(z):z;if(z=r||z!==0?z:0,f&&N===N){for(var W=v.length;W--;)if(v[W]===N)continue e;t&&v.push(N),_.push(z)}else l(v,N,r)||(v!==_&&v.push(N),_.push(z))}return _}function oi(e,t){return t=fr(t,e),e=_c(e,t),e==null||delete e[Wt(qt(t))]}function Hl(e,t,r,i){return Ea(e,t,r(Ar(e,t)),i)}function Es(e,t,r,i){for(var l=e.length,p=i?l:-1;(i?p--:++p<l)&&t(e[p],p,e););return r?At(e,i?0:p,i?p+1:l):At(e,i?p+1:0,i?l:p)}function $l(e,t){var r=e;return r instanceof me&&(r=r.value()),Rn(t,function(i,l){return l.func.apply(l.thisArg,cr([i],l.args))},r)}function li(e,t,r){var i=e.length;if(i<2)return i?mr(e[0]):[];for(var l=-1,p=I(i);++l<i;)for(var f=e[l],_=-1;++_<i;)_!=l&&(p[l]=Na(p[l]||f,e[_],t,r));return mr(Ge(p,1),t,r)}function Xl(e,t,r){for(var i=-1,l=e.length,p=t.length,f={};++i<l;){var _=i<p?t[i]:a;r(f,e[i],_)}return f}function ci(e){return Pe(e)?e:[]}function ui(e){return typeof e=="function"?e:it}function fr(e,t){return ae(e)?e:bi(e,t)?[e]:wc(be(e))}var sy=oe;function yr(e,t,r){var i=e.length;return r=r===a?i:r,!t&&r>=i?e:At(e,t,r)}var Gl=Hm||function(e){return Xe.clearTimeout(e)};function Vl(e,t){if(t)return e.slice();var r=e.length,i=yl?yl(r):new e.constructor(r);return e.copy(i),i}function di(e){var t=new e.constructor(e.byteLength);return new ws(t).set(new ws(e)),t}function ny(e,t){var r=t?di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function iy(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}function oy(e){return Sa?Ie(Sa.call(e)):{}}function Yl(e,t){var r=t?di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Kl(e,t){if(e!==t){var r=e!==a,i=e===null,l=e===e,p=ft(e),f=t!==a,_=t===null,v=t===t,S=ft(t);if(!_&&!S&&!p&&e>t||p&&f&&v&&!_&&!S||i&&f&&v||!r&&v||!l)return 1;if(!i&&!p&&!S&&e<t||S&&r&&l&&!i&&!p||_&&r&&l||!f&&l||!v)return-1}return 0}function ly(e,t,r){for(var i=-1,l=e.criteria,p=t.criteria,f=l.length,_=r.length;++i<f;){var v=Kl(l[i],p[i]);if(v){if(i>=_)return v;var S=r[i];return v*(S=="desc"?-1:1)}}return e.index-t.index}function Ql(e,t,r,i){for(var l=-1,p=e.length,f=r.length,_=-1,v=t.length,S=Ue(p-f,0),z=I(v+S),N=!i;++_<v;)z[_]=t[_];for(;++l<f;)(N||l<p)&&(z[r[l]]=e[l]);for(;S--;)z[_++]=e[l++];return z}function Jl(e,t,r,i){for(var l=-1,p=e.length,f=-1,_=r.length,v=-1,S=t.length,z=Ue(p-_,0),N=I(z+S),W=!i;++l<z;)N[l]=e[l];for(var X=l;++v<S;)N[X+v]=t[v];for(;++f<_;)(W||l<p)&&(N[X+r[f]]=e[l++]);return N}function at(e,t){var r=-1,i=e.length;for(t||(t=I(i));++r<i;)t[r]=e[r];return t}function Ut(e,t,r,i){var l=!r;r||(r={});for(var p=-1,f=t.length;++p<f;){var _=t[p],v=i?i(r[_],e[_],_,r,e):a;v===a&&(v=e[_]),l?Kt(r,_,v):za(r,_,v)}return r}function cy(e,t){return Ut(e,gi(e),t)}function uy(e,t){return Ut(e,dc(e),t)}function Rs(e,t){return function(r,i){var l=ae(r)?fm:Nf,p=t?t():{};return l(r,e,K(i,2),p)}}function Qr(e){return oe(function(t,r){var i=-1,l=r.length,p=l>1?r[l-1]:a,f=l>2?r[2]:a;for(p=e.length>3&&typeof p=="function"?(l--,p):a,f&&Ze(r[0],r[1],f)&&(p=l<3?a:p,l=1),t=Ie(t);++i<l;){var _=r[i];_&&e(t,_,i,p)}return t})}function Zl(e,t){return function(r,i){if(r==null)return r;if(!st(r))return e(r,i);for(var l=r.length,p=t?l:-1,f=Ie(r);(t?p--:++p<l)&&i(f[p],p,f)!==!1;);return r}}function ec(e){return function(t,r,i){for(var l=-1,p=Ie(t),f=i(t),_=f.length;_--;){var v=f[e?_:++l];if(r(p[v],v,p)===!1)break}return t}}function dy(e,t,r){var i=t&V,l=Ra(e);function p(){var f=this&&this!==Xe&&this instanceof p?l:e;return f.apply(i?r:this,arguments)}return p}function tc(e){return function(t){t=be(t);var r=Hr(t)?Pt(t):a,i=r?r[0]:t.charAt(0),l=r?yr(r,1).join(""):t.slice(1);return i[e]()+l}}function Jr(e){return function(t){return Rn(Zc(Jc(t).replace(em,"")),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=Kr(e.prototype),i=e.apply(r,t);return Se(i)?i:r}}function py(e,t,r){var i=Ra(e);function l(){for(var p=arguments.length,f=I(p),_=p,v=Zr(l);_--;)f[_]=arguments[_];var S=p<3&&f[0]!==v&&f[p-1]!==v?[]:ur(f,v);if(p-=S.length,p<r)return ic(e,t,Ls,l.placeholder,a,f,S,a,a,r-p);var z=this&&this!==Xe&&this instanceof l?i:e;return dt(z,this,f)}return l}function rc(e){return function(t,r,i){var l=Ie(t);if(!st(t)){var p=K(r,3);t=He(t),r=function(_){return p(l[_],_,l)}}var f=e(t,r,i);return f>-1?l[p?t[f]:f]:a}}function ac(e){return Jt(function(t){var r=t.length,i=r,l=kt.prototype.thru;for(e&&t.reverse();i--;){var p=t[i];if(typeof p!="function")throw new It(m);if(l&&!f&&Bs(p)=="wrapper")var f=new kt([],!0)}for(i=f?i:r;++i<r;){p=t[i];var _=Bs(p),v=_=="wrapper"?hi(p):a;v&&xi(v[0])&&v[1]==(H|F|k|le)&&!v[4].length&&v[9]==1?f=f[Bs(v[0])].apply(f,v[3]):f=p.length==1&&xi(p)?f[_]():f.thru(p)}return function(){var S=arguments,z=S[0];if(f&&S.length==1&&ae(z))return f.plant(z).value();for(var N=0,W=r?t[N].apply(this,S):z;++N<r;)W=t[N].call(this,W);return W}})}function Ls(e,t,r,i,l,p,f,_,v,S){var z=t&H,N=t&V,W=t&Z,X=t&(F|A),Q=t&ie,ne=W?a:Ra(e);function J(){for(var de=arguments.length,fe=I(de),yt=de;yt--;)fe[yt]=arguments[yt];if(X)var et=Zr(J),ht=Tm(fe,et);if(i&&(fe=Ql(fe,i,l,X)),p&&(fe=Jl(fe,p,f,X)),de-=ht,X&&de<S){var Ee=ur(fe,et);return ic(e,t,Ls,J.placeholder,r,fe,Ee,_,v,S-de)}var Lt=N?r:this,rr=W?Lt[e]:e;return de=fe.length,_?fe=Ny(fe,_):Q&&de>1&&fe.reverse(),z&&v<de&&(fe.length=v),this&&this!==Xe&&this instanceof J&&(rr=ne||Ra(rr)),rr.apply(Lt,fe)}return J}function sc(e,t){return function(r,i){return jf(r,e,t(i),{})}}function Ms(e,t){return function(r,i){var l;if(r===a&&i===a)return t;if(r!==a&&(l=r),i!==a){if(l===a)return i;typeof r=="string"||typeof i=="string"?(r=mt(r),i=mt(i)):(r=Wl(r),i=Wl(i)),l=e(r,i)}return l}}function pi(e){return Jt(function(t){return t=Ae(t,pt(K())),oe(function(r){var i=this;return e(t,function(l){return dt(l,i,r)})})})}function Fs(e,t){t=t===a?" ":mt(t);var r=t.length;if(r<2)return r?ni(t,e):t;var i=ni(t,ks(e/$r(t)));return Hr(t)?yr(Pt(i),0,e).join(""):i.slice(0,e)}function my(e,t,r,i){var l=t&V,p=Ra(e);function f(){for(var _=-1,v=arguments.length,S=-1,z=i.length,N=I(z+v),W=this&&this!==Xe&&this instanceof f?p:e;++S<z;)N[S]=i[S];for(;v--;)N[S++]=arguments[++_];return dt(W,l?r:this,N)}return f}function nc(e){return function(t,r,i){return i&&typeof i!="number"&&Ze(t,r,i)&&(r=i=a),t=tr(t),r===a?(r=t,t=0):r=tr(r),i=i===a?t<r?1:-1:tr(i),Jf(t,r,i,e)}}function js(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Ct(t),r=Ct(r)),e(t,r)}}function ic(e,t,r,i,l,p,f,_,v,S){var z=t&F,N=z?f:a,W=z?a:f,X=z?p:a,Q=z?a:p;t|=z?k:B,t&=~(z?B:k),t&G||(t&=~(V|Z));var ne=[e,t,l,X,N,Q,W,_,v,S],J=r.apply(a,ne);return xi(e)&&gc(J,ne),J.placeholder=i,bc(J,e,t)}function mi(e){var t=Be[e];return function(r,i){if(r=Ct(r),i=i==null?0:Ye(se(i),292),i&&bl(r)){var l=(be(r)+"e").split("e"),p=t(l[0]+"e"+(+l[1]+i));return l=(be(p)+"e").split("e"),+(l[0]+"e"+(+l[1]-i))}return t(r)}}var fy=Vr&&1/ys(new Vr([,-0]))[1]==Oe?function(e){return new Vr(e)}:Ei;function oc(e){return function(t){var r=Ke(t);return r==ct?Wn(t):r==ut?Sm(t):vm(t,e(t))}}function Qt(e,t,r,i,l,p,f,_){var v=t&Z;if(!v&&typeof e!="function")throw new It(m);var S=i?i.length:0;if(S||(t&=~(k|B),i=l=a),f=f===a?f:Ue(se(f),0),_=_===a?_:se(_),S-=l?l.length:0,t&B){var z=i,N=l;i=l=a}var W=v?a:hi(e),X=[e,t,r,i,l,z,N,p,f,_];if(W&&Cy(X,W),e=X[0],t=X[1],r=X[2],i=X[3],l=X[4],_=X[9]=X[9]===a?v?0:e.length:Ue(X[9]-S,0),!_&&t&(F|A)&&(t&=~(F|A)),!t||t==V)var Q=dy(e,t,r);else t==F||t==A?Q=py(e,t,_):(t==k||t==(V|k))&&!l.length?Q=my(e,t,r,i):Q=Ls.apply(a,X);var ne=W?Bl:gc;return bc(ne(Q,X),e,t)}function lc(e,t,r,i){return e===a||Rt(e,Gr[r])&&!ve.call(i,r)?t:e}function cc(e,t,r,i,l,p){return Se(e)&&Se(t)&&(p.set(t,e),Os(e,t,a,cc,p),p.delete(t)),e}function yy(e){return Fa(e)?a:e}function uc(e,t,r,i,l,p){var f=r&j,_=e.length,v=t.length;if(_!=v&&!(f&&v>_))return!1;var S=p.get(e),z=p.get(t);if(S&&z)return S==t&&z==e;var N=-1,W=!0,X=r&E?new kr:a;for(p.set(e,t),p.set(t,e);++N<_;){var Q=e[N],ne=t[N];if(i)var J=f?i(ne,Q,N,t,e,p):i(Q,ne,N,e,t,p);if(J!==a){if(J)continue;W=!1;break}if(X){if(!Ln(t,function(de,fe){if(!ka(X,fe)&&(Q===de||l(Q,de,r,i,p)))return X.push(fe)})){W=!1;break}}else if(!(Q===ne||l(Q,ne,r,i,p))){W=!1;break}}return p.delete(e),p.delete(t),W}function hy(e,t,r,i,l,p,f){switch(r){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Nt:return!(e.byteLength!=t.byteLength||!p(new ws(e),new ws(t)));case Ft:case $t:case jt:return Rt(+e,+t);case Er:return e.name==t.name&&e.message==t.message;case xr:case Xt:return e==t+"";case ct:var _=Wn;case ut:var v=i&j;if(_||(_=ys),e.size!=t.size&&!v)return!1;var S=f.get(e);if(S)return S==t;i|=E,f.set(e,t);var z=uc(_(e),_(t),i,l,p,f);return f.delete(e),z;case Mr:if(Sa)return Sa.call(e)==Sa.call(t)}return!1}function _y(e,t,r,i,l,p){var f=r&j,_=fi(e),v=_.length,S=fi(t),z=S.length;if(v!=z&&!f)return!1;for(var N=v;N--;){var W=_[N];if(!(f?W in t:ve.call(t,W)))return!1}var X=p.get(e),Q=p.get(t);if(X&&Q)return X==t&&Q==e;var ne=!0;p.set(e,t),p.set(t,e);for(var J=f;++N<v;){W=_[N];var de=e[W],fe=t[W];if(i)var yt=f?i(fe,de,W,t,e,p):i(de,fe,W,e,t,p);if(!(yt===a?de===fe||l(de,fe,r,i,p):yt)){ne=!1;break}J||(J=W=="constructor")}if(ne&&!J){var et=e.constructor,ht=t.constructor;et!=ht&&"constructor"in e&&"constructor"in t&&!(typeof et=="function"&&et instanceof et&&typeof ht=="function"&&ht instanceof ht)&&(ne=!1)}return p.delete(e),p.delete(t),ne}function Jt(e){return vi(hc(e,a,kc),e+"")}function fi(e){return Sl(e,He,gi)}function yi(e){return Sl(e,nt,dc)}var hi=As?function(e){return As.get(e)}:Ei;function Bs(e){for(var t=e.name+"",r=Yr[t],i=ve.call(Yr,t)?r.length:0;i--;){var l=r[i],p=l.func;if(p==null||p==e)return l.name}return t}function Zr(e){var t=ve.call(d,"placeholder")?d:e;return t.placeholder}function K(){var e=d.iteratee||Oi;return e=e===Oi?Ol:e,arguments.length?e(arguments[0],arguments[1]):e}function Us(e,t){var r=e.__data__;return ky(t)?r[typeof t=="string"?"string":"hash"]:r.map}function _i(e){for(var t=He(e),r=t.length;r--;){var i=t[r],l=e[i];t[r]=[i,l,fc(l)]}return t}function qr(e,t){var r=Am(e,t);return Nl(r)?r:a}function gy(e){var t=ve.call(e,Tr),r=e[Tr];try{e[Tr]=a;var i=!0}catch{}var l=bs.call(e);return i&&(t?e[Tr]=r:delete e[Tr]),l}var gi=$n?function(e){return e==null?[]:(e=Ie(e),lr($n(e),function(t){return _l.call(e,t)}))}:Ri,dc=$n?function(e){for(var t=[];e;)cr(t,gi(e)),e=vs(e);return t}:Ri,Ke=Je;(Xn&&Ke(new Xn(new ArrayBuffer(1)))!=or||Aa&&Ke(new Aa)!=ct||Gn&&Ke(Gn.resolve())!=fa||Vr&&Ke(new Vr)!=ut||qa&&Ke(new qa)!=ir)&&(Ke=function(e){var t=Je(e),r=t==wt?e.constructor:a,i=r?Cr(r):"";if(i)switch(i){case Zm:return or;case ef:return ct;case tf:return fa;case rf:return ut;case af:return ir}return t});function by(e,t,r){for(var i=-1,l=r.length;++i<l;){var p=r[i],f=p.size;switch(p.type){case"drop":e+=f;break;case"dropRight":t-=f;break;case"take":t=Ye(t,e+f);break;case"takeRight":e=Ue(e,t-f);break}}return{start:e,end:t}}function xy(e){var t=e.match(An);return t?t[1].split(y):[]}function pc(e,t,r){t=fr(t,e);for(var i=-1,l=t.length,p=!1;++i<l;){var f=Wt(t[i]);if(!(p=e!=null&&r(e,f)))break;e=e[f]}return p||++i!=l?p:(l=e==null?0:e.length,!!l&&Ys(l)&&Zt(f,l)&&(ae(e)||Sr(e)))}function wy(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&ve.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function mc(e){return typeof e.constructor=="function"&&!La(e)?Kr(vs(e)):{}}function vy(e,t,r){var i=e.constructor;switch(t){case Nt:return di(e);case Ft:case $t:return new i(+e);case or:return ny(e,r);case Fr:case jr:case wr:case ya:case ha:case _a:case ga:case ba:case xa:return Yl(e,r);case ct:return new i;case jt:case Xt:return new i(e);case xr:return iy(e);case ut:return new i;case Mr:return oy(e)}}function Ty(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(Dn,`{
113
113
  /* [wrapped with `+t+`] */
114
- `)}function Iy(e){return ae(e)||Sr(e)||!!(gl&&e&&e[gl])}function Jt(e,t){var r=typeof e;return t=t??Le,!!t&&(r=="number"||r!="symbol"&&ze.test(e))&&e>-1&&e%1==0&&e<t}function Je(e,t,r){if(!Se(r))return!1;var i=typeof t;return(i=="number"?st(r)&&Jt(t,r.length):i=="string"&&t in r)?Rt(r[t],e):!1}function bi(e,t){if(ae(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ft(e)?!0:cs.test(e)||!ls.test(e)||t!=null&&e in Ie(t)}function ky(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function xi(e){var t=Bs(e),r=d[t];if(typeof r!="function"||!(t in me.prototype))return!1;if(e===r)return!0;var i=hi(r);return!!i&&e===i[0]}function Dy(e){return!!fl&&fl in e}var Ay=_s?er:Li;function La(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Gr;return e===r}function fc(e){return e===e&&!Se(e)}function yc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in Ie(r))}}function qy(e){var t=Gs(e,function(i){return r.size===g&&r.clear(),i}),r=t.cache;return t}function Cy(e,t){var r=e[1],i=t[1],l=r|i,p=l<(V|J|H),f=i==H&&r==F||i==H&&r==le&&e[7].length<=t[8]||i==(H|le)&&t[7].length<=t[8]&&r==F;if(!(p||f))return e;i&V&&(e[2]=t[2],l|=r&V?0:G);var _=t[3];if(_){var v=e[3];e[3]=v?Ql(v,_,t[4]):_,e[4]=v?ur(e[3],x):t[4]}return _=t[5],_&&(v=e[5],e[5]=v?Zl(v,_,t[6]):_,e[6]=v?ur(e[5],x):t[6]),_=t[7],_&&(e[7]=_),i&H&&(e[8]=e[8]==null?t[8]:Ye(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function Sy(e){var t=[];if(e!=null)for(var r in Ie(e))t.push(r);return t}function zy(e){return bs.call(e)}function hc(e,t,r){return t=Ue(t===a?e.length-1:t,0),function(){for(var i=arguments,l=-1,p=Ue(i.length-t,0),f=I(p);++l<p;)f[l]=i[t+l];l=-1;for(var _=I(t+1);++l<t;)_[l]=i[l];return _[t]=r(f),dt(e,this,_)}}function _c(e,t){return t.length<2?e:Ar(e,Dt(t,0,-1))}function Ny(e,t){for(var r=e.length,i=Ye(t.length,r),l=at(e);i--;){var p=t[i];e[i]=Jt(p,r)?l[p]:a}return e}function wi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var gc=xc(Bl),Ma=Xm||function(e,t){return Xe.setTimeout(e,t)},vi=xc(ty);function bc(e,t,r){var i=t+"";return vi(e,Ty(i,Oy(xy(i),r)))}function xc(e){var t=0,r=0;return function(){var i=Km(),l=Me-(i-r);if(r=i,l>0){if(++t>=zt)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ws(e,t){var r=-1,i=e.length,l=i-1;for(t=t===a?i:t;++r<t;){var p=si(r,l),f=e[p];e[p]=e[r],e[r]=f}return e.length=t,e}var wc=qy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(In,function(r,i,l,p){t.push(l?p.replace(ee,"$1"):i||r)}),t});function Wt(e){if(typeof e=="string"||ft(e))return e;var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function Cr(e){if(e!=null){try{return gs.call(e)}catch{}try{return e+""}catch{}}return""}function Oy(e,t){return vt(Ht,function(r){var i="_."+r[0];t&r[1]&&!ms(e,i)&&e.push(i)}),e.sort()}function vc(e){if(e instanceof me)return e.clone();var t=new It(e.__wrapped__,e.__chain__);return t.__actions__=at(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Py(e,t,r){(r?Je(e,t,r):t===a)?t=1:t=Ue(se(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var l=0,p=0,f=I(ks(i/t));l<i;)f[p++]=Dt(e,l,l+=t);return f}function Ey(e){for(var t=-1,r=e==null?0:e.length,i=0,l=[];++t<r;){var p=e[t];p&&(l[i++]=p)}return l}function Ry(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return cr(ae(r)?at(r):[r],Ge(t,1))}var Ly=oe(function(e,t){return Pe(e)?Na(e,Ge(t,1,Pe,!0)):[]}),My=oe(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Na(e,Ge(t,1,Pe,!0),K(r,2)):[]}),Fy=oe(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Na(e,Ge(t,1,Pe,!0),a,r):[]});function jy(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),Dt(e,t<0?0:t,i)):[]}function By(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),t=i-t,Dt(e,0,t<0?0:t)):[]}function Uy(e,t){return e&&e.length?Es(e,K(t,3),!0,!0):[]}function Wy(e,t){return e&&e.length?Es(e,K(t,3),!0):[]}function Hy(e,t,r,i){var l=e==null?0:e.length;return l?(r&&typeof r!="number"&&Je(e,t,r)&&(r=0,i=l),Rf(e,t,r,i)):[]}function Tc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=r==null?0:se(r);return l<0&&(l=Ue(i+l,0)),fs(e,K(t,3),l)}function Ic(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=i-1;return r!==a&&(l=se(r),l=r<0?Ue(i+l,0):Ye(l,i-1)),fs(e,K(t,3),l,!0)}function kc(e){var t=e==null?0:e.length;return t?Ge(e,1):[]}function $y(e){var t=e==null?0:e.length;return t?Ge(e,Oe):[]}function Xy(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:se(t),Ge(e,t)):[]}function Gy(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var l=e[t];i[l[0]]=l[1]}return i}function Dc(e){return e&&e.length?e[0]:a}function Vy(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=r==null?0:se(r);return l<0&&(l=Ue(i+l,0)),Wr(e,t,l)}function Yy(e){var t=e==null?0:e.length;return t?Dt(e,0,-1):[]}var Ky=oe(function(e){var t=Ae(e,ci);return t.length&&t[0]===e[0]?Jn(t):[]}),Qy=oe(function(e){var t=At(e),r=Ae(e,ci);return t===At(r)?t=a:r.pop(),r.length&&r[0]===e[0]?Jn(r,K(t,2)):[]}),Zy=oe(function(e){var t=At(e),r=Ae(e,ci);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?Jn(r,a,t):[]});function Jy(e,t){return e==null?"":Vm.call(e,t)}function At(e){var t=e==null?0:e.length;return t?e[t-1]:a}function eh(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=i;return r!==a&&(l=se(r),l=l<0?Ue(i+l,0):Ye(l,i-1)),t===t?Nm(e,t,l):fs(e,il,l,!0)}function th(e,t){return e&&e.length?Ll(e,se(t)):a}var rh=oe(Ac);function Ac(e,t){return e&&e.length&&t&&t.length?ai(e,t):e}function ah(e,t,r){return e&&e.length&&t&&t.length?ai(e,t,K(r,2)):e}function sh(e,t,r){return e&&e.length&&t&&t.length?ai(e,t,a,r):e}var nh=Zt(function(e,t){var r=e==null?0:e.length,i=Yn(e,t);return jl(e,Ae(t,function(l){return Jt(l,r)?+l:l}).sort(Kl)),i});function ih(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,l=[],p=e.length;for(t=K(t,3);++i<p;){var f=e[i];t(f,i,e)&&(r.push(f),l.push(i))}return jl(e,l),r}function Ti(e){return e==null?e:Zm.call(e)}function oh(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Je(e,t,r)?(t=0,r=i):(t=t==null?0:se(t),r=r===a?i:se(r)),Dt(e,t,r)):[]}function lh(e,t){return Ps(e,t)}function ch(e,t,r){return ii(e,t,K(r,2))}function uh(e,t){var r=e==null?0:e.length;if(r){var i=Ps(e,t);if(i<r&&Rt(e[i],t))return i}return-1}function dh(e,t){return Ps(e,t,!0)}function ph(e,t,r){return ii(e,t,K(r,2),!0)}function mh(e,t){var r=e==null?0:e.length;if(r){var i=Ps(e,t,!0)-1;if(Rt(e[i],t))return i}return-1}function fh(e){return e&&e.length?Ul(e):[]}function yh(e,t){return e&&e.length?Ul(e,K(t,2)):[]}function hh(e){var t=e==null?0:e.length;return t?Dt(e,1,t):[]}function _h(e,t,r){return e&&e.length?(t=r||t===a?1:se(t),Dt(e,0,t<0?0:t)):[]}function gh(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),t=i-t,Dt(e,t<0?0:t,i)):[]}function bh(e,t){return e&&e.length?Es(e,K(t,3),!1,!0):[]}function xh(e,t){return e&&e.length?Es(e,K(t,3)):[]}var wh=oe(function(e){return mr(Ge(e,1,Pe,!0))}),vh=oe(function(e){var t=At(e);return Pe(t)&&(t=a),mr(Ge(e,1,Pe,!0),K(t,2))}),Th=oe(function(e){var t=At(e);return t=typeof t=="function"?t:a,mr(Ge(e,1,Pe,!0),a,t)});function Ih(e){return e&&e.length?mr(e):[]}function kh(e,t){return e&&e.length?mr(e,K(t,2)):[]}function Dh(e,t){return t=typeof t=="function"?t:a,e&&e.length?mr(e,a,t):[]}function Ii(e){if(!(e&&e.length))return[];var t=0;return e=lr(e,function(r){if(Pe(r))return t=Ue(r.length,t),!0}),Bn(t,function(r){return Ae(e,Mn(r))})}function qc(e,t){if(!(e&&e.length))return[];var r=Ii(e);return t==null?r:Ae(r,function(i){return dt(t,a,i)})}var Ah=oe(function(e,t){return Pe(e)?Na(e,t):[]}),qh=oe(function(e){return li(lr(e,Pe))}),Ch=oe(function(e){var t=At(e);return Pe(t)&&(t=a),li(lr(e,Pe),K(t,2))}),Sh=oe(function(e){var t=At(e);return t=typeof t=="function"?t:a,li(lr(e,Pe),a,t)}),zh=oe(Ii);function Nh(e,t){return Xl(e||[],t||[],za)}function Oh(e,t){return Xl(e||[],t||[],Ea)}var Ph=oe(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,qc(e,r)});function Cc(e){var t=d(e);return t.__chain__=!0,t}function Eh(e,t){return t(e),e}function Hs(e,t){return t(e)}var Rh=Zt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,l=function(p){return Yn(p,e)};return t>1||this.__actions__.length||!(i instanceof me)||!Jt(r)?this.thru(l):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:Hs,args:[l],thisArg:a}),new It(i,this.__chain__).thru(function(p){return t&&!p.length&&p.push(a),p}))});function Lh(){return Cc(this)}function Mh(){return new It(this.value(),this.__chain__)}function Fh(){this.__values__===a&&(this.__values__=Wc(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function jh(){return this}function Bh(e){for(var t,r=this;r instanceof Cs;){var i=vc(r);i.__index__=0,i.__values__=a,t?l.__wrapped__=i:t=i;var l=i;r=r.__wrapped__}return l.__wrapped__=e,t}function Uh(){var e=this.__wrapped__;if(e instanceof me){var t=e;return this.__actions__.length&&(t=new me(this)),t=t.reverse(),t.__actions__.push({func:Hs,args:[Ti],thisArg:a}),new It(t,this.__chain__)}return this.thru(Ti)}function Wh(){return $l(this.__wrapped__,this.__actions__)}var Hh=Rs(function(e,t,r){ve.call(e,r)?++e[r]:Kt(e,r,1)});function $h(e,t,r){var i=ae(e)?sl:Ef;return r&&Je(e,t,r)&&(t=a),i(e,K(t,3))}function Xh(e,t){var r=ae(e)?lr:ql;return r(e,K(t,3))}var Gh=rc(Tc),Vh=rc(Ic);function Yh(e,t){return Ge($s(e,t),1)}function Kh(e,t){return Ge($s(e,t),Oe)}function Qh(e,t,r){return r=r===a?1:se(r),Ge($s(e,t),r)}function Sc(e,t){var r=ae(e)?vt:pr;return r(e,K(t,3))}function zc(e,t){var r=ae(e)?ym:Al;return r(e,K(t,3))}var Zh=Rs(function(e,t,r){ve.call(e,r)?e[r].push(t):Kt(e,r,[t])});function Jh(e,t,r,i){e=st(e)?e:ta(e),r=r&&!i?se(r):0;var l=e.length;return r<0&&(r=Ue(l+r,0)),Ks(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&Wr(e,t,r)>-1}var e_=oe(function(e,t,r){var i=-1,l=typeof t=="function",p=st(e)?I(e.length):[];return pr(e,function(f){p[++i]=l?dt(t,f,r):Oa(f,t,r)}),p}),t_=Rs(function(e,t,r){Kt(e,r,t)});function $s(e,t){var r=ae(e)?Ae:Pl;return r(e,K(t,3))}function r_(e,t,r,i){return e==null?[]:(ae(t)||(t=t==null?[]:[t]),r=i?a:r,ae(r)||(r=r==null?[]:[r]),Ml(e,t,r))}var a_=Rs(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function s_(e,t,r){var i=ae(e)?Rn:ll,l=arguments.length<3;return i(e,K(t,4),r,l,pr)}function n_(e,t,r){var i=ae(e)?hm:ll,l=arguments.length<3;return i(e,K(t,4),r,l,Al)}function i_(e,t){var r=ae(e)?lr:ql;return r(e,Vs(K(t,3)))}function o_(e){var t=ae(e)?Tl:Jf;return t(e)}function l_(e,t,r){(r?Je(e,t,r):t===a)?t=1:t=se(t);var i=ae(e)?Sf:ey;return i(e,t)}function c_(e){var t=ae(e)?zf:ry;return t(e)}function u_(e){if(e==null)return 0;if(st(e))return Ks(e)?$r(e):e.length;var t=Ke(e);return t==ct||t==ut?e.size:ti(e).length}function d_(e,t,r){var i=ae(e)?Ln:ay;return r&&Je(e,t,r)&&(t=a),i(e,K(t,3))}var p_=oe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Je(e,t[0],t[1])?t=[]:r>2&&Je(t[0],t[1],t[2])&&(t=[t[0]]),Ml(e,Ge(t,1),[])}),Xs=$m||function(){return Xe.Date.now()};function m_(e,t){if(typeof t!="function")throw new Tt(m);return e=se(e),function(){if(--e<1)return t.apply(this,arguments)}}function Nc(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Qt(e,H,a,a,a,a,t)}function Oc(e,t){var r;if(typeof t!="function")throw new Tt(m);return e=se(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var ki=oe(function(e,t,r){var i=V;if(r.length){var l=ur(r,Jr(ki));i|=k}return Qt(e,i,t,r,l)}),Pc=oe(function(e,t,r){var i=V|J;if(r.length){var l=ur(r,Jr(Pc));i|=k}return Qt(t,i,e,r,l)});function Ec(e,t,r){t=r?a:t;var i=Qt(e,F,a,a,a,a,a,t);return i.placeholder=Ec.placeholder,i}function Rc(e,t,r){t=r?a:t;var i=Qt(e,A,a,a,a,a,a,t);return i.placeholder=Rc.placeholder,i}function Lc(e,t,r){var i,l,p,f,_,v,S=0,z=!1,N=!1,W=!0;if(typeof e!="function")throw new Tt(m);t=qt(t)||0,Se(r)&&(z=!!r.leading,N="maxWait"in r,p=N?Ue(qt(r.maxWait)||0,t):p,W="trailing"in r?!!r.trailing:W);function X(Ee){var Lt=i,rr=l;return i=l=a,S=Ee,f=e.apply(rr,Lt),f}function Q(Ee){return S=Ee,_=Ma(de,t),z?X(Ee):f}function ne(Ee){var Lt=Ee-v,rr=Ee-S,ru=t-Lt;return N?Ye(ru,p-rr):ru}function Z(Ee){var Lt=Ee-v,rr=Ee-S;return v===a||Lt>=t||Lt<0||N&&rr>=p}function de(){var Ee=Xs();if(Z(Ee))return fe(Ee);_=Ma(de,ne(Ee))}function fe(Ee){return _=a,W&&i?X(Ee):(i=l=a,f)}function yt(){_!==a&&Gl(_),S=0,i=v=l=_=a}function et(){return _===a?f:fe(Xs())}function ht(){var Ee=Xs(),Lt=Z(Ee);if(i=arguments,l=this,v=Ee,Lt){if(_===a)return Q(v);if(N)return Gl(_),_=Ma(de,t),X(v)}return _===a&&(_=Ma(de,t)),f}return ht.cancel=yt,ht.flush=et,ht}var f_=oe(function(e,t){return Dl(e,1,t)}),y_=oe(function(e,t,r){return Dl(e,qt(t)||0,r)});function h_(e){return Qt(e,ie)}function Gs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Tt(m);var r=function(){var i=arguments,l=t?t.apply(this,i):i[0],p=r.cache;if(p.has(l))return p.get(l);var f=e.apply(this,i);return r.cache=p.set(l,f)||p,f};return r.cache=new(Gs.Cache||Yt),r}Gs.Cache=Yt;function Vs(e){if(typeof e!="function")throw new Tt(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 __(e){return Oc(2,e)}var g_=sy(function(e,t){t=t.length==1&&ae(t[0])?Ae(t[0],pt(K())):Ae(Ge(t,1),pt(K()));var r=t.length;return oe(function(i){for(var l=-1,p=Ye(i.length,r);++l<p;)i[l]=t[l].call(this,i[l]);return dt(e,this,i)})}),Di=oe(function(e,t){var r=ur(t,Jr(Di));return Qt(e,k,a,t,r)}),Mc=oe(function(e,t){var r=ur(t,Jr(Mc));return Qt(e,B,a,t,r)}),b_=Zt(function(e,t){return Qt(e,le,a,a,a,t)});function x_(e,t){if(typeof e!="function")throw new Tt(m);return t=t===a?t:se(t),oe(e,t)}function w_(e,t){if(typeof e!="function")throw new Tt(m);return t=t==null?0:Ue(se(t),0),oe(function(r){var i=r[t],l=yr(r,0,t);return i&&cr(l,i),dt(e,this,l)})}function v_(e,t,r){var i=!0,l=!0;if(typeof e!="function")throw new Tt(m);return Se(r)&&(i="leading"in r?!!r.leading:i,l="trailing"in r?!!r.trailing:l),Lc(e,t,{leading:i,maxWait:t,trailing:l})}function T_(e){return Nc(e,1)}function I_(e,t){return Di(ui(t),e)}function k_(){if(!arguments.length)return[];var e=arguments[0];return ae(e)?e:[e]}function D_(e){return kt(e,L)}function A_(e,t){return t=typeof t=="function"?t:a,kt(e,L,t)}function q_(e){return kt(e,T|L)}function C_(e,t){return t=typeof t=="function"?t:a,kt(e,T|L,t)}function S_(e,t){return t==null||kl(e,t,He(t))}function Rt(e,t){return e===t||e!==e&&t!==t}var z_=js(Zn),N_=js(function(e,t){return e>=t}),Sr=zl(function(){return arguments}())?zl:function(e){return Ne(e)&&ve.call(e,"callee")&&!_l.call(e,"callee")},ae=I.isArray,O_=Zo?pt(Zo):Bf;function st(e){return e!=null&&Ys(e.length)&&!er(e)}function Pe(e){return Ne(e)&&st(e)}function P_(e){return e===!0||e===!1||Ne(e)&&Ze(e)==Ft}var hr=Gm||Li,E_=Jo?pt(Jo):Uf;function R_(e){return Ne(e)&&e.nodeType===1&&!Fa(e)}function L_(e){if(e==null)return!0;if(st(e)&&(ae(e)||typeof e=="string"||typeof e.splice=="function"||hr(e)||ea(e)||Sr(e)))return!e.length;var t=Ke(e);if(t==ct||t==ut)return!e.size;if(La(e))return!ti(e).length;for(var r in e)if(ve.call(e,r))return!1;return!0}function M_(e,t){return Pa(e,t)}function F_(e,t,r){r=typeof r=="function"?r:a;var i=r?r(e,t):a;return i===a?Pa(e,t,a,r):!!i}function Ai(e){if(!Ne(e))return!1;var t=Ze(e);return t==Er||t==Pr||typeof e.message=="string"&&typeof e.name=="string"&&!Fa(e)}function j_(e){return typeof e=="number"&&bl(e)}function er(e){if(!Se(e))return!1;var t=Ze(e);return t==br||t==rs||t==ma||t==Lr}function Fc(e){return typeof e=="number"&&e==se(e)}function Ys(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Le}function Se(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ne(e){return e!=null&&typeof e=="object"}var jc=el?pt(el):Hf;function B_(e,t){return e===t||ei(e,t,_i(t))}function U_(e,t,r){return r=typeof r=="function"?r:a,ei(e,t,_i(t),r)}function W_(e){return Bc(e)&&e!=+e}function H_(e){if(Ay(e))throw new re(c);return Nl(e)}function $_(e){return e===null}function X_(e){return e==null}function Bc(e){return typeof e=="number"||Ne(e)&&Ze(e)==jt}function Fa(e){if(!Ne(e)||Ze(e)!=xt)return!1;var t=vs(e);if(t===null)return!0;var r=ve.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&gs.call(r)==Bm}var qi=tl?pt(tl):$f;function G_(e){return Fc(e)&&e>=-Le&&e<=Le}var Uc=rl?pt(rl):Xf;function Ks(e){return typeof e=="string"||!ae(e)&&Ne(e)&&Ze(e)==Xt}function ft(e){return typeof e=="symbol"||Ne(e)&&Ze(e)==Mr}var ea=al?pt(al):Gf;function V_(e){return e===a}function Y_(e){return Ne(e)&&Ke(e)==ir}function K_(e){return Ne(e)&&Ze(e)==as}var Q_=js(ri),Z_=js(function(e,t){return e<=t});function Wc(e){if(!e)return[];if(st(e))return Ks(e)?Pt(e):at(e);if(Da&&e[Da])return Cm(e[Da]());var t=Ke(e),r=t==ct?Wn:t==ut?ys:ta;return r(e)}function tr(e){if(!e)return e===0?e:0;if(e=qt(e),e===Oe||e===-Oe){var t=e<0?-1:1;return t*lt}return e===e?e:0}function se(e){var t=tr(e),r=t%1;return t===t?r?t-r:t:0}function Hc(e){return e?Dr(se(e),0,te):0}function qt(e){if(typeof e=="number")return e;if(ft(e))return je;if(Se(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Se(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=cl(e);var r=ue.test(e);return r||Ce.test(e)?pm(e.slice(2),r?2:8):pe.test(e)?je:+e}function $c(e){return Ut(e,nt(e))}function J_(e){return e?Dr(se(e),-Le,Le):e===0?e:0}function be(e){return e==null?"":mt(e)}var eg=Qr(function(e,t){if(La(t)||st(t)){Ut(t,He(t),e);return}for(var r in t)ve.call(t,r)&&za(e,r,t[r])}),Xc=Qr(function(e,t){Ut(t,nt(t),e)}),Qs=Qr(function(e,t,r,i){Ut(t,nt(t),e,i)}),tg=Qr(function(e,t,r,i){Ut(t,He(t),e,i)}),rg=Zt(Yn);function ag(e,t){var r=Kr(e);return t==null?r:Il(r,t)}var sg=oe(function(e,t){e=Ie(e);var r=-1,i=t.length,l=i>2?t[2]:a;for(l&&Je(t[0],t[1],l)&&(i=1);++r<i;)for(var p=t[r],f=nt(p),_=-1,v=f.length;++_<v;){var S=f[_],z=e[S];(z===a||Rt(z,Gr[S])&&!ve.call(e,S))&&(e[S]=p[S])}return e}),ng=oe(function(e){return e.push(a,cc),dt(Gc,a,e)});function ig(e,t){return nl(e,K(t,3),Bt)}function og(e,t){return nl(e,K(t,3),Qn)}function lg(e,t){return e==null?e:Kn(e,K(t,3),nt)}function cg(e,t){return e==null?e:Cl(e,K(t,3),nt)}function ug(e,t){return e&&Bt(e,K(t,3))}function dg(e,t){return e&&Qn(e,K(t,3))}function pg(e){return e==null?[]:Ns(e,He(e))}function mg(e){return e==null?[]:Ns(e,nt(e))}function Ci(e,t,r){var i=e==null?a:Ar(e,t);return i===a?r:i}function fg(e,t){return e!=null&&pc(e,t,Lf)}function Si(e,t){return e!=null&&pc(e,t,Mf)}var yg=sc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=bs.call(t)),e[t]=r},Ni(it)),hg=sc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=bs.call(t)),ve.call(e,t)?e[t].push(r):e[t]=[r]},K),_g=oe(Oa);function He(e){return st(e)?vl(e):ti(e)}function nt(e){return st(e)?vl(e,!0):Vf(e)}function gg(e,t){var r={};return t=K(t,3),Bt(e,function(i,l,p){Kt(r,t(i,l,p),i)}),r}function bg(e,t){var r={};return t=K(t,3),Bt(e,function(i,l,p){Kt(r,l,t(i,l,p))}),r}var xg=Qr(function(e,t,r){Os(e,t,r)}),Gc=Qr(function(e,t,r,i){Os(e,t,r,i)}),wg=Zt(function(e,t){var r={};if(e==null)return r;var i=!1;t=Ae(t,function(p){return p=fr(p,e),i||(i=p.length>1),p}),Ut(e,yi(e),r),i&&(r=kt(r,T|R|L,yy));for(var l=t.length;l--;)oi(r,t[l]);return r});function vg(e,t){return Vc(e,Vs(K(t)))}var Tg=Zt(function(e,t){return e==null?{}:Kf(e,t)});function Vc(e,t){if(e==null)return{};var r=Ae(yi(e),function(i){return[i]});return t=K(t),Fl(e,r,function(i,l){return t(i,l[0])})}function Ig(e,t,r){t=fr(t,e);var i=-1,l=t.length;for(l||(l=1,e=a);++i<l;){var p=e==null?a:e[Wt(t[i])];p===a&&(i=l,p=r),e=er(p)?p.call(e):p}return e}function kg(e,t,r){return e==null?e:Ea(e,t,r)}function Dg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Ea(e,t,r,i)}var Yc=oc(He),Kc=oc(nt);function Ag(e,t,r){var i=ae(e),l=i||hr(e)||ea(e);if(t=K(t,4),r==null){var p=e&&e.constructor;l?r=i?new p:[]:Se(e)?r=er(p)?Kr(vs(e)):{}:r={}}return(l?vt:Bt)(e,function(f,_,v){return t(r,f,_,v)}),r}function qg(e,t){return e==null?!0:oi(e,t)}function Cg(e,t,r){return e==null?e:Hl(e,t,ui(r))}function Sg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Hl(e,t,ui(r),i)}function ta(e){return e==null?[]:Un(e,He(e))}function zg(e){return e==null?[]:Un(e,nt(e))}function Ng(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=qt(r),r=r===r?r:0),t!==a&&(t=qt(t),t=t===t?t:0),Dr(qt(e),t,r)}function Og(e,t,r){return t=tr(t),r===a?(r=t,t=0):r=tr(r),e=qt(e),Ff(e,t,r)}function Pg(e,t,r){if(r&&typeof r!="boolean"&&Je(e,t,r)&&(t=r=a),r===a&&(typeof t=="boolean"?(r=t,t=a):typeof e=="boolean"&&(r=e,e=a)),e===a&&t===a?(e=0,t=1):(e=tr(e),t===a?(t=e,e=0):t=tr(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var l=xl();return Ye(e+l*(t-e+dm("1e-"+((l+"").length-1))),t)}return si(e,t)}var Eg=Zr(function(e,t,r){return t=t.toLowerCase(),e+(r?Qc(t):t)});function Qc(e){return zi(be(e).toLowerCase())}function Zc(e){return e=be(e),e&&e.replace(tt,Im).replace(tm,"")}function Rg(e,t,r){e=be(e),t=mt(t);var i=e.length;r=r===a?i:Dr(se(r),0,i);var l=r;return r-=t.length,r>=0&&e.slice(r,l)==t}function Lg(e){return e=be(e),e&&ns.test(e)?e.replace(Br,km):e}function Mg(e){return e=be(e),e&&us.test(e)?e.replace(Ta,"\\$&"):e}var Fg=Zr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),jg=Zr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Bg=tc("toLowerCase");function Ug(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;if(!t||i>=t)return e;var l=(t-i)/2;return Fs(Ds(l),r)+e+Fs(ks(l),r)}function Wg(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;return t&&i<t?e+Fs(t-i,r):e}function Hg(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;return t&&i<t?Fs(t-i,r)+e:e}function $g(e,t,r){return r||t==null?t=0:t&&(t=+t),Qm(be(e).replace(Ia,""),t||0)}function Xg(e,t,r){return(r?Je(e,t,r):t===a)?t=1:t=se(t),ni(be(e),t)}function Gg(){var e=arguments,t=be(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Vg=Zr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function Yg(e,t,r){return r&&typeof r!="number"&&Je(e,t,r)&&(t=r=a),r=r===a?te:r>>>0,r?(e=be(e),e&&(typeof t=="string"||t!=null&&!qi(t))&&(t=mt(t),!t&&Hr(e))?yr(Pt(e),0,r):e.split(t,r)):[]}var Kg=Zr(function(e,t,r){return e+(r?" ":"")+zi(t)});function Qg(e,t,r){return e=be(e),r=r==null?0:Dr(se(r),0,e.length),t=mt(t),e.slice(r,r+t.length)==t}function Zg(e,t,r){var i=d.templateSettings;r&&Je(e,t,r)&&(t=a),e=be(e),t=Qs({},t,i,lc);var l=Qs({},t.imports,i.imports,lc),p=He(l),f=Un(l,p),_,v,S=0,z=t.interpolate||Ot,N="__p += '",W=Hn((t.escape||Ot).source+"|"+z.source+"|"+(z===os?ye:Ot).source+"|"+(t.evaluate||Ot).source+"|$","g"),X="//# sourceURL="+(ve.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++im+"]")+`
115
- `;e.replace(W,function(Z,de,fe,yt,et,ht){return fe||(fe=yt),N+=e.slice(S,ht).replace(ds,Dm),de&&(_=!0,N+=`' +
114
+ `)}function Iy(e){return ae(e)||Sr(e)||!!(gl&&e&&e[gl])}function Zt(e,t){var r=typeof e;return t=t??Le,!!t&&(r=="number"||r!="symbol"&&ze.test(e))&&e>-1&&e%1==0&&e<t}function Ze(e,t,r){if(!Se(r))return!1;var i=typeof t;return(i=="number"?st(r)&&Zt(t,r.length):i=="string"&&t in r)?Rt(r[t],e):!1}function bi(e,t){if(ae(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ft(e)?!0:cs.test(e)||!ls.test(e)||t!=null&&e in Ie(t)}function ky(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function xi(e){var t=Bs(e),r=d[t];if(typeof r!="function"||!(t in me.prototype))return!1;if(e===r)return!0;var i=hi(r);return!!i&&e===i[0]}function Dy(e){return!!fl&&fl in e}var Ay=_s?er:Li;function La(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Gr;return e===r}function fc(e){return e===e&&!Se(e)}function yc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in Ie(r))}}function qy(e){var t=Gs(e,function(i){return r.size===g&&r.clear(),i}),r=t.cache;return t}function Cy(e,t){var r=e[1],i=t[1],l=r|i,p=l<(V|Z|H),f=i==H&&r==F||i==H&&r==le&&e[7].length<=t[8]||i==(H|le)&&t[7].length<=t[8]&&r==F;if(!(p||f))return e;i&V&&(e[2]=t[2],l|=r&V?0:G);var _=t[3];if(_){var v=e[3];e[3]=v?Ql(v,_,t[4]):_,e[4]=v?ur(e[3],x):t[4]}return _=t[5],_&&(v=e[5],e[5]=v?Jl(v,_,t[6]):_,e[6]=v?ur(e[5],x):t[6]),_=t[7],_&&(e[7]=_),i&H&&(e[8]=e[8]==null?t[8]:Ye(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function Sy(e){var t=[];if(e!=null)for(var r in Ie(e))t.push(r);return t}function zy(e){return bs.call(e)}function hc(e,t,r){return t=Ue(t===a?e.length-1:t,0),function(){for(var i=arguments,l=-1,p=Ue(i.length-t,0),f=I(p);++l<p;)f[l]=i[t+l];l=-1;for(var _=I(t+1);++l<t;)_[l]=i[l];return _[t]=r(f),dt(e,this,_)}}function _c(e,t){return t.length<2?e:Ar(e,At(t,0,-1))}function Ny(e,t){for(var r=e.length,i=Ye(t.length,r),l=at(e);i--;){var p=t[i];e[i]=Zt(p,r)?l[p]:a}return e}function wi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var gc=xc(Bl),Ma=Xm||function(e,t){return Xe.setTimeout(e,t)},vi=xc(ty);function bc(e,t,r){var i=t+"";return vi(e,Ty(i,Oy(xy(i),r)))}function xc(e){var t=0,r=0;return function(){var i=Km(),l=Me-(i-r);if(r=i,l>0){if(++t>=xt)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ws(e,t){var r=-1,i=e.length,l=i-1;for(t=t===a?i:t;++r<t;){var p=si(r,l),f=e[p];e[p]=e[r],e[r]=f}return e.length=t,e}var wc=qy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(In,function(r,i,l,p){t.push(l?p.replace(ee,"$1"):i||r)}),t});function Wt(e){if(typeof e=="string"||ft(e))return e;var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function Cr(e){if(e!=null){try{return gs.call(e)}catch{}try{return e+""}catch{}}return""}function Oy(e,t){return Tt(Ht,function(r){var i="_."+r[0];t&r[1]&&!ms(e,i)&&e.push(i)}),e.sort()}function vc(e){if(e instanceof me)return e.clone();var t=new kt(e.__wrapped__,e.__chain__);return t.__actions__=at(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Py(e,t,r){(r?Ze(e,t,r):t===a)?t=1:t=Ue(se(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var l=0,p=0,f=I(ks(i/t));l<i;)f[p++]=At(e,l,l+=t);return f}function Ey(e){for(var t=-1,r=e==null?0:e.length,i=0,l=[];++t<r;){var p=e[t];p&&(l[i++]=p)}return l}function Ry(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return cr(ae(r)?at(r):[r],Ge(t,1))}var Ly=oe(function(e,t){return Pe(e)?Na(e,Ge(t,1,Pe,!0)):[]}),My=oe(function(e,t){var r=qt(t);return Pe(r)&&(r=a),Pe(e)?Na(e,Ge(t,1,Pe,!0),K(r,2)):[]}),Fy=oe(function(e,t){var r=qt(t);return Pe(r)&&(r=a),Pe(e)?Na(e,Ge(t,1,Pe,!0),a,r):[]});function jy(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),At(e,t<0?0:t,i)):[]}function By(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),t=i-t,At(e,0,t<0?0:t)):[]}function Uy(e,t){return e&&e.length?Es(e,K(t,3),!0,!0):[]}function Wy(e,t){return e&&e.length?Es(e,K(t,3),!0):[]}function Hy(e,t,r,i){var l=e==null?0:e.length;return l?(r&&typeof r!="number"&&Ze(e,t,r)&&(r=0,i=l),Rf(e,t,r,i)):[]}function Tc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=r==null?0:se(r);return l<0&&(l=Ue(i+l,0)),fs(e,K(t,3),l)}function Ic(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=i-1;return r!==a&&(l=se(r),l=r<0?Ue(i+l,0):Ye(l,i-1)),fs(e,K(t,3),l,!0)}function kc(e){var t=e==null?0:e.length;return t?Ge(e,1):[]}function $y(e){var t=e==null?0:e.length;return t?Ge(e,Oe):[]}function Xy(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:se(t),Ge(e,t)):[]}function Gy(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var l=e[t];i[l[0]]=l[1]}return i}function Dc(e){return e&&e.length?e[0]:a}function Vy(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=r==null?0:se(r);return l<0&&(l=Ue(i+l,0)),Wr(e,t,l)}function Yy(e){var t=e==null?0:e.length;return t?At(e,0,-1):[]}var Ky=oe(function(e){var t=Ae(e,ci);return t.length&&t[0]===e[0]?Zn(t):[]}),Qy=oe(function(e){var t=qt(e),r=Ae(e,ci);return t===qt(r)?t=a:r.pop(),r.length&&r[0]===e[0]?Zn(r,K(t,2)):[]}),Jy=oe(function(e){var t=qt(e),r=Ae(e,ci);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?Zn(r,a,t):[]});function Zy(e,t){return e==null?"":Vm.call(e,t)}function qt(e){var t=e==null?0:e.length;return t?e[t-1]:a}function eh(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=i;return r!==a&&(l=se(r),l=l<0?Ue(i+l,0):Ye(l,i-1)),t===t?Nm(e,t,l):fs(e,il,l,!0)}function th(e,t){return e&&e.length?Ll(e,se(t)):a}var rh=oe(Ac);function Ac(e,t){return e&&e.length&&t&&t.length?ai(e,t):e}function ah(e,t,r){return e&&e.length&&t&&t.length?ai(e,t,K(r,2)):e}function sh(e,t,r){return e&&e.length&&t&&t.length?ai(e,t,a,r):e}var nh=Jt(function(e,t){var r=e==null?0:e.length,i=Yn(e,t);return jl(e,Ae(t,function(l){return Zt(l,r)?+l:l}).sort(Kl)),i});function ih(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,l=[],p=e.length;for(t=K(t,3);++i<p;){var f=e[i];t(f,i,e)&&(r.push(f),l.push(i))}return jl(e,l),r}function Ti(e){return e==null?e:Jm.call(e)}function oh(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Ze(e,t,r)?(t=0,r=i):(t=t==null?0:se(t),r=r===a?i:se(r)),At(e,t,r)):[]}function lh(e,t){return Ps(e,t)}function ch(e,t,r){return ii(e,t,K(r,2))}function uh(e,t){var r=e==null?0:e.length;if(r){var i=Ps(e,t);if(i<r&&Rt(e[i],t))return i}return-1}function dh(e,t){return Ps(e,t,!0)}function ph(e,t,r){return ii(e,t,K(r,2),!0)}function mh(e,t){var r=e==null?0:e.length;if(r){var i=Ps(e,t,!0)-1;if(Rt(e[i],t))return i}return-1}function fh(e){return e&&e.length?Ul(e):[]}function yh(e,t){return e&&e.length?Ul(e,K(t,2)):[]}function hh(e){var t=e==null?0:e.length;return t?At(e,1,t):[]}function _h(e,t,r){return e&&e.length?(t=r||t===a?1:se(t),At(e,0,t<0?0:t)):[]}function gh(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),t=i-t,At(e,t<0?0:t,i)):[]}function bh(e,t){return e&&e.length?Es(e,K(t,3),!1,!0):[]}function xh(e,t){return e&&e.length?Es(e,K(t,3)):[]}var wh=oe(function(e){return mr(Ge(e,1,Pe,!0))}),vh=oe(function(e){var t=qt(e);return Pe(t)&&(t=a),mr(Ge(e,1,Pe,!0),K(t,2))}),Th=oe(function(e){var t=qt(e);return t=typeof t=="function"?t:a,mr(Ge(e,1,Pe,!0),a,t)});function Ih(e){return e&&e.length?mr(e):[]}function kh(e,t){return e&&e.length?mr(e,K(t,2)):[]}function Dh(e,t){return t=typeof t=="function"?t:a,e&&e.length?mr(e,a,t):[]}function Ii(e){if(!(e&&e.length))return[];var t=0;return e=lr(e,function(r){if(Pe(r))return t=Ue(r.length,t),!0}),Bn(t,function(r){return Ae(e,Mn(r))})}function qc(e,t){if(!(e&&e.length))return[];var r=Ii(e);return t==null?r:Ae(r,function(i){return dt(t,a,i)})}var Ah=oe(function(e,t){return Pe(e)?Na(e,t):[]}),qh=oe(function(e){return li(lr(e,Pe))}),Ch=oe(function(e){var t=qt(e);return Pe(t)&&(t=a),li(lr(e,Pe),K(t,2))}),Sh=oe(function(e){var t=qt(e);return t=typeof t=="function"?t:a,li(lr(e,Pe),a,t)}),zh=oe(Ii);function Nh(e,t){return Xl(e||[],t||[],za)}function Oh(e,t){return Xl(e||[],t||[],Ea)}var Ph=oe(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,qc(e,r)});function Cc(e){var t=d(e);return t.__chain__=!0,t}function Eh(e,t){return t(e),e}function Hs(e,t){return t(e)}var Rh=Jt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,l=function(p){return Yn(p,e)};return t>1||this.__actions__.length||!(i instanceof me)||!Zt(r)?this.thru(l):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:Hs,args:[l],thisArg:a}),new kt(i,this.__chain__).thru(function(p){return t&&!p.length&&p.push(a),p}))});function Lh(){return Cc(this)}function Mh(){return new kt(this.value(),this.__chain__)}function Fh(){this.__values__===a&&(this.__values__=Wc(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function jh(){return this}function Bh(e){for(var t,r=this;r instanceof Cs;){var i=vc(r);i.__index__=0,i.__values__=a,t?l.__wrapped__=i:t=i;var l=i;r=r.__wrapped__}return l.__wrapped__=e,t}function Uh(){var e=this.__wrapped__;if(e instanceof me){var t=e;return this.__actions__.length&&(t=new me(this)),t=t.reverse(),t.__actions__.push({func:Hs,args:[Ti],thisArg:a}),new kt(t,this.__chain__)}return this.thru(Ti)}function Wh(){return $l(this.__wrapped__,this.__actions__)}var Hh=Rs(function(e,t,r){ve.call(e,r)?++e[r]:Kt(e,r,1)});function $h(e,t,r){var i=ae(e)?sl:Ef;return r&&Ze(e,t,r)&&(t=a),i(e,K(t,3))}function Xh(e,t){var r=ae(e)?lr:ql;return r(e,K(t,3))}var Gh=rc(Tc),Vh=rc(Ic);function Yh(e,t){return Ge($s(e,t),1)}function Kh(e,t){return Ge($s(e,t),Oe)}function Qh(e,t,r){return r=r===a?1:se(r),Ge($s(e,t),r)}function Sc(e,t){var r=ae(e)?Tt:pr;return r(e,K(t,3))}function zc(e,t){var r=ae(e)?ym:Al;return r(e,K(t,3))}var Jh=Rs(function(e,t,r){ve.call(e,r)?e[r].push(t):Kt(e,r,[t])});function Zh(e,t,r,i){e=st(e)?e:ta(e),r=r&&!i?se(r):0;var l=e.length;return r<0&&(r=Ue(l+r,0)),Ks(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&Wr(e,t,r)>-1}var e_=oe(function(e,t,r){var i=-1,l=typeof t=="function",p=st(e)?I(e.length):[];return pr(e,function(f){p[++i]=l?dt(t,f,r):Oa(f,t,r)}),p}),t_=Rs(function(e,t,r){Kt(e,r,t)});function $s(e,t){var r=ae(e)?Ae:Pl;return r(e,K(t,3))}function r_(e,t,r,i){return e==null?[]:(ae(t)||(t=t==null?[]:[t]),r=i?a:r,ae(r)||(r=r==null?[]:[r]),Ml(e,t,r))}var a_=Rs(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function s_(e,t,r){var i=ae(e)?Rn:ll,l=arguments.length<3;return i(e,K(t,4),r,l,pr)}function n_(e,t,r){var i=ae(e)?hm:ll,l=arguments.length<3;return i(e,K(t,4),r,l,Al)}function i_(e,t){var r=ae(e)?lr:ql;return r(e,Vs(K(t,3)))}function o_(e){var t=ae(e)?Tl:Zf;return t(e)}function l_(e,t,r){(r?Ze(e,t,r):t===a)?t=1:t=se(t);var i=ae(e)?Sf:ey;return i(e,t)}function c_(e){var t=ae(e)?zf:ry;return t(e)}function u_(e){if(e==null)return 0;if(st(e))return Ks(e)?$r(e):e.length;var t=Ke(e);return t==ct||t==ut?e.size:ti(e).length}function d_(e,t,r){var i=ae(e)?Ln:ay;return r&&Ze(e,t,r)&&(t=a),i(e,K(t,3))}var p_=oe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ze(e,t[0],t[1])?t=[]:r>2&&Ze(t[0],t[1],t[2])&&(t=[t[0]]),Ml(e,Ge(t,1),[])}),Xs=$m||function(){return Xe.Date.now()};function m_(e,t){if(typeof t!="function")throw new It(m);return e=se(e),function(){if(--e<1)return t.apply(this,arguments)}}function Nc(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Qt(e,H,a,a,a,a,t)}function Oc(e,t){var r;if(typeof t!="function")throw new It(m);return e=se(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var ki=oe(function(e,t,r){var i=V;if(r.length){var l=ur(r,Zr(ki));i|=k}return Qt(e,i,t,r,l)}),Pc=oe(function(e,t,r){var i=V|Z;if(r.length){var l=ur(r,Zr(Pc));i|=k}return Qt(t,i,e,r,l)});function Ec(e,t,r){t=r?a:t;var i=Qt(e,F,a,a,a,a,a,t);return i.placeholder=Ec.placeholder,i}function Rc(e,t,r){t=r?a:t;var i=Qt(e,A,a,a,a,a,a,t);return i.placeholder=Rc.placeholder,i}function Lc(e,t,r){var i,l,p,f,_,v,S=0,z=!1,N=!1,W=!0;if(typeof e!="function")throw new It(m);t=Ct(t)||0,Se(r)&&(z=!!r.leading,N="maxWait"in r,p=N?Ue(Ct(r.maxWait)||0,t):p,W="trailing"in r?!!r.trailing:W);function X(Ee){var Lt=i,rr=l;return i=l=a,S=Ee,f=e.apply(rr,Lt),f}function Q(Ee){return S=Ee,_=Ma(de,t),z?X(Ee):f}function ne(Ee){var Lt=Ee-v,rr=Ee-S,ru=t-Lt;return N?Ye(ru,p-rr):ru}function J(Ee){var Lt=Ee-v,rr=Ee-S;return v===a||Lt>=t||Lt<0||N&&rr>=p}function de(){var Ee=Xs();if(J(Ee))return fe(Ee);_=Ma(de,ne(Ee))}function fe(Ee){return _=a,W&&i?X(Ee):(i=l=a,f)}function yt(){_!==a&&Gl(_),S=0,i=v=l=_=a}function et(){return _===a?f:fe(Xs())}function ht(){var Ee=Xs(),Lt=J(Ee);if(i=arguments,l=this,v=Ee,Lt){if(_===a)return Q(v);if(N)return Gl(_),_=Ma(de,t),X(v)}return _===a&&(_=Ma(de,t)),f}return ht.cancel=yt,ht.flush=et,ht}var f_=oe(function(e,t){return Dl(e,1,t)}),y_=oe(function(e,t,r){return Dl(e,Ct(t)||0,r)});function h_(e){return Qt(e,ie)}function Gs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new It(m);var r=function(){var i=arguments,l=t?t.apply(this,i):i[0],p=r.cache;if(p.has(l))return p.get(l);var f=e.apply(this,i);return r.cache=p.set(l,f)||p,f};return r.cache=new(Gs.Cache||Yt),r}Gs.Cache=Yt;function Vs(e){if(typeof e!="function")throw new It(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 __(e){return Oc(2,e)}var g_=sy(function(e,t){t=t.length==1&&ae(t[0])?Ae(t[0],pt(K())):Ae(Ge(t,1),pt(K()));var r=t.length;return oe(function(i){for(var l=-1,p=Ye(i.length,r);++l<p;)i[l]=t[l].call(this,i[l]);return dt(e,this,i)})}),Di=oe(function(e,t){var r=ur(t,Zr(Di));return Qt(e,k,a,t,r)}),Mc=oe(function(e,t){var r=ur(t,Zr(Mc));return Qt(e,B,a,t,r)}),b_=Jt(function(e,t){return Qt(e,le,a,a,a,t)});function x_(e,t){if(typeof e!="function")throw new It(m);return t=t===a?t:se(t),oe(e,t)}function w_(e,t){if(typeof e!="function")throw new It(m);return t=t==null?0:Ue(se(t),0),oe(function(r){var i=r[t],l=yr(r,0,t);return i&&cr(l,i),dt(e,this,l)})}function v_(e,t,r){var i=!0,l=!0;if(typeof e!="function")throw new It(m);return Se(r)&&(i="leading"in r?!!r.leading:i,l="trailing"in r?!!r.trailing:l),Lc(e,t,{leading:i,maxWait:t,trailing:l})}function T_(e){return Nc(e,1)}function I_(e,t){return Di(ui(t),e)}function k_(){if(!arguments.length)return[];var e=arguments[0];return ae(e)?e:[e]}function D_(e){return Dt(e,L)}function A_(e,t){return t=typeof t=="function"?t:a,Dt(e,L,t)}function q_(e){return Dt(e,T|L)}function C_(e,t){return t=typeof t=="function"?t:a,Dt(e,T|L,t)}function S_(e,t){return t==null||kl(e,t,He(t))}function Rt(e,t){return e===t||e!==e&&t!==t}var z_=js(Jn),N_=js(function(e,t){return e>=t}),Sr=zl(function(){return arguments}())?zl:function(e){return Ne(e)&&ve.call(e,"callee")&&!_l.call(e,"callee")},ae=I.isArray,O_=Jo?pt(Jo):Bf;function st(e){return e!=null&&Ys(e.length)&&!er(e)}function Pe(e){return Ne(e)&&st(e)}function P_(e){return e===!0||e===!1||Ne(e)&&Je(e)==Ft}var hr=Gm||Li,E_=Zo?pt(Zo):Uf;function R_(e){return Ne(e)&&e.nodeType===1&&!Fa(e)}function L_(e){if(e==null)return!0;if(st(e)&&(ae(e)||typeof e=="string"||typeof e.splice=="function"||hr(e)||ea(e)||Sr(e)))return!e.length;var t=Ke(e);if(t==ct||t==ut)return!e.size;if(La(e))return!ti(e).length;for(var r in e)if(ve.call(e,r))return!1;return!0}function M_(e,t){return Pa(e,t)}function F_(e,t,r){r=typeof r=="function"?r:a;var i=r?r(e,t):a;return i===a?Pa(e,t,a,r):!!i}function Ai(e){if(!Ne(e))return!1;var t=Je(e);return t==Er||t==Pr||typeof e.message=="string"&&typeof e.name=="string"&&!Fa(e)}function j_(e){return typeof e=="number"&&bl(e)}function er(e){if(!Se(e))return!1;var t=Je(e);return t==br||t==rs||t==ma||t==Lr}function Fc(e){return typeof e=="number"&&e==se(e)}function Ys(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Le}function Se(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ne(e){return e!=null&&typeof e=="object"}var jc=el?pt(el):Hf;function B_(e,t){return e===t||ei(e,t,_i(t))}function U_(e,t,r){return r=typeof r=="function"?r:a,ei(e,t,_i(t),r)}function W_(e){return Bc(e)&&e!=+e}function H_(e){if(Ay(e))throw new re(c);return Nl(e)}function $_(e){return e===null}function X_(e){return e==null}function Bc(e){return typeof e=="number"||Ne(e)&&Je(e)==jt}function Fa(e){if(!Ne(e)||Je(e)!=wt)return!1;var t=vs(e);if(t===null)return!0;var r=ve.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&gs.call(r)==Bm}var qi=tl?pt(tl):$f;function G_(e){return Fc(e)&&e>=-Le&&e<=Le}var Uc=rl?pt(rl):Xf;function Ks(e){return typeof e=="string"||!ae(e)&&Ne(e)&&Je(e)==Xt}function ft(e){return typeof e=="symbol"||Ne(e)&&Je(e)==Mr}var ea=al?pt(al):Gf;function V_(e){return e===a}function Y_(e){return Ne(e)&&Ke(e)==ir}function K_(e){return Ne(e)&&Je(e)==as}var Q_=js(ri),J_=js(function(e,t){return e<=t});function Wc(e){if(!e)return[];if(st(e))return Ks(e)?Pt(e):at(e);if(Da&&e[Da])return Cm(e[Da]());var t=Ke(e),r=t==ct?Wn:t==ut?ys:ta;return r(e)}function tr(e){if(!e)return e===0?e:0;if(e=Ct(e),e===Oe||e===-Oe){var t=e<0?-1:1;return t*lt}return e===e?e:0}function se(e){var t=tr(e),r=t%1;return t===t?r?t-r:t:0}function Hc(e){return e?Dr(se(e),0,te):0}function Ct(e){if(typeof e=="number")return e;if(ft(e))return je;if(Se(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Se(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=cl(e);var r=ue.test(e);return r||Ce.test(e)?pm(e.slice(2),r?2:8):pe.test(e)?je:+e}function $c(e){return Ut(e,nt(e))}function Z_(e){return e?Dr(se(e),-Le,Le):e===0?e:0}function be(e){return e==null?"":mt(e)}var eg=Qr(function(e,t){if(La(t)||st(t)){Ut(t,He(t),e);return}for(var r in t)ve.call(t,r)&&za(e,r,t[r])}),Xc=Qr(function(e,t){Ut(t,nt(t),e)}),Qs=Qr(function(e,t,r,i){Ut(t,nt(t),e,i)}),tg=Qr(function(e,t,r,i){Ut(t,He(t),e,i)}),rg=Jt(Yn);function ag(e,t){var r=Kr(e);return t==null?r:Il(r,t)}var sg=oe(function(e,t){e=Ie(e);var r=-1,i=t.length,l=i>2?t[2]:a;for(l&&Ze(t[0],t[1],l)&&(i=1);++r<i;)for(var p=t[r],f=nt(p),_=-1,v=f.length;++_<v;){var S=f[_],z=e[S];(z===a||Rt(z,Gr[S])&&!ve.call(e,S))&&(e[S]=p[S])}return e}),ng=oe(function(e){return e.push(a,cc),dt(Gc,a,e)});function ig(e,t){return nl(e,K(t,3),Bt)}function og(e,t){return nl(e,K(t,3),Qn)}function lg(e,t){return e==null?e:Kn(e,K(t,3),nt)}function cg(e,t){return e==null?e:Cl(e,K(t,3),nt)}function ug(e,t){return e&&Bt(e,K(t,3))}function dg(e,t){return e&&Qn(e,K(t,3))}function pg(e){return e==null?[]:Ns(e,He(e))}function mg(e){return e==null?[]:Ns(e,nt(e))}function Ci(e,t,r){var i=e==null?a:Ar(e,t);return i===a?r:i}function fg(e,t){return e!=null&&pc(e,t,Lf)}function Si(e,t){return e!=null&&pc(e,t,Mf)}var yg=sc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=bs.call(t)),e[t]=r},Ni(it)),hg=sc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=bs.call(t)),ve.call(e,t)?e[t].push(r):e[t]=[r]},K),_g=oe(Oa);function He(e){return st(e)?vl(e):ti(e)}function nt(e){return st(e)?vl(e,!0):Vf(e)}function gg(e,t){var r={};return t=K(t,3),Bt(e,function(i,l,p){Kt(r,t(i,l,p),i)}),r}function bg(e,t){var r={};return t=K(t,3),Bt(e,function(i,l,p){Kt(r,l,t(i,l,p))}),r}var xg=Qr(function(e,t,r){Os(e,t,r)}),Gc=Qr(function(e,t,r,i){Os(e,t,r,i)}),wg=Jt(function(e,t){var r={};if(e==null)return r;var i=!1;t=Ae(t,function(p){return p=fr(p,e),i||(i=p.length>1),p}),Ut(e,yi(e),r),i&&(r=Dt(r,T|R|L,yy));for(var l=t.length;l--;)oi(r,t[l]);return r});function vg(e,t){return Vc(e,Vs(K(t)))}var Tg=Jt(function(e,t){return e==null?{}:Kf(e,t)});function Vc(e,t){if(e==null)return{};var r=Ae(yi(e),function(i){return[i]});return t=K(t),Fl(e,r,function(i,l){return t(i,l[0])})}function Ig(e,t,r){t=fr(t,e);var i=-1,l=t.length;for(l||(l=1,e=a);++i<l;){var p=e==null?a:e[Wt(t[i])];p===a&&(i=l,p=r),e=er(p)?p.call(e):p}return e}function kg(e,t,r){return e==null?e:Ea(e,t,r)}function Dg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Ea(e,t,r,i)}var Yc=oc(He),Kc=oc(nt);function Ag(e,t,r){var i=ae(e),l=i||hr(e)||ea(e);if(t=K(t,4),r==null){var p=e&&e.constructor;l?r=i?new p:[]:Se(e)?r=er(p)?Kr(vs(e)):{}:r={}}return(l?Tt:Bt)(e,function(f,_,v){return t(r,f,_,v)}),r}function qg(e,t){return e==null?!0:oi(e,t)}function Cg(e,t,r){return e==null?e:Hl(e,t,ui(r))}function Sg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Hl(e,t,ui(r),i)}function ta(e){return e==null?[]:Un(e,He(e))}function zg(e){return e==null?[]:Un(e,nt(e))}function Ng(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=Ct(r),r=r===r?r:0),t!==a&&(t=Ct(t),t=t===t?t:0),Dr(Ct(e),t,r)}function Og(e,t,r){return t=tr(t),r===a?(r=t,t=0):r=tr(r),e=Ct(e),Ff(e,t,r)}function Pg(e,t,r){if(r&&typeof r!="boolean"&&Ze(e,t,r)&&(t=r=a),r===a&&(typeof t=="boolean"?(r=t,t=a):typeof e=="boolean"&&(r=e,e=a)),e===a&&t===a?(e=0,t=1):(e=tr(e),t===a?(t=e,e=0):t=tr(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var l=xl();return Ye(e+l*(t-e+dm("1e-"+((l+"").length-1))),t)}return si(e,t)}var Eg=Jr(function(e,t,r){return t=t.toLowerCase(),e+(r?Qc(t):t)});function Qc(e){return zi(be(e).toLowerCase())}function Jc(e){return e=be(e),e&&e.replace(tt,Im).replace(tm,"")}function Rg(e,t,r){e=be(e),t=mt(t);var i=e.length;r=r===a?i:Dr(se(r),0,i);var l=r;return r-=t.length,r>=0&&e.slice(r,l)==t}function Lg(e){return e=be(e),e&&ns.test(e)?e.replace(Br,km):e}function Mg(e){return e=be(e),e&&us.test(e)?e.replace(Ta,"\\$&"):e}var Fg=Jr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),jg=Jr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Bg=tc("toLowerCase");function Ug(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;if(!t||i>=t)return e;var l=(t-i)/2;return Fs(Ds(l),r)+e+Fs(ks(l),r)}function Wg(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;return t&&i<t?e+Fs(t-i,r):e}function Hg(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;return t&&i<t?Fs(t-i,r)+e:e}function $g(e,t,r){return r||t==null?t=0:t&&(t=+t),Qm(be(e).replace(Ia,""),t||0)}function Xg(e,t,r){return(r?Ze(e,t,r):t===a)?t=1:t=se(t),ni(be(e),t)}function Gg(){var e=arguments,t=be(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Vg=Jr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function Yg(e,t,r){return r&&typeof r!="number"&&Ze(e,t,r)&&(t=r=a),r=r===a?te:r>>>0,r?(e=be(e),e&&(typeof t=="string"||t!=null&&!qi(t))&&(t=mt(t),!t&&Hr(e))?yr(Pt(e),0,r):e.split(t,r)):[]}var Kg=Jr(function(e,t,r){return e+(r?" ":"")+zi(t)});function Qg(e,t,r){return e=be(e),r=r==null?0:Dr(se(r),0,e.length),t=mt(t),e.slice(r,r+t.length)==t}function Jg(e,t,r){var i=d.templateSettings;r&&Ze(e,t,r)&&(t=a),e=be(e),t=Qs({},t,i,lc);var l=Qs({},t.imports,i.imports,lc),p=He(l),f=Un(l,p),_,v,S=0,z=t.interpolate||Ot,N="__p += '",W=Hn((t.escape||Ot).source+"|"+z.source+"|"+(z===os?ye:Ot).source+"|"+(t.evaluate||Ot).source+"|$","g"),X="//# sourceURL="+(ve.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++im+"]")+`
115
+ `;e.replace(W,function(J,de,fe,yt,et,ht){return fe||(fe=yt),N+=e.slice(S,ht).replace(ds,Dm),de&&(_=!0,N+=`' +
116
116
  __e(`+de+`) +
117
117
  '`),et&&(v=!0,N+=`';
118
118
  `+et+`;
119
119
  __p += '`),fe&&(N+=`' +
120
120
  ((__t = (`+fe+`)) == null ? '' : __t) +
121
- '`),S=ht+Z.length,Z}),N+=`';
121
+ '`),S=ht+J.length,J}),N+=`';
122
122
  `;var Q=ve.call(t,"variable")&&t.variable;if(!Q)N=`with (obj) {
123
123
  `+N+`
124
124
  }
@@ -128,18 +128,18 @@ __p += '`),fe&&(N+=`' +
128
128
  function print() { __p += __j.call(arguments, '') }
129
129
  `:`;
130
130
  `)+N+`return __p
131
- }`;var ne=eu(function(){return _e(p,X+"return "+N).apply(a,f)});if(ne.source=N,Ai(ne))throw ne;return ne}function Jg(e){return be(e).toLowerCase()}function eb(e){return be(e).toUpperCase()}function tb(e,t,r){if(e=be(e),e&&(r||t===a))return cl(e);if(!e||!(t=mt(t)))return e;var i=Pt(e),l=Pt(t),p=ul(i,l),f=dl(i,l)+1;return yr(i,p,f).join("")}function rb(e,t,r){if(e=be(e),e&&(r||t===a))return e.slice(0,ml(e)+1);if(!e||!(t=mt(t)))return e;var i=Pt(e),l=dl(i,Pt(t))+1;return yr(i,0,l).join("")}function ab(e,t,r){if(e=be(e),e&&(r||t===a))return e.replace(Ia,"");if(!e||!(t=mt(t)))return e;var i=Pt(e),l=ul(i,Pt(t));return yr(i,l).join("")}function sb(e,t){var r=ce,i=bt;if(Se(t)){var l="separator"in t?t.separator:l;r="length"in t?se(t.length):r,i="omission"in t?mt(t.omission):i}e=be(e);var p=e.length;if(Hr(e)){var f=Pt(e);p=f.length}if(r>=p)return e;var _=r-$r(i);if(_<1)return i;var v=f?yr(f,0,_).join(""):e.slice(0,_);if(l===a)return v+i;if(f&&(_+=v.length-_),qi(l)){if(e.slice(_).search(l)){var S,z=v;for(l.global||(l=Hn(l.source,be(ge.exec(l))+"g")),l.lastIndex=0;S=l.exec(z);)var N=S.index;v=v.slice(0,N===a?_:N)}}else if(e.indexOf(mt(l),_)!=_){var W=v.lastIndexOf(l);W>-1&&(v=v.slice(0,W))}return v+i}function nb(e){return e=be(e),e&&va.test(e)?e.replace(Gt,Om):e}var ib=Zr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),zi=tc("toUpperCase");function Jc(e,t,r){return e=be(e),t=r?a:t,t===a?qm(e)?Rm(e):bm(e):e.match(t)||[]}var eu=oe(function(e,t){try{return dt(e,a,t)}catch(r){return Ai(r)?r:new re(r)}}),ob=Zt(function(e,t){return vt(t,function(r){r=Wt(r),Kt(e,r,ki(e[r],e))}),e});function lb(e){var t=e==null?0:e.length,r=K();return e=t?Ae(e,function(i){if(typeof i[1]!="function")throw new Tt(m);return[r(i[0]),i[1]]}):[],oe(function(i){for(var l=-1;++l<t;){var p=e[l];if(dt(p[0],this,i))return dt(p[1],this,i)}})}function cb(e){return Pf(kt(e,T))}function Ni(e){return function(){return e}}function ub(e,t){return e==null||e!==e?t:e}var db=ac(),pb=ac(!0);function it(e){return e}function Oi(e){return Ol(typeof e=="function"?e:kt(e,T))}function mb(e){return El(kt(e,T))}function fb(e,t){return Rl(e,kt(t,T))}var yb=oe(function(e,t){return function(r){return Oa(r,e,t)}}),hb=oe(function(e,t){return function(r){return Oa(e,r,t)}});function Pi(e,t,r){var i=He(t),l=Ns(t,i);r==null&&!(Se(t)&&(l.length||!i.length))&&(r=t,t=e,e=this,l=Ns(t,He(t)));var p=!(Se(r)&&"chain"in r)||!!r.chain,f=er(e);return vt(l,function(_){var v=t[_];e[_]=v,f&&(e.prototype[_]=function(){var S=this.__chain__;if(p||S){var z=e(this.__wrapped__),N=z.__actions__=at(this.__actions__);return N.push({func:v,args:arguments,thisArg:e}),z.__chain__=S,z}return v.apply(e,cr([this.value()],arguments))})}),e}function _b(){return Xe._===this&&(Xe._=Um),this}function Ei(){}function gb(e){return e=se(e),oe(function(t){return Ll(t,e)})}var bb=pi(Ae),xb=pi(sl),wb=pi(Ln);function tu(e){return bi(e)?Mn(Wt(e)):Qf(e)}function vb(e){return function(t){return e==null?a:Ar(e,t)}}var Tb=nc(),Ib=nc(!0);function Ri(){return[]}function Li(){return!1}function kb(){return{}}function Db(){return""}function Ab(){return!0}function qb(e,t){if(e=se(e),e<1||e>Le)return[];var r=te,i=Ye(e,te);t=K(t),e-=te;for(var l=Bn(i,t);++r<e;)t(r);return l}function Cb(e){return ae(e)?Ae(e,Wt):ft(e)?[e]:at(wc(be(e)))}function Sb(e){var t=++jm;return be(e)+t}var zb=Ms(function(e,t){return e+t},0),Nb=mi("ceil"),Ob=Ms(function(e,t){return e/t},1),Pb=mi("floor");function Eb(e){return e&&e.length?zs(e,it,Zn):a}function Rb(e,t){return e&&e.length?zs(e,K(t,2),Zn):a}function Lb(e){return ol(e,it)}function Mb(e,t){return ol(e,K(t,2))}function Fb(e){return e&&e.length?zs(e,it,ri):a}function jb(e,t){return e&&e.length?zs(e,K(t,2),ri):a}var Bb=Ms(function(e,t){return e*t},1),Ub=mi("round"),Wb=Ms(function(e,t){return e-t},0);function Hb(e){return e&&e.length?jn(e,it):0}function $b(e,t){return e&&e.length?jn(e,K(t,2)):0}return d.after=m_,d.ary=Nc,d.assign=eg,d.assignIn=Xc,d.assignInWith=Qs,d.assignWith=tg,d.at=rg,d.before=Oc,d.bind=ki,d.bindAll=ob,d.bindKey=Pc,d.castArray=k_,d.chain=Cc,d.chunk=Py,d.compact=Ey,d.concat=Ry,d.cond=lb,d.conforms=cb,d.constant=Ni,d.countBy=Hh,d.create=ag,d.curry=Ec,d.curryRight=Rc,d.debounce=Lc,d.defaults=sg,d.defaultsDeep=ng,d.defer=f_,d.delay=y_,d.difference=Ly,d.differenceBy=My,d.differenceWith=Fy,d.drop=jy,d.dropRight=By,d.dropRightWhile=Uy,d.dropWhile=Wy,d.fill=Hy,d.filter=Xh,d.flatMap=Yh,d.flatMapDeep=Kh,d.flatMapDepth=Qh,d.flatten=kc,d.flattenDeep=$y,d.flattenDepth=Xy,d.flip=h_,d.flow=db,d.flowRight=pb,d.fromPairs=Gy,d.functions=pg,d.functionsIn=mg,d.groupBy=Zh,d.initial=Yy,d.intersection=Ky,d.intersectionBy=Qy,d.intersectionWith=Zy,d.invert=yg,d.invertBy=hg,d.invokeMap=e_,d.iteratee=Oi,d.keyBy=t_,d.keys=He,d.keysIn=nt,d.map=$s,d.mapKeys=gg,d.mapValues=bg,d.matches=mb,d.matchesProperty=fb,d.memoize=Gs,d.merge=xg,d.mergeWith=Gc,d.method=yb,d.methodOf=hb,d.mixin=Pi,d.negate=Vs,d.nthArg=gb,d.omit=wg,d.omitBy=vg,d.once=__,d.orderBy=r_,d.over=bb,d.overArgs=g_,d.overEvery=xb,d.overSome=wb,d.partial=Di,d.partialRight=Mc,d.partition=a_,d.pick=Tg,d.pickBy=Vc,d.property=tu,d.propertyOf=vb,d.pull=rh,d.pullAll=Ac,d.pullAllBy=ah,d.pullAllWith=sh,d.pullAt=nh,d.range=Tb,d.rangeRight=Ib,d.rearg=b_,d.reject=i_,d.remove=ih,d.rest=x_,d.reverse=Ti,d.sampleSize=l_,d.set=kg,d.setWith=Dg,d.shuffle=c_,d.slice=oh,d.sortBy=p_,d.sortedUniq=fh,d.sortedUniqBy=yh,d.split=Yg,d.spread=w_,d.tail=hh,d.take=_h,d.takeRight=gh,d.takeRightWhile=bh,d.takeWhile=xh,d.tap=Eh,d.throttle=v_,d.thru=Hs,d.toArray=Wc,d.toPairs=Yc,d.toPairsIn=Kc,d.toPath=Cb,d.toPlainObject=$c,d.transform=Ag,d.unary=T_,d.union=wh,d.unionBy=vh,d.unionWith=Th,d.uniq=Ih,d.uniqBy=kh,d.uniqWith=Dh,d.unset=qg,d.unzip=Ii,d.unzipWith=qc,d.update=Cg,d.updateWith=Sg,d.values=ta,d.valuesIn=zg,d.without=Ah,d.words=Jc,d.wrap=I_,d.xor=qh,d.xorBy=Ch,d.xorWith=Sh,d.zip=zh,d.zipObject=Nh,d.zipObjectDeep=Oh,d.zipWith=Ph,d.entries=Yc,d.entriesIn=Kc,d.extend=Xc,d.extendWith=Qs,Pi(d,d),d.add=zb,d.attempt=eu,d.camelCase=Eg,d.capitalize=Qc,d.ceil=Nb,d.clamp=Ng,d.clone=D_,d.cloneDeep=q_,d.cloneDeepWith=C_,d.cloneWith=A_,d.conformsTo=S_,d.deburr=Zc,d.defaultTo=ub,d.divide=Ob,d.endsWith=Rg,d.eq=Rt,d.escape=Lg,d.escapeRegExp=Mg,d.every=$h,d.find=Gh,d.findIndex=Tc,d.findKey=ig,d.findLast=Vh,d.findLastIndex=Ic,d.findLastKey=og,d.floor=Pb,d.forEach=Sc,d.forEachRight=zc,d.forIn=lg,d.forInRight=cg,d.forOwn=ug,d.forOwnRight=dg,d.get=Ci,d.gt=z_,d.gte=N_,d.has=fg,d.hasIn=Si,d.head=Dc,d.identity=it,d.includes=Jh,d.indexOf=Vy,d.inRange=Og,d.invoke=_g,d.isArguments=Sr,d.isArray=ae,d.isArrayBuffer=O_,d.isArrayLike=st,d.isArrayLikeObject=Pe,d.isBoolean=P_,d.isBuffer=hr,d.isDate=E_,d.isElement=R_,d.isEmpty=L_,d.isEqual=M_,d.isEqualWith=F_,d.isError=Ai,d.isFinite=j_,d.isFunction=er,d.isInteger=Fc,d.isLength=Ys,d.isMap=jc,d.isMatch=B_,d.isMatchWith=U_,d.isNaN=W_,d.isNative=H_,d.isNil=X_,d.isNull=$_,d.isNumber=Bc,d.isObject=Se,d.isObjectLike=Ne,d.isPlainObject=Fa,d.isRegExp=qi,d.isSafeInteger=G_,d.isSet=Uc,d.isString=Ks,d.isSymbol=ft,d.isTypedArray=ea,d.isUndefined=V_,d.isWeakMap=Y_,d.isWeakSet=K_,d.join=Jy,d.kebabCase=Fg,d.last=At,d.lastIndexOf=eh,d.lowerCase=jg,d.lowerFirst=Bg,d.lt=Q_,d.lte=Z_,d.max=Eb,d.maxBy=Rb,d.mean=Lb,d.meanBy=Mb,d.min=Fb,d.minBy=jb,d.stubArray=Ri,d.stubFalse=Li,d.stubObject=kb,d.stubString=Db,d.stubTrue=Ab,d.multiply=Bb,d.nth=th,d.noConflict=_b,d.noop=Ei,d.now=Xs,d.pad=Ug,d.padEnd=Wg,d.padStart=Hg,d.parseInt=$g,d.random=Pg,d.reduce=s_,d.reduceRight=n_,d.repeat=Xg,d.replace=Gg,d.result=Ig,d.round=Ub,d.runInContext=w,d.sample=o_,d.size=u_,d.snakeCase=Vg,d.some=d_,d.sortedIndex=lh,d.sortedIndexBy=ch,d.sortedIndexOf=uh,d.sortedLastIndex=dh,d.sortedLastIndexBy=ph,d.sortedLastIndexOf=mh,d.startCase=Kg,d.startsWith=Qg,d.subtract=Wb,d.sum=Hb,d.sumBy=$b,d.template=Zg,d.times=qb,d.toFinite=tr,d.toInteger=se,d.toLength=Hc,d.toLower=Jg,d.toNumber=qt,d.toSafeInteger=J_,d.toString=be,d.toUpper=eb,d.trim=tb,d.trimEnd=rb,d.trimStart=ab,d.truncate=sb,d.unescape=nb,d.uniqueId=Sb,d.upperCase=ib,d.upperFirst=zi,d.each=Sc,d.eachRight=zc,d.first=Dc,Pi(d,function(){var e={};return Bt(d,function(t,r){ve.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=o,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),vt(["drop","take"],function(e,t){me.prototype[e]=function(r){r=r===a?1:Ue(se(r),0);var i=this.__filtered__&&!t?new me(this):this.clone();return i.__filtered__?i.__takeCount__=Ye(r,i.__takeCount__):i.__views__.push({size:Ye(r,te),type:e+(i.__dir__<0?"Right":"")}),i},me.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),vt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==Fe||r==he;me.prototype[e]=function(l){var p=this.clone();return p.__iteratees__.push({iteratee:K(l,3),type:r}),p.__filtered__=p.__filtered__||i,p}}),vt(["head","last"],function(e,t){var r="take"+(t?"Right":"");me.prototype[e]=function(){return this[r](1).value()[0]}}),vt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");me.prototype[e]=function(){return this.__filtered__?new me(this):this[r](1)}}),me.prototype.compact=function(){return this.filter(it)},me.prototype.find=function(e){return this.filter(e).head()},me.prototype.findLast=function(e){return this.reverse().find(e)},me.prototype.invokeMap=oe(function(e,t){return typeof e=="function"?new me(this):this.map(function(r){return Oa(r,e,t)})}),me.prototype.reject=function(e){return this.filter(Vs(K(e)))},me.prototype.slice=function(e,t){e=se(e);var r=this;return r.__filtered__&&(e>0||t<0)?new me(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=se(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},me.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},me.prototype.toArray=function(){return this.take(te)},Bt(me.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),l=d[i?"take"+(t=="last"?"Right":""):t],p=i||/^find/.test(t);l&&(d.prototype[t]=function(){var f=this.__wrapped__,_=i?[1]:arguments,v=f instanceof me,S=_[0],z=v||ae(f),N=function(de){var fe=l.apply(d,cr([de],_));return i&&W?fe[0]:fe};z&&r&&typeof S=="function"&&S.length!=1&&(v=z=!1);var W=this.__chain__,X=!!this.__actions__.length,Q=p&&!W,ne=v&&!X;if(!p&&z){f=ne?f:new me(this);var Z=e.apply(f,_);return Z.__actions__.push({func:Hs,args:[N],thisArg:a}),new It(Z,W)}return Q&&ne?e.apply(this,_):(Z=this.thru(N),Q?i?Z.value()[0]:Z.value():Z)})}),vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=hs[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(i&&!this.__chain__){var p=this.value();return t.apply(ae(p)?p:[],l)}return this[r](function(f){return t.apply(ae(f)?f:[],l)})}}),Bt(me.prototype,function(e,t){var r=d[t];if(r){var i=r.name+"";ve.call(Yr,i)||(Yr[i]=[]),Yr[i].push({name:t,func:r})}}),Yr[Ls(a,J).name]=[{name:"wrapper",func:a}],me.prototype.clone=sf,me.prototype.reverse=nf,me.prototype.value=of,d.prototype.at=Rh,d.prototype.chain=Lh,d.prototype.commit=Mh,d.prototype.next=Fh,d.prototype.plant=Bh,d.prototype.reverse=Uh,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=Wh,d.prototype.first=d.prototype.head,Da&&(d.prototype[Da]=jh),d},Xr=Lm();vr?((vr.exports=Xr)._=Xr,On._=Xr):Xe._=Xr}).call(ra)}($a,$a.exports);var so=$a.exports;const Re="tccScript",sn={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|strategy\.avg_winning_trade_percent|strategy\.avg_winning_trade|strategy\.avg_losing_trade_percent|strategy\.avg_losing_trade|syminfo\.recommendations_sell_strong|syminfo\.recommendations_buy_strong|strategy\.commission\.cash_per_order|strategy\.margin_liquidation_price|strategy\.max_contracts_held_short|strategy\.max_contracts_held_long|syminfo\.shares_outstanding_float|syminfo\.shares_outstanding_total|barstate\.islastconfirmedhistory|earnings\.future_period_end_time|strategy\.max_contracts_held_all|syminfo\.target_price_estimates|strategy\.max_drawdown_percent|syminfo\.recommendations_total|alert\.freq_once_per_bar_close|label\.style_label_lower_right|label\.style_label_upper_right|chart\.right_visible_bar_time|strategy\.grossprofit_percent|strategy\.position_entry_name|syminfo\.recommendations_date|syminfo\.recommendations_hold|syminfo\.recommendations_sell|syminfo\.target_price_average|label\.style_label_lower_left|label\.style_label_upper_left|chart\.left_visible_bar_time|strategy\.openprofit_percent|strategy\.position_avg_price|syminfo\.recommendations_buy|syminfo\.target_price_median|plot\.style_stepline_diamond|strategy\.commission\.percent|session\.isfirstbar_regular|strategy\.grossloss_percent|strategy\.max_runup_percent|strategy\.netprofit_percent|strategy\.percent_of_equity|session\.islastbar_regular|strategy\.account_currency|syminfo\.target_price_date|syminfo\.target_price_high|dividends\.future_pay_date|strategy\.initial_capital|syminfo\.target_price_low|dividends\.future_ex_date|label\.style_label_center|label\.style_text_outline|label\.style_triangledown|strategy\.direction\.short|earnings\.future_revenue|alert\.freq_once_per_bar|dividends\.future_amount|label\.style_label_right|strategy\.direction\.long|strategy\.position_size|barmerge\.lookahead_off|label\.style_label_down|label\.style_label_left|label\.style_triangleup|line\.style_arrow_right|position\.bottom_center|position\.middle_center|strategy\.direction\.all|strategy\.closedtrades|strategy\.max_drawdown|barmerge\.lookahead_on|earnings\.standardized|font\.family_monospace|label\.style_arrowdown|line\.style_arrow_both|line\.style_arrow_left|plot\.style_steplinebr|position\.bottom_right|position\.middle_right|barstate\.isconfirmed|earnings\.future_time|session\.ispostmarket|strategy\.grossprofit|syminfo\.basecurrency|syminfo\.shareholders|timeframe\.isintraday|timeframe\.multiplier|adjustment\.dividends|label\.style_label_up|plot\.style_histogram|position\.bottom_left|position\.middle_left|barstate\.isrealtime|chart\.is_heikinashi|earnings\.future_eps|session\.ispremarket|strategy\.eventrades|strategy\.losstrades|strategy\.openprofit|strategy\.opentrades\.capital_held|strategy\.opentrades|syminfo\.description|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|dayofweek\.wednesday|display\.data_window|display\.price_scale|display\.status_line|font\.family_default|label\.style_arrowup|label\.style_diamond|plot\.style_stepline|position\.top_center|strategy\.oca\.cancel|strategy\.oca\.reduce|barstate\.ishistory|chart\.is_linebreak|session\.isfirstbar|strategy\.grossloss|strategy\.max_runup|strategy\.netprofit|strategy\.wintrades|syminfo\.pointvalue|syminfo\.pricescale|syminfo\.volumetype|timeframe\.isweekly|dayofweek\.saturday|dayofweek\.thursday|hline\.style_dashed|hline\.style_dotted|label\.style_circle|label\.style_square|label\.style_xcross|plot\.style_circles|plot\.style_columns|position\.top_right|shape\.triangledown|splits\.denominator|chart\.is_standard|session\.islastbar|syminfo\.employees|timeframe\.isdaily|adjustment\.splits|barmerge\.gaps_off|dayofweek\.tuesday|earnings\.estimate|hline\.style_solid|label\.style_cross|line\.style_dashed|line\.style_dotted|location\.abovebar|location\.absolute|location\.belowbar|plot\.style_areabr|plot\.style_linebr|position\.top_left|strategy\.oca\.none|text\.align_bottom|text\.align_center|barstate\.isfirst|session\.ismarket|syminfo\.currency|syminfo\.industry|syminfo\.tickerid|syminfo\.timezone|timeframe\.period|barmerge\.gaps_on|dayofweek\.friday|dayofweek\.monday|dayofweek\.sunday|label\.style_flag|label\.style_none|line\.style_solid|order\.descending|plot\.style_cross|session\.extended|shape\.triangleup|splits\.numerator|text\.align_right|barstate\.islast|strategy\.equity|syminfo\.country|syminfo\.minmove|syminfo\.mintick|syminfo\.session|time_tradingday|timeframe\.isdwm|adjustment\.none|dividends\.gross|earnings\.actual|location\.bottom|order\.ascending|plot\.style_area|plot\.style_line|session\.regular|shape\.arrowdown|shape\.labeldown|text\.align_left|barstate\.isnew|chart\.bg_color|chart\.fg_color|chart\.is_range|chart\.is_renko|last_bar_index|strategy\.short|syminfo\.prefix|syminfo\.sector|syminfo\.ticker|alert\.freq_all|format\.inherit|format\.mintick|format\.percent|strategy\.fixed|text\.align_top|text\.wrap_auto|text\.wrap_none|xloc\.bar_index|chart\.is_kagi|last_bar_time|strategy\.long|color\.fuchsia|currency\.NONE|currency\.USDT|dividends\.net|format\.volume|shape\.arrowup|shape\.diamond|shape\.labelup|strategy\.cash|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|chart\.is_pnf|linefill\.all|polyline\.all|syminfo\.root|syminfo\.type|color\.maroon|color\.orange|color\.purple|color\.silver|color\.yellow|currency\.AUD|currency\.BTC|currency\.CAD|currency\.CHF|currency\.ETH|currency\.EUR|currency\.GBP|currency\.HKD|currency\.INR|currency\.JPY|currency\.KRW|currency\.MYR|currency\.NOK|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|display\.none|display\.pane|extend\.right|format\.price|location\.top|shape\.circle|shape\.square|shape\.xcross|color\.black|color\.green|color\.olive|color\.white|display\.all|extend\.both|extend\.left|extend\.none|scale\.right|shape\.cross|size\.normal|dayofmonth|ta\.accdist|time_close|weekofyear|color\.aqua|color\.blue|color\.gray|color\.lime|color\.navy|color\.teal|scale\.left|scale\.none|shape\.flag|size\.large|size\.small|yloc\.price|bar_index|dayofweek|label\.all|table\.all|color\.red|math\.rphi|size\.auto|size\.huge|size\.tiny|line\.all|math\.phi|box\.all|ta\.vwap|ta\.wvad|timenow|math\.pi|minute|second|ta\.iii|ta\.nvi|ta\.obv|ta\.pvi|ta\.pvt|ta\.wad|volume|math\.e|close|hlcc4|month|ohlc4|ta\.tr|false|high|hlc3|hour|open|time|year|true|hl2|low|na)\b(?!\s*=\s*\w+)/,"support.variable"],[/[(|)|\[|\]]/,"paren"],[/[a-zA-Z_][a-zA-Z_0-9]*(?=\s*\()/,{token:"entity.name.method"}],[/\w+\b/,"variable.other"]],comments:[[/@[A-Za-z]+(\s*=\s*)?$/,{token:"comment.annotation",next:"@pop"}],[/@[A-Za-z]+(\s*=\s*)?/,{token:"comment.annotation"}],[/(?!\s*@[A-Za-z]+).+$/,{token:"comment",next:"@pop"}]],stringDouble:[[/[^\\\"]+/,"string"],[/\\./,"string.invalid"],[/\"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/\\./,"string.invalid"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],template:[[/(@builtinTypes)/,{token:"support.type"}],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|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 St;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(St||(St={}));const nn={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:St.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:St.Indent}},{beforeText:/else/,action:{indentAction:St.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:St.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:St.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:St.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:St.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:St.Indent}},{beforeText:/^\s*$/,action:{indentAction:St.Outdent}}]},D={"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 Mt(s,n=1){return s+Math.round(255*Math.min(Math.max(n,0),1)).toString(16).toUpperCase().padStart(2,"0")}const on={base:"vs",inherit:!0,rules:[{token:"comment",foreground:D["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:D["color-cold-gray-900"]},{token:"string",foreground:D["color-iguana-green-700"]},{token:"constant.numeric",foreground:D["color-banana-yellow-900"]},{token:"constant.language",foreground:D["color-ripe-red-a600"]},{token:"constant.other.color",foreground:D["color-ripe-red-a600"]},{token:"constant.other",foreground:D["color-ripe-red-a600"]},{token:"support.variable",foreground:D["color-ripe-red-a600"]},{token:"support.function",foreground:D["color-tv-blue-a600"]},{token:"support.type",foreground:D["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:D["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:D["color-tv-blue-a600"]},{token:"keyword.equals",foreground:D["color-minty-green-400"]},{token:"keyword.operator",foreground:D["color-minty-green-400"]},{token:"keyword.other",foreground:D["color-minty-green-400"]},{token:"keyword",foreground:D["color-minty-green-400"]},{token:"variable.other",foreground:D["color-cold-gray-800"]},{token:"variable.other.property",foreground:D["color-cold-gray-800"]},{token:"paren",foreground:D["color-black"]},{token:"entity.name.function",foreground:D["color-tv-blue-900"]},{token:"entity.name.method",foreground:D["color-tv-blue-900"]},{token:"meta.function-call",foreground:D["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:D["color-grapes-purple-600"]},{token:"entity.name.module",foreground:D["color-tv-blue-a600"]},{token:"",background:D["color-white"]}],colors:{"editor.foreground":D["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":D["color-cold-gray-400"],"editorLineNumber.activeForeground":D["color-cold-gray-700"],"editorHoverWidget.background":D["color-white"],"editorHoverWidget.statusBarBackground":D["color-cold-gray-150"],"editorHoverWidget.foreground":D["color-cold-gray-900"],"editorWidget.background":D["color-white"],"editorWidget.foreground":D["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Mt(D["color-cold-gray-200"],.5),"editor.lineHighlightBackground":D["color-tv-blue-50"],"editor.lineHighlightBorder":D["color-tv-blue-50"],"editor.rangeHighlightBackground":D["color-tv-blue-a800"],"editorBracketMatch.background":D["color-cold-gray-150"],"editor.selectionBackground":D["color-tv-blue-100"],"editor.selectionHighlightBackground":D["color-tv-blue-50"],"editor.findMatchBackground":D["color-tan-orange-100"],"editor.findMatchHighlightBackground":D["color-tan-orange-100"],"editor.findMatchBorder":D["color-tan-orange-500"],"list.foreground":D["color-cold-gray-900"],"list.hoverForeground":D["color-cold-gray-900"],"list.activeSelectionBackground":D["color-tv-blue-500"],"list.hoverBackground":D["color-tv-blue-50"],"list.focusHighlightForeground":D["color-tv-blue-100"],"list.inactiveSelectionBackground":D["color-tv-blue-500"],"keybindingLabel.background":D["color-white"],"keybindingLabel.foreground":D["color-cold-gray-900"],"keybindingLabel.border":D["color-cold-gray-150"],"input.foreground":D["color-cold-gray-900"],"textLink.foreground":D["color-tv-blue-500"],"textLink.activeForeground":D["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":D["color-tan-orange-100"],"peekViewResult.lineForeground":D["color-cold-gray-900"],"editorMarkerNavigationWarning.background":D["color-banana-yellow-800"],"inputValidation.warningBackground":D["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Mt(D["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Mt(D["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Mt(D["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Mt(D["color-ripe-red-500"],.15),"editorInlayHint.background":D["color-cold-gray-150"],"editorInlayHint.foreground":D["color-cold-gray-550"],"editorError.foreground":D["color-ripe-red-500"],"editorWarning.foreground":D["color-tan-orange-500"]}},ln={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:D["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:D["color-white"]},{token:"string",foreground:D["color-iguana-green-700"]},{token:"constant.numeric",foreground:D["color-banana-yellow-900"]},{token:"constant.language",foreground:D["color-ripe-red-300"]},{token:"constant.other.color",foreground:D["color-ripe-red-300"]},{token:"constant.other",foreground:D["color-ripe-red-300"]},{token:"support.variable",foreground:D["color-ripe-red-300"]},{token:"support.function",foreground:D["color-tv-blue-300"]},{token:"support.method",foreground:D["color-tv-blue-300"]},{token:"support.type",foreground:D["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:D["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:D["color-minty-green-300"]},{token:"keyword.operator",foreground:D["color-minty-green-300"]},{token:"keyword.other",foreground:D["color-minty-green-300"]},{token:"keyword",foreground:D["color-minty-green-300"]},{token:"variable.other",foreground:D["color-cold-gray-200"]},{token:"variable.other.property",foreground:D["color-cold-gray-200"]},{token:"paren",foreground:D["color-white"]},{token:"entity.name.function",foreground:D["color-tv-blue-400"]},{token:"entity.name.method",foreground:D["color-tv-blue-400"]},{token:"meta.function-call",foreground:D["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:D["color-grapes-purple-300"]},{token:"entity.name.module",foreground:D["color-tv-blue-300"]},{token:"",background:D["color-cold-gray-900"]}],colors:{"editor.foreground":D["color-white"],"editor.background":D["color-cold-gray-900"],"editorLineNumber.foreground":D["color-cold-gray-500"],"editorLineNumber.activeForeground":D["color-cold-gray-300"],"editorWidget.background":D["color-cold-gray-850"],"editorHoverWidget.background":D["color-cold-gray-850"],"editorHoverWidget.foreground":D["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":D["color-cold-gray-900"],"editorWidget.foreground":D["color-cold-gray-300"],"editorGutter.background":D["color-cold-gray-900"],"editor.foldBackground":Mt(D["color-cold-gray-700"],.5),"editor.lineHighlightBackground":D["color-tv-blue-a900"],"editor.lineHighlightBorder":D["color-tv-blue-a900"],"editor.rangeHighlightBackground":D["color-tv-blue-a800"],"editorBracketMatch.background":D["color-cold-gray-750"],"editor.selectionBackground":D["color-tv-blue-a800"],"editor.selectionHighlightBackground":D["color-cold-gray-800"],"list.foreground":D["color-cold-gray-350"],"list.hoverForeground":D["color-cold-gray-350"],"list.activeSelectionBackground":D["color-tv-blue-500"],"list.hoverBackground":D["color-tv-blue-900"],"list.focusHighlightForeground":D["color-tv-blue-300"],"list.inactiveSelectionBackground":D["color-tv-blue-500"],"keybindingLabel.background":D["color-cold-gray-800"],"keybindingLabel.foreground":D["color-cold-gray-300"],"keybindingLabel.border":D["color-cold-gray-700"],"input.foreground":D["color-cold-gray-350"],"textLink.foreground":D["color-tv-blue-500"],"textLink.activeForeground":D["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":D["color-tan-orange-a800"],"peekViewResult.lineForeground":D["color-cold-gray-350"],"diffEditor.insertedTextBackground":Mt(D["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Mt(D["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Mt(D["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Mt(D["color-ripe-red-a400"],.15),"editorInlayHint.background":D["color-cold-gray-800"],"editorInlayHint.foreground":D["color-cold-gray-400"],"editorError.foreground":D["color-ripe-red-500"],"editorWarning.foreground":D["color-tan-orange-700"]}},Ad=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,qd=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,no={"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 Cd{constructor(n){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(a=[],o)=>{const u=new Map,c=o.indexOf("(");for(let m=c+1,h=c;m<o.length;m++)o[m]!==","&&o[m]!==")"||(h++,u.set(o.slice(h,m),h),h=m+1);return a.map(({name:m,displayType:h,desc:b})=>{const g=[],x=u.get(m),T=x+m.length;return g.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(h||""))),b&&g.push(Array.isArray(b)?b.join(this._formatter.lineBreak):b),{label:[x,T],documentation:{value:g.join(this._formatter.lineBreak)}}})}}),this._formatter=we,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(n)}getSignatureHelpValues(n,a){const o=this._getFuncItems(n);if(!(o!=null&&o.length))return null;const u=this._getSequentialSignatures(n,o),c=this._getActiveIndex(o,a);return{signatures:u,...c}}_getActiveIndex(n,a=[]){let o=0,u=-1;a.some(m=>!!m)||(u=a.length-1);const c=a.pop();if(c)for(const[m,h]of n.entries()){const{args:b}=h;if(b&&b.length){const g=b.findIndex(x=>x.name===c);if(g!=-1){u=g,o=m;break}}}return{activeParameter:u,activeSignature:o}}_getFuncItems(n){return gt.functions.get(n)||Ct.userFuncs.get(n)||Ct.methodFuncs.get(n)}_getSequentialSignatures(n,a){return a.map(o=>{const u=this._getSignatureLabel(n,o);return{label:u,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,u)}})}_getSignatureLabel(n,a,o=!1){const u=[n];return o&&u.push("<type>"),a.args&&(u.push("("),u.push(a.args.map(({name:c})=>c).join(", ")),u.push(")")),u.join("")}_getFormattedSignatureDocumentation(n){const{desc:a}=n,o=[];a&&o.push(Array.isArray(a)?a.join(this._formatter.lineBreak):a);const u=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
131
+ }`;var ne=eu(function(){return _e(p,X+"return "+N).apply(a,f)});if(ne.source=N,Ai(ne))throw ne;return ne}function Zg(e){return be(e).toLowerCase()}function eb(e){return be(e).toUpperCase()}function tb(e,t,r){if(e=be(e),e&&(r||t===a))return cl(e);if(!e||!(t=mt(t)))return e;var i=Pt(e),l=Pt(t),p=ul(i,l),f=dl(i,l)+1;return yr(i,p,f).join("")}function rb(e,t,r){if(e=be(e),e&&(r||t===a))return e.slice(0,ml(e)+1);if(!e||!(t=mt(t)))return e;var i=Pt(e),l=dl(i,Pt(t))+1;return yr(i,0,l).join("")}function ab(e,t,r){if(e=be(e),e&&(r||t===a))return e.replace(Ia,"");if(!e||!(t=mt(t)))return e;var i=Pt(e),l=ul(i,Pt(t));return yr(i,l).join("")}function sb(e,t){var r=ce,i=bt;if(Se(t)){var l="separator"in t?t.separator:l;r="length"in t?se(t.length):r,i="omission"in t?mt(t.omission):i}e=be(e);var p=e.length;if(Hr(e)){var f=Pt(e);p=f.length}if(r>=p)return e;var _=r-$r(i);if(_<1)return i;var v=f?yr(f,0,_).join(""):e.slice(0,_);if(l===a)return v+i;if(f&&(_+=v.length-_),qi(l)){if(e.slice(_).search(l)){var S,z=v;for(l.global||(l=Hn(l.source,be(ge.exec(l))+"g")),l.lastIndex=0;S=l.exec(z);)var N=S.index;v=v.slice(0,N===a?_:N)}}else if(e.indexOf(mt(l),_)!=_){var W=v.lastIndexOf(l);W>-1&&(v=v.slice(0,W))}return v+i}function nb(e){return e=be(e),e&&va.test(e)?e.replace(Gt,Om):e}var ib=Jr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),zi=tc("toUpperCase");function Zc(e,t,r){return e=be(e),t=r?a:t,t===a?qm(e)?Rm(e):bm(e):e.match(t)||[]}var eu=oe(function(e,t){try{return dt(e,a,t)}catch(r){return Ai(r)?r:new re(r)}}),ob=Jt(function(e,t){return Tt(t,function(r){r=Wt(r),Kt(e,r,ki(e[r],e))}),e});function lb(e){var t=e==null?0:e.length,r=K();return e=t?Ae(e,function(i){if(typeof i[1]!="function")throw new It(m);return[r(i[0]),i[1]]}):[],oe(function(i){for(var l=-1;++l<t;){var p=e[l];if(dt(p[0],this,i))return dt(p[1],this,i)}})}function cb(e){return Pf(Dt(e,T))}function Ni(e){return function(){return e}}function ub(e,t){return e==null||e!==e?t:e}var db=ac(),pb=ac(!0);function it(e){return e}function Oi(e){return Ol(typeof e=="function"?e:Dt(e,T))}function mb(e){return El(Dt(e,T))}function fb(e,t){return Rl(e,Dt(t,T))}var yb=oe(function(e,t){return function(r){return Oa(r,e,t)}}),hb=oe(function(e,t){return function(r){return Oa(e,r,t)}});function Pi(e,t,r){var i=He(t),l=Ns(t,i);r==null&&!(Se(t)&&(l.length||!i.length))&&(r=t,t=e,e=this,l=Ns(t,He(t)));var p=!(Se(r)&&"chain"in r)||!!r.chain,f=er(e);return Tt(l,function(_){var v=t[_];e[_]=v,f&&(e.prototype[_]=function(){var S=this.__chain__;if(p||S){var z=e(this.__wrapped__),N=z.__actions__=at(this.__actions__);return N.push({func:v,args:arguments,thisArg:e}),z.__chain__=S,z}return v.apply(e,cr([this.value()],arguments))})}),e}function _b(){return Xe._===this&&(Xe._=Um),this}function Ei(){}function gb(e){return e=se(e),oe(function(t){return Ll(t,e)})}var bb=pi(Ae),xb=pi(sl),wb=pi(Ln);function tu(e){return bi(e)?Mn(Wt(e)):Qf(e)}function vb(e){return function(t){return e==null?a:Ar(e,t)}}var Tb=nc(),Ib=nc(!0);function Ri(){return[]}function Li(){return!1}function kb(){return{}}function Db(){return""}function Ab(){return!0}function qb(e,t){if(e=se(e),e<1||e>Le)return[];var r=te,i=Ye(e,te);t=K(t),e-=te;for(var l=Bn(i,t);++r<e;)t(r);return l}function Cb(e){return ae(e)?Ae(e,Wt):ft(e)?[e]:at(wc(be(e)))}function Sb(e){var t=++jm;return be(e)+t}var zb=Ms(function(e,t){return e+t},0),Nb=mi("ceil"),Ob=Ms(function(e,t){return e/t},1),Pb=mi("floor");function Eb(e){return e&&e.length?zs(e,it,Jn):a}function Rb(e,t){return e&&e.length?zs(e,K(t,2),Jn):a}function Lb(e){return ol(e,it)}function Mb(e,t){return ol(e,K(t,2))}function Fb(e){return e&&e.length?zs(e,it,ri):a}function jb(e,t){return e&&e.length?zs(e,K(t,2),ri):a}var Bb=Ms(function(e,t){return e*t},1),Ub=mi("round"),Wb=Ms(function(e,t){return e-t},0);function Hb(e){return e&&e.length?jn(e,it):0}function $b(e,t){return e&&e.length?jn(e,K(t,2)):0}return d.after=m_,d.ary=Nc,d.assign=eg,d.assignIn=Xc,d.assignInWith=Qs,d.assignWith=tg,d.at=rg,d.before=Oc,d.bind=ki,d.bindAll=ob,d.bindKey=Pc,d.castArray=k_,d.chain=Cc,d.chunk=Py,d.compact=Ey,d.concat=Ry,d.cond=lb,d.conforms=cb,d.constant=Ni,d.countBy=Hh,d.create=ag,d.curry=Ec,d.curryRight=Rc,d.debounce=Lc,d.defaults=sg,d.defaultsDeep=ng,d.defer=f_,d.delay=y_,d.difference=Ly,d.differenceBy=My,d.differenceWith=Fy,d.drop=jy,d.dropRight=By,d.dropRightWhile=Uy,d.dropWhile=Wy,d.fill=Hy,d.filter=Xh,d.flatMap=Yh,d.flatMapDeep=Kh,d.flatMapDepth=Qh,d.flatten=kc,d.flattenDeep=$y,d.flattenDepth=Xy,d.flip=h_,d.flow=db,d.flowRight=pb,d.fromPairs=Gy,d.functions=pg,d.functionsIn=mg,d.groupBy=Jh,d.initial=Yy,d.intersection=Ky,d.intersectionBy=Qy,d.intersectionWith=Jy,d.invert=yg,d.invertBy=hg,d.invokeMap=e_,d.iteratee=Oi,d.keyBy=t_,d.keys=He,d.keysIn=nt,d.map=$s,d.mapKeys=gg,d.mapValues=bg,d.matches=mb,d.matchesProperty=fb,d.memoize=Gs,d.merge=xg,d.mergeWith=Gc,d.method=yb,d.methodOf=hb,d.mixin=Pi,d.negate=Vs,d.nthArg=gb,d.omit=wg,d.omitBy=vg,d.once=__,d.orderBy=r_,d.over=bb,d.overArgs=g_,d.overEvery=xb,d.overSome=wb,d.partial=Di,d.partialRight=Mc,d.partition=a_,d.pick=Tg,d.pickBy=Vc,d.property=tu,d.propertyOf=vb,d.pull=rh,d.pullAll=Ac,d.pullAllBy=ah,d.pullAllWith=sh,d.pullAt=nh,d.range=Tb,d.rangeRight=Ib,d.rearg=b_,d.reject=i_,d.remove=ih,d.rest=x_,d.reverse=Ti,d.sampleSize=l_,d.set=kg,d.setWith=Dg,d.shuffle=c_,d.slice=oh,d.sortBy=p_,d.sortedUniq=fh,d.sortedUniqBy=yh,d.split=Yg,d.spread=w_,d.tail=hh,d.take=_h,d.takeRight=gh,d.takeRightWhile=bh,d.takeWhile=xh,d.tap=Eh,d.throttle=v_,d.thru=Hs,d.toArray=Wc,d.toPairs=Yc,d.toPairsIn=Kc,d.toPath=Cb,d.toPlainObject=$c,d.transform=Ag,d.unary=T_,d.union=wh,d.unionBy=vh,d.unionWith=Th,d.uniq=Ih,d.uniqBy=kh,d.uniqWith=Dh,d.unset=qg,d.unzip=Ii,d.unzipWith=qc,d.update=Cg,d.updateWith=Sg,d.values=ta,d.valuesIn=zg,d.without=Ah,d.words=Zc,d.wrap=I_,d.xor=qh,d.xorBy=Ch,d.xorWith=Sh,d.zip=zh,d.zipObject=Nh,d.zipObjectDeep=Oh,d.zipWith=Ph,d.entries=Yc,d.entriesIn=Kc,d.extend=Xc,d.extendWith=Qs,Pi(d,d),d.add=zb,d.attempt=eu,d.camelCase=Eg,d.capitalize=Qc,d.ceil=Nb,d.clamp=Ng,d.clone=D_,d.cloneDeep=q_,d.cloneDeepWith=C_,d.cloneWith=A_,d.conformsTo=S_,d.deburr=Jc,d.defaultTo=ub,d.divide=Ob,d.endsWith=Rg,d.eq=Rt,d.escape=Lg,d.escapeRegExp=Mg,d.every=$h,d.find=Gh,d.findIndex=Tc,d.findKey=ig,d.findLast=Vh,d.findLastIndex=Ic,d.findLastKey=og,d.floor=Pb,d.forEach=Sc,d.forEachRight=zc,d.forIn=lg,d.forInRight=cg,d.forOwn=ug,d.forOwnRight=dg,d.get=Ci,d.gt=z_,d.gte=N_,d.has=fg,d.hasIn=Si,d.head=Dc,d.identity=it,d.includes=Zh,d.indexOf=Vy,d.inRange=Og,d.invoke=_g,d.isArguments=Sr,d.isArray=ae,d.isArrayBuffer=O_,d.isArrayLike=st,d.isArrayLikeObject=Pe,d.isBoolean=P_,d.isBuffer=hr,d.isDate=E_,d.isElement=R_,d.isEmpty=L_,d.isEqual=M_,d.isEqualWith=F_,d.isError=Ai,d.isFinite=j_,d.isFunction=er,d.isInteger=Fc,d.isLength=Ys,d.isMap=jc,d.isMatch=B_,d.isMatchWith=U_,d.isNaN=W_,d.isNative=H_,d.isNil=X_,d.isNull=$_,d.isNumber=Bc,d.isObject=Se,d.isObjectLike=Ne,d.isPlainObject=Fa,d.isRegExp=qi,d.isSafeInteger=G_,d.isSet=Uc,d.isString=Ks,d.isSymbol=ft,d.isTypedArray=ea,d.isUndefined=V_,d.isWeakMap=Y_,d.isWeakSet=K_,d.join=Zy,d.kebabCase=Fg,d.last=qt,d.lastIndexOf=eh,d.lowerCase=jg,d.lowerFirst=Bg,d.lt=Q_,d.lte=J_,d.max=Eb,d.maxBy=Rb,d.mean=Lb,d.meanBy=Mb,d.min=Fb,d.minBy=jb,d.stubArray=Ri,d.stubFalse=Li,d.stubObject=kb,d.stubString=Db,d.stubTrue=Ab,d.multiply=Bb,d.nth=th,d.noConflict=_b,d.noop=Ei,d.now=Xs,d.pad=Ug,d.padEnd=Wg,d.padStart=Hg,d.parseInt=$g,d.random=Pg,d.reduce=s_,d.reduceRight=n_,d.repeat=Xg,d.replace=Gg,d.result=Ig,d.round=Ub,d.runInContext=w,d.sample=o_,d.size=u_,d.snakeCase=Vg,d.some=d_,d.sortedIndex=lh,d.sortedIndexBy=ch,d.sortedIndexOf=uh,d.sortedLastIndex=dh,d.sortedLastIndexBy=ph,d.sortedLastIndexOf=mh,d.startCase=Kg,d.startsWith=Qg,d.subtract=Wb,d.sum=Hb,d.sumBy=$b,d.template=Jg,d.times=qb,d.toFinite=tr,d.toInteger=se,d.toLength=Hc,d.toLower=Zg,d.toNumber=Ct,d.toSafeInteger=Z_,d.toString=be,d.toUpper=eb,d.trim=tb,d.trimEnd=rb,d.trimStart=ab,d.truncate=sb,d.unescape=nb,d.uniqueId=Sb,d.upperCase=ib,d.upperFirst=zi,d.each=Sc,d.eachRight=zc,d.first=Dc,Pi(d,function(){var e={};return Bt(d,function(t,r){ve.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=o,Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),Tt(["drop","take"],function(e,t){me.prototype[e]=function(r){r=r===a?1:Ue(se(r),0);var i=this.__filtered__&&!t?new me(this):this.clone();return i.__filtered__?i.__takeCount__=Ye(r,i.__takeCount__):i.__views__.push({size:Ye(r,te),type:e+(i.__dir__<0?"Right":"")}),i},me.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Tt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==Fe||r==he;me.prototype[e]=function(l){var p=this.clone();return p.__iteratees__.push({iteratee:K(l,3),type:r}),p.__filtered__=p.__filtered__||i,p}}),Tt(["head","last"],function(e,t){var r="take"+(t?"Right":"");me.prototype[e]=function(){return this[r](1).value()[0]}}),Tt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");me.prototype[e]=function(){return this.__filtered__?new me(this):this[r](1)}}),me.prototype.compact=function(){return this.filter(it)},me.prototype.find=function(e){return this.filter(e).head()},me.prototype.findLast=function(e){return this.reverse().find(e)},me.prototype.invokeMap=oe(function(e,t){return typeof e=="function"?new me(this):this.map(function(r){return Oa(r,e,t)})}),me.prototype.reject=function(e){return this.filter(Vs(K(e)))},me.prototype.slice=function(e,t){e=se(e);var r=this;return r.__filtered__&&(e>0||t<0)?new me(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=se(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},me.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},me.prototype.toArray=function(){return this.take(te)},Bt(me.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),l=d[i?"take"+(t=="last"?"Right":""):t],p=i||/^find/.test(t);l&&(d.prototype[t]=function(){var f=this.__wrapped__,_=i?[1]:arguments,v=f instanceof me,S=_[0],z=v||ae(f),N=function(de){var fe=l.apply(d,cr([de],_));return i&&W?fe[0]:fe};z&&r&&typeof S=="function"&&S.length!=1&&(v=z=!1);var W=this.__chain__,X=!!this.__actions__.length,Q=p&&!W,ne=v&&!X;if(!p&&z){f=ne?f:new me(this);var J=e.apply(f,_);return J.__actions__.push({func:Hs,args:[N],thisArg:a}),new kt(J,W)}return Q&&ne?e.apply(this,_):(J=this.thru(N),Q?i?J.value()[0]:J.value():J)})}),Tt(["pop","push","shift","sort","splice","unshift"],function(e){var t=hs[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(i&&!this.__chain__){var p=this.value();return t.apply(ae(p)?p:[],l)}return this[r](function(f){return t.apply(ae(f)?f:[],l)})}}),Bt(me.prototype,function(e,t){var r=d[t];if(r){var i=r.name+"";ve.call(Yr,i)||(Yr[i]=[]),Yr[i].push({name:t,func:r})}}),Yr[Ls(a,Z).name]=[{name:"wrapper",func:a}],me.prototype.clone=sf,me.prototype.reverse=nf,me.prototype.value=of,d.prototype.at=Rh,d.prototype.chain=Lh,d.prototype.commit=Mh,d.prototype.next=Fh,d.prototype.plant=Bh,d.prototype.reverse=Uh,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=Wh,d.prototype.first=d.prototype.head,Da&&(d.prototype[Da]=jh),d},Xr=Lm();vr?((vr.exports=Xr)._=Xr,On._=Xr):Xe._=Xr}).call(ra)}($a,$a.exports);var so=$a.exports;const Re="tccScript",sn={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|strategy\.avg_winning_trade_percent|strategy\.avg_winning_trade|strategy\.avg_losing_trade_percent|strategy\.avg_losing_trade|syminfo\.recommendations_sell_strong|syminfo\.recommendations_buy_strong|strategy\.commission\.cash_per_order|strategy\.margin_liquidation_price|strategy\.max_contracts_held_short|strategy\.max_contracts_held_long|syminfo\.shares_outstanding_float|syminfo\.shares_outstanding_total|barstate\.islastconfirmedhistory|earnings\.future_period_end_time|strategy\.max_contracts_held_all|syminfo\.target_price_estimates|strategy\.max_drawdown_percent|syminfo\.recommendations_total|alert\.freq_once_per_bar_close|label\.style_label_lower_right|label\.style_label_upper_right|chart\.right_visible_bar_time|strategy\.grossprofit_percent|strategy\.position_entry_name|syminfo\.recommendations_date|syminfo\.recommendations_hold|syminfo\.recommendations_sell|syminfo\.target_price_average|label\.style_label_lower_left|label\.style_label_upper_left|chart\.left_visible_bar_time|strategy\.openprofit_percent|strategy\.position_avg_price|syminfo\.recommendations_buy|syminfo\.target_price_median|plot\.style_stepline_diamond|strategy\.commission\.percent|session\.isfirstbar_regular|strategy\.grossloss_percent|strategy\.max_runup_percent|strategy\.netprofit_percent|strategy\.percent_of_equity|session\.islastbar_regular|strategy\.account_currency|syminfo\.target_price_date|syminfo\.target_price_high|dividends\.future_pay_date|strategy\.initial_capital|syminfo\.target_price_low|dividends\.future_ex_date|label\.style_label_center|label\.style_text_outline|label\.style_triangledown|strategy\.direction\.short|earnings\.future_revenue|alert\.freq_once_per_bar|dividends\.future_amount|label\.style_label_right|strategy\.direction\.long|strategy\.position_size|barmerge\.lookahead_off|label\.style_label_down|label\.style_label_left|label\.style_triangleup|line\.style_arrow_right|position\.bottom_center|position\.middle_center|strategy\.direction\.all|strategy\.closedtrades|strategy\.max_drawdown|barmerge\.lookahead_on|earnings\.standardized|font\.family_monospace|label\.style_arrowdown|line\.style_arrow_both|line\.style_arrow_left|plot\.style_steplinebr|position\.bottom_right|position\.middle_right|barstate\.isconfirmed|earnings\.future_time|session\.ispostmarket|strategy\.grossprofit|syminfo\.basecurrency|syminfo\.shareholders|timeframe\.isintraday|timeframe\.multiplier|adjustment\.dividends|label\.style_label_up|plot\.style_histogram|position\.bottom_left|position\.middle_left|barstate\.isrealtime|chart\.is_heikinashi|earnings\.future_eps|session\.ispremarket|strategy\.eventrades|strategy\.losstrades|strategy\.openprofit|strategy\.opentrades\.capital_held|strategy\.opentrades|syminfo\.description|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|dayofweek\.wednesday|display\.data_window|display\.price_scale|display\.status_line|font\.family_default|label\.style_arrowup|label\.style_diamond|plot\.style_stepline|position\.top_center|strategy\.oca\.cancel|strategy\.oca\.reduce|barstate\.ishistory|chart\.is_linebreak|session\.isfirstbar|strategy\.grossloss|strategy\.max_runup|strategy\.netprofit|strategy\.wintrades|syminfo\.pointvalue|syminfo\.pricescale|syminfo\.volumetype|timeframe\.isweekly|dayofweek\.saturday|dayofweek\.thursday|hline\.style_dashed|hline\.style_dotted|label\.style_circle|label\.style_square|label\.style_xcross|plot\.style_circles|plot\.style_columns|position\.top_right|shape\.triangledown|splits\.denominator|chart\.is_standard|session\.islastbar|syminfo\.employees|timeframe\.isdaily|adjustment\.splits|barmerge\.gaps_off|dayofweek\.tuesday|earnings\.estimate|hline\.style_solid|label\.style_cross|line\.style_dashed|line\.style_dotted|location\.abovebar|location\.absolute|location\.belowbar|plot\.style_areabr|plot\.style_linebr|position\.top_left|strategy\.oca\.none|text\.align_bottom|text\.align_center|barstate\.isfirst|session\.ismarket|syminfo\.currency|syminfo\.industry|syminfo\.tickerid|syminfo\.timezone|timeframe\.period|barmerge\.gaps_on|dayofweek\.friday|dayofweek\.monday|dayofweek\.sunday|label\.style_flag|label\.style_none|line\.style_solid|order\.descending|plot\.style_cross|session\.extended|shape\.triangleup|splits\.numerator|text\.align_right|barstate\.islast|strategy\.equity|syminfo\.country|syminfo\.minmove|syminfo\.mintick|syminfo\.session|time_tradingday|timeframe\.isdwm|adjustment\.none|dividends\.gross|earnings\.actual|location\.bottom|order\.ascending|plot\.style_area|plot\.style_line|session\.regular|shape\.arrowdown|shape\.labeldown|text\.align_left|barstate\.isnew|chart\.bg_color|chart\.fg_color|chart\.is_range|chart\.is_renko|last_bar_index|strategy\.short|syminfo\.prefix|syminfo\.sector|syminfo\.ticker|alert\.freq_all|format\.inherit|format\.mintick|format\.percent|strategy\.fixed|text\.align_top|text\.wrap_auto|text\.wrap_none|xloc\.bar_index|chart\.is_kagi|last_bar_time|strategy\.long|color\.fuchsia|currency\.NONE|currency\.USDT|dividends\.net|format\.volume|shape\.arrowup|shape\.diamond|shape\.labelup|strategy\.cash|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|chart\.is_pnf|linefill\.all|polyline\.all|syminfo\.root|syminfo\.type|color\.maroon|color\.orange|color\.purple|color\.silver|color\.yellow|currency\.AUD|currency\.BTC|currency\.CAD|currency\.CHF|currency\.ETH|currency\.EUR|currency\.GBP|currency\.HKD|currency\.INR|currency\.JPY|currency\.KRW|currency\.MYR|currency\.NOK|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|display\.none|display\.pane|extend\.right|format\.price|location\.top|shape\.circle|shape\.square|shape\.xcross|color\.black|color\.green|color\.olive|color\.white|display\.all|extend\.both|extend\.left|extend\.none|scale\.right|shape\.cross|size\.normal|dayofmonth|ta\.accdist|time_close|weekofyear|color\.aqua|color\.blue|color\.gray|color\.lime|color\.navy|color\.teal|scale\.left|scale\.none|shape\.flag|size\.large|size\.small|yloc\.price|bar_index|dayofweek|label\.all|table\.all|color\.red|math\.rphi|size\.auto|size\.huge|size\.tiny|line\.all|math\.phi|box\.all|ta\.vwap|ta\.wvad|timenow|math\.pi|minute|second|ta\.iii|ta\.nvi|ta\.obv|ta\.pvi|ta\.pvt|ta\.wad|volume|math\.e|close|hlcc4|month|ohlc4|ta\.tr|false|high|hlc3|hour|open|time|year|true|hl2|low|na)\b(?!\s*=\s*\w+)/,"support.variable"],[/[(|)|\[|\]]/,"paren"],[/[a-zA-Z_][a-zA-Z_0-9]*(?=\s*\()/,{token:"entity.name.method"}],[/\w+\b/,"variable.other"]],comments:[[/@[A-Za-z]+(\s*=\s*)?$/,{token:"comment.annotation",next:"@pop"}],[/@[A-Za-z]+(\s*=\s*)?/,{token:"comment.annotation"}],[/(?!\s*@[A-Za-z]+).+$/,{token:"comment",next:"@pop"}]],stringDouble:[[/[^\\\"]+/,"string"],[/\\./,"string.invalid"],[/\"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/\\./,"string.invalid"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],template:[[/(@builtinTypes)/,{token:"support.type"}],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|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 zt;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(zt||(zt={}));const nn={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:zt.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:zt.Indent}},{beforeText:/else/,action:{indentAction:zt.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:zt.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:zt.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:zt.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:zt.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:zt.Indent}},{beforeText:/^\s*$/,action:{indentAction:zt.Outdent}}]},D={"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 Mt(s,n=1){return s+Math.round(255*Math.min(Math.max(n,0),1)).toString(16).toUpperCase().padStart(2,"0")}const on={base:"vs",inherit:!0,rules:[{token:"comment",foreground:D["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:D["color-cold-gray-900"]},{token:"string",foreground:D["color-iguana-green-700"]},{token:"constant.numeric",foreground:D["color-banana-yellow-900"]},{token:"constant.language",foreground:D["color-ripe-red-a600"]},{token:"constant.other.color",foreground:D["color-ripe-red-a600"]},{token:"constant.other",foreground:D["color-ripe-red-a600"]},{token:"support.variable",foreground:D["color-ripe-red-a600"]},{token:"support.function",foreground:D["color-tv-blue-a600"]},{token:"support.type",foreground:D["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:D["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:D["color-tv-blue-a600"]},{token:"keyword.equals",foreground:D["color-minty-green-400"]},{token:"keyword.operator",foreground:D["color-minty-green-400"]},{token:"keyword.other",foreground:D["color-minty-green-400"]},{token:"keyword",foreground:D["color-minty-green-400"]},{token:"variable.other",foreground:D["color-cold-gray-800"]},{token:"variable.other.property",foreground:D["color-cold-gray-800"]},{token:"paren",foreground:D["color-black"]},{token:"entity.name.function",foreground:D["color-tv-blue-900"]},{token:"entity.name.method",foreground:D["color-tv-blue-900"]},{token:"meta.function-call",foreground:D["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:D["color-grapes-purple-600"]},{token:"entity.name.module",foreground:D["color-tv-blue-a600"]},{token:"",background:D["color-white"]}],colors:{"editor.foreground":D["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":D["color-cold-gray-400"],"editorLineNumber.activeForeground":D["color-cold-gray-700"],"editorHoverWidget.background":D["color-white"],"editorHoverWidget.statusBarBackground":D["color-cold-gray-150"],"editorHoverWidget.foreground":D["color-cold-gray-900"],"editorWidget.background":D["color-white"],"editorWidget.foreground":D["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Mt(D["color-cold-gray-200"],.5),"editor.lineHighlightBackground":D["color-tv-blue-50"],"editor.lineHighlightBorder":D["color-tv-blue-50"],"editor.rangeHighlightBackground":D["color-tv-blue-a800"],"editorBracketMatch.background":D["color-cold-gray-150"],"editor.selectionBackground":D["color-tv-blue-100"],"editor.selectionHighlightBackground":D["color-tv-blue-50"],"editor.findMatchBackground":D["color-tan-orange-100"],"editor.findMatchHighlightBackground":D["color-tan-orange-100"],"editor.findMatchBorder":D["color-tan-orange-500"],"list.foreground":D["color-cold-gray-900"],"list.hoverForeground":D["color-cold-gray-900"],"list.activeSelectionBackground":D["color-tv-blue-500"],"list.hoverBackground":D["color-tv-blue-50"],"list.focusHighlightForeground":D["color-tv-blue-100"],"list.inactiveSelectionBackground":D["color-tv-blue-500"],"keybindingLabel.background":D["color-white"],"keybindingLabel.foreground":D["color-cold-gray-900"],"keybindingLabel.border":D["color-cold-gray-150"],"input.foreground":D["color-cold-gray-900"],"textLink.foreground":D["color-tv-blue-500"],"textLink.activeForeground":D["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":D["color-tan-orange-100"],"peekViewResult.lineForeground":D["color-cold-gray-900"],"editorMarkerNavigationWarning.background":D["color-banana-yellow-800"],"inputValidation.warningBackground":D["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Mt(D["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Mt(D["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Mt(D["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Mt(D["color-ripe-red-500"],.15),"editorInlayHint.background":D["color-cold-gray-150"],"editorInlayHint.foreground":D["color-cold-gray-550"],"editorError.foreground":D["color-ripe-red-500"],"editorWarning.foreground":D["color-tan-orange-500"]}},ln={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:D["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:D["color-white"]},{token:"string",foreground:D["color-iguana-green-700"]},{token:"constant.numeric",foreground:D["color-banana-yellow-900"]},{token:"constant.language",foreground:D["color-ripe-red-300"]},{token:"constant.other.color",foreground:D["color-ripe-red-300"]},{token:"constant.other",foreground:D["color-ripe-red-300"]},{token:"support.variable",foreground:D["color-ripe-red-300"]},{token:"support.function",foreground:D["color-tv-blue-300"]},{token:"support.method",foreground:D["color-tv-blue-300"]},{token:"support.type",foreground:D["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:D["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:D["color-minty-green-300"]},{token:"keyword.operator",foreground:D["color-minty-green-300"]},{token:"keyword.other",foreground:D["color-minty-green-300"]},{token:"keyword",foreground:D["color-minty-green-300"]},{token:"variable.other",foreground:D["color-cold-gray-200"]},{token:"variable.other.property",foreground:D["color-cold-gray-200"]},{token:"paren",foreground:D["color-white"]},{token:"entity.name.function",foreground:D["color-tv-blue-400"]},{token:"entity.name.method",foreground:D["color-tv-blue-400"]},{token:"meta.function-call",foreground:D["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:D["color-grapes-purple-300"]},{token:"entity.name.module",foreground:D["color-tv-blue-300"]},{token:"",background:D["color-cold-gray-900"]}],colors:{"editor.foreground":D["color-white"],"editor.background":D["color-cold-gray-900"],"editorLineNumber.foreground":D["color-cold-gray-500"],"editorLineNumber.activeForeground":D["color-cold-gray-300"],"editorWidget.background":D["color-cold-gray-850"],"editorHoverWidget.background":D["color-cold-gray-850"],"editorHoverWidget.foreground":D["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":D["color-cold-gray-900"],"editorWidget.foreground":D["color-cold-gray-300"],"editorGutter.background":D["color-cold-gray-900"],"editor.foldBackground":Mt(D["color-cold-gray-700"],.5),"editor.lineHighlightBackground":D["color-tv-blue-a900"],"editor.lineHighlightBorder":D["color-tv-blue-a900"],"editor.rangeHighlightBackground":D["color-tv-blue-a800"],"editorBracketMatch.background":D["color-cold-gray-750"],"editor.selectionBackground":D["color-tv-blue-a800"],"editor.selectionHighlightBackground":D["color-cold-gray-800"],"list.foreground":D["color-cold-gray-350"],"list.hoverForeground":D["color-cold-gray-350"],"list.activeSelectionBackground":D["color-tv-blue-500"],"list.hoverBackground":D["color-tv-blue-900"],"list.focusHighlightForeground":D["color-tv-blue-300"],"list.inactiveSelectionBackground":D["color-tv-blue-500"],"keybindingLabel.background":D["color-cold-gray-800"],"keybindingLabel.foreground":D["color-cold-gray-300"],"keybindingLabel.border":D["color-cold-gray-700"],"input.foreground":D["color-cold-gray-350"],"textLink.foreground":D["color-tv-blue-500"],"textLink.activeForeground":D["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":D["color-tan-orange-a800"],"peekViewResult.lineForeground":D["color-cold-gray-350"],"diffEditor.insertedTextBackground":Mt(D["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Mt(D["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Mt(D["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Mt(D["color-ripe-red-a400"],.15),"editorInlayHint.background":D["color-cold-gray-800"],"editorInlayHint.foreground":D["color-cold-gray-400"],"editorError.foreground":D["color-ripe-red-500"],"editorWarning.foreground":D["color-tan-orange-700"]}},Ad=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,qd=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,no={"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 Cd{constructor(n){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(a=[],o)=>{const u=new Map,c=o.indexOf("(");for(let m=c+1,h=c;m<o.length;m++)o[m]!==","&&o[m]!==")"||(h++,u.set(o.slice(h,m),h),h=m+1);return a.map(({name:m,displayType:h,desc:b})=>{const g=[],x=u.get(m),T=x+m.length;return g.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(h||""))),b&&g.push(Array.isArray(b)?b.join(this._formatter.lineBreak):b),{label:[x,T],documentation:{value:g.join(this._formatter.lineBreak)}}})}}),this._formatter=we,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(n)}getSignatureHelpValues(n,a){const o=this._getFuncItems(n);if(!(o!=null&&o.length))return null;const u=this._getSequentialSignatures(n,o),c=this._getActiveIndex(o,a);return{signatures:u,...c}}_getActiveIndex(n,a=[]){let o=0,u=-1;a.some(m=>!!m)||(u=a.length-1);const c=a.pop();if(c)for(const[m,h]of n.entries()){const{args:b}=h;if(b&&b.length){const g=b.findIndex(x=>x.name===c);if(g!=-1){u=g,o=m;break}}}return{activeParameter:u,activeSignature:o}}_getFuncItems(n){return gt.functions.get(n)||St.userFuncs.get(n)||St.methodFuncs.get(n)}_getSequentialSignatures(n,a){return a.map(o=>{const u=this._getSignatureLabel(n,o);return{label:u,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,u)}})}_getSignatureLabel(n,a,o=!1){const u=[n];return o&&u.push("<type>"),a.args&&(u.push("("),u.push(a.args.map(({name:c})=>c).join(", ")),u.push(")")),u.join("")}_getFormattedSignatureDocumentation(n){const{desc:a}=n,o=[];a&&o.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 o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${u} ${xe.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const Sd=new Cd(window.navigator.userAgent);class zd{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=no}getDocumentColors(n){const a=[];return n.forEach(o=>{const{range:u}=o;let{matches:c}=o;c=c||[];const m=c[0]||"";let h=null;this._isHexToken(m)?h=this._hexToColor(m):this._isRgbColor(m)?h=this._rgbToColor(m):this._colors[m]?h=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&c[1]&&c[6]&&(h=this._extractNewExpression(c[1],Number(c[6]))),h&&a.push({color:h,range:u})}),a}get _defultColorsRegStr(){return Object.keys(no).reduce((n,a)=>`${n}|${a}`,"")}get colorMatchesRegStr(){const n=`#[0-9a-fA-F]{6,8}|(\\b(color.rgb\\s*\\((\\s*\\d+\\s*,\\s*){2}(\\s*\\d+\\s*,{0,1}){1,2}\\s*\\)${this._defultColorsRegStr}))`;return`color.new\\s*\\(\\s*(${n})\\s*,\\s*(\\d+)\\s*\\)|${n}`}getDocumentColorPresentations(n,{color:a,range:o}){const u=n.getValueInRange(o);if(this._isHexToken(u)||this._colors[u])return[{label:this._colorRgbRepresentation(a)},{label:this._colorHexRepresentation(a)}];if(this._isColorExpression(u)||this._isRgbColor(u)){const c=this._isColorExpression(u)?this._colorNewRepresentation(a):this._colorRgbRepresentation(a);if(!c)return[];const m=this._colorHexRepresentation(a);return[{label:c,textEdit:{text:c,range:o}},{label:m,textEdit:{text:m,range:o}}]}return null}_hexFromNumber(n){const a=this._denormalize(n).toString(16);return a.length===1?`0${a}`:a}_normalize(n){return n/255}_denormalize(n){return Math.round(255*n)}_normalizeAlpha(n){return(100-n)/100}_denormalizeAlpha(n){return 100-Math.round(100*n)}_extractNewExpression(n,a){let o=null;return this._isHexToken(n)?o=this._hexToColor(n):this._isRgbColor(n)?o=this._rgbToColor(n):this._colors[n]&&(o=this._hexToColor(this._colors[n])),o&&!Number.isNaN(a)?{...o,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(n){const a=this._hexFromNumber(n.red),o=this._hexFromNumber(n.green),u=this._hexFromNumber(n.blue),c=this._hexFromNumber(n.alpha);return`#${a}${o}${u}${n.alpha===1?"":c}`}_colorRgbRepresentation(n){const a=this._denormalize(n.red),o=this._denormalize(n.green),u=this._denormalize(n.blue),c=this._denormalizeAlpha(n.alpha),m=[a,o,u];return c>0&&m.push(c),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(n){const a={...n,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(n.alpha)})`}_hexToColor(n){const a=(n=this._isHexToken(n)?n.slice(1):n).length===3||n.length===4,o=a?`${n.slice(0,1)}${n.slice(0,1)}`:n.slice(0,2),u=a?`${n.slice(1,2)}${n.slice(1,2)}`:n.slice(2,4),c=a?`${n.slice(2,3)}${n.slice(2,3)}`:n.slice(4,6),m=(a?`${n.slice(3,4)}${n.slice(3,4)}`:n.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(u,16)),blue:this._normalize(parseInt(c,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(n){const a=n.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(a[0])),u=this._normalize(Number(a[1])),c=this._normalize(Number(a[2])),m=this._normalizeAlpha(Number(a[3]))||1;return isNaN(o)||isNaN(u)||isNaN(c)?null:{red:o,green:u,blue:c,alpha:m}}_isHexToken(n){return n.charAt(0)==="#"}_isRgbColor(n){return n.startsWith("color.rgb")}_isColorExpression(n){return n.startsWith("color.new")}}const cn=new zd;function Nd(s,n,a){var L;const o={startLineNumber:n.lineNumber,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column},u=s.getValueInRange(o);if(/^\/\/\s*@/.test(u))return{suggestions:Ct.annotationSuggestions};if(a.triggerCharacter==="@")return{suggestions:[]};const c=u.match(/([\w.]+)$/)||[];if(!c.length)return{suggestions:[]};const m=(L=c[0])==null?void 0:L.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),h=m?m[1]?m[1]:m[2]?m[2]:void 0:void 0,b=s.getWordUntilPosition(n),g=Nr.parseCurrentInputFunc(u),x={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:b.startColumn,endColumn:b.endColumn},T=s.getValueInRange({...x,startColumn:b.endColumn,endColumn:b.endColumn+1});Ct.nextIsBracket=T==="(";let R=io(Ct.getSuggestions(h)||[],x);if(c[0]==="."&&(R=[]),g&&!h&&!/=\s*\w+$/.test(u)){const j=io(Ct.getArgSuggestions(g.funcName)||[],x);R=R.concat(j)}return{suggestions:R||[]}}function Od(s){if(s.kind!==1)return s;const{originInsertText:n}=s;return Ct.nextIsBracket?s.insertText=n:s.insertText=n+Ct.bracketsPostfix,s}function Pd(s,n){const a=Nr.parseLineContentFuncVar(n.column,n.lineNumber,s,n);if(a&&a.docValue.length){const o=wd(a.docValue,a.index,a.isBuildIn);if(o)return{contents:[{value:o}]}}return{contents:[]}}function Ed(s,n){var T,R;const a={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:1,endColumn:n.column},o=s.getValueInRange(a),u=s.findMatches(String(Ad),a,!0,!1,null,!0),c=s.findMatches(String(qd),a,!0,!1,null,!0),m=(T=u.pop())==null?void 0:T.matches,h=(R=c.pop())==null?void 0:R.matches;let b=!1;u.length%2===0?m&&m[0]==='"'&&(b=!0):m&&!m[0]&&(b=!0);let g=!1;c.length%2===0?h&&h[0]==="'"&&(g=!0):h&&!h[0]&&(g=!0);const x=Nr.parseCurrentInputFuncAndArg(o,g,b);if(x){const{funcName:L,args:j}=x,E=Sd.getSignatureHelpValues(L,j);if(E)return{value:E,dispose:()=>{console.log("dispose")}}}return null}function Rd(s){let n=s.findMatches(cn.colorMatchesRegStr,!0,!0,!1,null,!0);return n=n.filter(o=>{const u=s.getValueInRange({...o.range,startColumn:0});return u.indexOf("//")===-1||u.indexOf("//")>o.range.endColumn}),cn.getDocumentColors(n)}function Ld(s,n){return cn.getDocumentColorPresentations(s,n)||[]}function Md(s,n){const a=s.getModel(),o=Nr.parseLineContentFuncVar(n.startColumn+1,n.startLineNumber,a);if(!o||o.isBuildIn||!o.docValue||!o.docValue[0].pos)return o!=null&&o.isBuildIn?o:void 0;const{lineNumber:u,column:c}=o.docValue[0].pos,m={startLineNumber:u,endLineNumber:u,startColumn:c,endColumn:c};s.revealRangeInCenterIfOutsideViewport(m),s.setSelection(m)}function Fd(s,n){return Nr.parseLineContentFuncVar(n.column,n.lineNumber,s,n)?{uri:s.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}:null}function io(s,n){return s.map(a=>(a.range=n,a))}var ua={},da=au;if(process.env.NODE_ENV==="production")ua.createRoot=da.createRoot,ua.hydrateRoot=da.hydrateRoot;else{var Xa=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ua.createRoot=function(s,n){Xa.usingClientEntryPoint=!0;try{return da.createRoot(s,n)}finally{Xa.usingClientEntryPoint=!1}},ua.hydrateRoot=function(s,n,a){Xa.usingClientEntryPoint=!0;try{return da.hydrateRoot(s,n,a)}finally{Xa.usingClientEntryPoint=!1}}}var Ve;(function(s){s.added="added",s.removed="removed",s.modified="modified"})(Ve||(Ve={}));const jd=(s,n)=>{const{close:a,retracement:o}=s,[u,c]=M.useState("modified");return M.useImperativeHandle(n,()=>({updateType(m){c(m)}})),P.jsxs("div",{className:`content-popup content-${u}-popup`,children:[P.jsx("div",{className:`triangle-popup triangle-${u}-popup`}),P.jsxs("div",{className:`header-popup header-${u}-popup`,children:[P.jsx("div",{className:"title-popup",children:"Local working changes"}),P.jsx("div",{className:"actions-popup",children:P.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:P.jsx("span",{className:"icon-popup",role:"img",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:P.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),P.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},Bd=M.forwardRef(jd);class Ud{constructor(n,a,o=!0){Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_top",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._id=n,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=o?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",a==null||a.onDidScrollChange(this.scrollChangeHandler.bind(this)),ua.createRoot(this._domNode).render(P.jsx(Bd,{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(n,a,o){var u;this._top=a,(u=this._content)==null||u.updateType(o),this._domNode.style.top=`${n}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(n){const a=n.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function sr(){}sr.prototype={diff:function(n,a){var o,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=u.callback;typeof u=="function"&&(c=u,u={}),this.options=u;var m=this;function h(A){return c?(setTimeout(function(){c(void 0,A)},0),!0):A}n=this.castInput(n),a=this.castInput(a),n=this.removeEmpty(this.tokenize(n)),a=this.removeEmpty(this.tokenize(a));var b=a.length,g=n.length,x=1,T=b+g;u.maxEditLength&&(T=Math.min(T,u.maxEditLength));var R=(o=u.timeout)!==null&&o!==void 0?o:1/0,L=Date.now()+R,j=[{oldPos:-1,lastComponent:void 0}],E=this.extractCommon(j[0],a,n,0);if(j[0].oldPos+1>=g&&E+1>=b)return h([{value:this.join(a),count:a.length}]);var V=-1/0,J=1/0;function G(){for(var A=Math.max(V,-x);A<=Math.min(J,x);A+=2){var k=void 0,B=j[A-1],H=j[A+1];B&&(j[A-1]=void 0);var le=!1;if(H){var ie=H.oldPos-A;le=H&&0<=ie&&ie<b}var ce=B&&B.oldPos+1<g;if(!le&&!ce){j[A]=void 0;continue}if(!ce||le&&B.oldPos+1<H.oldPos?k=m.addToPath(H,!0,void 0,0):k=m.addToPath(B,void 0,!0,1),E=m.extractCommon(k,a,n,A),k.oldPos+1>=g&&E+1>=b)return h(Wd(m,k.lastComponent,a,n,m.useLongestToken));j[A]=k,k.oldPos+1>=g&&(J=Math.min(J,A-1)),E+1>=b&&(V=Math.max(V,A+1))}x++}if(c)(function A(){setTimeout(function(){if(x>T||Date.now()>L)return c();G()||A()},0)})();else for(;x<=T&&Date.now()<=L;){var F=G();if(F)return F}},addToPath:function(n,a,o,u){var c=n.lastComponent;return c&&c.added===a&&c.removed===o?{oldPos:n.oldPos+u,lastComponent:{count:c.count+1,added:a,removed:o,previousComponent:c.previousComponent}}:{oldPos:n.oldPos+u,lastComponent:{count:1,added:a,removed:o,previousComponent:c}}},extractCommon:function(n,a,o,u){for(var c=a.length,m=o.length,h=n.oldPos,b=h-u,g=0;b+1<c&&h+1<m&&this.equals(a[b+1],o[h+1]);)b++,h++,g++;return g&&(n.lastComponent={count:g,previousComponent:n.lastComponent}),n.oldPos=h,b},equals:function(n,a){return this.options.comparator?this.options.comparator(n,a):n===a||this.options.ignoreCase&&n.toLowerCase()===a.toLowerCase()},removeEmpty:function(n){for(var a=[],o=0;o<n.length;o++)n[o]&&a.push(n[o]);return a},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function Wd(s,n,a,o,u){for(var c=[],m;n;)c.push(n),m=n.previousComponent,delete n.previousComponent,n=m;c.reverse();for(var h=0,b=c.length,g=0,x=0;h<b;h++){var T=c[h];if(T.removed){if(T.value=s.join(o.slice(x,x+T.count)),x+=T.count,h&&c[h-1].added){var L=c[h-1];c[h-1]=c[h],c[h]=L}}else{if(!T.added&&u){var R=a.slice(g,g+T.count);R=R.map(function(E,V){var J=o[x+V];return J.length>E.length?J:E}),T.value=s.join(R)}else T.value=s.join(a.slice(g,g+T.count));g+=T.count,T.added||(x+=T.count)}}var j=c[b-1];return b>1&&typeof j.value=="string"&&(j.added||j.removed)&&s.equals("",j.value)&&(c[b-2].value+=j.value,c.pop()),c}var oo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,lo=/\S/,co=new sr;co.equals=function(s,n){return this.options.ignoreCase&&(s=s.toLowerCase(),n=n.toLowerCase()),s===n||this.options.ignoreWhitespace&&!lo.test(s)&&!lo.test(n)},co.tokenize=function(s){for(var n=s.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<n.length-1;a++)!n[a+1]&&n[a+2]&&oo.test(n[a])&&oo.test(n[a+2])&&(n[a]+=n[a+2],n.splice(a+1,2),a--);return n};var un=new sr;un.tokenize=function(s){this.options.stripTrailingCr&&(s=s.replace(/\r\n/g,`
134
- `));var n=[],a=s.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var o=0;o<a.length;o++){var u=a[o];o%2&&!this.options.newlineIsToken?n[n.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),n.push(u))}return n};function Hd(s,n,a){return un.diff(s,n,a)}var $d=new sr;$d.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var Xd=new sr;Xd.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Ga(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ga=function(n){return typeof n}:Ga=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ga(s)}var Gd=Object.prototype.toString,pa=new sr;pa.useLongestToken=!0,pa.tokenize=un.tokenize,pa.castInput=function(s){var n=this.options,a=n.undefinedReplacement,o=n.stringifyReplacer,u=o===void 0?function(c,m){return typeof m>"u"?a:m}:o;return typeof s=="string"?s:JSON.stringify(dn(s,null,null,u),u," ")},pa.equals=function(s,n){return sr.prototype.equals.call(pa,s.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function dn(s,n,a,o,u){n=n||[],a=a||[],o&&(s=o(u,s));var c;for(c=0;c<n.length;c+=1)if(n[c]===s)return a[c];var m;if(Gd.call(s)==="[object Array]"){for(n.push(s),m=new Array(s.length),a.push(m),c=0;c<s.length;c+=1)m[c]=dn(s[c],n,a,o,u);return n.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Ga(s)==="object"&&s!==null){n.push(s),m={},a.push(m);var h=[],b;for(b in s)s.hasOwnProperty(b)&&h.push(b);for(h.sort(),c=0;c<h.length;c+=1)b=h[c],m[b]=dn(s[b],n,a,o,b);n.pop(),a.pop()}else m=s;return m}var pn=new sr;pn.tokenize=function(s){return s.slice()},pn.join=pn.removeEmpty=function(s){return s};class Vd{constructor(n,a,o=""){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalModel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldDecorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffEditor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffPopupWidget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_didChangeListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onMouseDownListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=a,this._originalModel=this._monaco.editor.createModel(o,Re),this._oldDecorations=[],this._init(),this._eventListening()}_init(){var n;this._changeEvent(),this._didChangeListener=(n=this._editor.getModel())==null?void 0:n.onDidChangeContent(()=>this._changeEvent())}update(n){var a,o;if(this._originalModel=this._monaco.editor.createModel(n,Re),n!==((a=this._editor.getModel())==null?void 0:a.getValue())){this._changeEvent();return}(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var n,a,o,u;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(n=this._didChangeListener)==null||n.dispose(),(a=this._onMouseDownListener)==null||a.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(u=this._diffEditor)==null||u.dispose(),this._diffEditor=void 0}_changesHandle(n){let a=0,o;const u=[];let c=0;for(const m of n){const{added:h,removed:b,count:g=1,value:x}=m;h?o&&o.removed?(a=this._changeHandle(u,a,c,g,Ve.modified),c=0,o=void 0):(o&&o.added&&(a=this._changeHandle(u,a,c,o.count||1,Ve.added),c=0),o=m):b?o&&o.added?(a=this._changeHandle(u,a,c,o.count||1,Ve.modified),c=0,o=void 0):(o&&o.removed&&this._addDecorationList(u,a,Ve.removed),o=m):/^\n+$/.test(x)?o&&(o.added||o.removed)?c=g:a+=g:(o&&o.added?(a=this._changeHandle(u,a,c,o.count||1,Ve.added),c=0,o=void 0):o&&o.removed&&(this._addDecorationList(u,a,Ve.removed),o=void 0),a+=g)}return o&&o.added?a=this._changeHandle(u,a,c,o.count||1,Ve.added):o&&o.removed&&this._addDecorationList(u,a,Ve.removed),u}_changeHandle(n,a,o,u,c){for(let m=1;m<=u;m++)this._addDecorationList(n,a+m,c);return a+=u+o,a}_addDecorationList(n,a,o){n.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var u,c;const n=Hd(this._originalModel.getValue(),((u=this._editor.getModel())==null?void 0:u.getValue())||""),a=this._changesHandle(n),o=((c=this._editor.getModel())==null?void 0:c.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=o}_eventListening(){const n=new Ud("diff.popup.widget",this._editor);this._editor.addOverlayWidget(n),this._onMouseDownListener=this._editor.onMouseDown(a=>this._onMouseDownHandle(a)),this._diffPopupWidget=n}_onMouseDownHandle(n){var m,h,b,g,x,T;const a=(m=n.target.element)==null?void 0:m.classList,o=a==null?void 0:a.contains(`line-${Ve.added}`),u=a==null?void 0:a.contains(`line-${Ve.modified}`),c=a==null?void 0:a.contains(`line-${Ve.removed}`);if(o||u||c){const R=((b=(h=n==null?void 0:n.target)==null?void 0:h.position)==null?void 0:b.lineNumber)||0,L=((g=this._editor)==null?void 0:g.getTopForLineNumber(R+1))||0,j=((x=this._editor)==null?void 0:x.getScrollTop())||0,E=o?Ve.added:u?Ve.modified:Ve.removed;(T=this._diffPopupWidget)==null||T.show(L-j,L,E),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(R+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class Yd{constructor(n,a,o){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_decorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_changPositionListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScript",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onActionTrigger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onLinkOpen",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=a,this._onActionTrigger=o,this._init()}addLinkOpenFunc(n){this._onLinkOpen=n}updateActionTrigger(n){this._onActionTrigger=n}setModelMarkers(n){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",n)}addDiffDecorations(){this._decorations||(this._decorations=new Vd(this._editor,this._monaco,this._originalScript))}removeDiffDecorations(){var n;(n=this._decorations)==null||n.dispose(),this._decorations=void 0}setValue(n){this._editor.setValue(n)}setPosition(n){var a,o,u;(a=this._editor)==null||a.setPosition(n),(o=this._editor)==null||o.revealPositionInCenter(n),(u=this._editor)==null||u.focus()}setOriginalScript(n){var a;this._originalScript=n,(a=this._decorations)==null||a.update(n)}getEditorLayout(){var o;const n=this._editor.getContentHeight(),a=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:n,lineCount:a}}setEditorLayout(n){var a,o;(o=this._editor)==null||o.layout({height:n,width:(a=this._editor)==null?void 0:a.getContainerDomNode().clientWidth})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition()}_setCursorPosition(){const n=localStorage.getItem(an);this._editor.setPosition(n?JSON.parse(n):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Re}),this._monaco.languages.registerCompletionItemProvider(Re,{triggerCharacters:[".","@"],provideCompletionItems:Nd,resolveCompletionItem:Od}),this._monaco.languages.registerHoverProvider(Re,{provideHover:Pd}),this._monaco.languages.registerSignatureHelpProvider(Re,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:Ed}),this._monaco.languages.registerColorProvider(Re,{provideColorPresentations:Ld,provideDocumentColors:Rd}),this._monaco.editor.registerEditorOpener({openCodeEditor:(n,a,o)=>{const u=Md(n,o);if(u){const{index:c,docValue:m}=u,{title:h,name:b}=m[c];let g="";switch(h){case xe.keywords:g="kw";break;case xe.functions:g="fun";break;case xe.variables:g="var";break;case xe.types:g="type";break;case xe.constants:g="const";break}this._onLinkOpen&&this._onLinkOpen(`${g}_${b}`,c)}return!0}}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&this._onLinkOpen(n.fragment),!0)}),this._monaco.languages.registerDefinitionProvider(Re,{provideDefinition:Fd})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",ln),this._monaco.editor.defineTheme("vs",on),this._monaco.languages.setMonarchTokensProvider(Re,sn),this._monaco.languages.setLanguageConfiguration(Re,nn)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(n,a)=>{var o;if(Ct.nextIsBracket){const u=this._editor.getPosition();u&&this._editor.setPosition(Object.assign(u,{column:u.column+1}))}(o=this._editor.getAction(a))==null||o.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(C.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:"寻找/替换",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(C.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:"切换控制台",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"9_modification-c",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(C.Actions.TriggerConsole)}})}openFind(){this._editor.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(n){this._changPositionListener&&this._changPositionListener.dispose();const a=localStorage.getItem(an);n&&n(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(an,JSON.stringify(o.position)),n&&n(o.position)})}}/**
133
+ ${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${u} ${xe.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const Sd=new Cd(window.navigator.userAgent);class zd{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=no}getDocumentColors(n){const a=[];return n.forEach(o=>{const{range:u}=o;let{matches:c}=o;c=c||[];const m=c[0]||"";let h=null;this._isHexToken(m)?h=this._hexToColor(m):this._isRgbColor(m)?h=this._rgbToColor(m):this._colors[m]?h=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&c[1]&&c[6]&&(h=this._extractNewExpression(c[1],Number(c[6]))),h&&a.push({color:h,range:u})}),a}get _defultColorsRegStr(){return Object.keys(no).reduce((n,a)=>`${n}|${a}`,"")}get colorMatchesRegStr(){const n=`#[0-9a-fA-F]{6,8}|(\\b(color.rgb\\s*\\((\\s*\\d+\\s*,\\s*){2}(\\s*\\d+\\s*,{0,1}){1,2}\\s*\\)${this._defultColorsRegStr}))`;return`color.new\\s*\\(\\s*(${n})\\s*,\\s*(\\d+)\\s*\\)|${n}`}getDocumentColorPresentations(n,{color:a,range:o}){const u=n.getValueInRange(o);if(this._isHexToken(u)||this._colors[u])return[{label:this._colorRgbRepresentation(a)},{label:this._colorHexRepresentation(a)}];if(this._isColorExpression(u)||this._isRgbColor(u)){const c=this._isColorExpression(u)?this._colorNewRepresentation(a):this._colorRgbRepresentation(a);if(!c)return[];const m=this._colorHexRepresentation(a);return[{label:c,textEdit:{text:c,range:o}},{label:m,textEdit:{text:m,range:o}}]}return null}_hexFromNumber(n){const a=this._denormalize(n).toString(16);return a.length===1?`0${a}`:a}_normalize(n){return n/255}_denormalize(n){return Math.round(255*n)}_normalizeAlpha(n){return(100-n)/100}_denormalizeAlpha(n){return 100-Math.round(100*n)}_extractNewExpression(n,a){let o=null;return this._isHexToken(n)?o=this._hexToColor(n):this._isRgbColor(n)?o=this._rgbToColor(n):this._colors[n]&&(o=this._hexToColor(this._colors[n])),o&&!Number.isNaN(a)?{...o,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(n){const a=this._hexFromNumber(n.red),o=this._hexFromNumber(n.green),u=this._hexFromNumber(n.blue),c=this._hexFromNumber(n.alpha);return`#${a}${o}${u}${n.alpha===1?"":c}`}_colorRgbRepresentation(n){const a=this._denormalize(n.red),o=this._denormalize(n.green),u=this._denormalize(n.blue),c=this._denormalizeAlpha(n.alpha),m=[a,o,u];return c>0&&m.push(c),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(n){const a={...n,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(n.alpha)})`}_hexToColor(n){const a=(n=this._isHexToken(n)?n.slice(1):n).length===3||n.length===4,o=a?`${n.slice(0,1)}${n.slice(0,1)}`:n.slice(0,2),u=a?`${n.slice(1,2)}${n.slice(1,2)}`:n.slice(2,4),c=a?`${n.slice(2,3)}${n.slice(2,3)}`:n.slice(4,6),m=(a?`${n.slice(3,4)}${n.slice(3,4)}`:n.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(u,16)),blue:this._normalize(parseInt(c,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(n){const a=n.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(a[0])),u=this._normalize(Number(a[1])),c=this._normalize(Number(a[2])),m=this._normalizeAlpha(Number(a[3]))||1;return isNaN(o)||isNaN(u)||isNaN(c)?null:{red:o,green:u,blue:c,alpha:m}}_isHexToken(n){return n.charAt(0)==="#"}_isRgbColor(n){return n.startsWith("color.rgb")}_isColorExpression(n){return n.startsWith("color.new")}}const cn=new zd;function Nd(s,n,a){var L;const o={startLineNumber:n.lineNumber,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column},u=s.getValueInRange(o);if(/^\/\/\s*@/.test(u))return{suggestions:St.annotationSuggestions};if(a.triggerCharacter==="@")return{suggestions:[]};const c=u.match(/([\w.]+)$/)||[];if(!c.length)return{suggestions:[]};const m=(L=c[0])==null?void 0:L.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),h=m?m[1]?m[1]:m[2]?m[2]:void 0:void 0,b=s.getWordUntilPosition(n),g=Nr.parseCurrentInputFunc(u),x={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:b.startColumn,endColumn:b.endColumn},T=s.getValueInRange({...x,startColumn:b.endColumn,endColumn:b.endColumn+1});St.nextIsBracket=T==="(";let R=io(St.getSuggestions(h)||[],x);if(c[0]==="."&&(R=[]),g&&!h&&!/=\s*\w+$/.test(u)){const j=io(St.getArgSuggestions(g.funcName)||[],x);R=R.concat(j)}return{suggestions:R||[]}}function Od(s){if(s.kind!==1)return s;const{originInsertText:n}=s;return St.nextIsBracket?s.insertText=n:s.insertText=n+St.bracketsPostfix,s}function Pd(s,n){const a=Nr.parseLineContentFuncVar(n.column,n.lineNumber,s,n);if(a&&a.docValue.length){const o=wd(a.docValue,a.index,a.isBuildIn);if(o)return{contents:[{value:o}]}}return{contents:[]}}function Ed(s,n){var T,R;const a={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:1,endColumn:n.column},o=s.getValueInRange(a),u=s.findMatches(String(Ad),a,!0,!1,null,!0),c=s.findMatches(String(qd),a,!0,!1,null,!0),m=(T=u.pop())==null?void 0:T.matches,h=(R=c.pop())==null?void 0:R.matches;let b=!1;u.length%2===0?m&&m[0]==='"'&&(b=!0):m&&!m[0]&&(b=!0);let g=!1;c.length%2===0?h&&h[0]==="'"&&(g=!0):h&&!h[0]&&(g=!0);const x=Nr.parseCurrentInputFuncAndArg(o,g,b);if(x){const{funcName:L,args:j}=x,E=Sd.getSignatureHelpValues(L,j);if(E)return{value:E,dispose:()=>{console.log("dispose")}}}return null}function Rd(s){let n=s.findMatches(cn.colorMatchesRegStr,!0,!0,!1,null,!0);return n=n.filter(o=>{const u=s.getValueInRange({...o.range,startColumn:0});return u.indexOf("//")===-1||u.indexOf("//")>o.range.endColumn}),cn.getDocumentColors(n)}function Ld(s,n){return cn.getDocumentColorPresentations(s,n)||[]}function Md(s,n){const a=s.getModel(),o=Nr.parseLineContentFuncVar(n.startColumn+1,n.startLineNumber,a);if(!o||o.isBuildIn||!o.docValue||!o.docValue[0].pos)return o!=null&&o.isBuildIn?o:void 0;const{lineNumber:u,column:c}=o.docValue[0].pos,m={startLineNumber:u,endLineNumber:u,startColumn:c,endColumn:c};s.revealRangeInCenterIfOutsideViewport(m),s.setSelection(m)}function Fd(s,n){return Nr.parseLineContentFuncVar(n.column,n.lineNumber,s,n)?{uri:s.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}:null}function io(s,n){return s.map(a=>(a.range=n,a))}var ua={},da=au;if(process.env.NODE_ENV==="production")ua.createRoot=da.createRoot,ua.hydrateRoot=da.hydrateRoot;else{var Xa=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ua.createRoot=function(s,n){Xa.usingClientEntryPoint=!0;try{return da.createRoot(s,n)}finally{Xa.usingClientEntryPoint=!1}},ua.hydrateRoot=function(s,n,a){Xa.usingClientEntryPoint=!0;try{return da.hydrateRoot(s,n,a)}finally{Xa.usingClientEntryPoint=!1}}}var Ve;(function(s){s.added="added",s.removed="removed",s.modified="modified"})(Ve||(Ve={}));const jd=(s,n)=>{const{close:a,retracement:o}=s,[u,c]=M.useState("modified");return M.useImperativeHandle(n,()=>({updateType(m){c(m)}})),P.jsxs("div",{className:`content-popup content-${u}-popup`,children:[P.jsx("div",{className:`triangle-popup triangle-${u}-popup`}),P.jsxs("div",{className:`header-popup header-${u}-popup`,children:[P.jsx("div",{className:"title-popup",children:"Local working changes"}),P.jsx("div",{className:"actions-popup",children:P.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:P.jsx("span",{className:"icon-popup",role:"img",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:P.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),P.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},Bd=M.forwardRef(jd);class Ud{constructor(n,a,o=!0){Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_top",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._id=n,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=o?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",a==null||a.onDidScrollChange(this.scrollChangeHandler.bind(this)),ua.createRoot(this._domNode).render(P.jsx(Bd,{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(n,a,o){var u;this._top=a,(u=this._content)==null||u.updateType(o),this._domNode.style.top=`${n}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(n){const a=n.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function sr(){}sr.prototype={diff:function(n,a){var o,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=u.callback;typeof u=="function"&&(c=u,u={}),this.options=u;var m=this;function h(A){return c?(setTimeout(function(){c(void 0,A)},0),!0):A}n=this.castInput(n),a=this.castInput(a),n=this.removeEmpty(this.tokenize(n)),a=this.removeEmpty(this.tokenize(a));var b=a.length,g=n.length,x=1,T=b+g;u.maxEditLength&&(T=Math.min(T,u.maxEditLength));var R=(o=u.timeout)!==null&&o!==void 0?o:1/0,L=Date.now()+R,j=[{oldPos:-1,lastComponent:void 0}],E=this.extractCommon(j[0],a,n,0);if(j[0].oldPos+1>=g&&E+1>=b)return h([{value:this.join(a),count:a.length}]);var V=-1/0,Z=1/0;function G(){for(var A=Math.max(V,-x);A<=Math.min(Z,x);A+=2){var k=void 0,B=j[A-1],H=j[A+1];B&&(j[A-1]=void 0);var le=!1;if(H){var ie=H.oldPos-A;le=H&&0<=ie&&ie<b}var ce=B&&B.oldPos+1<g;if(!le&&!ce){j[A]=void 0;continue}if(!ce||le&&B.oldPos+1<H.oldPos?k=m.addToPath(H,!0,void 0,0):k=m.addToPath(B,void 0,!0,1),E=m.extractCommon(k,a,n,A),k.oldPos+1>=g&&E+1>=b)return h(Wd(m,k.lastComponent,a,n,m.useLongestToken));j[A]=k,k.oldPos+1>=g&&(Z=Math.min(Z,A-1)),E+1>=b&&(V=Math.max(V,A+1))}x++}if(c)(function A(){setTimeout(function(){if(x>T||Date.now()>L)return c();G()||A()},0)})();else for(;x<=T&&Date.now()<=L;){var F=G();if(F)return F}},addToPath:function(n,a,o,u){var c=n.lastComponent;return c&&c.added===a&&c.removed===o?{oldPos:n.oldPos+u,lastComponent:{count:c.count+1,added:a,removed:o,previousComponent:c.previousComponent}}:{oldPos:n.oldPos+u,lastComponent:{count:1,added:a,removed:o,previousComponent:c}}},extractCommon:function(n,a,o,u){for(var c=a.length,m=o.length,h=n.oldPos,b=h-u,g=0;b+1<c&&h+1<m&&this.equals(a[b+1],o[h+1]);)b++,h++,g++;return g&&(n.lastComponent={count:g,previousComponent:n.lastComponent}),n.oldPos=h,b},equals:function(n,a){return this.options.comparator?this.options.comparator(n,a):n===a||this.options.ignoreCase&&n.toLowerCase()===a.toLowerCase()},removeEmpty:function(n){for(var a=[],o=0;o<n.length;o++)n[o]&&a.push(n[o]);return a},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function Wd(s,n,a,o,u){for(var c=[],m;n;)c.push(n),m=n.previousComponent,delete n.previousComponent,n=m;c.reverse();for(var h=0,b=c.length,g=0,x=0;h<b;h++){var T=c[h];if(T.removed){if(T.value=s.join(o.slice(x,x+T.count)),x+=T.count,h&&c[h-1].added){var L=c[h-1];c[h-1]=c[h],c[h]=L}}else{if(!T.added&&u){var R=a.slice(g,g+T.count);R=R.map(function(E,V){var Z=o[x+V];return Z.length>E.length?Z:E}),T.value=s.join(R)}else T.value=s.join(a.slice(g,g+T.count));g+=T.count,T.added||(x+=T.count)}}var j=c[b-1];return b>1&&typeof j.value=="string"&&(j.added||j.removed)&&s.equals("",j.value)&&(c[b-2].value+=j.value,c.pop()),c}var oo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,lo=/\S/,co=new sr;co.equals=function(s,n){return this.options.ignoreCase&&(s=s.toLowerCase(),n=n.toLowerCase()),s===n||this.options.ignoreWhitespace&&!lo.test(s)&&!lo.test(n)},co.tokenize=function(s){for(var n=s.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<n.length-1;a++)!n[a+1]&&n[a+2]&&oo.test(n[a])&&oo.test(n[a+2])&&(n[a]+=n[a+2],n.splice(a+1,2),a--);return n};var un=new sr;un.tokenize=function(s){this.options.stripTrailingCr&&(s=s.replace(/\r\n/g,`
134
+ `));var n=[],a=s.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var o=0;o<a.length;o++){var u=a[o];o%2&&!this.options.newlineIsToken?n[n.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),n.push(u))}return n};function Hd(s,n,a){return un.diff(s,n,a)}var $d=new sr;$d.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var Xd=new sr;Xd.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Ga(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ga=function(n){return typeof n}:Ga=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ga(s)}var Gd=Object.prototype.toString,pa=new sr;pa.useLongestToken=!0,pa.tokenize=un.tokenize,pa.castInput=function(s){var n=this.options,a=n.undefinedReplacement,o=n.stringifyReplacer,u=o===void 0?function(c,m){return typeof m>"u"?a:m}:o;return typeof s=="string"?s:JSON.stringify(dn(s,null,null,u),u," ")},pa.equals=function(s,n){return sr.prototype.equals.call(pa,s.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function dn(s,n,a,o,u){n=n||[],a=a||[],o&&(s=o(u,s));var c;for(c=0;c<n.length;c+=1)if(n[c]===s)return a[c];var m;if(Gd.call(s)==="[object Array]"){for(n.push(s),m=new Array(s.length),a.push(m),c=0;c<s.length;c+=1)m[c]=dn(s[c],n,a,o,u);return n.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Ga(s)==="object"&&s!==null){n.push(s),m={},a.push(m);var h=[],b;for(b in s)s.hasOwnProperty(b)&&h.push(b);for(h.sort(),c=0;c<h.length;c+=1)b=h[c],m[b]=dn(s[b],n,a,o,b);n.pop(),a.pop()}else m=s;return m}var pn=new sr;pn.tokenize=function(s){return s.slice()},pn.join=pn.removeEmpty=function(s){return s};class Vd{constructor(n,a,o=""){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalModel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldDecorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffEditor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffPopupWidget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_didChangeListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onMouseDownListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=a,this._originalModel=this._monaco.editor.createModel(o,Re),this._oldDecorations=[],this._init(),this._eventListening()}_init(){var n;this._changeEvent(),this._didChangeListener=(n=this._editor.getModel())==null?void 0:n.onDidChangeContent(()=>this._changeEvent())}update(n){var a,o;if(this._originalModel=this._monaco.editor.createModel(n,Re),n!==((a=this._editor.getModel())==null?void 0:a.getValue())){this._changeEvent();return}(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var n,a,o,u;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(n=this._didChangeListener)==null||n.dispose(),(a=this._onMouseDownListener)==null||a.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(u=this._diffEditor)==null||u.dispose(),this._diffEditor=void 0}_changesHandle(n){let a=0,o;const u=[];let c=0;for(const m of n){const{added:h,removed:b,count:g=1,value:x}=m;h?o&&o.removed?(a=this._changeHandle(u,a,c,g,Ve.modified),c=0,o=void 0):(o&&o.added&&(a=this._changeHandle(u,a,c,o.count||1,Ve.added),c=0),o=m):b?o&&o.added?(a=this._changeHandle(u,a,c,o.count||1,Ve.modified),c=0,o=void 0):(o&&o.removed&&this._addDecorationList(u,a,Ve.removed),o=m):/^\n+$/.test(x)?o&&(o.added||o.removed)?c=g:a+=g:(o&&o.added?(a=this._changeHandle(u,a,c,o.count||1,Ve.added),c=0,o=void 0):o&&o.removed&&(this._addDecorationList(u,a,Ve.removed),o=void 0),a+=g)}return o&&o.added?a=this._changeHandle(u,a,c,o.count||1,Ve.added):o&&o.removed&&this._addDecorationList(u,a,Ve.removed),u}_changeHandle(n,a,o,u,c){for(let m=1;m<=u;m++)this._addDecorationList(n,a+m,c);return a+=u+o,a}_addDecorationList(n,a,o){n.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var u,c;const n=Hd(this._originalModel.getValue(),((u=this._editor.getModel())==null?void 0:u.getValue())||""),a=this._changesHandle(n),o=((c=this._editor.getModel())==null?void 0:c.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=o}_eventListening(){const n=new Ud("diff.popup.widget",this._editor);this._editor.addOverlayWidget(n),this._onMouseDownListener=this._editor.onMouseDown(a=>this._onMouseDownHandle(a)),this._diffPopupWidget=n}_onMouseDownHandle(n){var m,h,b,g,x,T;const a=(m=n.target.element)==null?void 0:m.classList,o=a==null?void 0:a.contains(`line-${Ve.added}`),u=a==null?void 0:a.contains(`line-${Ve.modified}`),c=a==null?void 0:a.contains(`line-${Ve.removed}`);if(o||u||c){const R=((b=(h=n==null?void 0:n.target)==null?void 0:h.position)==null?void 0:b.lineNumber)||0,L=((g=this._editor)==null?void 0:g.getTopForLineNumber(R+1))||0,j=((x=this._editor)==null?void 0:x.getScrollTop())||0,E=o?Ve.added:u?Ve.modified:Ve.removed;(T=this._diffPopupWidget)==null||T.show(L-j,L,E),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(R+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class Yd{constructor(n,a,o){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_decorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_changPositionListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScript",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onActionTrigger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onLinkOpen",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=a,this._onActionTrigger=o,this._init()}addLinkOpenFunc(n){this._onLinkOpen=n}updateActionTrigger(n){this._onActionTrigger=n}setModelMarkers(n){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",n)}addDiffDecorations(){this._decorations||(this._decorations=new Vd(this._editor,this._monaco,this._originalScript))}removeDiffDecorations(){var n;(n=this._decorations)==null||n.dispose(),this._decorations=void 0}setValue(n){this._editor.setValue(n)}setPosition(n){var a,o,u;(a=this._editor)==null||a.setPosition(n),(o=this._editor)==null||o.revealPositionInCenter(n),(u=this._editor)==null||u.focus()}setOriginalScript(n){var a;this._originalScript=n,(a=this._decorations)==null||a.update(n)}getEditorLayout(){var o;const n=this._editor.getContentHeight(),a=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:n,lineCount:a}}setEditorLayout(n){var a,o;(o=this._editor)==null||o.layout({height:n,width:(a=this._editor)==null?void 0:a.getContainerDomNode().clientWidth})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition()}_setCursorPosition(){const n=localStorage.getItem(an);this._editor.setPosition(n?JSON.parse(n):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Re}),this._monaco.languages.registerCompletionItemProvider(Re,{triggerCharacters:[".","@"],provideCompletionItems:Nd,resolveCompletionItem:Od}),this._monaco.languages.registerHoverProvider(Re,{provideHover:Pd}),this._monaco.languages.registerSignatureHelpProvider(Re,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:Ed}),this._monaco.languages.registerColorProvider(Re,{provideColorPresentations:Ld,provideDocumentColors:Rd}),this._monaco.editor.registerEditorOpener({openCodeEditor:(n,a,o)=>{const u=Md(n,o);if(u){const{index:c,docValue:m}=u,{title:h,name:b}=m[c];let g="";switch(h){case xe.keywords:g="kw";break;case xe.functions:g="fun";break;case xe.variables:g="var";break;case xe.types:g="type";break;case xe.constants:g="const";break}this._onLinkOpen&&this._onLinkOpen(`${g}_${b}`,c)}return!0}}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&this._onLinkOpen(n.fragment),!0)}),this._monaco.languages.registerDefinitionProvider(Re,{provideDefinition:Fd})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",ln),this._monaco.editor.defineTheme("vs",on),this._monaco.languages.setMonarchTokensProvider(Re,sn),this._monaco.languages.setLanguageConfiguration(Re,nn)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(n,a)=>{var o;if(St.nextIsBracket){const u=this._editor.getPosition();u&&this._editor.setPosition(Object.assign(u,{column:u.column+1}))}(o=this._editor.getAction(a))==null||o.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(C.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:"寻找/替换",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(C.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:"切换控制台",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"9_modification-c",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(C.Actions.TriggerConsole)}})}openFind(){this._editor.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(n){this._changPositionListener&&this._changPositionListener.dispose();const a=localStorage.getItem(an);n&&n(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(an,JSON.stringify(o.position)),n&&n(o.position)})}}/**
135
135
  * @license
136
136
  * Copyright 2019 Google LLC
137
137
  * SPDX-License-Identifier: Apache-2.0
138
- */const uo=Symbol("Comlink.proxy"),Kd=Symbol("Comlink.endpoint"),Qd=Symbol("Comlink.releaseProxy"),mn=Symbol("Comlink.finalizer"),Va=Symbol("Comlink.thrown"),po=s=>typeof s=="object"&&s!==null||typeof s=="function",Zd={canHandle:s=>po(s)&&s[uo],serialize(s){const{port1:n,port2:a}=new MessageChannel;return fo(s,n),[a,[a]]},deserialize(s){return s.start(),fn(s)}},Jd={canHandle:s=>po(s)&&Va in s,serialize({value:s}){let n;return s instanceof Error?n={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:n={isError:!1,value:s},[n,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},mo=new Map([["proxy",Zd],["throw",Jd]]);function ep(s,n){for(const a of s)if(n===a||a==="*"||a instanceof RegExp&&a.test(n))return!0;return!1}function fo(s,n=globalThis,a=["*"]){n.addEventListener("message",function o(u){if(!u||!u.data)return;if(!ep(a,u.origin)){console.warn(`Invalid origin '${u.origin}' for comlink proxy`);return}const{id:c,type:m,path:h}=Object.assign({path:[]},u.data),b=(u.data.argumentList||[]).map(_r);let g;try{const x=h.slice(0,-1).reduce((R,L)=>R[L],s),T=h.reduce((R,L)=>R[L],s);switch(m){case"GET":g=T;break;case"SET":x[h.slice(-1)[0]]=_r(u.data.value),g=!0;break;case"APPLY":g=T.apply(x,b);break;case"CONSTRUCT":{const R=new T(...b);g=ip(R)}break;case"ENDPOINT":{const{port1:R,port2:L}=new MessageChannel;fo(s,L),g=np(R,[R])}break;case"RELEASE":g=void 0;break;default:return}}catch(x){g={value:x,[Va]:0}}Promise.resolve(g).catch(x=>({value:x,[Va]:0})).then(x=>{const[T,R]=Za(x);n.postMessage(Object.assign(Object.assign({},T),{id:c}),R),m==="RELEASE"&&(n.removeEventListener("message",o),yo(n),mn in s&&typeof s[mn]=="function"&&s[mn]())}).catch(x=>{const[T,R]=Za({value:new TypeError("Unserializable return value"),[Va]:0});n.postMessage(Object.assign(Object.assign({},T),{id:c}),R)})}),n.start&&n.start()}function tp(s){return s.constructor.name==="MessagePort"}function yo(s){tp(s)&&s.close()}function fn(s,n){return yn(s,[],n)}function Ya(s){if(s)throw new Error("Proxy has been released and is not useable")}function ho(s){return Or(s,{type:"RELEASE"}).then(()=>{yo(s)})}const Ka=new WeakMap,Qa="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const n=(Ka.get(s)||0)-1;Ka.set(s,n),n===0&&ho(s)});function rp(s,n){const a=(Ka.get(n)||0)+1;Ka.set(n,a),Qa&&Qa.register(s,n,s)}function ap(s){Qa&&Qa.unregister(s)}function yn(s,n=[],a=function(){}){let o=!1;const u=new Proxy(a,{get(c,m){if(Ya(o),m===Qd)return()=>{ap(u),ho(s),o=!0};if(m==="then"){if(n.length===0)return{then:()=>u};const h=Or(s,{type:"GET",path:n.map(b=>b.toString())}).then(_r);return h.then.bind(h)}return yn(s,[...n,m])},set(c,m,h){Ya(o);const[b,g]=Za(h);return Or(s,{type:"SET",path:[...n,m].map(x=>x.toString()),value:b},g).then(_r)},apply(c,m,h){Ya(o);const b=n[n.length-1];if(b===Kd)return Or(s,{type:"ENDPOINT"}).then(_r);if(b==="bind")return yn(s,n.slice(0,-1));const[g,x]=_o(h);return Or(s,{type:"APPLY",path:n.map(T=>T.toString()),argumentList:g},x).then(_r)},construct(c,m){Ya(o);const[h,b]=_o(m);return Or(s,{type:"CONSTRUCT",path:n.map(g=>g.toString()),argumentList:h},b).then(_r)}});return rp(u,s),u}function sp(s){return Array.prototype.concat.apply([],s)}function _o(s){const n=s.map(Za);return[n.map(a=>a[0]),sp(n.map(a=>a[1]))]}const go=new WeakMap;function np(s,n){return go.set(s,n),s}function ip(s){return Object.assign(s,{[uo]:!0})}function Za(s){for(const[n,a]of mo)if(a.canHandle(s)){const[o,u]=a.serialize(s);return[{type:"HANDLER",name:n,value:o},u]}return[{type:"RAW",value:s},go.get(s)||[]]}function _r(s){switch(s.type){case"HANDLER":return mo.get(s.name).deserialize(s.value);case"RAW":return s.value}}function Or(s,n,a){return new Promise(o=>{const u=op();s.addEventListener("message",function c(m){!m.data||!m.data.id||m.data.id!==u||(s.removeEventListener("message",c),o(m.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:u},n),a)})}function op(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const bo=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-DBOrPbdQ.js").href:new URL("assets/scriptsRunWorker-DBOrPbdQ.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:ja&&ja.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});bo.onerror=s=>{console.error(s)};const xo=fn(bo),lp=fn(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-HvN6ZSID.js").href:new URL("assets/parserTccWorker-HvN6ZSID.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:ja&&ja.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function wo(s,n=!1){const{functions:a,types:o,constants:u,variables:c,methods:m}=gt;return await lp(s,n,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(u),variables:Object.fromEntries(c)})}async function vo(s,n,a=!0){return await xo.runScript(s,n,a)}async function cp(s){return await xo.removeScript(s)}function up(s){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:s==null?void 0:s.name})}C.VType=void 0,function(s){s.BOOL="bool",s.INT="int",s.FLOAT="float",s.ARRAY="array",s.BOX="box",s.CHART_POINT="chart.point",s.COLOR="color",s.CONST="const",s.LABEL="label",s.LINE="line",s.LINEFILL="linefill",s.MAP="map",s.MATRIX="matrix",s.POLYLINE="polyline",s.SERIES="series",s.SIMPLE="simple",s.STRING="string",s.TABLE="table",s.UNDETERMINED="undetermined type",s.INPUT="input",s.NA="na",s.VOID="void"}(C.VType||(C.VType={})),C.VRuleType=void 0,function(s){s.FlowStmt="FlowStmt",s.DeclareAssign="DeclareAssign",s.VarBlockStmt="VarBlockStmt",s.VarSingle="VarSingle",s.VarMultiple="VarMultiple",s.ParenthesizedExpression="ParenthesizedExpression",s.AdditiveExpression="AdditiveExpression",s.RelationalExpression="RelationalExpression",s.EqualityExpression="EqualityExpression",s.TernaryExpression="TernaryExpression",s.UnaryExpression="UnaryExpression",s.NotExpression="NotExpression",s.MemberIndexExpression="MemberIndexExpression",s.MethodExpression="MethodExpression",s.LogicalAndExpression="LogicalAndExpression",s.LogicalOrExpression="LogicalOrExpression",s.MultiplicativeExpression="MultiplicativeExpression",s.Brackethesized="Brackethesized",s.IfStatement="IfStatement",s.ForToStatement="ForToStatement",s.ForInStatement="ForInStatement",s.SwitchStatement="SwitchStatement",s.CaseClause="CaseClause",s.DefaultCaluse="DefaultCaluse",s.WhileStatement="WhileStatement",s.ImportElement="ImportElement",s.Literal="Literal",s.ArrowFunction="ArrowFunction",s.ArrowMethod="ArrowMethod",s.TypeStatement="TypeStatement",s.Name="Name",s.AgainAssign="AgainAssign"}(C.VRuleType||(C.VRuleType={})),C.VAdjustment=void 0,function(s){s.dividends="dividends",s.none="none",s.splits="splits"}(C.VAdjustment||(C.VAdjustment={})),C.VAlert=void 0,function(s){s.freqAll="freq_all",s.freqOncePerBar="freq_once_per_bar",s.freqOncePerBarClose="freq_once_per_bar_close"}(C.VAlert||(C.VAlert={})),C.VBarmergeGaps=void 0,function(s){s.gapsOff="gaps_off",s.gapsOn="gaps_on",s.lookaheadOff="lookahead_off",s.lookaheadOn="lookahead_on"}(C.VBarmergeGaps||(C.VBarmergeGaps={})),C.VPlotDisplay=void 0,function(s){s.all="all",s.dataWindow="data_window",s.none="none",s.pane="pane",s.priceScale="price_scale",s.statusLine="status_line"}(C.VPlotDisplay||(C.VPlotDisplay={})),C.VExtend=void 0,function(s){s.both="both",s.left="left",s.none="none",s.right="right"}(C.VExtend||(C.VExtend={})),C.VFormatType=void 0,function(s){s.inherit="inherit",s.mintick="mintick",s.percent="percent",s.price="price",s.volume="volume"}(C.VFormatType||(C.VFormatType={})),C.VHlineStyle=void 0,function(s){s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"}(C.VHlineStyle||(C.VHlineStyle={})),C.VLabelStyle=void 0,function(s){s.styleArrowdown="style_arrowdown",s.styleArrowup="style_arrowup",s.styleCircle="style_circle",s.styleCross="style_cross",s.styleDiamond="style_diamond",s.styleFlag="style_flag",s.styleLabelCenter="style_label_center",s.styleLabelDown="style_label_down",s.styleLabelLeft="style_label_left",s.styleLabelLowerLeft="style_label_lower_left",s.styleLabelLowerRight="style_label_lower_right",s.styleLabelRight="style_label_right",s.styleLabelUp="style_label_up",s.styleLabelUpperLeft="style_label_upper_left",s.styleLabelUpperRight="style_label_upper_right",s.styleNone="style_none",s.styleSquare="style_square",s.styleTextOutline="style_text_outline",s.styleTriangledown="style_triangledown",s.styleTriangleup="style_triangleup",s.styleXcross="style_xcross"}(C.VLabelStyle||(C.VLabelStyle={})),C.VLineStyle=void 0,function(s){s.styleArrowBoth="style_arrow_both",s.styleArrowLeft="style_arrow_left",s.styleArrowRight="style_arrow_right",s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"}(C.VLineStyle||(C.VLineStyle={})),C.VLocation=void 0,function(s){s.abovebar="abovebar",s.absolute="absolute",s.belowbar="belowbar",s.bottom="bottom",s.top="top"}(C.VLocation||(C.VLocation={})),C.VSortOrder=void 0,function(s){s.ascending="ascending",s.descending="descending"}(C.VSortOrder||(C.VSortOrder={})),C.VPlotStyle=void 0,function(s){s.styleArea="Area",s.styleAreabr="Area With Breaks",s.styleCircles="Circles",s.styleColumns="Columns",s.styleCross="Cross",s.styleHistogram="Histogram",s.styleLine="Line",s.styleLinebr="Line With Breaks",s.styleStepline="Step Line",s.styleSteplineDiamond="Step Line With Diamonds",s.styleSteplinebr="Step line with Breaks"}(C.VPlotStyle||(C.VPlotStyle={})),C.VPosition=void 0,function(s){s.bottomCenter="bottom_center",s.bottomLeft="bottom_left",s.bottomRight="bottom_right",s.middleCenter="middle_center",s.middleLeft="middle_left",s.middleRight="middle_right",s.topCenter="top_center",s.topLeft="top_left",s.topRight="top_right"}(C.VPosition||(C.VPosition={})),C.VScale=void 0,function(s){s.left="left",s.none="none",s.right="right"}(C.VScale||(C.VScale={})),C.VSession=void 0,function(s){s.extended="extended",s.regular="regular"}(C.VSession||(C.VSession={})),C.VShape=void 0,function(s){s.arrowdown="arrowdown",s.arrowup="arrowup",s.circle="circle",s.cross="cross",s.diamond="diamond",s.flag="flag",s.labeldown="labeldown",s.labelup="labelup",s.square="square",s.triangledown="triangledown",s.triangleup="triangleup",s.xcross="xcross"}(C.VShape||(C.VShape={})),C.VSize=void 0,function(s){s.auto="auto",s.huge="huge",s.large="large",s.normal="normal",s.small="small",s.tiny="tiny"}(C.VSize||(C.VSize={})),C.VStrategy=void 0,function(s){s.cash="cash",s.fixed="fixed",s.percentOfEquity="percent_of_equity"}(C.VStrategy||(C.VStrategy={})),C.VCommission=void 0,function(s){s.cashPerContract="cash_per_contract",s.cashPerOrder="cash_per_order",s.percent="percent"}(C.VCommission||(C.VCommission={})),C.VDirection=void 0,function(s){s.all="all",s.long="long",s.short="short"}(C.VDirection||(C.VDirection={})),C.VOca=void 0,function(s){s.cancel="cancel",s.none="none",s.reduce="reduce"}(C.VOca||(C.VOca={})),C.VText=void 0,function(s){s.alignBottom="align_bottom",s.alignCenter="align_center",s.alignLeft="align_left",s.alignRight="align_right",s.alignTop="align_top",s.wrapAuto="wrap_auto",s.wrapNone="wrap_none"}(C.VText||(C.VText={})),C.VXloc=void 0,function(s){s.bar_index="bar_index",s.bar_time="bar_time"}(C.VXloc||(C.VXloc={})),C.VYloc=void 0,function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"}(C.VYloc||(C.VYloc={})),C.VEarnings=void 0,function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"}(C.VEarnings||(C.VEarnings={})),C.VPivotType=void 0,function(s){s.traditional="Traditional",s.fibonacci="Fibonacci",s.woodie="Woodie",s.classic="Classic",s.dm="DM",s.camarilla="Camarilla"}(C.VPivotType||(C.VPivotType={})),C.VInputType=void 0,function(s){s.INT="int",s.BOOL="bool",s.TIME="time",s.COLOR="color",s.FLOAT="float",s.PRICE="price",s.SOURCE="source",s.STRING="string",s.SYMBOL="symbol",s.SESSION="session",s.TEXT_AREA="text_area",s.TIMEFRAME="timeframe"}(C.VInputType||(C.VInputType={}));var To;(function(s){s.description="description",s.field="field",s.function="function",s.param="param",s.returns="returns",s.type="type",s.variable="variable"})(To||(To={})),C.VType.SERIES,C.VType.SIMPLE,C.VType.INPUT,C.VType.CONST,C.VType.INT,C.VType.FLOAT,C.VType.BOOL,C.VType.COLOR,C.VType.STRING;const dp={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1};self.MonacoEnvironment={getWorker(){return new up({name:"Editor Worker"})}},tn.config({monaco:nu});let Io={};const pp=(s,n)=>{const{height:a,width:o,theme:u,options:c,hasDiff:m,readOnly:h,defaultValue:b,onChange:g,onLinkOpen:x,onDeclareConfigChange:T,onCursorPositionChange:R,onActionTrigger:L,onEditorDidMount:j}=s,E=M.useRef(null);M.useImperativeHandle(n,()=>({setOriginalScript(A){var k;(k=E.current)==null||k.setOriginalScript(A)},setScript(A){var k;(k=E.current)==null||k.setValue(A)},gotoLine(){var A;(A=E.current)==null||A.gotoLine()},getEditorLayout(){var A;return(A=E.current)==null?void 0:A.getEditorLayout()},setPosition(A,k){var B;(B=E.current)==null||B.setPosition({column:A,lineNumber:k})},setModelMarkers(A){var k;(k=E.current)==null||k.setModelMarkers(A)}})),M.useEffect(()=>{var A,k;m?(k=E.current)==null||k.addDiffDecorations():(A=E.current)==null||A.removeDiffDecorations()},[m]),M.useEffect(()=>{var A;(A=E.current)==null||A.updateActionTrigger(L)},[L]),M.useEffect(()=>{var A;x&&((A=E.current)==null||A.addLinkOpenFunc(x))},[x]),M.useEffect(()=>{var A;a&&((A=E.current)==null||A.setEditorLayout(Number(a)))},[a,E.current]);function V(A,k){var H,le,ie;Ct.initBuiltinsTrees(),E.current=new Yd(A,k,L),x&&((H=E.current)==null||H.addLinkOpenFunc(x)),m&&((le=E.current)==null||le.addDiffDecorations()),Id(A),(ie=E.current)==null||ie.setEditorLayout(Number(a));const B=A.getValue();E.current.onChangeCursorPosition(R),g&&g(B),!h&&J(B),j&&j()}const J=M.useCallback(async A=>{var lt;const k=Date.now(),{errors:B,functions:H,methods:le,types:ie,variables:ce,overloadsFuncs:bt,preParserCode:zt}=await wo(A),Me=new Map(Object.entries(H)),Fe=new Map(Object.entries(le)),Y=new Map(Object.entries(ie)),he=new Map(Object.entries(ce));Nr.setUserDefined({functions:Me,methods:Fe,types:Y,variables:he},bt),Ct.setUserDefind(Me,Y,he,Fe);const Oe=B.map(je=>({...je,severity:je.type||qe.MarkerSeverity.Error}));if(h)return;try{if(!B.length){const je=await vo(zt,{isPreParser:!0});so.isEqual(je,Io)||(Io=je,T&&T(je))}}catch(je){console.log(je,"==================error- Run TccScript Server"),B.push({message:`Runtime Error: ${je.message}`,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(lt=E.current)==null||lt.setModelMarkers(Oe);const Le=Date.now();console.log((Le-k)/1e3)},[T,h]),G=M.useMemo(()=>so.debounce(J,1e3),[J]);function F(A){var k;if(h){J(A||"");return}(k=E.current)==null||k.setModelMarkers([]),A!==void 0&&(g&&g(A),G(A))}return P.jsx(fd,{height:a,width:o||"100%",defaultLanguage:Re,defaultValue:b||`indicator("我的脚本")
138
+ */const uo=Symbol("Comlink.proxy"),Kd=Symbol("Comlink.endpoint"),Qd=Symbol("Comlink.releaseProxy"),mn=Symbol("Comlink.finalizer"),Va=Symbol("Comlink.thrown"),po=s=>typeof s=="object"&&s!==null||typeof s=="function",Jd={canHandle:s=>po(s)&&s[uo],serialize(s){const{port1:n,port2:a}=new MessageChannel;return fo(s,n),[a,[a]]},deserialize(s){return s.start(),fn(s)}},Zd={canHandle:s=>po(s)&&Va in s,serialize({value:s}){let n;return s instanceof Error?n={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:n={isError:!1,value:s},[n,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},mo=new Map([["proxy",Jd],["throw",Zd]]);function ep(s,n){for(const a of s)if(n===a||a==="*"||a instanceof RegExp&&a.test(n))return!0;return!1}function fo(s,n=globalThis,a=["*"]){n.addEventListener("message",function o(u){if(!u||!u.data)return;if(!ep(a,u.origin)){console.warn(`Invalid origin '${u.origin}' for comlink proxy`);return}const{id:c,type:m,path:h}=Object.assign({path:[]},u.data),b=(u.data.argumentList||[]).map(_r);let g;try{const x=h.slice(0,-1).reduce((R,L)=>R[L],s),T=h.reduce((R,L)=>R[L],s);switch(m){case"GET":g=T;break;case"SET":x[h.slice(-1)[0]]=_r(u.data.value),g=!0;break;case"APPLY":g=T.apply(x,b);break;case"CONSTRUCT":{const R=new T(...b);g=ip(R)}break;case"ENDPOINT":{const{port1:R,port2:L}=new MessageChannel;fo(s,L),g=np(R,[R])}break;case"RELEASE":g=void 0;break;default:return}}catch(x){g={value:x,[Va]:0}}Promise.resolve(g).catch(x=>({value:x,[Va]:0})).then(x=>{const[T,R]=Ja(x);n.postMessage(Object.assign(Object.assign({},T),{id:c}),R),m==="RELEASE"&&(n.removeEventListener("message",o),yo(n),mn in s&&typeof s[mn]=="function"&&s[mn]())}).catch(x=>{const[T,R]=Ja({value:new TypeError("Unserializable return value"),[Va]:0});n.postMessage(Object.assign(Object.assign({},T),{id:c}),R)})}),n.start&&n.start()}function tp(s){return s.constructor.name==="MessagePort"}function yo(s){tp(s)&&s.close()}function fn(s,n){return yn(s,[],n)}function Ya(s){if(s)throw new Error("Proxy has been released and is not useable")}function ho(s){return Or(s,{type:"RELEASE"}).then(()=>{yo(s)})}const Ka=new WeakMap,Qa="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const n=(Ka.get(s)||0)-1;Ka.set(s,n),n===0&&ho(s)});function rp(s,n){const a=(Ka.get(n)||0)+1;Ka.set(n,a),Qa&&Qa.register(s,n,s)}function ap(s){Qa&&Qa.unregister(s)}function yn(s,n=[],a=function(){}){let o=!1;const u=new Proxy(a,{get(c,m){if(Ya(o),m===Qd)return()=>{ap(u),ho(s),o=!0};if(m==="then"){if(n.length===0)return{then:()=>u};const h=Or(s,{type:"GET",path:n.map(b=>b.toString())}).then(_r);return h.then.bind(h)}return yn(s,[...n,m])},set(c,m,h){Ya(o);const[b,g]=Ja(h);return Or(s,{type:"SET",path:[...n,m].map(x=>x.toString()),value:b},g).then(_r)},apply(c,m,h){Ya(o);const b=n[n.length-1];if(b===Kd)return Or(s,{type:"ENDPOINT"}).then(_r);if(b==="bind")return yn(s,n.slice(0,-1));const[g,x]=_o(h);return Or(s,{type:"APPLY",path:n.map(T=>T.toString()),argumentList:g},x).then(_r)},construct(c,m){Ya(o);const[h,b]=_o(m);return Or(s,{type:"CONSTRUCT",path:n.map(g=>g.toString()),argumentList:h},b).then(_r)}});return rp(u,s),u}function sp(s){return Array.prototype.concat.apply([],s)}function _o(s){const n=s.map(Ja);return[n.map(a=>a[0]),sp(n.map(a=>a[1]))]}const go=new WeakMap;function np(s,n){return go.set(s,n),s}function ip(s){return Object.assign(s,{[uo]:!0})}function Ja(s){for(const[n,a]of mo)if(a.canHandle(s)){const[o,u]=a.serialize(s);return[{type:"HANDLER",name:n,value:o},u]}return[{type:"RAW",value:s},go.get(s)||[]]}function _r(s){switch(s.type){case"HANDLER":return mo.get(s.name).deserialize(s.value);case"RAW":return s.value}}function Or(s,n,a){return new Promise(o=>{const u=op();s.addEventListener("message",function c(m){!m.data||!m.data.id||m.data.id!==u||(s.removeEventListener("message",c),o(m.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:u},n),a)})}function op(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const bo=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-CTlk4g3L.js").href:new URL("assets/scriptsRunWorker-CTlk4g3L.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:ja&&ja.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});bo.onerror=s=>{console.error(s)};const xo=fn(bo),lp=fn(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-CHJsIhut.js").href:new URL("assets/parserTccWorker-CHJsIhut.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:ja&&ja.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function wo(s,n=!1){const{functions:a,types:o,constants:u,variables:c,methods:m}=gt;return await lp(s,n,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(u),variables:Object.fromEntries(c)})}async function vo(s,n,a=!0){return await xo.runScript(s,n,a)}async function cp(s){return await xo.removeScript(s)}function up(s){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:s==null?void 0:s.name})}C.VType=void 0,function(s){s.BOOL="bool",s.INT="int",s.FLOAT="float",s.ARRAY="array",s.BOX="box",s.CHART_POINT="chart.point",s.COLOR="color",s.CONST="const",s.LABEL="label",s.LINE="line",s.LINEFILL="linefill",s.MAP="map",s.MATRIX="matrix",s.POLYLINE="polyline",s.SERIES="series",s.SIMPLE="simple",s.STRING="string",s.TABLE="table",s.UNDETERMINED="undetermined type",s.INPUT="input",s.NA="na",s.VOID="void"}(C.VType||(C.VType={})),C.VRuleType=void 0,function(s){s.FlowStmt="FlowStmt",s.DeclareAssign="DeclareAssign",s.VarBlockStmt="VarBlockStmt",s.VarSingle="VarSingle",s.VarMultiple="VarMultiple",s.ParenthesizedExpression="ParenthesizedExpression",s.AdditiveExpression="AdditiveExpression",s.RelationalExpression="RelationalExpression",s.EqualityExpression="EqualityExpression",s.TernaryExpression="TernaryExpression",s.UnaryExpression="UnaryExpression",s.NotExpression="NotExpression",s.MemberIndexExpression="MemberIndexExpression",s.MethodExpression="MethodExpression",s.LogicalAndExpression="LogicalAndExpression",s.LogicalOrExpression="LogicalOrExpression",s.MultiplicativeExpression="MultiplicativeExpression",s.Brackethesized="Brackethesized",s.IfStatement="IfStatement",s.ForToStatement="ForToStatement",s.ForInStatement="ForInStatement",s.SwitchStatement="SwitchStatement",s.CaseClause="CaseClause",s.DefaultCaluse="DefaultCaluse",s.WhileStatement="WhileStatement",s.ImportElement="ImportElement",s.Literal="Literal",s.ArrowFunction="ArrowFunction",s.ArrowMethod="ArrowMethod",s.TypeStatement="TypeStatement",s.Name="Name",s.AgainAssign="AgainAssign"}(C.VRuleType||(C.VRuleType={})),C.VAdjustment=void 0,function(s){s.dividends="dividends",s.none="none",s.splits="splits"}(C.VAdjustment||(C.VAdjustment={})),C.VAlert=void 0,function(s){s.freqAll="freq_all",s.freqOncePerBar="freq_once_per_bar",s.freqOncePerBarClose="freq_once_per_bar_close"}(C.VAlert||(C.VAlert={})),C.VBarmergeGaps=void 0,function(s){s.gapsOff="gaps_off",s.gapsOn="gaps_on",s.lookaheadOff="lookahead_off",s.lookaheadOn="lookahead_on"}(C.VBarmergeGaps||(C.VBarmergeGaps={})),C.VPlotDisplay=void 0,function(s){s.all="all",s.dataWindow="data_window",s.none="none",s.pane="pane",s.priceScale="price_scale",s.statusLine="status_line"}(C.VPlotDisplay||(C.VPlotDisplay={})),C.VExtend=void 0,function(s){s.both="both",s.left="left",s.none="none",s.right="right"}(C.VExtend||(C.VExtend={})),C.VFormatType=void 0,function(s){s.inherit="inherit",s.mintick="mintick",s.percent="percent",s.price="price",s.volume="volume"}(C.VFormatType||(C.VFormatType={})),C.VHlineStyle=void 0,function(s){s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"}(C.VHlineStyle||(C.VHlineStyle={})),C.VLabelStyle=void 0,function(s){s.styleArrowdown="style_arrowdown",s.styleArrowup="style_arrowup",s.styleCircle="style_circle",s.styleCross="style_cross",s.styleDiamond="style_diamond",s.styleFlag="style_flag",s.styleLabelCenter="style_label_center",s.styleLabelDown="style_label_down",s.styleLabelLeft="style_label_left",s.styleLabelLowerLeft="style_label_lower_left",s.styleLabelLowerRight="style_label_lower_right",s.styleLabelRight="style_label_right",s.styleLabelUp="style_label_up",s.styleLabelUpperLeft="style_label_upper_left",s.styleLabelUpperRight="style_label_upper_right",s.styleNone="style_none",s.styleSquare="style_square",s.styleTextOutline="style_text_outline",s.styleTriangledown="style_triangledown",s.styleTriangleup="style_triangleup",s.styleXcross="style_xcross"}(C.VLabelStyle||(C.VLabelStyle={})),C.VLineStyle=void 0,function(s){s.styleArrowBoth="style_arrow_both",s.styleArrowLeft="style_arrow_left",s.styleArrowRight="style_arrow_right",s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"}(C.VLineStyle||(C.VLineStyle={})),C.VLocation=void 0,function(s){s.abovebar="abovebar",s.absolute="absolute",s.belowbar="belowbar",s.bottom="bottom",s.top="top"}(C.VLocation||(C.VLocation={})),C.VSortOrder=void 0,function(s){s.ascending="ascending",s.descending="descending"}(C.VSortOrder||(C.VSortOrder={})),C.VPlotStyle=void 0,function(s){s.styleArea="Area",s.styleAreabr="Area With Breaks",s.styleCircles="Circles",s.styleColumns="Columns",s.styleCross="Cross",s.styleHistogram="Histogram",s.styleLine="Line",s.styleLinebr="Line With Breaks",s.styleStepline="Step Line",s.styleSteplineDiamond="Step Line With Diamonds",s.styleSteplinebr="Step line with Breaks"}(C.VPlotStyle||(C.VPlotStyle={})),C.VPosition=void 0,function(s){s.bottomCenter="bottom_center",s.bottomLeft="bottom_left",s.bottomRight="bottom_right",s.middleCenter="middle_center",s.middleLeft="middle_left",s.middleRight="middle_right",s.topCenter="top_center",s.topLeft="top_left",s.topRight="top_right"}(C.VPosition||(C.VPosition={})),C.VScale=void 0,function(s){s.left="left",s.none="none",s.right="right"}(C.VScale||(C.VScale={})),C.VSession=void 0,function(s){s.extended="extended",s.regular="regular"}(C.VSession||(C.VSession={})),C.VShape=void 0,function(s){s.arrowdown="arrowdown",s.arrowup="arrowup",s.circle="circle",s.cross="cross",s.diamond="diamond",s.flag="flag",s.labeldown="labeldown",s.labelup="labelup",s.square="square",s.triangledown="triangledown",s.triangleup="triangleup",s.xcross="xcross"}(C.VShape||(C.VShape={})),C.VSize=void 0,function(s){s.auto="auto",s.huge="huge",s.large="large",s.normal="normal",s.small="small",s.tiny="tiny"}(C.VSize||(C.VSize={})),C.VStrategy=void 0,function(s){s.cash="cash",s.fixed="fixed",s.percentOfEquity="percent_of_equity"}(C.VStrategy||(C.VStrategy={})),C.VCommission=void 0,function(s){s.cashPerContract="cash_per_contract",s.cashPerOrder="cash_per_order",s.percent="percent"}(C.VCommission||(C.VCommission={})),C.VDirection=void 0,function(s){s.all="all",s.long="long",s.short="short"}(C.VDirection||(C.VDirection={})),C.VOca=void 0,function(s){s.cancel="cancel",s.none="none",s.reduce="reduce"}(C.VOca||(C.VOca={})),C.VText=void 0,function(s){s.alignBottom="align_bottom",s.alignCenter="align_center",s.alignLeft="align_left",s.alignRight="align_right",s.alignTop="align_top",s.wrapAuto="wrap_auto",s.wrapNone="wrap_none"}(C.VText||(C.VText={})),C.VXloc=void 0,function(s){s.bar_index="bar_index",s.bar_time="bar_time"}(C.VXloc||(C.VXloc={})),C.VYloc=void 0,function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"}(C.VYloc||(C.VYloc={})),C.VEarnings=void 0,function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"}(C.VEarnings||(C.VEarnings={})),C.VPivotType=void 0,function(s){s.traditional="Traditional",s.fibonacci="Fibonacci",s.woodie="Woodie",s.classic="Classic",s.dm="DM",s.camarilla="Camarilla"}(C.VPivotType||(C.VPivotType={})),C.VInputType=void 0,function(s){s.INT="int",s.BOOL="bool",s.TIME="time",s.COLOR="color",s.FLOAT="float",s.PRICE="price",s.SOURCE="source",s.STRING="string",s.SYMBOL="symbol",s.SESSION="session",s.TEXT_AREA="text_area",s.TIMEFRAME="timeframe"}(C.VInputType||(C.VInputType={}));var To;(function(s){s.description="description",s.field="field",s.function="function",s.param="param",s.returns="returns",s.type="type",s.variable="variable"})(To||(To={})),C.VScriptType=void 0,function(s){s.library="library",s.indicator="indicator",s.strategy="strategy"}(C.VScriptType||(C.VScriptType={})),C.VType.SERIES,C.VType.SIMPLE,C.VType.INPUT,C.VType.CONST,C.VType.INT,C.VType.FLOAT,C.VType.BOOL,C.VType.COLOR,C.VType.STRING;const dp={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1};self.MonacoEnvironment={getWorker(){return new up({name:"Editor Worker"})}},tn.config({monaco:nu});let Io={};const pp=(s,n)=>{const{height:a,width:o,theme:u,options:c,hasDiff:m,readOnly:h,defaultValue:b,onChange:g,onLinkOpen:x,onDeclareConfigChange:T,onCursorPositionChange:R,onActionTrigger:L,onEditorDidMount:j}=s,E=M.useRef(null);M.useImperativeHandle(n,()=>({setOriginalScript(A){var k;(k=E.current)==null||k.setOriginalScript(A)},setScript(A){var k;(k=E.current)==null||k.setValue(A)},gotoLine(){var A;(A=E.current)==null||A.gotoLine()},getEditorLayout(){var A;return(A=E.current)==null?void 0:A.getEditorLayout()},setPosition(A,k){var B;(B=E.current)==null||B.setPosition({column:A,lineNumber:k})},setModelMarkers(A){var k;(k=E.current)==null||k.setModelMarkers(A)}})),M.useEffect(()=>{var A,k;m?(k=E.current)==null||k.addDiffDecorations():(A=E.current)==null||A.removeDiffDecorations()},[m]),M.useEffect(()=>{var A;(A=E.current)==null||A.updateActionTrigger(L)},[L]),M.useEffect(()=>{var A;x&&((A=E.current)==null||A.addLinkOpenFunc(x))},[x]),M.useEffect(()=>{var A;a&&((A=E.current)==null||A.setEditorLayout(Number(a)))},[a,E.current]);function V(A,k){var H,le,ie;St.initBuiltinsTrees(),E.current=new Yd(A,k,L),x&&((H=E.current)==null||H.addLinkOpenFunc(x)),m&&((le=E.current)==null||le.addDiffDecorations()),Id(A),(ie=E.current)==null||ie.setEditorLayout(Number(a));const B=A.getValue();E.current.onChangeCursorPosition(R),g&&g(B),!h&&Z(B),j&&j()}const Z=M.useCallback(async A=>{var lt;const k=Date.now(),{errors:B,functions:H,methods:le,types:ie,variables:ce,overloadsFuncs:bt,preParserCode:xt}=await wo(A,!0),Me=new Map(Object.entries(H)),Fe=new Map(Object.entries(le)),Y=new Map(Object.entries(ie)),he=new Map(Object.entries(ce));Nr.setUserDefined({functions:Me,methods:Fe,types:Y,variables:he},bt),St.setUserDefind(Me,Y,he,Fe);const Oe=B.map(je=>({...je,severity:je.type||qe.MarkerSeverity.Error}));if(h)return;try{if(!B.length&&xt){const je=await vo(xt,{isPreParser:!0});so.isEqual(je,Io)||(Io=je,T&&T(je))}}catch(je){console.log(je,"==================error- Run TccScript Server"),B.push({message:`Runtime Error: ${je.message}`,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(lt=E.current)==null||lt.setModelMarkers(Oe);const Le=Date.now();console.log((Le-k)/1e3)},[T,h]),G=M.useMemo(()=>so.debounce(Z,1500),[Z]);function F(A){var k;if(h){Z(A||"");return}(k=E.current)==null||k.setModelMarkers([]),A!==void 0&&(g&&g(A),G(A))}return P.jsx(fd,{height:a,width:o||"100%",defaultLanguage:Re,defaultValue:b||`indicator("我的脚本")
139
139
  plot(close)
140
- `,theme:u||"vs-dark",className:`tvue-script ${u||"vs-dark"}`,options:{colorDecorators:!0,useShadowDOM:!1,matchOnWordStartOnly:!0,suggest:{filterGraceful:!0},fontSize:13,...h?dp:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...c},onMount:V,onChange:F})},mp=M.forwardRef(pp),fp=s=>{const{theme:n,modified:a,original:o,height:u,width:c,renderSideBySide:m=!0}=s,h=M.useCallback((b,g)=>{g.languages.register({id:Re}),g.editor.defineTheme("vs-dark",ln),g.editor.defineTheme("vs",on),g.languages.setMonarchTokensProvider(Re,sn),g.languages.setLanguageConfiguration(Re,nn)},[]);return P.jsx(cd,{height:u||"90vh",width:c||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:m,scrollBeyondLastLine:!1},language:Re,modified:a,original:o,onMount:h})};C.VMarkerSeverity=void 0,function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"}(C.VMarkerSeverity||(C.VMarkerSeverity={}));var Ja={},yp=function(){var s=document.getSelection();if(!s.rangeCount)return function(){};for(var n=document.activeElement,a=[],o=0;o<s.rangeCount;o++)a.push(s.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return s.removeAllRanges(),function(){s.type==="Caret"&&s.removeAllRanges(),s.rangeCount||a.forEach(function(u){s.addRange(u)}),n&&n.focus()}},hp=yp,ko={"text/plain":"Text","text/html":"Url",default:"Text"},_p="Copy to clipboard: #{key}, Enter";function gp(s){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,n)}function bp(s,n){var a,o,u,c,m,h,b=!1;n||(n={}),a=n.debug||!1;try{u=hp(),c=document.createRange(),m=document.getSelection(),h=document.createElement("span"),h.textContent=s,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(x){if(x.stopPropagation(),n.format)if(x.preventDefault(),typeof x.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=ko[n.format]||ko.default;window.clipboardData.setData(T,s)}else x.clipboardData.clearData(),x.clipboardData.setData(n.format,s);n.onCopy&&(x.preventDefault(),n.onCopy(x.clipboardData))}),document.body.appendChild(h),c.selectNodeContents(h),m.addRange(c);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");b=!0}catch(x){a&&console.error("unable to copy using execCommand: ",x),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",s),n.onCopy&&n.onCopy(window.clipboardData),b=!0}catch(T){a&&console.error("unable to copy using clipboardData: ",T),a&&console.error("falling back to prompt"),o=gp("message"in n?n.message:_p),window.prompt(o,s)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(c):m.removeAllRanges()),h&&document.body.removeChild(h),u()}return b}var xp=bp;function hn(s){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hn(s)}Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.CopyToClipboard=void 0;var es=Do(M),wp=Do(xp),vp=["text","onCopy","options","children"];function Do(s){return s&&s.__esModule?s:{default:s}}function Ao(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function qo(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Ao(Object(a),!0).forEach(function(o){gn(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Ao(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function Tp(s,n){if(s==null)return{};var a=Ip(s,n),o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(u=0;u<c.length;u++)o=c[u],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function Ip(s,n){if(s==null)return{};var a={},o=Object.keys(s),u,c;for(c=0;c<o.length;c++)u=o[c],!(n.indexOf(u)>=0)&&(a[u]=s[u]);return a}function kp(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function Co(s,n){for(var a=0;a<n.length;a++){var o=n[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function Dp(s,n,a){return n&&Co(s.prototype,n),a&&Co(s,a),Object.defineProperty(s,"prototype",{writable:!1}),s}function Ap(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),n&&_n(s,n)}function _n(s,n){return _n=Object.setPrototypeOf||function(o,u){return o.__proto__=u,o},_n(s,n)}function qp(s){var n=Sp();return function(){var o=ts(s),u;if(n){var c=ts(this).constructor;u=Reflect.construct(o,arguments,c)}else u=o.apply(this,arguments);return Cp(this,u)}}function Cp(s,n){if(n&&(hn(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return So(s)}function So(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function Sp(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ts(s){return ts=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},ts(s)}function gn(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}var zo=function(s){Ap(a,s);var n=qp(a);function a(){var o;kp(this,a);for(var u=arguments.length,c=new Array(u),m=0;m<u;m++)c[m]=arguments[m];return o=n.call.apply(n,[this].concat(c)),gn(So(o),"onClick",function(h){var b=o.props,g=b.text,x=b.onCopy,T=b.children,R=b.options,L=es.default.Children.only(T),j=(0,wp.default)(g,R);x&&x(g,j),L&&L.props&&typeof L.props.onClick=="function"&&L.props.onClick(h)}),o}return Dp(a,[{key:"render",value:function(){var u=this.props;u.text,u.onCopy,u.options;var c=u.children,m=Tp(u,vp),h=es.default.Children.only(c);return es.default.cloneElement(h,qo(qo({},m),{},{onClick:this.onClick}))}}]),a}(es.default.PureComponent);Ja.CopyToClipboard=zo,gn(zo,"defaultProps",{onCopy:void 0,options:void 0});var zp=Ja,bn=zp.CopyToClipboard;bn.CopyToClipboard=bn;var Np=bn;const xn=iu(Np);async function Op(s,n=0){const a=s[n];if(!a)return;const{name:o,args:u,type:c,desc:m,examples:h,remarks:b,seeAlso:g,syntax:x,detailedDesc:T,fields:R,returns:L}=a,j={name:o};if(s.length>1&&(j.overloads=`${s.length} overloads`),c&&(j.type=c),u&&(j.name=`${o}()`,j.args=u.map(E=>{const{name:V,desc:J,displayType:G}=E;return{label:`${V} (${G})`,desc:J&&gr(J)}})),m&&(j.desc=m.map(E=>gr(E))),h&&(j.originalExample=h.join(`
141
- `),j.examples=await qe.editor.colorize(j.originalExample,Re,{tabSize:4})),T){j.detailedDesc=[];for(const E of T){const{desc:V,examples:J}=E;let G=V.map(k=>gr(k)),F,A;J&&(A=J.join(`
142
- `),F=await qe.editor.colorize(A,Re,{tabSize:4})),j.detailedDesc.push({desc:G,examples:F,originalExample:A})}}return L&&(j.returns=L.map(E=>gr(E))),b&&(j.remarks=typeof b=="string"?[gr(b)]:b.map(E=>gr(E))),x&&(j.syntax=s.map(E=>{var V;return(V=E.syntax)==null?void 0:V[0]})),R&&(j.fields=R.map(E=>{const{name:V,desc:J,type:G}=E;return{label:`${V} (${G})`,desc:J&&gr(J)}})),g&&(j.seeAlso=g.map(E=>Pp(E))),j}function Pp(s){const a=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(s);if(a){const[o,u,c]=a;return{name:u,link:c}}}function gr(s){const n=/\*\*([^\*]+)\*\*/g,a=/\`([^\`]+)\`/g,o=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return s.replace(n,(u,c)=>`<strong>${c}</strong>`).replace(a,(u,c)=>`<code>${c}</code>`).replace(o,(u,c,m)=>`<a ${m.startsWith("#")?`data-name="${c}"`:'target="_blank"'} class="manual-content-text-link" href="${m}">${c}</a>`)}function Ep(s){var o;const n=[],a=[];for(const u of ca){for(let c of ao[u.key].sort()){if(ro.includes(c))continue;let m=c;u.prefix==="fun"&&(m=`${c}()`),m.includes(s)&&(m.startsWith(s)?n.unshift({label:m,group:u,key:`${u.prefix}_${c}`}):n.push({label:m,group:u,key:`${u.prefix}_${c}`}))}for(const[c,m]of gt[u.key])for(const h of m){const{name:b,args:g,type:x,desc:T,examples:R,remarks:L,seeAlso:j,syntax:E,detailedDesc:V,fields:J,returns:G}=h,F={label:b,group:u,key:`${u.prefix}_${b}`};if(u.prefix==="fun"&&(F.label=`${b}()`),F.label.includes(s))break;if(g){let A=!1;for(const k of g){const{name:B,desc:H,displayType:le}=k;if(B.includes(s)||H!=null&&H.includes(s)||le!=null&&le.includes(s)){a.push(F),A=!0;break}}if(A)break}if(x&&x.includes(s)){a.push(F);break}if(T){let A=!1;for(const k of T)if(k.includes(s)){a.push(F),A=!0;break}if(A)break}if(R){let A=!1;for(const k of R)if(k.includes(s)){a.push(F),A=!0;break}if(A)break}if(L&&(typeof L=="string"?L:L.join(`
140
+ `,theme:u||"vs-dark",className:`tvue-script ${u||"vs-dark"}`,options:{colorDecorators:!0,useShadowDOM:!1,matchOnWordStartOnly:!0,suggest:{filterGraceful:!0},fontSize:13,...h?dp:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...c},onMount:V,onChange:F})},mp=M.forwardRef(pp),fp=s=>{const{theme:n,modified:a,original:o,height:u,width:c,renderSideBySide:m=!0}=s,h=M.useCallback((b,g)=>{g.languages.register({id:Re}),g.editor.defineTheme("vs-dark",ln),g.editor.defineTheme("vs",on),g.languages.setMonarchTokensProvider(Re,sn),g.languages.setLanguageConfiguration(Re,nn)},[]);return P.jsx(cd,{height:u||"90vh",width:c||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:m,scrollBeyondLastLine:!1},language:Re,modified:a,original:o,onMount:h})};C.VMarkerSeverity=void 0,function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"}(C.VMarkerSeverity||(C.VMarkerSeverity={}));var Za={},yp=function(){var s=document.getSelection();if(!s.rangeCount)return function(){};for(var n=document.activeElement,a=[],o=0;o<s.rangeCount;o++)a.push(s.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return s.removeAllRanges(),function(){s.type==="Caret"&&s.removeAllRanges(),s.rangeCount||a.forEach(function(u){s.addRange(u)}),n&&n.focus()}},hp=yp,ko={"text/plain":"Text","text/html":"Url",default:"Text"},_p="Copy to clipboard: #{key}, Enter";function gp(s){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,n)}function bp(s,n){var a,o,u,c,m,h,b=!1;n||(n={}),a=n.debug||!1;try{u=hp(),c=document.createRange(),m=document.getSelection(),h=document.createElement("span"),h.textContent=s,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(x){if(x.stopPropagation(),n.format)if(x.preventDefault(),typeof x.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=ko[n.format]||ko.default;window.clipboardData.setData(T,s)}else x.clipboardData.clearData(),x.clipboardData.setData(n.format,s);n.onCopy&&(x.preventDefault(),n.onCopy(x.clipboardData))}),document.body.appendChild(h),c.selectNodeContents(h),m.addRange(c);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");b=!0}catch(x){a&&console.error("unable to copy using execCommand: ",x),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",s),n.onCopy&&n.onCopy(window.clipboardData),b=!0}catch(T){a&&console.error("unable to copy using clipboardData: ",T),a&&console.error("falling back to prompt"),o=gp("message"in n?n.message:_p),window.prompt(o,s)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(c):m.removeAllRanges()),h&&document.body.removeChild(h),u()}return b}var xp=bp;function hn(s){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hn(s)}Object.defineProperty(Za,"__esModule",{value:!0}),Za.CopyToClipboard=void 0;var es=Do(M),wp=Do(xp),vp=["text","onCopy","options","children"];function Do(s){return s&&s.__esModule?s:{default:s}}function Ao(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function qo(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Ao(Object(a),!0).forEach(function(o){gn(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Ao(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function Tp(s,n){if(s==null)return{};var a=Ip(s,n),o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(u=0;u<c.length;u++)o=c[u],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function Ip(s,n){if(s==null)return{};var a={},o=Object.keys(s),u,c;for(c=0;c<o.length;c++)u=o[c],!(n.indexOf(u)>=0)&&(a[u]=s[u]);return a}function kp(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function Co(s,n){for(var a=0;a<n.length;a++){var o=n[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function Dp(s,n,a){return n&&Co(s.prototype,n),a&&Co(s,a),Object.defineProperty(s,"prototype",{writable:!1}),s}function Ap(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),n&&_n(s,n)}function _n(s,n){return _n=Object.setPrototypeOf||function(o,u){return o.__proto__=u,o},_n(s,n)}function qp(s){var n=Sp();return function(){var o=ts(s),u;if(n){var c=ts(this).constructor;u=Reflect.construct(o,arguments,c)}else u=o.apply(this,arguments);return Cp(this,u)}}function Cp(s,n){if(n&&(hn(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return So(s)}function So(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function Sp(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ts(s){return ts=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},ts(s)}function gn(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}var zo=function(s){Ap(a,s);var n=qp(a);function a(){var o;kp(this,a);for(var u=arguments.length,c=new Array(u),m=0;m<u;m++)c[m]=arguments[m];return o=n.call.apply(n,[this].concat(c)),gn(So(o),"onClick",function(h){var b=o.props,g=b.text,x=b.onCopy,T=b.children,R=b.options,L=es.default.Children.only(T),j=(0,wp.default)(g,R);x&&x(g,j),L&&L.props&&typeof L.props.onClick=="function"&&L.props.onClick(h)}),o}return Dp(a,[{key:"render",value:function(){var u=this.props;u.text,u.onCopy,u.options;var c=u.children,m=Tp(u,vp),h=es.default.Children.only(c);return es.default.cloneElement(h,qo(qo({},m),{},{onClick:this.onClick}))}}]),a}(es.default.PureComponent);Za.CopyToClipboard=zo,gn(zo,"defaultProps",{onCopy:void 0,options:void 0});var zp=Za,bn=zp.CopyToClipboard;bn.CopyToClipboard=bn;var Np=bn;const xn=iu(Np);async function Op(s,n=0){const a=s[n];if(!a)return;const{name:o,args:u,type:c,desc:m,examples:h,remarks:b,seeAlso:g,syntax:x,detailedDesc:T,fields:R,returns:L}=a,j={name:o};if(s.length>1&&(j.overloads=`${s.length} overloads`),c&&(j.type=c),u&&(j.name=`${o}()`,j.args=u.map(E=>{const{name:V,desc:Z,displayType:G}=E;return{label:`${V} (${G})`,desc:Z&&gr(Z)}})),m&&(j.desc=m.map(E=>gr(E))),h&&(j.originalExample=h.join(`
141
+ `),j.examples=await qe.editor.colorize(j.originalExample,Re,{tabSize:4})),T){j.detailedDesc=[];for(const E of T){const{desc:V,examples:Z}=E;let G=V.map(k=>gr(k)),F,A;Z&&(A=Z.join(`
142
+ `),F=await qe.editor.colorize(A,Re,{tabSize:4})),j.detailedDesc.push({desc:G,examples:F,originalExample:A})}}return L&&(j.returns=L.map(E=>gr(E))),b&&(j.remarks=typeof b=="string"?[gr(b)]:b.map(E=>gr(E))),x&&(j.syntax=s.map(E=>{var V;return(V=E.syntax)==null?void 0:V[0]})),R&&(j.fields=R.map(E=>{const{name:V,desc:Z,type:G}=E;return{label:`${V} (${G})`,desc:Z&&gr(Z)}})),g&&(j.seeAlso=g.map(E=>Pp(E))),j}function Pp(s){const a=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(s);if(a){const[o,u,c]=a;return{name:u,link:c}}}function gr(s){const n=/\*\*([^\*]+)\*\*/g,a=/\`([^\`]+)\`/g,o=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return s.replace(n,(u,c)=>`<strong>${c}</strong>`).replace(a,(u,c)=>`<code>${c}</code>`).replace(o,(u,c,m)=>`<a ${m.startsWith("#")?`data-name="${c}"`:'target="_blank"'} class="manual-content-text-link" href="${m}">${c}</a>`)}function Ep(s){var o;const n=[],a=[];for(const u of ca){for(let c of ao[u.key].sort()){if(ro.includes(c))continue;let m=c;u.prefix==="fun"&&(m=`${c}()`),m.includes(s)&&(m.startsWith(s)?n.unshift({label:m,group:u,key:`${u.prefix}_${c}`}):n.push({label:m,group:u,key:`${u.prefix}_${c}`}))}for(const[c,m]of gt[u.key])for(const h of m){const{name:b,args:g,type:x,desc:T,examples:R,remarks:L,seeAlso:j,syntax:E,detailedDesc:V,fields:Z,returns:G}=h,F={label:b,group:u,key:`${u.prefix}_${b}`};if(u.prefix==="fun"&&(F.label=`${b}()`),F.label.includes(s))break;if(g){let A=!1;for(const k of g){const{name:B,desc:H,displayType:le}=k;if(B.includes(s)||H!=null&&H.includes(s)||le!=null&&le.includes(s)){a.push(F),A=!0;break}}if(A)break}if(x&&x.includes(s)){a.push(F);break}if(T){let A=!1;for(const k of T)if(k.includes(s)){a.push(F),A=!0;break}if(A)break}if(R){let A=!1;for(const k of R)if(k.includes(s)){a.push(F),A=!0;break}if(A)break}if(L&&(typeof L=="string"?L:L.join(`
143
143
  `)).includes(s)){a.push(F);break}if(j){let A=!1;for(const k of j)if(k.includes(s)){a.push(F),A=!0;break}if(A)break}if(E){let A=!1;for(const k of E)if(k.includes(s)){a.push(F),A=!0;break}if(A)break}if(V){let A=!1;for(const k of V){const{desc:B,examples:H}=k;if(B.join(`
144
144
  `).includes(s)){a.push(F),A=!0;break}if((o=H==null?void 0:H.join(`
145
- `))!=null&&o.includes(s)){a.push(F),A=!0;break}}if(A)break}if(J){let A=!1;for(const k of J){const{name:B,desc:H,type:le}=k;if(B.includes(s)||H!=null&&H.includes(s)||le!=null&&le.includes(s)){a.push(F),A=!0;break}}if(A)break}if(G){let A=!1;for(const k of G)if(k.includes(s)){a.push(F),A=!0;break}if(A)break}}}return{labelList:n,contentList:a}}const Rp=s=>{var G;const{group:n,itemKey:a,onItemClick:o,currentIndex:u}=s,[c,m]=M.useState(),[h,b]=M.useState(0),[g,x]=M.useState("Copy code"),[T,R]=M.useState("Copy link");M.useEffect(()=>{L(u)},[a]);const L=F=>{const A=a.replace(`${n==null?void 0:n.prefix}_`,""),k=gt[n==null?void 0:n.key].get(A);b(F),k&&Op(k,F).then(B=>{m(B)})},j=F=>{L(F)},E=F=>{var A,k;if(F.target.localName==="a"&&F.target.hash&&((k=(A=F.target)==null?void 0:A.dataset)!=null&&k.name)){F.preventDefault();const{hash:B}=F.target;o(B.replace("#",""))}},V=()=>{x("Copied"),setTimeout(()=>{x("Copy code")},1e3)},J=()=>{R("Link copied"),setTimeout(()=>{R("Copy link")},3e3)};return P.jsx("div",{onClick:E,id:`#${a}`,children:P.jsxs("div",{className:"manual-content-wrapper",children:[P.jsxs("div",{className:"manual-content-header",children:[P.jsxs("div",{children:[P.jsx("h3",{className:"manual-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&P.jsx("span",{className:"manual-content-header-overloads",children:c==null?void 0:c.overloads})]}),P.jsx(xn,{text:(c==null?void 0:c.name)||"",onCopy:J,children:P.jsx("div",{"data-tooltip":T,className:"manual-content-btn",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:P.jsxs("g",{fill:"currentColor",children:[P.jsx("path",{fillRule:"nonzero",d:"M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"}),P.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(G=c==null?void 0:c.desc)==null?void 0:G.map((F,A)=>P.jsx("div",{dangerouslySetInnerHTML:{__html:F},className:"manual-content-text"},A)),(c==null?void 0:c.type)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"type"}),P.jsx("div",{className:"manual-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&P.jsxs(M.Fragment,{children:[P.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(c!=null&&c.overloads)&&"& Overloads"]}),c.syntax.map((F,A)=>{var k;return(((k=c.syntax)==null?void 0:k.length)||0)>1?P.jsx("div",{onClick:()=>j(A),children:P.jsx("pre",{className:`manual-content-syntax with-overloads ${A===h?"selected":""}`,children:F})},A):P.jsx("pre",{className:"manual-content-syntax",children:F},A)})]}),(c==null?void 0:c.args)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),c.args.map((F,A)=>P.jsxs("div",{className:"manual-content-text",children:[P.jsx("span",{className:"manual-content-args-label",children:F.label})," ",P.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},A))]}),(c==null?void 0:c.fields)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"fields"}),c.fields.map((F,A)=>P.jsxs("div",{className:"manual-content-text",children:[P.jsx("span",{className:"manual-content-args-label",children:F.label})," ",P.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},A))]}),(c==null?void 0:c.examples)&&P.jsxs(M.Fragment,{children:[P.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[P.jsx("div",{children:P.jsx("span",{children:"example"})}),P.jsx(xn,{text:c.originalExample||"",onCopy:V,children:P.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:P.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),P.jsx("pre",{className:"manual-content-example",children:P.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((F,A)=>P.jsxs(M.Fragment,{children:[F.desc.map((k,B)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:k}},B)),P.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[P.jsx("div",{children:P.jsx("span",{children:"example"})}),P.jsx(xn,{text:F.originalExample||"",onCopy:V,children:P.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:P.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),P.jsx("pre",{className:"manual-content-example",children:P.jsx("code",{dangerouslySetInnerHTML:{__html:F.examples||""}})})]},A)),(c==null?void 0:c.returns)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"returns"}),c.returns.map((F,A)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},A))]}),(c==null?void 0:c.remarks)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),c.remarks.map((F,A)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},A))]}),(c==null?void 0:c.seeAlso)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),P.jsx("div",{className:"manual-content-see_also",children:c.seeAlso.map((F,A)=>P.jsx("a",{className:"manual-content-see_also-tag","data-name":F==null?void 0:F.name,href:F==null?void 0:F.link,children:F==null?void 0:F.name},A))})]})]})})};qe.languages.register({id:Re}),qe.editor.defineTheme("vs-dark",ln),qe.editor.defineTheme("vs",on),qe.languages.setMonarchTokensProvider(Re,sn),qe.languages.setLanguageConfiguration(Re,nn);const Lp=({theme:s="vs-dark",currentKey:n,currentIndex:a=0})=>{const[o,u]=M.useState(ca[0]),[c,m]=M.useState(null),[h,b]=M.useState(0),[g,x]=M.useState(""),[T,R]=M.useState("var_bar_index"),L=M.useRef(null),j=M.useRef(null),E=k=>{k.key===(o==null?void 0:o.key)&&!(o!=null&&o.isHidden)?u({...k,isHidden:!0}):u(k)};M.useEffect(()=>{qe.editor.setTheme(s)},[s]),M.useEffect(()=>{if(n){const[k]=n.split("_"),B=ca.find(H=>k===H.prefix);B&&(b(a),F(B,n))}},[n]);const V=(k,B)=>{var H;k!==T&&(B&&u(B),b(0),R(k),(H=j.current)==null||H.scrollTo({top:0}))},J=k=>{if(k.target.value.trim()==="")G();else{x(k.target.value);const B=Ep(k.target.value);m(B)}},G=()=>{x(""),m(null),setTimeout(()=>{var k,B;(B=(k=L.current)==null?void 0:k.querySelector(`a[data-href="${T}"]`))==null||B.scrollIntoView(!0)},10)},F=(k,B)=>{var H;u(k),R(B),setTimeout(()=>{var le,ie;(ie=(le=L.current)==null?void 0:le.querySelector(`a[data-href="${B}"]`))==null||ie.scrollIntoView(!0)},10),(H=j.current)==null||H.scrollTo({top:0})},A=k=>{const B=ca.find(H=>k.startsWith(H.prefix));B&&F(B,k)};return P.jsxs("div",{className:`${s} manual-warpper`,children:[P.jsxs("div",{className:"manual-left",children:[P.jsxs("div",{className:"manual-search",children:[P.jsx("span",{className:"manual-search-icon",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:P.jsx("path",{fillRule:"evenodd",d:"M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z"})})}),P.jsx("input",{onChange:J,spellCheck:"false",value:g,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),P.jsx("span",{onClick:G,className:`manual-search-clear ${g?"":"hide"}`,children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:P.jsx("path",{d:"M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z"})})})]}),P.jsx("div",{className:`manual-group-search-list manual-scroll ${g?"":"hide"}`,children:P.jsxs("div",{children:[c==null?void 0:c.labelList.map(k=>P.jsx("a",{onClick:B=>{B.preventDefault(),V(k.key,k.group)},className:`manual-group-body-item ${k.key===T?"manual-group-body-item-selected":""}`,"data-href":k.key,href:`#${k.key}`,children:k.label},`search_${k.key}`)),P.jsx("div",{className:"manual-content-separator"}),c==null?void 0:c.contentList.map(k=>P.jsx("a",{onClick:B=>{B.preventDefault(),V(k.key,k.group)},className:`manual-group-body-item ${k.key===T?"manual-group-body-item-selected":""}`,"data-href":k.key,href:`#${k.key}`,children:k.label},`search_${k.key}`))]})}),P.jsx("div",{className:`manual-group-list manual-scroll ${g?"hide":""}`,ref:L,children:ca.map(k=>{var B,H;return P.jsxs(M.Fragment,{children:[P.jsx("div",{onClick:()=>E(k),className:`manual-group-title ${k.key===(o==null?void 0:o.key)&&!(o!=null&&o.isHidden)?"active":""}`,children:k.title}),P.jsx("div",{className:`manual-group-body manual-scroll ${k.key!==(o==null?void 0:o.key)||o!=null&&o.isHidden?"hide":""}`,children:(H=(B=ao[k.key])==null?void 0:B.sort().filter(le=>!ro.includes(le)))==null?void 0:H.map(le=>{const ie=`${k.prefix}_${le}`;return P.jsx("a",{onClick:ce=>{ce.preventDefault(),V(ie)},className:`manual-group-body-item ${ie===T?"manual-group-body-item-selected":""}`,"data-href":ie,href:`#${ie}`,children:`${le}${k.prefix==="fun"?"()":""}`},ie)})})]},k.key)})})]}),P.jsx("div",{ref:j,className:"manual-right manual-scroll",children:P.jsx(Rp,{currentIndex:h,group:o,itemKey:T,onItemClick:A})})]})};C.ReferenceManual=Lp,C.TradingVueDiffEditor=fp,C.TradingVueEditor=mp,C.parseTcc=wo,C.removeScript=cp,C.scriptsRun=vo,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
145
+ `))!=null&&o.includes(s)){a.push(F),A=!0;break}}if(A)break}if(Z){let A=!1;for(const k of Z){const{name:B,desc:H,type:le}=k;if(B.includes(s)||H!=null&&H.includes(s)||le!=null&&le.includes(s)){a.push(F),A=!0;break}}if(A)break}if(G){let A=!1;for(const k of G)if(k.includes(s)){a.push(F),A=!0;break}if(A)break}}}return{labelList:n,contentList:a}}const Rp=s=>{var G;const{group:n,itemKey:a,onItemClick:o,currentIndex:u}=s,[c,m]=M.useState(),[h,b]=M.useState(0),[g,x]=M.useState("Copy code"),[T,R]=M.useState("Copy link");M.useEffect(()=>{L(u)},[a]);const L=F=>{const A=a.replace(`${n==null?void 0:n.prefix}_`,""),k=gt[n==null?void 0:n.key].get(A);b(F),k&&Op(k,F).then(B=>{m(B)})},j=F=>{L(F)},E=F=>{var A,k;if(F.target.localName==="a"&&F.target.hash&&((k=(A=F.target)==null?void 0:A.dataset)!=null&&k.name)){F.preventDefault();const{hash:B}=F.target;o(B.replace("#",""))}},V=()=>{x("Copied"),setTimeout(()=>{x("Copy code")},1e3)},Z=()=>{R("Link copied"),setTimeout(()=>{R("Copy link")},3e3)};return P.jsx("div",{onClick:E,id:`#${a}`,children:P.jsxs("div",{className:"manual-content-wrapper",children:[P.jsxs("div",{className:"manual-content-header",children:[P.jsxs("div",{children:[P.jsx("h3",{className:"manual-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&P.jsx("span",{className:"manual-content-header-overloads",children:c==null?void 0:c.overloads})]}),P.jsx(xn,{text:(c==null?void 0:c.name)||"",onCopy:Z,children:P.jsx("div",{"data-tooltip":T,className:"manual-content-btn",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:P.jsxs("g",{fill:"currentColor",children:[P.jsx("path",{fillRule:"nonzero",d:"M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"}),P.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(G=c==null?void 0:c.desc)==null?void 0:G.map((F,A)=>P.jsx("div",{dangerouslySetInnerHTML:{__html:F},className:"manual-content-text"},A)),(c==null?void 0:c.type)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"type"}),P.jsx("div",{className:"manual-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&P.jsxs(M.Fragment,{children:[P.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(c!=null&&c.overloads)&&"& Overloads"]}),c.syntax.map((F,A)=>{var k;return(((k=c.syntax)==null?void 0:k.length)||0)>1?P.jsx("div",{onClick:()=>j(A),children:P.jsx("pre",{className:`manual-content-syntax with-overloads ${A===h?"selected":""}`,children:F})},A):P.jsx("pre",{className:"manual-content-syntax",children:F},A)})]}),(c==null?void 0:c.args)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),c.args.map((F,A)=>P.jsxs("div",{className:"manual-content-text",children:[P.jsx("span",{className:"manual-content-args-label",children:F.label})," ",P.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},A))]}),(c==null?void 0:c.fields)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"fields"}),c.fields.map((F,A)=>P.jsxs("div",{className:"manual-content-text",children:[P.jsx("span",{className:"manual-content-args-label",children:F.label})," ",P.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},A))]}),(c==null?void 0:c.examples)&&P.jsxs(M.Fragment,{children:[P.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[P.jsx("div",{children:P.jsx("span",{children:"example"})}),P.jsx(xn,{text:c.originalExample||"",onCopy:V,children:P.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:P.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),P.jsx("pre",{className:"manual-content-example",children:P.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((F,A)=>P.jsxs(M.Fragment,{children:[F.desc.map((k,B)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:k}},B)),P.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[P.jsx("div",{children:P.jsx("span",{children:"example"})}),P.jsx(xn,{text:F.originalExample||"",onCopy:V,children:P.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:P.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),P.jsx("pre",{className:"manual-content-example",children:P.jsx("code",{dangerouslySetInnerHTML:{__html:F.examples||""}})})]},A)),(c==null?void 0:c.returns)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"returns"}),c.returns.map((F,A)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},A))]}),(c==null?void 0:c.remarks)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),c.remarks.map((F,A)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},A))]}),(c==null?void 0:c.seeAlso)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),P.jsx("div",{className:"manual-content-see_also",children:c.seeAlso.map((F,A)=>P.jsx("a",{className:"manual-content-see_also-tag","data-name":F==null?void 0:F.name,href:F==null?void 0:F.link,children:F==null?void 0:F.name},A))})]})]})})};qe.languages.register({id:Re}),qe.editor.defineTheme("vs-dark",ln),qe.editor.defineTheme("vs",on),qe.languages.setMonarchTokensProvider(Re,sn),qe.languages.setLanguageConfiguration(Re,nn);const Lp=({theme:s="vs-dark",currentKey:n,currentIndex:a=0})=>{const[o,u]=M.useState(ca[0]),[c,m]=M.useState(null),[h,b]=M.useState(0),[g,x]=M.useState(""),[T,R]=M.useState("var_bar_index"),L=M.useRef(null),j=M.useRef(null),E=k=>{k.key===(o==null?void 0:o.key)&&!(o!=null&&o.isHidden)?u({...k,isHidden:!0}):u(k)};M.useEffect(()=>{qe.editor.setTheme(s)},[s]),M.useEffect(()=>{if(n){const[k]=n.split("_"),B=ca.find(H=>k===H.prefix);B&&(b(a),F(B,n))}},[n]);const V=(k,B)=>{var H;k!==T&&(B&&u(B),b(0),R(k),(H=j.current)==null||H.scrollTo({top:0}))},Z=k=>{if(k.target.value.trim()==="")G();else{x(k.target.value);const B=Ep(k.target.value);m(B)}},G=()=>{x(""),m(null),setTimeout(()=>{var k,B;(B=(k=L.current)==null?void 0:k.querySelector(`a[data-href="${T}"]`))==null||B.scrollIntoView(!0)},10)},F=(k,B)=>{var H;u(k),R(B),setTimeout(()=>{var le,ie;(ie=(le=L.current)==null?void 0:le.querySelector(`a[data-href="${B}"]`))==null||ie.scrollIntoView(!0)},10),(H=j.current)==null||H.scrollTo({top:0})},A=k=>{const B=ca.find(H=>k.startsWith(H.prefix));B&&F(B,k)};return P.jsxs("div",{className:`${s} manual-warpper`,children:[P.jsxs("div",{className:"manual-left",children:[P.jsxs("div",{className:"manual-search",children:[P.jsx("span",{className:"manual-search-icon",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:P.jsx("path",{fillRule:"evenodd",d:"M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z"})})}),P.jsx("input",{onChange:Z,spellCheck:"false",value:g,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),P.jsx("span",{onClick:G,className:`manual-search-clear ${g?"":"hide"}`,children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:P.jsx("path",{d:"M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z"})})})]}),P.jsx("div",{className:`manual-group-search-list manual-scroll ${g?"":"hide"}`,children:P.jsxs("div",{children:[c==null?void 0:c.labelList.map(k=>P.jsx("a",{onClick:B=>{B.preventDefault(),V(k.key,k.group)},className:`manual-group-body-item ${k.key===T?"manual-group-body-item-selected":""}`,"data-href":k.key,href:`#${k.key}`,children:k.label},`search_${k.key}`)),P.jsx("div",{className:"manual-content-separator"}),c==null?void 0:c.contentList.map(k=>P.jsx("a",{onClick:B=>{B.preventDefault(),V(k.key,k.group)},className:`manual-group-body-item ${k.key===T?"manual-group-body-item-selected":""}`,"data-href":k.key,href:`#${k.key}`,children:k.label},`search_${k.key}`))]})}),P.jsx("div",{className:`manual-group-list manual-scroll ${g?"hide":""}`,ref:L,children:ca.map(k=>{var B,H;return P.jsxs(M.Fragment,{children:[P.jsx("div",{onClick:()=>E(k),className:`manual-group-title ${k.key===(o==null?void 0:o.key)&&!(o!=null&&o.isHidden)?"active":""}`,children:k.title}),P.jsx("div",{className:`manual-group-body manual-scroll ${k.key!==(o==null?void 0:o.key)||o!=null&&o.isHidden?"hide":""}`,children:(H=(B=ao[k.key])==null?void 0:B.sort().filter(le=>!ro.includes(le)))==null?void 0:H.map(le=>{const ie=`${k.prefix}_${le}`;return P.jsx("a",{onClick:ce=>{ce.preventDefault(),V(ie)},className:`manual-group-body-item ${ie===T?"manual-group-body-item-selected":""}`,"data-href":ie,href:`#${ie}`,children:`${le}${k.prefix==="fun"?"()":""}`},ie)})})]},k.key)})})]}),P.jsx("div",{ref:j,className:"manual-right manual-scroll",children:P.jsx(Rp,{currentIndex:h,group:o,itemKey:T,onItemClick:A})})]})};C.ReferenceManual=Lp,C.TradingVueDiffEditor=fp,C.TradingVueEditor=mp,C.parseTcc=wo,C.removeScript=cp,C.scriptsRun=vo,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});