@guihz/trading-vue-editor-tes 0.0.240 → 0.0.242
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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}.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-scrollable-element{box-shadow:0 2px 4px #0003!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}.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}.vs-dark.manual-page-warpper{color:#d1d4dc}.manual-page-warpper{display:flex;height:100%;text-align:left;color:#131722;opacity:0}.show-warpper{opacity:1}.manual-page-title{box-sizing:border-box;color:#131722;font-size:24px;font-weight:700;line-height:32px;margin:0;padding:40px 25px 0}.vs-dark .manual-page-title{color:#d1d4dc}.manual-page-header{color:#131722;font-size:20px;font-weight:700;letter-spacing:.6px;line-height:28px;margin:0;padding:25px;text-transform:capitalize}.vs-dark .manual-page-header{color:#d1d4dc}.vs-dark .manual-page-left{border-right-color:#434651}.manual-page-left{border-right:none;box-sizing:border-box;display:flex;flex:0 0 240px;flex-direction:column;height:100%;margin-right:20px;padding-bottom:20px}.manual-page-group-container{height:0;flex:1;overflow:hidden}.vs-dark .manual-page-right{background:#141822}.manual-page-right{flex:1;width:0;-webkit-user-select:text;user-select:text;display:flex;flex-direction:column;background:#fff;border-radius:6px}.manual-page-group-search-list,.manual-page-group-list{background:#fff;border-radius:6px}.vs-dark .manual-page-group-search-list,.vs-dark .manual-page-group-list{background:#141822}.manual-page-scroll{max-height:100%;overflow-y:auto;overflow-x:hidden}.vs-dark .manual-page-search{border-bottom-color:#434651;background:#141822}.manual-page-search{display:flex;align-items:center;flex:0 0 54px;padding-left:16.5px;margin-bottom:20px;background:#fff;border-radius:6px}.manual-page-search-icon{height:18px;font-size:14px;opacity:.8;pointer-events:none;transition:opacity .35s ease}.manual-page-search-icon svg{fill:#a3a6af}.manual-page-search-input{background-color:transparent;color:inherit;height:29px;width:146px;margin-left:5px;font-size:16px;border:none;outline:none}.vs-dark .manual-page-search-clear svg{fill:#d1d4dc}.manual-page-search-clear svg{fill:#434651}.manual-page-search-clear{cursor:pointer;opacity:.5;text-align:center;transition:opacity .35s ease;width:36px;font-size:14px}.manual-page-search-clear:hover{opacity:1;transition-duration:60ms}.manual-page-group-list{display:flex;flex:1 1 100%;flex-direction:column;overflow-y:auto;text-align:left}.manual-page-group-search-list{flex:1 1 100%;overflow-y:auto;text-align:left}.vs-dark .manual-page-content-separator{background-color:#363a45}.manual-page-content-separator{background-color:#e0e3eb;height:1px}.vs-dark .manual-page-group-title{color:#d1d4dc;border-top-color:#434651}.manual-page-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-top:1px solid #e0e3eb;-webkit-user-select:none;user-select:none}.manual-page-group-title:nth-child(1){border-top:none}.vs-dark .manual-page-group-title.active{background-color:#2a2e39;border-top-color:#2a2e39;color:#d1d4dc}.manual-page-group-title.active{background-color:#e3effd;border-top-color:#e3effd;color:#131722}.vs-dark .manual-page-group-body{border-bottom-color:#434651}.manual-page-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)}.manual-page-group-body.hide,.manual-page-search-clear.hide,.manual-page-group-list.hide,.manual-page-group-search-list.hide{display:none}.vs-dark .manual-page-group-body-item{color:#b2b5be}.manual-page-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}.manual-page-group-body-item-selected:before{background-color:#2962ff;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.manual-page-content-wrapper{box-sizing:border-box;padding:30px 25px 25px;position:relative}.manual-page-content-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:2px}.vs-dark .manual-page-content-header-overloads{background-color:#2a2e39}.manual-page-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-page-content-header-title{color:#d1d4dc}.manual-page-content-header-title{font-size:18px;line-height:26px;color:#131722;font-weight:700;display:inline-block;margin:0}.vs-dark .manual-page-content-btn{color:#d1d4dc}.manual-page-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}.reference-item-selected .manual-page-content-header-title{color:#2962ff}.vs-dark .reference-item-selected .manual-page-content-header-title{color:#5b9cf6}.vs-dark .manual-page-current-item-bg{background-color:#132042}.manual-page-current-item-bg{background-color:#bbd9fb}.vs-dark .manual-page-group-body-item-selected{fill:#2962ff;color:#2962ff;background-color:#141822}.manual-page-group-body-item-selected{color:#2962ff;fill:#2962ff;background-color:#fff}.vs-dark .manual-page-content-btn:hover{background-color:#2a2e39}.manual-page-content-btn:hover{background-color:#f0f3fa}.vs-dark .manual-page-content-args-label{color:#d1d4dc}.manual-page-content-args-label{color:#131722;font-weight:700}.vs-dark .manual-page-content-syntax{background-color:#2a2e39;color:#d1d4dc}.manual-page-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-page-content-text{color:#d1d4dc}.manual-page-content-text{font-size:14px;line-height:21px;color:#131722;margin-top:8px}.vs-dark .manual-page-content-text-link{fill:#5b9cf6;color:#5b9cf6}.vs-dark .manual-page-content-text-link:hover{fill:#3179f5;color:#3179f5}.manual-page-content-text-link{color:#2962ff;fill:#2962ff}.manual-page-content-text-link:hover{color:#1e53e5;fill:#1e53e5}.vs-dark .manual-page-content-text code{background-color:#2a2e39}.manual-page-content-text code{background-color:#e0e3eb;border-radius:3px;padding:0 .4em}.vs-dark .manual-page-content-sub-title{color:#868993}.manual-page-content-sub-title{color:#6a6d78;font-size:11px;letter-spacing:.4px;line-height:16px;margin-top:24px;text-transform:uppercase}.manual-page-content-example-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.vs-dark .manual-page-content-example-copy{color:#868993}.manual-page-content-example-copy{color:#6a6d78}.vs-dark .manual-page-content-example{background-color:#2a2e39}.manual-page-content-example{background-color:#e3effd;border-radius:8px;box-shadow:none;margin-top:0;overflow:hidden}.manual-page-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-page-content-see_also{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;-webkit-user-select:none;user-select:none}.vs-dark .manual-page-content-see_also-tag{background-color:#1e222d;color:#d1d4dc}.vs-dark .manual-page-content-see_also-tag:hover{background-color:#363a45}.manual-page-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-page-content-see_also-tag:hover{background-color:#f0f3fa}.manual-page-scroll::-webkit-scrollbar{height:5px;width:5px}.manual-page-scroll-none::-webkit-scrollbar{height:0px;width:0px}.manual-page-scroll::-webkit-scrollbar-corner{display:none}.vs-dark .manual-page-scroll::-webkit-scrollbar-thumb,.vs-dark code::-webkit-scrollbar-thumb{background-color:#363a45}.manual-page-scroll::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#9598a1;border:1px solid #0000;border-radius:3px}.manual-page-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
|
-
(function(L,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("monaco-editor"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","monaco-editor","react-dom"],S):(L=typeof globalThis<"u"?globalThis:L||self,S(L.vueEditor={},L.react,L["monaco-editor"],L["react-dom"]))})(this,function(L,S,Ne,ad){"use strict";var fo=document.createElement("style");fo.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}.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-scrollable-element{box-shadow:0 2px 4px #0003!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}.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}.vs-dark.manual-page-warpper{color:#d1d4dc}.manual-page-warpper{display:flex;height:100%;text-align:left;color:#131722;opacity:0}.show-warpper{opacity:1}.manual-page-title{box-sizing:border-box;color:#131722;font-size:24px;font-weight:700;line-height:32px;margin:0;padding:40px 25px 0}.vs-dark .manual-page-title{color:#d1d4dc}.manual-page-header{color:#131722;font-size:20px;font-weight:700;letter-spacing:.6px;line-height:28px;margin:0;padding:25px;text-transform:capitalize}.vs-dark .manual-page-header{color:#d1d4dc}.vs-dark .manual-page-left{border-right-color:#434651}.manual-page-left{border-right:none;box-sizing:border-box;display:flex;flex:0 0 240px;flex-direction:column;height:100%;margin-right:20px;padding-bottom:20px}.manual-page-group-container{height:0;flex:1;overflow:hidden}.vs-dark .manual-page-right{background:#141822}.manual-page-right{flex:1;width:0;-webkit-user-select:text;user-select:text;display:flex;flex-direction:column;background:#fff;border-radius:6px}.manual-page-group-search-list,.manual-page-group-list{background:#fff;border-radius:6px}.vs-dark .manual-page-group-search-list,.vs-dark .manual-page-group-list{background:#141822}.manual-page-scroll{max-height:100%;overflow-y:auto;overflow-x:hidden}.vs-dark .manual-page-search{border-bottom-color:#434651;background:#141822}.manual-page-search{display:flex;align-items:center;flex:0 0 54px;padding-left:16.5px;margin-bottom:20px;background:#fff;border-radius:6px}.manual-page-search-icon{height:18px;font-size:14px;opacity:.8;pointer-events:none;transition:opacity .35s ease}.manual-page-search-icon svg{fill:#a3a6af}.manual-page-search-input{background-color:transparent;color:inherit;height:29px;width:146px;margin-left:5px;font-size:16px;border:none;outline:none}.vs-dark .manual-page-search-clear svg{fill:#d1d4dc}.manual-page-search-clear svg{fill:#434651}.manual-page-search-clear{cursor:pointer;opacity:.5;text-align:center;transition:opacity .35s ease;width:36px;font-size:14px}.manual-page-search-clear:hover{opacity:1;transition-duration:60ms}.manual-page-group-list{display:flex;flex:1 1 100%;flex-direction:column;overflow-y:auto;text-align:left}.manual-page-group-search-list{flex:1 1 100%;overflow-y:auto;text-align:left}.vs-dark .manual-page-content-separator{background-color:#363a45}.manual-page-content-separator{background-color:#e0e3eb;height:1px}.vs-dark .manual-page-group-title{color:#d1d4dc;border-top-color:#434651}.manual-page-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-top:1px solid #e0e3eb;-webkit-user-select:none;user-select:none}.manual-page-group-title:nth-child(1){border-top:none}.vs-dark .manual-page-group-title.active{background-color:#2a2e39;border-top-color:#2a2e39;color:#d1d4dc}.manual-page-group-title.active{background-color:#e3effd;border-top-color:#e3effd;color:#131722}.vs-dark .manual-page-group-body{border-bottom-color:#434651}.manual-page-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)}.manual-page-group-body.hide,.manual-page-search-clear.hide,.manual-page-group-list.hide,.manual-page-group-search-list.hide{display:none}.vs-dark .manual-page-group-body-item{color:#b2b5be}.manual-page-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}.manual-page-group-body-item-selected:before{background-color:#2962ff;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.manual-page-content-wrapper{box-sizing:border-box;padding:30px 25px 25px;position:relative}.manual-page-content-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:2px}.vs-dark .manual-page-content-header-overloads{background-color:#2a2e39}.manual-page-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-page-content-header-title{color:#d1d4dc}.manual-page-content-header-title{font-size:18px;line-height:26px;color:#131722;font-weight:700;display:inline-block;margin:0}.vs-dark .manual-page-content-btn{color:#d1d4dc}.manual-page-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}.reference-item-selected .manual-page-content-header-title{color:#2962ff}.vs-dark .reference-item-selected .manual-page-content-header-title{color:#5b9cf6}.vs-dark .manual-page-current-item-bg{background-color:#132042}.manual-page-current-item-bg{background-color:#bbd9fb}.vs-dark .manual-page-group-body-item-selected{fill:#2962ff;color:#2962ff;background-color:#141822}.manual-page-group-body-item-selected{color:#2962ff;fill:#2962ff;background-color:#fff}.vs-dark .manual-page-content-btn:hover{background-color:#2a2e39}.manual-page-content-btn:hover{background-color:#f0f3fa}.vs-dark .manual-page-content-args-label{color:#d1d4dc}.manual-page-content-args-label{color:#131722;font-weight:700}.vs-dark .manual-page-content-syntax{background-color:#2a2e39;color:#d1d4dc}.manual-page-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-page-content-text{color:#d1d4dc}.manual-page-content-text{font-size:14px;line-height:21px;color:#131722;margin-top:8px}.vs-dark .manual-page-content-text-link{fill:#5b9cf6;color:#5b9cf6}.vs-dark .manual-page-content-text-link:hover{fill:#3179f5;color:#3179f5}.manual-page-content-text-link{color:#2962ff;fill:#2962ff}.manual-page-content-text-link:hover{color:#1e53e5;fill:#1e53e5}.vs-dark .manual-page-content-text code{background-color:#2a2e39}.manual-page-content-text code{background-color:#e0e3eb;border-radius:3px;padding:0 .4em}.vs-dark .manual-page-content-sub-title{color:#868993}.manual-page-content-sub-title{color:#6a6d78;font-size:11px;letter-spacing:.4px;line-height:16px;margin-top:24px;text-transform:uppercase}.manual-page-content-example-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.vs-dark .manual-page-content-example-copy{color:#868993}.manual-page-content-example-copy{color:#6a6d78}.vs-dark .manual-page-content-example{background-color:#2a2e39}.manual-page-content-example{background-color:#e3effd;border-radius:8px;box-shadow:none;margin-top:0;overflow:hidden}.manual-page-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-page-content-see_also{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;-webkit-user-select:none;user-select:none}.vs-dark .manual-page-content-see_also-tag{background-color:#1e222d;color:#d1d4dc}.vs-dark .manual-page-content-see_also-tag:hover{background-color:#363a45}.manual-page-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-page-content-see_also-tag:hover{background-color:#f0f3fa}.manual-page-scroll::-webkit-scrollbar{height:5px;width:5px}.manual-page-scroll-none::-webkit-scrollbar{height:0px;width:0px}.manual-page-scroll::-webkit-scrollbar-corner{display:none}.vs-dark .manual-page-scroll::-webkit-scrollbar-thumb,.vs-dark code::-webkit-scrollbar-thumb{background-color:#363a45}.manual-page-scroll::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#9598a1;border:1px solid #0000;border-radius:3px}.manual-page-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(fo);var ra=typeof document<"u"?document.currentScript:null,go;(function(a){a.Comment="comment",a.Text="text",a.String="string",a.Paren="paren",a.StringInvalid="string.invalid",a.ConstantNumericInteger="constant.numeric.integer",a.ConstantNumericFloat="constant.numeric.float",a.ConstantLanguage="constant.language",a.ConstantLanguageBoolean="constant.other.boolean",a.ConstantOtherColor="constant.other.color",a.SupportVariable="support.variable",a.SupportType="support.type",a.Keyword="keyword",a.KeywordEquals="keyword.equals",a.KeywordOperator="keyword.operator",a.CustomType="entity.name.type",a.VariableOther="variable.other",a.Property="variable.other.property",a.SupportFunction="support.function",a.SupportMethod="support.method",a.ImportedFunction="meta.function-call",a.Function="entity.name.function",a.ImportName="entity.name.module",a.ImportAlias="entity.name.module.name",a.ExtensionMethod="entity.name.method",a.Annotation="comment.annotation",a.PunctuationOperator="punctuation.operator",a.Empty="empty",a.Source="source"})(go||(go={}));var pt;(function(a){a.Type="type",a.Returns="Returns",a.Syntax="Syntax",a.Remarks="Remarks",a.Fields="Fields",a.Description="Description",a.Example="Example",a.EnumMembers="Enum members"})(pt||(pt={})),
|
2
|
+
(function(M,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react"),require("monaco-editor"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","monaco-editor","react-dom"],N):(M=typeof globalThis<"u"?globalThis:M||self,N(M.vueEditor={},M.react,M["monaco-editor"],M["react-dom"]))})(this,function(M,N,Ne,ad){"use strict";var fo=document.createElement("style");fo.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}.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-scrollable-element{box-shadow:0 2px 4px #0003!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}.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}.vs-dark.manual-page-warpper{color:#d1d4dc}.manual-page-warpper{display:flex;height:100%;text-align:left;color:#131722;opacity:0}.show-warpper{opacity:1}.manual-page-title{box-sizing:border-box;color:#131722;font-size:24px;font-weight:700;line-height:32px;margin:0;padding:40px 25px 0}.vs-dark .manual-page-title{color:#d1d4dc}.manual-page-header{color:#131722;font-size:20px;font-weight:700;letter-spacing:.6px;line-height:28px;margin:0;padding:25px;text-transform:capitalize}.vs-dark .manual-page-header{color:#d1d4dc}.vs-dark .manual-page-left{border-right-color:#434651}.manual-page-left{border-right:none;box-sizing:border-box;display:flex;flex:0 0 240px;flex-direction:column;height:100%;margin-right:20px;padding-bottom:20px}.manual-page-group-container{height:0;flex:1;overflow:hidden}.vs-dark .manual-page-right{background:#141822}.manual-page-right{flex:1;width:0;-webkit-user-select:text;user-select:text;display:flex;flex-direction:column;background:#fff;border-radius:6px}.manual-page-group-search-list,.manual-page-group-list{background:#fff;border-radius:6px}.vs-dark .manual-page-group-search-list,.vs-dark .manual-page-group-list{background:#141822}.manual-page-scroll{max-height:100%;overflow-y:auto;overflow-x:hidden}.vs-dark .manual-page-search{border-bottom-color:#434651;background:#141822}.manual-page-search{display:flex;align-items:center;flex:0 0 54px;padding-left:16.5px;margin-bottom:20px;background:#fff;border-radius:6px}.manual-page-search-icon{height:18px;font-size:14px;opacity:.8;pointer-events:none;transition:opacity .35s ease}.manual-page-search-icon svg{fill:#a3a6af}.manual-page-search-input{background-color:transparent;color:inherit;height:29px;width:146px;margin-left:5px;font-size:16px;border:none;outline:none}.vs-dark .manual-page-search-clear svg{fill:#d1d4dc}.manual-page-search-clear svg{fill:#434651}.manual-page-search-clear{cursor:pointer;opacity:.5;text-align:center;transition:opacity .35s ease;width:36px;font-size:14px}.manual-page-search-clear:hover{opacity:1;transition-duration:60ms}.manual-page-group-list{display:flex;flex:1 1 100%;flex-direction:column;overflow-y:auto;text-align:left}.manual-page-group-search-list{flex:1 1 100%;overflow-y:auto;text-align:left}.vs-dark .manual-page-content-separator{background-color:#363a45}.manual-page-content-separator{background-color:#e0e3eb;height:1px}.vs-dark .manual-page-group-title{color:#d1d4dc;border-top-color:#434651}.manual-page-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-top:1px solid #e0e3eb;-webkit-user-select:none;user-select:none}.manual-page-group-title:nth-child(1){border-top:none}.vs-dark .manual-page-group-title.active{background-color:#2a2e39;border-top-color:#2a2e39;color:#d1d4dc}.manual-page-group-title.active{background-color:#e3effd;border-top-color:#e3effd;color:#131722}.vs-dark .manual-page-group-body{border-bottom-color:#434651}.manual-page-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)}.manual-page-group-body.hide,.manual-page-search-clear.hide,.manual-page-group-list.hide,.manual-page-group-search-list.hide{display:none}.vs-dark .manual-page-group-body-item{color:#b2b5be}.manual-page-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}.manual-page-group-body-item-selected:before{background-color:#2962ff;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.manual-page-content-wrapper{box-sizing:border-box;padding:30px 25px 25px;position:relative}.manual-page-content-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:2px}.vs-dark .manual-page-content-header-overloads{background-color:#2a2e39}.manual-page-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-page-content-header-title{color:#d1d4dc}.manual-page-content-header-title{font-size:18px;line-height:26px;color:#131722;font-weight:700;display:inline-block;margin:0}.vs-dark .manual-page-content-btn{color:#d1d4dc}.manual-page-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}.reference-item-selected .manual-page-content-header-title{color:#2962ff}.vs-dark .reference-item-selected .manual-page-content-header-title{color:#5b9cf6}.vs-dark .manual-page-current-item-bg{background-color:#132042}.manual-page-current-item-bg{background-color:#bbd9fb}.vs-dark .manual-page-group-body-item-selected{fill:#2962ff;color:#2962ff;background-color:#141822}.manual-page-group-body-item-selected{color:#2962ff;fill:#2962ff;background-color:#fff}.vs-dark .manual-page-content-btn:hover{background-color:#2a2e39}.manual-page-content-btn:hover{background-color:#f0f3fa}.vs-dark .manual-page-content-args-label{color:#d1d4dc}.manual-page-content-args-label{color:#131722;font-weight:700}.vs-dark .manual-page-content-syntax{background-color:#2a2e39;color:#d1d4dc}.manual-page-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-page-content-text{color:#d1d4dc}.manual-page-content-text{font-size:14px;line-height:21px;color:#131722;margin-top:8px}.vs-dark .manual-page-content-text-link{fill:#5b9cf6;color:#5b9cf6}.vs-dark .manual-page-content-text-link:hover{fill:#3179f5;color:#3179f5}.manual-page-content-text-link{color:#2962ff;fill:#2962ff}.manual-page-content-text-link:hover{color:#1e53e5;fill:#1e53e5}.vs-dark .manual-page-content-text code{background-color:#2a2e39}.manual-page-content-text code{background-color:#e0e3eb;border-radius:3px;padding:0 .4em}.vs-dark .manual-page-content-sub-title{color:#868993}.manual-page-content-sub-title{color:#6a6d78;font-size:11px;letter-spacing:.4px;line-height:16px;margin-top:24px;text-transform:uppercase}.manual-page-content-example-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.vs-dark .manual-page-content-example-copy{color:#868993}.manual-page-content-example-copy{color:#6a6d78}.vs-dark .manual-page-content-example{background-color:#2a2e39}.manual-page-content-example{background-color:#e3effd;border-radius:8px;box-shadow:none;margin-top:0;overflow:hidden}.manual-page-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-page-content-see_also{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;-webkit-user-select:none;user-select:none}.vs-dark .manual-page-content-see_also-tag{background-color:#1e222d;color:#d1d4dc}.vs-dark .manual-page-content-see_also-tag:hover{background-color:#363a45}.manual-page-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-page-content-see_also-tag:hover{background-color:#f0f3fa}.manual-page-scroll::-webkit-scrollbar{height:5px;width:5px}.manual-page-scroll-none::-webkit-scrollbar{height:0px;width:0px}.manual-page-scroll::-webkit-scrollbar-corner{display:none}.vs-dark .manual-page-scroll::-webkit-scrollbar-thumb,.vs-dark code::-webkit-scrollbar-thumb{background-color:#363a45}.manual-page-scroll::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#9598a1;border:1px solid #0000;border-radius:3px}.manual-page-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(fo);var ra=typeof document<"u"?document.currentScript:null,go;(function(a){a.Comment="comment",a.Text="text",a.String="string",a.Paren="paren",a.StringInvalid="string.invalid",a.ConstantNumericInteger="constant.numeric.integer",a.ConstantNumericFloat="constant.numeric.float",a.ConstantLanguage="constant.language",a.ConstantLanguageBoolean="constant.other.boolean",a.ConstantOtherColor="constant.other.color",a.SupportVariable="support.variable",a.SupportType="support.type",a.Keyword="keyword",a.KeywordEquals="keyword.equals",a.KeywordOperator="keyword.operator",a.CustomType="entity.name.type",a.VariableOther="variable.other",a.Property="variable.other.property",a.SupportFunction="support.function",a.SupportMethod="support.method",a.ImportedFunction="meta.function-call",a.Function="entity.name.function",a.ImportName="entity.name.module",a.ImportAlias="entity.name.module.name",a.ExtensionMethod="entity.name.method",a.Annotation="comment.annotation",a.PunctuationOperator="punctuation.operator",a.Empty="empty",a.Source="source"})(go||(go={}));var pt;(function(a){a.Type="type",a.Returns="Returns",a.Syntax="Syntax",a.Remarks="Remarks",a.Fields="Fields",a.Description="Description",a.Example="Example",a.EnumMembers="Enum members"})(pt||(pt={})),M.Actions=void 0,function(a){a.Save="save",a.Find="find",a.TriggerConsole="trigger.console",a.RunScript="runScript",a.Open="open",a.NewWindow="newWindow",a.NewTab="newTab"}(M.Actions||(M.Actions={}));var fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nd(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Tn={exports:{}},gr={};/**
|
4
4
|
* @license React
|
5
5
|
* react-jsx-runtime.production.min.js
|
6
6
|
*
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
* This source code is licensed under the MIT license found in the
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
11
|
-
*/var bo;function id(){if(bo)return gr;bo=1;var a=
|
11
|
+
*/var bo;function id(){if(bo)return gr;bo=1;var a=N,s=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(u,m,_){var g,x={},h=null,D=null;_!==void 0&&(h=""+_),m.key!==void 0&&(h=""+m.key),m.ref!==void 0&&(D=m.ref);for(g in m)n.call(m,g)&&!l.hasOwnProperty(g)&&(x[g]=m[g]);if(u&&u.defaultProps)for(g in m=u.defaultProps,m)x[g]===void 0&&(x[g]=m[g]);return{$$typeof:s,type:u,key:h,ref:D,props:x,_owner:o.current}}return gr.Fragment=r,gr.jsx=c,gr.jsxs=c,gr}var br={};/**
|
12
12
|
* @license React
|
13
13
|
* react-jsx-runtime.development.js
|
14
14
|
*
|
@@ -16,18 +16,18 @@
|
|
16
16
|
*
|
17
17
|
* This source code is licensed under the MIT license found in the
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
19
|
-
*/var xo;function od(){return xo||(xo=1,process.env.NODE_ENV!=="production"&&function(){var a=
|
20
|
-
`+us+w}}var Zt=!1,Gs;{var Xs=typeof WeakMap=="function"?WeakMap:Map;Gs=new Xs}function Cs(w,
|
19
|
+
*/var xo;function od(){return xo||(xo=1,process.env.NODE_ENV!=="production"&&function(){var a=N,s=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),S=Symbol.iterator,R="@@iterator";function U(w){if(w===null||typeof w!="object")return null;var j=S&&w[S]||w[R];return typeof j=="function"?j:null}var K=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function H(w){{for(var j=arguments.length,G=new Array(j>1?j-1:0),ce=1;ce<j;ce++)G[ce-1]=arguments[ce];re("error",w,G)}}function re(w,j,G){{var ce=K.ReactDebugCurrentFrame,Ie=ce.getStackAddendum();Ie!==""&&(j+="%s",G=G.concat([Ie]));var Ce=G.map(function(Te){return String(Te)});Ce.unshift("Warning: "+j),Function.prototype.apply.call(console[w],console,Ce)}}var W=!1,Q=!1,C=!1,z=!1,V=!1,q;q=Symbol.for("react.module.reference");function A(w){return!!(typeof w=="string"||typeof w=="function"||w===n||w===l||V||w===o||w===_||w===g||z||w===D||W||Q||C||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===x||w.$$typeof===c||w.$$typeof===u||w.$$typeof===m||w.$$typeof===q||w.getModuleId!==void 0))}function L(w,j,G){var ce=w.displayName;if(ce)return ce;var Ie=j.displayName||j.name||"";return Ie!==""?G+"("+Ie+")":G}function Z(w){return w.displayName||"Context"}function ee(w){if(w==null)return null;if(typeof w.tag=="number"&&H("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case n:return"Fragment";case r:return"Portal";case l:return"Profiler";case o:return"StrictMode";case _:return"Suspense";case g:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case u:var j=w;return Z(j)+".Consumer";case c:var G=w;return Z(G._context)+".Provider";case m:return L(w,w.render,"ForwardRef");case x:var ce=w.displayName||null;return ce!==null?ce:ee(w.type)||"Memo";case h:{var Ie=w,Ce=Ie._payload,Te=Ie._init;try{return ee(Te(Ce))}catch{return null}}}return null}var ne=Object.assign,Y=0,le,xe,pe,_e,Ee,te,de;function Oe(){}Oe.__reactDisabledLog=!0;function Ge(){{if(Y===0){le=console.log,xe=console.info,pe=console.warn,_e=console.error,Ee=console.group,te=console.groupCollapsed,de=console.groupEnd;var w={configurable:!0,enumerable:!0,value:Oe,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}Y++}}function Qe(){{if(Y--,Y===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ne({},w,{value:le}),info:ne({},w,{value:xe}),warn:ne({},w,{value:pe}),error:ne({},w,{value:_e}),group:ne({},w,{value:Ee}),groupCollapsed:ne({},w,{value:te}),groupEnd:ne({},w,{value:de})})}Y<0&&H("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Rt=K.ReactCurrentDispatcher,us;function Vt(w,j,G){{if(us===void 0)try{throw Error()}catch(Ie){var ce=Ie.stack.trim().match(/\n( *(at )?)/);us=ce&&ce[1]||""}return`
|
20
|
+
`+us+w}}var Zt=!1,Gs;{var Xs=typeof WeakMap=="function"?WeakMap:Map;Gs=new Xs}function Cs(w,j){if(!w||Zt)return"";{var G=Gs.get(w);if(G!==void 0)return G}var ce;Zt=!0;var Ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ce;Ce=Rt.current,Rt.current=null,Ge();try{if(j){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(ut){ce=ut}Reflect.construct(w,[],Te)}else{try{Te.call()}catch(ut){ce=ut}w.call(Te.prototype)}}else{try{throw Error()}catch(ut){ce=ut}w()}}catch(ut){if(ut&&ce&&typeof ut.stack=="string"){for(var we=ut.stack.split(`
|
21
21
|
`),Je=ce.stack.split(`
|
22
22
|
`),Be=we.length-1,je=Je.length-1;Be>=1&&je>=0&&we[Be]!==Je[je];)je--;for(;Be>=1&&je>=0;Be--,je--)if(we[Be]!==Je[je]){if(Be!==1||je!==1)do if(Be--,je--,je<0||we[Be]!==Je[je]){var dt=`
|
23
|
-
`+we[Be].replace(" at new "," at ");return w.displayName&&dt.includes("<anonymous>")&&(dt=dt.replace("<anonymous>",w.displayName)),typeof w=="function"&&Gs.set(w,dt),dt}while(Be>=1&&je>=0);break}}}finally{Zt=!1,Rt.current=Ce,Qe(),Error.prepareStackTrace=Ie}var Bt=w?w.displayName||w.name:"",Ma=Bt?Vt(Bt):"";return typeof w=="function"&&Gs.set(w,Ma),Ma}function Ia(w,
|
23
|
+
`+we[Be].replace(" at new "," at ");return w.displayName&&dt.includes("<anonymous>")&&(dt=dt.replace("<anonymous>",w.displayName)),typeof w=="function"&&Gs.set(w,dt),dt}while(Be>=1&&je>=0);break}}}finally{Zt=!1,Rt.current=Ce,Qe(),Error.prepareStackTrace=Ie}var Bt=w?w.displayName||w.name:"",Ma=Bt?Vt(Bt):"";return typeof w=="function"&&Gs.set(w,Ma),Ma}function Ia(w,j,G){return Cs(w,!1)}function bt(w){var j=w.prototype;return!!(j&&j.isReactComponent)}function Gt(w,j,G){if(w==null)return"";if(typeof w=="function")return Cs(w,bt(w));if(typeof w=="string")return Vt(w);switch(w){case _:return Vt("Suspense");case g:return Vt("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case m:return Ia(w.render);case x:return Gt(w.type,j,G);case h:{var ce=w,Ie=ce._payload,Ce=ce._init;try{return Gt(Ce(Ie),j,G)}catch{}}}return""}var Ys=Object.prototype.hasOwnProperty,qt={},zr=K.ReactDebugCurrentFrame;function Qs(w){if(w){var j=w._owner,G=Gt(w.type,w._source,j?j.type:null);zr.setExtraStackFrame(G)}else zr.setExtraStackFrame(null)}function Ss(w,j,G,ce,Ie){{var Ce=Function.call.bind(Ys);for(var Te in w)if(Ce(w,Te)){var we=void 0;try{if(typeof w[Te]!="function"){var Je=Error((ce||"React class")+": "+G+" type `"+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[Te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Je.name="Invariant Violation",Je}we=w[Te](j,Te,ce,G,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Be){we=Be}we&&!(we instanceof Error)&&(Qs(Ie),H("%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).",ce||"React class",G,Te,typeof we),Qs(null)),we instanceof Error&&!(we.message in qt)&&(qt[we.message]=!0,Qs(Ie),H("Failed %s type: %s",G,we.message),Qs(null))}}}var xt=Array.isArray;function Jt(w){return xt(w)}function Zs(w){{var j=typeof Symbol=="function"&&Symbol.toStringTag,G=j&&w[Symbol.toStringTag]||w.constructor.name||"Object";return G}}function Zn(w){try{return ms(w),!1}catch{return!0}}function ms(w){return""+w}function Aa(w){if(Zn(w))return H("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Zs(w)),ms(w)}var Ft=K.ReactCurrentOwner,ys={key:!0,ref:!0,__self:!0,__source:!0},Js,er,zs;zs={};function Nr(w){if(Ys.call(w,"ref")){var j=Object.getOwnPropertyDescriptor(w,"ref").get;if(j&&j.isReactWarning)return!1}return w.ref!==void 0}function Er(w){if(Ys.call(w,"key")){var j=Object.getOwnPropertyDescriptor(w,"key").get;if(j&&j.isReactWarning)return!1}return w.key!==void 0}function Lr(w,j){if(typeof w.ref=="string"&&Ft.current&&j&&Ft.current.stateNode!==j){var G=ee(Ft.current.type);zs[G]||(H('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ee(Ft.current.type),w.ref),zs[G]=!0)}}function Mr(w,j){{var G=function(){Js||(Js=!0,H("%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)",j))};G.isReactWarning=!0,Object.defineProperty(w,"key",{get:G,configurable:!0})}}function Or(w,j){{var G=function(){er||(er=!0,H("%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)",j))};G.isReactWarning=!0,Object.defineProperty(w,"ref",{get:G,configurable:!0})}}var Pr=function(w,j,G,ce,Ie,Ce,Te){var we={$$typeof:s,type:w,key:j,ref:G,props:Te,_owner:Ce};return we._store={},Object.defineProperty(we._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(we,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.defineProperty(we,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ie}),Object.freeze&&(Object.freeze(we.props),Object.freeze(we)),we};function Jn(w,j,G,ce,Ie){{var Ce,Te={},we=null,Je=null;G!==void 0&&(Aa(G),we=""+G),Er(j)&&(Aa(j.key),we=""+j.key),Nr(j)&&(Je=j.ref,Lr(j,Ie));for(Ce in j)Ys.call(j,Ce)&&!ys.hasOwnProperty(Ce)&&(Te[Ce]=j[Ce]);if(w&&w.defaultProps){var Be=w.defaultProps;for(Ce in Be)Te[Ce]===void 0&&(Te[Ce]=Be[Ce])}if(we||Je){var je=typeof w=="function"?w.displayName||w.name||"Unknown":w;we&&Mr(Te,je),Je&&Or(Te,je)}return Pr(w,we,Je,Ie,ce,Ft.current,Te)}}var Rr=K.ReactCurrentOwner,qa=K.ReactDebugCurrentFrame;function es(w){if(w){var j=w._owner,G=Gt(w.type,w._source,j?j.type:null);qa.setExtraStackFrame(G)}else qa.setExtraStackFrame(null)}var tr;tr=!1;function Fr(w){return typeof w=="object"&&w!==null&&w.$$typeof===s}function Ca(){{if(Rr.current){var w=ee(Rr.current.type);if(w)return`
|
24
24
|
|
25
|
-
Check the render method of \``+w+"`."}return""}}function ei(w){{if(w!==void 0){var
|
25
|
+
Check the render method of \``+w+"`."}return""}}function ei(w){{if(w!==void 0){var j=w.fileName.replace(/^.*[\\\/]/,""),G=w.lineNumber;return`
|
26
26
|
|
27
|
-
Check your code at `+
|
27
|
+
Check your code at `+j+":"+G+"."}return""}}var Sa={};function za(w){{var j=Ca();if(!j){var G=typeof w=="string"?w:w.displayName||w.name;G&&(j=`
|
28
28
|
|
29
|
-
Check the top-level render call using <`+G+">.")}return
|
30
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fd(a,s,r){return s in a?Object.defineProperty(a,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[s]=r,a}function To(a,s){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);s&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),r.push.apply(r,n)}return r}function ko(a){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?To(Object(r),!0).forEach(function(n){fd(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):To(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}function gd(){for(var a=arguments.length,s=new Array(a),r=0;r<a;r++)s[r]=arguments[r];return function(n){return s.reduceRight(function(o,l){return l(o)},n)}}function xr(a){return function s(){for(var r=this,n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return o.length>=a.length?a.apply(this,o):function(){for(var c=arguments.length,
|
29
|
+
Check the top-level render call using <`+G+">.")}return j}}function Na(w,j){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var G=za(j);if(Sa[G])return;Sa[G]=!0;var ce="";w&&w._owner&&w._owner!==Rr.current&&(ce=" It was passed a child from "+ee(w._owner.type)+"."),es(w),H('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',G,ce),es(null)}}function Ea(w,j){{if(typeof w!="object")return;if(Jt(w))for(var G=0;G<w.length;G++){var ce=w[G];Fr(ce)&&Na(ce,j)}else if(Fr(w))w._store&&(w._store.validated=!0);else if(w){var Ie=U(w);if(typeof Ie=="function"&&Ie!==w.entries)for(var Ce=Ie.call(w),Te;!(Te=Ce.next()).done;)Fr(Te.value)&&Na(Te.value,j)}}}function ti(w){{var j=w.type;if(j==null||typeof j=="string")return;var G;if(typeof j=="function")G=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===m||j.$$typeof===x))G=j.propTypes;else return;if(G){var ce=ee(j);Ss(G,w.props,"prop",ce,w)}else if(j.PropTypes!==void 0&&!tr){tr=!0;var Ie=ee(j);H("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ie||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&H("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Br(w){{for(var j=Object.keys(w.props),G=0;G<j.length;G++){var ce=j[G];if(ce!=="children"&&ce!=="key"){es(w),H("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ce),es(null);break}}w.ref!==null&&(es(w),H("Invalid attribute `ref` supplied to `React.Fragment`."),es(null))}}function La(w,j,G,ce,Ie,Ce){{var Te=A(w);if(!Te){var we="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(we+=" 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 Je=ei(Ie);Je?we+=Je:we+=Ca();var Be;w===null?Be="null":Jt(w)?Be="array":w!==void 0&&w.$$typeof===s?(Be="<"+(ee(w.type)||"Unknown")+" />",we=" Did you accidentally export a JSX literal instead of a component?"):Be=typeof w,H("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Be,we)}var je=Jn(w,j,G,Ie,Ce);if(je==null)return je;if(Te){var dt=j.children;if(dt!==void 0)if(ce)if(Jt(dt)){for(var Bt=0;Bt<dt.length;Bt++)Ea(dt[Bt],w);Object.freeze&&Object.freeze(dt)}else H("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 Ea(dt,w)}return w===n?Br(je):ti(je),je}}function Ur(w,j,G){return La(w,j,G,!0)}function si(w,j,G){return La(w,j,G,!1)}var ri=si,ai=Ur;br.Fragment=n,br.jsx=ri,br.jsxs=ai}()),br}process.env.NODE_ENV==="production"?Tn.exports=id():Tn.exports=od();var T=Tn.exports;function ld(a,s,r){return s in a?Object.defineProperty(a,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[s]=r,a}function ho(a,s){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);s&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),r.push.apply(r,n)}return r}function wo(a){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?ho(Object(r),!0).forEach(function(n){ld(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):ho(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}function cd(a,s){if(a==null)return{};var r={},n=Object.keys(a),o,l;for(l=0;l<n.length;l++)o=n[l],!(s.indexOf(o)>=0)&&(r[o]=a[o]);return r}function pd(a,s){if(a==null)return{};var r=cd(a,s),n,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);for(o=0;o<l.length;o++)n=l[o],!(s.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(a,n)&&(r[n]=a[n])}return r}function dd(a,s){return ud(a)||md(a,s)||yd(a,s)||_d()}function ud(a){if(Array.isArray(a))return a}function md(a,s){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(a)))){var r=[],n=!0,o=!1,l=void 0;try{for(var c=a[Symbol.iterator](),u;!(n=(u=c.next()).done)&&(r.push(u.value),!(s&&r.length===s));n=!0);}catch(m){o=!0,l=m}finally{try{!n&&c.return!=null&&c.return()}finally{if(o)throw l}}return r}}function yd(a,s){if(a){if(typeof a=="string")return vo(a,s);var r=Object.prototype.toString.call(a).slice(8,-1);if(r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set")return Array.from(a);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vo(a,s)}}function vo(a,s){(s==null||s>a.length)&&(s=a.length);for(var r=0,n=new Array(s);r<s;r++)n[r]=a[r];return n}function _d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
30
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fd(a,s,r){return s in a?Object.defineProperty(a,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[s]=r,a}function To(a,s){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);s&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),r.push.apply(r,n)}return r}function ko(a){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?To(Object(r),!0).forEach(function(n){fd(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):To(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}function gd(){for(var a=arguments.length,s=new Array(a),r=0;r<a;r++)s[r]=arguments[r];return function(n){return s.reduceRight(function(o,l){return l(o)},n)}}function xr(a){return function s(){for(var r=this,n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return o.length>=a.length?a.apply(this,o):function(){for(var c=arguments.length,u=new Array(c),m=0;m<c;m++)u[m]=arguments[m];return s.apply(r,[].concat(o,u))}}}function aa(a){return{}.toString.call(a).includes("Object")}function bd(a){return!Object.keys(a).length}function hr(a){return typeof a=="function"}function xd(a,s){return Object.prototype.hasOwnProperty.call(a,s)}function hd(a,s){return aa(s)||ps("changeType"),Object.keys(s).some(function(r){return!xd(a,r)})&&ps("changeField"),s}function wd(a){hr(a)||ps("selectorType")}function vd(a){hr(a)||aa(a)||ps("handlerType"),aa(a)&&Object.values(a).some(function(s){return!hr(s)})&&ps("handlersType")}function Td(a){a||ps("initialIsRequired"),aa(a)||ps("initialType"),bd(a)&&ps("initialContent")}function kd(a,s){throw new Error(a[s]||a.default)}var Dd={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"},ps=xr(kd)(Dd),na={changes:hd,selector:wd,handler:vd,initial:Td};function Id(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};na.initial(a),na.handler(s);var r={current:a},n=xr(Cd)(r,s),o=xr(qd)(r),l=xr(na.changes)(a),c=xr(Ad)(r);function u(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return na.selector(_),_(r.current)}function m(_){gd(n,o,l,c)(_)}return[u,m]}function Ad(a,s){return hr(s)?s(a.current):s}function qd(a,s){return a.current=ko(ko({},a.current),s),s}function Cd(a,s,r){return hr(s)?s(a.current):Object.keys(r).forEach(function(n){var o;return(o=s[n])===null||o===void 0?void 0:o.call(s,a.current[n])}),r}var Sd={create:Id},zd={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Nd(a){return function s(){for(var r=this,n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return o.length>=a.length?a.apply(this,o):function(){for(var c=arguments.length,u=new Array(c),m=0;m<c;m++)u[m]=arguments[m];return s.apply(r,[].concat(o,u))}}}function Ed(a){return{}.toString.call(a).includes("Object")}function Ld(a){return a||Io("configIsRequired"),Ed(a)||Io("configType"),a.urls?(Md(),{paths:{vs:a.urls.monacoBase}}):a}function Md(){console.warn(Do.deprecation)}function Od(a,s){throw new Error(a[s]||a.default)}var Do={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
31
31
|
You are using deprecated way of configuration.
|
32
32
|
|
33
33
|
Instead of using
|
@@ -36,7 +36,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
36
36
|
monaco.config({ paths: { vs: '...' } })
|
37
37
|
|
38
38
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
39
|
-
`},Io=Nd(Od)(Do),Pd={config:Ld},Rd=function(){for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(l,c){return c(l)},o)}};function Ao(a,s){return Object.keys(s).forEach(function(r){s[r]instanceof Object&&a[r]&&Object.assign(s[r],Ao(a[r],s[r]))}),wo(wo({},a),s)}var Fd={type:"cancelation",msg:"operation is manually canceled"};function kn(a){var s=!1,r=new Promise(function(n,o){a.then(function(l){return s?o(Fd):n(l)}),a.catch(o)});return r.cancel=function(){return s=!0},r}var Bd=Sd.create({config:zd,isInitialized:!1,resolve:null,reject:null,monaco:null}),qo=dd(Bd,2),wr=qo[0],ia=qo[1];function Ud(a){var s=Pd.config(a),r=s.monaco,n=pd(s,["monaco"]);ia(function(o){return{config:Ao(o.config,n),monaco:r}})}function $d(){var a=wr(function(s){var r=s.monaco,n=s.isInitialized,o=s.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!a.isInitialized){if(ia({isInitialized:!0}),a.monaco)return a.resolve(a.monaco),kn(Dn);if(window.monaco&&window.monaco.editor)return Co(window.monaco),a.resolve(window.monaco),kn(Dn);Rd(Kd,Hd)(Wd)}return kn(Dn)}function Kd(a){return document.body.appendChild(a)}function jd(a){var s=document.createElement("script");return a&&(s.src=a),s}function Hd(a){var s=wr(function(n){var o=n.config,l=n.reject;return{config:o,reject:l}}),r=jd("".concat(s.config.paths.vs,"/loader.js"));return r.onload=function(){return a()},r.onerror=s.reject,r}function Wd(){var a=wr(function(r){var n=r.config,o=r.resolve,l=r.reject;return{config:n,resolve:o,reject:l}}),s=window.require;s.config(a.config),s(["vs/editor/editor.main"],function(r){Co(r),a.resolve(r)},function(r){a.reject(r)})}function Co(a){wr().monaco||ia({monaco:a})}function Vd(){return wr(function(a){var s=a.monaco;return s})}var Dn=new Promise(function(a,s){return ia({resolve:a,reject:s})}),In={config:Ud,init:$d,__getMonacoInstance:Vd},Gd={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},An=Gd,Xd={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Yd=Xd;function Qd({children:a}){return
|
39
|
+
`},Io=Nd(Od)(Do),Pd={config:Ld},Rd=function(){for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(l,c){return c(l)},o)}};function Ao(a,s){return Object.keys(s).forEach(function(r){s[r]instanceof Object&&a[r]&&Object.assign(s[r],Ao(a[r],s[r]))}),wo(wo({},a),s)}var Fd={type:"cancelation",msg:"operation is manually canceled"};function kn(a){var s=!1,r=new Promise(function(n,o){a.then(function(l){return s?o(Fd):n(l)}),a.catch(o)});return r.cancel=function(){return s=!0},r}var Bd=Sd.create({config:zd,isInitialized:!1,resolve:null,reject:null,monaco:null}),qo=dd(Bd,2),wr=qo[0],ia=qo[1];function Ud(a){var s=Pd.config(a),r=s.monaco,n=pd(s,["monaco"]);ia(function(o){return{config:Ao(o.config,n),monaco:r}})}function $d(){var a=wr(function(s){var r=s.monaco,n=s.isInitialized,o=s.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!a.isInitialized){if(ia({isInitialized:!0}),a.monaco)return a.resolve(a.monaco),kn(Dn);if(window.monaco&&window.monaco.editor)return Co(window.monaco),a.resolve(window.monaco),kn(Dn);Rd(Kd,Hd)(Wd)}return kn(Dn)}function Kd(a){return document.body.appendChild(a)}function jd(a){var s=document.createElement("script");return a&&(s.src=a),s}function Hd(a){var s=wr(function(n){var o=n.config,l=n.reject;return{config:o,reject:l}}),r=jd("".concat(s.config.paths.vs,"/loader.js"));return r.onload=function(){return a()},r.onerror=s.reject,r}function Wd(){var a=wr(function(r){var n=r.config,o=r.resolve,l=r.reject;return{config:n,resolve:o,reject:l}}),s=window.require;s.config(a.config),s(["vs/editor/editor.main"],function(r){Co(r),a.resolve(r)},function(r){a.reject(r)})}function Co(a){wr().monaco||ia({monaco:a})}function Vd(){return wr(function(a){var s=a.monaco;return s})}var Dn=new Promise(function(a,s){return ia({resolve:a,reject:s})}),In={config:Ud,init:$d,__getMonacoInstance:Vd},Gd={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},An=Gd,Xd={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Yd=Xd;function Qd({children:a}){return N.createElement("div",{style:Yd.container},a)}var Zd=Qd,Jd=Zd;function eu({width:a,height:s,isEditorReady:r,loading:n,_ref:o,className:l,wrapperProps:c}){return N.createElement("section",{style:{...An.wrapper,width:a,height:s},...c},!r&&N.createElement(Jd,null,n),N.createElement("div",{ref:o,style:{...An.fullWidth,...!r&&An.hide},className:l}))}var tu=eu,So=N.memo(tu);function su(a){N.useEffect(a,[])}var zo=su;function ru(a,s,r=!0){let n=N.useRef(!0);N.useEffect(n.current||!r?()=>{n.current=!1}:a,s)}var gt=ru;function vr(){}function Us(a,s,r,n){return au(a,n)||nu(a,s,r,n)}function au(a,s){return a.editor.getModel(No(a,s))}function nu(a,s,r,n){return a.editor.createModel(s,r,n?No(a,n):void 0)}function No(a,s){return a.Uri.parse(s)}function iu({original:a,modified:s,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:l,modifiedModelPath:c,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:m=!1,theme:_="light",loading:g="Loading...",options:x={},height:h="100%",width:D="100%",className:S,wrapperProps:R={},beforeMount:U=vr,onMount:K=vr}){let[H,re]=N.useState(!1),[W,Q]=N.useState(!0),C=N.useRef(null),z=N.useRef(null),V=N.useRef(null),q=N.useRef(K),A=N.useRef(U),L=N.useRef(!1);zo(()=>{let Y=In.init();return Y.then(le=>(z.current=le)&&Q(!1)).catch(le=>(le==null?void 0:le.type)!=="cancelation"&&console.error("Monaco initialization: error:",le)),()=>C.current?ne():Y.cancel()}),gt(()=>{if(C.current&&z.current){let Y=C.current.getOriginalEditor(),le=Us(z.current,a||"",n||r||"text",l||"");le!==Y.getModel()&&Y.setModel(le)}},[l],H),gt(()=>{if(C.current&&z.current){let Y=C.current.getModifiedEditor(),le=Us(z.current,s||"",o||r||"text",c||"");le!==Y.getModel()&&Y.setModel(le)}},[c],H),gt(()=>{let Y=C.current.getModifiedEditor();Y.getOption(z.current.editor.EditorOption.readOnly)?Y.setValue(s||""):s!==Y.getValue()&&(Y.executeEdits("",[{range:Y.getModel().getFullModelRange(),text:s||"",forceMoveMarkers:!0}]),Y.pushUndoStop())},[s],H),gt(()=>{var Y,le;(le=(Y=C.current)==null?void 0:Y.getModel())==null||le.original.setValue(a||"")},[a],H),gt(()=>{let{original:Y,modified:le}=C.current.getModel();z.current.editor.setModelLanguage(Y,n||r||"text"),z.current.editor.setModelLanguage(le,o||r||"text")},[r,n,o],H),gt(()=>{var Y;(Y=z.current)==null||Y.editor.setTheme(_)},[_],H),gt(()=>{var Y;(Y=C.current)==null||Y.updateOptions(x)},[x],H);let Z=N.useCallback(()=>{var xe;if(!z.current)return;A.current(z.current);let Y=Us(z.current,a||"",n||r||"text",l||""),le=Us(z.current,s||"",o||r||"text",c||"");(xe=C.current)==null||xe.setModel({original:Y,modified:le})},[r,s,o,a,n,l,c]),ee=N.useCallback(()=>{var Y;!L.current&&V.current&&(C.current=z.current.editor.createDiffEditor(V.current,{automaticLayout:!0,...x}),Z(),(Y=z.current)==null||Y.editor.setTheme(_),re(!0),L.current=!0)},[x,_,Z]);N.useEffect(()=>{H&&q.current(C.current,z.current)},[H]),N.useEffect(()=>{!W&&!H&&ee()},[W,H,ee]);function ne(){var le,xe,pe,_e;let Y=(le=C.current)==null?void 0:le.getModel();u||((xe=Y==null?void 0:Y.original)==null||xe.dispose()),m||((pe=Y==null?void 0:Y.modified)==null||pe.dispose()),(_e=C.current)==null||_e.dispose()}return N.createElement(So,{width:D,height:h,isEditorReady:H,loading:g,_ref:V,className:S,wrapperProps:R})}var ou=iu,lu=N.memo(ou);function cu(a){let s=N.useRef();return N.useEffect(()=>{s.current=a},[a]),s.current}var pu=cu,oa=new Map;function du({defaultValue:a,defaultLanguage:s,defaultPath:r,value:n,language:o,path:l,theme:c="light",line:u,loading:m="Loading...",options:_={},overrideServices:g={},saveViewState:x=!0,keepCurrentModel:h=!1,width:D="100%",height:S="100%",className:R,wrapperProps:U={},beforeMount:K=vr,onMount:H=vr,onChange:re,onValidate:W=vr}){let[Q,C]=N.useState(!1),[z,V]=N.useState(!0),q=N.useRef(null),A=N.useRef(null),L=N.useRef(null),Z=N.useRef(H),ee=N.useRef(K),ne=N.useRef(),Y=N.useRef(n),le=pu(l),xe=N.useRef(!1),pe=N.useRef(!1);zo(()=>{let te=In.init();return te.then(de=>(q.current=de)&&V(!1)).catch(de=>(de==null?void 0:de.type)!=="cancelation"&&console.error("Monaco initialization: error:",de)),()=>A.current?Ee():te.cancel()}),gt(()=>{var de,Oe,Ge,Qe;let te=Us(q.current,a||n||"",s||o||"",l||r||"");te!==((de=A.current)==null?void 0:de.getModel())&&(x&&oa.set(le,(Oe=A.current)==null?void 0:Oe.saveViewState()),(Ge=A.current)==null||Ge.setModel(te),x&&((Qe=A.current)==null||Qe.restoreViewState(oa.get(l))))},[l],Q),gt(()=>{var te;(te=A.current)==null||te.updateOptions(_)},[_],Q),gt(()=>{!A.current||n===void 0||(A.current.getOption(q.current.editor.EditorOption.readOnly)?A.current.setValue(n):n!==A.current.getValue()&&(pe.current=!0,A.current.executeEdits("",[{range:A.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),A.current.pushUndoStop(),pe.current=!1))},[n],Q),gt(()=>{var de,Oe;let te=(de=A.current)==null?void 0:de.getModel();te&&o&&((Oe=q.current)==null||Oe.editor.setModelLanguage(te,o))},[o],Q),gt(()=>{var te;u!==void 0&&((te=A.current)==null||te.revealLine(u))},[u],Q),gt(()=>{var te;(te=q.current)==null||te.editor.setTheme(c)},[c],Q);let _e=N.useCallback(()=>{var te;if(!(!L.current||!q.current)&&!xe.current){ee.current(q.current);let de=l||r,Oe=Us(q.current,n||a||"",s||o||"",de||"");A.current=(te=q.current)==null?void 0:te.editor.create(L.current,{model:Oe,automaticLayout:!0,..._},g),x&&A.current.restoreViewState(oa.get(de)),q.current.editor.setTheme(c),u!==void 0&&A.current.revealLine(u),C(!0),xe.current=!0}},[a,s,r,n,o,l,_,g,x,c,u]);N.useEffect(()=>{Q&&Z.current(A.current,q.current)},[Q]),N.useEffect(()=>{!z&&!Q&&_e()},[z,Q,_e]),Y.current=n,N.useEffect(()=>{var te,de;Q&&re&&((te=ne.current)==null||te.dispose(),ne.current=(de=A.current)==null?void 0:de.onDidChangeModelContent(Oe=>{pe.current||re(A.current.getValue(),Oe)}))},[Q,re]),N.useEffect(()=>{if(Q){let te=q.current.editor.onDidChangeMarkers(de=>{var Ge;let Oe=(Ge=A.current.getModel())==null?void 0:Ge.uri;if(Oe&&de.find(Qe=>Qe.path===Oe.path)){let Qe=q.current.editor.getModelMarkers({resource:Oe});W==null||W(Qe)}});return()=>{te==null||te.dispose()}}return()=>{}},[Q,W]);function Ee(){var te,de;(te=ne.current)==null||te.dispose(),h?x&&oa.set(l,A.current.saveViewState()):(de=A.current.getModel())==null||de.dispose(),A.current.dispose()}return N.createElement(So,{width:D,height:S,isEditorReady:Q,loading:m,_ref:L,className:R,wrapperProps:U})}var uu=du,mu=N.memo(uu);const Eo={keywords:[{name:"or",desc:["逻辑 OR。适用于布尔表达式。"],syntax:["expr1 or expr2"],returns:["布尔值,或一时间序列布尔值。"]},{name:"and",desc:["逻辑 AND。适用于布尔表达式。"],syntax:["expr1 and expr2"],returns:["布尔值,或一时间序列布尔值。"]},{name:"not",desc:["逻辑求反(NOT)。 适用于布尔表达式。"],syntax:["not expr1"],returns:["布尔值,或一时间序列布尔值。"]},{name:"if",desc:["If语句定义了在满足表达式条件时必须执行的语句块。","通用编码形式:"],syntax:[`var_declarationX = if condition
|
40
40
|
var_decl_then0
|
41
41
|
var_decl_then1
|
42
42
|
…
|
@@ -103,49 +103,49 @@ else
|
|
103
103
|
\${2:local_block_1}
|
104
104
|
else
|
105
105
|
\${3:local_block_2}
|
106
|
-
`,kind:"statement"},{label:"for...to",insertText:"for ${1:i} = 1 to ${2:to_num} by 1\n ${3:local_block}\n",kind:"loop"},{label:"for...in",insertText:"for [${1:index}, ${2:value}] in ${3:arr}\n ${4:local_block}\n",kind:"loop"},{label:"while",insertText:"while ${1:condition}\n ${2:local_block}\n",kind:"statement"},{label:"switch",insertText:"switch ${1:condition}\n ${2:value_1} => ${3:local_block_1}\n ${4:value_2} => ${5:local_block_2}\n => ${6:default_local_block}\n",kind:"statement"}],Lo=["in","as","continue","break","else","to","by"],Ae={keywords:"keyword",functions:"built-in function",variables:"built-in variable",methods:"built-in method",types:"built-in type",annotations:"annotation",constants:"built-in constant",namespace:"namespace",userDefinedVariable:"user-defined variable",userDefinedType:"user-defined type",field:"field",enum:"enum",userDefinedMethod:"user-defined method",userDefinedFunction:"user-defined function",returns:"returns",parameter:"parameter",namespaceDesc:"**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.",toTriggerParameterHints:"to trigger parameters hint"},_u={clickOnKeywordForMoreHelp:"`click` on keyword for more help"};function fu(){const a={},s={};return Object.keys(Eo).reduce((r,n)=>{const o=Eo[n],l=Ae[n],{mapObj:c,keys:d}=gu(o,l);return r.keyMapList[n]=c,r.keyList[n]=d,r},{keyList:a,keyMapList:s}),{keyList:a,keyMapList:s}}function gu(a,s){const r=new Map,n=[];return a.forEach(o=>{var c;o.title=s;const l=o.originalName||o.name;l!=="for...in"&&(r.has(l)?(c=r.get(l))==null||c.push(o):(n.push(l),r.set(l,[o])))}),{mapObj:r,keys:n}}const{keyList:qn,keyMapList:nt}=fu();function bu(){var s;const a={};for(const r of Object.keys(qn)){const n=(s=qn[r])==null?void 0:s.sort().filter(o=>!Lo.includes(o));a[r]=n}return a}const ks=bu(),it=[{title:"内置变量",key:"variables",prefix:"var",index:0},{title:"常量",key:"constants",prefix:"const",index:1},{title:"函数",key:"functions",prefix:"fun",index:2},{title:"关键词",key:"keywords",prefix:"kw",index:3},{title:"类型",key:"types",prefix:"type",index:4},{title:"运算符",key:"operators",prefix:"op",index:5},{title:"注释",key:"annotations",prefix:"an",index:6}],ue=a=>typeof a=="string",Tr=()=>{let a,s;const r=new Promise((n,o)=>{a=n,s=o});return r.resolve=a,r.reject=s,r},Mo=a=>a==null?"":""+a,xu=(a,s,r)=>{a.forEach(n=>{s[n]&&(r[n]=s[n])})},hu=/###/g,Oo=a=>a&&a.indexOf("###")>-1?a.replace(hu,"."):a,Po=a=>!a||ue(a),kr=(a,s,r)=>{const n=ue(s)?s.split("."):s;let o=0;for(;o<n.length-1;){if(Po(a))return{};const l=Oo(n[o]);!a[l]&&r&&(a[l]=new r),Object.prototype.hasOwnProperty.call(a,l)?a=a[l]:a={},++o}return Po(a)?{}:{obj:a,k:Oo(n[o])}},Ro=(a,s,r)=>{const{obj:n,k:o}=kr(a,s,Object);if(n!==void 0||s.length===1){n[o]=r;return}let l=s[s.length-1],c=s.slice(0,s.length-1),d=kr(a,c,Object);for(;d.obj===void 0&&c.length;)l=`${c[c.length-1]}.${l}`,c=c.slice(0,c.length-1),d=kr(a,c,Object),d&&d.obj&&typeof d.obj[`${d.k}.${l}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${l}`]=r},wu=(a,s,r,n)=>{const{obj:o,k:l}=kr(a,s,Object);o[l]=o[l]||[],o[l].push(r)},la=(a,s)=>{const{obj:r,k:n}=kr(a,s);if(r)return r[n]},vu=(a,s,r)=>{const n=la(a,r);return n!==void 0?n:la(s,r)},Fo=(a,s,r)=>{for(const n in s)n!=="__proto__"&&n!=="constructor"&&(n in a?ue(a[n])||a[n]instanceof String||ue(s[n])||s[n]instanceof String?r&&(a[n]=s[n]):Fo(a[n],s[n],r):a[n]=s[n]);return a},$s=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Tu={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ku=a=>ue(a)?a.replace(/[&<>"'\/]/g,s=>Tu[s]):a;class Du{constructor(s){this.capacity=s,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(s){const r=this.regExpMap.get(s);if(r!==void 0)return r;const n=new RegExp(s);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(s,n),this.regExpQueue.push(s),n}}const Iu=[" ",",","?","!",";"],Au=new Du(20),qu=(a,s,r)=>{s=s||"",r=r||"";const n=Iu.filter(c=>s.indexOf(c)<0&&r.indexOf(c)<0);if(n.length===0)return!0;const o=Au.getRegExp(`(${n.map(c=>c==="?"?"\\?":c).join("|")})`);let l=!o.test(a);if(!l){const c=a.indexOf(r);c>0&&!o.test(a.substring(0,c))&&(l=!0)}return l},Cn=function(a,s){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[s])return a[s];const n=s.split(r);let o=a;for(let l=0;l<n.length;){if(!o||typeof o!="object")return;let c,d="";for(let m=l;m<n.length;++m)if(m!==l&&(d+=r),d+=n[m],c=o[d],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&m<n.length-1)continue;l+=m-l+1;break}o=c}return o},ca=a=>a&&a.replace("_","-"),Cu={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,s){console&&console[a]&&console[a].apply(console,s)}};class pa{constructor(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(s,r)}init(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=s||Cu,this.options=r,this.debug=r.debug}log(){for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(s,r,n,o){return o&&!this.debug?null:(ue(s[0])&&(s[0]=`${n}${this.prefix} ${s[0]}`),this.logger[r](s))}create(s){return new pa(this.logger,{prefix:`${this.prefix}:${s}:`,...this.options})}clone(s){return s=s||this.options,s.prefix=s.prefix||this.prefix,new pa(this.logger,s)}}var Ht=new pa;class da{constructor(){this.observers={}}on(s,r){return s.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(s,r){if(this.observers[s]){if(!r){delete this.observers[s];return}this.observers[s].delete(r)}}emit(s){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.observers[s]&&Array.from(this.observers[s].entries()).forEach(c=>{let[d,m]=c;for(let _=0;_<m;_++)d(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(c=>{let[d,m]=c;for(let _=0;_<m;_++)d.apply(d,[s,...n])})}}class Bo extends da{constructor(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=s||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(s){this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}removeNamespaces(s){const r=this.options.ns.indexOf(s);r>-1&&this.options.ns.splice(r,1)}getResource(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let d;s.indexOf(".")>-1?d=s.split("."):(d=[s,r],n&&(Array.isArray(n)?d.push(...n):ue(n)&&l?d.push(...n.split(l)):d.push(n)));const m=la(this.data,d);return!m&&!r&&!n&&s.indexOf(".")>-1&&(s=d[0],r=d[1],n=d.slice(2).join(".")),m||!c||!ue(n)?m:Cn(this.data&&this.data[s]&&this.data[s][r],n,l)}addResource(s,r,n,o){let l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let d=[s,r];n&&(d=d.concat(c?n.split(c):n)),s.indexOf(".")>-1&&(d=s.split("."),o=r,r=d[1]),this.addNamespaces(r),Ro(this.data,d,o),l.silent||this.emit("added",s,r,n,o)}addResources(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const l in n)(ue(n[l])||Array.isArray(n[l]))&&this.addResource(s,r,l,n[l],{silent:!0});o.silent||this.emit("added",s,r,n)}addResourceBundle(s,r,n,o,l){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},d=[s,r];s.indexOf(".")>-1&&(d=s.split("."),o=n,n=r,r=d[1]),this.addNamespaces(r);let m=la(this.data,d)||{};c.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Fo(m,n,l):m={...m,...n},Ro(this.data,d,m),c.silent||this.emit("added",s,r,n)}removeResourceBundle(s,r){this.hasResourceBundle(s,r)&&delete this.data[s][r],this.removeNamespaces(r),this.emit("removed",s,r)}hasResourceBundle(s,r){return this.getResource(s,r)!==void 0}getResourceBundle(s,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(s,r)}:this.getResource(s,r)}getDataByLanguage(s){return this.data[s]}hasLanguageSomeTranslations(s){const r=this.getDataByLanguage(s);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var Uo={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,s,r,n,o){return a.forEach(l=>{this.processors[l]&&(s=this.processors[l].process(s,r,n,o))}),s}};const $o={};class ua extends da{constructor(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),xu(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],s,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ht.create("translator")}changeLanguage(s){s&&(this.language=s)}exists(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(s==null)return!1;const n=this.resolve(s,r);return n&&n.res!==void 0}extractFromKey(s,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let l=r.ns||this.options.defaultNS||[];const c=n&&s.indexOf(n)>-1,d=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!qu(s,n,o);if(c&&!d){const m=s.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:s,namespaces:ue(l)?[l]:l};const _=s.split(n);(n!==o||n===o&&this.options.ns.indexOf(_[0])>-1)&&(l=_.shift()),s=_.join(o)}return{key:s,namespaces:ue(l)?[l]:l}}translate(s,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),s==null)return"";Array.isArray(s)||(s=[String(s)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:c,namespaces:d}=this.extractFromKey(s[s.length-1],r),m=d[d.length-1],_=r.lng||this.language,g=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(_&&_.toLowerCase()==="cimode"){if(g){const V=r.nsSeparator||this.options.nsSeparator;return o?{res:`${m}${V}${c}`,usedKey:c,exactUsedKey:c,usedLng:_,usedNS:m,usedParams:this.getUsedParamsDetails(r)}:`${m}${V}${c}`}return o?{res:c,usedKey:c,exactUsedKey:c,usedLng:_,usedNS:m,usedParams:this.getUsedParamsDetails(r)}:c}const x=this.resolve(s,r);let h=x&&x.res;const D=x&&x.usedKey||c,z=x&&x.exactUsedKey||c,P=Object.prototype.toString.apply(h),$=["[object Number]","[object Function]","[object RegExp]"],j=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,W=!this.i18nFormat||this.i18nFormat.handleAsObject,re=!ue(h)&&typeof h!="boolean"&&typeof h!="number";if(W&&h&&re&&$.indexOf(P)<0&&!(ue(j)&&Array.isArray(h))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const V=this.options.returnedObjectHandler?this.options.returnedObjectHandler(D,h,{...r,ns:d}):`key '${c} (${this.language})' returned an object instead of string.`;return o?(x.res=V,x.usedParams=this.getUsedParamsDetails(r),x):V}if(l){const V=Array.isArray(h),Q=V?[]:{},q=V?z:D;for(const C in h)if(Object.prototype.hasOwnProperty.call(h,C)){const R=`${q}${l}${C}`;Q[C]=this.translate(R,{...r,joinArrays:!1,ns:d}),Q[C]===R&&(Q[C]=h[C])}h=Q}}else if(W&&ue(j)&&Array.isArray(h))h=h.join(j),h&&(h=this.extendTranslation(h,s,r,n));else{let V=!1,Q=!1;const q=r.count!==void 0&&!ue(r.count),C=ua.hasDefaultValue(r),R=q?this.pluralResolver.getSuffix(_,r.count,r):"",E=r.ordinal&&q?this.pluralResolver.getSuffix(_,r.count,{ordinal:!1}):"",A=q&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),O=A&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${R}`]||r[`defaultValue${E}`]||r.defaultValue;!this.isValidLookup(h)&&C&&(V=!0,h=O),this.isValidLookup(h)||(Q=!0,h=c);const se=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Q?void 0:h,le=C&&O!==h&&this.options.updateMissing;if(Q||V||le){if(this.logger.log(le?"updateKey":"missingKey",_,m,c,le?O:h),l){const pe=this.resolve(c,{...r,keySeparator:!1});pe&&pe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Y=[];const oe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&oe&&oe[0])for(let pe=0;pe<oe.length;pe++)Y.push(oe[pe]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(r.lng||this.language):Y.push(r.lng||this.language);const xe=(pe,_e,Ee)=>{const ee=C&&Ee!==h?Ee:se;this.options.missingKeyHandler?this.options.missingKeyHandler(pe,m,_e,ee,le,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(pe,m,_e,ee,le,r),this.emit("missingKey",pe,m,_e,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&q?Y.forEach(pe=>{const _e=this.pluralResolver.getSuffixes(pe,r);A&&r[`defaultValue${this.options.pluralSeparator}zero`]&&_e.indexOf(`${this.options.pluralSeparator}zero`)<0&&_e.push(`${this.options.pluralSeparator}zero`),_e.forEach(Ee=>{xe([pe],c+Ee,r[`defaultValue${Ee}`]||O)})}):xe(Y,c,O))}h=this.extendTranslation(h,s,r,x,n),Q&&h===c&&this.options.appendNamespaceToMissingKey&&(h=`${m}:${c}`),(Q||V)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}:${c}`:c,V?h:void 0):h=this.options.parseMissingKeyHandler(h))}return o?(x.res=h,x.usedParams=this.getUsedParamsDetails(r),x):h}extendTranslation(s,r,n,o,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)s=this.i18nFormat.parse(s,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const _=ue(s)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(_){const h=s.match(this.interpolator.nestingRegexp);g=h&&h.length}let x=n.replace&&!ue(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),s=this.interpolator.interpolate(s,x,n.lng||this.language||o.usedLng,n),_){const h=s.match(this.interpolator.nestingRegexp),D=h&&h.length;g<D&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(s=this.interpolator.nest(s,function(){for(var h=arguments.length,D=new Array(h),z=0;z<h;z++)D[z]=arguments[z];return l&&l[0]===D[0]&&!n.context?(c.logger.warn(`It seems you are nesting recursively key: ${D[0]} in key: ${r[0]}`),null):c.translate(...D,r)},n)),n.interpolation&&this.interpolator.reset()}const d=n.postProcess||this.options.postProcess,m=ue(d)?[d]:d;return s!=null&&m&&m.length&&n.applyPostProcessor!==!1&&(s=Uo.handle(m,s,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),s}resolve(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,l,c,d;return ue(s)&&(s=[s]),s.forEach(m=>{if(this.isValidLookup(n))return;const _=this.extractFromKey(m,r),g=_.key;o=g;let x=_.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const h=r.count!==void 0&&!ue(r.count),D=h&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),z=r.context!==void 0&&(ue(r.context)||typeof r.context=="number")&&r.context!=="",P=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);x.forEach($=>{this.isValidLookup(n)||(d=$,!$o[`${P[0]}-${$}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(d)&&($o[`${P[0]}-${$}`]=!0,this.logger.warn(`key "${o}" for languages "${P.join(", ")}" won't get resolved as namespace "${d}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),P.forEach(j=>{if(this.isValidLookup(n))return;c=j;const W=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(W,g,j,$,r);else{let V;h&&(V=this.pluralResolver.getSuffix(j,r.count,r));const Q=`${this.options.pluralSeparator}zero`,q=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(W.push(g+V),r.ordinal&&V.indexOf(q)===0&&W.push(g+V.replace(q,this.options.pluralSeparator)),D&&W.push(g+Q)),z){const C=`${g}${this.options.contextSeparator}${r.context}`;W.push(C),h&&(W.push(C+V),r.ordinal&&V.indexOf(q)===0&&W.push(C+V.replace(q,this.options.pluralSeparator)),D&&W.push(C+Q))}}let re;for(;re=W.pop();)this.isValidLookup(n)||(l=re,n=this.getResource(j,$,re,r))}))})}),{res:n,usedKey:o,exactUsedKey:l,usedLng:c,usedNS:d}}isValidLookup(s){return s!==void 0&&!(!this.options.returnNull&&s===null)&&!(!this.options.returnEmptyString&&s==="")}getResource(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(s,r,n,o):this.resourceStore.getResource(s,r,n,o)}getUsedParamsDetails(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=s.replace&&!ue(s.replace);let o=n?s.replace:s;if(n&&typeof s.count<"u"&&(o.count=s.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const l of r)delete o[l]}return o}static hasDefaultValue(s){const r="defaultValue";for(const n in s)if(Object.prototype.hasOwnProperty.call(s,n)&&r===n.substring(0,r.length)&&s[n]!==void 0)return!0;return!1}}const Sn=a=>a.charAt(0).toUpperCase()+a.slice(1);class Ko{constructor(s){this.options=s,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ht.create("languageUtils")}getScriptPartFromCode(s){if(s=ca(s),!s||s.indexOf("-")<0)return null;const r=s.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(s){if(s=ca(s),!s||s.indexOf("-")<0)return s;const r=s.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(s){if(ue(s)&&s.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(s)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=s.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Sn(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Sn(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Sn(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?s.toLowerCase():s}isSupportedCode(s){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(s=this.getLanguagePartFromCode(s)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(s)>-1}getBestMatchFromCodes(s){if(!s)return null;let r;return s.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&s.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(l=>{if(l===o)return l;if(!(l.indexOf("-")<0&&o.indexOf("-")<0)&&(l.indexOf("-")>0&&o.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===o||l.indexOf(o)===0&&o.length>1))return l})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(s,r){if(!s)return[];if(typeof s=="function"&&(s=s(r)),ue(s)&&(s=[s]),Array.isArray(s))return s;if(!r)return s.default||[];let n=s[r];return n||(n=s[this.getScriptPartFromCode(r)]),n||(n=s[this.formatLanguageCode(r)]),n||(n=s[this.getLanguagePartFromCode(r)]),n||(n=s.default),n||[]}toResolveHierarchy(s,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],s),o=[],l=c=>{c&&(this.isSupportedCode(c)?o.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return ue(s)&&(s.indexOf("-")>-1||s.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(s)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(s)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(s))):ue(s)&&l(this.formatLanguageCode(s)),n.forEach(c=>{o.indexOf(c)<0&&l(this.formatLanguageCode(c))}),o}}let Su=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],zu={1:a=>+(a>1),2:a=>+(a!=1),3:a=>0,4:a=>a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2,5:a=>a==0?0:a==1?1:a==2?2:a%100>=3&&a%100<=10?3:a%100>=11?4:5,6:a=>a==1?0:a>=2&&a<=4?1:2,7:a=>a==1?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2,8:a=>a==1?0:a==2?1:a!=8&&a!=11?2:3,9:a=>+(a>=2),10:a=>a==1?0:a==2?1:a<7?2:a<11?3:4,11:a=>a==1||a==11?0:a==2||a==12?1:a>2&&a<20?2:3,12:a=>+(a%10!=1||a%100==11),13:a=>+(a!==0),14:a=>a==1?0:a==2?1:a==3?2:3,15:a=>a%10==1&&a%100!=11?0:a%10>=2&&(a%100<10||a%100>=20)?1:2,16:a=>a%10==1&&a%100!=11?0:a!==0?1:2,17:a=>a==1||a%10==1&&a%100!=11?0:1,18:a=>a==0?0:a==1?1:2,19:a=>a==1?0:a==0||a%100>1&&a%100<11?1:a%100>10&&a%100<20?2:3,20:a=>a==1?0:a==0||a%100>0&&a%100<20?1:2,21:a=>a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0,22:a=>a==1?0:a==2?1:(a<0||a>10)&&a%10==0?2:3};const Nu=["v1","v2","v3"],Eu=["v4"],jo={zero:0,one:1,two:2,few:3,many:4,other:5},Lu=()=>{const a={};return Su.forEach(s=>{s.lngs.forEach(r=>{a[r]={numbers:s.nr,plurals:zu[s.fc]}})}),a};class Mu{constructor(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=s,this.options=r,this.logger=Ht.create("pluralResolver"),(!this.options.compatibilityJSON||Eu.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Lu(),this.pluralRulesCache={}}addRule(s,r){this.rules[s]=r}clearCache(){this.pluralRulesCache={}}getRule(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=ca(s==="dev"?"en":s),o=r.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:n,type:o});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];const c=new Intl.PluralRules(n,{type:o});return this.pluralRulesCache[l]=c,c}catch{return}return this.rules[s]||this.rules[this.languageUtils.getLanguagePartFromCode(s)]}needsPlural(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(s,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(s,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(s,n).map(o=>`${r}${o}`)}getSuffixes(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(s,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,l)=>jo[o]-jo[l]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(s,o,r)):[]}getSuffix(s,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(s,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${s}`),"")}getSuffixRetroCompatible(s,r){const n=s.noAbs?s.plurals(r):s.plurals(Math.abs(r));let o=s.numbers[n];this.options.simplifyPluralSuffix&&s.numbers.length===2&&s.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const l=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&s.numbers.length===2&&s.numbers[0]===1?l():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Nu.includes(this.options.compatibilityJSON)}}const Ho=function(a,s,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=vu(a,s,r);return!l&&o&&ue(r)&&(l=Cn(a,r,n),l===void 0&&(l=Cn(s,r,n))),l},zn=a=>a.replace(/\$/g,"$$$$");class Ou{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ht.create("interpolator"),this.options=s,this.format=s.interpolation&&s.interpolation.format||(r=>r),this.init(s)}init(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s.interpolation||(s.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:l,prefixEscaped:c,suffix:d,suffixEscaped:m,formatSeparator:_,unescapeSuffix:g,unescapePrefix:x,nestingPrefix:h,nestingPrefixEscaped:D,nestingSuffix:z,nestingSuffixEscaped:P,nestingOptionsSeparator:$,maxReplaces:j,alwaysFormat:W}=s.interpolation;this.escape=r!==void 0?r:ku,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=l?$s(l):c||"{{",this.suffix=d?$s(d):m||"}}",this.formatSeparator=_||",",this.unescapePrefix=g?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=h?$s(h):D||$s("$t("),this.nestingSuffix=z?$s(z):P||$s(")"),this.nestingOptionsSeparator=$||",",this.maxReplaces=j||1e3,this.alwaysFormat=W!==void 0?W:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const s=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=s(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=s(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=s(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(s,r,n,o){let l,c,d;const m=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},_=D=>{if(D.indexOf(this.formatSeparator)<0){const j=Ho(r,m,D,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,n,{...o,...r,interpolationkey:D}):j}const z=D.split(this.formatSeparator),P=z.shift().trim(),$=z.join(this.formatSeparator).trim();return this.format(Ho(r,m,P,this.options.keySeparator,this.options.ignoreJSONStructure),$,n,{...o,...r,interpolationkey:P})};this.resetRegExp();const g=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,x=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:D=>zn(D)},{regex:this.regexp,safeValue:D=>this.escapeValue?zn(this.escape(D)):zn(D)}].forEach(D=>{for(d=0;l=D.regex.exec(s);){const z=l[1].trim();if(c=_(z),c===void 0)if(typeof g=="function"){const $=g(s,l,o);c=ue($)?$:""}else if(o&&Object.prototype.hasOwnProperty.call(o,z))c="";else if(x){c=l[0];continue}else this.logger.warn(`missed to pass in variable ${z} for interpolating ${s}`),c="";else!ue(c)&&!this.useRawValueToEscape&&(c=Mo(c));const P=D.safeValue(c);if(s=s.replace(l[0],P),x?(D.regex.lastIndex+=c.length,D.regex.lastIndex-=l[0].length):D.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),s}nest(s,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,l,c;const d=(m,_)=>{const g=this.nestingOptionsSeparator;if(m.indexOf(g)<0)return m;const x=m.split(new RegExp(`${g}[ ]*{`));let h=`{${x[1]}`;m=x[0],h=this.interpolate(h,c);const D=h.match(/'/g),z=h.match(/"/g);(D&&D.length%2===0&&!z||z.length%2!==0)&&(h=h.replace(/'/g,'"'));try{c=JSON.parse(h),_&&(c={..._,...c})}catch(P){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,P),`${m}${g}${h}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,m};for(;o=this.nestingRegexp.exec(s);){let m=[];c={...n},c=c.replace&&!ue(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;let _=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const g=o[1].split(this.formatSeparator).map(x=>x.trim());o[1]=g.shift(),m=g,_=!0}if(l=r(d.call(this,o[1].trim(),c),c),l&&o[0]===s&&!ue(l))return l;ue(l)||(l=Mo(l)),l||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${s}`),l=""),_&&(l=m.reduce((g,x)=>this.format(g,x,n.lng,{...n,interpolationkey:o[1].trim()}),l.trim())),s=s.replace(o[0],l),this.regexp.lastIndex=0}return s}}const Pu=a=>{let s=a.toLowerCase().trim();const r={};if(a.indexOf("(")>-1){const n=a.split("(");s=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);s==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):s==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(c=>{if(c){const[d,...m]=c.split(":"),_=m.join(":").trim().replace(/^'+|'+$/g,""),g=d.trim();r[g]||(r[g]=_),_==="false"&&(r[g]=!1),_==="true"&&(r[g]=!0),isNaN(_)||(r[g]=parseInt(_,10))}})}return{formatName:s,formatOptions:r}},Ks=a=>{const s={};return(r,n,o)=>{let l=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(l={...l,[o.interpolationkey]:void 0});const c=n+JSON.stringify(l);let d=s[c];return d||(d=a(ca(n),o),s[c]=d),d(r)}};class Ru{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ht.create("formatter"),this.options=s,this.formats={number:Ks((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return l=>o.format(l)}),currency:Ks((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return l=>o.format(l)}),datetime:Ks((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return l=>o.format(l)}),relativetime:Ks((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return l=>o.format(l,n.range||"day")}),list:Ks((r,n)=>{const o=new Intl.ListFormat(r,{...n});return l=>o.format(l)})},this.init(s)}init(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(s,r){this.formats[s.toLowerCase().trim()]=r}addCached(s,r){this.formats[s.toLowerCase().trim()]=Ks(r)}format(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const l=r.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(d=>d.indexOf(")")>-1)){const d=l.findIndex(m=>m.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,d)].join(this.formatSeparator)}return l.reduce((d,m)=>{const{formatName:_,formatOptions:g}=Pu(m);if(this.formats[_]){let x=d;try{const h=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},D=h.locale||h.lng||o.locale||o.lng||n;x=this.formats[_](d,D,{...g,...o,...h})}catch(h){this.logger.warn(h)}return x}else this.logger.warn(`there was no format function for ${_}`);return d},s)}}const Fu=(a,s)=>{a.pending[s]!==void 0&&(delete a.pending[s],a.pendingCount--)};class Bu extends da{constructor(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=s,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=Ht.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(s,r,n,o){const l={},c={},d={},m={};return s.forEach(_=>{let g=!0;r.forEach(x=>{const h=`${_}|${x}`;!n.reload&&this.store.hasResourceBundle(_,x)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?c[h]===void 0&&(c[h]=!0):(this.state[h]=1,g=!1,c[h]===void 0&&(c[h]=!0),l[h]===void 0&&(l[h]=!0),m[x]===void 0&&(m[x]=!0)))}),g||(d[_]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(m)}}loaded(s,r,n){const o=s.split("|"),l=o[0],c=o[1];r&&this.emit("failedLoading",l,c,r),!r&&n&&this.store.addResourceBundle(l,c,n,void 0,void 0,{skipCopy:!0}),this.state[s]=r?-1:2,r&&n&&(this.state[s]=0);const d={};this.queue.forEach(m=>{wu(m.loaded,[l],c),Fu(m,s),r&&m.errors.push(r),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(_=>{d[_]||(d[_]={});const g=m.loaded[_];g.length&&g.forEach(x=>{d[_][x]===void 0&&(d[_][x]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(m=>!m.done)}read(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!s.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:s,ns:r,fcName:n,tried:o,wait:l,callback:c});return}this.readingCalls++;const d=(_,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(_&&g&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,s,r,n,o+1,l*2,c)},l);return}c(_,g)},m=this.backend[n].bind(this.backend);if(m.length===2){try{const _=m(s,r);_&&typeof _.then=="function"?_.then(g=>d(null,g)).catch(d):d(null,_)}catch(_){d(_)}return}return m(s,r,d)}prepareLoading(s,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ue(s)&&(s=this.languageUtils.toResolveHierarchy(s)),ue(r)&&(r=[r]);const l=this.queueLoad(s,r,n,o);if(!l.toLoad.length)return l.pending.length||o(),null;l.toLoad.forEach(c=>{this.loadOne(c)})}load(s,r,n){this.prepareLoading(s,r,{},n)}reload(s,r,n){this.prepareLoading(s,r,{reload:!0},n)}loadOne(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=s.split("|"),o=n[0],l=n[1];this.read(o,l,"read",void 0,void 0,(c,d)=>{c&&this.logger.warn(`${r}loading namespace ${l} for language ${o} failed`,c),!c&&d&&this.logger.log(`${r}loaded namespace ${l} for language ${o}`,d),this.loaded(s,c,d)})}saveMissing(s,r,n,o,l){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const m={...c,isUpdate:l},_=this.backend.create.bind(this.backend);if(_.length<6)try{let g;_.length===5?g=_(s,r,n,o,m):g=_(s,r,n,o),g&&typeof g.then=="function"?g.then(x=>d(null,x)).catch(d):d(null,g)}catch(g){d(g)}else _(s,r,n,o,d,m)}!s||!s[0]||this.store.addResource(s[0],r,n,o)}}}const Wo=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let s={};if(typeof a[1]=="object"&&(s=a[1]),ue(a[1])&&(s.defaultValue=a[1]),ue(a[2])&&(s.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const r=a[3]||a[2];Object.keys(r).forEach(n=>{s[n]=r[n]})}return s},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Vo=a=>(ue(a.ns)&&(a.ns=[a.ns]),ue(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),ue(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs&&a.supportedLngs.indexOf("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),a),ma=()=>{},Uu=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(r=>{typeof a[r]=="function"&&(a[r]=a[r].bind(a))})};class Dr extends da{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Vo(s),this.services={},this.logger=Ht,this.modules={external:[]},Uu(this),r&&!this.isInitialized&&!s.isClone){if(!this.options.initImmediate)return this.init(s,r),this;setTimeout(()=>{this.init(s,r)},0)}}init(){var s=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(ue(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=Wo();this.options={...o,...this.options,...Vo(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const l=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?Ht.init(l(this.modules.logger),this.options):Ht.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=Ru);const x=new Ko(this.options);this.store=new Bo(this.options.resources,this.options);const h=this.services;h.logger=Ht,h.resourceStore=this.store,h.languageUtils=x,h.pluralResolver=new Mu(x,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(h.formatter=l(g),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new Ou(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new Bu(l(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(D){for(var z=arguments.length,P=new Array(z>1?z-1:0),$=1;$<z;$++)P[$-1]=arguments[$];s.emit(D,...P)}),this.modules.languageDetector&&(h.languageDetector=l(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=l(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new ua(this.services,this.options),this.translator.on("*",function(D){for(var z=arguments.length,P=new Array(z>1?z-1:0),$=1;$<z;$++)P[$-1]=arguments[$];s.emit(D,...P)}),this.modules.external.forEach(D=>{D.init&&D.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ma),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return s.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return s.store[g](...arguments),s}});const m=Tr(),_=()=>{const g=(x,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),m.resolve(h),n(x,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initImmediate?_():setTimeout(_,0),m}loadResources(s){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ma;const o=ue(s)?s:this.language;if(typeof s=="function"&&(n=s),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const l=[],c=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(_=>{_!=="cimode"&&l.indexOf(_)<0&&l.push(_)})};o?c(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>c(m)),this.options.preload&&this.options.preload.forEach(d=>c(d)),this.services.backendConnector.load(l,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(d)})}else n(null)}reloadResources(s,r,n){const o=Tr();return typeof s=="function"&&(n=s,s=void 0),typeof r=="function"&&(n=r,r=void 0),s||(s=this.languages),r||(r=this.options.ns),n||(n=ma),this.services.backendConnector.reload(s,r,l=>{o.resolve(),n(l)}),o}use(s){if(!s)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!s.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return s.type==="backend"&&(this.modules.backend=s),(s.type==="logger"||s.log&&s.warn&&s.error)&&(this.modules.logger=s),s.type==="languageDetector"&&(this.modules.languageDetector=s),s.type==="i18nFormat"&&(this.modules.i18nFormat=s),s.type==="postProcessor"&&Uo.addPostProcessor(s),s.type==="formatter"&&(this.modules.formatter=s),s.type==="3rdParty"&&this.modules.external.push(s),this}setResolvedLanguage(s){if(!(!s||!this.languages)&&!(["cimode","dev"].indexOf(s)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(s,r){var n=this;this.isLanguageChangingTo=s;const o=Tr();this.emit("languageChanging",s);const l=m=>{this.language=m,this.languages=this.services.languageUtils.toResolveHierarchy(m),this.resolvedLanguage=void 0,this.setResolvedLanguage(m)},c=(m,_)=>{_?(l(_),this.translator.changeLanguage(_),this.isLanguageChangingTo=void 0,this.emit("languageChanged",_),this.logger.log("languageChanged",_)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(m,function(){return n.t(...arguments)})},d=m=>{!s&&!m&&this.services.languageDetector&&(m=[]);const _=ue(m)?m:this.services.languageUtils.getBestMatchFromCodes(m);_&&(this.language||l(_),this.translator.language||this.translator.changeLanguage(_),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(_)),this.loadResources(_,g=>{c(g,_)})};return!s&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!s&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(s),o}getFixedT(s,r,n){var o=this;const l=function(c,d){let m;if(typeof d!="object"){for(var _=arguments.length,g=new Array(_>2?_-2:0),x=2;x<_;x++)g[x-2]=arguments[x];m=o.options.overloadTranslationOptionHandler([c,d].concat(g))}else m={...d};m.lng=m.lng||l.lng,m.lngs=m.lngs||l.lngs,m.ns=m.ns||l.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||n||l.keyPrefix);const h=o.options.keySeparator||".";let D;return m.keyPrefix&&Array.isArray(c)?D=c.map(z=>`${m.keyPrefix}${h}${z}`):D=m.keyPrefix?`${m.keyPrefix}${h}${c}`:c,o.t(D,m)};return ue(s)?l.lng=s:l.lngs=s,l.ns=r,l.keyPrefix=n,l}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(s){this.options.defaultNS=s}hasLoadedNamespace(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const c=(d,m)=>{const _=this.services.backendConnector.state[`${d}|${m}`];return _===-1||_===0||_===2};if(r.precheck){const d=r.precheck(this,c);if(d!==void 0)return d}return!!(this.hasResourceBundle(n,s)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(n,s)&&(!o||c(l,s)))}loadNamespaces(s,r){const n=Tr();return this.options.ns?(ue(s)&&(s=[s]),s.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(s,r){const n=Tr();ue(s)&&(s=[s]);const o=this.options.preload||[],l=s.filter(c=>o.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return l.length?(this.options.preload=o.concat(l),this.loadResources(c=>{n.resolve(),r&&r(c)}),n):(r&&r(),Promise.resolve())}dir(s){if(s||(s=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!s)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Ko(Wo());return r.indexOf(n.getLanguagePartFromCode(s))>-1||s.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Dr(s,r)}cloneInstance(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ma;const n=s.forkResourceStore;n&&delete s.forkResourceStore;const o={...this.options,...s,isClone:!0},l=new Dr(o);return(s.debug!==void 0||s.prefix!==void 0)&&(l.logger=l.logger.clone(s)),["store","services","language"].forEach(d=>{l[d]=this[d]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},n&&(l.store=new Bo(this.store.data,o),l.services.resourceStore=l.store),l.translator=new ua(l.services,o),l.translator.on("*",function(d){for(var m=arguments.length,_=new Array(m>1?m-1:0),g=1;g<m;g++)_[g-1]=arguments[g];l.emit(d,..._)}),l.init(o,r),l.translator.options=o,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Me=Dr.createInstance();Me.createInstance=Dr.createInstance,Me.createInstance,Me.dir,Me.init,Me.loadResources,Me.reloadResources,Me.use,Me.changeLanguage,Me.getFixedT,Me.t,Me.exists,Me.setDefaultNamespace,Me.hasLoadedNamespace,Me.loadNamespaces,Me.loadLanguages;const{t:It}=Me;function $u(a){return a.replace(/<.*>/,"")}class Ku{constructor(){Object.defineProperty(this,"delimiter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"paragraphBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.delimiter="***",this.lineBreak=`
|
106
|
+
`,kind:"statement"},{label:"for...to",insertText:"for ${1:i} = 1 to ${2:to_num} by 1\n ${3:local_block}\n",kind:"loop"},{label:"for...in",insertText:"for [${1:index}, ${2:value}] in ${3:arr}\n ${4:local_block}\n",kind:"loop"},{label:"while",insertText:"while ${1:condition}\n ${2:local_block}\n",kind:"statement"},{label:"switch",insertText:"switch ${1:condition}\n ${2:value_1} => ${3:local_block_1}\n ${4:value_2} => ${5:local_block_2}\n => ${6:default_local_block}\n",kind:"statement"}],Lo=["in","as","continue","break","else","to","by"],Ae={keywords:"keyword",functions:"built-in function",variables:"built-in variable",methods:"built-in method",types:"built-in type",annotations:"annotation",constants:"built-in constant",namespace:"namespace",userDefinedVariable:"user-defined variable",userDefinedType:"user-defined type",field:"field",enum:"enum",userDefinedMethod:"user-defined method",userDefinedFunction:"user-defined function",returns:"returns",parameter:"parameter",namespaceDesc:"**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.",toTriggerParameterHints:"to trigger parameters hint"},_u={clickOnKeywordForMoreHelp:"`click` on keyword for more help"};function fu(){const a={},s={};return Object.keys(Eo).reduce((r,n)=>{const o=Eo[n],l=Ae[n],{mapObj:c,keys:u}=gu(o,l);return r.keyMapList[n]=c,r.keyList[n]=u,r},{keyList:a,keyMapList:s}),{keyList:a,keyMapList:s}}function gu(a,s){const r=new Map,n=[];return a.forEach(o=>{var c;o.title=s;const l=o.originalName||o.name;l!=="for...in"&&(r.has(l)?(c=r.get(l))==null||c.push(o):(n.push(l),r.set(l,[o])))}),{mapObj:r,keys:n}}const{keyList:qn,keyMapList:nt}=fu();function bu(){var s;const a={};for(const r of Object.keys(qn)){const n=(s=qn[r])==null?void 0:s.sort().filter(o=>!Lo.includes(o));a[r]=n}return a}const ks=bu(),it=[{title:"内置变量",key:"variables",prefix:"var",index:0},{title:"常量",key:"constants",prefix:"const",index:1},{title:"函数",key:"functions",prefix:"fun",index:2},{title:"关键词",key:"keywords",prefix:"kw",index:3},{title:"类型",key:"types",prefix:"type",index:4},{title:"运算符",key:"operators",prefix:"op",index:5},{title:"注释",key:"annotations",prefix:"an",index:6}],ue=a=>typeof a=="string",Tr=()=>{let a,s;const r=new Promise((n,o)=>{a=n,s=o});return r.resolve=a,r.reject=s,r},Mo=a=>a==null?"":""+a,xu=(a,s,r)=>{a.forEach(n=>{s[n]&&(r[n]=s[n])})},hu=/###/g,Oo=a=>a&&a.indexOf("###")>-1?a.replace(hu,"."):a,Po=a=>!a||ue(a),kr=(a,s,r)=>{const n=ue(s)?s.split("."):s;let o=0;for(;o<n.length-1;){if(Po(a))return{};const l=Oo(n[o]);!a[l]&&r&&(a[l]=new r),Object.prototype.hasOwnProperty.call(a,l)?a=a[l]:a={},++o}return Po(a)?{}:{obj:a,k:Oo(n[o])}},Ro=(a,s,r)=>{const{obj:n,k:o}=kr(a,s,Object);if(n!==void 0||s.length===1){n[o]=r;return}let l=s[s.length-1],c=s.slice(0,s.length-1),u=kr(a,c,Object);for(;u.obj===void 0&&c.length;)l=`${c[c.length-1]}.${l}`,c=c.slice(0,c.length-1),u=kr(a,c,Object),u&&u.obj&&typeof u.obj[`${u.k}.${l}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${l}`]=r},wu=(a,s,r,n)=>{const{obj:o,k:l}=kr(a,s,Object);o[l]=o[l]||[],o[l].push(r)},la=(a,s)=>{const{obj:r,k:n}=kr(a,s);if(r)return r[n]},vu=(a,s,r)=>{const n=la(a,r);return n!==void 0?n:la(s,r)},Fo=(a,s,r)=>{for(const n in s)n!=="__proto__"&&n!=="constructor"&&(n in a?ue(a[n])||a[n]instanceof String||ue(s[n])||s[n]instanceof String?r&&(a[n]=s[n]):Fo(a[n],s[n],r):a[n]=s[n]);return a},$s=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Tu={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ku=a=>ue(a)?a.replace(/[&<>"'\/]/g,s=>Tu[s]):a;class Du{constructor(s){this.capacity=s,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(s){const r=this.regExpMap.get(s);if(r!==void 0)return r;const n=new RegExp(s);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(s,n),this.regExpQueue.push(s),n}}const Iu=[" ",",","?","!",";"],Au=new Du(20),qu=(a,s,r)=>{s=s||"",r=r||"";const n=Iu.filter(c=>s.indexOf(c)<0&&r.indexOf(c)<0);if(n.length===0)return!0;const o=Au.getRegExp(`(${n.map(c=>c==="?"?"\\?":c).join("|")})`);let l=!o.test(a);if(!l){const c=a.indexOf(r);c>0&&!o.test(a.substring(0,c))&&(l=!0)}return l},Cn=function(a,s){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[s])return a[s];const n=s.split(r);let o=a;for(let l=0;l<n.length;){if(!o||typeof o!="object")return;let c,u="";for(let m=l;m<n.length;++m)if(m!==l&&(u+=r),u+=n[m],c=o[u],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&m<n.length-1)continue;l+=m-l+1;break}o=c}return o},ca=a=>a&&a.replace("_","-"),Cu={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,s){console&&console[a]&&console[a].apply(console,s)}};class pa{constructor(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(s,r)}init(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=s||Cu,this.options=r,this.debug=r.debug}log(){for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(s,r,n,o){return o&&!this.debug?null:(ue(s[0])&&(s[0]=`${n}${this.prefix} ${s[0]}`),this.logger[r](s))}create(s){return new pa(this.logger,{prefix:`${this.prefix}:${s}:`,...this.options})}clone(s){return s=s||this.options,s.prefix=s.prefix||this.prefix,new pa(this.logger,s)}}var Ht=new pa;class da{constructor(){this.observers={}}on(s,r){return s.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(s,r){if(this.observers[s]){if(!r){delete this.observers[s];return}this.observers[s].delete(r)}}emit(s){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.observers[s]&&Array.from(this.observers[s].entries()).forEach(c=>{let[u,m]=c;for(let _=0;_<m;_++)u(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(c=>{let[u,m]=c;for(let _=0;_<m;_++)u.apply(u,[s,...n])})}}class Bo extends da{constructor(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=s||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(s){this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}removeNamespaces(s){const r=this.options.ns.indexOf(s);r>-1&&this.options.ns.splice(r,1)}getResource(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;s.indexOf(".")>-1?u=s.split("."):(u=[s,r],n&&(Array.isArray(n)?u.push(...n):ue(n)&&l?u.push(...n.split(l)):u.push(n)));const m=la(this.data,u);return!m&&!r&&!n&&s.indexOf(".")>-1&&(s=u[0],r=u[1],n=u.slice(2).join(".")),m||!c||!ue(n)?m:Cn(this.data&&this.data[s]&&this.data[s][r],n,l)}addResource(s,r,n,o){let l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let u=[s,r];n&&(u=u.concat(c?n.split(c):n)),s.indexOf(".")>-1&&(u=s.split("."),o=r,r=u[1]),this.addNamespaces(r),Ro(this.data,u,o),l.silent||this.emit("added",s,r,n,o)}addResources(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const l in n)(ue(n[l])||Array.isArray(n[l]))&&this.addResource(s,r,l,n[l],{silent:!0});o.silent||this.emit("added",s,r,n)}addResourceBundle(s,r,n,o,l){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[s,r];s.indexOf(".")>-1&&(u=s.split("."),o=n,n=r,r=u[1]),this.addNamespaces(r);let m=la(this.data,u)||{};c.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Fo(m,n,l):m={...m,...n},Ro(this.data,u,m),c.silent||this.emit("added",s,r,n)}removeResourceBundle(s,r){this.hasResourceBundle(s,r)&&delete this.data[s][r],this.removeNamespaces(r),this.emit("removed",s,r)}hasResourceBundle(s,r){return this.getResource(s,r)!==void 0}getResourceBundle(s,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(s,r)}:this.getResource(s,r)}getDataByLanguage(s){return this.data[s]}hasLanguageSomeTranslations(s){const r=this.getDataByLanguage(s);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var Uo={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,s,r,n,o){return a.forEach(l=>{this.processors[l]&&(s=this.processors[l].process(s,r,n,o))}),s}};const $o={};class ua extends da{constructor(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),xu(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],s,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ht.create("translator")}changeLanguage(s){s&&(this.language=s)}exists(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(s==null)return!1;const n=this.resolve(s,r);return n&&n.res!==void 0}extractFromKey(s,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let l=r.ns||this.options.defaultNS||[];const c=n&&s.indexOf(n)>-1,u=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!qu(s,n,o);if(c&&!u){const m=s.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:s,namespaces:ue(l)?[l]:l};const _=s.split(n);(n!==o||n===o&&this.options.ns.indexOf(_[0])>-1)&&(l=_.shift()),s=_.join(o)}return{key:s,namespaces:ue(l)?[l]:l}}translate(s,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),s==null)return"";Array.isArray(s)||(s=[String(s)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:c,namespaces:u}=this.extractFromKey(s[s.length-1],r),m=u[u.length-1],_=r.lng||this.language,g=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(_&&_.toLowerCase()==="cimode"){if(g){const W=r.nsSeparator||this.options.nsSeparator;return o?{res:`${m}${W}${c}`,usedKey:c,exactUsedKey:c,usedLng:_,usedNS:m,usedParams:this.getUsedParamsDetails(r)}:`${m}${W}${c}`}return o?{res:c,usedKey:c,exactUsedKey:c,usedLng:_,usedNS:m,usedParams:this.getUsedParamsDetails(r)}:c}const x=this.resolve(s,r);let h=x&&x.res;const D=x&&x.usedKey||c,S=x&&x.exactUsedKey||c,R=Object.prototype.toString.apply(h),U=["[object Number]","[object Function]","[object RegExp]"],K=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,H=!this.i18nFormat||this.i18nFormat.handleAsObject,re=!ue(h)&&typeof h!="boolean"&&typeof h!="number";if(H&&h&&re&&U.indexOf(R)<0&&!(ue(K)&&Array.isArray(h))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const W=this.options.returnedObjectHandler?this.options.returnedObjectHandler(D,h,{...r,ns:u}):`key '${c} (${this.language})' returned an object instead of string.`;return o?(x.res=W,x.usedParams=this.getUsedParamsDetails(r),x):W}if(l){const W=Array.isArray(h),Q=W?[]:{},C=W?S:D;for(const z in h)if(Object.prototype.hasOwnProperty.call(h,z)){const V=`${C}${l}${z}`;Q[z]=this.translate(V,{...r,joinArrays:!1,ns:u}),Q[z]===V&&(Q[z]=h[z])}h=Q}}else if(H&&ue(K)&&Array.isArray(h))h=h.join(K),h&&(h=this.extendTranslation(h,s,r,n));else{let W=!1,Q=!1;const C=r.count!==void 0&&!ue(r.count),z=ua.hasDefaultValue(r),V=C?this.pluralResolver.getSuffix(_,r.count,r):"",q=r.ordinal&&C?this.pluralResolver.getSuffix(_,r.count,{ordinal:!1}):"",A=C&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),L=A&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${V}`]||r[`defaultValue${q}`]||r.defaultValue;!this.isValidLookup(h)&&z&&(W=!0,h=L),this.isValidLookup(h)||(Q=!0,h=c);const ee=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Q?void 0:h,ne=z&&L!==h&&this.options.updateMissing;if(Q||W||ne){if(this.logger.log(ne?"updateKey":"missingKey",_,m,c,ne?L:h),l){const pe=this.resolve(c,{...r,keySeparator:!1});pe&&pe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Y=[];const le=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&le&&le[0])for(let pe=0;pe<le.length;pe++)Y.push(le[pe]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(r.lng||this.language):Y.push(r.lng||this.language);const xe=(pe,_e,Ee)=>{const te=z&&Ee!==h?Ee:ee;this.options.missingKeyHandler?this.options.missingKeyHandler(pe,m,_e,te,ne,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(pe,m,_e,te,ne,r),this.emit("missingKey",pe,m,_e,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?Y.forEach(pe=>{const _e=this.pluralResolver.getSuffixes(pe,r);A&&r[`defaultValue${this.options.pluralSeparator}zero`]&&_e.indexOf(`${this.options.pluralSeparator}zero`)<0&&_e.push(`${this.options.pluralSeparator}zero`),_e.forEach(Ee=>{xe([pe],c+Ee,r[`defaultValue${Ee}`]||L)})}):xe(Y,c,L))}h=this.extendTranslation(h,s,r,x,n),Q&&h===c&&this.options.appendNamespaceToMissingKey&&(h=`${m}:${c}`),(Q||W)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}:${c}`:c,W?h:void 0):h=this.options.parseMissingKeyHandler(h))}return o?(x.res=h,x.usedParams=this.getUsedParamsDetails(r),x):h}extendTranslation(s,r,n,o,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)s=this.i18nFormat.parse(s,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const _=ue(s)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(_){const h=s.match(this.interpolator.nestingRegexp);g=h&&h.length}let x=n.replace&&!ue(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),s=this.interpolator.interpolate(s,x,n.lng||this.language||o.usedLng,n),_){const h=s.match(this.interpolator.nestingRegexp),D=h&&h.length;g<D&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(s=this.interpolator.nest(s,function(){for(var h=arguments.length,D=new Array(h),S=0;S<h;S++)D[S]=arguments[S];return l&&l[0]===D[0]&&!n.context?(c.logger.warn(`It seems you are nesting recursively key: ${D[0]} in key: ${r[0]}`),null):c.translate(...D,r)},n)),n.interpolation&&this.interpolator.reset()}const u=n.postProcess||this.options.postProcess,m=ue(u)?[u]:u;return s!=null&&m&&m.length&&n.applyPostProcessor!==!1&&(s=Uo.handle(m,s,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),s}resolve(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,l,c,u;return ue(s)&&(s=[s]),s.forEach(m=>{if(this.isValidLookup(n))return;const _=this.extractFromKey(m,r),g=_.key;o=g;let x=_.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const h=r.count!==void 0&&!ue(r.count),D=h&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),S=r.context!==void 0&&(ue(r.context)||typeof r.context=="number")&&r.context!=="",R=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);x.forEach(U=>{this.isValidLookup(n)||(u=U,!$o[`${R[0]}-${U}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&($o[`${R[0]}-${U}`]=!0,this.logger.warn(`key "${o}" for languages "${R.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),R.forEach(K=>{if(this.isValidLookup(n))return;c=K;const H=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(H,g,K,U,r);else{let W;h&&(W=this.pluralResolver.getSuffix(K,r.count,r));const Q=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(H.push(g+W),r.ordinal&&W.indexOf(C)===0&&H.push(g+W.replace(C,this.options.pluralSeparator)),D&&H.push(g+Q)),S){const z=`${g}${this.options.contextSeparator}${r.context}`;H.push(z),h&&(H.push(z+W),r.ordinal&&W.indexOf(C)===0&&H.push(z+W.replace(C,this.options.pluralSeparator)),D&&H.push(z+Q))}}let re;for(;re=H.pop();)this.isValidLookup(n)||(l=re,n=this.getResource(K,U,re,r))}))})}),{res:n,usedKey:o,exactUsedKey:l,usedLng:c,usedNS:u}}isValidLookup(s){return s!==void 0&&!(!this.options.returnNull&&s===null)&&!(!this.options.returnEmptyString&&s==="")}getResource(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(s,r,n,o):this.resourceStore.getResource(s,r,n,o)}getUsedParamsDetails(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=s.replace&&!ue(s.replace);let o=n?s.replace:s;if(n&&typeof s.count<"u"&&(o.count=s.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const l of r)delete o[l]}return o}static hasDefaultValue(s){const r="defaultValue";for(const n in s)if(Object.prototype.hasOwnProperty.call(s,n)&&r===n.substring(0,r.length)&&s[n]!==void 0)return!0;return!1}}const Sn=a=>a.charAt(0).toUpperCase()+a.slice(1);class Ko{constructor(s){this.options=s,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ht.create("languageUtils")}getScriptPartFromCode(s){if(s=ca(s),!s||s.indexOf("-")<0)return null;const r=s.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(s){if(s=ca(s),!s||s.indexOf("-")<0)return s;const r=s.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(s){if(ue(s)&&s.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(s)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=s.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Sn(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Sn(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Sn(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?s.toLowerCase():s}isSupportedCode(s){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(s=this.getLanguagePartFromCode(s)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(s)>-1}getBestMatchFromCodes(s){if(!s)return null;let r;return s.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&s.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(l=>{if(l===o)return l;if(!(l.indexOf("-")<0&&o.indexOf("-")<0)&&(l.indexOf("-")>0&&o.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===o||l.indexOf(o)===0&&o.length>1))return l})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(s,r){if(!s)return[];if(typeof s=="function"&&(s=s(r)),ue(s)&&(s=[s]),Array.isArray(s))return s;if(!r)return s.default||[];let n=s[r];return n||(n=s[this.getScriptPartFromCode(r)]),n||(n=s[this.formatLanguageCode(r)]),n||(n=s[this.getLanguagePartFromCode(r)]),n||(n=s.default),n||[]}toResolveHierarchy(s,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],s),o=[],l=c=>{c&&(this.isSupportedCode(c)?o.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return ue(s)&&(s.indexOf("-")>-1||s.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(s)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(s)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(s))):ue(s)&&l(this.formatLanguageCode(s)),n.forEach(c=>{o.indexOf(c)<0&&l(this.formatLanguageCode(c))}),o}}let Su=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],zu={1:a=>+(a>1),2:a=>+(a!=1),3:a=>0,4:a=>a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2,5:a=>a==0?0:a==1?1:a==2?2:a%100>=3&&a%100<=10?3:a%100>=11?4:5,6:a=>a==1?0:a>=2&&a<=4?1:2,7:a=>a==1?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2,8:a=>a==1?0:a==2?1:a!=8&&a!=11?2:3,9:a=>+(a>=2),10:a=>a==1?0:a==2?1:a<7?2:a<11?3:4,11:a=>a==1||a==11?0:a==2||a==12?1:a>2&&a<20?2:3,12:a=>+(a%10!=1||a%100==11),13:a=>+(a!==0),14:a=>a==1?0:a==2?1:a==3?2:3,15:a=>a%10==1&&a%100!=11?0:a%10>=2&&(a%100<10||a%100>=20)?1:2,16:a=>a%10==1&&a%100!=11?0:a!==0?1:2,17:a=>a==1||a%10==1&&a%100!=11?0:1,18:a=>a==0?0:a==1?1:2,19:a=>a==1?0:a==0||a%100>1&&a%100<11?1:a%100>10&&a%100<20?2:3,20:a=>a==1?0:a==0||a%100>0&&a%100<20?1:2,21:a=>a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0,22:a=>a==1?0:a==2?1:(a<0||a>10)&&a%10==0?2:3};const Nu=["v1","v2","v3"],Eu=["v4"],jo={zero:0,one:1,two:2,few:3,many:4,other:5},Lu=()=>{const a={};return Su.forEach(s=>{s.lngs.forEach(r=>{a[r]={numbers:s.nr,plurals:zu[s.fc]}})}),a};class Mu{constructor(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=s,this.options=r,this.logger=Ht.create("pluralResolver"),(!this.options.compatibilityJSON||Eu.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Lu(),this.pluralRulesCache={}}addRule(s,r){this.rules[s]=r}clearCache(){this.pluralRulesCache={}}getRule(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=ca(s==="dev"?"en":s),o=r.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:n,type:o});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];const c=new Intl.PluralRules(n,{type:o});return this.pluralRulesCache[l]=c,c}catch{return}return this.rules[s]||this.rules[this.languageUtils.getLanguagePartFromCode(s)]}needsPlural(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(s,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(s,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(s,n).map(o=>`${r}${o}`)}getSuffixes(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(s,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,l)=>jo[o]-jo[l]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(s,o,r)):[]}getSuffix(s,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(s,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${s}`),"")}getSuffixRetroCompatible(s,r){const n=s.noAbs?s.plurals(r):s.plurals(Math.abs(r));let o=s.numbers[n];this.options.simplifyPluralSuffix&&s.numbers.length===2&&s.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const l=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&s.numbers.length===2&&s.numbers[0]===1?l():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Nu.includes(this.options.compatibilityJSON)}}const Ho=function(a,s,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=vu(a,s,r);return!l&&o&&ue(r)&&(l=Cn(a,r,n),l===void 0&&(l=Cn(s,r,n))),l},zn=a=>a.replace(/\$/g,"$$$$");class Ou{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ht.create("interpolator"),this.options=s,this.format=s.interpolation&&s.interpolation.format||(r=>r),this.init(s)}init(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s.interpolation||(s.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:l,prefixEscaped:c,suffix:u,suffixEscaped:m,formatSeparator:_,unescapeSuffix:g,unescapePrefix:x,nestingPrefix:h,nestingPrefixEscaped:D,nestingSuffix:S,nestingSuffixEscaped:R,nestingOptionsSeparator:U,maxReplaces:K,alwaysFormat:H}=s.interpolation;this.escape=r!==void 0?r:ku,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=l?$s(l):c||"{{",this.suffix=u?$s(u):m||"}}",this.formatSeparator=_||",",this.unescapePrefix=g?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=h?$s(h):D||$s("$t("),this.nestingSuffix=S?$s(S):R||$s(")"),this.nestingOptionsSeparator=U||",",this.maxReplaces=K||1e3,this.alwaysFormat=H!==void 0?H:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const s=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=s(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=s(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=s(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(s,r,n,o){let l,c,u;const m=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},_=D=>{if(D.indexOf(this.formatSeparator)<0){const K=Ho(r,m,D,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(K,void 0,n,{...o,...r,interpolationkey:D}):K}const S=D.split(this.formatSeparator),R=S.shift().trim(),U=S.join(this.formatSeparator).trim();return this.format(Ho(r,m,R,this.options.keySeparator,this.options.ignoreJSONStructure),U,n,{...o,...r,interpolationkey:R})};this.resetRegExp();const g=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,x=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:D=>zn(D)},{regex:this.regexp,safeValue:D=>this.escapeValue?zn(this.escape(D)):zn(D)}].forEach(D=>{for(u=0;l=D.regex.exec(s);){const S=l[1].trim();if(c=_(S),c===void 0)if(typeof g=="function"){const U=g(s,l,o);c=ue(U)?U:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))c="";else if(x){c=l[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${s}`),c="";else!ue(c)&&!this.useRawValueToEscape&&(c=Mo(c));const R=D.safeValue(c);if(s=s.replace(l[0],R),x?(D.regex.lastIndex+=c.length,D.regex.lastIndex-=l[0].length):D.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),s}nest(s,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,l,c;const u=(m,_)=>{const g=this.nestingOptionsSeparator;if(m.indexOf(g)<0)return m;const x=m.split(new RegExp(`${g}[ ]*{`));let h=`{${x[1]}`;m=x[0],h=this.interpolate(h,c);const D=h.match(/'/g),S=h.match(/"/g);(D&&D.length%2===0&&!S||S.length%2!==0)&&(h=h.replace(/'/g,'"'));try{c=JSON.parse(h),_&&(c={..._,...c})}catch(R){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,R),`${m}${g}${h}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,m};for(;o=this.nestingRegexp.exec(s);){let m=[];c={...n},c=c.replace&&!ue(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;let _=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const g=o[1].split(this.formatSeparator).map(x=>x.trim());o[1]=g.shift(),m=g,_=!0}if(l=r(u.call(this,o[1].trim(),c),c),l&&o[0]===s&&!ue(l))return l;ue(l)||(l=Mo(l)),l||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${s}`),l=""),_&&(l=m.reduce((g,x)=>this.format(g,x,n.lng,{...n,interpolationkey:o[1].trim()}),l.trim())),s=s.replace(o[0],l),this.regexp.lastIndex=0}return s}}const Pu=a=>{let s=a.toLowerCase().trim();const r={};if(a.indexOf("(")>-1){const n=a.split("(");s=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);s==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):s==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(c=>{if(c){const[u,...m]=c.split(":"),_=m.join(":").trim().replace(/^'+|'+$/g,""),g=u.trim();r[g]||(r[g]=_),_==="false"&&(r[g]=!1),_==="true"&&(r[g]=!0),isNaN(_)||(r[g]=parseInt(_,10))}})}return{formatName:s,formatOptions:r}},Ks=a=>{const s={};return(r,n,o)=>{let l=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(l={...l,[o.interpolationkey]:void 0});const c=n+JSON.stringify(l);let u=s[c];return u||(u=a(ca(n),o),s[c]=u),u(r)}};class Ru{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ht.create("formatter"),this.options=s,this.formats={number:Ks((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return l=>o.format(l)}),currency:Ks((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return l=>o.format(l)}),datetime:Ks((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return l=>o.format(l)}),relativetime:Ks((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return l=>o.format(l,n.range||"day")}),list:Ks((r,n)=>{const o=new Intl.ListFormat(r,{...n});return l=>o.format(l)})},this.init(s)}init(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(s,r){this.formats[s.toLowerCase().trim()]=r}addCached(s,r){this.formats[s.toLowerCase().trim()]=Ks(r)}format(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const l=r.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(u=>u.indexOf(")")>-1)){const u=l.findIndex(m=>m.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,u)].join(this.formatSeparator)}return l.reduce((u,m)=>{const{formatName:_,formatOptions:g}=Pu(m);if(this.formats[_]){let x=u;try{const h=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},D=h.locale||h.lng||o.locale||o.lng||n;x=this.formats[_](u,D,{...g,...o,...h})}catch(h){this.logger.warn(h)}return x}else this.logger.warn(`there was no format function for ${_}`);return u},s)}}const Fu=(a,s)=>{a.pending[s]!==void 0&&(delete a.pending[s],a.pendingCount--)};class Bu extends da{constructor(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=s,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=Ht.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(s,r,n,o){const l={},c={},u={},m={};return s.forEach(_=>{let g=!0;r.forEach(x=>{const h=`${_}|${x}`;!n.reload&&this.store.hasResourceBundle(_,x)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?c[h]===void 0&&(c[h]=!0):(this.state[h]=1,g=!1,c[h]===void 0&&(c[h]=!0),l[h]===void 0&&(l[h]=!0),m[x]===void 0&&(m[x]=!0)))}),g||(u[_]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(m)}}loaded(s,r,n){const o=s.split("|"),l=o[0],c=o[1];r&&this.emit("failedLoading",l,c,r),!r&&n&&this.store.addResourceBundle(l,c,n,void 0,void 0,{skipCopy:!0}),this.state[s]=r?-1:2,r&&n&&(this.state[s]=0);const u={};this.queue.forEach(m=>{wu(m.loaded,[l],c),Fu(m,s),r&&m.errors.push(r),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(_=>{u[_]||(u[_]={});const g=m.loaded[_];g.length&&g.forEach(x=>{u[_][x]===void 0&&(u[_][x]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(m=>!m.done)}read(s,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!s.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:s,ns:r,fcName:n,tried:o,wait:l,callback:c});return}this.readingCalls++;const u=(_,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(_&&g&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,s,r,n,o+1,l*2,c)},l);return}c(_,g)},m=this.backend[n].bind(this.backend);if(m.length===2){try{const _=m(s,r);_&&typeof _.then=="function"?_.then(g=>u(null,g)).catch(u):u(null,_)}catch(_){u(_)}return}return m(s,r,u)}prepareLoading(s,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ue(s)&&(s=this.languageUtils.toResolveHierarchy(s)),ue(r)&&(r=[r]);const l=this.queueLoad(s,r,n,o);if(!l.toLoad.length)return l.pending.length||o(),null;l.toLoad.forEach(c=>{this.loadOne(c)})}load(s,r,n){this.prepareLoading(s,r,{},n)}reload(s,r,n){this.prepareLoading(s,r,{reload:!0},n)}loadOne(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=s.split("|"),o=n[0],l=n[1];this.read(o,l,"read",void 0,void 0,(c,u)=>{c&&this.logger.warn(`${r}loading namespace ${l} for language ${o} failed`,c),!c&&u&&this.logger.log(`${r}loaded namespace ${l} for language ${o}`,u),this.loaded(s,c,u)})}saveMissing(s,r,n,o,l){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const m={...c,isUpdate:l},_=this.backend.create.bind(this.backend);if(_.length<6)try{let g;_.length===5?g=_(s,r,n,o,m):g=_(s,r,n,o),g&&typeof g.then=="function"?g.then(x=>u(null,x)).catch(u):u(null,g)}catch(g){u(g)}else _(s,r,n,o,u,m)}!s||!s[0]||this.store.addResource(s[0],r,n,o)}}}const Wo=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let s={};if(typeof a[1]=="object"&&(s=a[1]),ue(a[1])&&(s.defaultValue=a[1]),ue(a[2])&&(s.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const r=a[3]||a[2];Object.keys(r).forEach(n=>{s[n]=r[n]})}return s},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Vo=a=>(ue(a.ns)&&(a.ns=[a.ns]),ue(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),ue(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs&&a.supportedLngs.indexOf("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),a),ma=()=>{},Uu=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(r=>{typeof a[r]=="function"&&(a[r]=a[r].bind(a))})};class Dr extends da{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Vo(s),this.services={},this.logger=Ht,this.modules={external:[]},Uu(this),r&&!this.isInitialized&&!s.isClone){if(!this.options.initImmediate)return this.init(s,r),this;setTimeout(()=>{this.init(s,r)},0)}}init(){var s=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(ue(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=Wo();this.options={...o,...this.options,...Vo(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const l=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?Ht.init(l(this.modules.logger),this.options):Ht.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=Ru);const x=new Ko(this.options);this.store=new Bo(this.options.resources,this.options);const h=this.services;h.logger=Ht,h.resourceStore=this.store,h.languageUtils=x,h.pluralResolver=new Mu(x,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(h.formatter=l(g),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new Ou(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new Bu(l(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(D){for(var S=arguments.length,R=new Array(S>1?S-1:0),U=1;U<S;U++)R[U-1]=arguments[U];s.emit(D,...R)}),this.modules.languageDetector&&(h.languageDetector=l(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=l(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new ua(this.services,this.options),this.translator.on("*",function(D){for(var S=arguments.length,R=new Array(S>1?S-1:0),U=1;U<S;U++)R[U-1]=arguments[U];s.emit(D,...R)}),this.modules.external.forEach(D=>{D.init&&D.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ma),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return s.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return s.store[g](...arguments),s}});const m=Tr(),_=()=>{const g=(x,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),m.resolve(h),n(x,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initImmediate?_():setTimeout(_,0),m}loadResources(s){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ma;const o=ue(s)?s:this.language;if(typeof s=="function"&&(n=s),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const l=[],c=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(_=>{_!=="cimode"&&l.indexOf(_)<0&&l.push(_)})};o?c(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>c(m)),this.options.preload&&this.options.preload.forEach(u=>c(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(s,r,n){const o=Tr();return typeof s=="function"&&(n=s,s=void 0),typeof r=="function"&&(n=r,r=void 0),s||(s=this.languages),r||(r=this.options.ns),n||(n=ma),this.services.backendConnector.reload(s,r,l=>{o.resolve(),n(l)}),o}use(s){if(!s)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!s.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return s.type==="backend"&&(this.modules.backend=s),(s.type==="logger"||s.log&&s.warn&&s.error)&&(this.modules.logger=s),s.type==="languageDetector"&&(this.modules.languageDetector=s),s.type==="i18nFormat"&&(this.modules.i18nFormat=s),s.type==="postProcessor"&&Uo.addPostProcessor(s),s.type==="formatter"&&(this.modules.formatter=s),s.type==="3rdParty"&&this.modules.external.push(s),this}setResolvedLanguage(s){if(!(!s||!this.languages)&&!(["cimode","dev"].indexOf(s)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(s,r){var n=this;this.isLanguageChangingTo=s;const o=Tr();this.emit("languageChanging",s);const l=m=>{this.language=m,this.languages=this.services.languageUtils.toResolveHierarchy(m),this.resolvedLanguage=void 0,this.setResolvedLanguage(m)},c=(m,_)=>{_?(l(_),this.translator.changeLanguage(_),this.isLanguageChangingTo=void 0,this.emit("languageChanged",_),this.logger.log("languageChanged",_)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(m,function(){return n.t(...arguments)})},u=m=>{!s&&!m&&this.services.languageDetector&&(m=[]);const _=ue(m)?m:this.services.languageUtils.getBestMatchFromCodes(m);_&&(this.language||l(_),this.translator.language||this.translator.changeLanguage(_),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(_)),this.loadResources(_,g=>{c(g,_)})};return!s&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!s&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(s),o}getFixedT(s,r,n){var o=this;const l=function(c,u){let m;if(typeof u!="object"){for(var _=arguments.length,g=new Array(_>2?_-2:0),x=2;x<_;x++)g[x-2]=arguments[x];m=o.options.overloadTranslationOptionHandler([c,u].concat(g))}else m={...u};m.lng=m.lng||l.lng,m.lngs=m.lngs||l.lngs,m.ns=m.ns||l.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||n||l.keyPrefix);const h=o.options.keySeparator||".";let D;return m.keyPrefix&&Array.isArray(c)?D=c.map(S=>`${m.keyPrefix}${h}${S}`):D=m.keyPrefix?`${m.keyPrefix}${h}${c}`:c,o.t(D,m)};return ue(s)?l.lng=s:l.lngs=s,l.ns=r,l.keyPrefix=n,l}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(s){this.options.defaultNS=s}hasLoadedNamespace(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const c=(u,m)=>{const _=this.services.backendConnector.state[`${u}|${m}`];return _===-1||_===0||_===2};if(r.precheck){const u=r.precheck(this,c);if(u!==void 0)return u}return!!(this.hasResourceBundle(n,s)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(n,s)&&(!o||c(l,s)))}loadNamespaces(s,r){const n=Tr();return this.options.ns?(ue(s)&&(s=[s]),s.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(s,r){const n=Tr();ue(s)&&(s=[s]);const o=this.options.preload||[],l=s.filter(c=>o.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return l.length?(this.options.preload=o.concat(l),this.loadResources(c=>{n.resolve(),r&&r(c)}),n):(r&&r(),Promise.resolve())}dir(s){if(s||(s=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!s)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Ko(Wo());return r.indexOf(n.getLanguagePartFromCode(s))>-1||s.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Dr(s,r)}cloneInstance(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ma;const n=s.forkResourceStore;n&&delete s.forkResourceStore;const o={...this.options,...s,isClone:!0},l=new Dr(o);return(s.debug!==void 0||s.prefix!==void 0)&&(l.logger=l.logger.clone(s)),["store","services","language"].forEach(u=>{l[u]=this[u]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},n&&(l.store=new Bo(this.store.data,o),l.services.resourceStore=l.store),l.translator=new ua(l.services,o),l.translator.on("*",function(u){for(var m=arguments.length,_=new Array(m>1?m-1:0),g=1;g<m;g++)_[g-1]=arguments[g];l.emit(u,..._)}),l.init(o,r),l.translator.options=o,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Me=Dr.createInstance();Me.createInstance=Dr.createInstance,Me.createInstance,Me.dir,Me.init,Me.loadResources,Me.reloadResources,Me.use,Me.changeLanguage,Me.getFixedT,Me.t,Me.exists,Me.setDefaultNamespace,Me.hasLoadedNamespace,Me.loadNamespaces,Me.loadLanguages;const{t:It}=Me;function $u(a){return a.replace(/<.*>/,"")}class Ku{constructor(){Object.defineProperty(this,"delimiter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"paragraphBreak",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.delimiter="***",this.lineBreak=`
|
107
107
|
`,this.paragraphBreak=`
|
108
108
|
|
109
109
|
`}bold(s){return`**${s}**`}italic(s){return`*${s.replace(">",">").replace("<","<")}*`}pineCode(s){return`\`\`\`
|
110
110
|
${s}
|
111
|
-
\`\`\``}code(s){return`\`${s}\``}paragraph(...s){return[this.paragraphBreak,...s,this.paragraphBreak].join(this.lineBreak)}link(s,r){return`[${s}](${r.href})`}}const ge=new Ku;function ju(a){const{name:s,libraryName:r,desc:n}=a,o=[`${ge.bold(s||r)} (${It("library")})`];return o.push(ge.delimiter),n&&o.push(ge.paragraph(ge.bold(It(pt.Description)),ge.lineBreak,n)),o.join(o.length===2?" ":ge.lineBreak)}function Hu(a,s=0,r=!0){const n=a[s];if(!n)return"";if(n.isEnumMember)return`${ge.bold(n.name)} (${It("enum member")})${n.value===void 0?"":` = ${n.value}`}`;const o=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:l,title:c="",desc:d,type:m,syntax:_,returns:g,remarks:x,fields:h,members:D}=n,z=[`${ge.bold(l)} (${It(c)})`];if(a.length>1&&z.push(ge.italic(`+${a.length-1} ${It("overloads")}`)),z.push(ge.delimiter),d&&z.push(ge.paragraph(Array.isArray(d)?d.join(ge.lineBreak):d||"")),m&&z.push(ge.paragraph(ge.bold(It(pt.Type)),ge.italic(m))),_&&_.length&&z.push(ge.paragraph(ge.bold(It(pt.Syntax)),ge.pineCode(_.join(ge.lineBreak)))),g&&z.push(ge.paragraph(ge.bold(It(pt.Returns)),ge.lineBreak,g.join(ge.lineBreak))),x&&x.length&&a.length<=1){let P="";typeof x=="string"?P=x:P=x.join(ge.lineBreak)||"",P.length<200&&z.push(ge.paragraph(ge.bold(It(pt.Remarks)),ge.lineBreak,P))}if(h){const P=[];for(const $ of h){const j=$.desc?` - ${$.desc}`:"";P.push(`${$.name} (${$.type})${j}`)}z.push(ge.paragraph(ge.bold(It(pt.Fields)),ge.lineBreak,P.join(ge.paragraphBreak)))}if(D){const P=[];for(const $ of D){const j=$.desc?` - ${$.desc}`:"";P.push(`${$.name}${$.value?` (${$.value})`:""}${j}`)}z.push(ge.paragraph(ge.bold(It(pt.EnumMembers)),ge.lineBreak,P.join(ge.paragraphBreak)))}return r&&z.push(ge.italic(`${ge.code(o?"⌘":"Ctrl")} + ${It(_u.clickOnKeywordForMoreHelp)}`)),z.join(z.length===2?" ":ge.lineBreak)}const Nn="tcc_cursor_position",Wu=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function Vu(a){return a.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function Gu(a){const s=a.getContribution("editor.contrib.contextmenu"),r=s==null?void 0:s._getMenuActions;s._getMenuActions=function(){return r.apply(s,arguments).filter(function(o){return!Wu.includes(o.id)})}}const{t:$e}=Me;class Xu{constructor(){Object.defineProperty(this,"bracketsPostfix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_builtinSubtreeCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_namespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_suggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_outermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFuncArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userOutermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userEnums",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nextIsBracket",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=ge,this._namespaceCache=new Map,this._suggestions=[],this._outermostNsItems=new Map,this._funcArgsCache=new Map,this._userSuggestions=[],this._userFuncArgsCache=new Map,this._userNamespaceCache=new Map,this._userOutermostNsItems=new Map,this._methodNamespaceCache=new Map,this._userMethods=new Map,this._userTypes=new Map,this._methodFuncs=new Map,this._userFunctions=new Map,this._userEnums=new Map,this._nextIsBracket=!1}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}get userEnums(){return this._userEnums}set nextIsBracket(s){this._nextIsBracket=s}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(s){return this._funcArgsCache.get(s)||this._userFuncArgsCache.get(s)}getSuggestions(s){return s?this._namespaceCache.get(s)||this._userNamespaceCache.get(s):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(s,r,n,o,l){this._initUserDefind();const c=this._mergeTreeSlices(this._generateTreeSlice(nt.methods,"method"),this._generateTreeSlice(o,"method"));this._getMethodNamespaceCache(c),this._userMethods=o,this._userTypes=r,this._userFunctions=s,this._userEnums=l;const d=this._generateTreeSlice(s,"fun");this._userSuggestions=this._getAllUserCompletionItems(d,this._generateTreeSlice(r,"type"),this._generateTreeSlice(n,"var"),this._generateTreeSlice(l,"enum")),this._getUserFuncArgumentsCompletionItemsToCache(d)}_getAllUserCompletionItems(s,r,n,o){const l=this._getEnumCompletionItems(o),c=this._getUserVariableCompletionItems(n),d=this._getTypeCompletionItems(r,!0),m=this._getFunctionCompletionItems(s,void 0,!0);return[...d,...m,...c,...l,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:s,keywords:r,types:n,functions:o}=this._builtinSubtreeCache,l=this._getVariableCompletionItems(s),c=this._getKeywordCompletionItems(r),d=this._getTypeCompletionItems(n),m=this._getFunctionCompletionItems(o),_=this._getSnippetsCompletionsList();return[...l,...c,...d,...m,...this._outermostNsItems.values(),..._]}_getNodeKey(s,r){return`${r}_${s}`}_mergeTreeSlices(...s){const r=new Map;for(const n of s)for(const[o,l]of n){const c=r.get(o);c?r.set(o,{...c,children:this._mergeTreeSlices(l.children,c.children)}):r.set(o,l)}return r}_mergeCompletions(s,r){const n=this._namespaceCache.get(s);n?this._namespaceCache.set(s,[...n,...r]):this._namespaceCache.set(s,r)}_mergeUserCompletions(s,r){const n=this._userNamespaceCache.get(s);n?this._userNamespaceCache.set(s,[...n,...r]):this._userNamespaceCache.set(s,r)}_generateTreeSlice(s,r){const n=new Map;for(const[o,l]of s){const[c,...d]=o.split("."),m=d.length>0,_=n.get(this._getNodeKey(c,m?"ns":r));let g=new Map,x=l.map(D=>({...D,name:o})),h=this._getNodeKey(o,r);if(m&&r!=="type"){const D=new Map([[d.join("."),l]]);x=[{name:c,title:Ae.namespace}],h=this._getNodeKey(c,"ns"),g=this._generateTreeSlice(D,r)}_&&(x=[{name:c,title:Ae.namespace}],g=this._mergeTreeSlices(_.children,g)),n.set(h,{value:x,children:g})}return n}_getBuiltinsCacheFragment(){const{keywords:s,variables:r,constants:n,types:o,functions:l,annotations:c}=nt,d=this._generateTreeSlice(c,"an");return d.delete("an_@version="),this._builtinSubtreeCache={keywords:this._generateTreeSlice(s,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(r,"var"),this._generateTreeSlice(n,"var")),types:this._generateTreeSlice(o,"type"),functions:this._generateTreeSlice(l,"fun"),annotations:d},this._builtinSubtreeCache}_getVariableCompletionItems(s,r){const n=[],o=[];for(const[l,c]of s){const{value:d,children:m}=c;if(l.startsWith("ns")){const _=this._getNamespaceCompletionItem(d[0]);if(r){o.push({..._});const x=`${r}.${_.label}`;_.label=x,_.insertText=x}const g=this._getVariableCompletionItems(m,_.label);r||this._outermostNsItems.set(l,_),n.push(...g)}else{const _=this._getVariableCompletionItem(d[0],r?3:2);if(r){o.push({..._});const{label:g}=_;_.label=`${r}.${g}`,_.insertText=`${r}.${_.insertText}`,_.filterText=`${g}\r`}n.push(_)}}return o.length&&r&&this._mergeCompletions(r,o),n}_setUserVariableSubItems(s,r){var _,g,x,h;let n=[];const o=Vu(s.type||""),l=this._methodNamespaceCache.get(o),c=r?`${r}.${s.name}`:s.name;l&&(n=l.filter(D=>{var j;const z=`${o}.${D.label}`,P=nt.methods.get(z)||this._userMethods.get(z),$=P==null?void 0:P.some(W=>!W.thisType||W.thisType[0].includes("<>")||W.thisType.includes(s.type||""));if($&&P){const W=this._getNamedArgumentsCompletionList(((j=P[0])==null?void 0:j.args)||[]),re=`${c}.${D.label}`;this._userFuncArgsCache.set(re,W),this._methodFuncs.set(re,P)}return $}));const{types:d}=nt,m=((g=(_=this._userTypes.get(o))==null?void 0:_[0])==null?void 0:g.fields)||((h=(x=d.get(o))==null?void 0:x[0])==null?void 0:h.fields);if(m)for(const D of m){const z=D.name,P=D.type,$=this._getInstanceTypeCompletionItemProp({name:z,type:P,desc:D.desc?[D.desc]:void 0});this._setUserVariableSubItems({name:z,type:P},s.name),n.push({...$})}n.length&&this._mergeUserCompletions(c,n)}_getUserVariableCompletionItems(s,r){const n=[],o=[];for(const[l,c]of s){const{value:d,children:m}=c;if(this._setUserVariableSubItems(d[0]),l.startsWith("ns")){const _=this._getNamespaceCompletionItem(d[0]);if(r){o.push({..._});const x=`${r}.${_.label}`;_.label=x,_.insertText=x}const g=this._getUserVariableCompletionItems(m,_.label);r||this._userOutermostNsItems.set(l,_),n.push(...g)}else{const _=this._getVariableCompletionItem(d[0],r?2:1,!1);if(r){o.push({..._});const{label:g}=_;_.label=`${r}.${g}`,_.insertText=`${r}.${_.insertText}`,_.filterText=`${g}\r`}n.push(_)}}return o.length&&r&&this._mergeUserCompletions(r,o),n}_getTypeCompletionItems(s,r=!1){const n=[];for(const[,o]of s){const{value:l}=o,c=r?this._getCustomTypeCompletionItem(l[0]):this._getTypeCompletionItem(l[0]);n.push(c)}return n}_getEnumCompletionItems(s){const r=[];for(const[,n]of s){const{value:o}=n,l=this._getEnumCompletionItem(o[0]);r.push(l);const c=o[0].members;c!=null&&c.length&&this._getEnumMemberCompletionItems(o[0].name,c)}return r}_getEnumMemberCompletionItems(s,r){const n=[];for(const o of r){const{name:l,desc:c,value:d}=o,m=this._getEnumMemberCompletionItem({name:l,desc:c?[c]:void 0,value:d});n.push(m)}n.length&&this._mergeUserCompletions(s,n)}_getAnnotationCompletionItems(s){const r=[];for(const[,n]of s){const{value:o}=n,l=this._getAnnotationCompletionItem(o[0]);r.push(l)}return r}_getKeywordCompletionItems(s){const r=[];for(const[,n]of s){const{value:o}=n,l=this._getKeywordCompletionItem(o[0]);r.push(l)}return r}_getMethodNamespaceCache(s,r){const n=[];for(const[o,l]of s){const{value:c,children:d}=l;if(o.startsWith("ns")){const m=this._getNamespaceCompletionItem(c[0]);if(r){n.push({...m});const _=`${r}.${m.label}`;m.label=_,m.insertText=_}this._getMethodNamespaceCache(d,m.label)}else{const m=this._getFunctionCompletionItem(c[0],r?3:2);if(c.length>1&&(m.detail=`${m.detail} (+${c.length-1} overloads)`),r){n.push({...m});const{label:_}=m;m.label=`${r}.${_}`,m.insertText=`${r}.${m.insertText}`,m.originInsertText=`${r}.${m.originInsertText}`,m.filterText=`${_}\r`}}}r&&this._methodNamespaceCache.set(r,n)}_getFunctionCompletionItems(s,r,n=!1){const o=[],l=[];for(const[c,d]of s){const{value:m,children:_}=d;if(c.startsWith("ns")){const g=this._getNamespaceCompletionItem(m[0]);if(r){l.push({...g});const h=`${r}.${g.label}`;g.label=h,g.insertText=h}const x=this._getFunctionCompletionItems(_,g.label,n);r||(n?this._userOutermostNsItems.set(c,g):this._outermostNsItems.set(c,g)),o.push(...x)}else{const g=this._getFunctionCompletionItem(m[0],r?3:2,!n);if(m.length>1&&(g.detail=`${g.detail} (+${m.length-1} overloads)`),r){l.push({...g});const{label:x}=g;g.label=`${r}.${x}`,g.insertText=`${r}.${g.insertText}`,g.originInsertText=`${r}.${g.originInsertText}`,g.filterText=`${x}\r`}o.push(g)}}return l.length&&r&&(n?this._mergeUserCompletions(r,l):this._mergeCompletions(r,l)),o}_getSnippetsCompletionsList(){return yu.map(s=>{const{label:r,kind:n,insertText:o}=s,l=r.charAt(0).toUpperCase()+r.substring(1),c={value:this._formatter.pineCode(o.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:r,detail:`(${l} ${$e(n)})`,insertText:o,insertTextRules:Ne.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${r}`,kind:Ne.languages.CompletionItemKind.Snippet,documentation:c}})}_getFuncArgumentsCompletionItemsToCache(s,r){for(const[n,o]of s){const{name:l}=o.value[0];if(n.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(o.children,r?`${r}.${l}`:l);else{const c=new Map;o.value.reduce((_,g)=>{const x=g.args;return x&&x.length&&x.forEach(h=>{_.set(h.name,h)}),_},c);const d=this._getNamedArgumentsCompletionList([...c.values()]),m=r?`${r}.${l}`:l;this._funcArgsCache.set(m,d)}}}_getUserFuncArgumentsCompletionItemsToCache(s,r){for(const[n,o]of s){const{name:l}=o.value[0];if(n.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(o.children,r?`${r}.${l}`:l);else{const c=new Map;o.value.reduce((_,g)=>{const x=g.args;return x&&x.length&&x.forEach(h=>{_.set(h.name,h)}),_},c);const d=this._getNamedArgumentsCompletionList([...c.values()]),m=r?`${r}.${l}`:l;this._userFuncArgsCache.set(m,d)}}}_getNamedArgumentsCompletionList(s){return s.map(r=>{const{name:n,desc:o,displayType:l}=r,c=`${n} = `,d=Array.isArray(o)?o.join(this._formatter.delimiter):o||"";return{label:c,documentation:{value:this._formatter.paragraph(this._formatter.bold($e(Ae.Description)),this._formatter.lineBreak,d)},insertText:c,detail:`(${$e(Ae.parameter)}) ${$e(Ae.types)} ${l}`,kind:Ne.languages.CompletionItemKind.Text,sortText:`0_${c}`}})}_getVariableCompletionItem(s,r=2,n=!0){const o=this._extractExamples(s),l=this._extractDescription(s),c=[this._createDescriptionSection(l)];o.length?c.push(this._createExampleSection(o)):s.syntax&&s.syntax.length&&c.push(this._createSyntaxSection(s.syntax));const d={value:c.join(this._formatter.lineBreak)},m=$e(n?Ae.variables:Ae.userDefinedVariable);return{documentation:d,label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Variable,sortText:`${r}_${s.name}`,detail:`(${m}) ${s.type}`}}_getKeywordCompletionItem(s,r=2){const n=this._extractExamples(s),o=this._extractDescription(s),l=[this._createDescriptionSection(o)];return n.length?l.push(this._createExampleSection(n)):s.syntax&&s.syntax.length&&l.push(this._createSyntaxSection(s.syntax)),{documentation:{value:l.join(this._formatter.lineBreak)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Keyword,sortText:`${r}_${s.name}`,detail:`(${$e(Ae.keywords)})`}}_getTypeCompletionItem(s){const r=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(r)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Keyword,sortText:`1_${s.name}`,detail:`(${$e(Ae.types)})`}}_getCustomTypeCompletionItem(s){const r=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(r)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Keyword,sortText:`2_${s.name}`,detail:`(${$e(Ae.userDefinedType)})`}}_getEnumCompletionItem(s){const r=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(r)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Enum,sortText:`2_${s.name}`,detail:`(${$e(Ae.enum)})`}}_getEnumMemberCompletionItem(s){const r=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(r)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.EnumMember,sortText:`2_${s.name}`,detail:`(${$e("enum member")}) ${s.value?`${s.name} = ${s.value}`:`${s.name}`}`}}_getInstanceTypeCompletionItemProp(s){const r=this._extractDescription(s),n=[];return r&&n.push(this._formatter.paragraph(this._formatter.bold($e(pt.Description)),this._formatter.lineBreak,r)),{documentation:{value:n.join(this._formatter.lineBreak)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Field,sortText:`2_${s.name}`,detail:`(${$e(Ae.field)}) ${s.type}`}}_getFunctionCompletionItem(s,r=2,n=!0){var D;const o=s.returnedTypes&&s.returnedTypes[0]||s.syntax&&s.syntax[0]&&((D=s.syntax[0].split("→").pop())==null?void 0:D.trim()),l=this._extractExamples(s),c=this._extractDescription(s),d=[this._createDescriptionSection(c)];l.length?d.push(this._createExampleSection(l)):s.syntax&&s.syntax.length&&d.push(this._createSyntaxSection(s.syntax)),s.returns&&s.returns.length&&d.push(this._createReturnSection(s.returns));const m={value:d.join(this._formatter.lineBreak)},_=s.name,g=n?Ae.functions:Ae.userDefinedFunction,x=s.template,h=x?`${$u(_)}<\${1}>`:_;return{documentation:m,label:x?`${_.replace(/<.+>/,"")}<type>`:_,kind:Ne.languages.CompletionItemKind.Function,sortText:`${r}_${_}`,insertTextRules:Ne.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:h+this.bracketsPostfix,originInsertText:h,detail:`(${$e(g)}) ${$e(Ae.returns)} ${o}`,command:{id:"tcc.editor.function",title:"",arguments:[x?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getAnnotationCompletionItem(s){const r=this._extractDescription(s),n=this._extractExamples(s),o=[this._createDescriptionSection(r)];return n.length&&o.push(this._createExampleSection(n)),{documentation:{value:o.join(this._formatter.lineBreak)},label:s.name,insertText:s.name.replace("@",""),kind:Ne.languages.CompletionItemKind.Keyword,detail:`(${$e(Ae.annotations)})`}}_getNamespaceCompletionItem(s,r=2){const n=[this._createDescriptionSection($e(Ae.namespaceDesc))];return{label:s.name,documentation:{value:n.join(this._formatter.lineBreak)},detail:`(${$e(Ae.namespace)}) ${s.name}`,insertText:s.name,sortText:`${r}_${s.name}`,kind:Ne.languages.CompletionItemKind.Module}}_extractExamples(s){let r;return s.examples||s.detailedDesc&&((r=s.detailedDesc[0])===null||r===void 0?void 0:r.examples)||[]}_extractDescription(s){return Array.isArray(s.desc)?s.desc.join(this._formatter.lineBreak):s.desc||""}_createExampleSection(s){return this._formatter.paragraph(this._formatter.bold($e(pt.Example)),this._formatter.pineCode(s.join(this._formatter.lineBreak)))}_createSyntaxSection(s){return this._formatter.paragraph(this._formatter.bold($e(pt.Syntax)),this._formatter.pineCode(s.join(this._formatter.lineBreak)))}_createReturnSection(s){return this._formatter.paragraph(this._formatter.bold($e(pt.Returns)),this._formatter.lineBreak,s.join(this._formatter.lineBreak))}_createDescriptionSection(s){return!s||s.trim().length===0?"":this._formatter.paragraph(this._formatter.bold($e(pt.Description)),this._formatter.lineBreak,s)}}const Pt=new Xu;class Yu{constructor(){Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userVariables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userEnums",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_imports",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_overloadsFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._userFunctions=new Map,this._userVariables=new Map,this._userTypes=new Map,this._userMethods=new Map,this._imports=new Map,this._userEnums=new Map,this._overloadsFuncs=[]}get overloadsFuncs(){return this._overloadsFuncs}setUserDefined(s,r){const{functions:n,variables:o,types:l,methods:c,imports:d,enums:m}=s;n&&(this._userFunctions=n),o&&(this._userVariables=o),l&&(this._userTypes=l),c&&(this._userMethods=c),d&&(this._imports=d),m&&(this._userEnums=m),this._overloadsFuncs=r}parseLineContentFuncVar(s,r,n,o){let l=(n==null?void 0:n.getLineContent(r))||"";const c=l.indexOf("//");if(this._removeString(l).indexOf("//")!==-1&&c<=s)return;l=l+" ";const d=this._getVariablesDocVal(l,s,r);if(d){if(d.isBuildIn){const g=n==null?void 0:n.getWordAtPosition(o||new Ne.Position(r,s));if(((n==null?void 0:n.getValueInRange({startLineNumber:r,startColumn:(g==null?void 0:g.endColumn)||0,endLineNumber:r,endColumn:((g==null?void 0:g.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return d}const m=this._getFuncsDocVal(l,s,r);if(m)return m;const _=l.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(_){const g=this._matchContent(_,l,s);if(g){const x=this._getBuildInOther(g.name);if(x)return{docValue:x,isBuildIn:!0,index:0};{const h=this._getBuildInFunc(`${g.name}<type>`);if(h)return{docValue:h,isBuildIn:!0,index:0}}}}return this._getImportDocVal(l,s,r)}_getImportDocVal(s,r,n){const o=new RegExp("(?<=(import(\\s+)))([a-zA-Z\\d\\$_\\-\\.\\u00a1-\\uffff\\/]+)","g"),l=new RegExp("(?<=(as\\b)(\\s+))([a-zA-Z\\d\\_\\u00a1\\uffff\\/]+)","g"),c=s.match(o);if(c){const d=this._matchContent(c,s,r);if(d){const _=this._imports.get(d.name);if(_)return _}const m=s.match(l);if(m){const _=this._matchContent(m,s,r);if(_){for(const[g,x]of this._imports)if(x.name===_.name)return x}}}return null}_getBuildInFunc(s){return nt.functions.get(s)}_getBuildInMethod(s){return nt.methods.get(s)}_getBuildInOther(s){const{keywords:r,variables:n,constants:o,types:l}=nt;return r.get(s)||n.get(s)||o.get(s)||l.get(s)}parseCurrentInputFunc(s,r=!1,n=!1){let o=s.length-1,l=0,c=r,d=n;for(;o>=0;){const m=s.charAt(o);if(o-=1,/['"]/.test(m)){const _=m;if(m==="'"){if(c){c=!1;continue}}else if(d){d=!1;continue}for(;o>=0;){const g=s.charAt(o);if(o-=1,g===_)break}}if(!(c||d)&&(/\)/.test(m)&&(l+=1),/\(/.test(m))){if(l>0){l-=1;continue}let _="";for(;o>=0;){const g=s.charAt(o);if(/\s/.test(g)&&!_){o-=1;continue}if(/[^\w.]/.test(g))break;o-=1,_=g+_}if(_)return{funcName:_,startIndex:o+1}}}}parseCurrentInputFuncAndArg(s,r=!1,n=!1){const{funcName:o,startIndex:l}=this.parseCurrentInputFunc(s,r,n)||{};if(o&&typeof l=="number"){let c=s.slice(l+o.length).trim().slice(1),d=-1;if(r&&(d=c.lastIndexOf("'")),n){const g=c.lastIndexOf('"');(g!==-1&&g<d||d===-1)&&(d=g)}d!==-1&&(c=c.substring(0,d));const _=c.replace(/[\w.]+\(.*\)/g,"").split(",").map(g=>{const x=g.trim().split("=");return x.length<=1?"":x[0].trim()});return{startIndex:l,funcName:o,args:_}}}_removeString(s){return s.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(s,r,n){const o=this._removeString(s).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(o){const l=this._matchContent(o,s,r);if(l){const c={docValue:void 0,isBuildIn:!0,index:0},d=this._getBuildInOther(l.name);if(d)return c.docValue=d,c;const m=this._getUserVariablesDocVal(l.name,r,n);if(m)return Object.assign(c,{docValue:[m],isBuildIn:!1});const _=this._getUserTypesDocVal(l.name);if(_)return Object.assign(c,{docValue:_,isBuildIn:!1});const g=this._getTypesAndFileds(s,l.name,r,n);if(g&&typeof g!="string")return Object.assign(c,{docValue:[g],isBuildIn:!1});const x=this._getUserEnumsDocVal(l,r);if(x)return Object.assign(c,{docValue:x,isBuildIn:!1})}}}_getUserVariablesDocVal(s,r,n){const c=[...this._userVariables.get(s)||[]].sort((d,m)=>(m.scope||0)-(d.scope||0)).find(d=>{const m=d.range;return((m==null?void 0:m.startColumn)||0)<=r&&((m==null?void 0:m.startLineNumber)||0)<=n&&((m==null?void 0:m.endLineNumber)||0)>=n});if(c)return c.title=Ae.userDefinedVariable,c.type=this._arrayTypeTransform(c.type),c}_getUserTypesDocVal(s){const r=this._userTypes.get(s);if(r)return r[0].title=Ae.userDefinedType,r}_getUserEnumsDocVal(s,r){var m;const{endIndex:n,name:o}=s,l=o.split(".");let c=l[0];l.length>2&&(c=l.slice(0,2).join("."));const d=this._userEnums.get(c);if(d&&d.length){d[0].title=Ae.enum;const _=l[l.length-1],g=(m=d[0].members)==null?void 0:m.find(x=>x.name===_);if(!g||r<n-_.length)return d;if(r>n-_.length)return[g]}}_getTypesAndFileds(s,r,n,o){var l,c;if(r.includes(".")){const d=r.split(".");let m=d[0],_,g=null,x=s.indexOf(r,n-r.length)+1,h=x+m.length-1;for(const D of d.slice(1)){if(!g){const z=x<=n&&h>=n,P=this._getUserVariablesDocVal(m,n,o);if(z&&P)return P;g=P==null?void 0:P.type}if(g){_=g,x=h+2,h=h+D.length+1;const z=this._userTypes.get(g)||nt.types.get(g),P=(c=(l=z==null?void 0:z[0])==null?void 0:l.fields)==null?void 0:c.find($=>$.name===D);if(P&&x<=n&&h>=n)return{name:`${g}.${D}`,desc:P.desc,type:this._arrayTypeTransform(P.type),title:Ae.field};g=P==null?void 0:P.type}else m=`${m}.${D}`,h=h+D.length+1}return _}}_getFuncsDocVal(s,r,n){var l;const o=s.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(o){const c=this._matchContent(o,s,r);if(c){const d={docValue:void 0,isBuildIn:!0,endIndex:c.endIndex,index:0},m=this._getBuildInFunc(c.name);if(m)return d.index=this._getOverloadsFuncIndex(m,r,c.name,n),Object.assign(d,{docValue:m});const _=this._getUserFuncsDocVal(c.name);if(_)return d.index=this._getOverloadsFuncIndex(_,r,c.name,n),Object.assign(d,{docValue:_,isBuildIn:!1});const g=this._getUserVarFuncsDocVal(s,c.name,r,n);if(g)return Object.assign(d,{docValue:[g],isBuildIn:!1});const x=c.name.split("."),h=((l=x.pop())==null?void 0:l.length)||0;if(r>c.endIndex-h-1)return;const D=this._getBuildInOther(x.join("."));if(D)return Object.assign(d,{docValue:D,endIndex:c.endIndex-h-1})}}}_getOverloadsFuncIndex(s,r,n,o){if(s.length>1){const l=this._overloadsFuncs.find(c=>c.name===n&&c.line===o&&c.startColumn<=r&&c.endColumn>=r);if(l)return l.index}return 0}_getUserFuncsDocVal(s){const r=this._userFunctions.get(s);if(r){for(const n of r)n.title=Ae.userDefinedFunction;return r}}_getUserMethodsDocVal(s){const r=this._userMethods.get(s);if(r){for(const n of r)n.title=Ae.userDefinedFunction;return r}}_getUserVarFuncsDocVal(s,r,n,o){var l;if(r.includes(".")){const c=r.split("."),d=this._getTypesAndFileds(s,r,n,o);if(typeof d=="string"){const _=`${this._arrayTypeTransform(d).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${c.pop()}`,g=this._getBuildInMethod(_);if(g){const x=this._getOverloadsFuncIndex(g,n,_,o);return{...g[0],name:_,index:x}}return(l=this._getUserMethodsDocVal(_))==null?void 0:l[0]}else return d}}_arrayTypeTransform(s=""){return s.includes("[]")?`array<${s.replace("[]","")}>`:s}_matchContent(s,r,n){let o=0;for(const l of s){o=n-l.length;const c=r.indexOf(l,o);if(o=c+l.length,this._judgeVal(r,c,o)&&c+1<=n&&o>=n)return{name:l,endIndex:o}}}_judgeVal(s,r,n){const o=s.charAt(r-1),l=/[\w\d."']/;if(l.test(o))return!1;const c=s.charAt(n);return!l.test(c)}}const Ds=new Yu;var ya={exports:{}};/**
|
111
|
+
\`\`\``}code(s){return`\`${s}\``}paragraph(...s){return[this.paragraphBreak,...s,this.paragraphBreak].join(this.lineBreak)}link(s,r){return`[${s}](${r.href})`}}const ge=new Ku;function ju(a){const{name:s,libraryName:r,desc:n}=a,o=[`${ge.bold(s||r)} (${It("library")})`];return o.push(ge.delimiter),n&&o.push(ge.paragraph(ge.bold(It(pt.Description)),ge.lineBreak,n)),o.join(o.length===2?" ":ge.lineBreak)}function Hu(a,s=0,r=!0){const n=a[s];if(!n)return"";if(n.isEnumMember)return`${ge.bold(n.name)} (${It("enum member")})${n.value===void 0?"":` = ${n.value}`}`;const o=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:l,title:c="",desc:u,type:m,syntax:_,returns:g,remarks:x,fields:h,members:D}=n,S=[`${ge.bold(l)} (${It(c)})`];if(a.length>1&&S.push(ge.italic(`+${a.length-1} ${It("overloads")}`)),S.push(ge.delimiter),u&&S.push(ge.paragraph(Array.isArray(u)?u.join(ge.lineBreak):u||"")),m&&S.push(ge.paragraph(ge.bold(It(pt.Type)),ge.italic(m))),_&&_.length&&S.push(ge.paragraph(ge.bold(It(pt.Syntax)),ge.pineCode(_.join(ge.lineBreak)))),g&&S.push(ge.paragraph(ge.bold(It(pt.Returns)),ge.lineBreak,g.join(ge.lineBreak))),x&&x.length&&a.length<=1){let R="";typeof x=="string"?R=x:R=x.join(ge.lineBreak)||"",R.length<200&&S.push(ge.paragraph(ge.bold(It(pt.Remarks)),ge.lineBreak,R))}if(h){const R=[];for(const U of h){const K=U.desc?` - ${U.desc}`:"";R.push(`${U.name} (${U.type})${K}`)}S.push(ge.paragraph(ge.bold(It(pt.Fields)),ge.lineBreak,R.join(ge.paragraphBreak)))}if(D){const R=[];for(const U of D){const K=U.desc?` - ${U.desc}`:"";R.push(`${U.name}${U.value?` (${U.value})`:""}${K}`)}S.push(ge.paragraph(ge.bold(It(pt.EnumMembers)),ge.lineBreak,R.join(ge.paragraphBreak)))}return r&&S.push(ge.italic(`${ge.code(o?"⌘":"Ctrl")} + ${It(_u.clickOnKeywordForMoreHelp)}`)),S.join(S.length===2?" ":ge.lineBreak)}const Nn="tcc_cursor_position",Wu=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function Vu(a){return a.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function Gu(a){const s=a.getContribution("editor.contrib.contextmenu"),r=s==null?void 0:s._getMenuActions;s._getMenuActions=function(){return r.apply(s,arguments).filter(function(o){return!Wu.includes(o.id)})}}const{t:$e}=Me;class Xu{constructor(){Object.defineProperty(this,"bracketsPostfix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_builtinSubtreeCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_namespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_suggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_outermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFuncArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userOutermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userEnums",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nextIsBracket",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=ge,this._namespaceCache=new Map,this._suggestions=[],this._outermostNsItems=new Map,this._funcArgsCache=new Map,this._userSuggestions=[],this._userFuncArgsCache=new Map,this._userNamespaceCache=new Map,this._userOutermostNsItems=new Map,this._methodNamespaceCache=new Map,this._userMethods=new Map,this._userTypes=new Map,this._methodFuncs=new Map,this._userFunctions=new Map,this._userEnums=new Map,this._nextIsBracket=!1}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}get userEnums(){return this._userEnums}set nextIsBracket(s){this._nextIsBracket=s}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(s){return this._funcArgsCache.get(s)||this._userFuncArgsCache.get(s)}getSuggestions(s){return s?this._namespaceCache.get(s)||this._userNamespaceCache.get(s):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(s,r,n,o,l){this._initUserDefind();const c=this._mergeTreeSlices(this._generateTreeSlice(nt.methods,"method"),this._generateTreeSlice(o,"method"));this._getMethodNamespaceCache(c),this._userMethods=o,this._userTypes=r,this._userFunctions=s,this._userEnums=l;const u=this._generateTreeSlice(s,"fun");this._userSuggestions=this._getAllUserCompletionItems(u,this._generateTreeSlice(r,"type"),this._generateTreeSlice(n,"var"),this._generateTreeSlice(l,"enum")),this._getUserFuncArgumentsCompletionItemsToCache(u)}_getAllUserCompletionItems(s,r,n,o){const l=this._getEnumCompletionItems(o),c=this._getUserVariableCompletionItems(n),u=this._getTypeCompletionItems(r,!0),m=this._getFunctionCompletionItems(s,void 0,!0);return[...u,...m,...c,...l,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:s,keywords:r,types:n,functions:o}=this._builtinSubtreeCache,l=this._getVariableCompletionItems(s),c=this._getKeywordCompletionItems(r),u=this._getTypeCompletionItems(n),m=this._getFunctionCompletionItems(o),_=this._getSnippetsCompletionsList();return[...l,...c,...u,...m,...this._outermostNsItems.values(),..._]}_getNodeKey(s,r){return`${r}_${s}`}_mergeTreeSlices(...s){const r=new Map;for(const n of s)for(const[o,l]of n){const c=r.get(o);c?r.set(o,{...c,children:this._mergeTreeSlices(l.children,c.children)}):r.set(o,l)}return r}_mergeCompletions(s,r){const n=this._namespaceCache.get(s);n?this._namespaceCache.set(s,[...n,...r]):this._namespaceCache.set(s,r)}_mergeUserCompletions(s,r){const n=this._userNamespaceCache.get(s);n?this._userNamespaceCache.set(s,[...n,...r]):this._userNamespaceCache.set(s,r)}_generateTreeSlice(s,r){const n=new Map;for(const[o,l]of s){const[c,...u]=o.split("."),m=u.length>0,_=n.get(this._getNodeKey(c,m?"ns":r));let g=new Map,x=l.map(D=>({...D,name:o})),h=this._getNodeKey(o,r);if(m&&r!=="type"){const D=new Map([[u.join("."),l]]);x=[{name:c,title:Ae.namespace}],h=this._getNodeKey(c,"ns"),g=this._generateTreeSlice(D,r)}_&&(x=[{name:c,title:Ae.namespace}],g=this._mergeTreeSlices(_.children,g)),n.set(h,{value:x,children:g})}return n}_getBuiltinsCacheFragment(){const{keywords:s,variables:r,constants:n,types:o,functions:l,annotations:c}=nt,u=this._generateTreeSlice(c,"an");return u.delete("an_@version="),this._builtinSubtreeCache={keywords:this._generateTreeSlice(s,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(r,"var"),this._generateTreeSlice(n,"var")),types:this._generateTreeSlice(o,"type"),functions:this._generateTreeSlice(l,"fun"),annotations:u},this._builtinSubtreeCache}_getVariableCompletionItems(s,r){const n=[],o=[];for(const[l,c]of s){const{value:u,children:m}=c;if(l.startsWith("ns")){const _=this._getNamespaceCompletionItem(u[0]);if(r){o.push({..._});const x=`${r}.${_.label}`;_.label=x,_.insertText=x}const g=this._getVariableCompletionItems(m,_.label);r||this._outermostNsItems.set(l,_),n.push(...g)}else{const _=this._getVariableCompletionItem(u[0],r?3:2);if(r){o.push({..._});const{label:g}=_;_.label=`${r}.${g}`,_.insertText=`${r}.${_.insertText}`,_.filterText=`${g}\r`}n.push(_)}}return o.length&&r&&this._mergeCompletions(r,o),n}_setUserVariableSubItems(s,r){var _,g,x,h;let n=[];const o=Vu(s.type||""),l=this._methodNamespaceCache.get(o),c=r?`${r}.${s.name}`:s.name;l&&(n=l.filter(D=>{var K;const S=`${o}.${D.label}`,R=nt.methods.get(S)||this._userMethods.get(S),U=R==null?void 0:R.some(H=>!H.thisType||H.thisType[0].includes("<>")||H.thisType.includes(s.type||""));if(U&&R){const H=this._getNamedArgumentsCompletionList(((K=R[0])==null?void 0:K.args)||[]),re=`${c}.${D.label}`;this._userFuncArgsCache.set(re,H),this._methodFuncs.set(re,R)}return U}));const{types:u}=nt,m=((g=(_=this._userTypes.get(o))==null?void 0:_[0])==null?void 0:g.fields)||((h=(x=u.get(o))==null?void 0:x[0])==null?void 0:h.fields);if(m)for(const D of m){const S=D.name,R=D.type,U=this._getInstanceTypeCompletionItemProp({name:S,type:R,desc:D.desc?[D.desc]:void 0});this._setUserVariableSubItems({name:S,type:R},s.name),n.push({...U})}n.length&&this._mergeUserCompletions(c,n)}_getUserVariableCompletionItems(s,r){const n=[],o=[];for(const[l,c]of s){const{value:u,children:m}=c;if(this._setUserVariableSubItems(u[0]),l.startsWith("ns")){const _=this._getNamespaceCompletionItem(u[0]);if(r){o.push({..._});const x=`${r}.${_.label}`;_.label=x,_.insertText=x}const g=this._getUserVariableCompletionItems(m,_.label);r||this._userOutermostNsItems.set(l,_),n.push(...g)}else{const _=this._getVariableCompletionItem(u[0],r?2:1,!1);if(r){o.push({..._});const{label:g}=_;_.label=`${r}.${g}`,_.insertText=`${r}.${_.insertText}`,_.filterText=`${g}\r`}n.push(_)}}return o.length&&r&&this._mergeUserCompletions(r,o),n}_getTypeCompletionItems(s,r=!1){const n=[];for(const[,o]of s){const{value:l}=o,c=r?this._getCustomTypeCompletionItem(l[0]):this._getTypeCompletionItem(l[0]);n.push(c)}return n}_getEnumCompletionItems(s){const r=[];for(const[,n]of s){const{value:o}=n,l=this._getEnumCompletionItem(o[0]);r.push(l);const c=o[0].members;c!=null&&c.length&&this._getEnumMemberCompletionItems(o[0].name,c)}return r}_getEnumMemberCompletionItems(s,r){const n=[];for(const o of r){const{name:l,desc:c,value:u}=o,m=this._getEnumMemberCompletionItem({name:l,desc:c?[c]:void 0,value:u});n.push(m)}n.length&&this._mergeUserCompletions(s,n)}_getAnnotationCompletionItems(s){const r=[];for(const[,n]of s){const{value:o}=n,l=this._getAnnotationCompletionItem(o[0]);r.push(l)}return r}_getKeywordCompletionItems(s){const r=[];for(const[,n]of s){const{value:o}=n,l=this._getKeywordCompletionItem(o[0]);r.push(l)}return r}_getMethodNamespaceCache(s,r){const n=[];for(const[o,l]of s){const{value:c,children:u}=l;if(o.startsWith("ns")){const m=this._getNamespaceCompletionItem(c[0]);if(r){n.push({...m});const _=`${r}.${m.label}`;m.label=_,m.insertText=_}this._getMethodNamespaceCache(u,m.label)}else{const m=this._getFunctionCompletionItem(c[0],r?3:2);if(c.length>1&&(m.detail=`${m.detail} (+${c.length-1} overloads)`),r){n.push({...m});const{label:_}=m;m.label=`${r}.${_}`,m.insertText=`${r}.${m.insertText}`,m.originInsertText=`${r}.${m.originInsertText}`,m.filterText=`${_}\r`}}}r&&this._methodNamespaceCache.set(r,n)}_getFunctionCompletionItems(s,r,n=!1){const o=[],l=[];for(const[c,u]of s){const{value:m,children:_}=u;if(c.startsWith("ns")){const g=this._getNamespaceCompletionItem(m[0]);if(r){l.push({...g});const h=`${r}.${g.label}`;g.label=h,g.insertText=h}const x=this._getFunctionCompletionItems(_,g.label,n);r||(n?this._userOutermostNsItems.set(c,g):this._outermostNsItems.set(c,g)),o.push(...x)}else{const g=this._getFunctionCompletionItem(m[0],r?3:2,!n);if(m.length>1&&(g.detail=`${g.detail} (+${m.length-1} overloads)`),r){l.push({...g});const{label:x}=g;g.label=`${r}.${x}`,g.insertText=`${r}.${g.insertText}`,g.originInsertText=`${r}.${g.originInsertText}`,g.filterText=`${x}\r`}o.push(g)}}return l.length&&r&&(n?this._mergeUserCompletions(r,l):this._mergeCompletions(r,l)),o}_getSnippetsCompletionsList(){return yu.map(s=>{const{label:r,kind:n,insertText:o}=s,l=r.charAt(0).toUpperCase()+r.substring(1),c={value:this._formatter.pineCode(o.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:r,detail:`(${l} ${$e(n)})`,insertText:o,insertTextRules:Ne.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${r}`,kind:Ne.languages.CompletionItemKind.Snippet,documentation:c}})}_getFuncArgumentsCompletionItemsToCache(s,r){for(const[n,o]of s){const{name:l}=o.value[0];if(n.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(o.children,r?`${r}.${l}`:l);else{const c=new Map;o.value.reduce((_,g)=>{const x=g.args;return x&&x.length&&x.forEach(h=>{_.set(h.name,h)}),_},c);const u=this._getNamedArgumentsCompletionList([...c.values()]),m=r?`${r}.${l}`:l;this._funcArgsCache.set(m,u)}}}_getUserFuncArgumentsCompletionItemsToCache(s,r){for(const[n,o]of s){const{name:l}=o.value[0];if(n.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(o.children,r?`${r}.${l}`:l);else{const c=new Map;o.value.reduce((_,g)=>{const x=g.args;return x&&x.length&&x.forEach(h=>{_.set(h.name,h)}),_},c);const u=this._getNamedArgumentsCompletionList([...c.values()]),m=r?`${r}.${l}`:l;this._userFuncArgsCache.set(m,u)}}}_getNamedArgumentsCompletionList(s){return s.map(r=>{const{name:n,desc:o,displayType:l}=r,c=`${n} = `,u=Array.isArray(o)?o.join(this._formatter.delimiter):o||"";return{label:c,documentation:{value:this._formatter.paragraph(this._formatter.bold($e(Ae.Description)),this._formatter.lineBreak,u)},insertText:c,detail:`(${$e(Ae.parameter)}) ${$e(Ae.types)} ${l}`,kind:Ne.languages.CompletionItemKind.Text,sortText:`0_${c}`}})}_getVariableCompletionItem(s,r=2,n=!0){const o=this._extractExamples(s),l=this._extractDescription(s),c=[this._createDescriptionSection(l)];o.length?c.push(this._createExampleSection(o)):s.syntax&&s.syntax.length&&c.push(this._createSyntaxSection(s.syntax));const u={value:c.join(this._formatter.lineBreak)},m=$e(n?Ae.variables:Ae.userDefinedVariable);return{documentation:u,label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Variable,sortText:`${r}_${s.name}`,detail:`(${m}) ${s.type}`}}_getKeywordCompletionItem(s,r=2){const n=this._extractExamples(s),o=this._extractDescription(s),l=[this._createDescriptionSection(o)];return n.length?l.push(this._createExampleSection(n)):s.syntax&&s.syntax.length&&l.push(this._createSyntaxSection(s.syntax)),{documentation:{value:l.join(this._formatter.lineBreak)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Keyword,sortText:`${r}_${s.name}`,detail:`(${$e(Ae.keywords)})`}}_getTypeCompletionItem(s){const r=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(r)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Keyword,sortText:`1_${s.name}`,detail:`(${$e(Ae.types)})`}}_getCustomTypeCompletionItem(s){const r=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(r)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Keyword,sortText:`2_${s.name}`,detail:`(${$e(Ae.userDefinedType)})`}}_getEnumCompletionItem(s){const r=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(r)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Enum,sortText:`2_${s.name}`,detail:`(${$e(Ae.enum)})`}}_getEnumMemberCompletionItem(s){const r=this._extractDescription(s);return{documentation:{value:this._createDescriptionSection(r)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.EnumMember,sortText:`2_${s.name}`,detail:`(${$e("enum member")}) ${s.value?`${s.name} = ${s.value}`:`${s.name}`}`}}_getInstanceTypeCompletionItemProp(s){const r=this._extractDescription(s),n=[];return r&&n.push(this._formatter.paragraph(this._formatter.bold($e(pt.Description)),this._formatter.lineBreak,r)),{documentation:{value:n.join(this._formatter.lineBreak)},label:s.name,insertText:s.name,kind:Ne.languages.CompletionItemKind.Field,sortText:`2_${s.name}`,detail:`(${$e(Ae.field)}) ${s.type}`}}_getFunctionCompletionItem(s,r=2,n=!0){var D;const o=s.returnedTypes&&s.returnedTypes[0]||s.syntax&&s.syntax[0]&&((D=s.syntax[0].split("→").pop())==null?void 0:D.trim()),l=this._extractExamples(s),c=this._extractDescription(s),u=[this._createDescriptionSection(c)];l.length?u.push(this._createExampleSection(l)):s.syntax&&s.syntax.length&&u.push(this._createSyntaxSection(s.syntax)),s.returns&&s.returns.length&&u.push(this._createReturnSection(s.returns));const m={value:u.join(this._formatter.lineBreak)},_=s.name,g=n?Ae.functions:Ae.userDefinedFunction,x=s.template,h=x?`${$u(_)}<\${1}>`:_;return{documentation:m,label:x?`${_.replace(/<.+>/,"")}<type>`:_,kind:Ne.languages.CompletionItemKind.Function,sortText:`${r}_${_}`,insertTextRules:Ne.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:h+this.bracketsPostfix,originInsertText:h,detail:`(${$e(g)}) ${$e(Ae.returns)} ${o}`,command:{id:"tcc.editor.function",title:"",arguments:[x?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getAnnotationCompletionItem(s){const r=this._extractDescription(s),n=this._extractExamples(s),o=[this._createDescriptionSection(r)];return n.length&&o.push(this._createExampleSection(n)),{documentation:{value:o.join(this._formatter.lineBreak)},label:s.name,insertText:s.name.replace("@",""),kind:Ne.languages.CompletionItemKind.Keyword,detail:`(${$e(Ae.annotations)})`}}_getNamespaceCompletionItem(s,r=2){const n=[this._createDescriptionSection($e(Ae.namespaceDesc))];return{label:s.name,documentation:{value:n.join(this._formatter.lineBreak)},detail:`(${$e(Ae.namespace)}) ${s.name}`,insertText:s.name,sortText:`${r}_${s.name}`,kind:Ne.languages.CompletionItemKind.Module}}_extractExamples(s){let r;return s.examples||s.detailedDesc&&((r=s.detailedDesc[0])===null||r===void 0?void 0:r.examples)||[]}_extractDescription(s){return Array.isArray(s.desc)?s.desc.join(this._formatter.lineBreak):s.desc||""}_createExampleSection(s){return this._formatter.paragraph(this._formatter.bold($e(pt.Example)),this._formatter.pineCode(s.join(this._formatter.lineBreak)))}_createSyntaxSection(s){return this._formatter.paragraph(this._formatter.bold($e(pt.Syntax)),this._formatter.pineCode(s.join(this._formatter.lineBreak)))}_createReturnSection(s){return this._formatter.paragraph(this._formatter.bold($e(pt.Returns)),this._formatter.lineBreak,s.join(this._formatter.lineBreak))}_createDescriptionSection(s){return!s||s.trim().length===0?"":this._formatter.paragraph(this._formatter.bold($e(pt.Description)),this._formatter.lineBreak,s)}}const Pt=new Xu;class Yu{constructor(){Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userVariables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userEnums",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_imports",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_overloadsFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._userFunctions=new Map,this._userVariables=new Map,this._userTypes=new Map,this._userMethods=new Map,this._imports=new Map,this._userEnums=new Map,this._overloadsFuncs=[]}get overloadsFuncs(){return this._overloadsFuncs}setUserDefined(s,r){const{functions:n,variables:o,types:l,methods:c,imports:u,enums:m}=s;n&&(this._userFunctions=n),o&&(this._userVariables=o),l&&(this._userTypes=l),c&&(this._userMethods=c),u&&(this._imports=u),m&&(this._userEnums=m),this._overloadsFuncs=r}parseLineContentFuncVar(s,r,n,o){let l=(n==null?void 0:n.getLineContent(r))||"";const c=l.indexOf("//");if(this._removeString(l).indexOf("//")!==-1&&c<=s)return;l=l+" ";const u=this._getVariablesDocVal(l,s,r);if(u){if(u.isBuildIn){const g=n==null?void 0:n.getWordAtPosition(o||new Ne.Position(r,s));if(((n==null?void 0:n.getValueInRange({startLineNumber:r,startColumn:(g==null?void 0:g.endColumn)||0,endLineNumber:r,endColumn:((g==null?void 0:g.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return u}const m=this._getFuncsDocVal(l,s,r);if(m)return m;const _=l.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(_){const g=this._matchContent(_,l,s);if(g){const x=this._getBuildInOther(g.name);if(x)return{docValue:x,isBuildIn:!0,index:0};{const h=this._getBuildInFunc(`${g.name}<type>`);if(h)return{docValue:h,isBuildIn:!0,index:0}}}}return this._getImportDocVal(l,s,r)}_getImportDocVal(s,r,n){const o=new RegExp("(?<=(import(\\s+)))([a-zA-Z\\d\\$_\\-\\.\\u00a1-\\uffff\\/]+)","g"),l=new RegExp("(?<=(as\\b)(\\s+))([a-zA-Z\\d\\_\\u00a1\\uffff\\/]+)","g"),c=s.match(o);if(c){const u=this._matchContent(c,s,r);if(u){const _=this._imports.get(u.name);if(_)return _}const m=s.match(l);if(m){const _=this._matchContent(m,s,r);if(_){for(const[g,x]of this._imports)if(x.name===_.name)return x}}}return null}_getBuildInFunc(s){return nt.functions.get(s)}_getBuildInMethod(s){return nt.methods.get(s)}_getBuildInOther(s){const{keywords:r,variables:n,constants:o,types:l}=nt;return r.get(s)||n.get(s)||o.get(s)||l.get(s)}parseCurrentInputFunc(s,r=!1,n=!1){let o=s.length-1,l=0,c=r,u=n;for(;o>=0;){const m=s.charAt(o);if(o-=1,/['"]/.test(m)){const _=m;if(m==="'"){if(c){c=!1;continue}}else if(u){u=!1;continue}for(;o>=0;){const g=s.charAt(o);if(o-=1,g===_)break}}if(!(c||u)&&(/\)/.test(m)&&(l+=1),/\(/.test(m))){if(l>0){l-=1;continue}let _="";for(;o>=0;){const g=s.charAt(o);if(/\s/.test(g)&&!_){o-=1;continue}if(/[^\w.]/.test(g))break;o-=1,_=g+_}if(_)return{funcName:_,startIndex:o+1}}}}parseCurrentInputFuncAndArg(s,r=!1,n=!1){const{funcName:o,startIndex:l}=this.parseCurrentInputFunc(s,r,n)||{};if(o&&typeof l=="number"){let c=s.slice(l+o.length).trim().slice(1),u=-1;if(r&&(u=c.lastIndexOf("'")),n){const g=c.lastIndexOf('"');(g!==-1&&g<u||u===-1)&&(u=g)}u!==-1&&(c=c.substring(0,u));const _=c.replace(/[\w.]+\(.*\)/g,"").split(",").map(g=>{const x=g.trim().split("=");return x.length<=1?"":x[0].trim()});return{startIndex:l,funcName:o,args:_}}}_removeString(s){return s.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(s,r,n){const o=this._removeString(s).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(o){const l=this._matchContent(o,s,r);if(l){const c={docValue:void 0,isBuildIn:!0,index:0},u=this._getBuildInOther(l.name);if(u)return c.docValue=u,c;const m=this._getUserVariablesDocVal(l.name,r,n);if(m)return Object.assign(c,{docValue:[m],isBuildIn:!1});const _=this._getUserTypesDocVal(l.name);if(_)return Object.assign(c,{docValue:_,isBuildIn:!1});const g=this._getTypesAndFileds(s,l.name,r,n);if(g&&typeof g!="string")return Object.assign(c,{docValue:[g],isBuildIn:!1});const x=this._getUserEnumsDocVal(l,r);if(x)return Object.assign(c,{docValue:x,isBuildIn:!1})}}}_getUserVariablesDocVal(s,r,n){const c=[...this._userVariables.get(s)||[]].sort((u,m)=>(m.scope||0)-(u.scope||0)).find(u=>{const m=u.range;return((m==null?void 0:m.startColumn)||0)<=r&&((m==null?void 0:m.startLineNumber)||0)<=n&&((m==null?void 0:m.endLineNumber)||0)>=n});if(c)return c.title=Ae.userDefinedVariable,c.type=this._arrayTypeTransform(c.type),c}_getUserTypesDocVal(s){const r=this._userTypes.get(s);if(r)return r[0].title=Ae.userDefinedType,r}_getUserEnumsDocVal(s,r){var m;const{endIndex:n,name:o}=s,l=o.split(".");let c=l[0];l.length>2&&(c=l.slice(0,2).join("."));const u=this._userEnums.get(c);if(u&&u.length){u[0].title=Ae.enum;const _=l[l.length-1],g=(m=u[0].members)==null?void 0:m.find(x=>x.name===_);if(!g||r<n-_.length)return u;if(r>n-_.length)return[g]}}_getTypesAndFileds(s,r,n,o){var l,c;if(r.includes(".")){const u=r.split(".");let m=u[0],_,g=null,x=s.indexOf(r,n-r.length)+1,h=x+m.length-1;for(const D of u.slice(1)){if(!g){const S=x<=n&&h>=n,R=this._getUserVariablesDocVal(m,n,o);if(S&&R)return R;g=R==null?void 0:R.type}if(g){_=g,x=h+2,h=h+D.length+1;const S=this._userTypes.get(g)||nt.types.get(g),R=(c=(l=S==null?void 0:S[0])==null?void 0:l.fields)==null?void 0:c.find(U=>U.name===D);if(R&&x<=n&&h>=n)return{name:`${g}.${D}`,desc:R.desc,type:this._arrayTypeTransform(R.type),title:Ae.field};g=R==null?void 0:R.type}else m=`${m}.${D}`,h=h+D.length+1}return _}}_getFuncsDocVal(s,r,n){var l;const o=s.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(o){const c=this._matchContent(o,s,r);if(c){const u={docValue:void 0,isBuildIn:!0,endIndex:c.endIndex,index:0},m=this._getBuildInFunc(c.name);if(m)return u.index=this._getOverloadsFuncIndex(m,r,c.name,n),Object.assign(u,{docValue:m});const _=this._getUserFuncsDocVal(c.name);if(_)return u.index=this._getOverloadsFuncIndex(_,r,c.name,n),Object.assign(u,{docValue:_,isBuildIn:!1});const g=this._getUserVarFuncsDocVal(s,c.name,r,n);if(g)return Object.assign(u,{docValue:[g],isBuildIn:!1});const x=c.name.split("."),h=((l=x.pop())==null?void 0:l.length)||0;if(r>c.endIndex-h-1)return;const D=this._getBuildInOther(x.join("."));if(D)return Object.assign(u,{docValue:D,endIndex:c.endIndex-h-1})}}}_getOverloadsFuncIndex(s,r,n,o){if(s.length>1){const l=this._overloadsFuncs.find(c=>c.name===n&&c.line===o&&c.startColumn<=r&&c.endColumn>=r);if(l)return l.index}return 0}_getUserFuncsDocVal(s){const r=this._userFunctions.get(s);if(r){for(const n of r)n.title=Ae.userDefinedFunction;return r}}_getUserMethodsDocVal(s){const r=this._userMethods.get(s);if(r){for(const n of r)n.title=Ae.userDefinedFunction;return r}}_getUserVarFuncsDocVal(s,r,n,o){var l;if(r.includes(".")){const c=r.split("."),u=this._getTypesAndFileds(s,r,n,o);if(typeof u=="string"){const _=`${this._arrayTypeTransform(u).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${c.pop()}`,g=this._getBuildInMethod(_);if(g){const x=this._getOverloadsFuncIndex(g,n,_,o);return{...g[0],name:_,index:x}}return(l=this._getUserMethodsDocVal(_))==null?void 0:l[0]}else return u}}_arrayTypeTransform(s=""){return s.includes("[]")?`array<${s.replace("[]","")}>`:s}_matchContent(s,r,n){let o=0;for(const l of s){o=n-l.length;const c=r.indexOf(l,o);if(o=c+l.length,this._judgeVal(r,c,o)&&c+1<=n&&o>=n)return{name:l,endIndex:o}}}_judgeVal(s,r,n){const o=s.charAt(r-1),l=/[\w\d."']/;if(l.test(o))return!1;const c=s.charAt(n);return!l.test(c)}}const Ds=new Yu;var ya={exports:{}};/**
|
112
112
|
* @license
|
113
113
|
* Lodash <https://lodash.com/>
|
114
114
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
115
115
|
* Released under MIT license <https://lodash.com/license>
|
116
116
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
117
117
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
118
|
-
*/ya.exports,function(a,s){(function(){var r,n="4.17.21",o=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",d="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",_=500,g="__lodash_placeholder__",x=1,h=2,D=4,z=1,P=2,$=1,j=2,W=4,re=8,V=16,Q=32,q=64,C=128,R=256,E=512,A=30,O="...",J=800,se=16,le=1,Y=2,oe=3,xe=1/0,pe=9007199254740991,_e=17976931348623157e292,Ee=NaN,ee=4294967295,de=ee-1,Oe=ee>>>1,Ge=[["ary",C],["bind",$],["bindKey",j],["curry",re],["curryRight",V],["flip",E],["partial",Q],["partialRight",q],["rearg",R]],Qe="[object Arguments]",Rt="[object Array]",us="[object AsyncFunction]",Vt="[object Boolean]",Zt="[object Date]",Gs="[object DOMException]",Xs="[object Error]",Cs="[object Function]",Ia="[object GeneratorFunction]",bt="[object Map]",Gt="[object Number]",Ys="[object Null]",qt="[object Object]",zr="[object Promise]",Qs="[object Proxy]",Ss="[object RegExp]",xt="[object Set]",Jt="[object String]",Zs="[object Symbol]",Zn="[object Undefined]",ms="[object WeakMap]",Aa="[object WeakSet]",Ft="[object ArrayBuffer]",ys="[object DataView]",Js="[object Float32Array]",er="[object Float64Array]",zs="[object Int8Array]",Nr="[object Int16Array]",Er="[object Int32Array]",Lr="[object Uint8Array]",Mr="[object Uint8ClampedArray]",Or="[object Uint16Array]",Pr="[object Uint32Array]",Jn=/\b__p \+= '';/g,Rr=/\b(__p \+=) '' \+/g,qa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,es=/&(?:amp|lt|gt|quot|#39);/g,tr=/[&<>"']/g,Fr=RegExp(es.source),Ca=RegExp(tr.source),ei=/<%-([\s\S]+?)%>/g,Sa=/<%([\s\S]+?)%>/g,za=/<%=([\s\S]+?)%>/g,Na=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ea=/^\w*$/,ti=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Br=/[\\^$.*+?()[\]{}|]/g,La=RegExp(Br.source),Ur=/^\s+/,si=/\s/,ri=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ai=/\{\n\/\* \[wrapped with (.+)\] \*/,w=/,? & /,H=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,G=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ce=/\w*$/,Te=/^[-+]0x[0-9a-f]+$/i,we=/^0b[01]+$/i,Je=/^\[object .+?Constructor\]$/,Be=/^0o[0-7]+$/i,je=/^(?:0|[1-9]\d*)$/,dt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,Ma=/['\n\r\u2028\u2029\\]/g,ut="\\ud800-\\udfff",Ky="\\u0300-\\u036f",jy="\\ufe20-\\ufe2f",Hy="\\u20d0-\\u20ff",El=Ky+jy+Hy,Ll="\\u2700-\\u27bf",Ml="a-z\\xdf-\\xf6\\xf8-\\xff",Wy="\\xac\\xb1\\xd7\\xf7",Vy="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gy="\\u2000-\\u206f",Xy=" \\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",Ol="A-Z\\xc0-\\xd6\\xd8-\\xde",Pl="\\ufe0e\\ufe0f",Rl=Wy+Vy+Gy+Xy,ni="['’]",Yy="["+ut+"]",Fl="["+Rl+"]",Oa="["+El+"]",Bl="\\d+",Qy="["+Ll+"]",Ul="["+Ml+"]",$l="[^"+ut+Rl+Bl+Ll+Ml+Ol+"]",ii="\\ud83c[\\udffb-\\udfff]",Zy="(?:"+Oa+"|"+ii+")",Kl="[^"+ut+"]",oi="(?:\\ud83c[\\udde6-\\uddff]){2}",li="[\\ud800-\\udbff][\\udc00-\\udfff]",sr="["+Ol+"]",jl="\\u200d",Hl="(?:"+Ul+"|"+$l+")",Jy="(?:"+sr+"|"+$l+")",Wl="(?:"+ni+"(?:d|ll|m|re|s|t|ve))?",Vl="(?:"+ni+"(?:D|LL|M|RE|S|T|VE))?",Gl=Zy+"?",Xl="["+Pl+"]?",e_="(?:"+jl+"(?:"+[Kl,oi,li].join("|")+")"+Xl+Gl+")*",t_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yl=Xl+Gl+e_,r_="(?:"+[Qy,oi,li].join("|")+")"+Yl,a_="(?:"+[Kl+Oa+"?",Oa,oi,li,Yy].join("|")+")",n_=RegExp(ni,"g"),i_=RegExp(Oa,"g"),ci=RegExp(ii+"(?="+ii+")|"+a_+Yl,"g"),o_=RegExp([sr+"?"+Ul+"+"+Wl+"(?="+[Fl,sr,"$"].join("|")+")",Jy+"+"+Vl+"(?="+[Fl,sr+Hl,"$"].join("|")+")",sr+"?"+Hl+"+"+Wl,sr+"+"+Vl,s_,t_,Bl,r_].join("|"),"g"),l_=RegExp("["+jl+ut+El+Pl+"]"),c_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,p_=["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"],d_=-1,Re={};Re[Js]=Re[er]=Re[zs]=Re[Nr]=Re[Er]=Re[Lr]=Re[Mr]=Re[Or]=Re[Pr]=!0,Re[Qe]=Re[Rt]=Re[Ft]=Re[Vt]=Re[ys]=Re[Zt]=Re[Xs]=Re[Cs]=Re[bt]=Re[Gt]=Re[qt]=Re[Ss]=Re[xt]=Re[Jt]=Re[ms]=!1;var Pe={};Pe[Qe]=Pe[Rt]=Pe[Ft]=Pe[ys]=Pe[Vt]=Pe[Zt]=Pe[Js]=Pe[er]=Pe[zs]=Pe[Nr]=Pe[Er]=Pe[bt]=Pe[Gt]=Pe[qt]=Pe[Ss]=Pe[xt]=Pe[Jt]=Pe[Zs]=Pe[Lr]=Pe[Mr]=Pe[Or]=Pe[Pr]=!0,Pe[Xs]=Pe[Cs]=Pe[ms]=!1;var u_={À:"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"},m_={"&":"&","<":"<",">":">",'"':""","'":"'"},y_={"&":"&","<":"<",">":">",""":'"',"'":"'"},__={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},f_=parseFloat,g_=parseInt,Ql=typeof fr=="object"&&fr&&fr.Object===Object&&fr,b_=typeof self=="object"&&self&&self.Object===Object&&self,et=Ql||b_||Function("return this")(),pi=s&&!s.nodeType&&s,Ns=pi&&!0&&a&&!a.nodeType&&a,Zl=Ns&&Ns.exports===pi,di=Zl&&Ql.process,Ct=function(){try{var k=Ns&&Ns.require&&Ns.require("util").types;return k||di&&di.binding&&di.binding("util")}catch{}}(),Jl=Ct&&Ct.isArrayBuffer,ec=Ct&&Ct.isDate,tc=Ct&&Ct.isMap,sc=Ct&&Ct.isRegExp,rc=Ct&&Ct.isSet,ac=Ct&&Ct.isTypedArray;function ht(k,F,N){switch(N.length){case 0:return k.call(F);case 1:return k.call(F,N[0]);case 2:return k.call(F,N[0],N[1]);case 3:return k.call(F,N[0],N[1],N[2])}return k.apply(F,N)}function x_(k,F,N,Z){for(var me=-1,qe=k==null?0:k.length;++me<qe;){var Xe=k[me];F(Z,Xe,N(Xe),k)}return Z}function St(k,F){for(var N=-1,Z=k==null?0:k.length;++N<Z&&F(k[N],N,k)!==!1;);return k}function h_(k,F){for(var N=k==null?0:k.length;N--&&F(k[N],N,k)!==!1;);return k}function nc(k,F){for(var N=-1,Z=k==null?0:k.length;++N<Z;)if(!F(k[N],N,k))return!1;return!0}function _s(k,F){for(var N=-1,Z=k==null?0:k.length,me=0,qe=[];++N<Z;){var Xe=k[N];F(Xe,N,k)&&(qe[me++]=Xe)}return qe}function Pa(k,F){var N=k==null?0:k.length;return!!N&&rr(k,F,0)>-1}function ui(k,F,N){for(var Z=-1,me=k==null?0:k.length;++Z<me;)if(N(F,k[Z]))return!0;return!1}function Fe(k,F){for(var N=-1,Z=k==null?0:k.length,me=Array(Z);++N<Z;)me[N]=F(k[N],N,k);return me}function fs(k,F){for(var N=-1,Z=F.length,me=k.length;++N<Z;)k[me+N]=F[N];return k}function mi(k,F,N,Z){var me=-1,qe=k==null?0:k.length;for(Z&&qe&&(N=k[++me]);++me<qe;)N=F(N,k[me],me,k);return N}function w_(k,F,N,Z){var me=k==null?0:k.length;for(Z&&me&&(N=k[--me]);me--;)N=F(N,k[me],me,k);return N}function yi(k,F){for(var N=-1,Z=k==null?0:k.length;++N<Z;)if(F(k[N],N,k))return!0;return!1}var v_=_i("length");function T_(k){return k.split("")}function k_(k){return k.match(H)||[]}function ic(k,F,N){var Z;return N(k,function(me,qe,Xe){if(F(me,qe,Xe))return Z=qe,!1}),Z}function Ra(k,F,N,Z){for(var me=k.length,qe=N+(Z?1:-1);Z?qe--:++qe<me;)if(F(k[qe],qe,k))return qe;return-1}function rr(k,F,N){return F===F?O_(k,F,N):Ra(k,oc,N)}function D_(k,F,N,Z){for(var me=N-1,qe=k.length;++me<qe;)if(Z(k[me],F))return me;return-1}function oc(k){return k!==k}function lc(k,F){var N=k==null?0:k.length;return N?gi(k,F)/N:Ee}function _i(k){return function(F){return F==null?r:F[k]}}function fi(k){return function(F){return k==null?r:k[F]}}function cc(k,F,N,Z,me){return me(k,function(qe,Xe,Le){N=Z?(Z=!1,qe):F(N,qe,Xe,Le)}),N}function I_(k,F){var N=k.length;for(k.sort(F);N--;)k[N]=k[N].value;return k}function gi(k,F){for(var N,Z=-1,me=k.length;++Z<me;){var qe=F(k[Z]);qe!==r&&(N=N===r?qe:N+qe)}return N}function bi(k,F){for(var N=-1,Z=Array(k);++N<k;)Z[N]=F(N);return Z}function A_(k,F){return Fe(F,function(N){return[N,k[N]]})}function pc(k){return k&&k.slice(0,yc(k)+1).replace(Ur,"")}function wt(k){return function(F){return k(F)}}function xi(k,F){return Fe(F,function(N){return k[N]})}function $r(k,F){return k.has(F)}function dc(k,F){for(var N=-1,Z=k.length;++N<Z&&rr(F,k[N],0)>-1;);return N}function uc(k,F){for(var N=k.length;N--&&rr(F,k[N],0)>-1;);return N}function q_(k,F){for(var N=k.length,Z=0;N--;)k[N]===F&&++Z;return Z}var C_=fi(u_),S_=fi(m_);function z_(k){return"\\"+__[k]}function N_(k,F){return k==null?r:k[F]}function ar(k){return l_.test(k)}function E_(k){return c_.test(k)}function L_(k){for(var F,N=[];!(F=k.next()).done;)N.push(F.value);return N}function hi(k){var F=-1,N=Array(k.size);return k.forEach(function(Z,me){N[++F]=[me,Z]}),N}function mc(k,F){return function(N){return k(F(N))}}function gs(k,F){for(var N=-1,Z=k.length,me=0,qe=[];++N<Z;){var Xe=k[N];(Xe===F||Xe===g)&&(k[N]=g,qe[me++]=N)}return qe}function Fa(k){var F=-1,N=Array(k.size);return k.forEach(function(Z){N[++F]=Z}),N}function M_(k){var F=-1,N=Array(k.size);return k.forEach(function(Z){N[++F]=[Z,Z]}),N}function O_(k,F,N){for(var Z=N-1,me=k.length;++Z<me;)if(k[Z]===F)return Z;return-1}function P_(k,F,N){for(var Z=N+1;Z--;)if(k[Z]===F)return Z;return Z}function nr(k){return ar(k)?F_(k):v_(k)}function Ut(k){return ar(k)?B_(k):T_(k)}function yc(k){for(var F=k.length;F--&&si.test(k.charAt(F)););return F}var R_=fi(y_);function F_(k){for(var F=ci.lastIndex=0;ci.test(k);)++F;return F}function B_(k){return k.match(ci)||[]}function U_(k){return k.match(o_)||[]}var $_=function k(F){F=F==null?et:ir.defaults(et.Object(),F,ir.pick(et,p_));var N=F.Array,Z=F.Date,me=F.Error,qe=F.Function,Xe=F.Math,Le=F.Object,wi=F.RegExp,K_=F.String,zt=F.TypeError,Ba=N.prototype,j_=qe.prototype,or=Le.prototype,Ua=F["__core-js_shared__"],$a=j_.toString,ze=or.hasOwnProperty,H_=0,_c=function(){var e=/[^.]+$/.exec(Ua&&Ua.keys&&Ua.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ka=or.toString,W_=$a.call(Le),V_=et._,G_=wi("^"+$a.call(ze).replace(Br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ja=Zl?F.Buffer:r,bs=F.Symbol,Ha=F.Uint8Array,fc=ja?ja.allocUnsafe:r,Wa=mc(Le.getPrototypeOf,Le),gc=Le.create,bc=or.propertyIsEnumerable,Va=Ba.splice,xc=bs?bs.isConcatSpreadable:r,Kr=bs?bs.iterator:r,Es=bs?bs.toStringTag:r,Ga=function(){try{var e=Rs(Le,"defineProperty");return e({},"",{}),e}catch{}}(),X_=F.clearTimeout!==et.clearTimeout&&F.clearTimeout,Y_=Z&&Z.now!==et.Date.now&&Z.now,Q_=F.setTimeout!==et.setTimeout&&F.setTimeout,Xa=Xe.ceil,Ya=Xe.floor,vi=Le.getOwnPropertySymbols,Z_=ja?ja.isBuffer:r,hc=F.isFinite,J_=Ba.join,ef=mc(Le.keys,Le),Ye=Xe.max,rt=Xe.min,tf=Z.now,sf=F.parseInt,wc=Xe.random,rf=Ba.reverse,Ti=Rs(F,"DataView"),jr=Rs(F,"Map"),ki=Rs(F,"Promise"),lr=Rs(F,"Set"),Hr=Rs(F,"WeakMap"),Wr=Rs(Le,"create"),Qa=Hr&&new Hr,cr={},af=Fs(Ti),nf=Fs(jr),of=Fs(ki),lf=Fs(lr),cf=Fs(Hr),Za=bs?bs.prototype:r,Vr=Za?Za.valueOf:r,vc=Za?Za.toString:r;function y(e){if(He(e)&&!ye(e)&&!(e instanceof ke)){if(e instanceof Nt)return e;if(ze.call(e,"__wrapped__"))return Tp(e)}return new Nt(e)}var pr=function(){function e(){}return function(t){if(!Ue(t))return{};if(gc)return gc(t);e.prototype=t;var i=new e;return e.prototype=r,i}}();function Ja(){}function Nt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}y.templateSettings={escape:ei,evaluate:Sa,interpolate:za,variable:"",imports:{_:y}},y.prototype=Ja.prototype,y.prototype.constructor=y,Nt.prototype=pr(Ja.prototype),Nt.prototype.constructor=Nt;function ke(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function pf(){var e=new ke(this.__wrapped__);return e.__actions__=mt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=mt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=mt(this.__views__),e}function df(){if(this.__filtered__){var e=new ke(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function uf(){var e=this.__wrapped__.value(),t=this.__dir__,i=ye(e),p=t<0,u=i?e.length:0,f=kg(0,u,this.__views__),b=f.start,v=f.end,I=v-b,B=p?v:b-1,U=this.__iteratees__,K=U.length,X=0,te=rt(I,this.__takeCount__);if(!i||!p&&u==I&&te==I)return Wc(e,this.__actions__);var ne=[];e:for(;I--&&X<te;){B+=t;for(var be=-1,ie=e[B];++be<K;){var ve=U[be],De=ve.iteratee,kt=ve.type,ct=De(ie);if(kt==Y)ie=ct;else if(!ct){if(kt==le)continue e;break e}}ne[X++]=ie}return ne}ke.prototype=pr(Ja.prototype),ke.prototype.constructor=ke;function Ls(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var p=e[t];this.set(p[0],p[1])}}function mf(){this.__data__=Wr?Wr(null):{},this.size=0}function yf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function _f(e){var t=this.__data__;if(Wr){var i=t[e];return i===m?r:i}return ze.call(t,e)?t[e]:r}function ff(e){var t=this.__data__;return Wr?t[e]!==r:ze.call(t,e)}function gf(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Wr&&t===r?m:t,this}Ls.prototype.clear=mf,Ls.prototype.delete=yf,Ls.prototype.get=_f,Ls.prototype.has=ff,Ls.prototype.set=gf;function ts(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var p=e[t];this.set(p[0],p[1])}}function bf(){this.__data__=[],this.size=0}function xf(e){var t=this.__data__,i=en(t,e);if(i<0)return!1;var p=t.length-1;return i==p?t.pop():Va.call(t,i,1),--this.size,!0}function hf(e){var t=this.__data__,i=en(t,e);return i<0?r:t[i][1]}function wf(e){return en(this.__data__,e)>-1}function vf(e,t){var i=this.__data__,p=en(i,e);return p<0?(++this.size,i.push([e,t])):i[p][1]=t,this}ts.prototype.clear=bf,ts.prototype.delete=xf,ts.prototype.get=hf,ts.prototype.has=wf,ts.prototype.set=vf;function ss(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var p=e[t];this.set(p[0],p[1])}}function Tf(){this.size=0,this.__data__={hash:new Ls,map:new(jr||ts),string:new Ls}}function kf(e){var t=mn(this,e).delete(e);return this.size-=t?1:0,t}function Df(e){return mn(this,e).get(e)}function If(e){return mn(this,e).has(e)}function Af(e,t){var i=mn(this,e),p=i.size;return i.set(e,t),this.size+=i.size==p?0:1,this}ss.prototype.clear=Tf,ss.prototype.delete=kf,ss.prototype.get=Df,ss.prototype.has=If,ss.prototype.set=Af;function Ms(e){var t=-1,i=e==null?0:e.length;for(this.__data__=new ss;++t<i;)this.add(e[t])}function qf(e){return this.__data__.set(e,m),this}function Cf(e){return this.__data__.has(e)}Ms.prototype.add=Ms.prototype.push=qf,Ms.prototype.has=Cf;function $t(e){var t=this.__data__=new ts(e);this.size=t.size}function Sf(){this.__data__=new ts,this.size=0}function zf(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}function Nf(e){return this.__data__.get(e)}function Ef(e){return this.__data__.has(e)}function Lf(e,t){var i=this.__data__;if(i instanceof ts){var p=i.__data__;if(!jr||p.length<o-1)return p.push([e,t]),this.size=++i.size,this;i=this.__data__=new ss(p)}return i.set(e,t),this.size=i.size,this}$t.prototype.clear=Sf,$t.prototype.delete=zf,$t.prototype.get=Nf,$t.prototype.has=Ef,$t.prototype.set=Lf;function Tc(e,t){var i=ye(e),p=!i&&Bs(e),u=!i&&!p&&Ts(e),f=!i&&!p&&!u&&yr(e),b=i||p||u||f,v=b?bi(e.length,K_):[],I=v.length;for(var B in e)(t||ze.call(e,B))&&!(b&&(B=="length"||u&&(B=="offset"||B=="parent")||f&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||is(B,I)))&&v.push(B);return v}function kc(e){var t=e.length;return t?e[Mi(0,t-1)]:r}function Mf(e,t){return yn(mt(e),Os(t,0,e.length))}function Of(e){return yn(mt(e))}function Di(e,t,i){(i!==r&&!Kt(e[t],i)||i===r&&!(t in e))&&rs(e,t,i)}function Gr(e,t,i){var p=e[t];(!(ze.call(e,t)&&Kt(p,i))||i===r&&!(t in e))&&rs(e,t,i)}function en(e,t){for(var i=e.length;i--;)if(Kt(e[i][0],t))return i;return-1}function Pf(e,t,i,p){return xs(e,function(u,f,b){t(p,u,i(u),b)}),p}function Dc(e,t){return e&&Yt(t,Ze(t),e)}function Rf(e,t){return e&&Yt(t,_t(t),e)}function rs(e,t,i){t=="__proto__"&&Ga?Ga(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function Ii(e,t){for(var i=-1,p=t.length,u=N(p),f=e==null;++i<p;)u[i]=f?r:io(e,t[i]);return u}function Os(e,t,i){return e===e&&(i!==r&&(e=e<=i?e:i),t!==r&&(e=e>=t?e:t)),e}function Et(e,t,i,p,u,f){var b,v=t&x,I=t&h,B=t&D;if(i&&(b=u?i(e,p,u,f):i(e)),b!==r)return b;if(!Ue(e))return e;var U=ye(e);if(U){if(b=Ig(e),!v)return mt(e,b)}else{var K=at(e),X=K==Cs||K==Ia;if(Ts(e))return Xc(e,v);if(K==qt||K==Qe||X&&!u){if(b=I||X?{}:yp(e),!v)return I?_g(e,Rf(b,e)):yg(e,Dc(b,e))}else{if(!Pe[K])return u?e:{};b=Ag(e,K,v)}}f||(f=new $t);var te=f.get(e);if(te)return te;f.set(e,b),Kp(e)?e.forEach(function(ie){b.add(Et(ie,t,i,ie,e,f))}):Up(e)&&e.forEach(function(ie,ve){b.set(ve,Et(ie,t,i,ve,e,f))});var ne=B?I?Wi:Hi:I?_t:Ze,be=U?r:ne(e);return St(be||e,function(ie,ve){be&&(ve=ie,ie=e[ve]),Gr(b,ve,Et(ie,t,i,ve,e,f))}),b}function Ff(e){var t=Ze(e);return function(i){return Ic(i,e,t)}}function Ic(e,t,i){var p=i.length;if(e==null)return!p;for(e=Le(e);p--;){var u=i[p],f=t[u],b=e[u];if(b===r&&!(u in e)||!f(b))return!1}return!0}function Ac(e,t,i){if(typeof e!="function")throw new zt(c);return ta(function(){e.apply(r,i)},t)}function Xr(e,t,i,p){var u=-1,f=Pa,b=!0,v=e.length,I=[],B=t.length;if(!v)return I;i&&(t=Fe(t,wt(i))),p?(f=ui,b=!1):t.length>=o&&(f=$r,b=!1,t=new Ms(t));e:for(;++u<v;){var U=e[u],K=i==null?U:i(U);if(U=p||U!==0?U:0,b&&K===K){for(var X=B;X--;)if(t[X]===K)continue e;I.push(U)}else f(t,K,p)||I.push(U)}return I}var xs=ep(Xt),qc=ep(qi,!0);function Bf(e,t){var i=!0;return xs(e,function(p,u,f){return i=!!t(p,u,f),i}),i}function tn(e,t,i){for(var p=-1,u=e.length;++p<u;){var f=e[p],b=t(f);if(b!=null&&(v===r?b===b&&!Tt(b):i(b,v)))var v=b,I=f}return I}function Uf(e,t,i,p){var u=e.length;for(i=fe(i),i<0&&(i=-i>u?0:u+i),p=p===r||p>u?u:fe(p),p<0&&(p+=u),p=i>p?0:Hp(p);i<p;)e[i++]=t;return e}function Cc(e,t){var i=[];return xs(e,function(p,u,f){t(p,u,f)&&i.push(p)}),i}function tt(e,t,i,p,u){var f=-1,b=e.length;for(i||(i=Cg),u||(u=[]);++f<b;){var v=e[f];t>0&&i(v)?t>1?tt(v,t-1,i,p,u):fs(u,v):p||(u[u.length]=v)}return u}var Ai=tp(),Sc=tp(!0);function Xt(e,t){return e&&Ai(e,t,Ze)}function qi(e,t){return e&&Sc(e,t,Ze)}function sn(e,t){return _s(t,function(i){return os(e[i])})}function Ps(e,t){t=ws(t,e);for(var i=0,p=t.length;e!=null&&i<p;)e=e[Qt(t[i++])];return i&&i==p?e:r}function zc(e,t,i){var p=t(e);return ye(e)?p:fs(p,i(e))}function ot(e){return e==null?e===r?Zn:Ys:Es&&Es in Le(e)?Tg(e):Og(e)}function Ci(e,t){return e>t}function $f(e,t){return e!=null&&ze.call(e,t)}function Kf(e,t){return e!=null&&t in Le(e)}function jf(e,t,i){return e>=rt(t,i)&&e<Ye(t,i)}function Si(e,t,i){for(var p=i?ui:Pa,u=e[0].length,f=e.length,b=f,v=N(f),I=1/0,B=[];b--;){var U=e[b];b&&t&&(U=Fe(U,wt(t))),I=rt(U.length,I),v[b]=!i&&(t||u>=120&&U.length>=120)?new Ms(b&&U):r}U=e[0];var K=-1,X=v[0];e:for(;++K<u&&B.length<I;){var te=U[K],ne=t?t(te):te;if(te=i||te!==0?te:0,!(X?$r(X,ne):p(B,ne,i))){for(b=f;--b;){var be=v[b];if(!(be?$r(be,ne):p(e[b],ne,i)))continue e}X&&X.push(ne),B.push(te)}}return B}function Hf(e,t,i,p){return Xt(e,function(u,f,b){t(p,i(u),f,b)}),p}function Yr(e,t,i){t=ws(t,e),e=bp(e,t);var p=e==null?e:e[Qt(Mt(t))];return p==null?r:ht(p,e,i)}function Nc(e){return He(e)&&ot(e)==Qe}function Wf(e){return He(e)&&ot(e)==Ft}function Vf(e){return He(e)&&ot(e)==Zt}function Qr(e,t,i,p,u){return e===t?!0:e==null||t==null||!He(e)&&!He(t)?e!==e&&t!==t:Gf(e,t,i,p,Qr,u)}function Gf(e,t,i,p,u,f){var b=ye(e),v=ye(t),I=b?Rt:at(e),B=v?Rt:at(t);I=I==Qe?qt:I,B=B==Qe?qt:B;var U=I==qt,K=B==qt,X=I==B;if(X&&Ts(e)){if(!Ts(t))return!1;b=!0,U=!1}if(X&&!U)return f||(f=new $t),b||yr(e)?dp(e,t,i,p,u,f):wg(e,t,I,i,p,u,f);if(!(i&z)){var te=U&&ze.call(e,"__wrapped__"),ne=K&&ze.call(t,"__wrapped__");if(te||ne){var be=te?e.value():e,ie=ne?t.value():t;return f||(f=new $t),u(be,ie,i,p,f)}}return X?(f||(f=new $t),vg(e,t,i,p,u,f)):!1}function Xf(e){return He(e)&&at(e)==bt}function zi(e,t,i,p){var u=i.length,f=u,b=!p;if(e==null)return!f;for(e=Le(e);u--;){var v=i[u];if(b&&v[2]?v[1]!==e[v[0]]:!(v[0]in e))return!1}for(;++u<f;){v=i[u];var I=v[0],B=e[I],U=v[1];if(b&&v[2]){if(B===r&&!(I in e))return!1}else{var K=new $t;if(p)var X=p(B,U,I,e,t,K);if(!(X===r?Qr(U,B,z|P,p,K):X))return!1}}return!0}function Ec(e){if(!Ue(e)||zg(e))return!1;var t=os(e)?G_:Je;return t.test(Fs(e))}function Yf(e){return He(e)&&ot(e)==Ss}function Qf(e){return He(e)&&at(e)==xt}function Zf(e){return He(e)&&hn(e.length)&&!!Re[ot(e)]}function Lc(e){return typeof e=="function"?e:e==null?ft:typeof e=="object"?ye(e)?Pc(e[0],e[1]):Oc(e):sd(e)}function Ni(e){if(!ea(e))return ef(e);var t=[];for(var i in Le(e))ze.call(e,i)&&i!="constructor"&&t.push(i);return t}function Jf(e){if(!Ue(e))return Mg(e);var t=ea(e),i=[];for(var p in e)p=="constructor"&&(t||!ze.call(e,p))||i.push(p);return i}function Ei(e,t){return e<t}function Mc(e,t){var i=-1,p=yt(e)?N(e.length):[];return xs(e,function(u,f,b){p[++i]=t(u,f,b)}),p}function Oc(e){var t=Gi(e);return t.length==1&&t[0][2]?fp(t[0][0],t[0][1]):function(i){return i===e||zi(i,e,t)}}function Pc(e,t){return Yi(e)&&_p(t)?fp(Qt(e),t):function(i){var p=io(i,e);return p===r&&p===t?oo(i,e):Qr(t,p,z|P)}}function rn(e,t,i,p,u){e!==t&&Ai(t,function(f,b){if(u||(u=new $t),Ue(f))eg(e,t,b,i,rn,p,u);else{var v=p?p(Zi(e,b),f,b+"",e,t,u):r;v===r&&(v=f),Di(e,b,v)}},_t)}function eg(e,t,i,p,u,f,b){var v=Zi(e,i),I=Zi(t,i),B=b.get(I);if(B){Di(e,i,B);return}var U=f?f(v,I,i+"",e,t,b):r,K=U===r;if(K){var X=ye(I),te=!X&&Ts(I),ne=!X&&!te&&yr(I);U=I,X||te||ne?ye(v)?U=v:We(v)?U=mt(v):te?(K=!1,U=Xc(I,!0)):ne?(K=!1,U=Yc(I,!0)):U=[]:sa(I)||Bs(I)?(U=v,Bs(v)?U=Wp(v):(!Ue(v)||os(v))&&(U=yp(I))):K=!1}K&&(b.set(I,U),u(U,I,p,f,b),b.delete(I)),Di(e,i,U)}function Rc(e,t){var i=e.length;if(i)return t+=t<0?i:0,is(t,i)?e[t]:r}function Fc(e,t,i){t.length?t=Fe(t,function(f){return ye(f)?function(b){return Ps(b,f.length===1?f[0]:f)}:f}):t=[ft];var p=-1;t=Fe(t,wt(ae()));var u=Mc(e,function(f,b,v){var I=Fe(t,function(B){return B(f)});return{criteria:I,index:++p,value:f}});return I_(u,function(f,b){return mg(f,b,i)})}function tg(e,t){return Bc(e,t,function(i,p){return oo(e,p)})}function Bc(e,t,i){for(var p=-1,u=t.length,f={};++p<u;){var b=t[p],v=Ps(e,b);i(v,b)&&Zr(f,ws(b,e),v)}return f}function sg(e){return function(t){return Ps(t,e)}}function Li(e,t,i,p){var u=p?D_:rr,f=-1,b=t.length,v=e;for(e===t&&(t=mt(t)),i&&(v=Fe(e,wt(i)));++f<b;)for(var I=0,B=t[f],U=i?i(B):B;(I=u(v,U,I,p))>-1;)v!==e&&Va.call(v,I,1),Va.call(e,I,1);return e}function Uc(e,t){for(var i=e?t.length:0,p=i-1;i--;){var u=t[i];if(i==p||u!==f){var f=u;is(u)?Va.call(e,u,1):Ri(e,u)}}return e}function Mi(e,t){return e+Ya(wc()*(t-e+1))}function rg(e,t,i,p){for(var u=-1,f=Ye(Xa((t-e)/(i||1)),0),b=N(f);f--;)b[p?f:++u]=e,e+=i;return b}function Oi(e,t){var i="";if(!e||t<1||t>pe)return i;do t%2&&(i+=e),t=Ya(t/2),t&&(e+=e);while(t);return i}function he(e,t){return Ji(gp(e,t,ft),e+"")}function ag(e){return kc(_r(e))}function ng(e,t){var i=_r(e);return yn(i,Os(t,0,i.length))}function Zr(e,t,i,p){if(!Ue(e))return e;t=ws(t,e);for(var u=-1,f=t.length,b=f-1,v=e;v!=null&&++u<f;){var I=Qt(t[u]),B=i;if(I==="__proto__"||I==="constructor"||I==="prototype")return e;if(u!=b){var U=v[I];B=p?p(U,I,v):r,B===r&&(B=Ue(U)?U:is(t[u+1])?[]:{})}Gr(v,I,B),v=v[I]}return e}var $c=Qa?function(e,t){return Qa.set(e,t),e}:ft,ig=Ga?function(e,t){return Ga(e,"toString",{configurable:!0,enumerable:!1,value:co(t),writable:!0})}:ft;function og(e){return yn(_r(e))}function Lt(e,t,i){var p=-1,u=e.length;t<0&&(t=-t>u?0:u+t),i=i>u?u:i,i<0&&(i+=u),u=t>i?0:i-t>>>0,t>>>=0;for(var f=N(u);++p<u;)f[p]=e[p+t];return f}function lg(e,t){var i;return xs(e,function(p,u,f){return i=t(p,u,f),!i}),!!i}function an(e,t,i){var p=0,u=e==null?p:e.length;if(typeof t=="number"&&t===t&&u<=Oe){for(;p<u;){var f=p+u>>>1,b=e[f];b!==null&&!Tt(b)&&(i?b<=t:b<t)?p=f+1:u=f}return u}return Pi(e,t,ft,i)}function Pi(e,t,i,p){var u=0,f=e==null?0:e.length;if(f===0)return 0;t=i(t);for(var b=t!==t,v=t===null,I=Tt(t),B=t===r;u<f;){var U=Ya((u+f)/2),K=i(e[U]),X=K!==r,te=K===null,ne=K===K,be=Tt(K);if(b)var ie=p||ne;else B?ie=ne&&(p||X):v?ie=ne&&X&&(p||!te):I?ie=ne&&X&&!te&&(p||!be):te||be?ie=!1:ie=p?K<=t:K<t;ie?u=U+1:f=U}return rt(f,de)}function Kc(e,t){for(var i=-1,p=e.length,u=0,f=[];++i<p;){var b=e[i],v=t?t(b):b;if(!i||!Kt(v,I)){var I=v;f[u++]=b===0?0:b}}return f}function jc(e){return typeof e=="number"?e:Tt(e)?Ee:+e}function vt(e){if(typeof e=="string")return e;if(ye(e))return Fe(e,vt)+"";if(Tt(e))return vc?vc.call(e):"";var t=e+"";return t=="0"&&1/e==-xe?"-0":t}function hs(e,t,i){var p=-1,u=Pa,f=e.length,b=!0,v=[],I=v;if(i)b=!1,u=ui;else if(f>=o){var B=t?null:xg(e);if(B)return Fa(B);b=!1,u=$r,I=new Ms}else I=t?[]:v;e:for(;++p<f;){var U=e[p],K=t?t(U):U;if(U=i||U!==0?U:0,b&&K===K){for(var X=I.length;X--;)if(I[X]===K)continue e;t&&I.push(K),v.push(U)}else u(I,K,i)||(I!==v&&I.push(K),v.push(U))}return v}function Ri(e,t){return t=ws(t,e),e=bp(e,t),e==null||delete e[Qt(Mt(t))]}function Hc(e,t,i,p){return Zr(e,t,i(Ps(e,t)),p)}function nn(e,t,i,p){for(var u=e.length,f=p?u:-1;(p?f--:++f<u)&&t(e[f],f,e););return i?Lt(e,p?0:f,p?f+1:u):Lt(e,p?f+1:0,p?u:f)}function Wc(e,t){var i=e;return i instanceof ke&&(i=i.value()),mi(t,function(p,u){return u.func.apply(u.thisArg,fs([p],u.args))},i)}function Fi(e,t,i){var p=e.length;if(p<2)return p?hs(e[0]):[];for(var u=-1,f=N(p);++u<p;)for(var b=e[u],v=-1;++v<p;)v!=u&&(f[u]=Xr(f[u]||b,e[v],t,i));return hs(tt(f,1),t,i)}function Vc(e,t,i){for(var p=-1,u=e.length,f=t.length,b={};++p<u;){var v=p<f?t[p]:r;i(b,e[p],v)}return b}function Bi(e){return We(e)?e:[]}function Ui(e){return typeof e=="function"?e:ft}function ws(e,t){return ye(e)?e:Yi(e,t)?[e]:vp(Se(e))}var cg=he;function vs(e,t,i){var p=e.length;return i=i===r?p:i,!t&&i>=p?e:Lt(e,t,i)}var Gc=X_||function(e){return et.clearTimeout(e)};function Xc(e,t){if(t)return e.slice();var i=e.length,p=fc?fc(i):new e.constructor(i);return e.copy(p),p}function $i(e){var t=new e.constructor(e.byteLength);return new Ha(t).set(new Ha(e)),t}function pg(e,t){var i=t?$i(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function dg(e){var t=new e.constructor(e.source,Ce.exec(e));return t.lastIndex=e.lastIndex,t}function ug(e){return Vr?Le(Vr.call(e)):{}}function Yc(e,t){var i=t?$i(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Qc(e,t){if(e!==t){var i=e!==r,p=e===null,u=e===e,f=Tt(e),b=t!==r,v=t===null,I=t===t,B=Tt(t);if(!v&&!B&&!f&&e>t||f&&b&&I&&!v&&!B||p&&b&&I||!i&&I||!u)return 1;if(!p&&!f&&!B&&e<t||B&&i&&u&&!p&&!f||v&&i&&u||!b&&u||!I)return-1}return 0}function mg(e,t,i){for(var p=-1,u=e.criteria,f=t.criteria,b=u.length,v=i.length;++p<b;){var I=Qc(u[p],f[p]);if(I){if(p>=v)return I;var B=i[p];return I*(B=="desc"?-1:1)}}return e.index-t.index}function Zc(e,t,i,p){for(var u=-1,f=e.length,b=i.length,v=-1,I=t.length,B=Ye(f-b,0),U=N(I+B),K=!p;++v<I;)U[v]=t[v];for(;++u<b;)(K||u<f)&&(U[i[u]]=e[u]);for(;B--;)U[v++]=e[u++];return U}function Jc(e,t,i,p){for(var u=-1,f=e.length,b=-1,v=i.length,I=-1,B=t.length,U=Ye(f-v,0),K=N(U+B),X=!p;++u<U;)K[u]=e[u];for(var te=u;++I<B;)K[te+I]=t[I];for(;++b<v;)(X||u<f)&&(K[te+i[b]]=e[u++]);return K}function mt(e,t){var i=-1,p=e.length;for(t||(t=N(p));++i<p;)t[i]=e[i];return t}function Yt(e,t,i,p){var u=!i;i||(i={});for(var f=-1,b=t.length;++f<b;){var v=t[f],I=p?p(i[v],e[v],v,i,e):r;I===r&&(I=e[v]),u?rs(i,v,I):Gr(i,v,I)}return i}function yg(e,t){return Yt(e,Xi(e),t)}function _g(e,t){return Yt(e,up(e),t)}function on(e,t){return function(i,p){var u=ye(i)?x_:Pf,f=t?t():{};return u(i,e,ae(p,2),f)}}function dr(e){return he(function(t,i){var p=-1,u=i.length,f=u>1?i[u-1]:r,b=u>2?i[2]:r;for(f=e.length>3&&typeof f=="function"?(u--,f):r,b&<(i[0],i[1],b)&&(f=u<3?r:f,u=1),t=Le(t);++p<u;){var v=i[p];v&&e(t,v,p,f)}return t})}function ep(e,t){return function(i,p){if(i==null)return i;if(!yt(i))return e(i,p);for(var u=i.length,f=t?u:-1,b=Le(i);(t?f--:++f<u)&&p(b[f],f,b)!==!1;);return i}}function tp(e){return function(t,i,p){for(var u=-1,f=Le(t),b=p(t),v=b.length;v--;){var I=b[e?v:++u];if(i(f[I],I,f)===!1)break}return t}}function fg(e,t,i){var p=t&$,u=Jr(e);function f(){var b=this&&this!==et&&this instanceof f?u:e;return b.apply(p?i:this,arguments)}return f}function sp(e){return function(t){t=Se(t);var i=ar(t)?Ut(t):r,p=i?i[0]:t.charAt(0),u=i?vs(i,1).join(""):t.slice(1);return p[e]()+u}}function ur(e){return function(t){return mi(ed(Jp(t).replace(n_,"")),e,"")}}function Jr(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 i=pr(e.prototype),p=e.apply(i,t);return Ue(p)?p:i}}function gg(e,t,i){var p=Jr(e);function u(){for(var f=arguments.length,b=N(f),v=f,I=mr(u);v--;)b[v]=arguments[v];var B=f<3&&b[0]!==I&&b[f-1]!==I?[]:gs(b,I);if(f-=B.length,f<i)return op(e,t,ln,u.placeholder,r,b,B,r,r,i-f);var U=this&&this!==et&&this instanceof u?p:e;return ht(U,this,b)}return u}function rp(e){return function(t,i,p){var u=Le(t);if(!yt(t)){var f=ae(i,3);t=Ze(t),i=function(v){return f(u[v],v,u)}}var b=e(t,i,p);return b>-1?u[f?t[b]:b]:r}}function ap(e){return ns(function(t){var i=t.length,p=i,u=Nt.prototype.thru;for(e&&t.reverse();p--;){var f=t[p];if(typeof f!="function")throw new zt(c);if(u&&!b&&un(f)=="wrapper")var b=new Nt([],!0)}for(p=b?p:i;++p<i;){f=t[p];var v=un(f),I=v=="wrapper"?Vi(f):r;I&&Qi(I[0])&&I[1]==(C|re|Q|R)&&!I[4].length&&I[9]==1?b=b[un(I[0])].apply(b,I[3]):b=f.length==1&&Qi(f)?b[v]():b.thru(f)}return function(){var B=arguments,U=B[0];if(b&&B.length==1&&ye(U))return b.plant(U).value();for(var K=0,X=i?t[K].apply(this,B):U;++K<i;)X=t[K].call(this,X);return X}})}function ln(e,t,i,p,u,f,b,v,I,B){var U=t&C,K=t&$,X=t&j,te=t&(re|V),ne=t&E,be=X?r:Jr(e);function ie(){for(var ve=arguments.length,De=N(ve),kt=ve;kt--;)De[kt]=arguments[kt];if(te)var ct=mr(ie),Dt=q_(De,ct);if(p&&(De=Zc(De,p,u,te)),f&&(De=Jc(De,f,b,te)),ve-=Dt,te&&ve<B){var Ve=gs(De,ct);return op(e,t,ln,ie.placeholder,i,De,Ve,v,I,B-ve)}var jt=K?i:this,cs=X?jt[e]:e;return ve=De.length,v?De=Pg(De,v):ne&&ve>1&&De.reverse(),U&&I<ve&&(De.length=I),this&&this!==et&&this instanceof ie&&(cs=be||Jr(cs)),cs.apply(jt,De)}return ie}function np(e,t){return function(i,p){return Hf(i,e,t(p),{})}}function cn(e,t){return function(i,p){var u;if(i===r&&p===r)return t;if(i!==r&&(u=i),p!==r){if(u===r)return p;typeof i=="string"||typeof p=="string"?(i=vt(i),p=vt(p)):(i=jc(i),p=jc(p)),u=e(i,p)}return u}}function Ki(e){return ns(function(t){return t=Fe(t,wt(ae())),he(function(i){var p=this;return e(t,function(u){return ht(u,p,i)})})})}function pn(e,t){t=t===r?" ":vt(t);var i=t.length;if(i<2)return i?Oi(t,e):t;var p=Oi(t,Xa(e/nr(t)));return ar(t)?vs(Ut(p),0,e).join(""):p.slice(0,e)}function bg(e,t,i,p){var u=t&$,f=Jr(e);function b(){for(var v=-1,I=arguments.length,B=-1,U=p.length,K=N(U+I),X=this&&this!==et&&this instanceof b?f:e;++B<U;)K[B]=p[B];for(;I--;)K[B++]=arguments[++v];return ht(X,u?i:this,K)}return b}function ip(e){return function(t,i,p){return p&&typeof p!="number"&<(t,i,p)&&(i=p=r),t=ls(t),i===r?(i=t,t=0):i=ls(i),p=p===r?t<i?1:-1:ls(p),rg(t,i,p,e)}}function dn(e){return function(t,i){return typeof t=="string"&&typeof i=="string"||(t=Ot(t),i=Ot(i)),e(t,i)}}function op(e,t,i,p,u,f,b,v,I,B){var U=t&re,K=U?b:r,X=U?r:b,te=U?f:r,ne=U?r:f;t|=U?Q:q,t&=~(U?q:Q),t&W||(t&=~($|j));var be=[e,t,u,te,K,ne,X,v,I,B],ie=i.apply(r,be);return Qi(e)&&xp(ie,be),ie.placeholder=p,hp(ie,e,t)}function ji(e){var t=Xe[e];return function(i,p){if(i=Ot(i),p=p==null?0:rt(fe(p),292),p&&hc(i)){var u=(Se(i)+"e").split("e"),f=t(u[0]+"e"+(+u[1]+p));return u=(Se(f)+"e").split("e"),+(u[0]+"e"+(+u[1]-p))}return t(i)}}var xg=lr&&1/Fa(new lr([,-0]))[1]==xe?function(e){return new lr(e)}:mo;function lp(e){return function(t){var i=at(t);return i==bt?hi(t):i==xt?M_(t):A_(t,e(t))}}function as(e,t,i,p,u,f,b,v){var I=t&j;if(!I&&typeof e!="function")throw new zt(c);var B=p?p.length:0;if(B||(t&=~(Q|q),p=u=r),b=b===r?b:Ye(fe(b),0),v=v===r?v:fe(v),B-=u?u.length:0,t&q){var U=p,K=u;p=u=r}var X=I?r:Vi(e),te=[e,t,i,p,u,U,K,f,b,v];if(X&&Lg(te,X),e=te[0],t=te[1],i=te[2],p=te[3],u=te[4],v=te[9]=te[9]===r?I?0:e.length:Ye(te[9]-B,0),!v&&t&(re|V)&&(t&=~(re|V)),!t||t==$)var ne=fg(e,t,i);else t==re||t==V?ne=gg(e,t,v):(t==Q||t==($|Q))&&!u.length?ne=bg(e,t,i,p):ne=ln.apply(r,te);var be=X?$c:xp;return hp(be(ne,te),e,t)}function cp(e,t,i,p){return e===r||Kt(e,or[i])&&!ze.call(p,i)?t:e}function pp(e,t,i,p,u,f){return Ue(e)&&Ue(t)&&(f.set(t,e),rn(e,t,r,pp,f),f.delete(t)),e}function hg(e){return sa(e)?r:e}function dp(e,t,i,p,u,f){var b=i&z,v=e.length,I=t.length;if(v!=I&&!(b&&I>v))return!1;var B=f.get(e),U=f.get(t);if(B&&U)return B==t&&U==e;var K=-1,X=!0,te=i&P?new Ms:r;for(f.set(e,t),f.set(t,e);++K<v;){var ne=e[K],be=t[K];if(p)var ie=b?p(be,ne,K,t,e,f):p(ne,be,K,e,t,f);if(ie!==r){if(ie)continue;X=!1;break}if(te){if(!yi(t,function(ve,De){if(!$r(te,De)&&(ne===ve||u(ne,ve,i,p,f)))return te.push(De)})){X=!1;break}}else if(!(ne===be||u(ne,be,i,p,f))){X=!1;break}}return f.delete(e),f.delete(t),X}function wg(e,t,i,p,u,f,b){switch(i){case ys:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ft:return!(e.byteLength!=t.byteLength||!f(new Ha(e),new Ha(t)));case Vt:case Zt:case Gt:return Kt(+e,+t);case Xs:return e.name==t.name&&e.message==t.message;case Ss:case Jt:return e==t+"";case bt:var v=hi;case xt:var I=p&z;if(v||(v=Fa),e.size!=t.size&&!I)return!1;var B=b.get(e);if(B)return B==t;p|=P,b.set(e,t);var U=dp(v(e),v(t),p,u,f,b);return b.delete(e),U;case Zs:if(Vr)return Vr.call(e)==Vr.call(t)}return!1}function vg(e,t,i,p,u,f){var b=i&z,v=Hi(e),I=v.length,B=Hi(t),U=B.length;if(I!=U&&!b)return!1;for(var K=I;K--;){var X=v[K];if(!(b?X in t:ze.call(t,X)))return!1}var te=f.get(e),ne=f.get(t);if(te&&ne)return te==t&&ne==e;var be=!0;f.set(e,t),f.set(t,e);for(var ie=b;++K<I;){X=v[K];var ve=e[X],De=t[X];if(p)var kt=b?p(De,ve,X,t,e,f):p(ve,De,X,e,t,f);if(!(kt===r?ve===De||u(ve,De,i,p,f):kt)){be=!1;break}ie||(ie=X=="constructor")}if(be&&!ie){var ct=e.constructor,Dt=t.constructor;ct!=Dt&&"constructor"in e&&"constructor"in t&&!(typeof ct=="function"&&ct instanceof ct&&typeof Dt=="function"&&Dt instanceof Dt)&&(be=!1)}return f.delete(e),f.delete(t),be}function ns(e){return Ji(gp(e,r,Ip),e+"")}function Hi(e){return zc(e,Ze,Xi)}function Wi(e){return zc(e,_t,up)}var Vi=Qa?function(e){return Qa.get(e)}:mo;function un(e){for(var t=e.name+"",i=cr[t],p=ze.call(cr,t)?i.length:0;p--;){var u=i[p],f=u.func;if(f==null||f==e)return u.name}return t}function mr(e){var t=ze.call(y,"placeholder")?y:e;return t.placeholder}function ae(){var e=y.iteratee||po;return e=e===po?Lc:e,arguments.length?e(arguments[0],arguments[1]):e}function mn(e,t){var i=e.__data__;return Sg(t)?i[typeof t=="string"?"string":"hash"]:i.map}function Gi(e){for(var t=Ze(e),i=t.length;i--;){var p=t[i],u=e[p];t[i]=[p,u,_p(u)]}return t}function Rs(e,t){var i=N_(e,t);return Ec(i)?i:r}function Tg(e){var t=ze.call(e,Es),i=e[Es];try{e[Es]=r;var p=!0}catch{}var u=Ka.call(e);return p&&(t?e[Es]=i:delete e[Es]),u}var Xi=vi?function(e){return e==null?[]:(e=Le(e),_s(vi(e),function(t){return bc.call(e,t)}))}:yo,up=vi?function(e){for(var t=[];e;)fs(t,Xi(e)),e=Wa(e);return t}:yo,at=ot;(Ti&&at(new Ti(new ArrayBuffer(1)))!=ys||jr&&at(new jr)!=bt||ki&&at(ki.resolve())!=zr||lr&&at(new lr)!=xt||Hr&&at(new Hr)!=ms)&&(at=function(e){var t=ot(e),i=t==qt?e.constructor:r,p=i?Fs(i):"";if(p)switch(p){case af:return ys;case nf:return bt;case of:return zr;case lf:return xt;case cf:return ms}return t});function kg(e,t,i){for(var p=-1,u=i.length;++p<u;){var f=i[p],b=f.size;switch(f.type){case"drop":e+=b;break;case"dropRight":t-=b;break;case"take":t=rt(t,e+b);break;case"takeRight":e=Ye(e,t-b);break}}return{start:e,end:t}}function Dg(e){var t=e.match(ai);return t?t[1].split(w):[]}function mp(e,t,i){t=ws(t,e);for(var p=-1,u=t.length,f=!1;++p<u;){var b=Qt(t[p]);if(!(f=e!=null&&i(e,b)))break;e=e[b]}return f||++p!=u?f:(u=e==null?0:e.length,!!u&&hn(u)&&is(b,u)&&(ye(e)||Bs(e)))}function Ig(e){var t=e.length,i=new e.constructor(t);return t&&typeof e[0]=="string"&&ze.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function yp(e){return typeof e.constructor=="function"&&!ea(e)?pr(Wa(e)):{}}function Ag(e,t,i){var p=e.constructor;switch(t){case Ft:return $i(e);case Vt:case Zt:return new p(+e);case ys:return pg(e,i);case Js:case er:case zs:case Nr:case Er:case Lr:case Mr:case Or:case Pr:return Yc(e,i);case bt:return new p;case Gt:case Jt:return new p(e);case Ss:return dg(e);case xt:return new p;case Zs:return ug(e)}}function qg(e,t){var i=t.length;if(!i)return e;var p=i-1;return t[p]=(i>1?"& ":"")+t[p],t=t.join(i>2?", ":" "),e.replace(ri,`{
|
118
|
+
*/ya.exports,function(a,s){(function(){var r,n="4.17.21",o=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",_=500,g="__lodash_placeholder__",x=1,h=2,D=4,S=1,R=2,U=1,K=2,H=4,re=8,W=16,Q=32,C=64,z=128,V=256,q=512,A=30,L="...",Z=800,ee=16,ne=1,Y=2,le=3,xe=1/0,pe=9007199254740991,_e=17976931348623157e292,Ee=NaN,te=4294967295,de=te-1,Oe=te>>>1,Ge=[["ary",z],["bind",U],["bindKey",K],["curry",re],["curryRight",W],["flip",q],["partial",Q],["partialRight",C],["rearg",V]],Qe="[object Arguments]",Rt="[object Array]",us="[object AsyncFunction]",Vt="[object Boolean]",Zt="[object Date]",Gs="[object DOMException]",Xs="[object Error]",Cs="[object Function]",Ia="[object GeneratorFunction]",bt="[object Map]",Gt="[object Number]",Ys="[object Null]",qt="[object Object]",zr="[object Promise]",Qs="[object Proxy]",Ss="[object RegExp]",xt="[object Set]",Jt="[object String]",Zs="[object Symbol]",Zn="[object Undefined]",ms="[object WeakMap]",Aa="[object WeakSet]",Ft="[object ArrayBuffer]",ys="[object DataView]",Js="[object Float32Array]",er="[object Float64Array]",zs="[object Int8Array]",Nr="[object Int16Array]",Er="[object Int32Array]",Lr="[object Uint8Array]",Mr="[object Uint8ClampedArray]",Or="[object Uint16Array]",Pr="[object Uint32Array]",Jn=/\b__p \+= '';/g,Rr=/\b(__p \+=) '' \+/g,qa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,es=/&(?:amp|lt|gt|quot|#39);/g,tr=/[&<>"']/g,Fr=RegExp(es.source),Ca=RegExp(tr.source),ei=/<%-([\s\S]+?)%>/g,Sa=/<%([\s\S]+?)%>/g,za=/<%=([\s\S]+?)%>/g,Na=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ea=/^\w*$/,ti=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Br=/[\\^$.*+?()[\]{}|]/g,La=RegExp(Br.source),Ur=/^\s+/,si=/\s/,ri=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ai=/\{\n\/\* \[wrapped with (.+)\] \*/,w=/,? & /,j=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,G=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ce=/\w*$/,Te=/^[-+]0x[0-9a-f]+$/i,we=/^0b[01]+$/i,Je=/^\[object .+?Constructor\]$/,Be=/^0o[0-7]+$/i,je=/^(?:0|[1-9]\d*)$/,dt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,Ma=/['\n\r\u2028\u2029\\]/g,ut="\\ud800-\\udfff",Ky="\\u0300-\\u036f",jy="\\ufe20-\\ufe2f",Hy="\\u20d0-\\u20ff",El=Ky+jy+Hy,Ll="\\u2700-\\u27bf",Ml="a-z\\xdf-\\xf6\\xf8-\\xff",Wy="\\xac\\xb1\\xd7\\xf7",Vy="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gy="\\u2000-\\u206f",Xy=" \\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",Ol="A-Z\\xc0-\\xd6\\xd8-\\xde",Pl="\\ufe0e\\ufe0f",Rl=Wy+Vy+Gy+Xy,ni="['’]",Yy="["+ut+"]",Fl="["+Rl+"]",Oa="["+El+"]",Bl="\\d+",Qy="["+Ll+"]",Ul="["+Ml+"]",$l="[^"+ut+Rl+Bl+Ll+Ml+Ol+"]",ii="\\ud83c[\\udffb-\\udfff]",Zy="(?:"+Oa+"|"+ii+")",Kl="[^"+ut+"]",oi="(?:\\ud83c[\\udde6-\\uddff]){2}",li="[\\ud800-\\udbff][\\udc00-\\udfff]",sr="["+Ol+"]",jl="\\u200d",Hl="(?:"+Ul+"|"+$l+")",Jy="(?:"+sr+"|"+$l+")",Wl="(?:"+ni+"(?:d|ll|m|re|s|t|ve))?",Vl="(?:"+ni+"(?:D|LL|M|RE|S|T|VE))?",Gl=Zy+"?",Xl="["+Pl+"]?",e_="(?:"+jl+"(?:"+[Kl,oi,li].join("|")+")"+Xl+Gl+")*",t_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yl=Xl+Gl+e_,r_="(?:"+[Qy,oi,li].join("|")+")"+Yl,a_="(?:"+[Kl+Oa+"?",Oa,oi,li,Yy].join("|")+")",n_=RegExp(ni,"g"),i_=RegExp(Oa,"g"),ci=RegExp(ii+"(?="+ii+")|"+a_+Yl,"g"),o_=RegExp([sr+"?"+Ul+"+"+Wl+"(?="+[Fl,sr,"$"].join("|")+")",Jy+"+"+Vl+"(?="+[Fl,sr+Hl,"$"].join("|")+")",sr+"?"+Hl+"+"+Wl,sr+"+"+Vl,s_,t_,Bl,r_].join("|"),"g"),l_=RegExp("["+jl+ut+El+Pl+"]"),c_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,p_=["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"],d_=-1,Re={};Re[Js]=Re[er]=Re[zs]=Re[Nr]=Re[Er]=Re[Lr]=Re[Mr]=Re[Or]=Re[Pr]=!0,Re[Qe]=Re[Rt]=Re[Ft]=Re[Vt]=Re[ys]=Re[Zt]=Re[Xs]=Re[Cs]=Re[bt]=Re[Gt]=Re[qt]=Re[Ss]=Re[xt]=Re[Jt]=Re[ms]=!1;var Pe={};Pe[Qe]=Pe[Rt]=Pe[Ft]=Pe[ys]=Pe[Vt]=Pe[Zt]=Pe[Js]=Pe[er]=Pe[zs]=Pe[Nr]=Pe[Er]=Pe[bt]=Pe[Gt]=Pe[qt]=Pe[Ss]=Pe[xt]=Pe[Jt]=Pe[Zs]=Pe[Lr]=Pe[Mr]=Pe[Or]=Pe[Pr]=!0,Pe[Xs]=Pe[Cs]=Pe[ms]=!1;var u_={À:"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"},m_={"&":"&","<":"<",">":">",'"':""","'":"'"},y_={"&":"&","<":"<",">":">",""":'"',"'":"'"},__={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},f_=parseFloat,g_=parseInt,Ql=typeof fr=="object"&&fr&&fr.Object===Object&&fr,b_=typeof self=="object"&&self&&self.Object===Object&&self,et=Ql||b_||Function("return this")(),pi=s&&!s.nodeType&&s,Ns=pi&&!0&&a&&!a.nodeType&&a,Zl=Ns&&Ns.exports===pi,di=Zl&&Ql.process,Ct=function(){try{var k=Ns&&Ns.require&&Ns.require("util").types;return k||di&&di.binding&&di.binding("util")}catch{}}(),Jl=Ct&&Ct.isArrayBuffer,ec=Ct&&Ct.isDate,tc=Ct&&Ct.isMap,sc=Ct&&Ct.isRegExp,rc=Ct&&Ct.isSet,ac=Ct&&Ct.isTypedArray;function ht(k,P,E){switch(E.length){case 0:return k.call(P);case 1:return k.call(P,E[0]);case 2:return k.call(P,E[0],E[1]);case 3:return k.call(P,E[0],E[1],E[2])}return k.apply(P,E)}function x_(k,P,E,J){for(var me=-1,qe=k==null?0:k.length;++me<qe;){var Xe=k[me];P(J,Xe,E(Xe),k)}return J}function St(k,P){for(var E=-1,J=k==null?0:k.length;++E<J&&P(k[E],E,k)!==!1;);return k}function h_(k,P){for(var E=k==null?0:k.length;E--&&P(k[E],E,k)!==!1;);return k}function nc(k,P){for(var E=-1,J=k==null?0:k.length;++E<J;)if(!P(k[E],E,k))return!1;return!0}function _s(k,P){for(var E=-1,J=k==null?0:k.length,me=0,qe=[];++E<J;){var Xe=k[E];P(Xe,E,k)&&(qe[me++]=Xe)}return qe}function Pa(k,P){var E=k==null?0:k.length;return!!E&&rr(k,P,0)>-1}function ui(k,P,E){for(var J=-1,me=k==null?0:k.length;++J<me;)if(E(P,k[J]))return!0;return!1}function Fe(k,P){for(var E=-1,J=k==null?0:k.length,me=Array(J);++E<J;)me[E]=P(k[E],E,k);return me}function fs(k,P){for(var E=-1,J=P.length,me=k.length;++E<J;)k[me+E]=P[E];return k}function mi(k,P,E,J){var me=-1,qe=k==null?0:k.length;for(J&&qe&&(E=k[++me]);++me<qe;)E=P(E,k[me],me,k);return E}function w_(k,P,E,J){var me=k==null?0:k.length;for(J&&me&&(E=k[--me]);me--;)E=P(E,k[me],me,k);return E}function yi(k,P){for(var E=-1,J=k==null?0:k.length;++E<J;)if(P(k[E],E,k))return!0;return!1}var v_=_i("length");function T_(k){return k.split("")}function k_(k){return k.match(j)||[]}function ic(k,P,E){var J;return E(k,function(me,qe,Xe){if(P(me,qe,Xe))return J=qe,!1}),J}function Ra(k,P,E,J){for(var me=k.length,qe=E+(J?1:-1);J?qe--:++qe<me;)if(P(k[qe],qe,k))return qe;return-1}function rr(k,P,E){return P===P?O_(k,P,E):Ra(k,oc,E)}function D_(k,P,E,J){for(var me=E-1,qe=k.length;++me<qe;)if(J(k[me],P))return me;return-1}function oc(k){return k!==k}function lc(k,P){var E=k==null?0:k.length;return E?gi(k,P)/E:Ee}function _i(k){return function(P){return P==null?r:P[k]}}function fi(k){return function(P){return k==null?r:k[P]}}function cc(k,P,E,J,me){return me(k,function(qe,Xe,Le){E=J?(J=!1,qe):P(E,qe,Xe,Le)}),E}function I_(k,P){var E=k.length;for(k.sort(P);E--;)k[E]=k[E].value;return k}function gi(k,P){for(var E,J=-1,me=k.length;++J<me;){var qe=P(k[J]);qe!==r&&(E=E===r?qe:E+qe)}return E}function bi(k,P){for(var E=-1,J=Array(k);++E<k;)J[E]=P(E);return J}function A_(k,P){return Fe(P,function(E){return[E,k[E]]})}function pc(k){return k&&k.slice(0,yc(k)+1).replace(Ur,"")}function wt(k){return function(P){return k(P)}}function xi(k,P){return Fe(P,function(E){return k[E]})}function $r(k,P){return k.has(P)}function dc(k,P){for(var E=-1,J=k.length;++E<J&&rr(P,k[E],0)>-1;);return E}function uc(k,P){for(var E=k.length;E--&&rr(P,k[E],0)>-1;);return E}function q_(k,P){for(var E=k.length,J=0;E--;)k[E]===P&&++J;return J}var C_=fi(u_),S_=fi(m_);function z_(k){return"\\"+__[k]}function N_(k,P){return k==null?r:k[P]}function ar(k){return l_.test(k)}function E_(k){return c_.test(k)}function L_(k){for(var P,E=[];!(P=k.next()).done;)E.push(P.value);return E}function hi(k){var P=-1,E=Array(k.size);return k.forEach(function(J,me){E[++P]=[me,J]}),E}function mc(k,P){return function(E){return k(P(E))}}function gs(k,P){for(var E=-1,J=k.length,me=0,qe=[];++E<J;){var Xe=k[E];(Xe===P||Xe===g)&&(k[E]=g,qe[me++]=E)}return qe}function Fa(k){var P=-1,E=Array(k.size);return k.forEach(function(J){E[++P]=J}),E}function M_(k){var P=-1,E=Array(k.size);return k.forEach(function(J){E[++P]=[J,J]}),E}function O_(k,P,E){for(var J=E-1,me=k.length;++J<me;)if(k[J]===P)return J;return-1}function P_(k,P,E){for(var J=E+1;J--;)if(k[J]===P)return J;return J}function nr(k){return ar(k)?F_(k):v_(k)}function Ut(k){return ar(k)?B_(k):T_(k)}function yc(k){for(var P=k.length;P--&&si.test(k.charAt(P)););return P}var R_=fi(y_);function F_(k){for(var P=ci.lastIndex=0;ci.test(k);)++P;return P}function B_(k){return k.match(ci)||[]}function U_(k){return k.match(o_)||[]}var $_=function k(P){P=P==null?et:ir.defaults(et.Object(),P,ir.pick(et,p_));var E=P.Array,J=P.Date,me=P.Error,qe=P.Function,Xe=P.Math,Le=P.Object,wi=P.RegExp,K_=P.String,zt=P.TypeError,Ba=E.prototype,j_=qe.prototype,or=Le.prototype,Ua=P["__core-js_shared__"],$a=j_.toString,ze=or.hasOwnProperty,H_=0,_c=function(){var e=/[^.]+$/.exec(Ua&&Ua.keys&&Ua.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ka=or.toString,W_=$a.call(Le),V_=et._,G_=wi("^"+$a.call(ze).replace(Br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ja=Zl?P.Buffer:r,bs=P.Symbol,Ha=P.Uint8Array,fc=ja?ja.allocUnsafe:r,Wa=mc(Le.getPrototypeOf,Le),gc=Le.create,bc=or.propertyIsEnumerable,Va=Ba.splice,xc=bs?bs.isConcatSpreadable:r,Kr=bs?bs.iterator:r,Es=bs?bs.toStringTag:r,Ga=function(){try{var e=Rs(Le,"defineProperty");return e({},"",{}),e}catch{}}(),X_=P.clearTimeout!==et.clearTimeout&&P.clearTimeout,Y_=J&&J.now!==et.Date.now&&J.now,Q_=P.setTimeout!==et.setTimeout&&P.setTimeout,Xa=Xe.ceil,Ya=Xe.floor,vi=Le.getOwnPropertySymbols,Z_=ja?ja.isBuffer:r,hc=P.isFinite,J_=Ba.join,ef=mc(Le.keys,Le),Ye=Xe.max,rt=Xe.min,tf=J.now,sf=P.parseInt,wc=Xe.random,rf=Ba.reverse,Ti=Rs(P,"DataView"),jr=Rs(P,"Map"),ki=Rs(P,"Promise"),lr=Rs(P,"Set"),Hr=Rs(P,"WeakMap"),Wr=Rs(Le,"create"),Qa=Hr&&new Hr,cr={},af=Fs(Ti),nf=Fs(jr),of=Fs(ki),lf=Fs(lr),cf=Fs(Hr),Za=bs?bs.prototype:r,Vr=Za?Za.valueOf:r,vc=Za?Za.toString:r;function y(e){if(He(e)&&!ye(e)&&!(e instanceof ke)){if(e instanceof Nt)return e;if(ze.call(e,"__wrapped__"))return Tp(e)}return new Nt(e)}var pr=function(){function e(){}return function(t){if(!Ue(t))return{};if(gc)return gc(t);e.prototype=t;var i=new e;return e.prototype=r,i}}();function Ja(){}function Nt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}y.templateSettings={escape:ei,evaluate:Sa,interpolate:za,variable:"",imports:{_:y}},y.prototype=Ja.prototype,y.prototype.constructor=y,Nt.prototype=pr(Ja.prototype),Nt.prototype.constructor=Nt;function ke(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function pf(){var e=new ke(this.__wrapped__);return e.__actions__=mt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=mt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=mt(this.__views__),e}function df(){if(this.__filtered__){var e=new ke(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function uf(){var e=this.__wrapped__.value(),t=this.__dir__,i=ye(e),p=t<0,d=i?e.length:0,f=kg(0,d,this.__views__),b=f.start,v=f.end,I=v-b,F=p?v:b-1,B=this.__iteratees__,$=B.length,X=0,se=rt(I,this.__takeCount__);if(!i||!p&&d==I&&se==I)return Wc(e,this.__actions__);var ie=[];e:for(;I--&&X<se;){F+=t;for(var be=-1,oe=e[F];++be<$;){var ve=B[be],De=ve.iteratee,kt=ve.type,ct=De(oe);if(kt==Y)oe=ct;else if(!ct){if(kt==ne)continue e;break e}}ie[X++]=oe}return ie}ke.prototype=pr(Ja.prototype),ke.prototype.constructor=ke;function Ls(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var p=e[t];this.set(p[0],p[1])}}function mf(){this.__data__=Wr?Wr(null):{},this.size=0}function yf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function _f(e){var t=this.__data__;if(Wr){var i=t[e];return i===m?r:i}return ze.call(t,e)?t[e]:r}function ff(e){var t=this.__data__;return Wr?t[e]!==r:ze.call(t,e)}function gf(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Wr&&t===r?m:t,this}Ls.prototype.clear=mf,Ls.prototype.delete=yf,Ls.prototype.get=_f,Ls.prototype.has=ff,Ls.prototype.set=gf;function ts(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var p=e[t];this.set(p[0],p[1])}}function bf(){this.__data__=[],this.size=0}function xf(e){var t=this.__data__,i=en(t,e);if(i<0)return!1;var p=t.length-1;return i==p?t.pop():Va.call(t,i,1),--this.size,!0}function hf(e){var t=this.__data__,i=en(t,e);return i<0?r:t[i][1]}function wf(e){return en(this.__data__,e)>-1}function vf(e,t){var i=this.__data__,p=en(i,e);return p<0?(++this.size,i.push([e,t])):i[p][1]=t,this}ts.prototype.clear=bf,ts.prototype.delete=xf,ts.prototype.get=hf,ts.prototype.has=wf,ts.prototype.set=vf;function ss(e){var t=-1,i=e==null?0:e.length;for(this.clear();++t<i;){var p=e[t];this.set(p[0],p[1])}}function Tf(){this.size=0,this.__data__={hash:new Ls,map:new(jr||ts),string:new Ls}}function kf(e){var t=mn(this,e).delete(e);return this.size-=t?1:0,t}function Df(e){return mn(this,e).get(e)}function If(e){return mn(this,e).has(e)}function Af(e,t){var i=mn(this,e),p=i.size;return i.set(e,t),this.size+=i.size==p?0:1,this}ss.prototype.clear=Tf,ss.prototype.delete=kf,ss.prototype.get=Df,ss.prototype.has=If,ss.prototype.set=Af;function Ms(e){var t=-1,i=e==null?0:e.length;for(this.__data__=new ss;++t<i;)this.add(e[t])}function qf(e){return this.__data__.set(e,m),this}function Cf(e){return this.__data__.has(e)}Ms.prototype.add=Ms.prototype.push=qf,Ms.prototype.has=Cf;function $t(e){var t=this.__data__=new ts(e);this.size=t.size}function Sf(){this.__data__=new ts,this.size=0}function zf(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}function Nf(e){return this.__data__.get(e)}function Ef(e){return this.__data__.has(e)}function Lf(e,t){var i=this.__data__;if(i instanceof ts){var p=i.__data__;if(!jr||p.length<o-1)return p.push([e,t]),this.size=++i.size,this;i=this.__data__=new ss(p)}return i.set(e,t),this.size=i.size,this}$t.prototype.clear=Sf,$t.prototype.delete=zf,$t.prototype.get=Nf,$t.prototype.has=Ef,$t.prototype.set=Lf;function Tc(e,t){var i=ye(e),p=!i&&Bs(e),d=!i&&!p&&Ts(e),f=!i&&!p&&!d&&yr(e),b=i||p||d||f,v=b?bi(e.length,K_):[],I=v.length;for(var F in e)(t||ze.call(e,F))&&!(b&&(F=="length"||d&&(F=="offset"||F=="parent")||f&&(F=="buffer"||F=="byteLength"||F=="byteOffset")||is(F,I)))&&v.push(F);return v}function kc(e){var t=e.length;return t?e[Mi(0,t-1)]:r}function Mf(e,t){return yn(mt(e),Os(t,0,e.length))}function Of(e){return yn(mt(e))}function Di(e,t,i){(i!==r&&!Kt(e[t],i)||i===r&&!(t in e))&&rs(e,t,i)}function Gr(e,t,i){var p=e[t];(!(ze.call(e,t)&&Kt(p,i))||i===r&&!(t in e))&&rs(e,t,i)}function en(e,t){for(var i=e.length;i--;)if(Kt(e[i][0],t))return i;return-1}function Pf(e,t,i,p){return xs(e,function(d,f,b){t(p,d,i(d),b)}),p}function Dc(e,t){return e&&Yt(t,Ze(t),e)}function Rf(e,t){return e&&Yt(t,_t(t),e)}function rs(e,t,i){t=="__proto__"&&Ga?Ga(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function Ii(e,t){for(var i=-1,p=t.length,d=E(p),f=e==null;++i<p;)d[i]=f?r:io(e,t[i]);return d}function Os(e,t,i){return e===e&&(i!==r&&(e=e<=i?e:i),t!==r&&(e=e>=t?e:t)),e}function Et(e,t,i,p,d,f){var b,v=t&x,I=t&h,F=t&D;if(i&&(b=d?i(e,p,d,f):i(e)),b!==r)return b;if(!Ue(e))return e;var B=ye(e);if(B){if(b=Ig(e),!v)return mt(e,b)}else{var $=at(e),X=$==Cs||$==Ia;if(Ts(e))return Xc(e,v);if($==qt||$==Qe||X&&!d){if(b=I||X?{}:yp(e),!v)return I?_g(e,Rf(b,e)):yg(e,Dc(b,e))}else{if(!Pe[$])return d?e:{};b=Ag(e,$,v)}}f||(f=new $t);var se=f.get(e);if(se)return se;f.set(e,b),Kp(e)?e.forEach(function(oe){b.add(Et(oe,t,i,oe,e,f))}):Up(e)&&e.forEach(function(oe,ve){b.set(ve,Et(oe,t,i,ve,e,f))});var ie=F?I?Wi:Hi:I?_t:Ze,be=B?r:ie(e);return St(be||e,function(oe,ve){be&&(ve=oe,oe=e[ve]),Gr(b,ve,Et(oe,t,i,ve,e,f))}),b}function Ff(e){var t=Ze(e);return function(i){return Ic(i,e,t)}}function Ic(e,t,i){var p=i.length;if(e==null)return!p;for(e=Le(e);p--;){var d=i[p],f=t[d],b=e[d];if(b===r&&!(d in e)||!f(b))return!1}return!0}function Ac(e,t,i){if(typeof e!="function")throw new zt(c);return ta(function(){e.apply(r,i)},t)}function Xr(e,t,i,p){var d=-1,f=Pa,b=!0,v=e.length,I=[],F=t.length;if(!v)return I;i&&(t=Fe(t,wt(i))),p?(f=ui,b=!1):t.length>=o&&(f=$r,b=!1,t=new Ms(t));e:for(;++d<v;){var B=e[d],$=i==null?B:i(B);if(B=p||B!==0?B:0,b&&$===$){for(var X=F;X--;)if(t[X]===$)continue e;I.push(B)}else f(t,$,p)||I.push(B)}return I}var xs=ep(Xt),qc=ep(qi,!0);function Bf(e,t){var i=!0;return xs(e,function(p,d,f){return i=!!t(p,d,f),i}),i}function tn(e,t,i){for(var p=-1,d=e.length;++p<d;){var f=e[p],b=t(f);if(b!=null&&(v===r?b===b&&!Tt(b):i(b,v)))var v=b,I=f}return I}function Uf(e,t,i,p){var d=e.length;for(i=fe(i),i<0&&(i=-i>d?0:d+i),p=p===r||p>d?d:fe(p),p<0&&(p+=d),p=i>p?0:Hp(p);i<p;)e[i++]=t;return e}function Cc(e,t){var i=[];return xs(e,function(p,d,f){t(p,d,f)&&i.push(p)}),i}function tt(e,t,i,p,d){var f=-1,b=e.length;for(i||(i=Cg),d||(d=[]);++f<b;){var v=e[f];t>0&&i(v)?t>1?tt(v,t-1,i,p,d):fs(d,v):p||(d[d.length]=v)}return d}var Ai=tp(),Sc=tp(!0);function Xt(e,t){return e&&Ai(e,t,Ze)}function qi(e,t){return e&&Sc(e,t,Ze)}function sn(e,t){return _s(t,function(i){return os(e[i])})}function Ps(e,t){t=ws(t,e);for(var i=0,p=t.length;e!=null&&i<p;)e=e[Qt(t[i++])];return i&&i==p?e:r}function zc(e,t,i){var p=t(e);return ye(e)?p:fs(p,i(e))}function ot(e){return e==null?e===r?Zn:Ys:Es&&Es in Le(e)?Tg(e):Og(e)}function Ci(e,t){return e>t}function $f(e,t){return e!=null&&ze.call(e,t)}function Kf(e,t){return e!=null&&t in Le(e)}function jf(e,t,i){return e>=rt(t,i)&&e<Ye(t,i)}function Si(e,t,i){for(var p=i?ui:Pa,d=e[0].length,f=e.length,b=f,v=E(f),I=1/0,F=[];b--;){var B=e[b];b&&t&&(B=Fe(B,wt(t))),I=rt(B.length,I),v[b]=!i&&(t||d>=120&&B.length>=120)?new Ms(b&&B):r}B=e[0];var $=-1,X=v[0];e:for(;++$<d&&F.length<I;){var se=B[$],ie=t?t(se):se;if(se=i||se!==0?se:0,!(X?$r(X,ie):p(F,ie,i))){for(b=f;--b;){var be=v[b];if(!(be?$r(be,ie):p(e[b],ie,i)))continue e}X&&X.push(ie),F.push(se)}}return F}function Hf(e,t,i,p){return Xt(e,function(d,f,b){t(p,i(d),f,b)}),p}function Yr(e,t,i){t=ws(t,e),e=bp(e,t);var p=e==null?e:e[Qt(Mt(t))];return p==null?r:ht(p,e,i)}function Nc(e){return He(e)&&ot(e)==Qe}function Wf(e){return He(e)&&ot(e)==Ft}function Vf(e){return He(e)&&ot(e)==Zt}function Qr(e,t,i,p,d){return e===t?!0:e==null||t==null||!He(e)&&!He(t)?e!==e&&t!==t:Gf(e,t,i,p,Qr,d)}function Gf(e,t,i,p,d,f){var b=ye(e),v=ye(t),I=b?Rt:at(e),F=v?Rt:at(t);I=I==Qe?qt:I,F=F==Qe?qt:F;var B=I==qt,$=F==qt,X=I==F;if(X&&Ts(e)){if(!Ts(t))return!1;b=!0,B=!1}if(X&&!B)return f||(f=new $t),b||yr(e)?dp(e,t,i,p,d,f):wg(e,t,I,i,p,d,f);if(!(i&S)){var se=B&&ze.call(e,"__wrapped__"),ie=$&&ze.call(t,"__wrapped__");if(se||ie){var be=se?e.value():e,oe=ie?t.value():t;return f||(f=new $t),d(be,oe,i,p,f)}}return X?(f||(f=new $t),vg(e,t,i,p,d,f)):!1}function Xf(e){return He(e)&&at(e)==bt}function zi(e,t,i,p){var d=i.length,f=d,b=!p;if(e==null)return!f;for(e=Le(e);d--;){var v=i[d];if(b&&v[2]?v[1]!==e[v[0]]:!(v[0]in e))return!1}for(;++d<f;){v=i[d];var I=v[0],F=e[I],B=v[1];if(b&&v[2]){if(F===r&&!(I in e))return!1}else{var $=new $t;if(p)var X=p(F,B,I,e,t,$);if(!(X===r?Qr(B,F,S|R,p,$):X))return!1}}return!0}function Ec(e){if(!Ue(e)||zg(e))return!1;var t=os(e)?G_:Je;return t.test(Fs(e))}function Yf(e){return He(e)&&ot(e)==Ss}function Qf(e){return He(e)&&at(e)==xt}function Zf(e){return He(e)&&hn(e.length)&&!!Re[ot(e)]}function Lc(e){return typeof e=="function"?e:e==null?ft:typeof e=="object"?ye(e)?Pc(e[0],e[1]):Oc(e):sd(e)}function Ni(e){if(!ea(e))return ef(e);var t=[];for(var i in Le(e))ze.call(e,i)&&i!="constructor"&&t.push(i);return t}function Jf(e){if(!Ue(e))return Mg(e);var t=ea(e),i=[];for(var p in e)p=="constructor"&&(t||!ze.call(e,p))||i.push(p);return i}function Ei(e,t){return e<t}function Mc(e,t){var i=-1,p=yt(e)?E(e.length):[];return xs(e,function(d,f,b){p[++i]=t(d,f,b)}),p}function Oc(e){var t=Gi(e);return t.length==1&&t[0][2]?fp(t[0][0],t[0][1]):function(i){return i===e||zi(i,e,t)}}function Pc(e,t){return Yi(e)&&_p(t)?fp(Qt(e),t):function(i){var p=io(i,e);return p===r&&p===t?oo(i,e):Qr(t,p,S|R)}}function rn(e,t,i,p,d){e!==t&&Ai(t,function(f,b){if(d||(d=new $t),Ue(f))eg(e,t,b,i,rn,p,d);else{var v=p?p(Zi(e,b),f,b+"",e,t,d):r;v===r&&(v=f),Di(e,b,v)}},_t)}function eg(e,t,i,p,d,f,b){var v=Zi(e,i),I=Zi(t,i),F=b.get(I);if(F){Di(e,i,F);return}var B=f?f(v,I,i+"",e,t,b):r,$=B===r;if($){var X=ye(I),se=!X&&Ts(I),ie=!X&&!se&&yr(I);B=I,X||se||ie?ye(v)?B=v:We(v)?B=mt(v):se?($=!1,B=Xc(I,!0)):ie?($=!1,B=Yc(I,!0)):B=[]:sa(I)||Bs(I)?(B=v,Bs(v)?B=Wp(v):(!Ue(v)||os(v))&&(B=yp(I))):$=!1}$&&(b.set(I,B),d(B,I,p,f,b),b.delete(I)),Di(e,i,B)}function Rc(e,t){var i=e.length;if(i)return t+=t<0?i:0,is(t,i)?e[t]:r}function Fc(e,t,i){t.length?t=Fe(t,function(f){return ye(f)?function(b){return Ps(b,f.length===1?f[0]:f)}:f}):t=[ft];var p=-1;t=Fe(t,wt(ae()));var d=Mc(e,function(f,b,v){var I=Fe(t,function(F){return F(f)});return{criteria:I,index:++p,value:f}});return I_(d,function(f,b){return mg(f,b,i)})}function tg(e,t){return Bc(e,t,function(i,p){return oo(e,p)})}function Bc(e,t,i){for(var p=-1,d=t.length,f={};++p<d;){var b=t[p],v=Ps(e,b);i(v,b)&&Zr(f,ws(b,e),v)}return f}function sg(e){return function(t){return Ps(t,e)}}function Li(e,t,i,p){var d=p?D_:rr,f=-1,b=t.length,v=e;for(e===t&&(t=mt(t)),i&&(v=Fe(e,wt(i)));++f<b;)for(var I=0,F=t[f],B=i?i(F):F;(I=d(v,B,I,p))>-1;)v!==e&&Va.call(v,I,1),Va.call(e,I,1);return e}function Uc(e,t){for(var i=e?t.length:0,p=i-1;i--;){var d=t[i];if(i==p||d!==f){var f=d;is(d)?Va.call(e,d,1):Ri(e,d)}}return e}function Mi(e,t){return e+Ya(wc()*(t-e+1))}function rg(e,t,i,p){for(var d=-1,f=Ye(Xa((t-e)/(i||1)),0),b=E(f);f--;)b[p?f:++d]=e,e+=i;return b}function Oi(e,t){var i="";if(!e||t<1||t>pe)return i;do t%2&&(i+=e),t=Ya(t/2),t&&(e+=e);while(t);return i}function he(e,t){return Ji(gp(e,t,ft),e+"")}function ag(e){return kc(_r(e))}function ng(e,t){var i=_r(e);return yn(i,Os(t,0,i.length))}function Zr(e,t,i,p){if(!Ue(e))return e;t=ws(t,e);for(var d=-1,f=t.length,b=f-1,v=e;v!=null&&++d<f;){var I=Qt(t[d]),F=i;if(I==="__proto__"||I==="constructor"||I==="prototype")return e;if(d!=b){var B=v[I];F=p?p(B,I,v):r,F===r&&(F=Ue(B)?B:is(t[d+1])?[]:{})}Gr(v,I,F),v=v[I]}return e}var $c=Qa?function(e,t){return Qa.set(e,t),e}:ft,ig=Ga?function(e,t){return Ga(e,"toString",{configurable:!0,enumerable:!1,value:co(t),writable:!0})}:ft;function og(e){return yn(_r(e))}function Lt(e,t,i){var p=-1,d=e.length;t<0&&(t=-t>d?0:d+t),i=i>d?d:i,i<0&&(i+=d),d=t>i?0:i-t>>>0,t>>>=0;for(var f=E(d);++p<d;)f[p]=e[p+t];return f}function lg(e,t){var i;return xs(e,function(p,d,f){return i=t(p,d,f),!i}),!!i}function an(e,t,i){var p=0,d=e==null?p:e.length;if(typeof t=="number"&&t===t&&d<=Oe){for(;p<d;){var f=p+d>>>1,b=e[f];b!==null&&!Tt(b)&&(i?b<=t:b<t)?p=f+1:d=f}return d}return Pi(e,t,ft,i)}function Pi(e,t,i,p){var d=0,f=e==null?0:e.length;if(f===0)return 0;t=i(t);for(var b=t!==t,v=t===null,I=Tt(t),F=t===r;d<f;){var B=Ya((d+f)/2),$=i(e[B]),X=$!==r,se=$===null,ie=$===$,be=Tt($);if(b)var oe=p||ie;else F?oe=ie&&(p||X):v?oe=ie&&X&&(p||!se):I?oe=ie&&X&&!se&&(p||!be):se||be?oe=!1:oe=p?$<=t:$<t;oe?d=B+1:f=B}return rt(f,de)}function Kc(e,t){for(var i=-1,p=e.length,d=0,f=[];++i<p;){var b=e[i],v=t?t(b):b;if(!i||!Kt(v,I)){var I=v;f[d++]=b===0?0:b}}return f}function jc(e){return typeof e=="number"?e:Tt(e)?Ee:+e}function vt(e){if(typeof e=="string")return e;if(ye(e))return Fe(e,vt)+"";if(Tt(e))return vc?vc.call(e):"";var t=e+"";return t=="0"&&1/e==-xe?"-0":t}function hs(e,t,i){var p=-1,d=Pa,f=e.length,b=!0,v=[],I=v;if(i)b=!1,d=ui;else if(f>=o){var F=t?null:xg(e);if(F)return Fa(F);b=!1,d=$r,I=new Ms}else I=t?[]:v;e:for(;++p<f;){var B=e[p],$=t?t(B):B;if(B=i||B!==0?B:0,b&&$===$){for(var X=I.length;X--;)if(I[X]===$)continue e;t&&I.push($),v.push(B)}else d(I,$,i)||(I!==v&&I.push($),v.push(B))}return v}function Ri(e,t){return t=ws(t,e),e=bp(e,t),e==null||delete e[Qt(Mt(t))]}function Hc(e,t,i,p){return Zr(e,t,i(Ps(e,t)),p)}function nn(e,t,i,p){for(var d=e.length,f=p?d:-1;(p?f--:++f<d)&&t(e[f],f,e););return i?Lt(e,p?0:f,p?f+1:d):Lt(e,p?f+1:0,p?d:f)}function Wc(e,t){var i=e;return i instanceof ke&&(i=i.value()),mi(t,function(p,d){return d.func.apply(d.thisArg,fs([p],d.args))},i)}function Fi(e,t,i){var p=e.length;if(p<2)return p?hs(e[0]):[];for(var d=-1,f=E(p);++d<p;)for(var b=e[d],v=-1;++v<p;)v!=d&&(f[d]=Xr(f[d]||b,e[v],t,i));return hs(tt(f,1),t,i)}function Vc(e,t,i){for(var p=-1,d=e.length,f=t.length,b={};++p<d;){var v=p<f?t[p]:r;i(b,e[p],v)}return b}function Bi(e){return We(e)?e:[]}function Ui(e){return typeof e=="function"?e:ft}function ws(e,t){return ye(e)?e:Yi(e,t)?[e]:vp(Se(e))}var cg=he;function vs(e,t,i){var p=e.length;return i=i===r?p:i,!t&&i>=p?e:Lt(e,t,i)}var Gc=X_||function(e){return et.clearTimeout(e)};function Xc(e,t){if(t)return e.slice();var i=e.length,p=fc?fc(i):new e.constructor(i);return e.copy(p),p}function $i(e){var t=new e.constructor(e.byteLength);return new Ha(t).set(new Ha(e)),t}function pg(e,t){var i=t?$i(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}function dg(e){var t=new e.constructor(e.source,Ce.exec(e));return t.lastIndex=e.lastIndex,t}function ug(e){return Vr?Le(Vr.call(e)):{}}function Yc(e,t){var i=t?$i(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Qc(e,t){if(e!==t){var i=e!==r,p=e===null,d=e===e,f=Tt(e),b=t!==r,v=t===null,I=t===t,F=Tt(t);if(!v&&!F&&!f&&e>t||f&&b&&I&&!v&&!F||p&&b&&I||!i&&I||!d)return 1;if(!p&&!f&&!F&&e<t||F&&i&&d&&!p&&!f||v&&i&&d||!b&&d||!I)return-1}return 0}function mg(e,t,i){for(var p=-1,d=e.criteria,f=t.criteria,b=d.length,v=i.length;++p<b;){var I=Qc(d[p],f[p]);if(I){if(p>=v)return I;var F=i[p];return I*(F=="desc"?-1:1)}}return e.index-t.index}function Zc(e,t,i,p){for(var d=-1,f=e.length,b=i.length,v=-1,I=t.length,F=Ye(f-b,0),B=E(I+F),$=!p;++v<I;)B[v]=t[v];for(;++d<b;)($||d<f)&&(B[i[d]]=e[d]);for(;F--;)B[v++]=e[d++];return B}function Jc(e,t,i,p){for(var d=-1,f=e.length,b=-1,v=i.length,I=-1,F=t.length,B=Ye(f-v,0),$=E(B+F),X=!p;++d<B;)$[d]=e[d];for(var se=d;++I<F;)$[se+I]=t[I];for(;++b<v;)(X||d<f)&&($[se+i[b]]=e[d++]);return $}function mt(e,t){var i=-1,p=e.length;for(t||(t=E(p));++i<p;)t[i]=e[i];return t}function Yt(e,t,i,p){var d=!i;i||(i={});for(var f=-1,b=t.length;++f<b;){var v=t[f],I=p?p(i[v],e[v],v,i,e):r;I===r&&(I=e[v]),d?rs(i,v,I):Gr(i,v,I)}return i}function yg(e,t){return Yt(e,Xi(e),t)}function _g(e,t){return Yt(e,up(e),t)}function on(e,t){return function(i,p){var d=ye(i)?x_:Pf,f=t?t():{};return d(i,e,ae(p,2),f)}}function dr(e){return he(function(t,i){var p=-1,d=i.length,f=d>1?i[d-1]:r,b=d>2?i[2]:r;for(f=e.length>3&&typeof f=="function"?(d--,f):r,b&<(i[0],i[1],b)&&(f=d<3?r:f,d=1),t=Le(t);++p<d;){var v=i[p];v&&e(t,v,p,f)}return t})}function ep(e,t){return function(i,p){if(i==null)return i;if(!yt(i))return e(i,p);for(var d=i.length,f=t?d:-1,b=Le(i);(t?f--:++f<d)&&p(b[f],f,b)!==!1;);return i}}function tp(e){return function(t,i,p){for(var d=-1,f=Le(t),b=p(t),v=b.length;v--;){var I=b[e?v:++d];if(i(f[I],I,f)===!1)break}return t}}function fg(e,t,i){var p=t&U,d=Jr(e);function f(){var b=this&&this!==et&&this instanceof f?d:e;return b.apply(p?i:this,arguments)}return f}function sp(e){return function(t){t=Se(t);var i=ar(t)?Ut(t):r,p=i?i[0]:t.charAt(0),d=i?vs(i,1).join(""):t.slice(1);return p[e]()+d}}function ur(e){return function(t){return mi(ed(Jp(t).replace(n_,"")),e,"")}}function Jr(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 i=pr(e.prototype),p=e.apply(i,t);return Ue(p)?p:i}}function gg(e,t,i){var p=Jr(e);function d(){for(var f=arguments.length,b=E(f),v=f,I=mr(d);v--;)b[v]=arguments[v];var F=f<3&&b[0]!==I&&b[f-1]!==I?[]:gs(b,I);if(f-=F.length,f<i)return op(e,t,ln,d.placeholder,r,b,F,r,r,i-f);var B=this&&this!==et&&this instanceof d?p:e;return ht(B,this,b)}return d}function rp(e){return function(t,i,p){var d=Le(t);if(!yt(t)){var f=ae(i,3);t=Ze(t),i=function(v){return f(d[v],v,d)}}var b=e(t,i,p);return b>-1?d[f?t[b]:b]:r}}function ap(e){return ns(function(t){var i=t.length,p=i,d=Nt.prototype.thru;for(e&&t.reverse();p--;){var f=t[p];if(typeof f!="function")throw new zt(c);if(d&&!b&&un(f)=="wrapper")var b=new Nt([],!0)}for(p=b?p:i;++p<i;){f=t[p];var v=un(f),I=v=="wrapper"?Vi(f):r;I&&Qi(I[0])&&I[1]==(z|re|Q|V)&&!I[4].length&&I[9]==1?b=b[un(I[0])].apply(b,I[3]):b=f.length==1&&Qi(f)?b[v]():b.thru(f)}return function(){var F=arguments,B=F[0];if(b&&F.length==1&&ye(B))return b.plant(B).value();for(var $=0,X=i?t[$].apply(this,F):B;++$<i;)X=t[$].call(this,X);return X}})}function ln(e,t,i,p,d,f,b,v,I,F){var B=t&z,$=t&U,X=t&K,se=t&(re|W),ie=t&q,be=X?r:Jr(e);function oe(){for(var ve=arguments.length,De=E(ve),kt=ve;kt--;)De[kt]=arguments[kt];if(se)var ct=mr(oe),Dt=q_(De,ct);if(p&&(De=Zc(De,p,d,se)),f&&(De=Jc(De,f,b,se)),ve-=Dt,se&&ve<F){var Ve=gs(De,ct);return op(e,t,ln,oe.placeholder,i,De,Ve,v,I,F-ve)}var jt=$?i:this,cs=X?jt[e]:e;return ve=De.length,v?De=Pg(De,v):ie&&ve>1&&De.reverse(),B&&I<ve&&(De.length=I),this&&this!==et&&this instanceof oe&&(cs=be||Jr(cs)),cs.apply(jt,De)}return oe}function np(e,t){return function(i,p){return Hf(i,e,t(p),{})}}function cn(e,t){return function(i,p){var d;if(i===r&&p===r)return t;if(i!==r&&(d=i),p!==r){if(d===r)return p;typeof i=="string"||typeof p=="string"?(i=vt(i),p=vt(p)):(i=jc(i),p=jc(p)),d=e(i,p)}return d}}function Ki(e){return ns(function(t){return t=Fe(t,wt(ae())),he(function(i){var p=this;return e(t,function(d){return ht(d,p,i)})})})}function pn(e,t){t=t===r?" ":vt(t);var i=t.length;if(i<2)return i?Oi(t,e):t;var p=Oi(t,Xa(e/nr(t)));return ar(t)?vs(Ut(p),0,e).join(""):p.slice(0,e)}function bg(e,t,i,p){var d=t&U,f=Jr(e);function b(){for(var v=-1,I=arguments.length,F=-1,B=p.length,$=E(B+I),X=this&&this!==et&&this instanceof b?f:e;++F<B;)$[F]=p[F];for(;I--;)$[F++]=arguments[++v];return ht(X,d?i:this,$)}return b}function ip(e){return function(t,i,p){return p&&typeof p!="number"&<(t,i,p)&&(i=p=r),t=ls(t),i===r?(i=t,t=0):i=ls(i),p=p===r?t<i?1:-1:ls(p),rg(t,i,p,e)}}function dn(e){return function(t,i){return typeof t=="string"&&typeof i=="string"||(t=Ot(t),i=Ot(i)),e(t,i)}}function op(e,t,i,p,d,f,b,v,I,F){var B=t&re,$=B?b:r,X=B?r:b,se=B?f:r,ie=B?r:f;t|=B?Q:C,t&=~(B?C:Q),t&H||(t&=~(U|K));var be=[e,t,d,se,$,ie,X,v,I,F],oe=i.apply(r,be);return Qi(e)&&xp(oe,be),oe.placeholder=p,hp(oe,e,t)}function ji(e){var t=Xe[e];return function(i,p){if(i=Ot(i),p=p==null?0:rt(fe(p),292),p&&hc(i)){var d=(Se(i)+"e").split("e"),f=t(d[0]+"e"+(+d[1]+p));return d=(Se(f)+"e").split("e"),+(d[0]+"e"+(+d[1]-p))}return t(i)}}var xg=lr&&1/Fa(new lr([,-0]))[1]==xe?function(e){return new lr(e)}:mo;function lp(e){return function(t){var i=at(t);return i==bt?hi(t):i==xt?M_(t):A_(t,e(t))}}function as(e,t,i,p,d,f,b,v){var I=t&K;if(!I&&typeof e!="function")throw new zt(c);var F=p?p.length:0;if(F||(t&=~(Q|C),p=d=r),b=b===r?b:Ye(fe(b),0),v=v===r?v:fe(v),F-=d?d.length:0,t&C){var B=p,$=d;p=d=r}var X=I?r:Vi(e),se=[e,t,i,p,d,B,$,f,b,v];if(X&&Lg(se,X),e=se[0],t=se[1],i=se[2],p=se[3],d=se[4],v=se[9]=se[9]===r?I?0:e.length:Ye(se[9]-F,0),!v&&t&(re|W)&&(t&=~(re|W)),!t||t==U)var ie=fg(e,t,i);else t==re||t==W?ie=gg(e,t,v):(t==Q||t==(U|Q))&&!d.length?ie=bg(e,t,i,p):ie=ln.apply(r,se);var be=X?$c:xp;return hp(be(ie,se),e,t)}function cp(e,t,i,p){return e===r||Kt(e,or[i])&&!ze.call(p,i)?t:e}function pp(e,t,i,p,d,f){return Ue(e)&&Ue(t)&&(f.set(t,e),rn(e,t,r,pp,f),f.delete(t)),e}function hg(e){return sa(e)?r:e}function dp(e,t,i,p,d,f){var b=i&S,v=e.length,I=t.length;if(v!=I&&!(b&&I>v))return!1;var F=f.get(e),B=f.get(t);if(F&&B)return F==t&&B==e;var $=-1,X=!0,se=i&R?new Ms:r;for(f.set(e,t),f.set(t,e);++$<v;){var ie=e[$],be=t[$];if(p)var oe=b?p(be,ie,$,t,e,f):p(ie,be,$,e,t,f);if(oe!==r){if(oe)continue;X=!1;break}if(se){if(!yi(t,function(ve,De){if(!$r(se,De)&&(ie===ve||d(ie,ve,i,p,f)))return se.push(De)})){X=!1;break}}else if(!(ie===be||d(ie,be,i,p,f))){X=!1;break}}return f.delete(e),f.delete(t),X}function wg(e,t,i,p,d,f,b){switch(i){case ys:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ft:return!(e.byteLength!=t.byteLength||!f(new Ha(e),new Ha(t)));case Vt:case Zt:case Gt:return Kt(+e,+t);case Xs:return e.name==t.name&&e.message==t.message;case Ss:case Jt:return e==t+"";case bt:var v=hi;case xt:var I=p&S;if(v||(v=Fa),e.size!=t.size&&!I)return!1;var F=b.get(e);if(F)return F==t;p|=R,b.set(e,t);var B=dp(v(e),v(t),p,d,f,b);return b.delete(e),B;case Zs:if(Vr)return Vr.call(e)==Vr.call(t)}return!1}function vg(e,t,i,p,d,f){var b=i&S,v=Hi(e),I=v.length,F=Hi(t),B=F.length;if(I!=B&&!b)return!1;for(var $=I;$--;){var X=v[$];if(!(b?X in t:ze.call(t,X)))return!1}var se=f.get(e),ie=f.get(t);if(se&&ie)return se==t&&ie==e;var be=!0;f.set(e,t),f.set(t,e);for(var oe=b;++$<I;){X=v[$];var ve=e[X],De=t[X];if(p)var kt=b?p(De,ve,X,t,e,f):p(ve,De,X,e,t,f);if(!(kt===r?ve===De||d(ve,De,i,p,f):kt)){be=!1;break}oe||(oe=X=="constructor")}if(be&&!oe){var ct=e.constructor,Dt=t.constructor;ct!=Dt&&"constructor"in e&&"constructor"in t&&!(typeof ct=="function"&&ct instanceof ct&&typeof Dt=="function"&&Dt instanceof Dt)&&(be=!1)}return f.delete(e),f.delete(t),be}function ns(e){return Ji(gp(e,r,Ip),e+"")}function Hi(e){return zc(e,Ze,Xi)}function Wi(e){return zc(e,_t,up)}var Vi=Qa?function(e){return Qa.get(e)}:mo;function un(e){for(var t=e.name+"",i=cr[t],p=ze.call(cr,t)?i.length:0;p--;){var d=i[p],f=d.func;if(f==null||f==e)return d.name}return t}function mr(e){var t=ze.call(y,"placeholder")?y:e;return t.placeholder}function ae(){var e=y.iteratee||po;return e=e===po?Lc:e,arguments.length?e(arguments[0],arguments[1]):e}function mn(e,t){var i=e.__data__;return Sg(t)?i[typeof t=="string"?"string":"hash"]:i.map}function Gi(e){for(var t=Ze(e),i=t.length;i--;){var p=t[i],d=e[p];t[i]=[p,d,_p(d)]}return t}function Rs(e,t){var i=N_(e,t);return Ec(i)?i:r}function Tg(e){var t=ze.call(e,Es),i=e[Es];try{e[Es]=r;var p=!0}catch{}var d=Ka.call(e);return p&&(t?e[Es]=i:delete e[Es]),d}var Xi=vi?function(e){return e==null?[]:(e=Le(e),_s(vi(e),function(t){return bc.call(e,t)}))}:yo,up=vi?function(e){for(var t=[];e;)fs(t,Xi(e)),e=Wa(e);return t}:yo,at=ot;(Ti&&at(new Ti(new ArrayBuffer(1)))!=ys||jr&&at(new jr)!=bt||ki&&at(ki.resolve())!=zr||lr&&at(new lr)!=xt||Hr&&at(new Hr)!=ms)&&(at=function(e){var t=ot(e),i=t==qt?e.constructor:r,p=i?Fs(i):"";if(p)switch(p){case af:return ys;case nf:return bt;case of:return zr;case lf:return xt;case cf:return ms}return t});function kg(e,t,i){for(var p=-1,d=i.length;++p<d;){var f=i[p],b=f.size;switch(f.type){case"drop":e+=b;break;case"dropRight":t-=b;break;case"take":t=rt(t,e+b);break;case"takeRight":e=Ye(e,t-b);break}}return{start:e,end:t}}function Dg(e){var t=e.match(ai);return t?t[1].split(w):[]}function mp(e,t,i){t=ws(t,e);for(var p=-1,d=t.length,f=!1;++p<d;){var b=Qt(t[p]);if(!(f=e!=null&&i(e,b)))break;e=e[b]}return f||++p!=d?f:(d=e==null?0:e.length,!!d&&hn(d)&&is(b,d)&&(ye(e)||Bs(e)))}function Ig(e){var t=e.length,i=new e.constructor(t);return t&&typeof e[0]=="string"&&ze.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function yp(e){return typeof e.constructor=="function"&&!ea(e)?pr(Wa(e)):{}}function Ag(e,t,i){var p=e.constructor;switch(t){case Ft:return $i(e);case Vt:case Zt:return new p(+e);case ys:return pg(e,i);case Js:case er:case zs:case Nr:case Er:case Lr:case Mr:case Or:case Pr:return Yc(e,i);case bt:return new p;case Gt:case Jt:return new p(e);case Ss:return dg(e);case xt:return new p;case Zs:return ug(e)}}function qg(e,t){var i=t.length;if(!i)return e;var p=i-1;return t[p]=(i>1?"& ":"")+t[p],t=t.join(i>2?", ":" "),e.replace(ri,`{
|
119
119
|
/* [wrapped with `+t+`] */
|
120
|
-
`)}function Cg(e){return ye(e)||Bs(e)||!!(xc&&e&&e[xc])}function is(e,t){var i=typeof e;return t=t??pe,!!t&&(i=="number"||i!="symbol"&&je.test(e))&&e>-1&&e%1==0&&e<t}function lt(e,t,i){if(!Ue(i))return!1;var p=typeof t;return(p=="number"?yt(i)&&is(t,i.length):p=="string"&&t in i)?Kt(i[t],e):!1}function Yi(e,t){if(ye(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Tt(e)?!0:Ea.test(e)||!Na.test(e)||t!=null&&e in Le(t)}function Sg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qi(e){var t=un(e),i=y[t];if(typeof i!="function"||!(t in ke.prototype))return!1;if(e===i)return!0;var p=Vi(i);return!!p&&e===p[0]}function zg(e){return!!_c&&_c in e}var Ng=Ua?os:_o;function ea(e){var t=e&&e.constructor,i=typeof t=="function"&&t.prototype||or;return e===i}function _p(e){return e===e&&!Ue(e)}function fp(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==r||e in Le(i))}}function Eg(e){var t=bn(e,function(p){return i.size===_&&i.clear(),p}),i=t.cache;return t}function Lg(e,t){var i=e[1],p=t[1],u=i|p,f=u<($|j|C),b=p==C&&i==re||p==C&&i==R&&e[7].length<=t[8]||p==(C|R)&&t[7].length<=t[8]&&i==re;if(!(f||b))return e;p&$&&(e[2]=t[2],u|=i&$?0:W);var v=t[3];if(v){var I=e[3];e[3]=I?Zc(I,v,t[4]):v,e[4]=I?gs(e[3],g):t[4]}return v=t[5],v&&(I=e[5],e[5]=I?Jc(I,v,t[6]):v,e[6]=I?gs(e[5],g):t[6]),v=t[7],v&&(e[7]=v),p&C&&(e[8]=e[8]==null?t[8]:rt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}function Mg(e){var t=[];if(e!=null)for(var i in Le(e))t.push(i);return t}function Og(e){return Ka.call(e)}function gp(e,t,i){return t=Ye(t===r?e.length-1:t,0),function(){for(var p=arguments,u=-1,f=Ye(p.length-t,0),b=N(f);++u<f;)b[u]=p[t+u];u=-1;for(var v=N(t+1);++u<t;)v[u]=p[u];return v[t]=i(b),ht(e,this,v)}}function bp(e,t){return t.length<2?e:Ps(e,Lt(t,0,-1))}function Pg(e,t){for(var i=e.length,p=rt(t.length,i),u=mt(e);p--;){var f=t[p];e[p]=is(f,i)?u[f]:r}return e}function Zi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var xp=wp($c),ta=Q_||function(e,t){return et.setTimeout(e,t)},Ji=wp(ig);function hp(e,t,i){var p=t+"";return Ji(e,qg(p,Rg(Dg(p),i)))}function wp(e){var t=0,i=0;return function(){var p=tf(),u=se-(p-i);if(i=p,u>0){if(++t>=J)return arguments[0]}else t=0;return e.apply(r,arguments)}}function yn(e,t){var i=-1,p=e.length,u=p-1;for(t=t===r?p:t;++i<t;){var f=Mi(i,u),b=e[f];e[f]=e[i],e[i]=b}return e.length=t,e}var vp=Eg(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ti,function(i,p,u,f){t.push(u?f.replace(ce,"$1"):p||i)}),t});function Qt(e){if(typeof e=="string"||Tt(e))return e;var t=e+"";return t=="0"&&1/e==-xe?"-0":t}function Fs(e){if(e!=null){try{return $a.call(e)}catch{}try{return e+""}catch{}}return""}function Rg(e,t){return St(Ge,function(i){var p="_."+i[0];t&i[1]&&!Pa(e,p)&&e.push(p)}),e.sort()}function Tp(e){if(e instanceof ke)return e.clone();var t=new Nt(e.__wrapped__,e.__chain__);return t.__actions__=mt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Fg(e,t,i){(i?lt(e,t,i):t===r)?t=1:t=Ye(fe(t),0);var p=e==null?0:e.length;if(!p||t<1)return[];for(var u=0,f=0,b=N(Xa(p/t));u<p;)b[f++]=Lt(e,u,u+=t);return b}function Bg(e){for(var t=-1,i=e==null?0:e.length,p=0,u=[];++t<i;){var f=e[t];f&&(u[p++]=f)}return u}function Ug(){var e=arguments.length;if(!e)return[];for(var t=N(e-1),i=arguments[0],p=e;p--;)t[p-1]=arguments[p];return fs(ye(i)?mt(i):[i],tt(t,1))}var $g=he(function(e,t){return We(e)?Xr(e,tt(t,1,We,!0)):[]}),Kg=he(function(e,t){var i=Mt(t);return We(i)&&(i=r),We(e)?Xr(e,tt(t,1,We,!0),ae(i,2)):[]}),jg=he(function(e,t){var i=Mt(t);return We(i)&&(i=r),We(e)?Xr(e,tt(t,1,We,!0),r,i):[]});function Hg(e,t,i){var p=e==null?0:e.length;return p?(t=i||t===r?1:fe(t),Lt(e,t<0?0:t,p)):[]}function Wg(e,t,i){var p=e==null?0:e.length;return p?(t=i||t===r?1:fe(t),t=p-t,Lt(e,0,t<0?0:t)):[]}function Vg(e,t){return e&&e.length?nn(e,ae(t,3),!0,!0):[]}function Gg(e,t){return e&&e.length?nn(e,ae(t,3),!0):[]}function Xg(e,t,i,p){var u=e==null?0:e.length;return u?(i&&typeof i!="number"&<(e,t,i)&&(i=0,p=u),Uf(e,t,i,p)):[]}function kp(e,t,i){var p=e==null?0:e.length;if(!p)return-1;var u=i==null?0:fe(i);return u<0&&(u=Ye(p+u,0)),Ra(e,ae(t,3),u)}function Dp(e,t,i){var p=e==null?0:e.length;if(!p)return-1;var u=p-1;return i!==r&&(u=fe(i),u=i<0?Ye(p+u,0):rt(u,p-1)),Ra(e,ae(t,3),u,!0)}function Ip(e){var t=e==null?0:e.length;return t?tt(e,1):[]}function Yg(e){var t=e==null?0:e.length;return t?tt(e,xe):[]}function Qg(e,t){var i=e==null?0:e.length;return i?(t=t===r?1:fe(t),tt(e,t)):[]}function Zg(e){for(var t=-1,i=e==null?0:e.length,p={};++t<i;){var u=e[t];p[u[0]]=u[1]}return p}function Ap(e){return e&&e.length?e[0]:r}function Jg(e,t,i){var p=e==null?0:e.length;if(!p)return-1;var u=i==null?0:fe(i);return u<0&&(u=Ye(p+u,0)),rr(e,t,u)}function eb(e){var t=e==null?0:e.length;return t?Lt(e,0,-1):[]}var tb=he(function(e){var t=Fe(e,Bi);return t.length&&t[0]===e[0]?Si(t):[]}),sb=he(function(e){var t=Mt(e),i=Fe(e,Bi);return t===Mt(i)?t=r:i.pop(),i.length&&i[0]===e[0]?Si(i,ae(t,2)):[]}),rb=he(function(e){var t=Mt(e),i=Fe(e,Bi);return t=typeof t=="function"?t:r,t&&i.pop(),i.length&&i[0]===e[0]?Si(i,r,t):[]});function ab(e,t){return e==null?"":J_.call(e,t)}function Mt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function nb(e,t,i){var p=e==null?0:e.length;if(!p)return-1;var u=p;return i!==r&&(u=fe(i),u=u<0?Ye(p+u,0):rt(u,p-1)),t===t?P_(e,t,u):Ra(e,oc,u,!0)}function ib(e,t){return e&&e.length?Rc(e,fe(t)):r}var ob=he(qp);function qp(e,t){return e&&e.length&&t&&t.length?Li(e,t):e}function lb(e,t,i){return e&&e.length&&t&&t.length?Li(e,t,ae(i,2)):e}function cb(e,t,i){return e&&e.length&&t&&t.length?Li(e,t,r,i):e}var pb=ns(function(e,t){var i=e==null?0:e.length,p=Ii(e,t);return Uc(e,Fe(t,function(u){return is(u,i)?+u:u}).sort(Qc)),p});function db(e,t){var i=[];if(!(e&&e.length))return i;var p=-1,u=[],f=e.length;for(t=ae(t,3);++p<f;){var b=e[p];t(b,p,e)&&(i.push(b),u.push(p))}return Uc(e,u),i}function eo(e){return e==null?e:rf.call(e)}function ub(e,t,i){var p=e==null?0:e.length;return p?(i&&typeof i!="number"&<(e,t,i)?(t=0,i=p):(t=t==null?0:fe(t),i=i===r?p:fe(i)),Lt(e,t,i)):[]}function mb(e,t){return an(e,t)}function yb(e,t,i){return Pi(e,t,ae(i,2))}function _b(e,t){var i=e==null?0:e.length;if(i){var p=an(e,t);if(p<i&&Kt(e[p],t))return p}return-1}function fb(e,t){return an(e,t,!0)}function gb(e,t,i){return Pi(e,t,ae(i,2),!0)}function bb(e,t){var i=e==null?0:e.length;if(i){var p=an(e,t,!0)-1;if(Kt(e[p],t))return p}return-1}function xb(e){return e&&e.length?Kc(e):[]}function hb(e,t){return e&&e.length?Kc(e,ae(t,2)):[]}function wb(e){var t=e==null?0:e.length;return t?Lt(e,1,t):[]}function vb(e,t,i){return e&&e.length?(t=i||t===r?1:fe(t),Lt(e,0,t<0?0:t)):[]}function Tb(e,t,i){var p=e==null?0:e.length;return p?(t=i||t===r?1:fe(t),t=p-t,Lt(e,t<0?0:t,p)):[]}function kb(e,t){return e&&e.length?nn(e,ae(t,3),!1,!0):[]}function Db(e,t){return e&&e.length?nn(e,ae(t,3)):[]}var Ib=he(function(e){return hs(tt(e,1,We,!0))}),Ab=he(function(e){var t=Mt(e);return We(t)&&(t=r),hs(tt(e,1,We,!0),ae(t,2))}),qb=he(function(e){var t=Mt(e);return t=typeof t=="function"?t:r,hs(tt(e,1,We,!0),r,t)});function Cb(e){return e&&e.length?hs(e):[]}function Sb(e,t){return e&&e.length?hs(e,ae(t,2)):[]}function zb(e,t){return t=typeof t=="function"?t:r,e&&e.length?hs(e,r,t):[]}function to(e){if(!(e&&e.length))return[];var t=0;return e=_s(e,function(i){if(We(i))return t=Ye(i.length,t),!0}),bi(t,function(i){return Fe(e,_i(i))})}function Cp(e,t){if(!(e&&e.length))return[];var i=to(e);return t==null?i:Fe(i,function(p){return ht(t,r,p)})}var Nb=he(function(e,t){return We(e)?Xr(e,t):[]}),Eb=he(function(e){return Fi(_s(e,We))}),Lb=he(function(e){var t=Mt(e);return We(t)&&(t=r),Fi(_s(e,We),ae(t,2))}),Mb=he(function(e){var t=Mt(e);return t=typeof t=="function"?t:r,Fi(_s(e,We),r,t)}),Ob=he(to);function Pb(e,t){return Vc(e||[],t||[],Gr)}function Rb(e,t){return Vc(e||[],t||[],Zr)}var Fb=he(function(e){var t=e.length,i=t>1?e[t-1]:r;return i=typeof i=="function"?(e.pop(),i):r,Cp(e,i)});function Sp(e){var t=y(e);return t.__chain__=!0,t}function Bb(e,t){return t(e),e}function _n(e,t){return t(e)}var Ub=ns(function(e){var t=e.length,i=t?e[0]:0,p=this.__wrapped__,u=function(f){return Ii(f,e)};return t>1||this.__actions__.length||!(p instanceof ke)||!is(i)?this.thru(u):(p=p.slice(i,+i+(t?1:0)),p.__actions__.push({func:_n,args:[u],thisArg:r}),new Nt(p,this.__chain__).thru(function(f){return t&&!f.length&&f.push(r),f}))});function $b(){return Sp(this)}function Kb(){return new Nt(this.value(),this.__chain__)}function jb(){this.__values__===r&&(this.__values__=jp(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Hb(){return this}function Wb(e){for(var t,i=this;i instanceof Ja;){var p=Tp(i);p.__index__=0,p.__values__=r,t?u.__wrapped__=p:t=p;var u=p;i=i.__wrapped__}return u.__wrapped__=e,t}function Vb(){var e=this.__wrapped__;if(e instanceof ke){var t=e;return this.__actions__.length&&(t=new ke(this)),t=t.reverse(),t.__actions__.push({func:_n,args:[eo],thisArg:r}),new Nt(t,this.__chain__)}return this.thru(eo)}function Gb(){return Wc(this.__wrapped__,this.__actions__)}var Xb=on(function(e,t,i){ze.call(e,i)?++e[i]:rs(e,i,1)});function Yb(e,t,i){var p=ye(e)?nc:Bf;return i&<(e,t,i)&&(t=r),p(e,ae(t,3))}function Qb(e,t){var i=ye(e)?_s:Cc;return i(e,ae(t,3))}var Zb=rp(kp),Jb=rp(Dp);function ex(e,t){return tt(fn(e,t),1)}function tx(e,t){return tt(fn(e,t),xe)}function sx(e,t,i){return i=i===r?1:fe(i),tt(fn(e,t),i)}function zp(e,t){var i=ye(e)?St:xs;return i(e,ae(t,3))}function Np(e,t){var i=ye(e)?h_:qc;return i(e,ae(t,3))}var rx=on(function(e,t,i){ze.call(e,i)?e[i].push(t):rs(e,i,[t])});function ax(e,t,i,p){e=yt(e)?e:_r(e),i=i&&!p?fe(i):0;var u=e.length;return i<0&&(i=Ye(u+i,0)),wn(e)?i<=u&&e.indexOf(t,i)>-1:!!u&&rr(e,t,i)>-1}var nx=he(function(e,t,i){var p=-1,u=typeof t=="function",f=yt(e)?N(e.length):[];return xs(e,function(b){f[++p]=u?ht(t,b,i):Yr(b,t,i)}),f}),ix=on(function(e,t,i){rs(e,i,t)});function fn(e,t){var i=ye(e)?Fe:Mc;return i(e,ae(t,3))}function ox(e,t,i,p){return e==null?[]:(ye(t)||(t=t==null?[]:[t]),i=p?r:i,ye(i)||(i=i==null?[]:[i]),Fc(e,t,i))}var lx=on(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]});function cx(e,t,i){var p=ye(e)?mi:cc,u=arguments.length<3;return p(e,ae(t,4),i,u,xs)}function px(e,t,i){var p=ye(e)?w_:cc,u=arguments.length<3;return p(e,ae(t,4),i,u,qc)}function dx(e,t){var i=ye(e)?_s:Cc;return i(e,xn(ae(t,3)))}function ux(e){var t=ye(e)?kc:ag;return t(e)}function mx(e,t,i){(i?lt(e,t,i):t===r)?t=1:t=fe(t);var p=ye(e)?Mf:ng;return p(e,t)}function yx(e){var t=ye(e)?Of:og;return t(e)}function _x(e){if(e==null)return 0;if(yt(e))return wn(e)?nr(e):e.length;var t=at(e);return t==bt||t==xt?e.size:Ni(e).length}function fx(e,t,i){var p=ye(e)?yi:lg;return i&<(e,t,i)&&(t=r),p(e,ae(t,3))}var gx=he(function(e,t){if(e==null)return[];var i=t.length;return i>1&<(e,t[0],t[1])?t=[]:i>2&<(t[0],t[1],t[2])&&(t=[t[0]]),Fc(e,tt(t,1),[])}),gn=Y_||function(){return et.Date.now()};function bx(e,t){if(typeof t!="function")throw new zt(c);return e=fe(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ep(e,t,i){return t=i?r:t,t=e&&t==null?e.length:t,as(e,C,r,r,r,r,t)}function Lp(e,t){var i;if(typeof t!="function")throw new zt(c);return e=fe(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=r),i}}var so=he(function(e,t,i){var p=$;if(i.length){var u=gs(i,mr(so));p|=Q}return as(e,p,t,i,u)}),Mp=he(function(e,t,i){var p=$|j;if(i.length){var u=gs(i,mr(Mp));p|=Q}return as(t,p,e,i,u)});function Op(e,t,i){t=i?r:t;var p=as(e,re,r,r,r,r,r,t);return p.placeholder=Op.placeholder,p}function Pp(e,t,i){t=i?r:t;var p=as(e,V,r,r,r,r,r,t);return p.placeholder=Pp.placeholder,p}function Rp(e,t,i){var p,u,f,b,v,I,B=0,U=!1,K=!1,X=!0;if(typeof e!="function")throw new zt(c);t=Ot(t)||0,Ue(i)&&(U=!!i.leading,K="maxWait"in i,f=K?Ye(Ot(i.maxWait)||0,t):f,X="trailing"in i?!!i.trailing:X);function te(Ve){var jt=p,cs=u;return p=u=r,B=Ve,b=e.apply(cs,jt),b}function ne(Ve){return B=Ve,v=ta(ve,t),U?te(Ve):b}function be(Ve){var jt=Ve-I,cs=Ve-B,rd=t-jt;return K?rt(rd,f-cs):rd}function ie(Ve){var jt=Ve-I,cs=Ve-B;return I===r||jt>=t||jt<0||K&&cs>=f}function ve(){var Ve=gn();if(ie(Ve))return De(Ve);v=ta(ve,be(Ve))}function De(Ve){return v=r,X&&p?te(Ve):(p=u=r,b)}function kt(){v!==r&&Gc(v),B=0,p=I=u=v=r}function ct(){return v===r?b:De(gn())}function Dt(){var Ve=gn(),jt=ie(Ve);if(p=arguments,u=this,I=Ve,jt){if(v===r)return ne(I);if(K)return Gc(v),v=ta(ve,t),te(I)}return v===r&&(v=ta(ve,t)),b}return Dt.cancel=kt,Dt.flush=ct,Dt}var xx=he(function(e,t){return Ac(e,1,t)}),hx=he(function(e,t,i){return Ac(e,Ot(t)||0,i)});function wx(e){return as(e,E)}function bn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new zt(c);var i=function(){var p=arguments,u=t?t.apply(this,p):p[0],f=i.cache;if(f.has(u))return f.get(u);var b=e.apply(this,p);return i.cache=f.set(u,b)||f,b};return i.cache=new(bn.Cache||ss),i}bn.Cache=ss;function xn(e){if(typeof e!="function")throw new zt(c);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 vx(e){return Lp(2,e)}var Tx=cg(function(e,t){t=t.length==1&&ye(t[0])?Fe(t[0],wt(ae())):Fe(tt(t,1),wt(ae()));var i=t.length;return he(function(p){for(var u=-1,f=rt(p.length,i);++u<f;)p[u]=t[u].call(this,p[u]);return ht(e,this,p)})}),ro=he(function(e,t){var i=gs(t,mr(ro));return as(e,Q,r,t,i)}),Fp=he(function(e,t){var i=gs(t,mr(Fp));return as(e,q,r,t,i)}),kx=ns(function(e,t){return as(e,R,r,r,r,t)});function Dx(e,t){if(typeof e!="function")throw new zt(c);return t=t===r?t:fe(t),he(e,t)}function Ix(e,t){if(typeof e!="function")throw new zt(c);return t=t==null?0:Ye(fe(t),0),he(function(i){var p=i[t],u=vs(i,0,t);return p&&fs(u,p),ht(e,this,u)})}function Ax(e,t,i){var p=!0,u=!0;if(typeof e!="function")throw new zt(c);return Ue(i)&&(p="leading"in i?!!i.leading:p,u="trailing"in i?!!i.trailing:u),Rp(e,t,{leading:p,maxWait:t,trailing:u})}function qx(e){return Ep(e,1)}function Cx(e,t){return ro(Ui(t),e)}function Sx(){if(!arguments.length)return[];var e=arguments[0];return ye(e)?e:[e]}function zx(e){return Et(e,D)}function Nx(e,t){return t=typeof t=="function"?t:r,Et(e,D,t)}function Ex(e){return Et(e,x|D)}function Lx(e,t){return t=typeof t=="function"?t:r,Et(e,x|D,t)}function Mx(e,t){return t==null||Ic(e,t,Ze(t))}function Kt(e,t){return e===t||e!==e&&t!==t}var Ox=dn(Ci),Px=dn(function(e,t){return e>=t}),Bs=Nc(function(){return arguments}())?Nc:function(e){return He(e)&&ze.call(e,"callee")&&!bc.call(e,"callee")},ye=N.isArray,Rx=Jl?wt(Jl):Wf;function yt(e){return e!=null&&hn(e.length)&&!os(e)}function We(e){return He(e)&&yt(e)}function Fx(e){return e===!0||e===!1||He(e)&&ot(e)==Vt}var Ts=Z_||_o,Bx=ec?wt(ec):Vf;function Ux(e){return He(e)&&e.nodeType===1&&!sa(e)}function $x(e){if(e==null)return!0;if(yt(e)&&(ye(e)||typeof e=="string"||typeof e.splice=="function"||Ts(e)||yr(e)||Bs(e)))return!e.length;var t=at(e);if(t==bt||t==xt)return!e.size;if(ea(e))return!Ni(e).length;for(var i in e)if(ze.call(e,i))return!1;return!0}function Kx(e,t){return Qr(e,t)}function jx(e,t,i){i=typeof i=="function"?i:r;var p=i?i(e,t):r;return p===r?Qr(e,t,r,i):!!p}function ao(e){if(!He(e))return!1;var t=ot(e);return t==Xs||t==Gs||typeof e.message=="string"&&typeof e.name=="string"&&!sa(e)}function Hx(e){return typeof e=="number"&&hc(e)}function os(e){if(!Ue(e))return!1;var t=ot(e);return t==Cs||t==Ia||t==us||t==Qs}function Bp(e){return typeof e=="number"&&e==fe(e)}function hn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pe}function Ue(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function He(e){return e!=null&&typeof e=="object"}var Up=tc?wt(tc):Xf;function Wx(e,t){return e===t||zi(e,t,Gi(t))}function Vx(e,t,i){return i=typeof i=="function"?i:r,zi(e,t,Gi(t),i)}function Gx(e){return $p(e)&&e!=+e}function Xx(e){if(Ng(e))throw new me(l);return Ec(e)}function Yx(e){return e===null}function Qx(e){return e==null}function $p(e){return typeof e=="number"||He(e)&&ot(e)==Gt}function sa(e){if(!He(e)||ot(e)!=qt)return!1;var t=Wa(e);if(t===null)return!0;var i=ze.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&$a.call(i)==W_}var no=sc?wt(sc):Yf;function Zx(e){return Bp(e)&&e>=-pe&&e<=pe}var Kp=rc?wt(rc):Qf;function wn(e){return typeof e=="string"||!ye(e)&&He(e)&&ot(e)==Jt}function Tt(e){return typeof e=="symbol"||He(e)&&ot(e)==Zs}var yr=ac?wt(ac):Zf;function Jx(e){return e===r}function eh(e){return He(e)&&at(e)==ms}function th(e){return He(e)&&ot(e)==Aa}var sh=dn(Ei),rh=dn(function(e,t){return e<=t});function jp(e){if(!e)return[];if(yt(e))return wn(e)?Ut(e):mt(e);if(Kr&&e[Kr])return L_(e[Kr]());var t=at(e),i=t==bt?hi:t==xt?Fa:_r;return i(e)}function ls(e){if(!e)return e===0?e:0;if(e=Ot(e),e===xe||e===-xe){var t=e<0?-1:1;return t*_e}return e===e?e:0}function fe(e){var t=ls(e),i=t%1;return t===t?i?t-i:t:0}function Hp(e){return e?Os(fe(e),0,ee):0}function Ot(e){if(typeof e=="number")return e;if(Tt(e))return Ee;if(Ue(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ue(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pc(e);var i=we.test(e);return i||Be.test(e)?g_(e.slice(2),i?2:8):Te.test(e)?Ee:+e}function Wp(e){return Yt(e,_t(e))}function ah(e){return e?Os(fe(e),-pe,pe):e===0?e:0}function Se(e){return e==null?"":vt(e)}var nh=dr(function(e,t){if(ea(t)||yt(t)){Yt(t,Ze(t),e);return}for(var i in t)ze.call(t,i)&&Gr(e,i,t[i])}),Vp=dr(function(e,t){Yt(t,_t(t),e)}),vn=dr(function(e,t,i,p){Yt(t,_t(t),e,p)}),ih=dr(function(e,t,i,p){Yt(t,Ze(t),e,p)}),oh=ns(Ii);function lh(e,t){var i=pr(e);return t==null?i:Dc(i,t)}var ch=he(function(e,t){e=Le(e);var i=-1,p=t.length,u=p>2?t[2]:r;for(u&<(t[0],t[1],u)&&(p=1);++i<p;)for(var f=t[i],b=_t(f),v=-1,I=b.length;++v<I;){var B=b[v],U=e[B];(U===r||Kt(U,or[B])&&!ze.call(e,B))&&(e[B]=f[B])}return e}),ph=he(function(e){return e.push(r,pp),ht(Gp,r,e)});function dh(e,t){return ic(e,ae(t,3),Xt)}function uh(e,t){return ic(e,ae(t,3),qi)}function mh(e,t){return e==null?e:Ai(e,ae(t,3),_t)}function yh(e,t){return e==null?e:Sc(e,ae(t,3),_t)}function _h(e,t){return e&&Xt(e,ae(t,3))}function fh(e,t){return e&&qi(e,ae(t,3))}function gh(e){return e==null?[]:sn(e,Ze(e))}function bh(e){return e==null?[]:sn(e,_t(e))}function io(e,t,i){var p=e==null?r:Ps(e,t);return p===r?i:p}function xh(e,t){return e!=null&&mp(e,t,$f)}function oo(e,t){return e!=null&&mp(e,t,Kf)}var hh=np(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Ka.call(t)),e[t]=i},co(ft)),wh=np(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Ka.call(t)),ze.call(e,t)?e[t].push(i):e[t]=[i]},ae),vh=he(Yr);function Ze(e){return yt(e)?Tc(e):Ni(e)}function _t(e){return yt(e)?Tc(e,!0):Jf(e)}function Th(e,t){var i={};return t=ae(t,3),Xt(e,function(p,u,f){rs(i,t(p,u,f),p)}),i}function kh(e,t){var i={};return t=ae(t,3),Xt(e,function(p,u,f){rs(i,u,t(p,u,f))}),i}var Dh=dr(function(e,t,i){rn(e,t,i)}),Gp=dr(function(e,t,i,p){rn(e,t,i,p)}),Ih=ns(function(e,t){var i={};if(e==null)return i;var p=!1;t=Fe(t,function(f){return f=ws(f,e),p||(p=f.length>1),f}),Yt(e,Wi(e),i),p&&(i=Et(i,x|h|D,hg));for(var u=t.length;u--;)Ri(i,t[u]);return i});function Ah(e,t){return Xp(e,xn(ae(t)))}var qh=ns(function(e,t){return e==null?{}:tg(e,t)});function Xp(e,t){if(e==null)return{};var i=Fe(Wi(e),function(p){return[p]});return t=ae(t),Bc(e,i,function(p,u){return t(p,u[0])})}function Ch(e,t,i){t=ws(t,e);var p=-1,u=t.length;for(u||(u=1,e=r);++p<u;){var f=e==null?r:e[Qt(t[p])];f===r&&(p=u,f=i),e=os(f)?f.call(e):f}return e}function Sh(e,t,i){return e==null?e:Zr(e,t,i)}function zh(e,t,i,p){return p=typeof p=="function"?p:r,e==null?e:Zr(e,t,i,p)}var Yp=lp(Ze),Qp=lp(_t);function Nh(e,t,i){var p=ye(e),u=p||Ts(e)||yr(e);if(t=ae(t,4),i==null){var f=e&&e.constructor;u?i=p?new f:[]:Ue(e)?i=os(f)?pr(Wa(e)):{}:i={}}return(u?St:Xt)(e,function(b,v,I){return t(i,b,v,I)}),i}function Eh(e,t){return e==null?!0:Ri(e,t)}function Lh(e,t,i){return e==null?e:Hc(e,t,Ui(i))}function Mh(e,t,i,p){return p=typeof p=="function"?p:r,e==null?e:Hc(e,t,Ui(i),p)}function _r(e){return e==null?[]:xi(e,Ze(e))}function Oh(e){return e==null?[]:xi(e,_t(e))}function Ph(e,t,i){return i===r&&(i=t,t=r),i!==r&&(i=Ot(i),i=i===i?i:0),t!==r&&(t=Ot(t),t=t===t?t:0),Os(Ot(e),t,i)}function Rh(e,t,i){return t=ls(t),i===r?(i=t,t=0):i=ls(i),e=Ot(e),jf(e,t,i)}function Fh(e,t,i){if(i&&typeof i!="boolean"&<(e,t,i)&&(t=i=r),i===r&&(typeof t=="boolean"?(i=t,t=r):typeof e=="boolean"&&(i=e,e=r)),e===r&&t===r?(e=0,t=1):(e=ls(e),t===r?(t=e,e=0):t=ls(t)),e>t){var p=e;e=t,t=p}if(i||e%1||t%1){var u=wc();return rt(e+u*(t-e+f_("1e-"+((u+"").length-1))),t)}return Mi(e,t)}var Bh=ur(function(e,t,i){return t=t.toLowerCase(),e+(i?Zp(t):t)});function Zp(e){return lo(Se(e).toLowerCase())}function Jp(e){return e=Se(e),e&&e.replace(dt,C_).replace(i_,"")}function Uh(e,t,i){e=Se(e),t=vt(t);var p=e.length;i=i===r?p:Os(fe(i),0,p);var u=i;return i-=t.length,i>=0&&e.slice(i,u)==t}function $h(e){return e=Se(e),e&&Ca.test(e)?e.replace(tr,S_):e}function Kh(e){return e=Se(e),e&&La.test(e)?e.replace(Br,"\\$&"):e}var jh=ur(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Hh=ur(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),Wh=sp("toLowerCase");function Vh(e,t,i){e=Se(e),t=fe(t);var p=t?nr(e):0;if(!t||p>=t)return e;var u=(t-p)/2;return pn(Ya(u),i)+e+pn(Xa(u),i)}function Gh(e,t,i){e=Se(e),t=fe(t);var p=t?nr(e):0;return t&&p<t?e+pn(t-p,i):e}function Xh(e,t,i){e=Se(e),t=fe(t);var p=t?nr(e):0;return t&&p<t?pn(t-p,i)+e:e}function Yh(e,t,i){return i||t==null?t=0:t&&(t=+t),sf(Se(e).replace(Ur,""),t||0)}function Qh(e,t,i){return(i?lt(e,t,i):t===r)?t=1:t=fe(t),Oi(Se(e),t)}function Zh(){var e=arguments,t=Se(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Jh=ur(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()});function ew(e,t,i){return i&&typeof i!="number"&<(e,t,i)&&(t=i=r),i=i===r?ee:i>>>0,i?(e=Se(e),e&&(typeof t=="string"||t!=null&&!no(t))&&(t=vt(t),!t&&ar(e))?vs(Ut(e),0,i):e.split(t,i)):[]}var tw=ur(function(e,t,i){return e+(i?" ":"")+lo(t)});function sw(e,t,i){return e=Se(e),i=i==null?0:Os(fe(i),0,e.length),t=vt(t),e.slice(i,i+t.length)==t}function rw(e,t,i){var p=y.templateSettings;i&<(e,t,i)&&(t=r),e=Se(e),t=vn({},t,p,cp);var u=vn({},t.imports,p.imports,cp),f=Ze(u),b=xi(u,f),v,I,B=0,U=t.interpolate||Bt,K="__p += '",X=wi((t.escape||Bt).source+"|"+U.source+"|"+(U===za?Ie:Bt).source+"|"+(t.evaluate||Bt).source+"|$","g"),te="//# sourceURL="+(ze.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++d_+"]")+`
|
121
|
-
`;e.replace(X,function(
|
120
|
+
`)}function Cg(e){return ye(e)||Bs(e)||!!(xc&&e&&e[xc])}function is(e,t){var i=typeof e;return t=t??pe,!!t&&(i=="number"||i!="symbol"&&je.test(e))&&e>-1&&e%1==0&&e<t}function lt(e,t,i){if(!Ue(i))return!1;var p=typeof t;return(p=="number"?yt(i)&&is(t,i.length):p=="string"&&t in i)?Kt(i[t],e):!1}function Yi(e,t){if(ye(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Tt(e)?!0:Ea.test(e)||!Na.test(e)||t!=null&&e in Le(t)}function Sg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qi(e){var t=un(e),i=y[t];if(typeof i!="function"||!(t in ke.prototype))return!1;if(e===i)return!0;var p=Vi(i);return!!p&&e===p[0]}function zg(e){return!!_c&&_c in e}var Ng=Ua?os:_o;function ea(e){var t=e&&e.constructor,i=typeof t=="function"&&t.prototype||or;return e===i}function _p(e){return e===e&&!Ue(e)}function fp(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==r||e in Le(i))}}function Eg(e){var t=bn(e,function(p){return i.size===_&&i.clear(),p}),i=t.cache;return t}function Lg(e,t){var i=e[1],p=t[1],d=i|p,f=d<(U|K|z),b=p==z&&i==re||p==z&&i==V&&e[7].length<=t[8]||p==(z|V)&&t[7].length<=t[8]&&i==re;if(!(f||b))return e;p&U&&(e[2]=t[2],d|=i&U?0:H);var v=t[3];if(v){var I=e[3];e[3]=I?Zc(I,v,t[4]):v,e[4]=I?gs(e[3],g):t[4]}return v=t[5],v&&(I=e[5],e[5]=I?Jc(I,v,t[6]):v,e[6]=I?gs(e[5],g):t[6]),v=t[7],v&&(e[7]=v),p&z&&(e[8]=e[8]==null?t[8]:rt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=d,e}function Mg(e){var t=[];if(e!=null)for(var i in Le(e))t.push(i);return t}function Og(e){return Ka.call(e)}function gp(e,t,i){return t=Ye(t===r?e.length-1:t,0),function(){for(var p=arguments,d=-1,f=Ye(p.length-t,0),b=E(f);++d<f;)b[d]=p[t+d];d=-1;for(var v=E(t+1);++d<t;)v[d]=p[d];return v[t]=i(b),ht(e,this,v)}}function bp(e,t){return t.length<2?e:Ps(e,Lt(t,0,-1))}function Pg(e,t){for(var i=e.length,p=rt(t.length,i),d=mt(e);p--;){var f=t[p];e[p]=is(f,i)?d[f]:r}return e}function Zi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var xp=wp($c),ta=Q_||function(e,t){return et.setTimeout(e,t)},Ji=wp(ig);function hp(e,t,i){var p=t+"";return Ji(e,qg(p,Rg(Dg(p),i)))}function wp(e){var t=0,i=0;return function(){var p=tf(),d=ee-(p-i);if(i=p,d>0){if(++t>=Z)return arguments[0]}else t=0;return e.apply(r,arguments)}}function yn(e,t){var i=-1,p=e.length,d=p-1;for(t=t===r?p:t;++i<t;){var f=Mi(i,d),b=e[f];e[f]=e[i],e[i]=b}return e.length=t,e}var vp=Eg(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ti,function(i,p,d,f){t.push(d?f.replace(ce,"$1"):p||i)}),t});function Qt(e){if(typeof e=="string"||Tt(e))return e;var t=e+"";return t=="0"&&1/e==-xe?"-0":t}function Fs(e){if(e!=null){try{return $a.call(e)}catch{}try{return e+""}catch{}}return""}function Rg(e,t){return St(Ge,function(i){var p="_."+i[0];t&i[1]&&!Pa(e,p)&&e.push(p)}),e.sort()}function Tp(e){if(e instanceof ke)return e.clone();var t=new Nt(e.__wrapped__,e.__chain__);return t.__actions__=mt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Fg(e,t,i){(i?lt(e,t,i):t===r)?t=1:t=Ye(fe(t),0);var p=e==null?0:e.length;if(!p||t<1)return[];for(var d=0,f=0,b=E(Xa(p/t));d<p;)b[f++]=Lt(e,d,d+=t);return b}function Bg(e){for(var t=-1,i=e==null?0:e.length,p=0,d=[];++t<i;){var f=e[t];f&&(d[p++]=f)}return d}function Ug(){var e=arguments.length;if(!e)return[];for(var t=E(e-1),i=arguments[0],p=e;p--;)t[p-1]=arguments[p];return fs(ye(i)?mt(i):[i],tt(t,1))}var $g=he(function(e,t){return We(e)?Xr(e,tt(t,1,We,!0)):[]}),Kg=he(function(e,t){var i=Mt(t);return We(i)&&(i=r),We(e)?Xr(e,tt(t,1,We,!0),ae(i,2)):[]}),jg=he(function(e,t){var i=Mt(t);return We(i)&&(i=r),We(e)?Xr(e,tt(t,1,We,!0),r,i):[]});function Hg(e,t,i){var p=e==null?0:e.length;return p?(t=i||t===r?1:fe(t),Lt(e,t<0?0:t,p)):[]}function Wg(e,t,i){var p=e==null?0:e.length;return p?(t=i||t===r?1:fe(t),t=p-t,Lt(e,0,t<0?0:t)):[]}function Vg(e,t){return e&&e.length?nn(e,ae(t,3),!0,!0):[]}function Gg(e,t){return e&&e.length?nn(e,ae(t,3),!0):[]}function Xg(e,t,i,p){var d=e==null?0:e.length;return d?(i&&typeof i!="number"&<(e,t,i)&&(i=0,p=d),Uf(e,t,i,p)):[]}function kp(e,t,i){var p=e==null?0:e.length;if(!p)return-1;var d=i==null?0:fe(i);return d<0&&(d=Ye(p+d,0)),Ra(e,ae(t,3),d)}function Dp(e,t,i){var p=e==null?0:e.length;if(!p)return-1;var d=p-1;return i!==r&&(d=fe(i),d=i<0?Ye(p+d,0):rt(d,p-1)),Ra(e,ae(t,3),d,!0)}function Ip(e){var t=e==null?0:e.length;return t?tt(e,1):[]}function Yg(e){var t=e==null?0:e.length;return t?tt(e,xe):[]}function Qg(e,t){var i=e==null?0:e.length;return i?(t=t===r?1:fe(t),tt(e,t)):[]}function Zg(e){for(var t=-1,i=e==null?0:e.length,p={};++t<i;){var d=e[t];p[d[0]]=d[1]}return p}function Ap(e){return e&&e.length?e[0]:r}function Jg(e,t,i){var p=e==null?0:e.length;if(!p)return-1;var d=i==null?0:fe(i);return d<0&&(d=Ye(p+d,0)),rr(e,t,d)}function eb(e){var t=e==null?0:e.length;return t?Lt(e,0,-1):[]}var tb=he(function(e){var t=Fe(e,Bi);return t.length&&t[0]===e[0]?Si(t):[]}),sb=he(function(e){var t=Mt(e),i=Fe(e,Bi);return t===Mt(i)?t=r:i.pop(),i.length&&i[0]===e[0]?Si(i,ae(t,2)):[]}),rb=he(function(e){var t=Mt(e),i=Fe(e,Bi);return t=typeof t=="function"?t:r,t&&i.pop(),i.length&&i[0]===e[0]?Si(i,r,t):[]});function ab(e,t){return e==null?"":J_.call(e,t)}function Mt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function nb(e,t,i){var p=e==null?0:e.length;if(!p)return-1;var d=p;return i!==r&&(d=fe(i),d=d<0?Ye(p+d,0):rt(d,p-1)),t===t?P_(e,t,d):Ra(e,oc,d,!0)}function ib(e,t){return e&&e.length?Rc(e,fe(t)):r}var ob=he(qp);function qp(e,t){return e&&e.length&&t&&t.length?Li(e,t):e}function lb(e,t,i){return e&&e.length&&t&&t.length?Li(e,t,ae(i,2)):e}function cb(e,t,i){return e&&e.length&&t&&t.length?Li(e,t,r,i):e}var pb=ns(function(e,t){var i=e==null?0:e.length,p=Ii(e,t);return Uc(e,Fe(t,function(d){return is(d,i)?+d:d}).sort(Qc)),p});function db(e,t){var i=[];if(!(e&&e.length))return i;var p=-1,d=[],f=e.length;for(t=ae(t,3);++p<f;){var b=e[p];t(b,p,e)&&(i.push(b),d.push(p))}return Uc(e,d),i}function eo(e){return e==null?e:rf.call(e)}function ub(e,t,i){var p=e==null?0:e.length;return p?(i&&typeof i!="number"&<(e,t,i)?(t=0,i=p):(t=t==null?0:fe(t),i=i===r?p:fe(i)),Lt(e,t,i)):[]}function mb(e,t){return an(e,t)}function yb(e,t,i){return Pi(e,t,ae(i,2))}function _b(e,t){var i=e==null?0:e.length;if(i){var p=an(e,t);if(p<i&&Kt(e[p],t))return p}return-1}function fb(e,t){return an(e,t,!0)}function gb(e,t,i){return Pi(e,t,ae(i,2),!0)}function bb(e,t){var i=e==null?0:e.length;if(i){var p=an(e,t,!0)-1;if(Kt(e[p],t))return p}return-1}function xb(e){return e&&e.length?Kc(e):[]}function hb(e,t){return e&&e.length?Kc(e,ae(t,2)):[]}function wb(e){var t=e==null?0:e.length;return t?Lt(e,1,t):[]}function vb(e,t,i){return e&&e.length?(t=i||t===r?1:fe(t),Lt(e,0,t<0?0:t)):[]}function Tb(e,t,i){var p=e==null?0:e.length;return p?(t=i||t===r?1:fe(t),t=p-t,Lt(e,t<0?0:t,p)):[]}function kb(e,t){return e&&e.length?nn(e,ae(t,3),!1,!0):[]}function Db(e,t){return e&&e.length?nn(e,ae(t,3)):[]}var Ib=he(function(e){return hs(tt(e,1,We,!0))}),Ab=he(function(e){var t=Mt(e);return We(t)&&(t=r),hs(tt(e,1,We,!0),ae(t,2))}),qb=he(function(e){var t=Mt(e);return t=typeof t=="function"?t:r,hs(tt(e,1,We,!0),r,t)});function Cb(e){return e&&e.length?hs(e):[]}function Sb(e,t){return e&&e.length?hs(e,ae(t,2)):[]}function zb(e,t){return t=typeof t=="function"?t:r,e&&e.length?hs(e,r,t):[]}function to(e){if(!(e&&e.length))return[];var t=0;return e=_s(e,function(i){if(We(i))return t=Ye(i.length,t),!0}),bi(t,function(i){return Fe(e,_i(i))})}function Cp(e,t){if(!(e&&e.length))return[];var i=to(e);return t==null?i:Fe(i,function(p){return ht(t,r,p)})}var Nb=he(function(e,t){return We(e)?Xr(e,t):[]}),Eb=he(function(e){return Fi(_s(e,We))}),Lb=he(function(e){var t=Mt(e);return We(t)&&(t=r),Fi(_s(e,We),ae(t,2))}),Mb=he(function(e){var t=Mt(e);return t=typeof t=="function"?t:r,Fi(_s(e,We),r,t)}),Ob=he(to);function Pb(e,t){return Vc(e||[],t||[],Gr)}function Rb(e,t){return Vc(e||[],t||[],Zr)}var Fb=he(function(e){var t=e.length,i=t>1?e[t-1]:r;return i=typeof i=="function"?(e.pop(),i):r,Cp(e,i)});function Sp(e){var t=y(e);return t.__chain__=!0,t}function Bb(e,t){return t(e),e}function _n(e,t){return t(e)}var Ub=ns(function(e){var t=e.length,i=t?e[0]:0,p=this.__wrapped__,d=function(f){return Ii(f,e)};return t>1||this.__actions__.length||!(p instanceof ke)||!is(i)?this.thru(d):(p=p.slice(i,+i+(t?1:0)),p.__actions__.push({func:_n,args:[d],thisArg:r}),new Nt(p,this.__chain__).thru(function(f){return t&&!f.length&&f.push(r),f}))});function $b(){return Sp(this)}function Kb(){return new Nt(this.value(),this.__chain__)}function jb(){this.__values__===r&&(this.__values__=jp(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Hb(){return this}function Wb(e){for(var t,i=this;i instanceof Ja;){var p=Tp(i);p.__index__=0,p.__values__=r,t?d.__wrapped__=p:t=p;var d=p;i=i.__wrapped__}return d.__wrapped__=e,t}function Vb(){var e=this.__wrapped__;if(e instanceof ke){var t=e;return this.__actions__.length&&(t=new ke(this)),t=t.reverse(),t.__actions__.push({func:_n,args:[eo],thisArg:r}),new Nt(t,this.__chain__)}return this.thru(eo)}function Gb(){return Wc(this.__wrapped__,this.__actions__)}var Xb=on(function(e,t,i){ze.call(e,i)?++e[i]:rs(e,i,1)});function Yb(e,t,i){var p=ye(e)?nc:Bf;return i&<(e,t,i)&&(t=r),p(e,ae(t,3))}function Qb(e,t){var i=ye(e)?_s:Cc;return i(e,ae(t,3))}var Zb=rp(kp),Jb=rp(Dp);function ex(e,t){return tt(fn(e,t),1)}function tx(e,t){return tt(fn(e,t),xe)}function sx(e,t,i){return i=i===r?1:fe(i),tt(fn(e,t),i)}function zp(e,t){var i=ye(e)?St:xs;return i(e,ae(t,3))}function Np(e,t){var i=ye(e)?h_:qc;return i(e,ae(t,3))}var rx=on(function(e,t,i){ze.call(e,i)?e[i].push(t):rs(e,i,[t])});function ax(e,t,i,p){e=yt(e)?e:_r(e),i=i&&!p?fe(i):0;var d=e.length;return i<0&&(i=Ye(d+i,0)),wn(e)?i<=d&&e.indexOf(t,i)>-1:!!d&&rr(e,t,i)>-1}var nx=he(function(e,t,i){var p=-1,d=typeof t=="function",f=yt(e)?E(e.length):[];return xs(e,function(b){f[++p]=d?ht(t,b,i):Yr(b,t,i)}),f}),ix=on(function(e,t,i){rs(e,i,t)});function fn(e,t){var i=ye(e)?Fe:Mc;return i(e,ae(t,3))}function ox(e,t,i,p){return e==null?[]:(ye(t)||(t=t==null?[]:[t]),i=p?r:i,ye(i)||(i=i==null?[]:[i]),Fc(e,t,i))}var lx=on(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]});function cx(e,t,i){var p=ye(e)?mi:cc,d=arguments.length<3;return p(e,ae(t,4),i,d,xs)}function px(e,t,i){var p=ye(e)?w_:cc,d=arguments.length<3;return p(e,ae(t,4),i,d,qc)}function dx(e,t){var i=ye(e)?_s:Cc;return i(e,xn(ae(t,3)))}function ux(e){var t=ye(e)?kc:ag;return t(e)}function mx(e,t,i){(i?lt(e,t,i):t===r)?t=1:t=fe(t);var p=ye(e)?Mf:ng;return p(e,t)}function yx(e){var t=ye(e)?Of:og;return t(e)}function _x(e){if(e==null)return 0;if(yt(e))return wn(e)?nr(e):e.length;var t=at(e);return t==bt||t==xt?e.size:Ni(e).length}function fx(e,t,i){var p=ye(e)?yi:lg;return i&<(e,t,i)&&(t=r),p(e,ae(t,3))}var gx=he(function(e,t){if(e==null)return[];var i=t.length;return i>1&<(e,t[0],t[1])?t=[]:i>2&<(t[0],t[1],t[2])&&(t=[t[0]]),Fc(e,tt(t,1),[])}),gn=Y_||function(){return et.Date.now()};function bx(e,t){if(typeof t!="function")throw new zt(c);return e=fe(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ep(e,t,i){return t=i?r:t,t=e&&t==null?e.length:t,as(e,z,r,r,r,r,t)}function Lp(e,t){var i;if(typeof t!="function")throw new zt(c);return e=fe(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=r),i}}var so=he(function(e,t,i){var p=U;if(i.length){var d=gs(i,mr(so));p|=Q}return as(e,p,t,i,d)}),Mp=he(function(e,t,i){var p=U|K;if(i.length){var d=gs(i,mr(Mp));p|=Q}return as(t,p,e,i,d)});function Op(e,t,i){t=i?r:t;var p=as(e,re,r,r,r,r,r,t);return p.placeholder=Op.placeholder,p}function Pp(e,t,i){t=i?r:t;var p=as(e,W,r,r,r,r,r,t);return p.placeholder=Pp.placeholder,p}function Rp(e,t,i){var p,d,f,b,v,I,F=0,B=!1,$=!1,X=!0;if(typeof e!="function")throw new zt(c);t=Ot(t)||0,Ue(i)&&(B=!!i.leading,$="maxWait"in i,f=$?Ye(Ot(i.maxWait)||0,t):f,X="trailing"in i?!!i.trailing:X);function se(Ve){var jt=p,cs=d;return p=d=r,F=Ve,b=e.apply(cs,jt),b}function ie(Ve){return F=Ve,v=ta(ve,t),B?se(Ve):b}function be(Ve){var jt=Ve-I,cs=Ve-F,rd=t-jt;return $?rt(rd,f-cs):rd}function oe(Ve){var jt=Ve-I,cs=Ve-F;return I===r||jt>=t||jt<0||$&&cs>=f}function ve(){var Ve=gn();if(oe(Ve))return De(Ve);v=ta(ve,be(Ve))}function De(Ve){return v=r,X&&p?se(Ve):(p=d=r,b)}function kt(){v!==r&&Gc(v),F=0,p=I=d=v=r}function ct(){return v===r?b:De(gn())}function Dt(){var Ve=gn(),jt=oe(Ve);if(p=arguments,d=this,I=Ve,jt){if(v===r)return ie(I);if($)return Gc(v),v=ta(ve,t),se(I)}return v===r&&(v=ta(ve,t)),b}return Dt.cancel=kt,Dt.flush=ct,Dt}var xx=he(function(e,t){return Ac(e,1,t)}),hx=he(function(e,t,i){return Ac(e,Ot(t)||0,i)});function wx(e){return as(e,q)}function bn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new zt(c);var i=function(){var p=arguments,d=t?t.apply(this,p):p[0],f=i.cache;if(f.has(d))return f.get(d);var b=e.apply(this,p);return i.cache=f.set(d,b)||f,b};return i.cache=new(bn.Cache||ss),i}bn.Cache=ss;function xn(e){if(typeof e!="function")throw new zt(c);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 vx(e){return Lp(2,e)}var Tx=cg(function(e,t){t=t.length==1&&ye(t[0])?Fe(t[0],wt(ae())):Fe(tt(t,1),wt(ae()));var i=t.length;return he(function(p){for(var d=-1,f=rt(p.length,i);++d<f;)p[d]=t[d].call(this,p[d]);return ht(e,this,p)})}),ro=he(function(e,t){var i=gs(t,mr(ro));return as(e,Q,r,t,i)}),Fp=he(function(e,t){var i=gs(t,mr(Fp));return as(e,C,r,t,i)}),kx=ns(function(e,t){return as(e,V,r,r,r,t)});function Dx(e,t){if(typeof e!="function")throw new zt(c);return t=t===r?t:fe(t),he(e,t)}function Ix(e,t){if(typeof e!="function")throw new zt(c);return t=t==null?0:Ye(fe(t),0),he(function(i){var p=i[t],d=vs(i,0,t);return p&&fs(d,p),ht(e,this,d)})}function Ax(e,t,i){var p=!0,d=!0;if(typeof e!="function")throw new zt(c);return Ue(i)&&(p="leading"in i?!!i.leading:p,d="trailing"in i?!!i.trailing:d),Rp(e,t,{leading:p,maxWait:t,trailing:d})}function qx(e){return Ep(e,1)}function Cx(e,t){return ro(Ui(t),e)}function Sx(){if(!arguments.length)return[];var e=arguments[0];return ye(e)?e:[e]}function zx(e){return Et(e,D)}function Nx(e,t){return t=typeof t=="function"?t:r,Et(e,D,t)}function Ex(e){return Et(e,x|D)}function Lx(e,t){return t=typeof t=="function"?t:r,Et(e,x|D,t)}function Mx(e,t){return t==null||Ic(e,t,Ze(t))}function Kt(e,t){return e===t||e!==e&&t!==t}var Ox=dn(Ci),Px=dn(function(e,t){return e>=t}),Bs=Nc(function(){return arguments}())?Nc:function(e){return He(e)&&ze.call(e,"callee")&&!bc.call(e,"callee")},ye=E.isArray,Rx=Jl?wt(Jl):Wf;function yt(e){return e!=null&&hn(e.length)&&!os(e)}function We(e){return He(e)&&yt(e)}function Fx(e){return e===!0||e===!1||He(e)&&ot(e)==Vt}var Ts=Z_||_o,Bx=ec?wt(ec):Vf;function Ux(e){return He(e)&&e.nodeType===1&&!sa(e)}function $x(e){if(e==null)return!0;if(yt(e)&&(ye(e)||typeof e=="string"||typeof e.splice=="function"||Ts(e)||yr(e)||Bs(e)))return!e.length;var t=at(e);if(t==bt||t==xt)return!e.size;if(ea(e))return!Ni(e).length;for(var i in e)if(ze.call(e,i))return!1;return!0}function Kx(e,t){return Qr(e,t)}function jx(e,t,i){i=typeof i=="function"?i:r;var p=i?i(e,t):r;return p===r?Qr(e,t,r,i):!!p}function ao(e){if(!He(e))return!1;var t=ot(e);return t==Xs||t==Gs||typeof e.message=="string"&&typeof e.name=="string"&&!sa(e)}function Hx(e){return typeof e=="number"&&hc(e)}function os(e){if(!Ue(e))return!1;var t=ot(e);return t==Cs||t==Ia||t==us||t==Qs}function Bp(e){return typeof e=="number"&&e==fe(e)}function hn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pe}function Ue(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function He(e){return e!=null&&typeof e=="object"}var Up=tc?wt(tc):Xf;function Wx(e,t){return e===t||zi(e,t,Gi(t))}function Vx(e,t,i){return i=typeof i=="function"?i:r,zi(e,t,Gi(t),i)}function Gx(e){return $p(e)&&e!=+e}function Xx(e){if(Ng(e))throw new me(l);return Ec(e)}function Yx(e){return e===null}function Qx(e){return e==null}function $p(e){return typeof e=="number"||He(e)&&ot(e)==Gt}function sa(e){if(!He(e)||ot(e)!=qt)return!1;var t=Wa(e);if(t===null)return!0;var i=ze.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&$a.call(i)==W_}var no=sc?wt(sc):Yf;function Zx(e){return Bp(e)&&e>=-pe&&e<=pe}var Kp=rc?wt(rc):Qf;function wn(e){return typeof e=="string"||!ye(e)&&He(e)&&ot(e)==Jt}function Tt(e){return typeof e=="symbol"||He(e)&&ot(e)==Zs}var yr=ac?wt(ac):Zf;function Jx(e){return e===r}function eh(e){return He(e)&&at(e)==ms}function th(e){return He(e)&&ot(e)==Aa}var sh=dn(Ei),rh=dn(function(e,t){return e<=t});function jp(e){if(!e)return[];if(yt(e))return wn(e)?Ut(e):mt(e);if(Kr&&e[Kr])return L_(e[Kr]());var t=at(e),i=t==bt?hi:t==xt?Fa:_r;return i(e)}function ls(e){if(!e)return e===0?e:0;if(e=Ot(e),e===xe||e===-xe){var t=e<0?-1:1;return t*_e}return e===e?e:0}function fe(e){var t=ls(e),i=t%1;return t===t?i?t-i:t:0}function Hp(e){return e?Os(fe(e),0,te):0}function Ot(e){if(typeof e=="number")return e;if(Tt(e))return Ee;if(Ue(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ue(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pc(e);var i=we.test(e);return i||Be.test(e)?g_(e.slice(2),i?2:8):Te.test(e)?Ee:+e}function Wp(e){return Yt(e,_t(e))}function ah(e){return e?Os(fe(e),-pe,pe):e===0?e:0}function Se(e){return e==null?"":vt(e)}var nh=dr(function(e,t){if(ea(t)||yt(t)){Yt(t,Ze(t),e);return}for(var i in t)ze.call(t,i)&&Gr(e,i,t[i])}),Vp=dr(function(e,t){Yt(t,_t(t),e)}),vn=dr(function(e,t,i,p){Yt(t,_t(t),e,p)}),ih=dr(function(e,t,i,p){Yt(t,Ze(t),e,p)}),oh=ns(Ii);function lh(e,t){var i=pr(e);return t==null?i:Dc(i,t)}var ch=he(function(e,t){e=Le(e);var i=-1,p=t.length,d=p>2?t[2]:r;for(d&<(t[0],t[1],d)&&(p=1);++i<p;)for(var f=t[i],b=_t(f),v=-1,I=b.length;++v<I;){var F=b[v],B=e[F];(B===r||Kt(B,or[F])&&!ze.call(e,F))&&(e[F]=f[F])}return e}),ph=he(function(e){return e.push(r,pp),ht(Gp,r,e)});function dh(e,t){return ic(e,ae(t,3),Xt)}function uh(e,t){return ic(e,ae(t,3),qi)}function mh(e,t){return e==null?e:Ai(e,ae(t,3),_t)}function yh(e,t){return e==null?e:Sc(e,ae(t,3),_t)}function _h(e,t){return e&&Xt(e,ae(t,3))}function fh(e,t){return e&&qi(e,ae(t,3))}function gh(e){return e==null?[]:sn(e,Ze(e))}function bh(e){return e==null?[]:sn(e,_t(e))}function io(e,t,i){var p=e==null?r:Ps(e,t);return p===r?i:p}function xh(e,t){return e!=null&&mp(e,t,$f)}function oo(e,t){return e!=null&&mp(e,t,Kf)}var hh=np(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Ka.call(t)),e[t]=i},co(ft)),wh=np(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Ka.call(t)),ze.call(e,t)?e[t].push(i):e[t]=[i]},ae),vh=he(Yr);function Ze(e){return yt(e)?Tc(e):Ni(e)}function _t(e){return yt(e)?Tc(e,!0):Jf(e)}function Th(e,t){var i={};return t=ae(t,3),Xt(e,function(p,d,f){rs(i,t(p,d,f),p)}),i}function kh(e,t){var i={};return t=ae(t,3),Xt(e,function(p,d,f){rs(i,d,t(p,d,f))}),i}var Dh=dr(function(e,t,i){rn(e,t,i)}),Gp=dr(function(e,t,i,p){rn(e,t,i,p)}),Ih=ns(function(e,t){var i={};if(e==null)return i;var p=!1;t=Fe(t,function(f){return f=ws(f,e),p||(p=f.length>1),f}),Yt(e,Wi(e),i),p&&(i=Et(i,x|h|D,hg));for(var d=t.length;d--;)Ri(i,t[d]);return i});function Ah(e,t){return Xp(e,xn(ae(t)))}var qh=ns(function(e,t){return e==null?{}:tg(e,t)});function Xp(e,t){if(e==null)return{};var i=Fe(Wi(e),function(p){return[p]});return t=ae(t),Bc(e,i,function(p,d){return t(p,d[0])})}function Ch(e,t,i){t=ws(t,e);var p=-1,d=t.length;for(d||(d=1,e=r);++p<d;){var f=e==null?r:e[Qt(t[p])];f===r&&(p=d,f=i),e=os(f)?f.call(e):f}return e}function Sh(e,t,i){return e==null?e:Zr(e,t,i)}function zh(e,t,i,p){return p=typeof p=="function"?p:r,e==null?e:Zr(e,t,i,p)}var Yp=lp(Ze),Qp=lp(_t);function Nh(e,t,i){var p=ye(e),d=p||Ts(e)||yr(e);if(t=ae(t,4),i==null){var f=e&&e.constructor;d?i=p?new f:[]:Ue(e)?i=os(f)?pr(Wa(e)):{}:i={}}return(d?St:Xt)(e,function(b,v,I){return t(i,b,v,I)}),i}function Eh(e,t){return e==null?!0:Ri(e,t)}function Lh(e,t,i){return e==null?e:Hc(e,t,Ui(i))}function Mh(e,t,i,p){return p=typeof p=="function"?p:r,e==null?e:Hc(e,t,Ui(i),p)}function _r(e){return e==null?[]:xi(e,Ze(e))}function Oh(e){return e==null?[]:xi(e,_t(e))}function Ph(e,t,i){return i===r&&(i=t,t=r),i!==r&&(i=Ot(i),i=i===i?i:0),t!==r&&(t=Ot(t),t=t===t?t:0),Os(Ot(e),t,i)}function Rh(e,t,i){return t=ls(t),i===r?(i=t,t=0):i=ls(i),e=Ot(e),jf(e,t,i)}function Fh(e,t,i){if(i&&typeof i!="boolean"&<(e,t,i)&&(t=i=r),i===r&&(typeof t=="boolean"?(i=t,t=r):typeof e=="boolean"&&(i=e,e=r)),e===r&&t===r?(e=0,t=1):(e=ls(e),t===r?(t=e,e=0):t=ls(t)),e>t){var p=e;e=t,t=p}if(i||e%1||t%1){var d=wc();return rt(e+d*(t-e+f_("1e-"+((d+"").length-1))),t)}return Mi(e,t)}var Bh=ur(function(e,t,i){return t=t.toLowerCase(),e+(i?Zp(t):t)});function Zp(e){return lo(Se(e).toLowerCase())}function Jp(e){return e=Se(e),e&&e.replace(dt,C_).replace(i_,"")}function Uh(e,t,i){e=Se(e),t=vt(t);var p=e.length;i=i===r?p:Os(fe(i),0,p);var d=i;return i-=t.length,i>=0&&e.slice(i,d)==t}function $h(e){return e=Se(e),e&&Ca.test(e)?e.replace(tr,S_):e}function Kh(e){return e=Se(e),e&&La.test(e)?e.replace(Br,"\\$&"):e}var jh=ur(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Hh=ur(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),Wh=sp("toLowerCase");function Vh(e,t,i){e=Se(e),t=fe(t);var p=t?nr(e):0;if(!t||p>=t)return e;var d=(t-p)/2;return pn(Ya(d),i)+e+pn(Xa(d),i)}function Gh(e,t,i){e=Se(e),t=fe(t);var p=t?nr(e):0;return t&&p<t?e+pn(t-p,i):e}function Xh(e,t,i){e=Se(e),t=fe(t);var p=t?nr(e):0;return t&&p<t?pn(t-p,i)+e:e}function Yh(e,t,i){return i||t==null?t=0:t&&(t=+t),sf(Se(e).replace(Ur,""),t||0)}function Qh(e,t,i){return(i?lt(e,t,i):t===r)?t=1:t=fe(t),Oi(Se(e),t)}function Zh(){var e=arguments,t=Se(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Jh=ur(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()});function ew(e,t,i){return i&&typeof i!="number"&<(e,t,i)&&(t=i=r),i=i===r?te:i>>>0,i?(e=Se(e),e&&(typeof t=="string"||t!=null&&!no(t))&&(t=vt(t),!t&&ar(e))?vs(Ut(e),0,i):e.split(t,i)):[]}var tw=ur(function(e,t,i){return e+(i?" ":"")+lo(t)});function sw(e,t,i){return e=Se(e),i=i==null?0:Os(fe(i),0,e.length),t=vt(t),e.slice(i,i+t.length)==t}function rw(e,t,i){var p=y.templateSettings;i&<(e,t,i)&&(t=r),e=Se(e),t=vn({},t,p,cp);var d=vn({},t.imports,p.imports,cp),f=Ze(d),b=xi(d,f),v,I,F=0,B=t.interpolate||Bt,$="__p += '",X=wi((t.escape||Bt).source+"|"+B.source+"|"+(B===za?Ie:Bt).source+"|"+(t.evaluate||Bt).source+"|$","g"),se="//# sourceURL="+(ze.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++d_+"]")+`
|
121
|
+
`;e.replace(X,function(oe,ve,De,kt,ct,Dt){return De||(De=kt),$+=e.slice(F,Dt).replace(Ma,z_),ve&&(v=!0,$+=`' +
|
122
122
|
__e(`+ve+`) +
|
123
|
-
'`),ct&&(I=!0
|
123
|
+
'`),ct&&(I=!0,$+=`';
|
124
124
|
`+ct+`;
|
125
|
-
__p += '`),De&&(
|
125
|
+
__p += '`),De&&($+=`' +
|
126
126
|
((__t = (`+De+`)) == null ? '' : __t) +
|
127
|
-
'`),
|
128
|
-
`;var
|
129
|
-
|
127
|
+
'`),F=Dt+oe.length,oe}),$+=`';
|
128
|
+
`;var ie=ze.call(t,"variable")&&t.variable;if(!ie)$=`with (obj) {
|
129
|
+
`+$+`
|
130
130
|
}
|
131
|
-
`;else if(G.test(
|
132
|
-
`+(
|
131
|
+
`;else if(G.test(ie))throw new me(u);$=(I?$.replace(Jn,""):$).replace(Rr,"$1").replace(qa,"$1;"),$="function("+(ie||"obj")+`) {
|
132
|
+
`+(ie?"":`obj || (obj = {});
|
133
133
|
`)+"var __t, __p = ''"+(v?", __e = _.escape":"")+(I?`, __j = Array.prototype.join;
|
134
134
|
function print() { __p += __j.call(arguments, '') }
|
135
135
|
`:`;
|
136
|
-
`)
|
137
|
-
}`;var be=td(function(){return qe(f,te+"return "+K).apply(r,b)});if(be.source=K,ao(be))throw be;return be}function aw(e){return Se(e).toLowerCase()}function nw(e){return Se(e).toUpperCase()}function iw(e,t,i){if(e=Se(e),e&&(i||t===r))return pc(e);if(!e||!(t=vt(t)))return e;var p=Ut(e),u=Ut(t),f=dc(p,u),b=uc(p,u)+1;return vs(p,f,b).join("")}function ow(e,t,i){if(e=Se(e),e&&(i||t===r))return e.slice(0,yc(e)+1);if(!e||!(t=vt(t)))return e;var p=Ut(e),u=uc(p,Ut(t))+1;return vs(p,0,u).join("")}function lw(e,t,i){if(e=Se(e),e&&(i||t===r))return e.replace(Ur,"");if(!e||!(t=vt(t)))return e;var p=Ut(e),u=dc(p,Ut(t));return vs(p,u).join("")}function cw(e,t){var i=A,p=O;if(Ue(t)){var u="separator"in t?t.separator:u;i="length"in t?fe(t.length):i,p="omission"in t?vt(t.omission):p}e=Se(e);var f=e.length;if(ar(e)){var b=Ut(e);f=b.length}if(i>=f)return e;var v=i-nr(p);if(v<1)return p;var I=b?vs(b,0,v).join(""):e.slice(0,v);if(u===r)return I+p;if(b&&(v+=I.length-v),no(u)){if(e.slice(v).search(u)){var B,U=I;for(u.global||(u=wi(u.source,Se(Ce.exec(u))+"g")),u.lastIndex=0;B=u.exec(U);)var K=B.index;I=I.slice(0,K===r?v:K)}}else if(e.indexOf(vt(u),v)!=v){var X=I.lastIndexOf(u);X>-1&&(I=I.slice(0,X))}return I+p}function pw(e){return e=Se(e),e&&Fr.test(e)?e.replace(es,R_):e}var dw=ur(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),lo=sp("toUpperCase");function ed(e,t,i){return e=Se(e),t=i?r:t,t===r?E_(e)?U_(e):k_(e):e.match(t)||[]}var td=he(function(e,t){try{return ht(e,r,t)}catch(i){return ao(i)?i:new me(i)}}),uw=ns(function(e,t){return St(t,function(i){i=Qt(i),rs(e,i,so(e[i],e))}),e});function mw(e){var t=e==null?0:e.length,i=ae();return e=t?Fe(e,function(p){if(typeof p[1]!="function")throw new zt(c);return[i(p[0]),p[1]]}):[],he(function(p){for(var u=-1;++u<t;){var f=e[u];if(ht(f[0],this,p))return ht(f[1],this,p)}})}function yw(e){return Ff(Et(e,x))}function co(e){return function(){return e}}function _w(e,t){return e==null||e!==e?t:e}var fw=ap(),gw=ap(!0);function ft(e){return e}function po(e){return Lc(typeof e=="function"?e:Et(e,x))}function bw(e){return Oc(Et(e,x))}function xw(e,t){return Pc(e,Et(t,x))}var hw=he(function(e,t){return function(i){return Yr(i,e,t)}}),ww=he(function(e,t){return function(i){return Yr(e,i,t)}});function uo(e,t,i){var p=Ze(t),u=sn(t,p);i==null&&!(Ue(t)&&(u.length||!p.length))&&(i=t,t=e,e=this,u=sn(t,Ze(t)));var f=!(Ue(i)&&"chain"in i)||!!i.chain,b=os(e);return St(u,function(v){var I=t[v];e[v]=I,b&&(e.prototype[v]=function(){var B=this.__chain__;if(f||B){var U=e(this.__wrapped__),K=U.__actions__=mt(this.__actions__);return K.push({func:I,args:arguments,thisArg:e}),U.__chain__=B,U}return I.apply(e,fs([this.value()],arguments))})}),e}function vw(){return et._===this&&(et._=V_),this}function mo(){}function Tw(e){return e=fe(e),he(function(t){return Rc(t,e)})}var kw=Ki(Fe),Dw=Ki(nc),Iw=Ki(yi);function sd(e){return Yi(e)?_i(Qt(e)):sg(e)}function Aw(e){return function(t){return e==null?r:Ps(e,t)}}var qw=ip(),Cw=ip(!0);function yo(){return[]}function _o(){return!1}function Sw(){return{}}function zw(){return""}function Nw(){return!0}function Ew(e,t){if(e=fe(e),e<1||e>pe)return[];var i=ee,p=rt(e,ee);t=ae(t),e-=ee;for(var u=bi(p,t);++i<e;)t(i);return u}function Lw(e){return ye(e)?Fe(e,Qt):Tt(e)?[e]:mt(vp(Se(e)))}function Mw(e){var t=++H_;return Se(e)+t}var Ow=cn(function(e,t){return e+t},0),Pw=ji("ceil"),Rw=cn(function(e,t){return e/t},1),Fw=ji("floor");function Bw(e){return e&&e.length?tn(e,ft,Ci):r}function Uw(e,t){return e&&e.length?tn(e,ae(t,2),Ci):r}function $w(e){return lc(e,ft)}function Kw(e,t){return lc(e,ae(t,2))}function jw(e){return e&&e.length?tn(e,ft,Ei):r}function Hw(e,t){return e&&e.length?tn(e,ae(t,2),Ei):r}var Ww=cn(function(e,t){return e*t},1),Vw=ji("round"),Gw=cn(function(e,t){return e-t},0);function Xw(e){return e&&e.length?gi(e,ft):0}function Yw(e,t){return e&&e.length?gi(e,ae(t,2)):0}return y.after=bx,y.ary=Ep,y.assign=nh,y.assignIn=Vp,y.assignInWith=vn,y.assignWith=ih,y.at=oh,y.before=Lp,y.bind=so,y.bindAll=uw,y.bindKey=Mp,y.castArray=Sx,y.chain=Sp,y.chunk=Fg,y.compact=Bg,y.concat=Ug,y.cond=mw,y.conforms=yw,y.constant=co,y.countBy=Xb,y.create=lh,y.curry=Op,y.curryRight=Pp,y.debounce=Rp,y.defaults=ch,y.defaultsDeep=ph,y.defer=xx,y.delay=hx,y.difference=$g,y.differenceBy=Kg,y.differenceWith=jg,y.drop=Hg,y.dropRight=Wg,y.dropRightWhile=Vg,y.dropWhile=Gg,y.fill=Xg,y.filter=Qb,y.flatMap=ex,y.flatMapDeep=tx,y.flatMapDepth=sx,y.flatten=Ip,y.flattenDeep=Yg,y.flattenDepth=Qg,y.flip=wx,y.flow=fw,y.flowRight=gw,y.fromPairs=Zg,y.functions=gh,y.functionsIn=bh,y.groupBy=rx,y.initial=eb,y.intersection=tb,y.intersectionBy=sb,y.intersectionWith=rb,y.invert=hh,y.invertBy=wh,y.invokeMap=nx,y.iteratee=po,y.keyBy=ix,y.keys=Ze,y.keysIn=_t,y.map=fn,y.mapKeys=Th,y.mapValues=kh,y.matches=bw,y.matchesProperty=xw,y.memoize=bn,y.merge=Dh,y.mergeWith=Gp,y.method=hw,y.methodOf=ww,y.mixin=uo,y.negate=xn,y.nthArg=Tw,y.omit=Ih,y.omitBy=Ah,y.once=vx,y.orderBy=ox,y.over=kw,y.overArgs=Tx,y.overEvery=Dw,y.overSome=Iw,y.partial=ro,y.partialRight=Fp,y.partition=lx,y.pick=qh,y.pickBy=Xp,y.property=sd,y.propertyOf=Aw,y.pull=ob,y.pullAll=qp,y.pullAllBy=lb,y.pullAllWith=cb,y.pullAt=pb,y.range=qw,y.rangeRight=Cw,y.rearg=kx,y.reject=dx,y.remove=db,y.rest=Dx,y.reverse=eo,y.sampleSize=mx,y.set=Sh,y.setWith=zh,y.shuffle=yx,y.slice=ub,y.sortBy=gx,y.sortedUniq=xb,y.sortedUniqBy=hb,y.split=ew,y.spread=Ix,y.tail=wb,y.take=vb,y.takeRight=Tb,y.takeRightWhile=kb,y.takeWhile=Db,y.tap=Bb,y.throttle=Ax,y.thru=_n,y.toArray=jp,y.toPairs=Yp,y.toPairsIn=Qp,y.toPath=Lw,y.toPlainObject=Wp,y.transform=Nh,y.unary=qx,y.union=Ib,y.unionBy=Ab,y.unionWith=qb,y.uniq=Cb,y.uniqBy=Sb,y.uniqWith=zb,y.unset=Eh,y.unzip=to,y.unzipWith=Cp,y.update=Lh,y.updateWith=Mh,y.values=_r,y.valuesIn=Oh,y.without=Nb,y.words=ed,y.wrap=Cx,y.xor=Eb,y.xorBy=Lb,y.xorWith=Mb,y.zip=Ob,y.zipObject=Pb,y.zipObjectDeep=Rb,y.zipWith=Fb,y.entries=Yp,y.entriesIn=Qp,y.extend=Vp,y.extendWith=vn,uo(y,y),y.add=Ow,y.attempt=td,y.camelCase=Bh,y.capitalize=Zp,y.ceil=Pw,y.clamp=Ph,y.clone=zx,y.cloneDeep=Ex,y.cloneDeepWith=Lx,y.cloneWith=Nx,y.conformsTo=Mx,y.deburr=Jp,y.defaultTo=_w,y.divide=Rw,y.endsWith=Uh,y.eq=Kt,y.escape=$h,y.escapeRegExp=Kh,y.every=Yb,y.find=Zb,y.findIndex=kp,y.findKey=dh,y.findLast=Jb,y.findLastIndex=Dp,y.findLastKey=uh,y.floor=Fw,y.forEach=zp,y.forEachRight=Np,y.forIn=mh,y.forInRight=yh,y.forOwn=_h,y.forOwnRight=fh,y.get=io,y.gt=Ox,y.gte=Px,y.has=xh,y.hasIn=oo,y.head=Ap,y.identity=ft,y.includes=ax,y.indexOf=Jg,y.inRange=Rh,y.invoke=vh,y.isArguments=Bs,y.isArray=ye,y.isArrayBuffer=Rx,y.isArrayLike=yt,y.isArrayLikeObject=We,y.isBoolean=Fx,y.isBuffer=Ts,y.isDate=Bx,y.isElement=Ux,y.isEmpty=$x,y.isEqual=Kx,y.isEqualWith=jx,y.isError=ao,y.isFinite=Hx,y.isFunction=os,y.isInteger=Bp,y.isLength=hn,y.isMap=Up,y.isMatch=Wx,y.isMatchWith=Vx,y.isNaN=Gx,y.isNative=Xx,y.isNil=Qx,y.isNull=Yx,y.isNumber=$p,y.isObject=Ue,y.isObjectLike=He,y.isPlainObject=sa,y.isRegExp=no,y.isSafeInteger=Zx,y.isSet=Kp,y.isString=wn,y.isSymbol=Tt,y.isTypedArray=yr,y.isUndefined=Jx,y.isWeakMap=eh,y.isWeakSet=th,y.join=ab,y.kebabCase=jh,y.last=Mt,y.lastIndexOf=nb,y.lowerCase=Hh,y.lowerFirst=Wh,y.lt=sh,y.lte=rh,y.max=Bw,y.maxBy=Uw,y.mean=$w,y.meanBy=Kw,y.min=jw,y.minBy=Hw,y.stubArray=yo,y.stubFalse=_o,y.stubObject=Sw,y.stubString=zw,y.stubTrue=Nw,y.multiply=Ww,y.nth=ib,y.noConflict=vw,y.noop=mo,y.now=gn,y.pad=Vh,y.padEnd=Gh,y.padStart=Xh,y.parseInt=Yh,y.random=Fh,y.reduce=cx,y.reduceRight=px,y.repeat=Qh,y.replace=Zh,y.result=Ch,y.round=Vw,y.runInContext=k,y.sample=ux,y.size=_x,y.snakeCase=Jh,y.some=fx,y.sortedIndex=mb,y.sortedIndexBy=yb,y.sortedIndexOf=_b,y.sortedLastIndex=fb,y.sortedLastIndexBy=gb,y.sortedLastIndexOf=bb,y.startCase=tw,y.startsWith=sw,y.subtract=Gw,y.sum=Xw,y.sumBy=Yw,y.template=rw,y.times=Ew,y.toFinite=ls,y.toInteger=fe,y.toLength=Hp,y.toLower=aw,y.toNumber=Ot,y.toSafeInteger=ah,y.toString=Se,y.toUpper=nw,y.trim=iw,y.trimEnd=ow,y.trimStart=lw,y.truncate=cw,y.unescape=pw,y.uniqueId=Mw,y.upperCase=dw,y.upperFirst=lo,y.each=zp,y.eachRight=Np,y.first=Ap,uo(y,function(){var e={};return Xt(y,function(t,i){ze.call(y.prototype,i)||(e[i]=t)}),e}(),{chain:!1}),y.VERSION=n,St(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){y[e].placeholder=y}),St(["drop","take"],function(e,t){ke.prototype[e]=function(i){i=i===r?1:Ye(fe(i),0);var p=this.__filtered__&&!t?new ke(this):this.clone();return p.__filtered__?p.__takeCount__=rt(i,p.__takeCount__):p.__views__.push({size:rt(i,ee),type:e+(p.__dir__<0?"Right":"")}),p},ke.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),St(["filter","map","takeWhile"],function(e,t){var i=t+1,p=i==le||i==oe;ke.prototype[e]=function(u){var f=this.clone();return f.__iteratees__.push({iteratee:ae(u,3),type:i}),f.__filtered__=f.__filtered__||p,f}}),St(["head","last"],function(e,t){var i="take"+(t?"Right":"");ke.prototype[e]=function(){return this[i](1).value()[0]}}),St(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");ke.prototype[e]=function(){return this.__filtered__?new ke(this):this[i](1)}}),ke.prototype.compact=function(){return this.filter(ft)},ke.prototype.find=function(e){return this.filter(e).head()},ke.prototype.findLast=function(e){return this.reverse().find(e)},ke.prototype.invokeMap=he(function(e,t){return typeof e=="function"?new ke(this):this.map(function(i){return Yr(i,e,t)})}),ke.prototype.reject=function(e){return this.filter(xn(ae(e)))},ke.prototype.slice=function(e,t){e=fe(e);var i=this;return i.__filtered__&&(e>0||t<0)?new ke(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==r&&(t=fe(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},ke.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ke.prototype.toArray=function(){return this.take(ee)},Xt(ke.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),p=/^(?:head|last)$/.test(t),u=y[p?"take"+(t=="last"?"Right":""):t],f=p||/^find/.test(t);u&&(y.prototype[t]=function(){var b=this.__wrapped__,v=p?[1]:arguments,I=b instanceof ke,B=v[0],U=I||ye(b),K=function(ve){var De=u.apply(y,fs([ve],v));return p&&X?De[0]:De};U&&i&&typeof B=="function"&&B.length!=1&&(I=U=!1);var X=this.__chain__,te=!!this.__actions__.length,ne=f&&!X,be=I&&!te;if(!f&&U){b=be?b:new ke(this);var ie=e.apply(b,v);return ie.__actions__.push({func:_n,args:[K],thisArg:r}),new Nt(ie,X)}return ne&&be?e.apply(this,v):(ie=this.thru(K),ne?p?ie.value()[0]:ie.value():ie)})}),St(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ba[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",p=/^(?:pop|shift)$/.test(e);y.prototype[e]=function(){var u=arguments;if(p&&!this.__chain__){var f=this.value();return t.apply(ye(f)?f:[],u)}return this[i](function(b){return t.apply(ye(b)?b:[],u)})}}),Xt(ke.prototype,function(e,t){var i=y[t];if(i){var p=i.name+"";ze.call(cr,p)||(cr[p]=[]),cr[p].push({name:t,func:i})}}),cr[ln(r,j).name]=[{name:"wrapper",func:r}],ke.prototype.clone=pf,ke.prototype.reverse=df,ke.prototype.value=uf,y.prototype.at=Ub,y.prototype.chain=$b,y.prototype.commit=Kb,y.prototype.next=jb,y.prototype.plant=Wb,y.prototype.reverse=Vb,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Gb,y.prototype.first=y.prototype.head,Kr&&(y.prototype[Kr]=Hb),y},ir=$_();Ns?((Ns.exports=ir)._=ir,pi._=ir):et._=ir}).call(fr)}(ya,ya.exports);var Qu=ya.exports;const Ke="tccScript",js={builtinFunctions:/strategy\.closedtrades\.max_drawdown_percent|strategy\.opentrades\.max_drawdown_percent|strategy\.risk\.max_intraday_filled_orders|strategy\.closedtrades\.max_runup_percent|array\.percentile_linear_interpolation|strategy\.closedtrades\.entry_bar_index|strategy\.opentrades\.max_runup_percent|strategy\.closedtrades\.exit_bar_index|strategy\.closedtrades\.profit_percent|strategy\.closedtrades\.entry_comment|strategy\.opentrades\.entry_bar_index|strategy\.closedtrades\.exit_comment|strategy\.closedtrades\.max_drawdown|strategy\.opentrades\.profit_percent|ta\.percentile_linear_interpolation|strategy\.closedtrades\.entry_price|strategy\.opentrades\.entry_comment|strategy\.closedtrades\.commission|strategy\.closedtrades\.entry_time|strategy\.closedtrades\.exit_price|strategy\.opentrades\.max_drawdown|strategy\.risk\.max_cons_loss_days|strategy\.closedtrades\.exit_time|strategy\.closedtrades\.max_runup|strategy\.opentrades\.entry_price|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|table\.cell_set_text_font_family|strategy\.closedtrades\.entry_id|strategy\.opentrades\.commission|strategy\.opentrades\.entry_time|array\.binary_search_rightmost|array\.percentile_nearest_rank|strategy\.closedtrades\.exit_id|strategy\.opentrades\.max_runup|array\.binary_search_leftmost|strategy\.closedtrades\.profit|strategy\.opentrades\.entry_id|strategy\.risk\.allow_entry_in|strategy\.convert_to_account|box\.set_bottom_right_point|label\.set_text_font_family|strategy\.closedtrades\.size|strategy\.convert_to_symbol|strategy\.default_entry_qty|strategy\.opentrades\.profit|strategy\.risk\.max_drawdown|ta\.percentile_nearest_rank|table\.cell_set_text_halign|table\.cell_set_text_valign|request\.security_lower_tf|table\.cell_set_text_color|box\.set_text_font_family|strategy\.opentrades\.size|table\.cell_set_text_size|matrix\.is_antisymmetric|box\.set_top_left_point|chart\.point\.from_index|matrix\.is_antidiagonal|table\.cell_set_bgcolor|table\.cell_set_tooltip|table\.set_border_color|table\.set_border_width|timeframe\.from_seconds|chart\.point\.from_time|line\.set_second_point|math\.round_to_mintick|matrix\.elements_count|request\.currency_rate|ta\.pivot_point_levels|table\.cell_set_height|table\.set_frame_color|table\.set_frame_width|box\.set_border_color|box\.set_border_style|box\.set_border_width|line\.set_first_point|matrix\.is_stochastic|matrix\.is_triangular|table\.cell_set_width|timeframe\.in_seconds|array\.binary_search|box\.set_rightbottom|box\.set_text_halign|box\.set_text_valign|color\.from_gradient|label\.set_textalign|label\.set_textcolor|matrix\.eigenvectors|matrix\.is_symmetric|matrix\.swap_columns|strategy\.cancel_all|table\.cell_set_text|array\.new_linefill|array\.sort_indices|box\.set_text_color|linefill\.get_line1|linefill\.get_line2|linefill\.set_color|matrix\.eigenvalues|matrix\.is_diagonal|matrix\.is_identity|strategy\.close_all|table\.set_position|ticker\.pointfigure|array\.lastindexof|array\.percentrank|array\.standardize|box\.set_text_size|box\.set_text_wrap|label\.set_tooltip|matrix\.remove_col|matrix\.remove_row|request\.dividends|request\.financial|table\.merge_cells|table\.set_bgcolor|ticker\.heikinashi|array\.covariance|array\.new_string|chart\.point\.copy|matrix\.is_binary|matrix\.is_square|matrix\.submatrix|matrix\.swap_rows|matrix\.transpose|request\.earnings|request\.economic|request\.security|ticker\.linebreak|timeframe\.change|array\.new_color|array\.new_float|array\.new_label|array\.new_table|box\.set_bgcolor|box\.set_lefttop|chart\.point\.new|chart\.point\.now|input\.text_area|input\.timeframe|label\.set_color|label\.set_point|label\.set_style|line\.set_extend|linefill\.delete|polyline\.delete|str\.format_time|str\.replace_all|strategy\.cancel|ticker\.standard|alertcondition|array\.includes|array\.new_bool|array\.new_line|array\.variance|box\.get_bottom|box\.set_bottom|box\.set_extend|label\.get_text|label\.set_size|label\.set_text|label\.set_xloc|label\.set_yloc|line\.get_price|line\.set_color|line\.set_style|line\.set_width|math\.todegrees|math\.toradians|matrix\.add_col|matrix\.add_row|matrix\.columns|matrix\.is_zero|matrix\.reshape|matrix\.reverse|request\.quandl|request\.splits|str\.startswith|strategy\.close|strategy\.entry|strategy\.order|syminfo\.prefix|syminfo\.ticker|ta\.correlation|ta\.highestbars|ta\.percentrank|ticker\.inherit|array\.indexof|array\.new_box|array\.new_int|array\.reverse|array\.unshift|box\.get_right|box\.set_right|input\.session|line\.set_xloc|matrix\.concat|matrix\.median|max_bars_back|runtime\.error|str\.substring|strategy\.exit|ta\.crossunder|ta\.lowestbars|ta\.supertrend|ticker\.modify|array\.concat|array\.insert|array\.median|array\.remove|box\.get_left|box\.set_left|box\.set_text|input\.source|input\.string|input\.symbol|label\.delete|label\.set_xy|line\.set_xy1|line\.set_xy2|linefill\.new|map\.contains|matrix\.trace|polyline\.new|request\.seed|str\.contains|str\.endswith|str\.tonumber|str\.tostring|ta\.barssince|ta\.crossover|ta\.pivothigh|ta\.valuewhen|table\.delete|ticker\.renko|array\.clear|array\.every|array\.first|array\.range|array\.shift|array\.slice|array\.stdev|box\.get_top|box\.set_top|input\.color|input\.float|input\.price|label\.get_x|label\.get_y|label\.set_x|label\.set_y|line\.delete|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.set_x1|line\.set_x2|line\.set_y1|line\.set_y2|log\.warning|map\.put_all|math\.random|matrix\.copy|matrix\.diff|matrix\.fill|matrix\.kron|matrix\.mode|matrix\.mult|matrix\.pinv|matrix\.rank|matrix\.rows|matrix\.sort|str\.replace|ta\.pivotlow|ta\.variance|table\.clear|ticker\.kagi|array\.copy|array\.fill|array\.from|array\.join|array\.last|array\.mode|array\.push|array\.size|array\.some|array\.sort|box\.delete|dayofmonth|input\.bool|input\.time|label\.copy|map\.remove|map\.values|math\.floor|math\.log10|math\.round|matrix\.avg|matrix\.col|matrix\.det|matrix\.get|matrix\.inv|matrix\.max|matrix\.min|matrix\.new|matrix\.pow|matrix\.row|matrix\.set|matrix\.sum|plotcandle|str\.format|str\.length|ta\.falling|ta\.highest|table\.cell|ticker\.new|time_close|weekofyear|array\.abs|array\.avg|array\.get|array\.max|array\.min|array\.new|array\.pop|array\.set|array\.sum|color\.new|color\.rgb|dayofweek|indicator|input\.int|label\.new|line\.copy|log\.error|map\.clear|math\.acos|math\.asin|math\.atan|input\.enum|math\.ceil|math\.sign|math\.sqrt|plotarrow|plotshape|str\.lower|str\.match|str\.split|str\.upper|ta\.change|ta\.linreg|ta\.lowest|ta\.median|ta\.rising|table\.new|timestamp|barcolor|box\.copy|line\.new|linefill|log\.info|map\.copy|map\.keys|map\.size|math\.abs|math\.avg|math\.cos|math\.exp|math\.log|math\.max|math\.min|math\.pow|math\.sin|math\.sum|math\.tan|plotchar|strategy|ta\.cross|ta\.range|ta\.stdev|ta\.stoch|bgcolor|box\.new|color\.b|color\.g|color\.r|color\.t|library|map\.get|map\.new|map\.put|plotbar|str\.pos|ta\.alma|ta\.macd|ta\.mode|ta\.swma|ta\.vwap|ta\.vwma|fixnan|minute|second|string|ta\.atr|ta\.bbw|ta\.cci|ta\.cmo|ta\.cog|ta\.cum|ta\.dev|ta\.dmi|ta\.ema|ta\.hma|ta\.kcw|ta\.max|ta\.mfi|ta\.min|ta\.mom|ta\.rma|ta\.roc|ta\.rsi|ta\.sar|ta\.sma|ta\.tsi|ta\.wma|ta\.wpr|alert|color|float|hline|input|label|month|ta\.bb|ta\.kc|ta\.tr|table|bool|fill|hour|line|plot|time|year|box|int|na|nz/,keywords:/continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to/,tokenizer:{root:[[/\/\/\s*(?=@)/,"comment","@comments"],[/\/\/.*(?!@).*/,"comment"],[/\'([^\'\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/\"/,{token:"string",bracket:"@open",next:"@stringDouble"}],[/(type|enum)\s+[a-zA-Z]\w*/,"entity.name.type"],[/'/,{token:"string",bracket:"@open",next:"@stringSingle"}],[/(@builtinFunctions)(?=\s*\(|\s*<.*>)/,{token:"support.function",next:"@template"}],[/@punctuation/,{token:"punctuation.operator",next:"@property"}],[/(varip|var)\b(\s+)((?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)/,[{token:"keyword"},{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"}]],[/\b(?:@builtinTypes)(?=(\s*)[\[|<|(]|(?=\s+(?=[^.=][\w\(]*))|\s*$)/,{token:"support.type",next:"@template"}],[/^(\s*)\b(?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)([\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)(\s+)(\=)/,[{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"},{token:"source"},{token:"keyword.equals"}]],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|enum|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/import(?=\s+@importName)/,{token:"keyword",next:"@import"}],[/import(?=\s+[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+)/,"keyword"],[/[+-]?\d+\.\d*([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/[+-]?\.\d+([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/([+-]?(\d+))(?!\w+)(?!\w+)/,"constant.numeric.integer"],[/(?:true|false)\b/,"constant.other.boolean"],[/#[0-9a-fA-F]{6,8}\b/,"constant.other.color"],[/\+=|\-=|\*=|\/=|%=|[\/%*+\-]|==|!=|<=|>=|=>|<|>|\?|\:=|\:|\,/,"keyword.operator"],[/\b(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b/,"keyword"],[/^[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,"entity.name.function"],[/[0-9]+\b/,"constant.numeric.integer"],[/=/,"keyword.equals"],[/\b(?:strategy\.commission\.cash_per_contract|strategy\.avg_winning_trade_percent|strategy\.avg_winning_trade|strategy\.avg_losing_trade_percent|strategy\.avg_losing_trade|syminfo\.recommendations_sell_strong|syminfo\.recommendations_buy_strong|strategy\.commission\.cash_per_order|strategy\.margin_liquidation_price|strategy\.max_contracts_held_short|strategy\.max_contracts_held_long|syminfo\.shares_outstanding_float|syminfo\.shares_outstanding_total|barstate\.islastconfirmedhistory|earnings\.future_period_end_time|strategy\.max_contracts_held_all|syminfo\.target_price_estimates|strategy\.max_drawdown_percent|syminfo\.recommendations_total|alert\.freq_once_per_bar_close|label\.style_label_lower_right|label\.style_label_upper_right|chart\.right_visible_bar_time|strategy\.grossprofit_percent|strategy\.position_entry_name|syminfo\.recommendations_date|syminfo\.recommendations_hold|syminfo\.recommendations_sell|syminfo\.target_price_average|label\.style_label_lower_left|label\.style_label_upper_left|chart\.left_visible_bar_time|strategy\.openprofit_percent|strategy\.position_avg_price|syminfo\.recommendations_buy|syminfo\.target_price_median|plot\.style_stepline_diamond|strategy\.commission\.percent|session\.isfirstbar_regular|strategy\.grossloss_percent|strategy\.max_runup_percent|strategy\.netprofit_percent|strategy\.percent_of_equity|session\.islastbar_regular|strategy\.account_currency|syminfo\.target_price_date|syminfo\.target_price_high|dividends\.future_pay_date|strategy\.initial_capital|syminfo\.target_price_low|dividends\.future_ex_date|label\.style_label_center|label\.style_text_outline|label\.style_triangledown|strategy\.direction\.short|earnings\.future_revenue|alert\.freq_once_per_bar|dividends\.future_amount|label\.style_label_right|strategy\.direction\.long|strategy\.position_size|barmerge\.lookahead_off|label\.style_label_down|label\.style_label_left|label\.style_triangleup|line\.style_arrow_right|position\.bottom_center|position\.middle_center|strategy\.direction\.all|strategy\.closedtrades|strategy\.max_drawdown|barmerge\.lookahead_on|earnings\.standardized|font\.family_monospace|label\.style_arrowdown|line\.style_arrow_both|line\.style_arrow_left|plot\.style_steplinebr|position\.bottom_right|position\.middle_right|barstate\.isconfirmed|earnings\.future_time|session\.ispostmarket|strategy\.grossprofit|syminfo\.basecurrency|syminfo\.shareholders|timeframe\.isintraday|timeframe\.multiplier|adjustment\.dividends|label\.style_label_up|plot\.style_histogram|position\.bottom_left|position\.middle_left|barstate\.isrealtime|chart\.is_heikinashi|earnings\.future_eps|session\.ispremarket|strategy\.eventrades|strategy\.losstrades|strategy\.openprofit|strategy\.opentrades\.capital_held|strategy\.opentrades|syminfo\.description|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|dayofweek\.wednesday|display\.data_window|display\.price_scale|display\.status_line|font\.family_default|label\.style_arrowup|label\.style_diamond|plot\.style_stepline|position\.top_center|strategy\.oca\.cancel|strategy\.oca\.reduce|barstate\.ishistory|chart\.is_linebreak|session\.isfirstbar|strategy\.grossloss|strategy\.max_runup|strategy\.netprofit|strategy\.wintrades|syminfo\.pointvalue|syminfo\.pricescale|syminfo\.volumetype|timeframe\.isweekly|dayofweek\.saturday|dayofweek\.thursday|hline\.style_dashed|hline\.style_dotted|label\.style_circle|label\.style_square|label\.style_xcross|plot\.style_circles|plot\.style_columns|position\.top_right|shape\.triangledown|splits\.denominator|chart\.is_standard|session\.islastbar|syminfo\.employees|timeframe\.isdaily|adjustment\.splits|barmerge\.gaps_off|dayofweek\.tuesday|earnings\.estimate|hline\.style_solid|label\.style_cross|line\.style_dashed|line\.style_dotted|location\.abovebar|location\.absolute|location\.belowbar|plot\.style_areabr|plot\.style_linebr|position\.top_left|strategy\.oca\.none|text\.align_bottom|text\.align_center|barstate\.isfirst|session\.ismarket|syminfo\.currency|syminfo\.industry|syminfo\.tickerid|syminfo\.timezone|timeframe\.period|barmerge\.gaps_on|dayofweek\.friday|dayofweek\.monday|dayofweek\.sunday|label\.style_flag|label\.style_none|line\.style_solid|order\.descending|plot\.style_cross|session\.extended|shape\.triangleup|splits\.numerator|text\.align_right|barstate\.islast|strategy\.equity|syminfo\.country|syminfo\.minmove|syminfo\.mintick|syminfo\.session|time_tradingday|timeframe\.isdwm|adjustment\.none|dividends\.gross|earnings\.actual|location\.bottom|order\.ascending|plot\.style_area|plot\.style_line|session\.regular|shape\.arrowdown|shape\.labeldown|text\.align_left|barstate\.isnew|chart\.bg_color|chart\.fg_color|chart\.is_range|chart\.is_renko|last_bar_index|strategy\.short|syminfo\.prefix|syminfo\.sector|syminfo\.ticker|alert\.freq_all|format\.inherit|format\.mintick|format\.percent|strategy\.fixed|text\.align_top|text\.wrap_auto|text\.wrap_none|xloc\.bar_index|chart\.is_kagi|last_bar_time|strategy\.long|color\.fuchsia|currency\.NONE|currency\.USDT|dividends\.net|format\.volume|shape\.arrowup|shape\.diamond|shape\.labelup|strategy\.cash|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|chart\.is_pnf|linefill\.all|polyline\.all|syminfo\.root|syminfo\.type|color\.maroon|color\.orange|color\.purple|color\.silver|color\.yellow|currency\.AUD|currency\.BTC|currency\.CAD|currency\.CHF|currency\.ETH|currency\.EUR|currency\.GBP|currency\.HKD|currency\.INR|currency\.JPY|currency\.KRW|currency\.MYR|currency\.NOK|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|display\.none|display\.pane|extend\.right|format\.price|location\.top|shape\.circle|shape\.square|shape\.xcross|color\.black|color\.green|color\.olive|color\.white|display\.all|extend\.both|extend\.left|extend\.none|scale\.right|shape\.cross|size\.normal|dayofmonth|ta\.accdist|time_close|weekofyear|color\.aqua|color\.blue|color\.gray|color\.lime|color\.navy|color\.teal|scale\.left|scale\.none|shape\.flag|size\.large|size\.small|yloc\.price|bar_index|dayofweek|label\.all|table\.all|color\.red|math\.rphi|size\.auto|size\.huge|size\.tiny|line\.all|math\.phi|box\.all|ta\.vwap|ta\.wvad|timenow|math\.pi|minute|second|ta\.iii|ta\.nvi|ta\.obv|ta\.pvi|ta\.pvt|ta\.wad|volume|math\.e|close|hlcc4|month|ohlc4|ta\.tr|false|high|hlc3|hour|open|time|year|true|hl2|low|na)\b(?!\s*=\s*\w+)/,"support.variable"],[/[(|)|\[|\]]/,"paren"],[/[a-zA-Z_][a-zA-Z_0-9]*(?=\s*\()/,{token:"entity.name.method"}],[/\w+\b/,"variable.other"]],comments:[[/@[A-Za-z]+(\s*=\s*)?$/,{token:"comment.annotation",next:"@pop"}],[/@[A-Za-z]+(\s*=\s*)?/,{token:"comment.annotation"}],[/(?!\s*@[A-Za-z]+).+$/,{token:"comment",next:"@pop"}]],stringDouble:[[/[^\\\"]+/,"string"],[/\\./,"string.invalid"],[/\"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/\\./,"string.invalid"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],template:[[/(@builtinTypes)/,{token:"support.type"}],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|enum|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/\(|\)|\[|\]|\=|\>/,{token:"paren",next:"@pop"}],[/(\,)(\s+)/,["keyword.operator","source"]],[/(\,)/,{token:"keyword.operator"}],[/([\w.\d$]+)/,{token:"entity.name.type"}],[/(<|>)/,{token:"paren"}],[/\s(?=\w)|$/,{token:"source",next:"@pop"}]],property:[[/@punctuation/,{token:"punctuation.operator"}],[/(@builtinTypes)(?=\s*[(])/,{token:"support.method",next:"@pop"}],[/[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,{token:"entity.name.method",next:"@pop"}],[/[a-zA-Z0-9_]+/,{token:"variable.other.property",next:"@pop"}],[/@empty/,{token:"source",next:"@pop"}]],import:[[/\s+/,{token:"source"}],[/(@importName)(\s+)(as\b)(\s+)(@importAlias)/,[{token:"entity.name.module"},{token:"source"},{token:"keyword"},{token:"source"},{token:"entity.name.module.name",next:"@pop"}]],[/@importName/,{token:"entity.name.module",next:"@pop"}]]},builtinTypes:/chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map/,punctuation:/[.](?![.])/,importName:/[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+/,importAlias:/[a-zA-Z\d\_\u00a1\uffff\/]+/,empty:/^$/};var At;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(At||(At={}));const En={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["[","]"]],folding:{markers:{start:/(\/\/#region)|(\/\/.*{($|\s))/,end:/(\/\/#endregion)|(\/\/.*}($|\s))/}},autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:/\)\s*=>\s*$/,action:{indentAction:At.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/else/,action:{indentAction:At.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:At.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:At.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:At.Indent}},{beforeText:/enum\s+\w+/,action:{indentAction:At.Indent}},{beforeText:/^\s*$/,action:{indentAction:At.Outdent}}]},M={"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 Wt(a,s=1){return a+Math.round(255*Math.min(Math.max(s,0),1)).toString(16).toUpperCase().padStart(2,"0")}const Ln={base:"vs",inherit:!0,rules:[{token:"comment",foreground:M["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:M["color-cold-gray-900"]},{token:"string",foreground:M["color-iguana-green-700"]},{token:"constant.numeric",foreground:M["color-banana-yellow-900"]},{token:"constant.language",foreground:M["color-ripe-red-a600"]},{token:"constant.other.color",foreground:M["color-ripe-red-a600"]},{token:"constant.other",foreground:M["color-ripe-red-a600"]},{token:"support.variable",foreground:M["color-ripe-red-a600"]},{token:"support.function",foreground:M["color-tv-blue-a600"]},{token:"support.type",foreground:M["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:M["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:M["color-tv-blue-a600"]},{token:"keyword.equals",foreground:M["color-minty-green-400"]},{token:"keyword.operator",foreground:M["color-minty-green-400"]},{token:"keyword.other",foreground:M["color-minty-green-400"]},{token:"keyword",foreground:M["color-minty-green-400"]},{token:"variable.other",foreground:M["color-cold-gray-800"]},{token:"variable.other.property",foreground:M["color-cold-gray-800"]},{token:"paren",foreground:M["color-black"]},{token:"entity.name.function",foreground:M["color-tv-blue-900"]},{token:"entity.name.method",foreground:M["color-tv-blue-900"]},{token:"meta.function-call",foreground:M["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:M["color-grapes-purple-600"]},{token:"entity.name.module",foreground:M["color-tv-blue-a600"]},{token:"",background:M["color-white"]}],colors:{"editor.foreground":M["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":M["color-cold-gray-400"],"editorLineNumber.activeForeground":M["color-cold-gray-700"],"editorHoverWidget.background":M["color-white"],"editorHoverWidget.statusBarBackground":M["color-cold-gray-150"],"editorHoverWidget.foreground":M["color-cold-gray-900"],"editorWidget.background":M["color-white"],"editorWidget.foreground":M["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Wt(M["color-cold-gray-200"],.5),"editor.lineHighlightBackground":M["color-tv-blue-50"],"editor.lineHighlightBorder":M["color-tv-blue-50"],"editor.rangeHighlightBackground":M["color-tv-blue-100"],"editorBracketMatch.background":M["color-cold-gray-150"],"editor.selectionBackground":M["color-tv-blue-100"],"editor.selectionHighlightBackground":M["color-tv-blue-50"],"editor.findMatchBackground":M["color-tan-orange-100"],"editor.findMatchHighlightBackground":M["color-tan-orange-100"],"editor.findMatchBorder":M["color-tan-orange-500"],"list.foreground":M["color-cold-gray-900"],"list.hoverForeground":M["color-cold-gray-900"],"list.activeSelectionBackground":M["color-tv-blue-500"],"list.hoverBackground":M["color-tv-blue-50"],"list.focusHighlightForeground":M["color-tv-blue-100"],"list.inactiveSelectionBackground":M["color-tv-blue-500"],"keybindingLabel.background":M["color-white"],"keybindingLabel.foreground":M["color-cold-gray-900"],"keybindingLabel.border":M["color-cold-gray-150"],"input.foreground":M["color-cold-gray-900"],"textLink.foreground":M["color-tv-blue-500"],"textLink.activeForeground":M["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":M["color-tan-orange-100"],"peekViewResult.lineForeground":M["color-cold-gray-900"],"editorMarkerNavigationWarning.background":M["color-banana-yellow-800"],"inputValidation.warningBackground":M["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Wt(M["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Wt(M["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Wt(M["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Wt(M["color-ripe-red-500"],.15),"editorInlayHint.background":M["color-cold-gray-150"],"editorInlayHint.foreground":M["color-cold-gray-550"],"editorError.foreground":M["color-ripe-red-500"],"editorWarning.foreground":M["color-tan-orange-500"]}},Mn={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:M["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:M["color-white"]},{token:"string",foreground:M["color-iguana-green-700"]},{token:"constant.numeric",foreground:M["color-banana-yellow-900"]},{token:"constant.language",foreground:M["color-ripe-red-300"]},{token:"constant.other.color",foreground:M["color-ripe-red-300"]},{token:"constant.other",foreground:M["color-ripe-red-300"]},{token:"support.variable",foreground:M["color-ripe-red-300"]},{token:"support.function",foreground:M["color-tv-blue-300"]},{token:"support.method",foreground:M["color-tv-blue-300"]},{token:"support.type",foreground:M["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:M["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:M["color-minty-green-300"]},{token:"keyword.operator",foreground:M["color-minty-green-300"]},{token:"keyword.other",foreground:M["color-minty-green-300"]},{token:"keyword",foreground:M["color-minty-green-300"]},{token:"variable.other",foreground:M["color-cold-gray-200"]},{token:"variable.other.property",foreground:M["color-cold-gray-200"]},{token:"paren",foreground:M["color-white"]},{token:"entity.name.function",foreground:M["color-tv-blue-400"]},{token:"entity.name.method",foreground:M["color-tv-blue-400"]},{token:"meta.function-call",foreground:M["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:M["color-grapes-purple-300"]},{token:"entity.name.module",foreground:M["color-tv-blue-300"]},{token:"",background:M["color-cold-gray-900"]}],colors:{"editor.foreground":M["color-white"],"editor.background":M["color-cold-gray-900"],"editorLineNumber.foreground":M["color-cold-gray-500"],"editorLineNumber.activeForeground":M["color-cold-gray-300"],"editorWidget.background":M["color-cold-gray-850"],"editorHoverWidget.background":M["color-cold-gray-850"],"editorHoverWidget.foreground":M["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":M["color-cold-gray-900"],"editorWidget.foreground":M["color-cold-gray-300"],"editorGutter.background":M["color-cold-gray-900"],"editor.foldBackground":Wt(M["color-cold-gray-700"],.5),"editor.lineHighlightBackground":M["color-tv-blue-a900"],"editor.lineHighlightBorder":M["color-tv-blue-a900"],"editor.rangeHighlightBackground":M["color-tv-blue-a800"],"editorBracketMatch.background":M["color-cold-gray-750"],"editor.selectionBackground":M["color-tv-blue-a800"],"editor.selectionHighlightBackground":M["color-cold-gray-800"],"list.foreground":M["color-cold-gray-350"],"list.hoverForeground":M["color-cold-gray-350"],"list.activeSelectionBackground":M["color-tv-blue-500"],"list.hoverBackground":M["color-tv-blue-900"],"list.focusHighlightForeground":M["color-tv-blue-300"],"list.inactiveSelectionBackground":M["color-tv-blue-500"],"keybindingLabel.background":M["color-cold-gray-800"],"keybindingLabel.foreground":M["color-cold-gray-300"],"keybindingLabel.border":M["color-cold-gray-700"],"input.foreground":M["color-cold-gray-350"],"textLink.foreground":M["color-tv-blue-500"],"textLink.activeForeground":M["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":M["color-tan-orange-a800"],"peekViewResult.lineForeground":M["color-cold-gray-350"],"diffEditor.insertedTextBackground":Wt(M["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Wt(M["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Wt(M["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Wt(M["color-ripe-red-a400"],.15),"editorInlayHint.background":M["color-cold-gray-800"],"editorInlayHint.foreground":M["color-cold-gray-400"],"editorError.foreground":M["color-ripe-red-500"],"editorWarning.foreground":M["color-tan-orange-700"]}},Zu=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Ju=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,Go={"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"},{t:em}=Me;class tm{constructor(s){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(r=[],n)=>{const o=new Map,l=n.indexOf("(");for(let c=l+1,d=l;c<n.length;c++)n[c]!==","&&n[c]!==")"||(d++,o.set(n.slice(d,c),d),d=c+1);return r.map(({name:c="",displayType:d,desc:m})=>{const _=[],g=o.get(c),x=g+c.length;return _.push(this._formatter.paragraph(this._formatter.bold(c),this._formatter.italic(d||""))),m&&_.push(Array.isArray(m)?m.join(this._formatter.lineBreak):m),{label:[g,x],documentation:{value:_.join(this._formatter.lineBreak)}}})}}),this._formatter=ge,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(s)}getSignatureHelpValues(s,r,n=0,o=0){var _;const l=this._getFuncItems(s);if(!(l!=null&&l.length))return null;const c=this._getSequentialSignatures(s,l),d=this._getActiveIndex(l,r),m=(_=Ds.overloadsFuncs)==null?void 0:_.find(g=>g.name===s&&g.startColumn===n&&o===g.line);return m&&(d.activeSignature=Number(m.index)),{signatures:c,...d}}_getActiveIndex(s,r=[]){let n=0,o=-1;r.some(c=>!!c)||(o=r.length-1);const l=r.pop();if(l)for(const[c,d]of s.entries()){const{args:m}=d;if(m&&m.length){const _=m.findIndex(g=>g.name===l);if(_!=-1){o=_,n=c;break}}}return{activeParameter:o,activeSignature:n}}_getFuncItems(s){return nt.functions.get(s)||Pt.userFuncs.get(s)||Pt.methodFuncs.get(s)}_getSequentialSignatures(s,r){return r.map(n=>{const o=this._getSignatureLabel(s,n);return{label:o,documentation:this._getFormattedSignatureDocumentation(n),parameters:this._getSignatureParams(n.args,o)}})}_getSignatureLabel(s,r,n=!1){const o=[s];return n&&o.push("<type>"),r.args&&(o.push("("),o.push(r.args.map(({name:l})=>l).join(", ")),o.push(")")),o.join("")}_getFormattedSignatureDocumentation(s){const{desc:r}=s,n=[];r&&n.push(Array.isArray(r)?r.join(this._formatter.lineBreak):r);const o=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
|
136
|
+
`)+$+`return __p
|
137
|
+
}`;var be=td(function(){return qe(f,se+"return "+$).apply(r,b)});if(be.source=$,ao(be))throw be;return be}function aw(e){return Se(e).toLowerCase()}function nw(e){return Se(e).toUpperCase()}function iw(e,t,i){if(e=Se(e),e&&(i||t===r))return pc(e);if(!e||!(t=vt(t)))return e;var p=Ut(e),d=Ut(t),f=dc(p,d),b=uc(p,d)+1;return vs(p,f,b).join("")}function ow(e,t,i){if(e=Se(e),e&&(i||t===r))return e.slice(0,yc(e)+1);if(!e||!(t=vt(t)))return e;var p=Ut(e),d=uc(p,Ut(t))+1;return vs(p,0,d).join("")}function lw(e,t,i){if(e=Se(e),e&&(i||t===r))return e.replace(Ur,"");if(!e||!(t=vt(t)))return e;var p=Ut(e),d=dc(p,Ut(t));return vs(p,d).join("")}function cw(e,t){var i=A,p=L;if(Ue(t)){var d="separator"in t?t.separator:d;i="length"in t?fe(t.length):i,p="omission"in t?vt(t.omission):p}e=Se(e);var f=e.length;if(ar(e)){var b=Ut(e);f=b.length}if(i>=f)return e;var v=i-nr(p);if(v<1)return p;var I=b?vs(b,0,v).join(""):e.slice(0,v);if(d===r)return I+p;if(b&&(v+=I.length-v),no(d)){if(e.slice(v).search(d)){var F,B=I;for(d.global||(d=wi(d.source,Se(Ce.exec(d))+"g")),d.lastIndex=0;F=d.exec(B);)var $=F.index;I=I.slice(0,$===r?v:$)}}else if(e.indexOf(vt(d),v)!=v){var X=I.lastIndexOf(d);X>-1&&(I=I.slice(0,X))}return I+p}function pw(e){return e=Se(e),e&&Fr.test(e)?e.replace(es,R_):e}var dw=ur(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),lo=sp("toUpperCase");function ed(e,t,i){return e=Se(e),t=i?r:t,t===r?E_(e)?U_(e):k_(e):e.match(t)||[]}var td=he(function(e,t){try{return ht(e,r,t)}catch(i){return ao(i)?i:new me(i)}}),uw=ns(function(e,t){return St(t,function(i){i=Qt(i),rs(e,i,so(e[i],e))}),e});function mw(e){var t=e==null?0:e.length,i=ae();return e=t?Fe(e,function(p){if(typeof p[1]!="function")throw new zt(c);return[i(p[0]),p[1]]}):[],he(function(p){for(var d=-1;++d<t;){var f=e[d];if(ht(f[0],this,p))return ht(f[1],this,p)}})}function yw(e){return Ff(Et(e,x))}function co(e){return function(){return e}}function _w(e,t){return e==null||e!==e?t:e}var fw=ap(),gw=ap(!0);function ft(e){return e}function po(e){return Lc(typeof e=="function"?e:Et(e,x))}function bw(e){return Oc(Et(e,x))}function xw(e,t){return Pc(e,Et(t,x))}var hw=he(function(e,t){return function(i){return Yr(i,e,t)}}),ww=he(function(e,t){return function(i){return Yr(e,i,t)}});function uo(e,t,i){var p=Ze(t),d=sn(t,p);i==null&&!(Ue(t)&&(d.length||!p.length))&&(i=t,t=e,e=this,d=sn(t,Ze(t)));var f=!(Ue(i)&&"chain"in i)||!!i.chain,b=os(e);return St(d,function(v){var I=t[v];e[v]=I,b&&(e.prototype[v]=function(){var F=this.__chain__;if(f||F){var B=e(this.__wrapped__),$=B.__actions__=mt(this.__actions__);return $.push({func:I,args:arguments,thisArg:e}),B.__chain__=F,B}return I.apply(e,fs([this.value()],arguments))})}),e}function vw(){return et._===this&&(et._=V_),this}function mo(){}function Tw(e){return e=fe(e),he(function(t){return Rc(t,e)})}var kw=Ki(Fe),Dw=Ki(nc),Iw=Ki(yi);function sd(e){return Yi(e)?_i(Qt(e)):sg(e)}function Aw(e){return function(t){return e==null?r:Ps(e,t)}}var qw=ip(),Cw=ip(!0);function yo(){return[]}function _o(){return!1}function Sw(){return{}}function zw(){return""}function Nw(){return!0}function Ew(e,t){if(e=fe(e),e<1||e>pe)return[];var i=te,p=rt(e,te);t=ae(t),e-=te;for(var d=bi(p,t);++i<e;)t(i);return d}function Lw(e){return ye(e)?Fe(e,Qt):Tt(e)?[e]:mt(vp(Se(e)))}function Mw(e){var t=++H_;return Se(e)+t}var Ow=cn(function(e,t){return e+t},0),Pw=ji("ceil"),Rw=cn(function(e,t){return e/t},1),Fw=ji("floor");function Bw(e){return e&&e.length?tn(e,ft,Ci):r}function Uw(e,t){return e&&e.length?tn(e,ae(t,2),Ci):r}function $w(e){return lc(e,ft)}function Kw(e,t){return lc(e,ae(t,2))}function jw(e){return e&&e.length?tn(e,ft,Ei):r}function Hw(e,t){return e&&e.length?tn(e,ae(t,2),Ei):r}var Ww=cn(function(e,t){return e*t},1),Vw=ji("round"),Gw=cn(function(e,t){return e-t},0);function Xw(e){return e&&e.length?gi(e,ft):0}function Yw(e,t){return e&&e.length?gi(e,ae(t,2)):0}return y.after=bx,y.ary=Ep,y.assign=nh,y.assignIn=Vp,y.assignInWith=vn,y.assignWith=ih,y.at=oh,y.before=Lp,y.bind=so,y.bindAll=uw,y.bindKey=Mp,y.castArray=Sx,y.chain=Sp,y.chunk=Fg,y.compact=Bg,y.concat=Ug,y.cond=mw,y.conforms=yw,y.constant=co,y.countBy=Xb,y.create=lh,y.curry=Op,y.curryRight=Pp,y.debounce=Rp,y.defaults=ch,y.defaultsDeep=ph,y.defer=xx,y.delay=hx,y.difference=$g,y.differenceBy=Kg,y.differenceWith=jg,y.drop=Hg,y.dropRight=Wg,y.dropRightWhile=Vg,y.dropWhile=Gg,y.fill=Xg,y.filter=Qb,y.flatMap=ex,y.flatMapDeep=tx,y.flatMapDepth=sx,y.flatten=Ip,y.flattenDeep=Yg,y.flattenDepth=Qg,y.flip=wx,y.flow=fw,y.flowRight=gw,y.fromPairs=Zg,y.functions=gh,y.functionsIn=bh,y.groupBy=rx,y.initial=eb,y.intersection=tb,y.intersectionBy=sb,y.intersectionWith=rb,y.invert=hh,y.invertBy=wh,y.invokeMap=nx,y.iteratee=po,y.keyBy=ix,y.keys=Ze,y.keysIn=_t,y.map=fn,y.mapKeys=Th,y.mapValues=kh,y.matches=bw,y.matchesProperty=xw,y.memoize=bn,y.merge=Dh,y.mergeWith=Gp,y.method=hw,y.methodOf=ww,y.mixin=uo,y.negate=xn,y.nthArg=Tw,y.omit=Ih,y.omitBy=Ah,y.once=vx,y.orderBy=ox,y.over=kw,y.overArgs=Tx,y.overEvery=Dw,y.overSome=Iw,y.partial=ro,y.partialRight=Fp,y.partition=lx,y.pick=qh,y.pickBy=Xp,y.property=sd,y.propertyOf=Aw,y.pull=ob,y.pullAll=qp,y.pullAllBy=lb,y.pullAllWith=cb,y.pullAt=pb,y.range=qw,y.rangeRight=Cw,y.rearg=kx,y.reject=dx,y.remove=db,y.rest=Dx,y.reverse=eo,y.sampleSize=mx,y.set=Sh,y.setWith=zh,y.shuffle=yx,y.slice=ub,y.sortBy=gx,y.sortedUniq=xb,y.sortedUniqBy=hb,y.split=ew,y.spread=Ix,y.tail=wb,y.take=vb,y.takeRight=Tb,y.takeRightWhile=kb,y.takeWhile=Db,y.tap=Bb,y.throttle=Ax,y.thru=_n,y.toArray=jp,y.toPairs=Yp,y.toPairsIn=Qp,y.toPath=Lw,y.toPlainObject=Wp,y.transform=Nh,y.unary=qx,y.union=Ib,y.unionBy=Ab,y.unionWith=qb,y.uniq=Cb,y.uniqBy=Sb,y.uniqWith=zb,y.unset=Eh,y.unzip=to,y.unzipWith=Cp,y.update=Lh,y.updateWith=Mh,y.values=_r,y.valuesIn=Oh,y.without=Nb,y.words=ed,y.wrap=Cx,y.xor=Eb,y.xorBy=Lb,y.xorWith=Mb,y.zip=Ob,y.zipObject=Pb,y.zipObjectDeep=Rb,y.zipWith=Fb,y.entries=Yp,y.entriesIn=Qp,y.extend=Vp,y.extendWith=vn,uo(y,y),y.add=Ow,y.attempt=td,y.camelCase=Bh,y.capitalize=Zp,y.ceil=Pw,y.clamp=Ph,y.clone=zx,y.cloneDeep=Ex,y.cloneDeepWith=Lx,y.cloneWith=Nx,y.conformsTo=Mx,y.deburr=Jp,y.defaultTo=_w,y.divide=Rw,y.endsWith=Uh,y.eq=Kt,y.escape=$h,y.escapeRegExp=Kh,y.every=Yb,y.find=Zb,y.findIndex=kp,y.findKey=dh,y.findLast=Jb,y.findLastIndex=Dp,y.findLastKey=uh,y.floor=Fw,y.forEach=zp,y.forEachRight=Np,y.forIn=mh,y.forInRight=yh,y.forOwn=_h,y.forOwnRight=fh,y.get=io,y.gt=Ox,y.gte=Px,y.has=xh,y.hasIn=oo,y.head=Ap,y.identity=ft,y.includes=ax,y.indexOf=Jg,y.inRange=Rh,y.invoke=vh,y.isArguments=Bs,y.isArray=ye,y.isArrayBuffer=Rx,y.isArrayLike=yt,y.isArrayLikeObject=We,y.isBoolean=Fx,y.isBuffer=Ts,y.isDate=Bx,y.isElement=Ux,y.isEmpty=$x,y.isEqual=Kx,y.isEqualWith=jx,y.isError=ao,y.isFinite=Hx,y.isFunction=os,y.isInteger=Bp,y.isLength=hn,y.isMap=Up,y.isMatch=Wx,y.isMatchWith=Vx,y.isNaN=Gx,y.isNative=Xx,y.isNil=Qx,y.isNull=Yx,y.isNumber=$p,y.isObject=Ue,y.isObjectLike=He,y.isPlainObject=sa,y.isRegExp=no,y.isSafeInteger=Zx,y.isSet=Kp,y.isString=wn,y.isSymbol=Tt,y.isTypedArray=yr,y.isUndefined=Jx,y.isWeakMap=eh,y.isWeakSet=th,y.join=ab,y.kebabCase=jh,y.last=Mt,y.lastIndexOf=nb,y.lowerCase=Hh,y.lowerFirst=Wh,y.lt=sh,y.lte=rh,y.max=Bw,y.maxBy=Uw,y.mean=$w,y.meanBy=Kw,y.min=jw,y.minBy=Hw,y.stubArray=yo,y.stubFalse=_o,y.stubObject=Sw,y.stubString=zw,y.stubTrue=Nw,y.multiply=Ww,y.nth=ib,y.noConflict=vw,y.noop=mo,y.now=gn,y.pad=Vh,y.padEnd=Gh,y.padStart=Xh,y.parseInt=Yh,y.random=Fh,y.reduce=cx,y.reduceRight=px,y.repeat=Qh,y.replace=Zh,y.result=Ch,y.round=Vw,y.runInContext=k,y.sample=ux,y.size=_x,y.snakeCase=Jh,y.some=fx,y.sortedIndex=mb,y.sortedIndexBy=yb,y.sortedIndexOf=_b,y.sortedLastIndex=fb,y.sortedLastIndexBy=gb,y.sortedLastIndexOf=bb,y.startCase=tw,y.startsWith=sw,y.subtract=Gw,y.sum=Xw,y.sumBy=Yw,y.template=rw,y.times=Ew,y.toFinite=ls,y.toInteger=fe,y.toLength=Hp,y.toLower=aw,y.toNumber=Ot,y.toSafeInteger=ah,y.toString=Se,y.toUpper=nw,y.trim=iw,y.trimEnd=ow,y.trimStart=lw,y.truncate=cw,y.unescape=pw,y.uniqueId=Mw,y.upperCase=dw,y.upperFirst=lo,y.each=zp,y.eachRight=Np,y.first=Ap,uo(y,function(){var e={};return Xt(y,function(t,i){ze.call(y.prototype,i)||(e[i]=t)}),e}(),{chain:!1}),y.VERSION=n,St(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){y[e].placeholder=y}),St(["drop","take"],function(e,t){ke.prototype[e]=function(i){i=i===r?1:Ye(fe(i),0);var p=this.__filtered__&&!t?new ke(this):this.clone();return p.__filtered__?p.__takeCount__=rt(i,p.__takeCount__):p.__views__.push({size:rt(i,te),type:e+(p.__dir__<0?"Right":"")}),p},ke.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),St(["filter","map","takeWhile"],function(e,t){var i=t+1,p=i==ne||i==le;ke.prototype[e]=function(d){var f=this.clone();return f.__iteratees__.push({iteratee:ae(d,3),type:i}),f.__filtered__=f.__filtered__||p,f}}),St(["head","last"],function(e,t){var i="take"+(t?"Right":"");ke.prototype[e]=function(){return this[i](1).value()[0]}}),St(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");ke.prototype[e]=function(){return this.__filtered__?new ke(this):this[i](1)}}),ke.prototype.compact=function(){return this.filter(ft)},ke.prototype.find=function(e){return this.filter(e).head()},ke.prototype.findLast=function(e){return this.reverse().find(e)},ke.prototype.invokeMap=he(function(e,t){return typeof e=="function"?new ke(this):this.map(function(i){return Yr(i,e,t)})}),ke.prototype.reject=function(e){return this.filter(xn(ae(e)))},ke.prototype.slice=function(e,t){e=fe(e);var i=this;return i.__filtered__&&(e>0||t<0)?new ke(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==r&&(t=fe(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},ke.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ke.prototype.toArray=function(){return this.take(te)},Xt(ke.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),p=/^(?:head|last)$/.test(t),d=y[p?"take"+(t=="last"?"Right":""):t],f=p||/^find/.test(t);d&&(y.prototype[t]=function(){var b=this.__wrapped__,v=p?[1]:arguments,I=b instanceof ke,F=v[0],B=I||ye(b),$=function(ve){var De=d.apply(y,fs([ve],v));return p&&X?De[0]:De};B&&i&&typeof F=="function"&&F.length!=1&&(I=B=!1);var X=this.__chain__,se=!!this.__actions__.length,ie=f&&!X,be=I&&!se;if(!f&&B){b=be?b:new ke(this);var oe=e.apply(b,v);return oe.__actions__.push({func:_n,args:[$],thisArg:r}),new Nt(oe,X)}return ie&&be?e.apply(this,v):(oe=this.thru($),ie?p?oe.value()[0]:oe.value():oe)})}),St(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ba[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",p=/^(?:pop|shift)$/.test(e);y.prototype[e]=function(){var d=arguments;if(p&&!this.__chain__){var f=this.value();return t.apply(ye(f)?f:[],d)}return this[i](function(b){return t.apply(ye(b)?b:[],d)})}}),Xt(ke.prototype,function(e,t){var i=y[t];if(i){var p=i.name+"";ze.call(cr,p)||(cr[p]=[]),cr[p].push({name:t,func:i})}}),cr[ln(r,K).name]=[{name:"wrapper",func:r}],ke.prototype.clone=pf,ke.prototype.reverse=df,ke.prototype.value=uf,y.prototype.at=Ub,y.prototype.chain=$b,y.prototype.commit=Kb,y.prototype.next=jb,y.prototype.plant=Wb,y.prototype.reverse=Vb,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Gb,y.prototype.first=y.prototype.head,Kr&&(y.prototype[Kr]=Hb),y},ir=$_();Ns?((Ns.exports=ir)._=ir,pi._=ir):et._=ir}).call(fr)}(ya,ya.exports);var Qu=ya.exports;const Ke="tccScript",js={builtinFunctions:/strategy\.closedtrades\.max_drawdown_percent|strategy\.opentrades\.max_drawdown_percent|strategy\.risk\.max_intraday_filled_orders|strategy\.closedtrades\.max_runup_percent|array\.percentile_linear_interpolation|strategy\.closedtrades\.entry_bar_index|strategy\.opentrades\.max_runup_percent|strategy\.closedtrades\.exit_bar_index|strategy\.closedtrades\.profit_percent|strategy\.closedtrades\.entry_comment|strategy\.opentrades\.entry_bar_index|strategy\.closedtrades\.exit_comment|strategy\.closedtrades\.max_drawdown|strategy\.opentrades\.profit_percent|ta\.percentile_linear_interpolation|strategy\.closedtrades\.entry_price|strategy\.opentrades\.entry_comment|strategy\.closedtrades\.commission|strategy\.closedtrades\.entry_time|strategy\.closedtrades\.exit_price|strategy\.opentrades\.max_drawdown|strategy\.risk\.max_cons_loss_days|strategy\.closedtrades\.exit_time|strategy\.closedtrades\.max_runup|strategy\.opentrades\.entry_price|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|table\.cell_set_text_font_family|strategy\.closedtrades\.entry_id|strategy\.opentrades\.commission|strategy\.opentrades\.entry_time|array\.binary_search_rightmost|array\.percentile_nearest_rank|strategy\.closedtrades\.exit_id|strategy\.opentrades\.max_runup|array\.binary_search_leftmost|strategy\.closedtrades\.profit|strategy\.opentrades\.entry_id|strategy\.risk\.allow_entry_in|strategy\.convert_to_account|box\.set_bottom_right_point|label\.set_text_font_family|strategy\.closedtrades\.size|strategy\.convert_to_symbol|strategy\.default_entry_qty|strategy\.opentrades\.profit|strategy\.risk\.max_drawdown|ta\.percentile_nearest_rank|table\.cell_set_text_halign|table\.cell_set_text_valign|request\.security_lower_tf|table\.cell_set_text_color|box\.set_text_font_family|strategy\.opentrades\.size|table\.cell_set_text_size|matrix\.is_antisymmetric|box\.set_top_left_point|chart\.point\.from_index|matrix\.is_antidiagonal|table\.cell_set_bgcolor|table\.cell_set_tooltip|table\.set_border_color|table\.set_border_width|timeframe\.from_seconds|chart\.point\.from_time|line\.set_second_point|math\.round_to_mintick|matrix\.elements_count|request\.currency_rate|ta\.pivot_point_levels|table\.cell_set_height|table\.set_frame_color|table\.set_frame_width|box\.set_border_color|box\.set_border_style|box\.set_border_width|line\.set_first_point|matrix\.is_stochastic|matrix\.is_triangular|table\.cell_set_width|timeframe\.in_seconds|array\.binary_search|box\.set_rightbottom|box\.set_text_halign|box\.set_text_valign|color\.from_gradient|label\.set_textalign|label\.set_textcolor|matrix\.eigenvectors|matrix\.is_symmetric|matrix\.swap_columns|strategy\.cancel_all|table\.cell_set_text|array\.new_linefill|array\.sort_indices|box\.set_text_color|linefill\.get_line1|linefill\.get_line2|linefill\.set_color|matrix\.eigenvalues|matrix\.is_diagonal|matrix\.is_identity|strategy\.close_all|table\.set_position|ticker\.pointfigure|array\.lastindexof|array\.percentrank|array\.standardize|box\.set_text_size|box\.set_text_wrap|label\.set_tooltip|matrix\.remove_col|matrix\.remove_row|request\.dividends|request\.financial|table\.merge_cells|table\.set_bgcolor|ticker\.heikinashi|array\.covariance|array\.new_string|chart\.point\.copy|matrix\.is_binary|matrix\.is_square|matrix\.submatrix|matrix\.swap_rows|matrix\.transpose|request\.earnings|request\.economic|request\.security|ticker\.linebreak|timeframe\.change|array\.new_color|array\.new_float|array\.new_label|array\.new_table|box\.set_bgcolor|box\.set_lefttop|chart\.point\.new|chart\.point\.now|input\.text_area|input\.timeframe|label\.set_color|label\.set_point|label\.set_style|line\.set_extend|linefill\.delete|polyline\.delete|str\.format_time|str\.replace_all|strategy\.cancel|ticker\.standard|alertcondition|array\.includes|array\.new_bool|array\.new_line|array\.variance|box\.get_bottom|box\.set_bottom|box\.set_extend|label\.get_text|label\.set_size|label\.set_text|label\.set_xloc|label\.set_yloc|line\.get_price|line\.set_color|line\.set_style|line\.set_width|math\.todegrees|math\.toradians|matrix\.add_col|matrix\.add_row|matrix\.columns|matrix\.is_zero|matrix\.reshape|matrix\.reverse|request\.quandl|request\.splits|str\.startswith|strategy\.close|strategy\.entry|strategy\.order|syminfo\.prefix|syminfo\.ticker|ta\.correlation|ta\.highestbars|ta\.percentrank|ticker\.inherit|array\.indexof|array\.new_box|array\.new_int|array\.reverse|array\.unshift|box\.get_right|box\.set_right|input\.session|line\.set_xloc|matrix\.concat|matrix\.median|max_bars_back|runtime\.error|str\.substring|strategy\.exit|ta\.crossunder|ta\.lowestbars|ta\.supertrend|ticker\.modify|array\.concat|array\.insert|array\.median|array\.remove|box\.get_left|box\.set_left|box\.set_text|input\.source|input\.string|input\.symbol|label\.delete|label\.set_xy|line\.set_xy1|line\.set_xy2|linefill\.new|map\.contains|matrix\.trace|polyline\.new|request\.seed|str\.contains|str\.endswith|str\.tonumber|str\.tostring|ta\.barssince|ta\.crossover|ta\.pivothigh|ta\.valuewhen|table\.delete|ticker\.renko|array\.clear|array\.every|array\.first|array\.range|array\.shift|array\.slice|array\.stdev|box\.get_top|box\.set_top|input\.color|input\.float|input\.price|label\.get_x|label\.get_y|label\.set_x|label\.set_y|line\.delete|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.set_x1|line\.set_x2|line\.set_y1|line\.set_y2|log\.warning|map\.put_all|math\.random|matrix\.copy|matrix\.diff|matrix\.fill|matrix\.kron|matrix\.mode|matrix\.mult|matrix\.pinv|matrix\.rank|matrix\.rows|matrix\.sort|str\.replace|ta\.pivotlow|ta\.variance|table\.clear|ticker\.kagi|array\.copy|array\.fill|array\.from|array\.join|array\.last|array\.mode|array\.push|array\.size|array\.some|array\.sort|box\.delete|dayofmonth|input\.bool|input\.time|label\.copy|map\.remove|map\.values|math\.floor|math\.log10|math\.round|matrix\.avg|matrix\.col|matrix\.det|matrix\.get|matrix\.inv|matrix\.max|matrix\.min|matrix\.new|matrix\.pow|matrix\.row|matrix\.set|matrix\.sum|plotcandle|str\.format|str\.length|ta\.falling|ta\.highest|table\.cell|ticker\.new|time_close|weekofyear|array\.abs|array\.avg|array\.get|array\.max|array\.min|array\.new|array\.pop|array\.set|array\.sum|color\.new|color\.rgb|dayofweek|indicator|input\.int|label\.new|line\.copy|log\.error|map\.clear|math\.acos|math\.asin|math\.atan|input\.enum|math\.ceil|math\.sign|math\.sqrt|plotarrow|plotshape|str\.lower|str\.match|str\.split|str\.upper|ta\.change|ta\.linreg|ta\.lowest|ta\.median|ta\.rising|table\.new|timestamp|barcolor|box\.copy|line\.new|linefill|log\.info|map\.copy|map\.keys|map\.size|math\.abs|math\.avg|math\.cos|math\.exp|math\.log|math\.max|math\.min|math\.pow|math\.sin|math\.sum|math\.tan|plotchar|strategy|ta\.cross|ta\.range|ta\.stdev|ta\.stoch|bgcolor|box\.new|color\.b|color\.g|color\.r|color\.t|library|map\.get|map\.new|map\.put|plotbar|str\.pos|ta\.alma|ta\.macd|ta\.mode|ta\.swma|ta\.vwap|ta\.vwma|fixnan|minute|second|string|ta\.atr|ta\.bbw|ta\.cci|ta\.cmo|ta\.cog|ta\.cum|ta\.dev|ta\.dmi|ta\.ema|ta\.hma|ta\.kcw|ta\.max|ta\.mfi|ta\.min|ta\.mom|ta\.rma|ta\.roc|ta\.rsi|ta\.sar|ta\.sma|ta\.tsi|ta\.wma|ta\.wpr|alert|color|float|hline|input|label|month|ta\.bb|ta\.kc|ta\.tr|table|bool|fill|hour|line|plot|time|year|box|int|na|nz/,keywords:/continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to/,tokenizer:{root:[[/\/\/\s*(?=@)/,"comment","@comments"],[/\/\/.*(?!@).*/,"comment"],[/\'([^\'\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/\"/,{token:"string",bracket:"@open",next:"@stringDouble"}],[/(type|enum)\s+[a-zA-Z]\w*/,"entity.name.type"],[/'/,{token:"string",bracket:"@open",next:"@stringSingle"}],[/(@builtinFunctions)(?=\s*\(|\s*<.*>)/,{token:"support.function",next:"@template"}],[/@punctuation/,{token:"punctuation.operator",next:"@property"}],[/(varip|var)\b(\s+)((?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)/,[{token:"keyword"},{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"}]],[/\b(?:@builtinTypes)(?=(\s*)[\[|<|(]|(?=\s+(?=[^.=][\w\(]*))|\s*$)/,{token:"support.type",next:"@template"}],[/^(\s*)\b(?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)([\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)(\s+)(\=)/,[{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"},{token:"source"},{token:"keyword.equals"}]],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|enum|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/import(?=\s+@importName)/,{token:"keyword",next:"@import"}],[/import(?=\s+[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+)/,"keyword"],[/[+-]?\d+\.\d*([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/[+-]?\.\d+([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/([+-]?(\d+))(?!\w+)(?!\w+)/,"constant.numeric.integer"],[/(?:true|false)\b/,"constant.other.boolean"],[/#[0-9a-fA-F]{6,8}\b/,"constant.other.color"],[/\+=|\-=|\*=|\/=|%=|[\/%*+\-]|==|!=|<=|>=|=>|<|>|\?|\:=|\:|\,/,"keyword.operator"],[/\b(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to)\b/,"keyword"],[/^[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,"entity.name.function"],[/[0-9]+\b/,"constant.numeric.integer"],[/=/,"keyword.equals"],[/\b(?:strategy\.commission\.cash_per_contract|strategy\.avg_winning_trade_percent|strategy\.avg_winning_trade|strategy\.avg_losing_trade_percent|strategy\.avg_losing_trade|syminfo\.recommendations_sell_strong|syminfo\.recommendations_buy_strong|strategy\.commission\.cash_per_order|strategy\.margin_liquidation_price|strategy\.max_contracts_held_short|strategy\.max_contracts_held_long|syminfo\.shares_outstanding_float|syminfo\.shares_outstanding_total|barstate\.islastconfirmedhistory|earnings\.future_period_end_time|strategy\.max_contracts_held_all|syminfo\.target_price_estimates|strategy\.max_drawdown_percent|syminfo\.recommendations_total|alert\.freq_once_per_bar_close|label\.style_label_lower_right|label\.style_label_upper_right|chart\.right_visible_bar_time|strategy\.grossprofit_percent|strategy\.position_entry_name|syminfo\.recommendations_date|syminfo\.recommendations_hold|syminfo\.recommendations_sell|syminfo\.target_price_average|label\.style_label_lower_left|label\.style_label_upper_left|chart\.left_visible_bar_time|strategy\.openprofit_percent|strategy\.position_avg_price|syminfo\.recommendations_buy|syminfo\.target_price_median|plot\.style_stepline_diamond|strategy\.commission\.percent|session\.isfirstbar_regular|strategy\.grossloss_percent|strategy\.max_runup_percent|strategy\.netprofit_percent|strategy\.percent_of_equity|session\.islastbar_regular|strategy\.account_currency|syminfo\.target_price_date|syminfo\.target_price_high|dividends\.future_pay_date|strategy\.initial_capital|syminfo\.target_price_low|dividends\.future_ex_date|label\.style_label_center|label\.style_text_outline|label\.style_triangledown|strategy\.direction\.short|earnings\.future_revenue|alert\.freq_once_per_bar|dividends\.future_amount|label\.style_label_right|strategy\.direction\.long|strategy\.position_size|barmerge\.lookahead_off|label\.style_label_down|label\.style_label_left|label\.style_triangleup|line\.style_arrow_right|position\.bottom_center|position\.middle_center|strategy\.direction\.all|strategy\.closedtrades|strategy\.max_drawdown|barmerge\.lookahead_on|earnings\.standardized|font\.family_monospace|label\.style_arrowdown|line\.style_arrow_both|line\.style_arrow_left|plot\.style_steplinebr|position\.bottom_right|position\.middle_right|barstate\.isconfirmed|earnings\.future_time|session\.ispostmarket|strategy\.grossprofit|syminfo\.basecurrency|syminfo\.shareholders|timeframe\.isintraday|timeframe\.multiplier|adjustment\.dividends|label\.style_label_up|plot\.style_histogram|position\.bottom_left|position\.middle_left|barstate\.isrealtime|chart\.is_heikinashi|earnings\.future_eps|session\.ispremarket|strategy\.eventrades|strategy\.losstrades|strategy\.openprofit|strategy\.opentrades\.capital_held|strategy\.opentrades|syminfo\.description|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|dayofweek\.wednesday|display\.data_window|display\.price_scale|display\.status_line|font\.family_default|label\.style_arrowup|label\.style_diamond|plot\.style_stepline|position\.top_center|strategy\.oca\.cancel|strategy\.oca\.reduce|barstate\.ishistory|chart\.is_linebreak|session\.isfirstbar|strategy\.grossloss|strategy\.max_runup|strategy\.netprofit|strategy\.wintrades|syminfo\.pointvalue|syminfo\.pricescale|syminfo\.volumetype|timeframe\.isweekly|dayofweek\.saturday|dayofweek\.thursday|hline\.style_dashed|hline\.style_dotted|label\.style_circle|label\.style_square|label\.style_xcross|plot\.style_circles|plot\.style_columns|position\.top_right|shape\.triangledown|splits\.denominator|chart\.is_standard|session\.islastbar|syminfo\.employees|timeframe\.isdaily|adjustment\.splits|barmerge\.gaps_off|dayofweek\.tuesday|earnings\.estimate|hline\.style_solid|label\.style_cross|line\.style_dashed|line\.style_dotted|location\.abovebar|location\.absolute|location\.belowbar|plot\.style_areabr|plot\.style_linebr|position\.top_left|strategy\.oca\.none|text\.align_bottom|text\.align_center|barstate\.isfirst|session\.ismarket|syminfo\.currency|syminfo\.industry|syminfo\.tickerid|syminfo\.timezone|timeframe\.period|barmerge\.gaps_on|dayofweek\.friday|dayofweek\.monday|dayofweek\.sunday|label\.style_flag|label\.style_none|line\.style_solid|order\.descending|plot\.style_cross|session\.extended|shape\.triangleup|splits\.numerator|text\.align_right|barstate\.islast|strategy\.equity|syminfo\.country|syminfo\.minmove|syminfo\.mintick|syminfo\.session|time_tradingday|timeframe\.isdwm|adjustment\.none|dividends\.gross|earnings\.actual|location\.bottom|order\.ascending|plot\.style_area|plot\.style_line|session\.regular|shape\.arrowdown|shape\.labeldown|text\.align_left|barstate\.isnew|chart\.bg_color|chart\.fg_color|chart\.is_range|chart\.is_renko|last_bar_index|strategy\.short|syminfo\.prefix|syminfo\.sector|syminfo\.ticker|alert\.freq_all|format\.inherit|format\.mintick|format\.percent|strategy\.fixed|text\.align_top|text\.wrap_auto|text\.wrap_none|xloc\.bar_index|chart\.is_kagi|last_bar_time|strategy\.long|color\.fuchsia|currency\.NONE|currency\.USDT|dividends\.net|format\.volume|shape\.arrowup|shape\.diamond|shape\.labelup|strategy\.cash|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|chart\.is_pnf|linefill\.all|polyline\.all|syminfo\.root|syminfo\.type|color\.maroon|color\.orange|color\.purple|color\.silver|color\.yellow|currency\.AUD|currency\.BTC|currency\.CAD|currency\.CHF|currency\.ETH|currency\.EUR|currency\.GBP|currency\.HKD|currency\.INR|currency\.JPY|currency\.KRW|currency\.MYR|currency\.NOK|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|display\.none|display\.pane|extend\.right|format\.price|location\.top|shape\.circle|shape\.square|shape\.xcross|color\.black|color\.green|color\.olive|color\.white|display\.all|extend\.both|extend\.left|extend\.none|scale\.right|shape\.cross|size\.normal|dayofmonth|ta\.accdist|time_close|weekofyear|color\.aqua|color\.blue|color\.gray|color\.lime|color\.navy|color\.teal|scale\.left|scale\.none|shape\.flag|size\.large|size\.small|yloc\.price|bar_index|dayofweek|label\.all|table\.all|color\.red|math\.rphi|size\.auto|size\.huge|size\.tiny|line\.all|math\.phi|box\.all|ta\.vwap|ta\.wvad|timenow|math\.pi|minute|second|ta\.iii|ta\.nvi|ta\.obv|ta\.pvi|ta\.pvt|ta\.wad|volume|math\.e|close|hlcc4|month|ohlc4|ta\.tr|false|high|hlc3|hour|open|time|year|true|hl2|low|na)\b(?!\s*=\s*\w+)/,"support.variable"],[/[(|)|\[|\]]/,"paren"],[/[a-zA-Z_][a-zA-Z_0-9]*(?=\s*\()/,{token:"entity.name.method"}],[/\w+\b/,"variable.other"]],comments:[[/@[A-Za-z]+(\s*=\s*)?$/,{token:"comment.annotation",next:"@pop"}],[/@[A-Za-z]+(\s*=\s*)?/,{token:"comment.annotation"}],[/(?!\s*@[A-Za-z]+).+$/,{token:"comment",next:"@pop"}]],stringDouble:[[/[^\\\"]+/,"string"],[/\\./,"string.invalid"],[/\"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/\\./,"string.invalid"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],template:[[/(@builtinTypes)/,{token:"support.type"}],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|enum|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/\(|\)|\[|\]|\=|\>/,{token:"paren",next:"@pop"}],[/(\,)(\s+)/,["keyword.operator","source"]],[/(\,)/,{token:"keyword.operator"}],[/([\w.\d$]+)/,{token:"entity.name.type"}],[/(<|>)/,{token:"paren"}],[/\s(?=\w)|$/,{token:"source",next:"@pop"}]],property:[[/@punctuation/,{token:"punctuation.operator"}],[/(@builtinTypes)(?=\s*[(])/,{token:"support.method",next:"@pop"}],[/[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,{token:"entity.name.method",next:"@pop"}],[/[a-zA-Z0-9_]+/,{token:"variable.other.property",next:"@pop"}],[/@empty/,{token:"source",next:"@pop"}]],import:[[/\s+/,{token:"source"}],[/(@importName)(\s+)(as\b)(\s+)(@importAlias)/,[{token:"entity.name.module"},{token:"source"},{token:"keyword"},{token:"source"},{token:"entity.name.module.name",next:"@pop"}]],[/@importName/,{token:"entity.name.module",next:"@pop"}]]},builtinTypes:/chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map/,punctuation:/[.](?![.])/,importName:/[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+/,importAlias:/[a-zA-Z\d\_\u00a1\uffff\/]+/,empty:/^$/};var At;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(At||(At={}));const En={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["[","]"]],folding:{markers:{start:/(\/\/#region)|(\/\/.*{($|\s))/,end:/(\/\/#endregion)|(\/\/.*}($|\s))/}},autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:/\)\s*=>\s*$/,action:{indentAction:At.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/else/,action:{indentAction:At.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:At.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:At.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:At.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:At.Indent}},{beforeText:/enum\s+\w+/,action:{indentAction:At.Indent}},{beforeText:/^\s*$/,action:{indentAction:At.Outdent}}]},O={"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 Wt(a,s=1){return a+Math.round(255*Math.min(Math.max(s,0),1)).toString(16).toUpperCase().padStart(2,"0")}const Ln={base:"vs",inherit:!0,rules:[{token:"comment",foreground:O["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:O["color-cold-gray-900"]},{token:"string",foreground:O["color-iguana-green-700"]},{token:"constant.numeric",foreground:O["color-banana-yellow-900"]},{token:"constant.language",foreground:O["color-ripe-red-a600"]},{token:"constant.other.color",foreground:O["color-ripe-red-a600"]},{token:"constant.other",foreground:O["color-ripe-red-a600"]},{token:"support.variable",foreground:O["color-ripe-red-a600"]},{token:"support.function",foreground:O["color-tv-blue-a600"]},{token:"support.type",foreground:O["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:O["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:O["color-tv-blue-a600"]},{token:"keyword.equals",foreground:O["color-minty-green-400"]},{token:"keyword.operator",foreground:O["color-minty-green-400"]},{token:"keyword.other",foreground:O["color-minty-green-400"]},{token:"keyword",foreground:O["color-minty-green-400"]},{token:"variable.other",foreground:O["color-cold-gray-800"]},{token:"variable.other.property",foreground:O["color-cold-gray-800"]},{token:"paren",foreground:O["color-black"]},{token:"entity.name.function",foreground:O["color-tv-blue-900"]},{token:"entity.name.method",foreground:O["color-tv-blue-900"]},{token:"meta.function-call",foreground:O["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:O["color-grapes-purple-600"]},{token:"entity.name.module",foreground:O["color-tv-blue-a600"]},{token:"",background:O["color-white"]}],colors:{"editor.foreground":O["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":O["color-cold-gray-400"],"editorLineNumber.activeForeground":O["color-cold-gray-700"],"editorHoverWidget.background":O["color-white"],"editorHoverWidget.statusBarBackground":O["color-cold-gray-150"],"editorHoverWidget.foreground":O["color-cold-gray-900"],"editorWidget.background":O["color-white"],"editorWidget.foreground":O["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Wt(O["color-cold-gray-200"],.5),"editor.lineHighlightBackground":O["color-tv-blue-50"],"editor.lineHighlightBorder":O["color-tv-blue-50"],"editor.rangeHighlightBackground":O["color-tv-blue-100"],"editorBracketMatch.background":O["color-cold-gray-150"],"editor.selectionBackground":O["color-tv-blue-100"],"editor.selectionHighlightBackground":O["color-tv-blue-50"],"editor.findMatchBackground":O["color-tan-orange-100"],"editor.findMatchHighlightBackground":O["color-tan-orange-100"],"editor.findMatchBorder":O["color-tan-orange-500"],"list.foreground":O["color-cold-gray-900"],"list.hoverForeground":O["color-cold-gray-900"],"list.activeSelectionBackground":O["color-tv-blue-500"],"list.hoverBackground":O["color-tv-blue-50"],"list.focusHighlightForeground":O["color-tv-blue-100"],"list.inactiveSelectionBackground":O["color-tv-blue-500"],"keybindingLabel.background":O["color-white"],"keybindingLabel.foreground":O["color-cold-gray-900"],"keybindingLabel.border":O["color-cold-gray-150"],"input.foreground":O["color-cold-gray-900"],"textLink.foreground":O["color-tv-blue-500"],"textLink.activeForeground":O["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":O["color-tan-orange-100"],"peekViewResult.lineForeground":O["color-cold-gray-900"],"editorMarkerNavigationWarning.background":O["color-banana-yellow-800"],"inputValidation.warningBackground":O["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Wt(O["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Wt(O["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Wt(O["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Wt(O["color-ripe-red-500"],.15),"editorInlayHint.background":O["color-cold-gray-150"],"editorInlayHint.foreground":O["color-cold-gray-550"],"editorError.foreground":O["color-ripe-red-500"],"editorWarning.foreground":O["color-tan-orange-500"]}},Mn={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:O["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:O["color-white"]},{token:"string",foreground:O["color-iguana-green-700"]},{token:"constant.numeric",foreground:O["color-banana-yellow-900"]},{token:"constant.language",foreground:O["color-ripe-red-300"]},{token:"constant.other.color",foreground:O["color-ripe-red-300"]},{token:"constant.other",foreground:O["color-ripe-red-300"]},{token:"support.variable",foreground:O["color-ripe-red-300"]},{token:"support.function",foreground:O["color-tv-blue-300"]},{token:"support.method",foreground:O["color-tv-blue-300"]},{token:"support.type",foreground:O["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:O["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:O["color-minty-green-300"]},{token:"keyword.operator",foreground:O["color-minty-green-300"]},{token:"keyword.other",foreground:O["color-minty-green-300"]},{token:"keyword",foreground:O["color-minty-green-300"]},{token:"variable.other",foreground:O["color-cold-gray-200"]},{token:"variable.other.property",foreground:O["color-cold-gray-200"]},{token:"paren",foreground:O["color-white"]},{token:"entity.name.function",foreground:O["color-tv-blue-400"]},{token:"entity.name.method",foreground:O["color-tv-blue-400"]},{token:"meta.function-call",foreground:O["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:O["color-grapes-purple-300"]},{token:"entity.name.module",foreground:O["color-tv-blue-300"]},{token:"",background:O["color-cold-gray-900"]}],colors:{"editor.foreground":O["color-white"],"editor.background":O["color-cold-gray-900"],"editorLineNumber.foreground":O["color-cold-gray-500"],"editorLineNumber.activeForeground":O["color-cold-gray-300"],"editorWidget.background":O["color-cold-gray-850"],"editorHoverWidget.background":O["color-cold-gray-850"],"editorHoverWidget.foreground":O["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":O["color-cold-gray-900"],"editorWidget.foreground":O["color-cold-gray-300"],"editorGutter.background":O["color-cold-gray-900"],"editor.foldBackground":Wt(O["color-cold-gray-700"],.5),"editor.lineHighlightBackground":O["color-tv-blue-a900"],"editor.lineHighlightBorder":O["color-tv-blue-a900"],"editor.rangeHighlightBackground":O["color-tv-blue-a800"],"editorBracketMatch.background":O["color-cold-gray-750"],"editor.selectionBackground":O["color-tv-blue-a800"],"editor.selectionHighlightBackground":O["color-cold-gray-800"],"list.foreground":O["color-cold-gray-350"],"list.hoverForeground":O["color-cold-gray-350"],"list.activeSelectionBackground":O["color-tv-blue-500"],"list.hoverBackground":O["color-tv-blue-900"],"list.focusHighlightForeground":O["color-tv-blue-300"],"list.inactiveSelectionBackground":O["color-tv-blue-500"],"keybindingLabel.background":O["color-cold-gray-800"],"keybindingLabel.foreground":O["color-cold-gray-300"],"keybindingLabel.border":O["color-cold-gray-700"],"input.foreground":O["color-cold-gray-350"],"textLink.foreground":O["color-tv-blue-500"],"textLink.activeForeground":O["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":O["color-tan-orange-a800"],"peekViewResult.lineForeground":O["color-cold-gray-350"],"diffEditor.insertedTextBackground":Wt(O["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Wt(O["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Wt(O["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Wt(O["color-ripe-red-a400"],.15),"editorInlayHint.background":O["color-cold-gray-800"],"editorInlayHint.foreground":O["color-cold-gray-400"],"editorError.foreground":O["color-ripe-red-500"],"editorWarning.foreground":O["color-tan-orange-700"]}},Zu=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Ju=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,Go={"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"},{t:em}=Me;class tm{constructor(s){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(r=[],n)=>{const o=new Map,l=n.indexOf("(");for(let c=l+1,u=l;c<n.length;c++)n[c]!==","&&n[c]!==")"||(u++,o.set(n.slice(u,c),u),u=c+1);return r.map(({name:c="",displayType:u,desc:m})=>{const _=[],g=o.get(c),x=g+c.length;return _.push(this._formatter.paragraph(this._formatter.bold(c),this._formatter.italic(u||""))),m&&_.push(Array.isArray(m)?m.join(this._formatter.lineBreak):m),{label:[g,x],documentation:{value:_.join(this._formatter.lineBreak)}}})}}),this._formatter=ge,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(s)}getSignatureHelpValues(s,r,n=0,o=0){var _;const l=this._getFuncItems(s);if(!(l!=null&&l.length))return null;const c=this._getSequentialSignatures(s,l),u=this._getActiveIndex(l,r),m=(_=Ds.overloadsFuncs)==null?void 0:_.find(g=>g.name===s&&g.startColumn===n&&o===g.line);return m&&(u.activeSignature=Number(m.index)),{signatures:c,...u}}_getActiveIndex(s,r=[]){let n=0,o=-1;r.some(c=>!!c)||(o=r.length-1);const l=r.pop();if(l)for(const[c,u]of s.entries()){const{args:m}=u;if(m&&m.length){const _=m.findIndex(g=>g.name===l);if(_!=-1){o=_,n=c;break}}}return{activeParameter:o,activeSignature:n}}_getFuncItems(s){return nt.functions.get(s)||Pt.userFuncs.get(s)||Pt.methodFuncs.get(s)}_getSequentialSignatures(s,r){return r.map(n=>{const o=this._getSignatureLabel(s,n);return{label:o,documentation:this._getFormattedSignatureDocumentation(n),parameters:this._getSignatureParams(n.args,o)}})}_getSignatureLabel(s,r,n=!1){const o=[s];return n&&o.push("<type>"),r.args&&(o.push("("),o.push(r.args.map(({name:l})=>l).join(", ")),o.push(")")),o.join("")}_getFormattedSignatureDocumentation(s){const{desc:r}=s,n=[];r&&n.push(Array.isArray(r)?r.join(this._formatter.lineBreak):r);const o=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
|
138
138
|
${this._formatter.code("Shift")} +
|
139
|
-
${this._formatter.code("Space")}`;return n.push(this._formatter.lineBreak),n.push(this._formatter.italic(`${o} ${em(Ae.toTriggerParameterHints)}`)),{value:this._formatter.paragraph(...n)}}}const sm=new tm(window.navigator.userAgent);class rm{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_count",{enumerable:!0,configurable:!0,writable:!0,value:0}),this._colors=Go}getDocumentColors(s){this._count++;const r=[];return s.forEach(n=>{const{range:o}=n;let{matches:l}=n;l=l||[];const c=l[0]||"";let d=null;this._isHexToken(c)?d=this._hexToColor(c):this._isRgbColor(c)?d=this._rgbToColor(c):this._colors[c]?d=this._hexToColor(this._colors[c]):this._isColorExpression(c)&&l[1]&&l[6]&&(d=this._extractNewExpression(l[1],Number(l[6]))),d&&r.push({color:d,range:o})}),r}get _defultColorsRegStr(){return Object.keys(Go).reduce((s,r)=>`${s}|${r}`,"")}get colorMatchesRegStr(){const s=`#[0-9a-fA-F]{6,8}|(\\b(color.rgb\\s*\\((\\s*\\d+\\s*,\\s*){2}(\\s*\\d+\\s*,{0,1}){1,2}\\s*\\)${this._defultColorsRegStr}))`;return`color.new\\s*\\(\\s*(${s})\\s*,\\s*(\\d+)\\s*\\)|${s}`}getDocumentColorPresentations(s,{color:r,range:n}){const o=s.getValueInRange(n);if(this._isHexToken(o)||this._colors[o])return[{label:this._colorRgbRepresentation(r)},{label:this._colorHexRepresentation(r)}];if(this._isColorExpression(o)||this._isRgbColor(o)){const l=this._isColorExpression(o)?this._colorNewRepresentation(r):this._colorRgbRepresentation(r);if(!l)return[];const c=this._colorHexRepresentation(r);return[{label:l,textEdit:{text:l,range:n}},{label:c,textEdit:{text:c,range:n}}]}return null}_hexFromNumber(s){const r=this._denormalize(s).toString(16);return r.length===1?`0${r}`:r}_normalize(s){return s/255}_denormalize(s){return Math.round(255*s)}_normalizeAlpha(s){return(100-s)/100}_denormalizeAlpha(s){return 100-Math.round(100*s)}_extractNewExpression(s,r){let n=null;return this._isHexToken(s)?n=this._hexToColor(s):this._isRgbColor(s)?n=this._rgbToColor(s):this._colors[s]&&(n=this._hexToColor(this._colors[s])),n&&!Number.isNaN(r)?{...n,alpha:this._normalizeAlpha(r)}:null}_colorHexRepresentation(s){const r=this._hexFromNumber(s.red),n=this._hexFromNumber(s.green),o=this._hexFromNumber(s.blue),l=this._hexFromNumber(s.alpha);return`#${r}${n}${o}${s.alpha===1?"":l}`}_colorRgbRepresentation(s){const r=this._denormalize(s.red),n=this._denormalize(s.green),o=this._denormalize(s.blue),l=this._denormalizeAlpha(s.alpha),c=[r,n,o];return l>0&&c.push(l),`color.rgb(${c.join(", ")})`}_colorNewRepresentation(s){const r={...s,alpha:1};return`color.new(${this._colorHexRepresentation(r)}, ${this._denormalizeAlpha(s.alpha)})`}_hexToColor(s){const r=(s=this._isHexToken(s)?s.slice(1):s).length===3||s.length===4,n=r?`${s.slice(0,1)}${s.slice(0,1)}`:s.slice(0,2),o=r?`${s.slice(1,2)}${s.slice(1,2)}`:s.slice(2,4),l=r?`${s.slice(2,3)}${s.slice(2,3)}`:s.slice(4,6),c=(r?`${s.slice(3,4)}${s.slice(3,4)}`:s.slice(6,8))||"ff";return{red:this._normalize(parseInt(n,16)),green:this._normalize(parseInt(o,16)),blue:this._normalize(parseInt(l,16)),alpha:this._normalize(parseInt(c,16))}}_rgbToColor(s){const r=s.replace(/[^\d,]/g,"").split(","),n=this._normalize(Number(r[0])),o=this._normalize(Number(r[1])),l=this._normalize(Number(r[2])),c=this._normalizeAlpha(Number(r[3]))||1;return isNaN(n)||isNaN(o)||isNaN(l)?null:{red:n,green:o,blue:l,alpha:c}}_isHexToken(s){return s.charAt(0)==="#"}_isRgbColor(s){return s.startsWith("color.rgb")}_isColorExpression(s){return s.startsWith("color.new")}}const On=new rm;L.VType=void 0,function(a){a.BOOL="bool",a.INT="int",a.FLOAT="float",a.ARRAY="array",a.BOX="box",a.CHART_POINT="chart.point",a.COLOR="color",a.CONST="const",a.LABEL="label",a.LINE="line",a.LINEFILL="linefill",a.MAP="map",a.MATRIX="matrix",a.POLYLINE="polyline",a.SERIES="series",a.SIMPLE="simple",a.STRING="string",a.TABLE="table",a.UNDETERMINED="undetermined type",a.INPUT="input",a.NA="na",a.VOID="void",a.ENUM="enum"}(L.VType||(L.VType={})),L.VRuleType=void 0,function(a){a.FlowStmt="FlowStmt",a.DeclareAssign="DeclareAssign",a.VarBlockStmt="VarBlockStmt",a.VarSingle="VarSingle",a.VarMultiple="VarMultiple",a.ParenthesizedExpression="ParenthesizedExpression",a.AdditiveExpression="AdditiveExpression",a.RelationalExpression="RelationalExpression",a.EqualityExpression="EqualityExpression",a.TernaryExpression="TernaryExpression",a.UnaryExpression="UnaryExpression",a.NotExpression="NotExpression",a.MemberIndexExpression="MemberIndexExpression",a.MethodExpression="MethodExpression",a.LogicalAndExpression="LogicalAndExpression",a.LogicalOrExpression="LogicalOrExpression",a.MultiplicativeExpression="MultiplicativeExpression",a.Brackethesized="Brackethesized",a.IfStatement="IfStatement",a.ForToStatement="ForToStatement",a.ForInStatement="ForInStatement",a.SwitchStatement="SwitchStatement",a.CaseClause="CaseClause",a.DefaultCaluse="DefaultCaluse",a.WhileStatement="WhileStatement",a.ImportElement="ImportElement",a.Literal="Literal",a.ArrowFunction="ArrowFunction",a.ArrowMethod="ArrowMethod",a.TypeStatement="TypeStatement",a.Name="Name",a.AgainAssign="AgainAssign",a.EnumStatement="EnumStatement"}(L.VRuleType||(L.VRuleType={})),L.VAdjustment=void 0,function(a){a.dividends="dividends",a.none="none",a.splits="splits"}(L.VAdjustment||(L.VAdjustment={})),L.VAlert=void 0,function(a){a.freqAll="freq_all",a.freqOncePerBar="freq_once_per_bar",a.freqOncePerBarClose="freq_once_per_bar_close"}(L.VAlert||(L.VAlert={})),L.VBarmergeGaps=void 0,function(a){a.gapsOff="gaps_off",a.gapsOn="gaps_on",a.lookaheadOff="lookahead_off",a.lookaheadOn="lookahead_on"}(L.VBarmergeGaps||(L.VBarmergeGaps={})),L.VPlotDisplay=void 0,function(a){a.all="all",a.dataWindow="data_window",a.none="none",a.pane="pane",a.priceScale="price_scale",a.statusLine="status_line"}(L.VPlotDisplay||(L.VPlotDisplay={})),L.VExtend=void 0,function(a){a.both="both",a.left="left",a.none="none",a.right="right"}(L.VExtend||(L.VExtend={})),L.VFormatType=void 0,function(a){a.inherit="inherit",a.mintick="mintick",a.percent="percent",a.price="price",a.volume="volume"}(L.VFormatType||(L.VFormatType={})),L.VHlineStyle=void 0,function(a){a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(L.VHlineStyle||(L.VHlineStyle={})),L.VLabelStyle=void 0,function(a){a.styleArrowdown="style_arrowdown",a.styleArrowup="style_arrowup",a.styleCircle="style_circle",a.styleCross="style_cross",a.styleDiamond="style_diamond",a.styleFlag="style_flag",a.styleLabelCenter="style_label_center",a.styleLabelDown="style_label_down",a.styleLabelLeft="style_label_left",a.styleLabelLowerLeft="style_label_lower_left",a.styleLabelLowerRight="style_label_lower_right",a.styleLabelRight="style_label_right",a.styleLabelUp="style_label_up",a.styleLabelUpperLeft="style_label_upper_left",a.styleLabelUpperRight="style_label_upper_right",a.styleNone="style_none",a.styleSquare="style_square",a.styleTextOutline="style_text_outline",a.styleTriangledown="style_triangledown",a.styleTriangleup="style_triangleup",a.styleXcross="style_xcross"}(L.VLabelStyle||(L.VLabelStyle={})),L.VLineStyle=void 0,function(a){a.styleArrowBoth="style_arrow_both",a.styleArrowLeft="style_arrow_left",a.styleArrowRight="style_arrow_right",a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(L.VLineStyle||(L.VLineStyle={})),L.VLocation=void 0,function(a){a.abovebar="abovebar",a.absolute="absolute",a.belowbar="belowbar",a.bottom="bottom",a.top="top"}(L.VLocation||(L.VLocation={})),L.VSortOrder=void 0,function(a){a.ascending="ascending",a.descending="descending"}(L.VSortOrder||(L.VSortOrder={})),L.VPlotStyle=void 0,function(a){a.styleArea="Area",a.styleAreabr="Area With Breaks",a.styleCircles="Circles",a.styleColumns="Columns",a.styleCross="Cross",a.styleHistogram="Histogram",a.styleLine="Line",a.styleLinebr="Line With Breaks",a.styleStepline="Step Line",a.styleSteplineDiamond="Step Line With Diamonds",a.styleSteplinebr="Step line with Breaks"}(L.VPlotStyle||(L.VPlotStyle={})),L.VPosition=void 0,function(a){a.bottomCenter="bottom_center",a.bottomLeft="bottom_left",a.bottomRight="bottom_right",a.middleCenter="middle_center",a.middleLeft="middle_left",a.middleRight="middle_right",a.topCenter="top_center",a.topLeft="top_left",a.topRight="top_right"}(L.VPosition||(L.VPosition={})),L.VScale=void 0,function(a){a.left="left",a.none="none",a.right="right"}(L.VScale||(L.VScale={})),L.VSession=void 0,function(a){a.extended="extended",a.regular="regular"}(L.VSession||(L.VSession={})),L.VShape=void 0,function(a){a.arrowdown="arrowdown",a.arrowup="arrowup",a.circle="circle",a.cross="cross",a.diamond="diamond",a.flag="flag",a.labeldown="labeldown",a.labelup="labelup",a.square="square",a.triangledown="triangledown",a.triangleup="triangleup",a.xcross="xcross"}(L.VShape||(L.VShape={})),L.VSize=void 0,function(a){a.auto="auto",a.huge="huge",a.large="large",a.normal="normal",a.small="small",a.tiny="tiny"}(L.VSize||(L.VSize={})),L.VFont=void 0,function(a){a.familyDefault="default",a.familyMonospace="monospace"}(L.VFont||(L.VFont={})),L.VStrategy=void 0,function(a){a.cash="cash",a.fixed="fixed",a.percentOfEquity="percent_of_equity"}(L.VStrategy||(L.VStrategy={})),L.VCommission=void 0,function(a){a.cashPerContract="cash_per_contract",a.cashPerOrder="cash_per_order",a.percent="percent"}(L.VCommission||(L.VCommission={})),L.VDirection=void 0,function(a){a.all="all",a.long="long",a.short="short"}(L.VDirection||(L.VDirection={})),L.VOca=void 0,function(a){a.cancel="cancel",a.none="none",a.reduce="reduce"}(L.VOca||(L.VOca={})),L.VText=void 0,function(a){a.alignBottom="align_bottom",a.alignCenter="align_center",a.alignLeft="align_left",a.alignRight="align_right",a.alignTop="align_top",a.wrapAuto="wrap_auto",a.wrapNone="wrap_none"}(L.VText||(L.VText={})),L.VXloc=void 0,function(a){a.bar_index="bar_index",a.bar_time="bar_time"}(L.VXloc||(L.VXloc={})),L.VYloc=void 0,function(a){a.abovebar="abovebar",a.belowbar="belowbar",a.price="price"}(L.VYloc||(L.VYloc={})),L.VEarnings=void 0,function(a){a.actual="actual",a.estimate="estimate",a.standardized="standardized"}(L.VEarnings||(L.VEarnings={})),L.VPivotType=void 0,function(a){a.traditional="Traditional",a.fibonacci="Fibonacci",a.woodie="Woodie",a.classic="Classic",a.dm="DM",a.camarilla="Camarilla"}(L.VPivotType||(L.VPivotType={})),L.VInputType=void 0,function(a){a.INT="int",a.BOOL="bool",a.TIME="time",a.COLOR="color",a.FLOAT="float",a.PRICE="price",a.SOURCE="source",a.STRING="string",a.SYMBOL="symbol",a.SESSION="session",a.TEXT_AREA="text_area",a.TIMEFRAME="timeframe",a.ENUM="enum"}(L.VInputType||(L.VInputType={}));var Xo;(function(a){a.description="description",a.field="field",a.function="function",a.param="param",a.returns="returns",a.type="type",a.variable="variable",a.enum="enum"})(Xo||(Xo={})),L.VScriptType=void 0,function(a){a.library="library",a.indicator="indicator",a.strategy="strategy"}(L.VScriptType||(L.VScriptType={})),L.VType.SERIES,L.VType.SIMPLE,L.VType.INPUT,L.VType.CONST,L.VType.INT,L.VType.FLOAT,L.VType.BOOL,L.VType.COLOR,L.VType.STRING;const am={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1},Yo={functions:[{name:"calcBB",desc:["Computes Bollinger Band values from an array of data."],args:[{name:"srcArray",desc:"(array<float>) The array where the queue is maintained.",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series float mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"srcArray",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series int mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],index:1},{name:"Scanner.new",args:[{name:"enabled",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"},{name:"ticker",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"},{name:"timeframe",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.new(series bool enabled, series string ticker, series string timeframe) → Scanner"]},{name:"Scanner.copy",args:[{name:"object",required:!0,allowedTypeIDs:["Scanner"],displayType:"Scanner"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},info:"The identifier of the object to be copied.",syntax:["Scanner.copy(Scanner object) → Scanner"]}],methods:[{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],desc:["Computes Bollinger Band values from an array of data."],originalName:"array.calcBB",syntax:["calcBB(series float mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},thisType:["float[]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],originalName:"array.calcBB",syntax:["calcBB(series int mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},thisType:["float[]"],index:1},{name:"Scanner.copy",args:[],returnedTypes:["Scanner"],thisType:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.copy() → Scanner"]}],types:[{fields:[{name:"enabled",type:"series bool"},{name:"ticker",type:"series string"},{name:"timeframe",type:"series string"}],name:"Scanner",pos:{lineNumber:30,column:12}}],description:"Provides a tool to quickly output a label on the chart.",codeStr:'const $name={calcBB:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_12","var")||$_var.setVarValue("mean",e+"_14_12",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_13","var")||$_var.setVarValue("dev",e+"_14_13",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_16_16")),v=a.avg(e+"_16_16"),$_var.setVarValue("mean",e+"_14_12",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_17_16")*r),s=a.stdev(e+"_17_16")*r,$_var.setVarValue("dev",e+"_14_13",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},calcBB$1:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_21","var")||$_var.setVarValue("mean",e+"_14_21",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_22","var")||$_var.setVarValue("dev",e+"_14_22",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_25_16")),v=a.avg(e+"_25_16"),$_var.setVarValue("mean",e+"_14_21",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_26_16")*r),s=a.stdev(e+"_26_16")*r,$_var.setVarValue("dev",e+"_14_22",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},Scanner:$_var.getTypeInstance({enabled:void 0,ticker:void 0,timeframe:void 0},[])};'};class nm{constructor(){Object.defineProperty(this,"_inlayHints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_importCompleteLibrary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._inlayHints=new Map,this._importCompleteLibrary=new Map,this._funcs=new Map}get inlayHints(){return[...this._inlayHints.values()]}setEditor(s){this._editor=s}async setInlayHints(s){const{endLine:r,endColumn:n,name:o,libraryId:l,libraryName:c}=s;if(this._importCompleteLibrary.has(l)){const d=this._funcs.get(l);return((d==null?void 0:d.name)!==o||!o&&!this._inlayHints.has(l))&&(this._updateFuncNames(o||c,l),this._inlayHintsHandle(s)),this._importCompleteLibrary.get(l)}return this._importCompleteLibrary.set(l,Yo),this._inlayHints.set(l,{label:"loading...",position:{column:n,lineNumber:r},paddingLeft:!0}),this.triggerInlayHints(),this._updateFuncNames(o||c,l),setTimeout(()=>{this._inlayHints.has(l)&&this._inlayHintsHandle(s)},2e3),Yo}deleteInlayHints(s){this._inlayHints.delete(s)}clearInlayHints(){this._inlayHints.clear()}triggerInlayHints(){this._editor&&this._editor.updateOptions({inlayHints:{fontFamily:String(Date.now())}})}_updateFuncNames(s,r){const n=this._importCompleteLibrary.get(r);if(!n)return;const o=n.functions.map(l=>`${s}.${l.name}`);this._funcs.set(r,{name:s,funcs:o}),this._updateMonarchTokens()}_setNoNameInlayHints(s){const{endLine:r,endColumn:n,libraryId:o,libraryName:l}=s;this._inlayHints.set(o,{label:`as ${l}`,position:{column:n,lineNumber:r},paddingLeft:!0})}_inlayHintsHandle(s){const{name:r,libraryId:n}=s;r?this._inlayHints.delete(n):this._setNoNameInlayHints(s),this.triggerInlayHints()}_updateMonarchTokens(){const s=[...this._funcs.values()].map(o=>o.funcs.join("|")),r=new RegExp("\\b("+s.join("|")+")(?=\\s*\\()"),n=[...js.tokenizer.root];n.splice(15,0,[r,"meta.function-call"]),Ne.languages.setMonarchTokensProvider(Ke,{...js,tokenizer:{...js.tokenizer,root:n}})}}const _a=new nm;function im(a,s,r){var D;const n={startLineNumber:s.lineNumber,startColumn:1,endLineNumber:s.lineNumber,endColumn:s.column},o=a.getValueInRange(n);if(/^\/\/\s*@/.test(o))return{suggestions:Pt.annotationSuggestions};if(r.triggerCharacter==="@")return{suggestions:[]};const l=o.match(/([\w.]+)$/)||[];if(!l.length)return{suggestions:[]};const c=(D=l[0])==null?void 0:D.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),d=c?c[1]?c[1]:c[2]?c[2]:void 0:void 0,m=a.getWordUntilPosition(s),_=Ds.parseCurrentInputFunc(o),g={startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:m.startColumn,endColumn:m.endColumn},x=a.getValueInRange({...g,startColumn:m.endColumn,endColumn:m.endColumn+1});Pt.nextIsBracket=x==="(";let h=Qo(Pt.getSuggestions(d)||[],g);if(l[0]==="."&&(h=[]),_&&!d&&!/=\s*\w+$/.test(o)){const z=Qo(Pt.getArgSuggestions(_.funcName)||[],g);h=h.concat(z)}return{suggestions:h||[],dispose:()=>{}}}function om(a){if(a.kind!==1)return a;const{originInsertText:s}=a;return Pt.nextIsBracket?a.insertText=s:a.insertText=s+Pt.bracketsPostfix,a}function lm(a,s){var n;const r=Ds.parseLineContentFuncVar(s.column,s.lineNumber,a,s);if(r!=null&&r.libraryId)return{contents:[{value:ju(r)}]};if((n=r==null?void 0:r.docValue)!=null&&n.length){const o=Hu(r.docValue,r.index,r.isBuildIn);if(o)return{contents:[{value:o}]}}return{contents:[]}}function cm(a,s){var x,h;const r={startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:1,endColumn:s.column},n=a.getValueInRange(r),o=a.findMatches(String(Zu),r,!0,!1,null,!0),l=a.findMatches(String(Ju),r,!0,!1,null,!0),c=(x=o.pop())==null?void 0:x.matches,d=(h=l.pop())==null?void 0:h.matches;let m=!1;o.length%2===0?c&&c[0]==='"'&&(m=!0):c&&!c[0]&&(m=!0);let _=!1;l.length%2===0?d&&d[0]==="'"&&(_=!0):d&&!d[0]&&(_=!0);const g=Ds.parseCurrentInputFuncAndArg(n,_,m);if(g){const{funcName:D,args:z,startIndex:P}=g,$=sm.getSignatureHelpValues(D,z,P+1,s.lineNumber);if($)return{value:$,dispose:()=>{}}}return null}function pm(a){let s=a.findMatches(On.colorMatchesRegStr,!0,!0,!1,null,!0);return s=s.filter(n=>{const o=a.getValueInRange({...n.range,startColumn:0});return o.indexOf("//")===-1||o.indexOf("//")>n.range.endColumn}),On.getDocumentColors(s)}function dm(a,s){return On.getDocumentColorPresentations(a,s)||[]}function um(a,s){var d,m;const r=a.getModel(),n=Ds.parseLineContentFuncVar(s.startColumn+1,s.startLineNumber,r);if(!n||n.isBuildIn||!n.docValue||!n.docValue[0].pos)return n!=null&&n.isBuildIn||(m=(d=n==null?void 0:n.docValue)==null?void 0:d[0].title)!=null&&m.startsWith("built-in")?n:void 0;const{lineNumber:o,column:l}=n.docValue[0].pos,c={startLineNumber:o,endLineNumber:o,startColumn:l,endColumn:l};a.revealRangeInCenterIfOutsideViewport(c),a.setSelection(c)}function mm(a,s){return Ds.parseLineContentFuncVar(s.column,s.lineNumber,a,s)?{uri:a.uri,range:{startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:s.column-1,endColumn:s.column-1}}:null}function Qo(a,s){return a.map(r=>(r.range=s,r))}function ym(){return{hints:_a.inlayHints,dispose:()=>{}}}var Ir={},Ar=ad;if(process.env.NODE_ENV==="production")Ir.createRoot=Ar.createRoot,Ir.hydrateRoot=Ar.hydrateRoot;else{var fa=Ar.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ir.createRoot=function(a,s){fa.usingClientEntryPoint=!0;try{return Ar.createRoot(a,s)}finally{fa.usingClientEntryPoint=!1}},Ir.hydrateRoot=function(a,s,r){fa.usingClientEntryPoint=!0;try{return Ar.hydrateRoot(a,s,r)}finally{fa.usingClientEntryPoint=!1}}}var st;(function(a){a.added="added",a.removed="removed",a.modified="modified"})(st||(st={}));const _m=(a,s)=>{const{close:r,retracement:n}=a,[o,l]=S.useState("modified");return S.useImperativeHandle(s,()=>({updateType(c){l(c)}})),T.jsxs("div",{className:`content-popup content-${o}-popup`,children:[T.jsx("div",{className:`triangle-popup triangle-${o}-popup`}),T.jsxs("div",{className:`header-popup header-${o}-popup`,children:[T.jsx("div",{className:"title-popup",children:"Local working changes"}),T.jsx("div",{className:"actions-popup",children:T.jsx("div",{onClick:r,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:T.jsx("span",{className:"icon-popup",role:"img",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:T.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),T.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},fm=S.forwardRef(_m);class gm{constructor(s,r,n=!0){Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_top",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._id=s,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=n?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",r==null||r.onDidScrollChange(this.scrollChangeHandler.bind(this)),Ir.createRoot(this._domNode).render(T.jsx(fm,{ref:o=>this._content=o,close:()=>this._close(),retracement:this._retracement})),this._top=0}_close(){this._domNode.style.display="none"}_retracement(){}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}show(s,r,n){var o;this._top=r,(o=this._content)==null||o.updateType(n),this._domNode.style.top=`${s}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(s){const r=s.scrollTop;this._domNode.style.top=`${this._top-r}px`}}function ds(){}ds.prototype={diff:function(s,r){var n,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=o.callback;typeof o=="function"&&(l=o,o={}),this.options=o;var c=this;function d(V){return l?(setTimeout(function(){l(void 0,V)},0),!0):V}s=this.castInput(s),r=this.castInput(r),s=this.removeEmpty(this.tokenize(s)),r=this.removeEmpty(this.tokenize(r));var m=r.length,_=s.length,g=1,x=m+_;o.maxEditLength&&(x=Math.min(x,o.maxEditLength));var h=(n=o.timeout)!==null&&n!==void 0?n:1/0,D=Date.now()+h,z=[{oldPos:-1,lastComponent:void 0}],P=this.extractCommon(z[0],r,s,0);if(z[0].oldPos+1>=_&&P+1>=m)return d([{value:this.join(r),count:r.length}]);var $=-1/0,j=1/0;function W(){for(var V=Math.max($,-g);V<=Math.min(j,g);V+=2){var Q=void 0,q=z[V-1],C=z[V+1];q&&(z[V-1]=void 0);var R=!1;if(C){var E=C.oldPos-V;R=C&&0<=E&&E<m}var A=q&&q.oldPos+1<_;if(!R&&!A){z[V]=void 0;continue}if(!A||R&&q.oldPos+1<C.oldPos?Q=c.addToPath(C,!0,void 0,0):Q=c.addToPath(q,void 0,!0,1),P=c.extractCommon(Q,r,s,V),Q.oldPos+1>=_&&P+1>=m)return d(bm(c,Q.lastComponent,r,s,c.useLongestToken));z[V]=Q,Q.oldPos+1>=_&&(j=Math.min(j,V-1)),P+1>=m&&($=Math.max($,V+1))}g++}if(l)(function V(){setTimeout(function(){if(g>x||Date.now()>D)return l();W()||V()},0)})();else for(;g<=x&&Date.now()<=D;){var re=W();if(re)return re}},addToPath:function(s,r,n,o){var l=s.lastComponent;return l&&l.added===r&&l.removed===n?{oldPos:s.oldPos+o,lastComponent:{count:l.count+1,added:r,removed:n,previousComponent:l.previousComponent}}:{oldPos:s.oldPos+o,lastComponent:{count:1,added:r,removed:n,previousComponent:l}}},extractCommon:function(s,r,n,o){for(var l=r.length,c=n.length,d=s.oldPos,m=d-o,_=0;m+1<l&&d+1<c&&this.equals(r[m+1],n[d+1]);)m++,d++,_++;return _&&(s.lastComponent={count:_,previousComponent:s.lastComponent}),s.oldPos=d,m},equals:function(s,r){return this.options.comparator?this.options.comparator(s,r):s===r||this.options.ignoreCase&&s.toLowerCase()===r.toLowerCase()},removeEmpty:function(s){for(var r=[],n=0;n<s.length;n++)s[n]&&r.push(s[n]);return r},castInput:function(s){return s},tokenize:function(s){return s.split("")},join:function(s){return s.join("")}};function bm(a,s,r,n,o){for(var l=[],c;s;)l.push(s),c=s.previousComponent,delete s.previousComponent,s=c;l.reverse();for(var d=0,m=l.length,_=0,g=0;d<m;d++){var x=l[d];if(x.removed){if(x.value=a.join(n.slice(g,g+x.count)),g+=x.count,d&&l[d-1].added){var D=l[d-1];l[d-1]=l[d],l[d]=D}}else{if(!x.added&&o){var h=r.slice(_,_+x.count);h=h.map(function(P,$){var j=n[g+$];return j.length>P.length?j:P}),x.value=a.join(h)}else x.value=a.join(r.slice(_,_+x.count));_+=x.count,x.added||(g+=x.count)}}var z=l[m-1];return m>1&&typeof z.value=="string"&&(z.added||z.removed)&&a.equals("",z.value)&&(l[m-2].value+=z.value,l.pop()),l}var Zo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Jo=/\S/,el=new ds;el.equals=function(a,s){return this.options.ignoreCase&&(a=a.toLowerCase(),s=s.toLowerCase()),a===s||this.options.ignoreWhitespace&&!Jo.test(a)&&!Jo.test(s)},el.tokenize=function(a){for(var s=a.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<s.length-1;r++)!s[r+1]&&s[r+2]&&Zo.test(s[r])&&Zo.test(s[r+2])&&(s[r]+=s[r+2],s.splice(r+1,2),r--);return s};var Pn=new ds;Pn.tokenize=function(a){this.options.stripTrailingCr&&(a=a.replace(/\r\n/g,`
|
140
|
-
`));var s=[],r=a.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var o=r[n];n%2&&!this.options.newlineIsToken?s[s.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),s.push(o))}return s};function xm(a,s,r){return Pn.diff(a,s,r)}var hm=new ds;hm.tokenize=function(a){return a.split(/(\S.+?[.!?])(?=\s+|$)/)};var wm=new ds;wm.tokenize=function(a){return a.split(/([{}:;,]|\s+)/)};function ga(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ga=function(s){return typeof s}:ga=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},ga(a)}var vm=Object.prototype.toString,qr=new ds;qr.useLongestToken=!0,qr.tokenize=Pn.tokenize,qr.castInput=function(a){var s=this.options,r=s.undefinedReplacement,n=s.stringifyReplacer,o=n===void 0?function(l,c){return typeof c>"u"?r:c}:n;return typeof a=="string"?a:JSON.stringify(Rn(a,null,null,o),o," ")},qr.equals=function(a,s){return ds.prototype.equals.call(qr,a.replace(/,([\r\n])/g,"$1"),s.replace(/,([\r\n])/g,"$1"))};function Rn(a,s,r,n,o){s=s||[],r=r||[],n&&(a=n(o,a));var l;for(l=0;l<s.length;l+=1)if(s[l]===a)return r[l];var c;if(vm.call(a)==="[object Array]"){for(s.push(a),c=new Array(a.length),r.push(c),l=0;l<a.length;l+=1)c[l]=Rn(a[l],s,r,n,o);return s.pop(),r.pop(),c}if(a&&a.toJSON&&(a=a.toJSON()),ga(a)==="object"&&a!==null){s.push(a),c={},r.push(c);var d=[],m;for(m in a)a.hasOwnProperty(m)&&d.push(m);for(d.sort(),l=0;l<d.length;l+=1)m=d[l],c[m]=Rn(a[m],s,r,n,m);s.pop(),r.pop()}else c=a;return c}var Fn=new ds;Fn.tokenize=function(a){return a.slice()},Fn.join=Fn.removeEmpty=function(a){return a};class Tm{constructor(s,r,n=""){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalModel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldDecorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffEditor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffPopupWidget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_didChangeListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onMouseDownListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=s,this._monaco=r,this._originalModel=this._monaco.editor.createModel(n,Ke),this._oldDecorations=[],this._init(),this._eventListening()}_init(){var s;this._changeEvent(),this._didChangeListener=(s=this._editor.getModel())==null?void 0:s.onDidChangeContent(()=>this._changeEvent())}update(s){var r,n;if(this._originalModel=this._monaco.editor.createModel(s,Ke),s!==((r=this._editor.getModel())==null?void 0:r.getValue())){this._changeEvent();return}(n=this._editor.getModel())==null||n.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var s,r,n,o;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(s=this._didChangeListener)==null||s.dispose(),(r=this._onMouseDownListener)==null||r.dispose(),(n=this._editor.getModel())==null||n.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(o=this._diffEditor)==null||o.dispose(),this._diffEditor=void 0}_changesHandle(s){let r=0,n;const o=[];let l=0;for(const c of s){const{added:d,removed:m,count:_=1,value:g}=c;d?n&&n.removed?(r=this._changeHandle(o,r,l,_,st.modified),l=0,n=void 0):(n&&n.added&&(r=this._changeHandle(o,r,l,n.count||1,st.added),l=0),n=c):m?n&&n.added?(r=this._changeHandle(o,r,l,n.count||1,st.modified),l=0,n=void 0):(n&&n.removed&&this._addDecorationList(o,r,st.removed),n=c):/^\n+$/.test(g)?n&&(n.added||n.removed)?l=_:r+=_:(n&&n.added?(r=this._changeHandle(o,r,l,n.count||1,st.added),l=0,n=void 0):n&&n.removed&&(this._addDecorationList(o,r,st.removed),n=void 0),r+=_)}return n&&n.added?r=this._changeHandle(o,r,l,n.count||1,st.added):n&&n.removed&&this._addDecorationList(o,r,st.removed),o}_changeHandle(s,r,n,o,l){for(let c=1;c<=o;c++)this._addDecorationList(s,r+c,l);return r+=o+n,r}_addDecorationList(s,r,n){s.push({range:new this._monaco.Range(r,1,r,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${n} line-decoration_${n}`}})}_changeEvent(){var o,l;const s=xm(this._originalModel.getValue(),((o=this._editor.getModel())==null?void 0:o.getValue())||""),r=this._changesHandle(s),n=((l=this._editor.getModel())==null?void 0:l.deltaDecorations(this._oldDecorations,r))||[];this._oldDecorations=n}_eventListening(){const s=new gm("diff.popup.widget",this._editor);this._editor.addOverlayWidget(s),this._onMouseDownListener=this._editor.onMouseDown(r=>this._onMouseDownHandle(r)),this._diffPopupWidget=s}_onMouseDownHandle(s){var c,d,m,_,g,x;const r=(c=s.target.element)==null?void 0:c.classList,n=r==null?void 0:r.contains(`line-${st.added}`),o=r==null?void 0:r.contains(`line-${st.modified}`),l=r==null?void 0:r.contains(`line-${st.removed}`);if(n||o||l){const h=((m=(d=s==null?void 0:s.target)==null?void 0:d.position)==null?void 0:m.lineNumber)||0,D=((_=this._editor)==null?void 0:_.getTopForLineNumber(h+1))||0,z=((g=this._editor)==null?void 0:g.getScrollTop())||0,P=n?st.added:o?st.modified:st.removed;(x=this._diffPopupWidget)==null||x.show(D-z,D,P),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(h+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class km{constructor(s,r,n){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}),Object.defineProperty(this,"_registerList",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this._editor=s,this._monaco=r,this._onActionTrigger=n,this._init()}addLinkOpenFunc(s){this._onLinkOpen=s}updateActionTrigger(s){this._onActionTrigger=s}setModelMarkers(s){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",s)}addDiffDecorations(){this._decorations||(this._decorations=new Tm(this._editor,this._monaco,this._originalScript))}removeDiffDecorations(){var s;(s=this._decorations)==null||s.dispose(),this._decorations=void 0}setValue(s){this._editor.setValue(s),this._editor.setScrollTop(0),this.focus()}setPosition(s){var r,n;(r=this._editor)==null||r.setPosition(s),(n=this._editor)==null||n.revealPositionInCenter(s),this.focus()}focus(){var s;(s=this._editor)==null||s.focus()}setOriginalScript(s){var r;this._originalScript=s,(r=this._decorations)==null||r.update(s)}getEditorLayout(){var n;const s=this._editor.getContentHeight(),r=(n=this._editor.getModel())==null?void 0:n.getLineCount();return{contentHeight:s,lineCount:r}}setEditorLayout(s,r){var n,o;(o=this._editor)==null||o.layout({height:s,width:r||((n=this._editor)==null?void 0:n.getContainerDomNode().clientWidth)})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition(),this._onTabSizeChange()}_onTabSizeChange(){const s=this._editor.getModel();s==null||s.onDidChangeOptions(r=>{if(r.tabSize&&!r.indentSize){const n=(s==null?void 0:s.getOptions().tabSize)||4;s==null||s.updateOptions({indentSize:n})}})}_setCursorPosition(){const s=localStorage.getItem(Nn);this._editor.setPosition(s?JSON.parse(s):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Ke});const s=this._monaco.languages.registerCompletionItemProvider(Ke,{triggerCharacters:[".","@"],provideCompletionItems:im,resolveCompletionItem:om});this._registerList.push(s);const r=this._monaco.languages.registerHoverProvider(Ke,{provideHover:lm});this._registerList.push(r);const n=this._monaco.languages.registerSignatureHelpProvider(Ke,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:cm});this._registerList.push(n);const o=this._monaco.languages.registerColorProvider(Ke,{provideColorPresentations:dm,provideDocumentColors:pm});this._registerList.push(o);const l=this._monaco.editor.registerEditorOpener({openCodeEditor:(_,g,x)=>{const h=um(_,x);if(h){const{index:D,docValue:z}=h,{title:P,name:$}=z[D];let j="";switch(P){case Ae.keywords:j="kw";break;case Ae.methods:case Ae.functions:j="fun";break;case Ae.variables:j="var";break;case Ae.types:j="type";break;case Ae.constants:j="const";break}this._onLinkOpen&&this._onLinkOpen(`${j}_${$}`,D)}return!0}});this._registerList.push(l);const c=this._monaco.editor.registerLinkOpener({open:_=>(this._onLinkOpen&&_.fragment&&this._onLinkOpen(_.fragment),!!_.fragment)});this._registerList.push(c);const d=this._monaco.languages.registerDefinitionProvider(Ke,{provideDefinition:mm});this._registerList.push(d);const m=this._monaco.languages.registerInlayHintsProvider(Ke,{provideInlayHints:ym});this._registerList.push(m)}_setOptions(){this._monaco.editor.defineTheme("vs-dark",Mn),this._monaco.editor.defineTheme("vs",Ln),this._monaco.languages.setMonarchTokensProvider(Ke,js),this._monaco.languages.setLanguageConfiguration(Ke,En)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(s,r)=>{var n;if(Pt.nextIsBracket){const o=this._editor.getPosition();o&&this._editor.setPosition(Object.assign(o,{column:o.column+1}))}(n=this._editor.getAction(r))==null||n.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:Me.t("save script"),keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(L.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:Me.t("find/replace"),keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(L.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:Me.t("toggle console"),keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"z_commands",contextMenuOrder:0,run:()=>{this._onActionTrigger&&this._onActionTrigger(L.Actions.TriggerConsole)}}),this._editor.addAction({id:"tcc-run-script",label:"运行脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Enter],run:()=>{this._onActionTrigger&&this._onActionTrigger(L.Actions.RunScript)}}),this._editor.addAction({id:"tcc-open-script",label:Me.t("open script"),keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyO],contextMenuGroupId:"9_modification",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(L.Actions.Open)}}),this._editor.addAction({id:"tcc-new-window-script",label:Me.t("open editor in new window"),keybindings:[this._monaco.KeyMod.Shift|this._monaco.KeyMod.Alt|this._monaco.KeyCode.KeyW],contextMenuGroupId:"9_modification",contextMenuOrder:3,run:()=>{this._onActionTrigger&&this._onActionTrigger(L.Actions.NewWindow)}}),this._editor.addAction({id:"tcc-new-tab-script",label:Me.t("open editor in new tab"),keybindings:[this._monaco.KeyMod.Shift|this._monaco.KeyMod.Alt|this._monaco.KeyCode.KeyT],contextMenuGroupId:"9_modification",contextMenuOrder:4,run:()=>{this._onActionTrigger&&this._onActionTrigger(L.Actions.NewTab)}})}openFind(){this.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(s){this._changPositionListener&&this._changPositionListener.dispose();const r=localStorage.getItem(Nn);s&&s(r?JSON.parse(r):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(n=>{localStorage.setItem(Nn,JSON.stringify(n.position)),s&&s(n.position)})}dispose(){var s;for(const r of this._registerList)r.dispose();(s=this._editor)==null||s.dispose()}}/**
|
139
|
+
${this._formatter.code("Space")}`;return n.push(this._formatter.lineBreak),n.push(this._formatter.italic(`${o} ${em(Ae.toTriggerParameterHints)}`)),{value:this._formatter.paragraph(...n)}}}const sm=new tm(window.navigator.userAgent);class rm{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_count",{enumerable:!0,configurable:!0,writable:!0,value:0}),this._colors=Go}getDocumentColors(s){this._count++;const r=[];return s.forEach(n=>{const{range:o}=n;let{matches:l}=n;l=l||[];const c=l[0]||"";let u=null;this._isHexToken(c)?u=this._hexToColor(c):this._isRgbColor(c)?u=this._rgbToColor(c):this._colors[c]?u=this._hexToColor(this._colors[c]):this._isColorExpression(c)&&l[1]&&l[6]&&(u=this._extractNewExpression(l[1],Number(l[6]))),u&&r.push({color:u,range:o})}),r}get _defultColorsRegStr(){return Object.keys(Go).reduce((s,r)=>`${s}|${r}`,"")}get colorMatchesRegStr(){const s=`#[0-9a-fA-F]{6,8}|(\\b(color.rgb\\s*\\((\\s*\\d+\\s*,\\s*){2}(\\s*\\d+\\s*,{0,1}){1,2}\\s*\\)${this._defultColorsRegStr}))`;return`color.new\\s*\\(\\s*(${s})\\s*,\\s*(\\d+)\\s*\\)|${s}`}getDocumentColorPresentations(s,{color:r,range:n}){const o=s.getValueInRange(n);if(this._isHexToken(o)||this._colors[o])return[{label:this._colorRgbRepresentation(r)},{label:this._colorHexRepresentation(r)}];if(this._isColorExpression(o)||this._isRgbColor(o)){const l=this._isColorExpression(o)?this._colorNewRepresentation(r):this._colorRgbRepresentation(r);if(!l)return[];const c=this._colorHexRepresentation(r);return[{label:l,textEdit:{text:l,range:n}},{label:c,textEdit:{text:c,range:n}}]}return null}_hexFromNumber(s){const r=this._denormalize(s).toString(16);return r.length===1?`0${r}`:r}_normalize(s){return s/255}_denormalize(s){return Math.round(255*s)}_normalizeAlpha(s){return(100-s)/100}_denormalizeAlpha(s){return 100-Math.round(100*s)}_extractNewExpression(s,r){let n=null;return this._isHexToken(s)?n=this._hexToColor(s):this._isRgbColor(s)?n=this._rgbToColor(s):this._colors[s]&&(n=this._hexToColor(this._colors[s])),n&&!Number.isNaN(r)?{...n,alpha:this._normalizeAlpha(r)}:null}_colorHexRepresentation(s){const r=this._hexFromNumber(s.red),n=this._hexFromNumber(s.green),o=this._hexFromNumber(s.blue),l=this._hexFromNumber(s.alpha);return`#${r}${n}${o}${s.alpha===1?"":l}`}_colorRgbRepresentation(s){const r=this._denormalize(s.red),n=this._denormalize(s.green),o=this._denormalize(s.blue),l=this._denormalizeAlpha(s.alpha),c=[r,n,o];return l>0&&c.push(l),`color.rgb(${c.join(", ")})`}_colorNewRepresentation(s){const r={...s,alpha:1};return`color.new(${this._colorHexRepresentation(r)}, ${this._denormalizeAlpha(s.alpha)})`}_hexToColor(s){const r=(s=this._isHexToken(s)?s.slice(1):s).length===3||s.length===4,n=r?`${s.slice(0,1)}${s.slice(0,1)}`:s.slice(0,2),o=r?`${s.slice(1,2)}${s.slice(1,2)}`:s.slice(2,4),l=r?`${s.slice(2,3)}${s.slice(2,3)}`:s.slice(4,6),c=(r?`${s.slice(3,4)}${s.slice(3,4)}`:s.slice(6,8))||"ff";return{red:this._normalize(parseInt(n,16)),green:this._normalize(parseInt(o,16)),blue:this._normalize(parseInt(l,16)),alpha:this._normalize(parseInt(c,16))}}_rgbToColor(s){const r=s.replace(/[^\d,]/g,"").split(","),n=this._normalize(Number(r[0])),o=this._normalize(Number(r[1])),l=this._normalize(Number(r[2])),c=this._normalizeAlpha(Number(r[3]))||1;return isNaN(n)||isNaN(o)||isNaN(l)?null:{red:n,green:o,blue:l,alpha:c}}_isHexToken(s){return s.charAt(0)==="#"}_isRgbColor(s){return s.startsWith("color.rgb")}_isColorExpression(s){return s.startsWith("color.new")}}const On=new rm;M.VType=void 0,function(a){a.BOOL="bool",a.INT="int",a.FLOAT="float",a.ARRAY="array",a.BOX="box",a.CHART_POINT="chart.point",a.COLOR="color",a.CONST="const",a.LABEL="label",a.LINE="line",a.LINEFILL="linefill",a.MAP="map",a.MATRIX="matrix",a.POLYLINE="polyline",a.SERIES="series",a.SIMPLE="simple",a.STRING="string",a.TABLE="table",a.UNDETERMINED="undetermined type",a.INPUT="input",a.NA="na",a.VOID="void",a.ENUM="enum"}(M.VType||(M.VType={})),M.VRuleType=void 0,function(a){a.FlowStmt="FlowStmt",a.DeclareAssign="DeclareAssign",a.VarBlockStmt="VarBlockStmt",a.VarSingle="VarSingle",a.VarMultiple="VarMultiple",a.ParenthesizedExpression="ParenthesizedExpression",a.AdditiveExpression="AdditiveExpression",a.RelationalExpression="RelationalExpression",a.EqualityExpression="EqualityExpression",a.TernaryExpression="TernaryExpression",a.UnaryExpression="UnaryExpression",a.NotExpression="NotExpression",a.MemberIndexExpression="MemberIndexExpression",a.MethodExpression="MethodExpression",a.LogicalAndExpression="LogicalAndExpression",a.LogicalOrExpression="LogicalOrExpression",a.MultiplicativeExpression="MultiplicativeExpression",a.Brackethesized="Brackethesized",a.IfStatement="IfStatement",a.ForToStatement="ForToStatement",a.ForInStatement="ForInStatement",a.SwitchStatement="SwitchStatement",a.CaseClause="CaseClause",a.DefaultCaluse="DefaultCaluse",a.WhileStatement="WhileStatement",a.ImportElement="ImportElement",a.Literal="Literal",a.ArrowFunction="ArrowFunction",a.ArrowMethod="ArrowMethod",a.TypeStatement="TypeStatement",a.Name="Name",a.AgainAssign="AgainAssign",a.EnumStatement="EnumStatement"}(M.VRuleType||(M.VRuleType={})),M.VAdjustment=void 0,function(a){a.dividends="dividends",a.none="none",a.splits="splits"}(M.VAdjustment||(M.VAdjustment={})),M.VAlert=void 0,function(a){a.freqAll="freq_all",a.freqOncePerBar="freq_once_per_bar",a.freqOncePerBarClose="freq_once_per_bar_close"}(M.VAlert||(M.VAlert={})),M.VBarmergeGaps=void 0,function(a){a.gapsOff="gaps_off",a.gapsOn="gaps_on",a.lookaheadOff="lookahead_off",a.lookaheadOn="lookahead_on"}(M.VBarmergeGaps||(M.VBarmergeGaps={})),M.VPlotDisplay=void 0,function(a){a.all="all",a.dataWindow="data_window",a.none="none",a.pane="pane",a.priceScale="price_scale",a.statusLine="status_line"}(M.VPlotDisplay||(M.VPlotDisplay={})),M.VExtend=void 0,function(a){a.both="both",a.left="left",a.none="none",a.right="right"}(M.VExtend||(M.VExtend={})),M.VFormatType=void 0,function(a){a.inherit="inherit",a.mintick="mintick",a.percent="percent",a.price="price",a.volume="volume"}(M.VFormatType||(M.VFormatType={})),M.VHlineStyle=void 0,function(a){a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(M.VHlineStyle||(M.VHlineStyle={})),M.VLabelStyle=void 0,function(a){a.styleArrowdown="style_arrowdown",a.styleArrowup="style_arrowup",a.styleCircle="style_circle",a.styleCross="style_cross",a.styleDiamond="style_diamond",a.styleFlag="style_flag",a.styleLabelCenter="style_label_center",a.styleLabelDown="style_label_down",a.styleLabelLeft="style_label_left",a.styleLabelLowerLeft="style_label_lower_left",a.styleLabelLowerRight="style_label_lower_right",a.styleLabelRight="style_label_right",a.styleLabelUp="style_label_up",a.styleLabelUpperLeft="style_label_upper_left",a.styleLabelUpperRight="style_label_upper_right",a.styleNone="style_none",a.styleSquare="style_square",a.styleTextOutline="style_text_outline",a.styleTriangledown="style_triangledown",a.styleTriangleup="style_triangleup",a.styleXcross="style_xcross"}(M.VLabelStyle||(M.VLabelStyle={})),M.VLineStyle=void 0,function(a){a.styleArrowBoth="style_arrow_both",a.styleArrowLeft="style_arrow_left",a.styleArrowRight="style_arrow_right",a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(M.VLineStyle||(M.VLineStyle={})),M.VLocation=void 0,function(a){a.abovebar="abovebar",a.absolute="absolute",a.belowbar="belowbar",a.bottom="bottom",a.top="top"}(M.VLocation||(M.VLocation={})),M.VSortOrder=void 0,function(a){a.ascending="ascending",a.descending="descending"}(M.VSortOrder||(M.VSortOrder={})),M.VPlotStyle=void 0,function(a){a.styleArea="Area",a.styleAreabr="Area With Breaks",a.styleCircles="Circles",a.styleColumns="Columns",a.styleCross="Cross",a.styleHistogram="Histogram",a.styleLine="Line",a.styleLinebr="Line With Breaks",a.styleStepline="Step Line",a.styleSteplineDiamond="Step Line With Diamonds",a.styleSteplinebr="Step line with Breaks"}(M.VPlotStyle||(M.VPlotStyle={})),M.VPosition=void 0,function(a){a.bottomCenter="bottom_center",a.bottomLeft="bottom_left",a.bottomRight="bottom_right",a.middleCenter="middle_center",a.middleLeft="middle_left",a.middleRight="middle_right",a.topCenter="top_center",a.topLeft="top_left",a.topRight="top_right"}(M.VPosition||(M.VPosition={})),M.VScale=void 0,function(a){a.left="left",a.none="none",a.right="right"}(M.VScale||(M.VScale={})),M.VSession=void 0,function(a){a.extended="extended",a.regular="regular"}(M.VSession||(M.VSession={})),M.VShape=void 0,function(a){a.arrowdown="arrowdown",a.arrowup="arrowup",a.circle="circle",a.cross="cross",a.diamond="diamond",a.flag="flag",a.labeldown="labeldown",a.labelup="labelup",a.square="square",a.triangledown="triangledown",a.triangleup="triangleup",a.xcross="xcross"}(M.VShape||(M.VShape={})),M.VSize=void 0,function(a){a.auto="auto",a.huge="huge",a.large="large",a.normal="normal",a.small="small",a.tiny="tiny"}(M.VSize||(M.VSize={})),M.VFont=void 0,function(a){a.familyDefault="default",a.familyMonospace="monospace"}(M.VFont||(M.VFont={})),M.VStrategy=void 0,function(a){a.cash="cash",a.fixed="fixed",a.percentOfEquity="percent_of_equity"}(M.VStrategy||(M.VStrategy={})),M.VCommission=void 0,function(a){a.cashPerContract="cash_per_contract",a.cashPerOrder="cash_per_order",a.percent="percent"}(M.VCommission||(M.VCommission={})),M.VDirection=void 0,function(a){a.all="all",a.long="long",a.short="short"}(M.VDirection||(M.VDirection={})),M.VOca=void 0,function(a){a.cancel="cancel",a.none="none",a.reduce="reduce"}(M.VOca||(M.VOca={})),M.VText=void 0,function(a){a.alignBottom="align_bottom",a.alignCenter="align_center",a.alignLeft="align_left",a.alignRight="align_right",a.alignTop="align_top",a.wrapAuto="wrap_auto",a.wrapNone="wrap_none"}(M.VText||(M.VText={})),M.VXloc=void 0,function(a){a.bar_index="bar_index",a.bar_time="bar_time"}(M.VXloc||(M.VXloc={})),M.VYloc=void 0,function(a){a.abovebar="abovebar",a.belowbar="belowbar",a.price="price"}(M.VYloc||(M.VYloc={})),M.VEarnings=void 0,function(a){a.actual="actual",a.estimate="estimate",a.standardized="standardized"}(M.VEarnings||(M.VEarnings={})),M.VPivotType=void 0,function(a){a.traditional="Traditional",a.fibonacci="Fibonacci",a.woodie="Woodie",a.classic="Classic",a.dm="DM",a.camarilla="Camarilla"}(M.VPivotType||(M.VPivotType={})),M.VInputType=void 0,function(a){a.INT="int",a.BOOL="bool",a.TIME="time",a.COLOR="color",a.FLOAT="float",a.PRICE="price",a.SOURCE="source",a.STRING="string",a.SYMBOL="symbol",a.SESSION="session",a.TEXT_AREA="text_area",a.TIMEFRAME="timeframe",a.ENUM="enum"}(M.VInputType||(M.VInputType={}));var Xo;(function(a){a.description="description",a.field="field",a.function="function",a.param="param",a.returns="returns",a.type="type",a.variable="variable",a.enum="enum"})(Xo||(Xo={})),M.VScriptType=void 0,function(a){a.library="library",a.indicator="indicator",a.strategy="strategy"}(M.VScriptType||(M.VScriptType={})),M.VType.SERIES,M.VType.SIMPLE,M.VType.INPUT,M.VType.CONST,M.VType.INT,M.VType.FLOAT,M.VType.BOOL,M.VType.COLOR,M.VType.STRING;const am={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1},Yo={functions:[{name:"calcBB",desc:["Computes Bollinger Band values from an array of data."],args:[{name:"srcArray",desc:"(array<float>) The array where the queue is maintained.",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series float mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"srcArray",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series int mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],index:1},{name:"Scanner.new",args:[{name:"enabled",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"},{name:"ticker",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"},{name:"timeframe",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.new(series bool enabled, series string ticker, series string timeframe) → Scanner"]},{name:"Scanner.copy",args:[{name:"object",required:!0,allowedTypeIDs:["Scanner"],displayType:"Scanner"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},info:"The identifier of the object to be copied.",syntax:["Scanner.copy(Scanner object) → Scanner"]}],methods:[{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],desc:["Computes Bollinger Band values from an array of data."],originalName:"array.calcBB",syntax:["calcBB(series float mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},thisType:["float[]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],originalName:"array.calcBB",syntax:["calcBB(series int mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},thisType:["float[]"],index:1},{name:"Scanner.copy",args:[],returnedTypes:["Scanner"],thisType:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.copy() → Scanner"]}],types:[{fields:[{name:"enabled",type:"series bool"},{name:"ticker",type:"series string"},{name:"timeframe",type:"series string"}],name:"Scanner",pos:{lineNumber:30,column:12}}],description:"Provides a tool to quickly output a label on the chart.",codeStr:'const $name={calcBB:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_12","var")||$_var.setVarValue("mean",e+"_14_12",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_13","var")||$_var.setVarValue("dev",e+"_14_13",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_16_16")),v=a.avg(e+"_16_16"),$_var.setVarValue("mean",e+"_14_12",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_17_16")*r),s=a.stdev(e+"_17_16")*r,$_var.setVarValue("dev",e+"_14_13",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},calcBB$1:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_21","var")||$_var.setVarValue("mean",e+"_14_21",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_22","var")||$_var.setVarValue("dev",e+"_14_22",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_25_16")),v=a.avg(e+"_25_16"),$_var.setVarValue("mean",e+"_14_21",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_26_16")*r),s=a.stdev(e+"_26_16")*r,$_var.setVarValue("dev",e+"_14_22",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},Scanner:$_var.getTypeInstance({enabled:void 0,ticker:void 0,timeframe:void 0},[])};'};class nm{constructor(){Object.defineProperty(this,"_inlayHints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_importCompleteLibrary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._inlayHints=new Map,this._importCompleteLibrary=new Map,this._funcs=new Map}get inlayHints(){return[...this._inlayHints.values()]}setEditor(s){this._editor=s}async setInlayHints(s){const{endLine:r,endColumn:n,name:o,libraryId:l,libraryName:c}=s;if(this._importCompleteLibrary.has(l)){const u=this._funcs.get(l);return((u==null?void 0:u.name)!==o||!o&&!this._inlayHints.has(l))&&(this._updateFuncNames(o||c,l),this._inlayHintsHandle(s)),this._importCompleteLibrary.get(l)}return this._importCompleteLibrary.set(l,Yo),this._inlayHints.set(l,{label:"loading...",position:{column:n,lineNumber:r},paddingLeft:!0}),this.triggerInlayHints(),this._updateFuncNames(o||c,l),setTimeout(()=>{this._inlayHints.has(l)&&this._inlayHintsHandle(s)},2e3),Yo}deleteInlayHints(s){this._inlayHints.delete(s)}clearInlayHints(){this._inlayHints.clear()}triggerInlayHints(){this._editor&&this._editor.updateOptions({inlayHints:{fontFamily:String(Date.now())}})}_updateFuncNames(s,r){const n=this._importCompleteLibrary.get(r);if(!n)return;const o=n.functions.map(l=>`${s}.${l.name}`);this._funcs.set(r,{name:s,funcs:o}),this._updateMonarchTokens()}_setNoNameInlayHints(s){const{endLine:r,endColumn:n,libraryId:o,libraryName:l}=s;this._inlayHints.set(o,{label:`as ${l}`,position:{column:n,lineNumber:r},paddingLeft:!0})}_inlayHintsHandle(s){const{name:r,libraryId:n}=s;r?this._inlayHints.delete(n):this._setNoNameInlayHints(s),this.triggerInlayHints()}_updateMonarchTokens(){const s=[...this._funcs.values()].map(o=>o.funcs.join("|")),r=new RegExp("\\b("+s.join("|")+")(?=\\s*\\()"),n=[...js.tokenizer.root];n.splice(15,0,[r,"meta.function-call"]),Ne.languages.setMonarchTokensProvider(Ke,{...js,tokenizer:{...js.tokenizer,root:n}})}}const _a=new nm;function im(a,s,r){var D;const n={startLineNumber:s.lineNumber,startColumn:1,endLineNumber:s.lineNumber,endColumn:s.column},o=a.getValueInRange(n);if(/^\/\/\s*@/.test(o))return{suggestions:Pt.annotationSuggestions};if(r.triggerCharacter==="@")return{suggestions:[]};const l=o.match(/([\w.]+)$/)||[];if(!l.length)return{suggestions:[]};const c=(D=l[0])==null?void 0:D.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),u=c?c[1]?c[1]:c[2]?c[2]:void 0:void 0,m=a.getWordUntilPosition(s),_=Ds.parseCurrentInputFunc(o),g={startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:m.startColumn,endColumn:m.endColumn},x=a.getValueInRange({...g,startColumn:m.endColumn,endColumn:m.endColumn+1});Pt.nextIsBracket=x==="(";let h=Qo(Pt.getSuggestions(u)||[],g);if(l[0]==="."&&(h=[]),_&&!u&&!/=\s*\w+$/.test(o)){const S=Qo(Pt.getArgSuggestions(_.funcName)||[],g);h=h.concat(S)}return{suggestions:h||[],dispose:()=>{}}}function om(a){if(a.kind!==1)return a;const{originInsertText:s}=a;return Pt.nextIsBracket?a.insertText=s:a.insertText=s+Pt.bracketsPostfix,a}function lm(a,s){var n;const r=Ds.parseLineContentFuncVar(s.column,s.lineNumber,a,s);if(r!=null&&r.libraryId)return{contents:[{value:ju(r)}]};if((n=r==null?void 0:r.docValue)!=null&&n.length){const o=Hu(r.docValue,r.index,r.isBuildIn);if(o)return{contents:[{value:o}]}}return{contents:[]}}function cm(a,s){var x,h;const r={startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:1,endColumn:s.column},n=a.getValueInRange(r),o=a.findMatches(String(Zu),r,!0,!1,null,!0),l=a.findMatches(String(Ju),r,!0,!1,null,!0),c=(x=o.pop())==null?void 0:x.matches,u=(h=l.pop())==null?void 0:h.matches;let m=!1;o.length%2===0?c&&c[0]==='"'&&(m=!0):c&&!c[0]&&(m=!0);let _=!1;l.length%2===0?u&&u[0]==="'"&&(_=!0):u&&!u[0]&&(_=!0);const g=Ds.parseCurrentInputFuncAndArg(n,_,m);if(g){const{funcName:D,args:S,startIndex:R}=g,U=sm.getSignatureHelpValues(D,S,R+1,s.lineNumber);if(U)return{value:U,dispose:()=>{}}}return null}function pm(a){let s=a.findMatches(On.colorMatchesRegStr,!0,!0,!1,null,!0);return s=s.filter(n=>{const o=a.getValueInRange({...n.range,startColumn:0});return o.indexOf("//")===-1||o.indexOf("//")>n.range.endColumn}),On.getDocumentColors(s)}function dm(a,s){return On.getDocumentColorPresentations(a,s)||[]}function um(a,s){var u,m;const r=a.getModel(),n=Ds.parseLineContentFuncVar(s.startColumn+1,s.startLineNumber,r);if(!n||n.isBuildIn||!n.docValue||!n.docValue[0].pos)return n!=null&&n.isBuildIn||(m=(u=n==null?void 0:n.docValue)==null?void 0:u[0].title)!=null&&m.startsWith("built-in")?n:void 0;const{lineNumber:o,column:l}=n.docValue[0].pos,c={startLineNumber:o,endLineNumber:o,startColumn:l,endColumn:l};a.revealRangeInCenterIfOutsideViewport(c),a.setSelection(c)}function mm(a,s){return Ds.parseLineContentFuncVar(s.column,s.lineNumber,a,s)?{uri:a.uri,range:{startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:s.column-1,endColumn:s.column-1}}:null}function Qo(a,s){return a.map(r=>(r.range=s,r))}function ym(){return{hints:_a.inlayHints,dispose:()=>{}}}var Ir={},Ar=ad;if(process.env.NODE_ENV==="production")Ir.createRoot=Ar.createRoot,Ir.hydrateRoot=Ar.hydrateRoot;else{var fa=Ar.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ir.createRoot=function(a,s){fa.usingClientEntryPoint=!0;try{return Ar.createRoot(a,s)}finally{fa.usingClientEntryPoint=!1}},Ir.hydrateRoot=function(a,s,r){fa.usingClientEntryPoint=!0;try{return Ar.hydrateRoot(a,s,r)}finally{fa.usingClientEntryPoint=!1}}}var st;(function(a){a.added="added",a.removed="removed",a.modified="modified"})(st||(st={}));const _m=(a,s)=>{const{close:r,retracement:n}=a,[o,l]=N.useState("modified");return N.useImperativeHandle(s,()=>({updateType(c){l(c)}})),T.jsxs("div",{className:`content-popup content-${o}-popup`,children:[T.jsx("div",{className:`triangle-popup triangle-${o}-popup`}),T.jsxs("div",{className:`header-popup header-${o}-popup`,children:[T.jsx("div",{className:"title-popup",children:"Local working changes"}),T.jsx("div",{className:"actions-popup",children:T.jsx("div",{onClick:r,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:T.jsx("span",{className:"icon-popup",role:"img",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:T.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),T.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},fm=N.forwardRef(_m);class gm{constructor(s,r,n=!0){Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_top",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._id=s,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=n?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",r==null||r.onDidScrollChange(this.scrollChangeHandler.bind(this)),Ir.createRoot(this._domNode).render(T.jsx(fm,{ref:o=>this._content=o,close:()=>this._close(),retracement:this._retracement})),this._top=0}_close(){this._domNode.style.display="none"}_retracement(){}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}show(s,r,n){var o;this._top=r,(o=this._content)==null||o.updateType(n),this._domNode.style.top=`${s}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(s){const r=s.scrollTop;this._domNode.style.top=`${this._top-r}px`}}function ds(){}ds.prototype={diff:function(s,r){var n,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=o.callback;typeof o=="function"&&(l=o,o={}),this.options=o;var c=this;function u(W){return l?(setTimeout(function(){l(void 0,W)},0),!0):W}s=this.castInput(s),r=this.castInput(r),s=this.removeEmpty(this.tokenize(s)),r=this.removeEmpty(this.tokenize(r));var m=r.length,_=s.length,g=1,x=m+_;o.maxEditLength&&(x=Math.min(x,o.maxEditLength));var h=(n=o.timeout)!==null&&n!==void 0?n:1/0,D=Date.now()+h,S=[{oldPos:-1,lastComponent:void 0}],R=this.extractCommon(S[0],r,s,0);if(S[0].oldPos+1>=_&&R+1>=m)return u([{value:this.join(r),count:r.length}]);var U=-1/0,K=1/0;function H(){for(var W=Math.max(U,-g);W<=Math.min(K,g);W+=2){var Q=void 0,C=S[W-1],z=S[W+1];C&&(S[W-1]=void 0);var V=!1;if(z){var q=z.oldPos-W;V=z&&0<=q&&q<m}var A=C&&C.oldPos+1<_;if(!V&&!A){S[W]=void 0;continue}if(!A||V&&C.oldPos+1<z.oldPos?Q=c.addToPath(z,!0,void 0,0):Q=c.addToPath(C,void 0,!0,1),R=c.extractCommon(Q,r,s,W),Q.oldPos+1>=_&&R+1>=m)return u(bm(c,Q.lastComponent,r,s,c.useLongestToken));S[W]=Q,Q.oldPos+1>=_&&(K=Math.min(K,W-1)),R+1>=m&&(U=Math.max(U,W+1))}g++}if(l)(function W(){setTimeout(function(){if(g>x||Date.now()>D)return l();H()||W()},0)})();else for(;g<=x&&Date.now()<=D;){var re=H();if(re)return re}},addToPath:function(s,r,n,o){var l=s.lastComponent;return l&&l.added===r&&l.removed===n?{oldPos:s.oldPos+o,lastComponent:{count:l.count+1,added:r,removed:n,previousComponent:l.previousComponent}}:{oldPos:s.oldPos+o,lastComponent:{count:1,added:r,removed:n,previousComponent:l}}},extractCommon:function(s,r,n,o){for(var l=r.length,c=n.length,u=s.oldPos,m=u-o,_=0;m+1<l&&u+1<c&&this.equals(r[m+1],n[u+1]);)m++,u++,_++;return _&&(s.lastComponent={count:_,previousComponent:s.lastComponent}),s.oldPos=u,m},equals:function(s,r){return this.options.comparator?this.options.comparator(s,r):s===r||this.options.ignoreCase&&s.toLowerCase()===r.toLowerCase()},removeEmpty:function(s){for(var r=[],n=0;n<s.length;n++)s[n]&&r.push(s[n]);return r},castInput:function(s){return s},tokenize:function(s){return s.split("")},join:function(s){return s.join("")}};function bm(a,s,r,n,o){for(var l=[],c;s;)l.push(s),c=s.previousComponent,delete s.previousComponent,s=c;l.reverse();for(var u=0,m=l.length,_=0,g=0;u<m;u++){var x=l[u];if(x.removed){if(x.value=a.join(n.slice(g,g+x.count)),g+=x.count,u&&l[u-1].added){var D=l[u-1];l[u-1]=l[u],l[u]=D}}else{if(!x.added&&o){var h=r.slice(_,_+x.count);h=h.map(function(R,U){var K=n[g+U];return K.length>R.length?K:R}),x.value=a.join(h)}else x.value=a.join(r.slice(_,_+x.count));_+=x.count,x.added||(g+=x.count)}}var S=l[m-1];return m>1&&typeof S.value=="string"&&(S.added||S.removed)&&a.equals("",S.value)&&(l[m-2].value+=S.value,l.pop()),l}var Zo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Jo=/\S/,el=new ds;el.equals=function(a,s){return this.options.ignoreCase&&(a=a.toLowerCase(),s=s.toLowerCase()),a===s||this.options.ignoreWhitespace&&!Jo.test(a)&&!Jo.test(s)},el.tokenize=function(a){for(var s=a.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<s.length-1;r++)!s[r+1]&&s[r+2]&&Zo.test(s[r])&&Zo.test(s[r+2])&&(s[r]+=s[r+2],s.splice(r+1,2),r--);return s};var Pn=new ds;Pn.tokenize=function(a){this.options.stripTrailingCr&&(a=a.replace(/\r\n/g,`
|
140
|
+
`));var s=[],r=a.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var o=r[n];n%2&&!this.options.newlineIsToken?s[s.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),s.push(o))}return s};function xm(a,s,r){return Pn.diff(a,s,r)}var hm=new ds;hm.tokenize=function(a){return a.split(/(\S.+?[.!?])(?=\s+|$)/)};var wm=new ds;wm.tokenize=function(a){return a.split(/([{}:;,]|\s+)/)};function ga(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ga=function(s){return typeof s}:ga=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},ga(a)}var vm=Object.prototype.toString,qr=new ds;qr.useLongestToken=!0,qr.tokenize=Pn.tokenize,qr.castInput=function(a){var s=this.options,r=s.undefinedReplacement,n=s.stringifyReplacer,o=n===void 0?function(l,c){return typeof c>"u"?r:c}:n;return typeof a=="string"?a:JSON.stringify(Rn(a,null,null,o),o," ")},qr.equals=function(a,s){return ds.prototype.equals.call(qr,a.replace(/,([\r\n])/g,"$1"),s.replace(/,([\r\n])/g,"$1"))};function Rn(a,s,r,n,o){s=s||[],r=r||[],n&&(a=n(o,a));var l;for(l=0;l<s.length;l+=1)if(s[l]===a)return r[l];var c;if(vm.call(a)==="[object Array]"){for(s.push(a),c=new Array(a.length),r.push(c),l=0;l<a.length;l+=1)c[l]=Rn(a[l],s,r,n,o);return s.pop(),r.pop(),c}if(a&&a.toJSON&&(a=a.toJSON()),ga(a)==="object"&&a!==null){s.push(a),c={},r.push(c);var u=[],m;for(m in a)a.hasOwnProperty(m)&&u.push(m);for(u.sort(),l=0;l<u.length;l+=1)m=u[l],c[m]=Rn(a[m],s,r,n,m);s.pop(),r.pop()}else c=a;return c}var Fn=new ds;Fn.tokenize=function(a){return a.slice()},Fn.join=Fn.removeEmpty=function(a){return a};class Tm{constructor(s,r,n=""){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalModel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldDecorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffEditor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffPopupWidget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_didChangeListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onMouseDownListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=s,this._monaco=r,this._originalModel=this._monaco.editor.createModel(n,Ke),this._oldDecorations=[],this._init(),this._eventListening()}_init(){var s;this._changeEvent(),this._didChangeListener=(s=this._editor.getModel())==null?void 0:s.onDidChangeContent(()=>this._changeEvent())}update(s){var r,n;if(this._originalModel=this._monaco.editor.createModel(s,Ke),s!==((r=this._editor.getModel())==null?void 0:r.getValue())){this._changeEvent();return}(n=this._editor.getModel())==null||n.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var s,r,n,o;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(s=this._didChangeListener)==null||s.dispose(),(r=this._onMouseDownListener)==null||r.dispose(),(n=this._editor.getModel())==null||n.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(o=this._diffEditor)==null||o.dispose(),this._diffEditor=void 0}_changesHandle(s){let r=0,n;const o=[];let l=0;for(const c of s){const{added:u,removed:m,count:_=1,value:g}=c;u?n&&n.removed?(r=this._changeHandle(o,r,l,_,st.modified),l=0,n=void 0):(n&&n.added&&(r=this._changeHandle(o,r,l,n.count||1,st.added),l=0),n=c):m?n&&n.added?(r=this._changeHandle(o,r,l,n.count||1,st.modified),l=0,n=void 0):(n&&n.removed&&this._addDecorationList(o,r,st.removed),n=c):/^\n+$/.test(g)?n&&(n.added||n.removed)?l=_:r+=_:(n&&n.added?(r=this._changeHandle(o,r,l,n.count||1,st.added),l=0,n=void 0):n&&n.removed&&(this._addDecorationList(o,r,st.removed),n=void 0),r+=_)}return n&&n.added?r=this._changeHandle(o,r,l,n.count||1,st.added):n&&n.removed&&this._addDecorationList(o,r,st.removed),o}_changeHandle(s,r,n,o,l){for(let c=1;c<=o;c++)this._addDecorationList(s,r+c,l);return r+=o+n,r}_addDecorationList(s,r,n){s.push({range:new this._monaco.Range(r,1,r,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${n} line-decoration_${n}`}})}_changeEvent(){var o,l;const s=xm(this._originalModel.getValue(),((o=this._editor.getModel())==null?void 0:o.getValue())||""),r=this._changesHandle(s),n=((l=this._editor.getModel())==null?void 0:l.deltaDecorations(this._oldDecorations,r))||[];this._oldDecorations=n}_eventListening(){const s=new gm("diff.popup.widget",this._editor);this._editor.addOverlayWidget(s),this._onMouseDownListener=this._editor.onMouseDown(r=>this._onMouseDownHandle(r)),this._diffPopupWidget=s}_onMouseDownHandle(s){var c,u,m,_,g,x;const r=(c=s.target.element)==null?void 0:c.classList,n=r==null?void 0:r.contains(`line-${st.added}`),o=r==null?void 0:r.contains(`line-${st.modified}`),l=r==null?void 0:r.contains(`line-${st.removed}`);if(n||o||l){const h=((m=(u=s==null?void 0:s.target)==null?void 0:u.position)==null?void 0:m.lineNumber)||0,D=((_=this._editor)==null?void 0:_.getTopForLineNumber(h+1))||0,S=((g=this._editor)==null?void 0:g.getScrollTop())||0,R=n?st.added:o?st.modified:st.removed;(x=this._diffPopupWidget)==null||x.show(D-S,D,R),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(h+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class km{constructor(s,r,n){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}),Object.defineProperty(this,"_registerList",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this._editor=s,this._monaco=r,this._onActionTrigger=n,this._init()}addLinkOpenFunc(s){this._onLinkOpen=s}updateActionTrigger(s){this._onActionTrigger=s}setModelMarkers(s){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",s)}addDiffDecorations(){this._decorations||(this._decorations=new Tm(this._editor,this._monaco,this._originalScript))}removeDiffDecorations(){var s;(s=this._decorations)==null||s.dispose(),this._decorations=void 0}setValue(s){this._editor.setValue(s),this._editor.setScrollTop(0),this.focus()}setPosition(s){var r,n;(r=this._editor)==null||r.setPosition(s),(n=this._editor)==null||n.revealPositionInCenter(s),this.focus()}focus(){var s;(s=this._editor)==null||s.focus()}setOriginalScript(s){var r;this._originalScript=s,(r=this._decorations)==null||r.update(s)}getEditorLayout(){var n;const s=this._editor.getContentHeight(),r=(n=this._editor.getModel())==null?void 0:n.getLineCount();return{contentHeight:s,lineCount:r}}setEditorLayout(s,r){var n,o;(o=this._editor)==null||o.layout({height:s,width:r||((n=this._editor)==null?void 0:n.getContainerDomNode().clientWidth)})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition(),this._onTabSizeChange()}_onTabSizeChange(){const s=this._editor.getModel();s==null||s.onDidChangeOptions(r=>{if(r.tabSize&&!r.indentSize){const n=(s==null?void 0:s.getOptions().tabSize)||4;s==null||s.updateOptions({indentSize:n})}})}_setCursorPosition(){const s=localStorage.getItem(Nn);this._editor.setPosition(s?JSON.parse(s):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Ke});const s=this._monaco.languages.registerCompletionItemProvider(Ke,{triggerCharacters:[".","@"],provideCompletionItems:im,resolveCompletionItem:om});this._registerList.push(s);const r=this._monaco.languages.registerHoverProvider(Ke,{provideHover:lm});this._registerList.push(r);const n=this._monaco.languages.registerSignatureHelpProvider(Ke,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:cm});this._registerList.push(n);const o=this._monaco.languages.registerColorProvider(Ke,{provideColorPresentations:dm,provideDocumentColors:pm});this._registerList.push(o);const l=this._monaco.editor.registerEditorOpener({openCodeEditor:(_,g,x)=>{const h=um(_,x);if(h){const{index:D,docValue:S}=h,{title:R,name:U}=S[D];let K="";switch(R){case Ae.keywords:K="kw";break;case Ae.methods:case Ae.functions:K="fun";break;case Ae.variables:K="var";break;case Ae.types:K="type";break;case Ae.constants:K="const";break}this._onLinkOpen&&this._onLinkOpen(`${K}_${U}`,D)}return!0}});this._registerList.push(l);const c=this._monaco.editor.registerLinkOpener({open:_=>(this._onLinkOpen&&_.fragment&&this._onLinkOpen(_.fragment),!!_.fragment)});this._registerList.push(c);const u=this._monaco.languages.registerDefinitionProvider(Ke,{provideDefinition:mm});this._registerList.push(u);const m=this._monaco.languages.registerInlayHintsProvider(Ke,{provideInlayHints:ym});this._registerList.push(m)}_setOptions(){this._monaco.editor.defineTheme("vs-dark",Mn),this._monaco.editor.defineTheme("vs",Ln),this._monaco.languages.setMonarchTokensProvider(Ke,js),this._monaco.languages.setLanguageConfiguration(Ke,En)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(s,r)=>{var n;if(Pt.nextIsBracket){const o=this._editor.getPosition();o&&this._editor.setPosition(Object.assign(o,{column:o.column+1}))}(n=this._editor.getAction(r))==null||n.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:Me.t("save script"),keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(M.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:Me.t("find/replace"),keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(M.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:Me.t("toggle console"),keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"z_commands",contextMenuOrder:0,run:()=>{this._onActionTrigger&&this._onActionTrigger(M.Actions.TriggerConsole)}}),this._editor.addAction({id:"tcc-run-script",label:"运行脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Enter],run:()=>{this._onActionTrigger&&this._onActionTrigger(M.Actions.RunScript)}}),this._editor.addAction({id:"tcc-open-script",label:Me.t("open script"),keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyO],contextMenuGroupId:"9_modification",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(M.Actions.Open)}}),this._editor.addAction({id:"tcc-new-window-script",label:Me.t("open editor in new window"),keybindings:[this._monaco.KeyMod.Shift|this._monaco.KeyMod.Alt|this._monaco.KeyCode.KeyW],contextMenuGroupId:"9_modification",contextMenuOrder:3,run:()=>{this._onActionTrigger&&this._onActionTrigger(M.Actions.NewWindow)}}),this._editor.addAction({id:"tcc-new-tab-script",label:Me.t("open editor in new tab"),keybindings:[this._monaco.KeyMod.Shift|this._monaco.KeyMod.Alt|this._monaco.KeyCode.KeyT],contextMenuGroupId:"9_modification",contextMenuOrder:4,run:()=>{this._onActionTrigger&&this._onActionTrigger(M.Actions.NewTab)}})}openFind(){this.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(s){this._changPositionListener&&this._changPositionListener.dispose();const r=localStorage.getItem(Nn);s&&s(r?JSON.parse(r):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(n=>{localStorage.setItem(Nn,JSON.stringify(n.position)),s&&s(n.position)})}dispose(){var s;for(const r of this._registerList)r.dispose();(s=this._editor)==null||s.dispose()}}/**
|
141
141
|
* @license
|
142
142
|
* Copyright 2019 Google LLC
|
143
143
|
* SPDX-License-Identifier: Apache-2.0
|
144
|
-
*/const tl=Symbol("Comlink.proxy"),Dm=Symbol("Comlink.endpoint"),Im=Symbol("Comlink.releaseProxy"),Bn=Symbol("Comlink.finalizer"),ba=Symbol("Comlink.thrown"),sl=a=>typeof a=="object"&&a!==null||typeof a=="function",Am={canHandle:a=>sl(a)&&a[tl],serialize(a){const{port1:s,port2:r}=new MessageChannel;return al(a,s),[r,[r]]},deserialize(a){return a.start(),Un(a)}},qm={canHandle:a=>sl(a)&&ba in a,serialize({value:a}){let s;return a instanceof Error?s={isError:!0,value:{message:a.message,name:a.name,stack:a.stack}}:s={isError:!1,value:a},[s,[]]},deserialize(a){throw a.isError?Object.assign(new Error(a.value.message),a.value):a.value}},rl=new Map([["proxy",Am],["throw",qm]]);function Cm(a,s){for(const r of a)if(s===r||r==="*"||r instanceof RegExp&&r.test(s))return!0;return!1}function al(a,s=globalThis,r=["*"]){s.addEventListener("message",function n(o){if(!o||!o.data)return;if(!Cm(r,o.origin)){console.warn(`Invalid origin '${o.origin}' for comlink proxy`);return}const{id:l,type:c,path:d}=Object.assign({path:[]},o.data),m=(o.data.argumentList||[]).map(Is);let _;try{const g=d.slice(0,-1).reduce((h,D)=>h[D],a),x=d.reduce((h,D)=>h[D],a);switch(c){case"GET":_=x;break;case"SET":g[d.slice(-1)[0]]=Is(o.data.value),_=!0;break;case"APPLY":_=x.apply(g,m);break;case"CONSTRUCT":{const h=new x(...m);_=Kn(h)}break;case"ENDPOINT":{const{port1:h,port2:D}=new MessageChannel;al(a,D),_=Lm(h,[h])}break;case"RELEASE":_=void 0;break;default:return}}catch(g){_={value:g,[ba]:0}}Promise.resolve(_).catch(g=>({value:g,[ba]:0})).then(g=>{const[x,h]=va(g);s.postMessage(Object.assign(Object.assign({},x),{id:l}),h),c==="RELEASE"&&(s.removeEventListener("message",n),nl(s),Bn in a&&typeof a[Bn]=="function"&&a[Bn]())}).catch(g=>{const[x,h]=va({value:new TypeError("Unserializable return value"),[ba]:0});s.postMessage(Object.assign(Object.assign({},x),{id:l}),h)})}),s.start&&s.start()}function Sm(a){return a.constructor.name==="MessagePort"}function nl(a){Sm(a)&&a.close()}function Un(a,s){return $n(a,[],s)}function xa(a){if(a)throw new Error("Proxy has been released and is not useable")}function il(a){return Hs(a,{type:"RELEASE"}).then(()=>{nl(a)})}const ha=new WeakMap,wa="FinalizationRegistry"in globalThis&&new FinalizationRegistry(a=>{const s=(ha.get(a)||0)-1;ha.set(a,s),s===0&&il(a)});function zm(a,s){const r=(ha.get(s)||0)+1;ha.set(s,r),wa&&wa.register(a,s,a)}function Nm(a){wa&&wa.unregister(a)}function $n(a,s=[],r=function(){}){let n=!1;const o=new Proxy(r,{get(l,c){if(xa(n),c===Im)return()=>{Nm(o),il(a),n=!0};if(c==="then"){if(s.length===0)return{then:()=>o};const d=Hs(a,{type:"GET",path:s.map(m=>m.toString())}).then(Is);return d.then.bind(d)}return $n(a,[...s,c])},set(l,c,d){xa(n);const[m,_]=va(d);return Hs(a,{type:"SET",path:[...s,c].map(g=>g.toString()),value:m},_).then(Is)},apply(l,c,d){xa(n);const m=s[s.length-1];if(m===Dm)return Hs(a,{type:"ENDPOINT"}).then(Is);if(m==="bind")return $n(a,s.slice(0,-1));const[_,g]=ol(d);return Hs(a,{type:"APPLY",path:s.map(x=>x.toString()),argumentList:_},g).then(Is)},construct(l,c){xa(n);const[d,m]=ol(c);return Hs(a,{type:"CONSTRUCT",path:s.map(_=>_.toString()),argumentList:d},m).then(Is)}});return zm(o,a),o}function Em(a){return Array.prototype.concat.apply([],a)}function ol(a){const s=a.map(va);return[s.map(r=>r[0]),Em(s.map(r=>r[1]))]}const ll=new WeakMap;function Lm(a,s){return ll.set(a,s),a}function Kn(a){return Object.assign(a,{[tl]:!0})}function va(a){for(const[s,r]of rl)if(r.canHandle(a)){const[n,o]=r.serialize(a);return[{type:"HANDLER",name:s,value:n},o]}return[{type:"RAW",value:a},ll.get(a)||[]]}function Is(a){switch(a.type){case"HANDLER":return rl.get(a.name).deserialize(a.value);case"RAW":return a.value}}function Hs(a,s,r){return new Promise(n=>{const o=Mm();a.addEventListener("message",function l(c){!c.data||!c.data.id||c.data.id!==o||(a.removeEventListener("message",l),n(c.data))}),a.start&&a.start(),a.postMessage(Object.assign({id:o},s),r)})}function Mm(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const cl=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-BoQwf5xT.js").href:new URL("assets/scriptsRunWorker-BoQwf5xT.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:ra&&ra.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});cl.onerror=a=>{console.error(a)};async function pl(a){return await _a.setInlayHints(a)}const dl=Un(cl),ul=Un(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-BwaqPCOl.js").href:new URL("assets/parserTccWorker-BwaqPCOl.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:ra&&ra.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function ml(a,s=!1){const{functions:r,types:n,constants:o,variables:l,methods:c}=nt;return await ul.parseTcc(a,s,Kn(pl),{functions:Object.fromEntries(r),methods:Object.fromEntries(c),types:Object.fromEntries(n),constants:Object.fromEntries(o),variables:Object.fromEntries(l)})}async function Om(a,s){const{functions:r,types:n,constants:o,variables:l,methods:c}=nt;return await ul.parseLibraryCode(a,s,Kn(pl),{functions:Object.fromEntries(r),methods:Object.fromEntries(c),types:Object.fromEntries(n),constants:Object.fromEntries(o),variables:Object.fromEntries(l)})}async function Pm(a,s,r=!0){return await dl.runScript(a,s,r)}async function Rm(a){return await dl.removeScript(a)}function Fm(a){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:a==null?void 0:a.name})}const{slice:Bm,forEach:Um}=[];function $m(a){return Um.call(Bm.call(arguments,1),s=>{if(s)for(const r in s)a[r]===void 0&&(a[r]=s[r])}),a}const yl=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Km=(a,s,r)=>{const n=r||{};n.path=n.path||"/";const o=encodeURIComponent(s);let l=`${a}=${o}`;if(n.maxAge>0){const c=n.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");l+=`; Max-Age=${Math.floor(c)}`}if(n.domain){if(!yl.test(n.domain))throw new TypeError("option domain is invalid");l+=`; Domain=${n.domain}`}if(n.path){if(!yl.test(n.path))throw new TypeError("option path is invalid");l+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");l+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(l+="; HttpOnly"),n.secure&&(l+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return l},_l={create(a,s,r,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),n&&(o.domain=n),document.cookie=Km(a,encodeURIComponent(s),o)},read(a){const s=`${a}=`,r=document.cookie.split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(s)===0)return o.substring(s.length,o.length)}return null},remove(a){this.create(a,"",-1)}};var jm={name:"cookie",lookup(a){let{lookupCookie:s}=a;if(s&&typeof document<"u")return _l.read(s)||void 0},cacheUserLanguage(a,s){let{lookupCookie:r,cookieMinutes:n,cookieDomain:o,cookieOptions:l}=s;r&&typeof document<"u"&&_l.create(r,a,n,o,l)}},Hm={name:"querystring",lookup(a){var n;let{lookupQuerystring:s}=a,r;if(typeof window<"u"){let{search:o}=window.location;!window.location.search&&((n=window.location.hash)==null?void 0:n.indexOf("?"))>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const c=o.substring(1).split("&");for(let d=0;d<c.length;d++){const m=c[d].indexOf("=");m>0&&c[d].substring(0,m)===s&&(r=c[d].substring(m+1))}}return r}};let Cr=null;const fl=()=>{if(Cr!==null)return Cr;try{Cr=window!=="undefined"&&window.localStorage!==null;const a="i18next.translate.boo";window.localStorage.setItem(a,"foo"),window.localStorage.removeItem(a)}catch{Cr=!1}return Cr};var Wm={name:"localStorage",lookup(a){let{lookupLocalStorage:s}=a;if(s&&fl())return window.localStorage.getItem(s)||void 0},cacheUserLanguage(a,s){let{lookupLocalStorage:r}=s;r&&fl()&&window.localStorage.setItem(r,a)}};let Sr=null;const gl=()=>{if(Sr!==null)return Sr;try{Sr=window!=="undefined"&&window.sessionStorage!==null;const a="i18next.translate.boo";window.sessionStorage.setItem(a,"foo"),window.sessionStorage.removeItem(a)}catch{Sr=!1}return Sr};var Vm={name:"sessionStorage",lookup(a){let{lookupSessionStorage:s}=a;if(s&&gl())return window.sessionStorage.getItem(s)||void 0},cacheUserLanguage(a,s){let{lookupSessionStorage:r}=s;r&&gl()&&window.sessionStorage.setItem(r,a)}},Gm={name:"navigator",lookup(a){const s=[];if(typeof navigator<"u"){const{languages:r,userLanguage:n,language:o}=navigator;if(r)for(let l=0;l<r.length;l++)s.push(r[l]);n&&s.push(n),o&&s.push(o)}return s.length>0?s:void 0}},Xm={name:"htmlTag",lookup(a){let{htmlTag:s}=a,r;const n=s||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},Ym={name:"path",lookup(a){var o;let{lookupFromPathIndex:s}=a;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?(o=r[typeof s=="number"?s:0])==null?void 0:o.replace("/",""):void 0}},Qm={name:"subdomain",lookup(a){var o,l;let{lookupFromSubdomainIndex:s}=a;const r=typeof s=="number"?s+1:1,n=typeof window<"u"&&((l=(o=window.location)==null?void 0:o.hostname)==null?void 0:l.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(n)return n[r]}};function Zm(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:a=>a}}class bl{constructor(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(s,r)}init(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=s||{languageUtils:{}},this.options=$m(r,this.options||{},Zm()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(jm),this.addDetector(Hm),this.addDetector(Wm),this.addDetector(Vm),this.addDetector(Gm),this.addDetector(Xm),this.addDetector(Ym),this.addDetector(Qm)}addDetector(s){return this.detectors[s.name]=s,this}detect(s){s||(s=this.options.order);let r=[];return s.forEach(n=>{if(this.detectors[n]){let o=this.detectors[n].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(r=r.concat(o))}}),r=r.map(n=>this.options.convertDetectedLanguage(n)),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(s,r){r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(s)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(s,this.options)}))}}bl.type="languageDetector";const Jm=(...a)=>{console!=null&&console.warn&&(As(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),console.warn(...a))},xl={},jn=(...a)=>{As(a[0])&&xl[a[0]]||(As(a[0])&&(xl[a[0]]=new Date),Jm(...a))},hl=(a,s)=>()=>{if(a.isInitialized)s();else{const r=()=>{setTimeout(()=>{a.off("initialized",r)},0),s()};a.on("initialized",r)}},Hn=(a,s,r)=>{a.loadNamespaces(s,hl(a,r))},wl=(a,s,r,n)=>{if(As(r)&&(r=[r]),a.options.preload&&a.options.preload.indexOf(s)>-1)return Hn(a,r,n);r.forEach(o=>{a.options.ns.indexOf(o)<0&&a.options.ns.push(o)}),a.loadLanguages(s,hl(a,n))},ey=(a,s,r={})=>!s.languages||!s.languages.length?(jn("i18n.languages were undefined or empty",s.languages),!0):s.hasLoadedNamespace(a,{lng:r.lng,precheck:(n,o)=>{var l;if(((l=r.bindI18n)==null?void 0:l.indexOf("languageChanging"))>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!o(n.isLanguageChangingTo,a))return!1}}),As=a=>typeof a=="string",ty=a=>typeof a=="object"&&a!==null,sy=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ry={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ay=a=>ry[a];let Wn={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:a=>a.replace(sy,ay)};const ny=(a={})=>{Wn={...Wn,...a}},iy=()=>Wn;let vl;const oy=a=>{vl=a},ly=()=>vl,cy={type:"3rdParty",init(a){ny(a.options.react),oy(a)}},py=S.createContext();class dy{constructor(){this.usedNamespaces={}}addUsedNamespaces(s){s.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const uy=(a,s)=>{const r=S.useRef();return S.useEffect(()=>{r.current=s?r.current:a},[a,s]),r.current},Tl=(a,s,r,n)=>a.getFixedT(s,r,n),my=(a,s,r,n)=>S.useCallback(Tl(a,s,r,n),[a,s,r,n]),Ws=(a,s={})=>{var V,Q,q,C;const{i18n:r}=s,{i18n:n,defaultNS:o}=S.useContext(py)||{},l=r||n||ly();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new dy),!l){jn("You will need to pass in an i18next instance by using initReactI18next");const R=(A,O)=>As(O)?O:ty(O)&&As(O.defaultValue)?O.defaultValue:Array.isArray(A)?A[A.length-1]:A,E=[R,{},!1];return E.t=R,E.i18n={},E.ready=!1,E}(V=l.options.react)!=null&&V.wait&&jn("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const c={...iy(),...l.options.react,...s},{useSuspense:d,keyPrefix:m}=c;let _=a||o||((Q=l.options)==null?void 0:Q.defaultNS);_=As(_)?[_]:_||["translation"],(C=(q=l.reportNamespaces).addUsedNamespaces)==null||C.call(q,_);const g=(l.isInitialized||l.initializedStoreOnce)&&_.every(R=>ey(R,l,c)),x=my(l,s.lng||null,c.nsMode==="fallback"?_:_[0],m),h=()=>x,D=()=>Tl(l,s.lng||null,c.nsMode==="fallback"?_:_[0],m),[z,P]=S.useState(h);let $=_.join();s.lng&&($=`${s.lng}${$}`);const j=uy($),W=S.useRef(!0);S.useEffect(()=>{const{bindI18n:R,bindI18nStore:E}=c;W.current=!0,!g&&!d&&(s.lng?wl(l,s.lng,_,()=>{W.current&&P(D)}):Hn(l,_,()=>{W.current&&P(D)})),g&&j&&j!==$&&W.current&&P(D);const A=()=>{W.current&&P(D)};return R&&(l==null||l.on(R,A)),E&&(l==null||l.store.on(E,A)),()=>{W.current=!1,l&&(R==null||R.split(" ").forEach(O=>l.off(O,A))),E&&l&&E.split(" ").forEach(O=>l.store.off(O,A))}},[l,$]),S.useEffect(()=>{W.current&&g&&P(h)},[l,m,g]);const re=[z,l,g];if(re.t=z,re.i18n=l,re.ready=g,g||!g&&!d)return re;throw new Promise(R=>{s.lng?wl(l,s.lng,_,()=>R()):Hn(l,_,()=>R())})},yy={type:"type",syntax:"syntax",overloads:"overloads",arguments:"arguments",fields:"fields",example:"example",returns:"returns",remarks:"remarks","see also":"see also","Copy code":"Copy code","Copy link":"Copy link",Copied:"Copied","Link copied":"Link copied",variables:"Variables",constants:"Constants",functions:"Functions",keywords:"Keywords",types:"Types",operators:"Operators",annotations:"Annotations",search:"Search","Mine Script® v1 Reference Manual":"Mine Script® v1 Reference Manual","This script is read-only. It cannot be edited.":"This script is read-only. It cannot be edited.","save script":"Save script","open script":"Open script","find/replace":"Find/Replace","toggle console":"Toggle console","open editor in new tab":"Open editor in new tab","open editor in new window":"Open editor in new window",keyword:"keyword","built-in function":"built-in function","built-in variable":"built-in variable","built-in method":"built-in method","built-in type":"built-in type",annotation:"annotation","built-in constant":"built-in constant",namespace:"namespace","user-defined variable":"user-defined variable","user-defined type":"user-defined type",field:"field",enum:"enum","user-defined method":"user-defined method","user-defined function":"user-defined function",parameter:"parameter","**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.":"**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Mine functions, variables, and methods.","to trigger parameters hint":"to trigger parameters hint",library:"library","enum member":"enum member",Returns:"Returns",Syntax:"Syntax",Remarks:"Remarks",Fields:"Fields",Description:"Description",Example:"Example","Enum members":"Enum members",statement:"statement",loop:"loop","`click` on keyword for more help":"`click` on keyword for more help"},_y={type:"类型",syntax:"语法",overloads:"重载",arguments:"参数",fields:"字段",example:"例子",returns:"返回值",remarks:"备注","see also":"另见","Copy code":"复制代码","Copy link":"复制链接",Copied:"已复制","Link copied":"链接已复制",variables:"内置变量",constants:"常量",functions:"函数",keywords:"关键词",types:"类型",operators:"运算符",annotations:"注释",search:"搜索","Mine Script® v1 Reference Manual":"Mine Script™ v1参考手册","This script is read-only. It cannot be edited.":"该脚本是只读的。它无法被编辑。","save script":"保存脚本","open script":"打开脚本","find/replace":"寻找/替换","toggle console":"切换控制台","open editor in new tab":"在新标签页中打开","open editor in new window":"在新窗口中打开",keyword:"关键词","built-in function":"内置函数","built-in variable":"内置变量","built-in method":"内置方法","built-in type":"内置类型",annotation:"注释","built-in constant":"内置常量",namespace:"命名空间","user-defined variable":"用户自定义变量","user-defined type":"用户自定义类型",field:"字段",enum:"枚举","user-defined method":"用户自定义方法","user-defined function":"用户自定义函数",parameter:"参数","**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.":"命名空间是不可变的术语,充当标识符组的前缀。在命名Mine函数、变量和方法时,点和另一个术语始终遵循命名空间。","to trigger parameters hint":"触发参数提示",library:"脚本库","enum member":"枚举成员",Returns:"返回值",Syntax:"语法",Remarks:"备注",Fields:"字段",Description:"描述",Example:"例子","Enum members":"枚举成员",statement:"声明",loop:"循环","`click` on keyword for more help":"“点击”关键词以获得更多帮助"};Me.use(bl).use(cy).init({debug:!1,fallbackLng:"zh",interpolation:{escapeValue:!1},resources:{en:{translation:yy},zh:{translation:_y}}}),self.MonacoEnvironment={getWorker(){return new Fm({name:"Editor Worker"})}},In.config({paths:{vs:"https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.45.0/min/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}});const fy=(a,s)=>{const{height:r,width:n,theme:o,options:l,hasDiff:c,readOnly:d,defaultValue:m,language:_,onChange:g,onLinkOpen:x,onCursorPositionChange:h,onActionTrigger:D,onEditorDidMount:z}=a,{t:P,i18n:$}=Ws(),j=S.useRef(null),W=S.useRef(null),re=S.useRef(!1),V=S.useRef(!1);S.useImperativeHandle(s,()=>({setOriginalScript(A){var O;(O=j.current)==null||O.setOriginalScript(A)},setScript(A){var O;(O=j.current)==null||O.setValue(A)},gotoLine(){var A;(A=j.current)==null||A.gotoLine()},getEditorLayout(){var A;return(A=j.current)==null?void 0:A.getEditorLayout()},setPosition(A,O){var J;(J=j.current)==null||J.setPosition({column:A,lineNumber:O})},setModelMarkers(A){var O;V.current=!0,(O=j.current)==null||O.setModelMarkers(A),setTimeout(()=>{V.current=!1},2e3)},focus(){var A;(A=j.current)==null||A.focus()}})),S.useEffect(()=>{var A,O;c?(O=j.current)==null||O.addDiffDecorations():(A=j.current)==null||A.removeDiffDecorations()},[c]),S.useEffect(()=>{o&&Ne.editor.setTheme(o)},[o]),S.useEffect(()=>{_&&$.changeLanguage(_)},[_]),S.useEffect(()=>{var A;(A=j.current)==null||A.updateActionTrigger(D)},[D]),S.useEffect(()=>{var A;x&&((A=j.current)==null||A.addLinkOpenFunc(x))},[x]);function Q(A,O){var se,le;Pt.initBuiltinsTrees(),_a.setEditor(A),j.current=new km(A,O,D),x&&((se=j.current)==null||se.addLinkOpenFunc(x)),c&&((le=j.current)==null||le.addDiffDecorations()),Gu(A),requestAnimationFrame(E);const J=A.getValue();j.current.onChangeCursorPosition(h),g&&g(J),!d&&q(J),z&&z()}const q=S.useCallback(async A=>{var Rt;re.current=!1;const{errors:O,functions:J,methods:se,types:le,variables:Y,overloadsFuncs:oe,imports:xe,enums:pe}=await ml(A),_e=new Map(Object.entries(J)),Ee=new Map(Object.entries(se)),ee=new Map(Object.entries(le)),de=new Map(Object.entries(Y)),Oe=new Map(Object.entries(xe)),Ge=new Map(Object.entries(pe));Ds.setUserDefined({functions:_e,methods:Ee,types:ee,variables:de,imports:Oe,enums:Ge},oe),Pt.setUserDefind(_e,ee,de,Ee,Ge);const Qe=O.map(us=>({...us,severity:us.type||Ne.MarkerSeverity.Error}));d||!re.current&&!V.current&&Qe.length&&((Rt=j.current)==null||Rt.setModelMarkers(Qe))},[d]),C=S.useMemo(()=>Qu.debounce(q,1500),[q]);function R(A){var O;if(d){q(A||"");return}re.current=!0,_a.clearInlayHints(),(O=j.current)==null||O.setModelMarkers([]),A!==void 0&&(g&&g(A),C(A))}const E=S.useCallback(()=>{var O,J;const A=(O=W.current)==null?void 0:O.getBoundingClientRect();(J=j.current)==null||J.setEditorLayout((A==null?void 0:A.height)||0,A==null?void 0:A.width)},[]);return S.useEffect(()=>{const A=()=>{window.requestAnimationFrame(E)},O=new ResizeObserver(A);return W.current&&O.observe(W.current),()=>{var J;W.current&&O.unobserve(W.current),O.disconnect(),(J=j.current)==null||J.dispose()}},[]),T.jsx("div",{ref:W,children:T.jsx(mu,{height:r,width:n||"100%",defaultLanguage:Ke,defaultValue:m||`indicator("我的脚本")
|
144
|
+
*/const tl=Symbol("Comlink.proxy"),Dm=Symbol("Comlink.endpoint"),Im=Symbol("Comlink.releaseProxy"),Bn=Symbol("Comlink.finalizer"),ba=Symbol("Comlink.thrown"),sl=a=>typeof a=="object"&&a!==null||typeof a=="function",Am={canHandle:a=>sl(a)&&a[tl],serialize(a){const{port1:s,port2:r}=new MessageChannel;return al(a,s),[r,[r]]},deserialize(a){return a.start(),Un(a)}},qm={canHandle:a=>sl(a)&&ba in a,serialize({value:a}){let s;return a instanceof Error?s={isError:!0,value:{message:a.message,name:a.name,stack:a.stack}}:s={isError:!1,value:a},[s,[]]},deserialize(a){throw a.isError?Object.assign(new Error(a.value.message),a.value):a.value}},rl=new Map([["proxy",Am],["throw",qm]]);function Cm(a,s){for(const r of a)if(s===r||r==="*"||r instanceof RegExp&&r.test(s))return!0;return!1}function al(a,s=globalThis,r=["*"]){s.addEventListener("message",function n(o){if(!o||!o.data)return;if(!Cm(r,o.origin)){console.warn(`Invalid origin '${o.origin}' for comlink proxy`);return}const{id:l,type:c,path:u}=Object.assign({path:[]},o.data),m=(o.data.argumentList||[]).map(Is);let _;try{const g=u.slice(0,-1).reduce((h,D)=>h[D],a),x=u.reduce((h,D)=>h[D],a);switch(c){case"GET":_=x;break;case"SET":g[u.slice(-1)[0]]=Is(o.data.value),_=!0;break;case"APPLY":_=x.apply(g,m);break;case"CONSTRUCT":{const h=new x(...m);_=Kn(h)}break;case"ENDPOINT":{const{port1:h,port2:D}=new MessageChannel;al(a,D),_=Lm(h,[h])}break;case"RELEASE":_=void 0;break;default:return}}catch(g){_={value:g,[ba]:0}}Promise.resolve(_).catch(g=>({value:g,[ba]:0})).then(g=>{const[x,h]=va(g);s.postMessage(Object.assign(Object.assign({},x),{id:l}),h),c==="RELEASE"&&(s.removeEventListener("message",n),nl(s),Bn in a&&typeof a[Bn]=="function"&&a[Bn]())}).catch(g=>{const[x,h]=va({value:new TypeError("Unserializable return value"),[ba]:0});s.postMessage(Object.assign(Object.assign({},x),{id:l}),h)})}),s.start&&s.start()}function Sm(a){return a.constructor.name==="MessagePort"}function nl(a){Sm(a)&&a.close()}function Un(a,s){return $n(a,[],s)}function xa(a){if(a)throw new Error("Proxy has been released and is not useable")}function il(a){return Hs(a,{type:"RELEASE"}).then(()=>{nl(a)})}const ha=new WeakMap,wa="FinalizationRegistry"in globalThis&&new FinalizationRegistry(a=>{const s=(ha.get(a)||0)-1;ha.set(a,s),s===0&&il(a)});function zm(a,s){const r=(ha.get(s)||0)+1;ha.set(s,r),wa&&wa.register(a,s,a)}function Nm(a){wa&&wa.unregister(a)}function $n(a,s=[],r=function(){}){let n=!1;const o=new Proxy(r,{get(l,c){if(xa(n),c===Im)return()=>{Nm(o),il(a),n=!0};if(c==="then"){if(s.length===0)return{then:()=>o};const u=Hs(a,{type:"GET",path:s.map(m=>m.toString())}).then(Is);return u.then.bind(u)}return $n(a,[...s,c])},set(l,c,u){xa(n);const[m,_]=va(u);return Hs(a,{type:"SET",path:[...s,c].map(g=>g.toString()),value:m},_).then(Is)},apply(l,c,u){xa(n);const m=s[s.length-1];if(m===Dm)return Hs(a,{type:"ENDPOINT"}).then(Is);if(m==="bind")return $n(a,s.slice(0,-1));const[_,g]=ol(u);return Hs(a,{type:"APPLY",path:s.map(x=>x.toString()),argumentList:_},g).then(Is)},construct(l,c){xa(n);const[u,m]=ol(c);return Hs(a,{type:"CONSTRUCT",path:s.map(_=>_.toString()),argumentList:u},m).then(Is)}});return zm(o,a),o}function Em(a){return Array.prototype.concat.apply([],a)}function ol(a){const s=a.map(va);return[s.map(r=>r[0]),Em(s.map(r=>r[1]))]}const ll=new WeakMap;function Lm(a,s){return ll.set(a,s),a}function Kn(a){return Object.assign(a,{[tl]:!0})}function va(a){for(const[s,r]of rl)if(r.canHandle(a)){const[n,o]=r.serialize(a);return[{type:"HANDLER",name:s,value:n},o]}return[{type:"RAW",value:a},ll.get(a)||[]]}function Is(a){switch(a.type){case"HANDLER":return rl.get(a.name).deserialize(a.value);case"RAW":return a.value}}function Hs(a,s,r){return new Promise(n=>{const o=Mm();a.addEventListener("message",function l(c){!c.data||!c.data.id||c.data.id!==o||(a.removeEventListener("message",l),n(c.data))}),a.start&&a.start(),a.postMessage(Object.assign({id:o},s),r)})}function Mm(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const cl=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-CH1rYB6V.js").href:new URL("assets/scriptsRunWorker-CH1rYB6V.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:ra&&ra.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});cl.onerror=a=>{console.error(a)};async function pl(a){return await _a.setInlayHints(a)}const dl=Un(cl),ul=Un(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-BwaqPCOl.js").href:new URL("assets/parserTccWorker-BwaqPCOl.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:ra&&ra.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function ml(a,s=!1){const{functions:r,types:n,constants:o,variables:l,methods:c}=nt;return await ul.parseTcc(a,s,Kn(pl),{functions:Object.fromEntries(r),methods:Object.fromEntries(c),types:Object.fromEntries(n),constants:Object.fromEntries(o),variables:Object.fromEntries(l)})}async function Om(a,s){const{functions:r,types:n,constants:o,variables:l,methods:c}=nt;return await ul.parseLibraryCode(a,s,Kn(pl),{functions:Object.fromEntries(r),methods:Object.fromEntries(c),types:Object.fromEntries(n),constants:Object.fromEntries(o),variables:Object.fromEntries(l)})}async function Pm(a,s,r=!0){return await dl.runScript(a,s,r)}async function Rm(a){return await dl.removeScript(a)}function Fm(a){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:a==null?void 0:a.name})}const{slice:Bm,forEach:Um}=[];function $m(a){return Um.call(Bm.call(arguments,1),s=>{if(s)for(const r in s)a[r]===void 0&&(a[r]=s[r])}),a}const yl=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Km=(a,s,r)=>{const n=r||{};n.path=n.path||"/";const o=encodeURIComponent(s);let l=`${a}=${o}`;if(n.maxAge>0){const c=n.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");l+=`; Max-Age=${Math.floor(c)}`}if(n.domain){if(!yl.test(n.domain))throw new TypeError("option domain is invalid");l+=`; Domain=${n.domain}`}if(n.path){if(!yl.test(n.path))throw new TypeError("option path is invalid");l+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");l+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(l+="; HttpOnly"),n.secure&&(l+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return l},_l={create(a,s,r,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),n&&(o.domain=n),document.cookie=Km(a,encodeURIComponent(s),o)},read(a){const s=`${a}=`,r=document.cookie.split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(s)===0)return o.substring(s.length,o.length)}return null},remove(a){this.create(a,"",-1)}};var jm={name:"cookie",lookup(a){let{lookupCookie:s}=a;if(s&&typeof document<"u")return _l.read(s)||void 0},cacheUserLanguage(a,s){let{lookupCookie:r,cookieMinutes:n,cookieDomain:o,cookieOptions:l}=s;r&&typeof document<"u"&&_l.create(r,a,n,o,l)}},Hm={name:"querystring",lookup(a){var n;let{lookupQuerystring:s}=a,r;if(typeof window<"u"){let{search:o}=window.location;!window.location.search&&((n=window.location.hash)==null?void 0:n.indexOf("?"))>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const c=o.substring(1).split("&");for(let u=0;u<c.length;u++){const m=c[u].indexOf("=");m>0&&c[u].substring(0,m)===s&&(r=c[u].substring(m+1))}}return r}};let Cr=null;const fl=()=>{if(Cr!==null)return Cr;try{Cr=window!=="undefined"&&window.localStorage!==null;const a="i18next.translate.boo";window.localStorage.setItem(a,"foo"),window.localStorage.removeItem(a)}catch{Cr=!1}return Cr};var Wm={name:"localStorage",lookup(a){let{lookupLocalStorage:s}=a;if(s&&fl())return window.localStorage.getItem(s)||void 0},cacheUserLanguage(a,s){let{lookupLocalStorage:r}=s;r&&fl()&&window.localStorage.setItem(r,a)}};let Sr=null;const gl=()=>{if(Sr!==null)return Sr;try{Sr=window!=="undefined"&&window.sessionStorage!==null;const a="i18next.translate.boo";window.sessionStorage.setItem(a,"foo"),window.sessionStorage.removeItem(a)}catch{Sr=!1}return Sr};var Vm={name:"sessionStorage",lookup(a){let{lookupSessionStorage:s}=a;if(s&&gl())return window.sessionStorage.getItem(s)||void 0},cacheUserLanguage(a,s){let{lookupSessionStorage:r}=s;r&&gl()&&window.sessionStorage.setItem(r,a)}},Gm={name:"navigator",lookup(a){const s=[];if(typeof navigator<"u"){const{languages:r,userLanguage:n,language:o}=navigator;if(r)for(let l=0;l<r.length;l++)s.push(r[l]);n&&s.push(n),o&&s.push(o)}return s.length>0?s:void 0}},Xm={name:"htmlTag",lookup(a){let{htmlTag:s}=a,r;const n=s||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},Ym={name:"path",lookup(a){var o;let{lookupFromPathIndex:s}=a;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?(o=r[typeof s=="number"?s:0])==null?void 0:o.replace("/",""):void 0}},Qm={name:"subdomain",lookup(a){var o,l;let{lookupFromSubdomainIndex:s}=a;const r=typeof s=="number"?s+1:1,n=typeof window<"u"&&((l=(o=window.location)==null?void 0:o.hostname)==null?void 0:l.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(n)return n[r]}};function Zm(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:a=>a}}class bl{constructor(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(s,r)}init(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=s||{languageUtils:{}},this.options=$m(r,this.options||{},Zm()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(jm),this.addDetector(Hm),this.addDetector(Wm),this.addDetector(Vm),this.addDetector(Gm),this.addDetector(Xm),this.addDetector(Ym),this.addDetector(Qm)}addDetector(s){return this.detectors[s.name]=s,this}detect(s){s||(s=this.options.order);let r=[];return s.forEach(n=>{if(this.detectors[n]){let o=this.detectors[n].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(r=r.concat(o))}}),r=r.map(n=>this.options.convertDetectedLanguage(n)),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(s,r){r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(s)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(s,this.options)}))}}bl.type="languageDetector";const Jm=(...a)=>{console!=null&&console.warn&&(As(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),console.warn(...a))},xl={},jn=(...a)=>{As(a[0])&&xl[a[0]]||(As(a[0])&&(xl[a[0]]=new Date),Jm(...a))},hl=(a,s)=>()=>{if(a.isInitialized)s();else{const r=()=>{setTimeout(()=>{a.off("initialized",r)},0),s()};a.on("initialized",r)}},Hn=(a,s,r)=>{a.loadNamespaces(s,hl(a,r))},wl=(a,s,r,n)=>{if(As(r)&&(r=[r]),a.options.preload&&a.options.preload.indexOf(s)>-1)return Hn(a,r,n);r.forEach(o=>{a.options.ns.indexOf(o)<0&&a.options.ns.push(o)}),a.loadLanguages(s,hl(a,n))},ey=(a,s,r={})=>!s.languages||!s.languages.length?(jn("i18n.languages were undefined or empty",s.languages),!0):s.hasLoadedNamespace(a,{lng:r.lng,precheck:(n,o)=>{var l;if(((l=r.bindI18n)==null?void 0:l.indexOf("languageChanging"))>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!o(n.isLanguageChangingTo,a))return!1}}),As=a=>typeof a=="string",ty=a=>typeof a=="object"&&a!==null,sy=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ry={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ay=a=>ry[a];let Wn={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:a=>a.replace(sy,ay)};const ny=(a={})=>{Wn={...Wn,...a}},iy=()=>Wn;let vl;const oy=a=>{vl=a},ly=()=>vl,cy={type:"3rdParty",init(a){ny(a.options.react),oy(a)}},py=N.createContext();class dy{constructor(){this.usedNamespaces={}}addUsedNamespaces(s){s.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const uy=(a,s)=>{const r=N.useRef();return N.useEffect(()=>{r.current=s?r.current:a},[a,s]),r.current},Tl=(a,s,r,n)=>a.getFixedT(s,r,n),my=(a,s,r,n)=>N.useCallback(Tl(a,s,r,n),[a,s,r,n]),Ws=(a,s={})=>{var W,Q,C,z;const{i18n:r}=s,{i18n:n,defaultNS:o}=N.useContext(py)||{},l=r||n||ly();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new dy),!l){jn("You will need to pass in an i18next instance by using initReactI18next");const V=(A,L)=>As(L)?L:ty(L)&&As(L.defaultValue)?L.defaultValue:Array.isArray(A)?A[A.length-1]:A,q=[V,{},!1];return q.t=V,q.i18n={},q.ready=!1,q}(W=l.options.react)!=null&&W.wait&&jn("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const c={...iy(),...l.options.react,...s},{useSuspense:u,keyPrefix:m}=c;let _=a||o||((Q=l.options)==null?void 0:Q.defaultNS);_=As(_)?[_]:_||["translation"],(z=(C=l.reportNamespaces).addUsedNamespaces)==null||z.call(C,_);const g=(l.isInitialized||l.initializedStoreOnce)&&_.every(V=>ey(V,l,c)),x=my(l,s.lng||null,c.nsMode==="fallback"?_:_[0],m),h=()=>x,D=()=>Tl(l,s.lng||null,c.nsMode==="fallback"?_:_[0],m),[S,R]=N.useState(h);let U=_.join();s.lng&&(U=`${s.lng}${U}`);const K=uy(U),H=N.useRef(!0);N.useEffect(()=>{const{bindI18n:V,bindI18nStore:q}=c;H.current=!0,!g&&!u&&(s.lng?wl(l,s.lng,_,()=>{H.current&&R(D)}):Hn(l,_,()=>{H.current&&R(D)})),g&&K&&K!==U&&H.current&&R(D);const A=()=>{H.current&&R(D)};return V&&(l==null||l.on(V,A)),q&&(l==null||l.store.on(q,A)),()=>{H.current=!1,l&&(V==null||V.split(" ").forEach(L=>l.off(L,A))),q&&l&&q.split(" ").forEach(L=>l.store.off(L,A))}},[l,U]),N.useEffect(()=>{H.current&&g&&R(h)},[l,m,g]);const re=[S,l,g];if(re.t=S,re.i18n=l,re.ready=g,g||!g&&!u)return re;throw new Promise(V=>{s.lng?wl(l,s.lng,_,()=>V()):Hn(l,_,()=>V())})},yy={type:"type",syntax:"syntax",overloads:"overloads",arguments:"arguments",fields:"fields",example:"example",returns:"returns",remarks:"remarks","see also":"see also","Copy code":"Copy code","Copy link":"Copy link",Copied:"Copied","Link copied":"Link copied",variables:"Variables",constants:"Constants",functions:"Functions",keywords:"Keywords",types:"Types",operators:"Operators",annotations:"Annotations",search:"Search","Mine Script® v1 Reference Manual":"Mine Script® v1 Reference Manual","This script is read-only. It cannot be edited.":"This script is read-only. It cannot be edited.","save script":"Save script","open script":"Open script","find/replace":"Find/Replace","toggle console":"Toggle console","open editor in new tab":"Open editor in new tab","open editor in new window":"Open editor in new window",keyword:"keyword","built-in function":"built-in function","built-in variable":"built-in variable","built-in method":"built-in method","built-in type":"built-in type",annotation:"annotation","built-in constant":"built-in constant",namespace:"namespace","user-defined variable":"user-defined variable","user-defined type":"user-defined type",field:"field",enum:"enum","user-defined method":"user-defined method","user-defined function":"user-defined function",parameter:"parameter","**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.":"**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Mine functions, variables, and methods.","to trigger parameters hint":"to trigger parameters hint",library:"library","enum member":"enum member",Returns:"Returns",Syntax:"Syntax",Remarks:"Remarks",Fields:"Fields",Description:"Description",Example:"Example","Enum members":"Enum members",statement:"statement",loop:"loop","`click` on keyword for more help":"`click` on keyword for more help"},_y={type:"类型",syntax:"语法",overloads:"重载",arguments:"参数",fields:"字段",example:"例子",returns:"返回值",remarks:"备注","see also":"另见","Copy code":"复制代码","Copy link":"复制链接",Copied:"已复制","Link copied":"链接已复制",variables:"内置变量",constants:"常量",functions:"函数",keywords:"关键词",types:"类型",operators:"运算符",annotations:"注释",search:"搜索","Mine Script® v1 Reference Manual":"Mine Script™ v1参考手册","This script is read-only. It cannot be edited.":"该脚本是只读的。它无法被编辑。","save script":"保存脚本","open script":"打开脚本","find/replace":"寻找/替换","toggle console":"切换控制台","open editor in new tab":"在新标签页中打开","open editor in new window":"在新窗口中打开",keyword:"关键词","built-in function":"内置函数","built-in variable":"内置变量","built-in method":"内置方法","built-in type":"内置类型",annotation:"注释","built-in constant":"内置常量",namespace:"命名空间","user-defined variable":"用户自定义变量","user-defined type":"用户自定义类型",field:"字段",enum:"枚举","user-defined method":"用户自定义方法","user-defined function":"用户自定义函数",parameter:"参数","**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.":"命名空间是不可变的术语,充当标识符组的前缀。在命名Mine函数、变量和方法时,点和另一个术语始终遵循命名空间。","to trigger parameters hint":"触发参数提示",library:"脚本库","enum member":"枚举成员",Returns:"返回值",Syntax:"语法",Remarks:"备注",Fields:"字段",Description:"描述",Example:"例子","Enum members":"枚举成员",statement:"声明",loop:"循环","`click` on keyword for more help":"“点击”关键词以获得更多帮助"};Me.use(bl).use(cy).init({debug:!1,fallbackLng:"zh",interpolation:{escapeValue:!1},resources:{en:{translation:yy},zh:{translation:_y}}}),self.MonacoEnvironment={getWorker(){return new Fm({name:"Editor Worker"})}},In.config({paths:{vs:"https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.45.0/min/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}});const fy=(a,s)=>{const{height:r,width:n,theme:o,options:l,hasDiff:c,readOnly:u,defaultValue:m,language:_,onChange:g,onLinkOpen:x,onCursorPositionChange:h,onActionTrigger:D,onEditorDidMount:S}=a,{t:R,i18n:U}=Ws(),K=N.useRef(null),H=N.useRef(null),re=N.useRef(!1),W=N.useRef(!1);N.useImperativeHandle(s,()=>({setOriginalScript(A){var L;(L=K.current)==null||L.setOriginalScript(A)},setScript(A){var L;(L=K.current)==null||L.setValue(A)},gotoLine(){var A;(A=K.current)==null||A.gotoLine()},getEditorLayout(){var A;return(A=K.current)==null?void 0:A.getEditorLayout()},setPosition(A,L){var Z;(Z=K.current)==null||Z.setPosition({column:A,lineNumber:L})},setModelMarkers(A){var L;W.current=!0,(L=K.current)==null||L.setModelMarkers(A),setTimeout(()=>{W.current=!1},2e3)},focus(){var A;(A=K.current)==null||A.focus()}})),N.useEffect(()=>{var A,L;c?(L=K.current)==null||L.addDiffDecorations():(A=K.current)==null||A.removeDiffDecorations()},[c]),N.useEffect(()=>{o&&Ne.editor.setTheme(o)},[o]),N.useEffect(()=>{_&&U.changeLanguage(_)},[_]),N.useEffect(()=>{var A;(A=K.current)==null||A.updateActionTrigger(D)},[D]),N.useEffect(()=>{var A;x&&((A=K.current)==null||A.addLinkOpenFunc(x))},[x]);function Q(A,L){var ee,ne;Pt.initBuiltinsTrees(),_a.setEditor(A),K.current=new km(A,L,D),x&&((ee=K.current)==null||ee.addLinkOpenFunc(x)),c&&((ne=K.current)==null||ne.addDiffDecorations()),Gu(A),requestAnimationFrame(q);const Z=A.getValue();K.current.onChangeCursorPosition(h),g&&g(Z),!u&&C(Z),S&&S()}const C=N.useCallback(async A=>{var Rt;re.current=!1;const{errors:L,functions:Z,methods:ee,types:ne,variables:Y,overloadsFuncs:le,imports:xe,enums:pe}=await ml(A),_e=new Map(Object.entries(Z)),Ee=new Map(Object.entries(ee)),te=new Map(Object.entries(ne)),de=new Map(Object.entries(Y)),Oe=new Map(Object.entries(xe)),Ge=new Map(Object.entries(pe));Ds.setUserDefined({functions:_e,methods:Ee,types:te,variables:de,imports:Oe,enums:Ge},le),Pt.setUserDefind(_e,te,de,Ee,Ge);const Qe=L.map(us=>({...us,severity:us.type||Ne.MarkerSeverity.Error}));u||!re.current&&!W.current&&Qe.length&&((Rt=K.current)==null||Rt.setModelMarkers(Qe))},[u]),z=N.useMemo(()=>Qu.debounce(C,1500),[C]);function V(A){var L;if(u){C(A||"");return}re.current=!0,_a.clearInlayHints(),(L=K.current)==null||L.setModelMarkers([]),A!==void 0&&(g&&g(A),z(A))}const q=N.useCallback(()=>{var L,Z;const A=(L=H.current)==null?void 0:L.getBoundingClientRect();(Z=K.current)==null||Z.setEditorLayout((A==null?void 0:A.height)||0,A==null?void 0:A.width)},[]);return N.useEffect(()=>{const A=()=>{window.requestAnimationFrame(q)},L=new ResizeObserver(A);return H.current&&L.observe(H.current),()=>{var Z;H.current&&L.unobserve(H.current),L.disconnect(),(Z=K.current)==null||Z.dispose()}},[]),T.jsx("div",{ref:H,children:T.jsx(mu,{height:r,width:n||"100%",defaultLanguage:Ke,defaultValue:m||`indicator("我的脚本")
|
145
145
|
plot(close)
|
146
|
-
`,theme:o||"vs-dark",className:`tvue-script ${o||"vs-dark"}`,options:{colorDecorators:!0,useShadowDOM:!1,matchOnWordStartOnly:!0,automaticLayout:!1,unicodeHighlight:{allowedCharacters:{" ":!0}},suggest:{filterGraceful:!0},fontSize:13,...
|
147
|
-
`),
|
148
|
-
`),re=await zl(
|
149
|
-
`)).includes(a)){n.push(
|
150
|
-
`).includes(a)){n.push(
|
151
|
-
`))!=null&&o.includes(a)){n.push(q),C=!0;break}}if(C)break}if(V){let C=!1;for(const R of V){const{name:E,desc:A,type:O}=R;if(E.includes(a)||A!=null&&A.includes(a)||O!=null&&O.includes(a)){n.push(q),C=!0;break}}if(C)break}if(Q){let C=!1;for(const R of Q)if(R.includes(a)){n.push(q),C=!0;break}if(C)break}}}return{labelList:s,contentList:n}}const Ry=a=>{var Q;const{group:s,itemKey:r,onItemClick:n,currentIndex:o}=a,{t:l}=Ws(),[c,d]=S.useState(),[m,_]=S.useState(""),[g,x]=S.useState(0),[h,D]=S.useState(l("Copy code")),[z,P]=S.useState(l("Copy link"));S.useEffect(()=>{$(o)},[r]);const $=q=>{const C=r.replace(`${s==null?void 0:s.prefix}_`,""),R=nt[s==null?void 0:s.key].get(C);x(q),R&&Qn(R,q).then(E=>{d(E),_(`${window.location.origin}/reference-manual/#${s==null?void 0:s.prefix}_${E==null?void 0:E.orirginalName}`)})},j=q=>{$(q)},W=q=>{var C,R;if(q.target.localName==="a"&&q.target.hash&&((R=(C=q.target)==null?void 0:C.dataset)!=null&&R.name)){q.preventDefault();const{hash:E}=q.target;n(E.replace("#",""))}},re=()=>{D(l("Copied")),setTimeout(()=>{D(l("Copy code"))},1e3)},V=()=>{P(l("Link copied")),setTimeout(()=>{P(l("Copy link"))},3e3)};return T.jsx("div",{onClick:W,id:`#${r}`,children:T.jsxs("div",{className:"manual-content-wrapper",children:[T.jsxs("div",{className:"manual-content-header",children:[T.jsxs("div",{children:[T.jsx("h3",{className:"manual-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&T.jsx("span",{className:"manual-content-header-overloads",children:c==null?void 0:c.overloads})]}),T.jsx(Vs,{text:m,onCopy:V,children:T.jsx("div",{"data-tooltip":z,className:"manual-content-btn",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:T.jsxs("g",{fill:"currentColor",children:[T.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"}),T.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(Q=c==null?void 0:c.desc)==null?void 0:Q.map((q,C)=>T.jsx("div",{dangerouslySetInnerHTML:{__html:q},className:"manual-content-text"},C)),(c==null?void 0:c.type)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("type")}),T.jsx("div",{className:"manual-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&T.jsxs(S.Fragment,{children:[T.jsxs("div",{className:"manual-content-sub-title",children:[l("syntax")," ",!!(c!=null&&c.overloads)&&`& ${l("overloads")}`]}),c.syntax.map((q,C)=>{var R;return(((R=c.syntax)==null?void 0:R.length)||0)>1?T.jsx("div",{onClick:()=>j(C),children:T.jsx("pre",{className:`manual-content-syntax with-overloads ${C===g?"selected":""}`,children:q})},C):T.jsx("pre",{className:"manual-content-syntax",children:q},C)})]}),(c==null?void 0:c.args)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("arguments")}),c.args.map((q,C)=>T.jsxs("div",{className:"manual-content-text",children:[T.jsx("span",{className:"manual-content-args-label",children:q.label})," ",T.jsx("span",{dangerouslySetInnerHTML:{__html:q.desc||""}})]},C))]}),(c==null?void 0:c.fields)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("fields")}),c.fields.map((q,C)=>T.jsxs("div",{className:"manual-content-text",children:[T.jsx("span",{className:"manual-content-args-label",children:q.label})," ",T.jsx("span",{dangerouslySetInnerHTML:{__html:q.desc||""}})]},C))]}),(c==null?void 0:c.examples)&&T.jsxs(S.Fragment,{children:[T.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[T.jsx("div",{children:T.jsx("span",{children:l("example")})}),T.jsx(Vs,{text:c.originalExample||"",onCopy:re,children:T.jsx("div",{"data-tooltip":h,className:"manual-content-btn manual-content-example-copy",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:T.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"})})})})]}),T.jsx("pre",{className:"manual-content-example",children:T.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((q,C)=>T.jsxs(S.Fragment,{children:[q.desc.map((R,E)=>T.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:R}},E)),T.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[T.jsx("div",{children:T.jsx("span",{children:l("example")})}),T.jsx(Vs,{text:q.originalExample||"",onCopy:re,children:T.jsx("div",{"data-tooltip":h,className:"manual-content-btn manual-content-example-copy",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:T.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"})})})})]}),T.jsx("pre",{className:"manual-content-example",children:T.jsx("code",{dangerouslySetInnerHTML:{__html:q.examples||""}})})]},C)),(c==null?void 0:c.returns)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("returns")}),c.returns.map((q,C)=>T.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:q}},C))]}),(c==null?void 0:c.remarks)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("remarks")}),c.remarks.map((q,C)=>T.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:q}},C))]}),(c==null?void 0:c.seeAlso)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("see also")}),T.jsx("div",{className:"manual-content-see_also",children:c.seeAlso.map((q,C)=>T.jsx("a",{className:"manual-content-see_also-tag","data-name":q==null?void 0:q.name,href:q==null?void 0:q.link,children:q==null?void 0:q.name},C))})]})]})})},Fy=({theme:a="vs-dark",language:s,currentValue:r})=>{const{t:n,i18n:o}=Ws(),[l,c]=S.useState(it[0]),[d,m]=S.useState(null),[_,g]=S.useState(0),[x,h]=S.useState(""),[D,z]=S.useState("var_bar_index"),P=S.useRef(null),$=S.useRef(null),j=S.useRef(null),W=R=>{var E;R.key===(l==null?void 0:l.key)&&!(l!=null&&l.isHidden)?c({...R,isHidden:!0}):c(R),(E=P.current)==null||E.focus()};S.useEffect(()=>{Ne.editor.setTheme(a)},[a]),S.useEffect(()=>{var R;if(r.value){const[E]=r.value.split("_"),A=it.find(O=>E===O.prefix);A&&(g(r.index||0),q(A,r.value)),(R=P.current)==null||R.focus()}},[r]),S.useEffect(()=>{s&&o.changeLanguage(s)},[s]),S.useEffect(()=>{var R;(R=P.current)==null||R.focus()},[P.current]);const re=(R,E)=>{var A,O;R!==D&&(E&&c(E),g(0),z(R),(A=j.current)==null||A.scrollTo({top:0}),(O=P.current)==null||O.focus())},V=R=>{if(R.target.value.trim()==="")Q();else{h(R.target.value);const E=Nl(R.target.value);m(E)}},Q=()=>{var R;h(""),m(null),setTimeout(()=>{var E,A;(A=(E=$.current)==null?void 0:E.querySelector(`a[data-href="${D}"]`))==null||A.scrollIntoView(!0)},10),(R=P.current)==null||R.focus()},q=(R,E)=>{var A;c(R),z(E),setTimeout(()=>{var O,J;(J=(O=$.current)==null?void 0:O.querySelector(`a[data-href="${E}"]`))==null||J.scrollIntoView(!0)},10),(A=j.current)==null||A.scrollTo({top:0})},C=R=>{var A;const E=it.find(O=>R.startsWith(O.prefix));E&&(g(0),q(E,R),(A=P.current)==null||A.focus())};return T.jsxs("div",{className:`${a} manual-warpper`,children:[T.jsxs("div",{className:"manual-left",children:[T.jsxs("div",{className:"manual-search",children:[T.jsx("span",{className:"manual-search-icon",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:T.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"})})}),T.jsx("input",{onChange:V,ref:P,spellCheck:"false",value:x,className:"manual-search-input",autoComplete:"off",placeholder:n("search"),type:"text"}),T.jsx("span",{onClick:Q,className:`manual-search-clear ${x?"":"hide"}`,children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:T.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"})})})]}),T.jsx("div",{className:`manual-group-search-list manual-scroll ${x?"":"hide"}`,children:T.jsxs("div",{children:[d==null?void 0:d.labelList.map(R=>T.jsx("a",{onClick:E=>{E.preventDefault(),re(R.key,R.group)},className:`manual-group-body-item ${R.key===D?"manual-group-body-item-selected":""}`,"data-href":R.key,href:`#${R.key}`,children:R.label},`search_${R.key}`)),T.jsx("div",{className:"manual-content-separator"}),d==null?void 0:d.contentList.map(R=>T.jsx("a",{onClick:E=>{E.preventDefault(),re(R.key,R.group)},className:`manual-group-body-item ${R.key===D?"manual-group-body-item-selected":""}`,"data-href":R.key,href:`#${R.key}`,children:R.label},`search_${R.key}`))]})}),T.jsx("div",{className:`manual-group-list manual-scroll ${x?"hide":""}`,ref:$,children:it.map(R=>{var E,A;return T.jsxs(S.Fragment,{children:[T.jsx("div",{onClick:()=>W(R),className:`manual-group-title ${R.key===(l==null?void 0:l.key)&&!(l!=null&&l.isHidden)?"active":""}`,children:n(R.key)}),T.jsx("div",{className:`manual-group-body manual-scroll ${R.key!==(l==null?void 0:l.key)||l!=null&&l.isHidden?"hide":""}`,children:(A=(E=qn[R.key])==null?void 0:E.sort().filter(O=>!Lo.includes(O)))==null?void 0:A.map(O=>{const J=`${R.prefix}_${O}`;return T.jsx("a",{onClick:se=>{se.preventDefault(),re(J)},className:`manual-group-body-item ${J===D?"manual-group-body-item-selected":""}`,"data-href":J,href:`#${J}`,children:`${O}${R.prefix==="fun"?"()":""}`},J)})})]},R.key)})})]}),T.jsx("div",{ref:j,className:"manual-right manual-scroll",children:T.jsx(Ry,{currentIndex:_,group:l,itemKey:D,onItemClick:C})})]})},By=a=>{var Q;const{onItemClick:s,item:r,prefix:n,value:o}=a,{t:l}=Ws(),[c,d]=S.useState(),[m,_]=S.useState(""),[g,x]=S.useState(0),[h,D]=S.useState(l("Copy code")),[z,P]=S.useState(l("Copy link"));S.useEffect(()=>{o&&(d(o),_(`${window.location.origin}/reference-manual/#${n}_${o==null?void 0:o.orirginalName}`))},[o]);const $=(q=0)=>{x(q),Qn(r,q).then(C=>{d(C),_(`${window.location.origin}/reference-manual/#${n}_${C==null?void 0:C.orirginalName}`)})},j=q=>{$(q)},W=q=>{var C,R;if(q.target.localName==="a"&&q.target.hash&&((R=(C=q.target)==null?void 0:C.dataset)!=null&&R.name)){q.preventDefault();const{hash:E}=q.target;s(E.replace("#",""))}},re=()=>{D(l("Copied")),setTimeout(()=>{D(l("Copy code"))},1e3)},V=()=>{P(l("Link copied")),setTimeout(()=>{P(l("Copy link"))},3e3)};return T.jsx("div",{onClick:W,id:`${n}_${c==null?void 0:c.orirginalName}`,children:T.jsxs("div",{className:"manual-page-content-wrapper",children:[T.jsxs("div",{className:"manual-page-content-header",children:[T.jsxs("div",{children:[T.jsx("h3",{className:"manual-page-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&T.jsx("span",{className:"manual-page-content-header-overloads",children:c==null?void 0:c.overloads})]}),T.jsx(Vs,{text:m,onCopy:V,children:T.jsx("div",{"data-tooltip":z,className:"manual-page-content-btn",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:T.jsxs("g",{fill:"currentColor",children:[T.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"}),T.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(Q=c==null?void 0:c.desc)==null?void 0:Q.map((q,C)=>T.jsx("div",{dangerouslySetInnerHTML:{__html:q},className:"manual-page-content-text"},C)),(c==null?void 0:c.type)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("type")}),T.jsx("div",{className:"manual-page-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&T.jsxs(S.Fragment,{children:[T.jsxs("div",{className:"manual-page-content-sub-title",children:[l("syntax")," ",!!(c!=null&&c.overloads)&&`& ${l("overloads")}`]}),c.syntax.map((q,C)=>{var R;return(((R=c.syntax)==null?void 0:R.length)||0)>1?T.jsx("div",{onClick:()=>j(C),children:T.jsx("pre",{className:`manual-page-content-syntax with-overloads ${C===g?"selected":""}`,children:q})},C):T.jsx("pre",{className:"manual-page-content-syntax",children:q},C)})]}),(c==null?void 0:c.args)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("arguments")}),c.args.map((q,C)=>T.jsxs("div",{className:"manual-page-content-text",children:[T.jsx("span",{className:"manual-page-content-args-label",children:q.label})," ",T.jsx("span",{dangerouslySetInnerHTML:{__html:q.desc||""}})]},C))]}),(c==null?void 0:c.fields)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("fields")}),c.fields.map((q,C)=>T.jsxs("div",{className:"manual-page-content-text",children:[T.jsx("span",{className:"manual-page-content-args-label",children:q.label})," ",T.jsx("span",{dangerouslySetInnerHTML:{__html:q.desc||""}})]},C))]}),(c==null?void 0:c.examples)&&T.jsxs(S.Fragment,{children:[T.jsxs("div",{className:"manual-page-content-sub-title manual-page-content-example-header",children:[T.jsx("div",{children:T.jsx("span",{children:l("example")})}),T.jsx(Vs,{text:c.originalExample||"",onCopy:re,children:T.jsx("div",{"data-tooltip":h,className:"manual-page-content-btn manual-page-content-example-copy",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:T.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"})})})})]}),T.jsx("pre",{className:"manual-page-content-example",children:T.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((q,C)=>T.jsxs(S.Fragment,{children:[q.desc.map((R,E)=>T.jsx("div",{className:"manual-page-content-text",dangerouslySetInnerHTML:{__html:R}},E)),T.jsxs("div",{className:"manual-page-content-sub-title manual-page-content-example-header",children:[T.jsx("div",{children:T.jsx("span",{children:l("example")})}),T.jsx(Vs,{text:q.originalExample||"",onCopy:re,children:T.jsx("div",{"data-tooltip":h,className:"manual-page-content-btn manual-page-content-example-copy",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:T.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"})})})})]}),T.jsx("pre",{className:"manual-page-content-example",children:T.jsx("code",{dangerouslySetInnerHTML:{__html:q.examples||""}})})]},C)),(c==null?void 0:c.returns)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("returns")}),c.returns.map((q,C)=>T.jsx("div",{className:"manual-page-content-text",dangerouslySetInnerHTML:{__html:q}},C))]}),(c==null?void 0:c.remarks)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("remarks")}),c.remarks.map((q,C)=>T.jsx("div",{className:"manual-page-content-text",dangerouslySetInnerHTML:{__html:q}},C))]}),(c==null?void 0:c.seeAlso)&&T.jsxs(S.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("see also")}),T.jsx("div",{className:"manual-page-content-see_also",children:c.seeAlso.map((q,C)=>T.jsx("a",{className:"manual-page-content-see_also-tag","data-name":q==null?void 0:q.name,href:q==null?void 0:q.link,children:q==null?void 0:q.name},C))})]})]})})},Uy=({onItemClick:a,onGroupClick:s,selectedItemChange:r,selectItem:n,manualTabRef:o,searchRef:l})=>{const{t:c}=Ws(),[d,m]=S.useState(null),[_,g]=S.useState("");S.useEffect(()=>{var D;(D=l.current)==null||D.focus()},[l.current]);const x=D=>{if(D.target.value.trim()==="")h();else{g(D.target.value);const z=Nl(D.target.value);m(z)}},h=()=>{var D;g(""),m(null),setTimeout(()=>{n.current&&r(n.current,!0)},10),(D=l.current)==null||D.focus()};return T.jsxs("div",{className:"manual-page-left",children:[T.jsxs("div",{className:"manual-page-search",children:[T.jsx("span",{className:"manual-page-search-icon",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:T.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"})})}),T.jsx("input",{onChange:x,ref:l,spellCheck:"false",value:_,className:"manual-page-search-input",autoComplete:"off",placeholder:c("search"),type:"text"}),T.jsx("span",{onClick:h,className:`manual-page-search-clear ${_?"":"hide"}`,children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:T.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"})})})]}),T.jsxs("div",{ref:o,className:"manual-page-group-container",children:[T.jsx("div",{className:`manual-page-group-search-list manual-page-scroll ${_?"":"hide"}`,children:T.jsxs("div",{children:[d==null?void 0:d.labelList.map(D=>T.jsx("a",{onClick:z=>{z.preventDefault(),a(D.key,D.index,D.group)},className:"manual-page-group-body-item","data-href":D.key,href:`#${D.key}`,children:D.label},`search_${D.key}`)),T.jsx("div",{className:"manual-page-content-separator"}),d==null?void 0:d.contentList.map(D=>T.jsx("a",{onClick:z=>{z.preventDefault(),a(D.key,D.index,D.group)},className:"manual-page-group-body-item","data-href":D.key,href:`#${D.key}`,children:D.label},`search_${D.key}`))]})}),T.jsx("div",{className:`manual-page-group-list manual-page-scroll ${_?"hide":""}`,children:it.map(D=>{var z;return T.jsxs(S.Fragment,{children:[T.jsx("div",{onClick:()=>s(D),className:"manual-page-group-title manual-page-group-t",children:c(D.key)}),T.jsx("div",{className:"manual-page-group-body manual-page-group-b manual-page-scroll hide",children:(z=ks[D.key])==null?void 0:z.map((P,$)=>{const j=`${D.prefix}_${P}`;return T.jsx("a",{onClick:W=>{W.preventDefault(),a(j,$)},className:"manual-page-group-body-item","data-href":j,href:`#${j}`,children:`${P}${D.prefix==="fun"?"()":""}`},j)})})]},D.key)})})]})]})},$y=({theme:a="vs-dark",language:s})=>{const{t:r,i18n:n}=Ws(),[o,l]=S.useState(),c=S.useRef(""),d=S.useRef(null),m=S.useRef(null),_=S.useRef(null),g=S.useRef(null),x=S.useRef(null),h=S.useRef(null),D=S.useRef(0),z=S.useRef({startTop:0,endTop:0,key:"var_bar_index",group:it[0],index:0}),P=E=>{var A;C(E),(A=d.current)==null||A.focus()};S.useEffect(()=>{var E;x.current||($(),D.current=((E=_.current)==null?void 0:E.offsetTop)||0)},[]);const $=async()=>{const E={};for(const A of it){const O=A.key,J=new Map;for(const se of ks[O]){const le=await Qn(nt[O].get(se)||[],0);le&&J.set(se,le)}E[O]=J}l(E)};S.useEffect(()=>{if(!x.current&&o){const E=window.location.hash;if(E){const A=E.replace(/^#/,""),[O]=A.split("_"),J=it.find(se=>se.prefix===O);if(J){C(J),V(A,!0),setTimeout(()=>{const se=document.getElementById(A);se==null||se.scrollIntoView(),se==null||se.classList.add("reference-item-selected")},10);return}}C(it[0]),setTimeout(()=>{R(it[0],"bar_index",0,92)},10)}},[o]),S.useEffect(()=>{Ne.editor.setTheme(a)},[a]),S.useEffect(()=>{s&&n.changeLanguage(s)},[s]),S.useEffect(()=>{var E;(E=d.current)==null||E.focus()},[d.current]);const j=(E,A,O)=>{var le,Y,oe,xe;if(E===c.current)return;O&&O.key!==((le=x.current)==null?void 0:le.key)&&C(O),V(E),window.location.href=`#${E}`;const[J,se]=W(E,A);z.current={startTop:J,endTop:se,group:O||x.current,index:A,key:E},(oe=(Y=g.current)==null?void 0:Y.classList)==null||oe.remove("manual-page-current-item-bg"),(xe=d.current)==null||xe.focus()},W=(E,A=0)=>{const O=document.getElementById(E),J=(O==null?void 0:O.offsetHeight)||0,se=A?0:78,le=((O==null?void 0:O.offsetTop)||0)-72-D.current;return[le-se,le+J]},re=(E,A)=>{var O;E.key!==((O=x.current)==null?void 0:O.key)&&C(E),V(A,!0)},V=(E,A=!1)=>{var J,se,le,Y;const O=(J=m.current)==null?void 0:J.querySelector(`a[data-href="${E}"]`);if(A&&(O==null||O.scrollIntoView({block:"nearest"})),(se=document.getElementById(c.current))==null||se.classList.remove("reference-item-selected"),(le=document.getElementById(E))==null||le.classList.add("reference-item-selected"),E===c.current){!(O!=null&&O.classList.contains("manual-page-group-body-item-selected"))&&(O==null||O.classList.add("manual-page-group-body-item-selected")),h.current=O;return}c.current=E,(Y=h.current)==null||Y.classList.remove("manual-page-group-body-item-selected"),O==null||O.classList.add("manual-page-group-body-item-selected"),h.current=O},Q=E=>{var O;const A=it.find(J=>E.startsWith(J.prefix));A&&(re(A,E),window.location.href=`#${E}`,(O=d.current)==null||O.focus())},q=S.useCallback(E=>{var Oe;const{startTop:A,endTop:O,index:J,group:se,key:le}=z.current;let Y=O,oe=A;Y||([oe,Y]=W(le,J),z.current={startTop:oe,endTop:Y,group:se,index:J,key:le}),se.key!==((Oe=x.current)==null?void 0:Oe.key)&&C(se);const xe=E.currentTarget.scrollTop;if(xe>=oe&&xe<Y)return;let pe=!1,_e=J,Ee=se.index,ee=ks[se.key],de=se;if(xe>=Y)for(;!pe;){_e++;const Ge=ee[_e];if(Ge)pe=R(de,Ge,_e,xe);else{if(Ee++,de=it[Ee],ee=ks[de==null?void 0:de.key],!ee){pe=!0;return}C(de),_e=-1}}else for(;!pe;)if(_e--,_e>=0){const Ge=ee[_e];pe=R(de,Ge,_e,xe)}else{if(Ee--,Ee<0){pe=!0;return}de=it[Ee],C(de),ee=ks[de==null?void 0:de.key],_e=ee.length}},[]),C=E=>{var le,Y,oe,xe,pe,_e,Ee,ee,de,Oe,Ge;const A=(le=x.current)==null?void 0:le.index,O=(Y=m.current)==null?void 0:Y.querySelectorAll(".manual-page-group-t"),J=(oe=m.current)==null?void 0:oe.querySelectorAll(".manual-page-group-b"),se=E.index;if((pe=(xe=J==null?void 0:J[A])==null?void 0:xe.classList)==null||pe.add("hide"),(Ee=(_e=O==null?void 0:O[A])==null?void 0:_e.classList)==null||Ee.remove("active"),A===se){x.current=null;return}else(de=(ee=O==null?void 0:O[se])==null?void 0:ee.classList)==null||de.add("active"),(Ge=(Oe=J==null?void 0:J[se])==null?void 0:Oe.classList)==null||Ge.remove("hide"),x.current=E},R=(E,A,O,J)=>{var oe,xe,pe;const se=`${E.prefix}_${A}`,[le,Y]=W(se,O);if(le<=J&&J<Y){z.current={startTop:le,endTop:Y,group:E,index:O,key:se};const _e=(oe=m.current)==null?void 0:oe.querySelector(`a[data-href="${se}"]`);return(pe=(xe=g.current)==null?void 0:xe.classList)==null||pe.remove("manual-page-current-item-bg"),g.current=_e,_e==null||_e.scrollIntoView({block:"nearest"}),_e==null||_e.classList.add("manual-page-current-item-bg"),!0}return!1};return T.jsxs("div",{ref:_,className:`${a} manual-page-warpper ${o?"show-warpper":""}`,children:[T.jsx(Uy,{onGroupClick:P,onItemClick:j,selectItem:c,manualTabRef:m,searchRef:d,selectedItemChange:V}),T.jsxs("div",{className:"manual-page-right",children:[T.jsx("div",{children:T.jsx("h1",{className:"manual-page-title",children:r("Mine Script® v1 Reference Manual")})}),T.jsx("div",{onScroll:q,className:"manual-page-scroll manual-page-scroll-none",children:it.map(E=>T.jsxs(S.Fragment,{children:[T.jsx("h2",{className:"manual-page-header",children:r(E.key)}),T.jsx("div",{children:ks[E.key].map(A=>{var O;return T.jsx(By,{item:nt[E.key].get(A)||[],value:(O=o==null?void 0:o[E.key])==null?void 0:O.get(A),prefix:E.prefix,onItemClick:Q},A)})})]},E.key))})]})]})};L.ReferenceManual=Fy,L.ReferenceManualPage=$y,L.TradingVueDiffEditor=by,L.TradingVueEditor=gy,L.parseLibrary=Om,L.parseTcc=ml,L.removeScript=Rm,L.scriptsRun=Pm,L.transformCodeToHtml=zl,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
|
146
|
+
`,theme:o||"vs-dark",className:`tvue-script ${o||"vs-dark"}`,options:{colorDecorators:!0,useShadowDOM:!1,matchOnWordStartOnly:!0,automaticLayout:!1,unicodeHighlight:{allowedCharacters:{" ":!0}},suggest:{filterGraceful:!0},fontSize:13,...u?am:{},readOnlyMessage:{value:R("This script is read-only. It cannot be edited.")},...l},onMount:Q,onChange:V})})},gy=N.forwardRef(fy),by=a=>{const{theme:s,modified:r,original:n,height:o,width:l,renderSideBySide:c=!0}=a,u=N.useCallback((m,_)=>{_.languages.register({id:Ke}),_.editor.defineTheme("vs-dark",Mn),_.editor.defineTheme("vs",Ln),_.languages.setMonarchTokensProvider(Ke,js),_.languages.setLanguageConfiguration(Ke,En)},[]);return T.jsx(lu,{height:o||"90vh",width:l||"100%",theme:s||"vs-dark",options:{readOnly:!0,renderSideBySide:c,scrollBeyondLastLine:!1},language:Ke,modified:r,original:n,onMount:u})};M.VMarkerSeverity=void 0,function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"}(M.VMarkerSeverity||(M.VMarkerSeverity={}));var Ta={},xy=function(){var a=document.getSelection();if(!a.rangeCount)return function(){};for(var s=document.activeElement,r=[],n=0;n<a.rangeCount;n++)r.push(a.getRangeAt(n));switch(s.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":s.blur();break;default:s=null;break}return a.removeAllRanges(),function(){a.type==="Caret"&&a.removeAllRanges(),a.rangeCount||r.forEach(function(o){a.addRange(o)}),s&&s.focus()}},hy=xy,kl={"text/plain":"Text","text/html":"Url",default:"Text"},wy="Copy to clipboard: #{key}, Enter";function vy(a){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,s)}function Ty(a,s){var r,n,o,l,c,u,m=!1;s||(s={}),r=s.debug||!1;try{o=hy(),l=document.createRange(),c=document.getSelection(),u=document.createElement("span"),u.textContent=a,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(g){if(g.stopPropagation(),s.format)if(g.preventDefault(),typeof g.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var x=kl[s.format]||kl.default;window.clipboardData.setData(x,a)}else g.clipboardData.clearData(),g.clipboardData.setData(s.format,a);s.onCopy&&(g.preventDefault(),s.onCopy(g.clipboardData))}),document.body.appendChild(u),l.selectNodeContents(u),c.addRange(l);var _=document.execCommand("copy");if(!_)throw new Error("copy command was unsuccessful");m=!0}catch(g){r&&console.error("unable to copy using execCommand: ",g),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",a),s.onCopy&&s.onCopy(window.clipboardData),m=!0}catch(x){r&&console.error("unable to copy using clipboardData: ",x),r&&console.error("falling back to prompt"),n=vy("message"in s?s.message:wy),window.prompt(n,a)}}finally{c&&(typeof c.removeRange=="function"?c.removeRange(l):c.removeAllRanges()),u&&document.body.removeChild(u),o()}return m}var ky=Ty;function Vn(a){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Vn(a)}Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.CopyToClipboard=void 0;var ka=Dl(N),Dy=Dl(ky),Iy=["text","onCopy","options","children"];function Dl(a){return a&&a.__esModule?a:{default:a}}function Il(a,s){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);s&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),r.push.apply(r,n)}return r}function Al(a){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?Il(Object(r),!0).forEach(function(n){Xn(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):Il(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}function Ay(a,s){if(a==null)return{};var r=qy(a,s),n,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);for(o=0;o<l.length;o++)n=l[o],!(s.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(a,n)&&(r[n]=a[n])}return r}function qy(a,s){if(a==null)return{};var r={},n=Object.keys(a),o,l;for(l=0;l<n.length;l++)o=n[l],!(s.indexOf(o)>=0)&&(r[o]=a[o]);return r}function Cy(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function ql(a,s){for(var r=0;r<s.length;r++){var n=s[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}function Sy(a,s,r){return s&&ql(a.prototype,s),r&&ql(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}function zy(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),s&&Gn(a,s)}function Gn(a,s){return Gn=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Gn(a,s)}function Ny(a){var s=Ly();return function(){var n=Da(a),o;if(s){var l=Da(this).constructor;o=Reflect.construct(n,arguments,l)}else o=n.apply(this,arguments);return Ey(this,o)}}function Ey(a,s){if(s&&(Vn(s)==="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cl(a)}function Cl(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Ly(){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 Da(a){return Da=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Da(a)}function Xn(a,s,r){return s in a?Object.defineProperty(a,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[s]=r,a}var Sl=function(a){zy(r,a);var s=Ny(r);function r(){var n;Cy(this,r);for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=s.call.apply(s,[this].concat(l)),Xn(Cl(n),"onClick",function(u){var m=n.props,_=m.text,g=m.onCopy,x=m.children,h=m.options,D=ka.default.Children.only(x),S=(0,Dy.default)(_,h);g&&g(_,S),D&&D.props&&typeof D.props.onClick=="function"&&D.props.onClick(u)}),n}return Sy(r,[{key:"render",value:function(){var o=this.props;o.text,o.onCopy,o.options;var l=o.children,c=Ay(o,Iy),u=ka.default.Children.only(l);return ka.default.cloneElement(u,Al(Al({},c),{},{onClick:this.onClick}))}}]),r}(ka.default.PureComponent);Ta.CopyToClipboard=Sl,Xn(Sl,"defaultProps",{onCopy:void 0,options:void 0});var My=Ta,Yn=My.CopyToClipboard;Yn.CopyToClipboard=Yn;var Oy=Yn;const Vs=nd(Oy);Ne.languages.register({id:Ke}),Ne.editor.defineTheme("vs-dark",Mn),Ne.editor.defineTheme("vs",Ln),Ne.languages.setMonarchTokensProvider(Ke,js),Ne.languages.setLanguageConfiguration(Ke,En);async function zl(a,s){return s&&Ne.editor.setTheme(s.includes("dark")?"vs-dark":"light"),await Ne.editor.colorize(a,Ke,{tabSize:4})}async function Qn(a,s=0){const r=a[s];if(!r)return;const{name:n,args:o,type:l,desc:c,examples:u,remarks:m,seeAlso:_,syntax:g,detailedDesc:x,fields:h,returns:D}=r,S={name:n,orirginalName:n};if(a.length>1&&(S.overloads=`${a.length} ${Me.t("overloads")}`),l&&(S.type=l),o&&(S.name=`${n}()`,S.args=o.map(R=>{const{name:U,desc:K,displayType:H}=R;return{label:`${U} (${H})`,desc:K&&qs(K)}})),c&&(S.desc=c.map(R=>qs(R))),u&&(S.originalExample=u.join(`
|
147
|
+
`),S.examples=await Ne.editor.colorize(S.originalExample,Ke,{tabSize:4})),x){S.detailedDesc=[];for(const R of x){const{desc:U,examples:K}=R;let H=U.map(Q=>qs(Q)),re,W;K&&(W=K.join(`
|
148
|
+
`),re=await zl(W)),S.detailedDesc.push({desc:H,examples:re,originalExample:W})}}return D&&(S.returns=D.map(R=>qs(R))),m&&(S.remarks=typeof m=="string"?[qs(m)]:m.map(R=>qs(R))),g&&(S.syntax=a.map(R=>{var U;return(U=R.syntax)==null?void 0:U[0]})),h&&(S.fields=h.map(R=>{const{name:U,desc:K,type:H}=R;return{label:`${U} (${H})`,desc:K&&qs(K)}})),_&&(S.seeAlso=_.map(R=>Py(R))),S}function Py(a){const r=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(a);if(r){const[n,o,l]=r;return{name:o,link:l}}}function qs(a){const s=/\*\*([^\*]+)\*\*/g,r=/\`([^\`]+)\`/g,n=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return a.replace(s,(o,l)=>`<strong>${l}</strong>`).replace(r,(o,l)=>`<code>${l}</code>`).replace(n,(o,l,c)=>`<a ${c.startsWith("#")?`data-name="${l}"`:'target="_blank"'} class="manual-content-text-link" href="${c}">${l}</a>`)}function Nl(a){var o;const s=[];let r=0;const n=[];for(const l of it)for(let[c,u]of ks[l.key].entries()){let m=u;l.prefix==="fun"&&(m=`${u}()`),m.includes(a)&&(m.startsWith(a)?(m.includes(".")?s.splice(r,0,{label:m,index:c,group:l,key:`${l.prefix}_${u}`}):s.unshift({label:m,index:c,group:l,key:`${l.prefix}_${u}`}),r++):s.push({label:m,index:c,group:l,key:`${l.prefix}_${u}`}));const _=nt[l.key].get(u)||[];for(const g of _){const{name:x,args:h,type:D,desc:S,examples:R,remarks:U,seeAlso:K,syntax:H,detailedDesc:re,fields:W,returns:Q}=g,C={label:x,index:c,group:l,key:`${l.prefix}_${x}`};if(l.prefix==="fun"&&(C.label=`${x}()`),C.label.includes(a))break;if(h){let z=!1;for(const V of h){const{name:q,desc:A,displayType:L}=V;if(q.includes(a)||A!=null&&A.includes(a)||L!=null&&L.includes(a)){n.push(C),z=!0;break}}if(z)break}if(D&&D.includes(a)){n.push(C);break}if(S){let z=!1;for(const V of S)if(V.includes(a)){n.push(C),z=!0;break}if(z)break}if(R){let z=!1;for(const V of R)if(V.includes(a)){n.push(C),z=!0;break}if(z)break}if(U&&(typeof U=="string"?U:U.join(`
|
149
|
+
`)).includes(a)){n.push(C);break}if(H){let z=!1;for(const V of H)if(V.includes(a)){n.push(C),z=!0;break}if(z)break}if(re){let z=!1;for(const V of re){const{desc:q,examples:A}=V;if(q.join(`
|
150
|
+
`).includes(a)){n.push(C),z=!0;break}if((o=A==null?void 0:A.join(`
|
151
|
+
`))!=null&&o.includes(a)){n.push(C),z=!0;break}}if(z)break}if(W){let z=!1;for(const V of W){const{name:q,desc:A,type:L}=V;if(q.includes(a)||A!=null&&A.includes(a)||L!=null&&L.includes(a)){n.push(C),z=!0;break}}if(z)break}if(Q){let z=!1;for(const V of Q)if(V.includes(a)){n.push(C),z=!0;break}if(z)break}}}return{labelList:s,contentList:n}}const Ry=a=>{var Q;const{group:s,itemKey:r,onItemClick:n,currentIndex:o}=a,{t:l}=Ws(),[c,u]=N.useState(),[m,_]=N.useState(""),[g,x]=N.useState(0),[h,D]=N.useState(l("Copy code")),[S,R]=N.useState(l("Copy link"));N.useEffect(()=>{U(o)},[r]);const U=C=>{const z=r.replace(`${s==null?void 0:s.prefix}_`,""),V=nt[s==null?void 0:s.key].get(z);x(C),V&&Qn(V,C).then(q=>{u(q),_(`${window.location.origin}/reference-manual/#${s==null?void 0:s.prefix}_${q==null?void 0:q.orirginalName}`)})},K=C=>{U(C)},H=C=>{var z,V;if(C.target.localName==="a"&&C.target.hash&&((V=(z=C.target)==null?void 0:z.dataset)!=null&&V.name)){C.preventDefault();const{hash:q}=C.target;n(q.replace("#",""))}},re=()=>{D(l("Copied")),setTimeout(()=>{D(l("Copy code"))},1e3)},W=()=>{R(l("Link copied")),setTimeout(()=>{R(l("Copy link"))},3e3)};return T.jsx("div",{onClick:H,id:`#${r}`,children:T.jsxs("div",{className:"manual-content-wrapper",children:[T.jsxs("div",{className:"manual-content-header",children:[T.jsxs("div",{children:[T.jsx("h3",{className:"manual-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&T.jsx("span",{className:"manual-content-header-overloads",children:c==null?void 0:c.overloads})]}),T.jsx(Vs,{text:m,onCopy:W,children:T.jsx("div",{"data-tooltip":S,className:"manual-content-btn",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:T.jsxs("g",{fill:"currentColor",children:[T.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"}),T.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(Q=c==null?void 0:c.desc)==null?void 0:Q.map((C,z)=>T.jsx("div",{dangerouslySetInnerHTML:{__html:C},className:"manual-content-text"},z)),(c==null?void 0:c.type)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("type")}),T.jsx("div",{className:"manual-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&T.jsxs(N.Fragment,{children:[T.jsxs("div",{className:"manual-content-sub-title",children:[l("syntax")," ",!!(c!=null&&c.overloads)&&`& ${l("overloads")}`]}),c.syntax.map((C,z)=>{var V;return(((V=c.syntax)==null?void 0:V.length)||0)>1?T.jsx("div",{onClick:()=>K(z),children:T.jsx("pre",{className:`manual-content-syntax with-overloads ${z===g?"selected":""}`,children:C})},z):T.jsx("pre",{className:"manual-content-syntax",children:C},z)})]}),(c==null?void 0:c.args)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("arguments")}),c.args.map((C,z)=>T.jsxs("div",{className:"manual-content-text",children:[T.jsx("span",{className:"manual-content-args-label",children:C.label})," ",T.jsx("span",{dangerouslySetInnerHTML:{__html:C.desc||""}})]},z))]}),(c==null?void 0:c.fields)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("fields")}),c.fields.map((C,z)=>T.jsxs("div",{className:"manual-content-text",children:[T.jsx("span",{className:"manual-content-args-label",children:C.label})," ",T.jsx("span",{dangerouslySetInnerHTML:{__html:C.desc||""}})]},z))]}),(c==null?void 0:c.examples)&&T.jsxs(N.Fragment,{children:[T.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[T.jsx("div",{children:T.jsx("span",{children:l("example")})}),T.jsx(Vs,{text:c.originalExample||"",onCopy:re,children:T.jsx("div",{"data-tooltip":h,className:"manual-content-btn manual-content-example-copy",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:T.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"})})})})]}),T.jsx("pre",{className:"manual-content-example",children:T.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((C,z)=>T.jsxs(N.Fragment,{children:[C.desc.map((V,q)=>T.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:V}},q)),T.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[T.jsx("div",{children:T.jsx("span",{children:l("example")})}),T.jsx(Vs,{text:C.originalExample||"",onCopy:re,children:T.jsx("div",{"data-tooltip":h,className:"manual-content-btn manual-content-example-copy",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:T.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"})})})})]}),T.jsx("pre",{className:"manual-content-example",children:T.jsx("code",{dangerouslySetInnerHTML:{__html:C.examples||""}})})]},z)),(c==null?void 0:c.returns)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("returns")}),c.returns.map((C,z)=>T.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:C}},z))]}),(c==null?void 0:c.remarks)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("remarks")}),c.remarks.map((C,z)=>T.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:C}},z))]}),(c==null?void 0:c.seeAlso)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-content-sub-title",children:l("see also")}),T.jsx("div",{className:"manual-content-see_also",children:c.seeAlso.map((C,z)=>T.jsx("a",{className:"manual-content-see_also-tag","data-name":C==null?void 0:C.name,href:C==null?void 0:C.link,children:C==null?void 0:C.name},z))})]})]})})},Fy=({theme:a="vs-dark",language:s,currentValue:r,onChange:n})=>{const{t:o,i18n:l}=Ws(),[c,u]=N.useState(it[0]),[m,_]=N.useState(null),[g,x]=N.useState(0),[h,D]=N.useState(""),[S,R]=N.useState("var_bar_index"),U=N.useRef(null),K=N.useRef(null),H=N.useRef(null),re=q=>{var A;q.key===(c==null?void 0:c.key)&&!(c!=null&&c.isHidden)?u({...q,isHidden:!0}):u(q),(A=U.current)==null||A.focus()};N.useEffect(()=>{Ne.editor.setTheme(a)},[a]),N.useEffect(()=>{var q;if(r.value){const[A]=r.value.split("_"),L=it.find(Z=>A===Z.prefix);L&&(x(r.index||0),z(L,r.value)),(q=U.current)==null||q.focus()}},[r]),N.useEffect(()=>{s&&l.changeLanguage(s)},[s]),N.useEffect(()=>{var q;(q=U.current)==null||q.focus()},[U.current]);const W=(q,A)=>{var L,Z;q!==S&&(A&&u(A),x(0),R(q),n&&n(q),(L=H.current)==null||L.scrollTo({top:0}),(Z=U.current)==null||Z.focus())},Q=q=>{if(q.target.value.trim()==="")C();else{D(q.target.value);const A=Nl(q.target.value);_(A)}},C=()=>{var q;D(""),_(null),setTimeout(()=>{var A,L;(L=(A=K.current)==null?void 0:A.querySelector(`a[data-href="${S}"]`))==null||L.scrollIntoView(!0)},10),(q=U.current)==null||q.focus()},z=(q,A)=>{var L;u(q),R(A),n&&n(A),setTimeout(()=>{var Z,ee;(ee=(Z=K.current)==null?void 0:Z.querySelector(`a[data-href="${A}"]`))==null||ee.scrollIntoView(!0)},10),(L=H.current)==null||L.scrollTo({top:0})},V=q=>{var L;const A=it.find(Z=>q.startsWith(Z.prefix));A&&(x(0),z(A,q),(L=U.current)==null||L.focus())};return T.jsxs("div",{className:`${a} manual-warpper`,children:[T.jsxs("div",{className:"manual-left",children:[T.jsxs("div",{className:"manual-search",children:[T.jsx("span",{className:"manual-search-icon",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:T.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"})})}),T.jsx("input",{onChange:Q,ref:U,spellCheck:"false",value:h,className:"manual-search-input",autoComplete:"off",placeholder:o("search"),type:"text"}),T.jsx("span",{onClick:C,className:`manual-search-clear ${h?"":"hide"}`,children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:T.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"})})})]}),T.jsx("div",{className:`manual-group-search-list manual-scroll ${h?"":"hide"}`,children:T.jsxs("div",{children:[m==null?void 0:m.labelList.map(q=>T.jsx("a",{onClick:A=>{A.preventDefault(),W(q.key,q.group)},className:`manual-group-body-item ${q.key===S?"manual-group-body-item-selected":""}`,"data-href":q.key,href:`#${q.key}`,children:q.label},`search_${q.key}`)),T.jsx("div",{className:"manual-content-separator"}),m==null?void 0:m.contentList.map(q=>T.jsx("a",{onClick:A=>{A.preventDefault(),W(q.key,q.group)},className:`manual-group-body-item ${q.key===S?"manual-group-body-item-selected":""}`,"data-href":q.key,href:`#${q.key}`,children:q.label},`search_${q.key}`))]})}),T.jsx("div",{className:`manual-group-list manual-scroll ${h?"hide":""}`,ref:K,children:it.map(q=>{var A,L;return T.jsxs(N.Fragment,{children:[T.jsx("div",{onClick:()=>re(q),className:`manual-group-title ${q.key===(c==null?void 0:c.key)&&!(c!=null&&c.isHidden)?"active":""}`,children:o(q.key)}),T.jsx("div",{className:`manual-group-body manual-scroll ${q.key!==(c==null?void 0:c.key)||c!=null&&c.isHidden?"hide":""}`,children:(L=(A=qn[q.key])==null?void 0:A.sort().filter(Z=>!Lo.includes(Z)))==null?void 0:L.map(Z=>{const ee=`${q.prefix}_${Z}`;return T.jsx("a",{onClick:ne=>{ne.preventDefault(),W(ee)},className:`manual-group-body-item ${ee===S?"manual-group-body-item-selected":""}`,"data-href":ee,href:`#${ee}`,children:`${Z}${q.prefix==="fun"?"()":""}`},ee)})})]},q.key)})})]}),T.jsx("div",{ref:H,className:"manual-right manual-scroll",children:T.jsx(Ry,{currentIndex:g,group:c,itemKey:S,onItemClick:V})})]})},By=a=>{var Q;const{onItemClick:s,item:r,prefix:n,value:o}=a,{t:l}=Ws(),[c,u]=N.useState(),[m,_]=N.useState(""),[g,x]=N.useState(0),[h,D]=N.useState(l("Copy code")),[S,R]=N.useState(l("Copy link"));N.useEffect(()=>{o&&(u(o),_(`${window.location.origin}/reference-manual/#${n}_${o==null?void 0:o.orirginalName}`))},[o]);const U=(C=0)=>{x(C),Qn(r,C).then(z=>{u(z),_(`${window.location.origin}/reference-manual/#${n}_${z==null?void 0:z.orirginalName}`)})},K=C=>{U(C)},H=C=>{var z,V;if(C.target.localName==="a"&&C.target.hash&&((V=(z=C.target)==null?void 0:z.dataset)!=null&&V.name)){C.preventDefault();const{hash:q}=C.target;s(q.replace("#",""))}},re=()=>{D(l("Copied")),setTimeout(()=>{D(l("Copy code"))},1e3)},W=()=>{R(l("Link copied")),setTimeout(()=>{R(l("Copy link"))},3e3)};return T.jsx("div",{onClick:H,id:`${n}_${c==null?void 0:c.orirginalName}`,children:T.jsxs("div",{className:"manual-page-content-wrapper",children:[T.jsxs("div",{className:"manual-page-content-header",children:[T.jsxs("div",{children:[T.jsx("h3",{className:"manual-page-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&T.jsx("span",{className:"manual-page-content-header-overloads",children:c==null?void 0:c.overloads})]}),T.jsx(Vs,{text:m,onCopy:W,children:T.jsx("div",{"data-tooltip":S,className:"manual-page-content-btn",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:T.jsxs("g",{fill:"currentColor",children:[T.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"}),T.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(Q=c==null?void 0:c.desc)==null?void 0:Q.map((C,z)=>T.jsx("div",{dangerouslySetInnerHTML:{__html:C},className:"manual-page-content-text"},z)),(c==null?void 0:c.type)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("type")}),T.jsx("div",{className:"manual-page-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&T.jsxs(N.Fragment,{children:[T.jsxs("div",{className:"manual-page-content-sub-title",children:[l("syntax")," ",!!(c!=null&&c.overloads)&&`& ${l("overloads")}`]}),c.syntax.map((C,z)=>{var V;return(((V=c.syntax)==null?void 0:V.length)||0)>1?T.jsx("div",{onClick:()=>K(z),children:T.jsx("pre",{className:`manual-page-content-syntax with-overloads ${z===g?"selected":""}`,children:C})},z):T.jsx("pre",{className:"manual-page-content-syntax",children:C},z)})]}),(c==null?void 0:c.args)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("arguments")}),c.args.map((C,z)=>T.jsxs("div",{className:"manual-page-content-text",children:[T.jsx("span",{className:"manual-page-content-args-label",children:C.label})," ",T.jsx("span",{dangerouslySetInnerHTML:{__html:C.desc||""}})]},z))]}),(c==null?void 0:c.fields)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("fields")}),c.fields.map((C,z)=>T.jsxs("div",{className:"manual-page-content-text",children:[T.jsx("span",{className:"manual-page-content-args-label",children:C.label})," ",T.jsx("span",{dangerouslySetInnerHTML:{__html:C.desc||""}})]},z))]}),(c==null?void 0:c.examples)&&T.jsxs(N.Fragment,{children:[T.jsxs("div",{className:"manual-page-content-sub-title manual-page-content-example-header",children:[T.jsx("div",{children:T.jsx("span",{children:l("example")})}),T.jsx(Vs,{text:c.originalExample||"",onCopy:re,children:T.jsx("div",{"data-tooltip":h,className:"manual-page-content-btn manual-page-content-example-copy",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:T.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"})})})})]}),T.jsx("pre",{className:"manual-page-content-example",children:T.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((C,z)=>T.jsxs(N.Fragment,{children:[C.desc.map((V,q)=>T.jsx("div",{className:"manual-page-content-text",dangerouslySetInnerHTML:{__html:V}},q)),T.jsxs("div",{className:"manual-page-content-sub-title manual-page-content-example-header",children:[T.jsx("div",{children:T.jsx("span",{children:l("example")})}),T.jsx(Vs,{text:C.originalExample||"",onCopy:re,children:T.jsx("div",{"data-tooltip":h,className:"manual-page-content-btn manual-page-content-example-copy",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:T.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"})})})})]}),T.jsx("pre",{className:"manual-page-content-example",children:T.jsx("code",{dangerouslySetInnerHTML:{__html:C.examples||""}})})]},z)),(c==null?void 0:c.returns)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("returns")}),c.returns.map((C,z)=>T.jsx("div",{className:"manual-page-content-text",dangerouslySetInnerHTML:{__html:C}},z))]}),(c==null?void 0:c.remarks)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("remarks")}),c.remarks.map((C,z)=>T.jsx("div",{className:"manual-page-content-text",dangerouslySetInnerHTML:{__html:C}},z))]}),(c==null?void 0:c.seeAlso)&&T.jsxs(N.Fragment,{children:[T.jsx("div",{className:"manual-page-content-sub-title",children:l("see also")}),T.jsx("div",{className:"manual-page-content-see_also",children:c.seeAlso.map((C,z)=>T.jsx("a",{className:"manual-page-content-see_also-tag","data-name":C==null?void 0:C.name,href:C==null?void 0:C.link,children:C==null?void 0:C.name},z))})]})]})})},Uy=({onItemClick:a,onGroupClick:s,selectedItemChange:r,selectItem:n,manualTabRef:o,searchRef:l})=>{const{t:c}=Ws(),[u,m]=N.useState(null),[_,g]=N.useState("");N.useEffect(()=>{var D;(D=l.current)==null||D.focus()},[l.current]);const x=D=>{if(D.target.value.trim()==="")h();else{g(D.target.value);const S=Nl(D.target.value);m(S)}},h=()=>{var D;g(""),m(null),setTimeout(()=>{n.current&&r(n.current,!0)},10),(D=l.current)==null||D.focus()};return T.jsxs("div",{className:"manual-page-left",children:[T.jsxs("div",{className:"manual-page-search",children:[T.jsx("span",{className:"manual-page-search-icon",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:T.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"})})}),T.jsx("input",{onChange:x,ref:l,spellCheck:"false",value:_,className:"manual-page-search-input",autoComplete:"off",placeholder:c("search"),type:"text"}),T.jsx("span",{onClick:h,className:`manual-page-search-clear ${_?"":"hide"}`,children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:T.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"})})})]}),T.jsxs("div",{ref:o,className:"manual-page-group-container",children:[T.jsx("div",{className:`manual-page-group-search-list manual-page-scroll ${_?"":"hide"}`,children:T.jsxs("div",{children:[u==null?void 0:u.labelList.map(D=>T.jsx("a",{onClick:S=>{S.preventDefault(),a(D.key,D.index,D.group)},className:"manual-page-group-body-item","data-href":D.key,href:`#${D.key}`,children:D.label},`search_${D.key}`)),T.jsx("div",{className:"manual-page-content-separator"}),u==null?void 0:u.contentList.map(D=>T.jsx("a",{onClick:S=>{S.preventDefault(),a(D.key,D.index,D.group)},className:"manual-page-group-body-item","data-href":D.key,href:`#${D.key}`,children:D.label},`search_${D.key}`))]})}),T.jsx("div",{className:`manual-page-group-list manual-page-scroll ${_?"hide":""}`,children:it.map(D=>{var S;return T.jsxs(N.Fragment,{children:[T.jsx("div",{onClick:()=>s(D),className:"manual-page-group-title manual-page-group-t",children:c(D.key)}),T.jsx("div",{className:"manual-page-group-body manual-page-group-b manual-page-scroll hide",children:(S=ks[D.key])==null?void 0:S.map((R,U)=>{const K=`${D.prefix}_${R}`;return T.jsx("a",{onClick:H=>{H.preventDefault(),a(K,U)},className:"manual-page-group-body-item","data-href":K,href:`#${K}`,children:`${R}${D.prefix==="fun"?"()":""}`},K)})})]},D.key)})})]})]})},$y=({theme:a="vs-dark",language:s})=>{const{t:r,i18n:n}=Ws(),[o,l]=N.useState(),c=N.useRef(""),u=N.useRef(null),m=N.useRef(null),_=N.useRef(null),g=N.useRef(null),x=N.useRef(null),h=N.useRef(null),D=N.useRef(0),S=N.useRef({startTop:0,endTop:0,key:"var_bar_index",group:it[0],index:0}),R=q=>{var A;z(q),(A=u.current)==null||A.focus()};N.useEffect(()=>{var q;x.current||(U(),D.current=((q=_.current)==null?void 0:q.offsetTop)||0)},[]);const U=async()=>{const q={};for(const A of it){const L=A.key,Z=new Map;for(const ee of ks[L]){const ne=await Qn(nt[L].get(ee)||[],0);ne&&Z.set(ee,ne)}q[L]=Z}l(q)};N.useEffect(()=>{if(!x.current&&o){const q=window.location.hash;if(q){const A=q.replace(/^#/,""),[L]=A.split("_"),Z=it.find(ee=>ee.prefix===L);if(Z){z(Z),W(A,!0),setTimeout(()=>{const ee=document.getElementById(A);ee==null||ee.scrollIntoView(),ee==null||ee.classList.add("reference-item-selected")},10);return}}z(it[0]),setTimeout(()=>{V(it[0],"bar_index",0,92)},10)}},[o]),N.useEffect(()=>{Ne.editor.setTheme(a)},[a]),N.useEffect(()=>{s&&n.changeLanguage(s)},[s]),N.useEffect(()=>{var q;(q=u.current)==null||q.focus()},[u.current]);const K=(q,A,L)=>{var ne,Y,le,xe;if(q===c.current)return;L&&L.key!==((ne=x.current)==null?void 0:ne.key)&&z(L),W(q),window.location.href=`#${q}`;const[Z,ee]=H(q,A);S.current={startTop:Z,endTop:ee,group:L||x.current,index:A,key:q},(le=(Y=g.current)==null?void 0:Y.classList)==null||le.remove("manual-page-current-item-bg"),(xe=u.current)==null||xe.focus()},H=(q,A=0)=>{const L=document.getElementById(q),Z=(L==null?void 0:L.offsetHeight)||0,ee=A?0:78,ne=((L==null?void 0:L.offsetTop)||0)-72-D.current;return[ne-ee,ne+Z]},re=(q,A)=>{var L;q.key!==((L=x.current)==null?void 0:L.key)&&z(q),W(A,!0)},W=(q,A=!1)=>{var Z,ee,ne,Y;const L=(Z=m.current)==null?void 0:Z.querySelector(`a[data-href="${q}"]`);if(A&&(L==null||L.scrollIntoView({block:"nearest"})),(ee=document.getElementById(c.current))==null||ee.classList.remove("reference-item-selected"),(ne=document.getElementById(q))==null||ne.classList.add("reference-item-selected"),q===c.current){!(L!=null&&L.classList.contains("manual-page-group-body-item-selected"))&&(L==null||L.classList.add("manual-page-group-body-item-selected")),h.current=L;return}c.current=q,(Y=h.current)==null||Y.classList.remove("manual-page-group-body-item-selected"),L==null||L.classList.add("manual-page-group-body-item-selected"),h.current=L},Q=q=>{var L;const A=it.find(Z=>q.startsWith(Z.prefix));A&&(re(A,q),window.location.href=`#${q}`,(L=u.current)==null||L.focus())},C=N.useCallback(q=>{var Oe;const{startTop:A,endTop:L,index:Z,group:ee,key:ne}=S.current;let Y=L,le=A;Y||([le,Y]=H(ne,Z),S.current={startTop:le,endTop:Y,group:ee,index:Z,key:ne}),ee.key!==((Oe=x.current)==null?void 0:Oe.key)&&z(ee);const xe=q.currentTarget.scrollTop;if(xe>=le&&xe<Y)return;let pe=!1,_e=Z,Ee=ee.index,te=ks[ee.key],de=ee;if(xe>=Y)for(;!pe;){_e++;const Ge=te[_e];if(Ge)pe=V(de,Ge,_e,xe);else{if(Ee++,de=it[Ee],te=ks[de==null?void 0:de.key],!te){pe=!0;return}z(de),_e=-1}}else for(;!pe;)if(_e--,_e>=0){const Ge=te[_e];pe=V(de,Ge,_e,xe)}else{if(Ee--,Ee<0){pe=!0;return}de=it[Ee],z(de),te=ks[de==null?void 0:de.key],_e=te.length}},[]),z=q=>{var ne,Y,le,xe,pe,_e,Ee,te,de,Oe,Ge;const A=(ne=x.current)==null?void 0:ne.index,L=(Y=m.current)==null?void 0:Y.querySelectorAll(".manual-page-group-t"),Z=(le=m.current)==null?void 0:le.querySelectorAll(".manual-page-group-b"),ee=q.index;if((pe=(xe=Z==null?void 0:Z[A])==null?void 0:xe.classList)==null||pe.add("hide"),(Ee=(_e=L==null?void 0:L[A])==null?void 0:_e.classList)==null||Ee.remove("active"),A===ee){x.current=null;return}else(de=(te=L==null?void 0:L[ee])==null?void 0:te.classList)==null||de.add("active"),(Ge=(Oe=Z==null?void 0:Z[ee])==null?void 0:Oe.classList)==null||Ge.remove("hide"),x.current=q},V=(q,A,L,Z)=>{var le,xe,pe;const ee=`${q.prefix}_${A}`,[ne,Y]=H(ee,L);if(ne<=Z&&Z<Y){S.current={startTop:ne,endTop:Y,group:q,index:L,key:ee};const _e=(le=m.current)==null?void 0:le.querySelector(`a[data-href="${ee}"]`);return(pe=(xe=g.current)==null?void 0:xe.classList)==null||pe.remove("manual-page-current-item-bg"),g.current=_e,_e==null||_e.scrollIntoView({block:"nearest"}),_e==null||_e.classList.add("manual-page-current-item-bg"),!0}return!1};return T.jsxs("div",{ref:_,className:`${a} manual-page-warpper ${o?"show-warpper":""}`,children:[T.jsx(Uy,{onGroupClick:R,onItemClick:K,selectItem:c,manualTabRef:m,searchRef:u,selectedItemChange:W}),T.jsxs("div",{className:"manual-page-right",children:[T.jsx("div",{children:T.jsx("h1",{className:"manual-page-title",children:r("Mine Script® v1 Reference Manual")})}),T.jsx("div",{onScroll:C,className:"manual-page-scroll manual-page-scroll-none",children:it.map(q=>T.jsxs(N.Fragment,{children:[T.jsx("h2",{className:"manual-page-header",children:r(q.key)}),T.jsx("div",{children:ks[q.key].map(A=>{var L;return T.jsx(By,{item:nt[q.key].get(A)||[],value:(L=o==null?void 0:o[q.key])==null?void 0:L.get(A),prefix:q.prefix,onItemClick:Q},A)})})]},q.key))})]})]})};M.ReferenceManual=Fy,M.ReferenceManualPage=$y,M.TradingVueDiffEditor=by,M.TradingVueEditor=gy,M.parseLibrary=Om,M.parseTcc=ml,M.removeScript=Rm,M.scriptsRun=Pm,M.transformCodeToHtml=zl,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});
|