@guihz/trading-vue-editor-tes 0.1.6 → 0.1.7
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.
- package/lib/assets/{scriptsRunWorker-RM2NRIoU.js → scriptsRunWorker-DwpQi_P7.js} +5 -2
- package/lib/components/editor/v5/parseScript/buildInFuncNamespace/string.d.ts +1 -0
- package/lib/{index-S1gW0Mpf.js → index-DLIhM_y0.js} +1 -1
- package/lib/{monarchTokens-CMDv_iys.js → monarchTokens-D-73EVQs.js} +1 -1
- package/lib/trading-vue-editor.es.packages.js +332 -332
- package/lib/trading-vue-editor.umd.packages.mjs +13 -13
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
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 50%,#2962ff 0 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;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;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;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;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;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}.manual-left-bottom{padding:10px 0 10px 20px}.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 40px 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:40px;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:10px}.manual-page-group-container{height:0;flex:1;overflow:hidden}.vs-dark .manual-page-right{background:#141822}.manual-page-right{flex:1;width:0;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;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;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:6px 8px 6px 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 40px 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;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;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}.vs-dark .manual-page-left .manual-left-bottom{background:#141822}.manual-page-left .manual-left-bottom{padding:10px 0 10px 20px;background:#fff;border-radius:6px;margin-top:20px}.version-switcher-select-box{position:relative;width:fit-content}.vs-dark .version-switcher-select{border:1px solid #575757}.version-switcher-select{outline:none;-webkit-appearance:none;appearance:none;background-color:initial;border:1px solid #ebebeb;border-radius:6px;color:inherit;cursor:pointer;padding:5px 30px 5px 10px;height:32px;text-overflow:ellipsis}.vs-dark .version-switcher-select:hover{border-color:#707070}.version-switcher-select:hover{border-color:#a8a8a8}.vs-dark .reference-icon-caret svg{color:#707070}.reference-icon-caret svg{color:#8c8c8c;font-size:16px;inset-inline-end:4px;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.vs-dark .version-switcher-option{background-color:#2e2e2e;color:#ebebeb}.version-switcher-option{background-color:#f2f2f2;color:#2e2e2e}`)),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
2
|
-
import hn, { memo as ca, useState as Re, useRef as Ce, useCallback as En, useEffect as Oe, forwardRef as uf, useImperativeHandle as lf, createContext as qv, useContext as Yv, useMemo as Vv, Fragment as
|
2
|
+
import hn, { memo as ca, useState as Re, useRef as Ce, useCallback as En, useEffect as Oe, forwardRef as uf, useImperativeHandle as lf, createContext as qv, useContext as Yv, useMemo as Vv, Fragment as Ue } from "react";
|
3
3
|
import { languages as et, Position as Jv, editor as In, MarkerSeverity as Zv } from "monaco-editor";
|
4
4
|
import Xv from "react-dom";
|
5
5
|
var Kl;
|
@@ -35,14 +35,14 @@ function e_() {
|
|
35
35
|
Gl = 1;
|
36
36
|
var i = hn, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
37
37
|
function c(f, h, p) {
|
38
|
-
var v, b = {}, x = null,
|
39
|
-
p !== void 0 && (x = "" + p), h.key !== void 0 && (x = "" + h.key), h.ref !== void 0 && (
|
38
|
+
var v, b = {}, x = null, A = null;
|
39
|
+
p !== void 0 && (x = "" + p), h.key !== void 0 && (x = "" + h.key), h.ref !== void 0 && (A = h.ref);
|
40
40
|
for (v in h)
|
41
41
|
s.call(h, v) && !u.hasOwnProperty(v) && (b[v] = h[v]);
|
42
42
|
if (f && f.defaultProps)
|
43
43
|
for (v in h = f.defaultProps, h)
|
44
44
|
b[v] === void 0 && (b[v] = h[v]);
|
45
|
-
return { $$typeof: n, type: f, key: x, ref:
|
45
|
+
return { $$typeof: n, type: f, key: x, ref: A, props: b, _owner: a.current };
|
46
46
|
}
|
47
47
|
return qr.Fragment = r, qr.jsx = c, qr.jsxs = c, qr;
|
48
48
|
}
|
@@ -59,7 +59,7 @@ var Yr = {};
|
|
59
59
|
var ql;
|
60
60
|
function t_() {
|
61
61
|
return ql || (ql = 1, process.env.NODE_ENV !== "production" && function() {
|
62
|
-
var i = hn, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), x = Symbol.for("react.lazy"),
|
62
|
+
var i = hn, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), T = Symbol.iterator, F = "@@iterator";
|
63
63
|
function U(y) {
|
64
64
|
if (y === null || typeof y != "object")
|
65
65
|
return null;
|
@@ -84,10 +84,10 @@ function t_() {
|
|
84
84
|
ke.unshift("Warning: " + D), Function.prototype.apply.call(console[y], console, ke);
|
85
85
|
}
|
86
86
|
}
|
87
|
-
var B = !1, H = !1, M = !1,
|
87
|
+
var B = !1, H = !1, M = !1, I = !1, Y = !1, Z;
|
88
88
|
Z = Symbol.for("react.module.reference");
|
89
89
|
function X(y) {
|
90
|
-
return !!(typeof y == "string" || typeof y == "function" || y === s || y === u || Y || y === a || y === p || y === v ||
|
90
|
+
return !!(typeof y == "string" || typeof y == "function" || y === s || y === u || Y || y === a || y === p || y === v || I || y === A || B || H || M || typeof y == "object" && y !== null && (y.$$typeof === x || y.$$typeof === b || y.$$typeof === c || y.$$typeof === f || y.$$typeof === h || // This needs to include all possible module reference object
|
91
91
|
// types supported by any Flight configuration anywhere since
|
92
92
|
// we don't know which Flight build this will end up being used
|
93
93
|
// with.
|
@@ -149,9 +149,9 @@ function t_() {
|
|
149
149
|
return null;
|
150
150
|
}
|
151
151
|
var ne = Object.assign, q = 0, ie, j, V, he, Ae, fe, De;
|
152
|
-
function
|
152
|
+
function Ge() {
|
153
153
|
}
|
154
|
-
|
154
|
+
Ge.__reactDisabledLog = !0;
|
155
155
|
function at() {
|
156
156
|
{
|
157
157
|
if (q === 0) {
|
@@ -159,7 +159,7 @@ function t_() {
|
|
159
159
|
var y = {
|
160
160
|
configurable: !0,
|
161
161
|
enumerable: !0,
|
162
|
-
value:
|
162
|
+
value: Ge,
|
163
163
|
writable: !0
|
164
164
|
};
|
165
165
|
Object.defineProperties(console, {
|
@@ -279,18 +279,18 @@ function t_() {
|
|
279
279
|
if (dt && ae && typeof dt.stack == "string") {
|
280
280
|
for (var ve = dt.stack.split(`
|
281
281
|
`), tt = ae.stack.split(`
|
282
|
-
`), je = ve.length - 1,
|
283
|
-
|
284
|
-
for (; je >= 1 &&
|
285
|
-
if (ve[je] !== tt[
|
286
|
-
if (je !== 1 ||
|
282
|
+
`), je = ve.length - 1, He = tt.length - 1; je >= 1 && He >= 0 && ve[je] !== tt[He]; )
|
283
|
+
He--;
|
284
|
+
for (; je >= 1 && He >= 0; je--, He--)
|
285
|
+
if (ve[je] !== tt[He]) {
|
286
|
+
if (je !== 1 || He !== 1)
|
287
287
|
do
|
288
|
-
if (je--,
|
288
|
+
if (je--, He--, He < 0 || ve[je] !== tt[He]) {
|
289
289
|
var ft = `
|
290
290
|
` + ve[je].replace(" at new ", " at ");
|
291
291
|
return y.displayName && ft.includes("<anonymous>") && (ft = ft.replace("<anonymous>", y.displayName)), typeof y == "function" && Gn.set(y, ft), ft;
|
292
292
|
}
|
293
|
-
while (je >= 1 &&
|
293
|
+
while (je >= 1 && He >= 0);
|
294
294
|
break;
|
295
295
|
}
|
296
296
|
}
|
@@ -479,8 +479,8 @@ function t_() {
|
|
479
479
|
be[ke] === void 0 && (be[ke] = je[ke]);
|
480
480
|
}
|
481
481
|
if (ve || tt) {
|
482
|
-
var
|
483
|
-
ve && Sr(be,
|
482
|
+
var He = typeof y == "function" ? y.displayName || y.name || "Unknown" : y;
|
483
|
+
ve && Sr(be, He), tt && Or(be, He);
|
484
484
|
}
|
485
485
|
return Er(y, ve, tt, Se, ae, Dt.current, be);
|
486
486
|
}
|
@@ -614,9 +614,9 @@ Check the top-level render call using <` + K + ">.");
|
|
614
614
|
var je;
|
615
615
|
y === null ? je = "null" : en(y) ? je = "array" : y !== void 0 && y.$$typeof === n ? (je = "<" + (z(y.type) || "Unknown") + " />", ve = " Did you accidentally export a JSX literal instead of a component?") : je = typeof y, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", je, ve);
|
616
616
|
}
|
617
|
-
var
|
618
|
-
if (
|
619
|
-
return
|
617
|
+
var He = Ao(y, D, K, Se, ke);
|
618
|
+
if (He == null)
|
619
|
+
return He;
|
620
620
|
if (be) {
|
621
621
|
var ft = D.children;
|
622
622
|
if (ft !== void 0)
|
@@ -630,7 +630,7 @@ Check the top-level render call using <` + K + ">.");
|
|
630
630
|
else
|
631
631
|
gi(ft, y);
|
632
632
|
}
|
633
|
-
return y === s ? kr(
|
633
|
+
return y === s ? kr(He) : Lo(He), He;
|
634
634
|
}
|
635
635
|
}
|
636
636
|
function Lr(y, D, K) {
|
@@ -1067,45 +1067,45 @@ function Q_(i, n, r, s) {
|
|
1067
1067
|
function mf(i, n) {
|
1068
1068
|
return i.Uri.parse(n);
|
1069
1069
|
}
|
1070
|
-
function eb({ original: i, modified: n, language: r, originalLanguage: s, modifiedLanguage: a, originalModelPath: u, modifiedModelPath: c, keepCurrentOriginalModel: f = !1, keepCurrentModifiedModel: h = !1, theme: p = "light", loading: v = "Loading...", options: b = {}, height: x = "100%", width:
|
1071
|
-
let [k, Q] = Re(!1), [B, H] = Re(!0), M = Ce(null),
|
1070
|
+
function eb({ original: i, modified: n, language: r, originalLanguage: s, modifiedLanguage: a, originalModelPath: u, modifiedModelPath: c, keepCurrentOriginalModel: f = !1, keepCurrentModifiedModel: h = !1, theme: p = "light", loading: v = "Loading...", options: b = {}, height: x = "100%", width: A = "100%", className: T, wrapperProps: F = {}, beforeMount: U = ti, onMount: W = ti }) {
|
1071
|
+
let [k, Q] = Re(!1), [B, H] = Re(!0), M = Ce(null), I = Ce(null), Y = Ce(null), Z = Ce(W), X = Ce(U), te = Ce(!1);
|
1072
1072
|
pf(() => {
|
1073
1073
|
let q = fa.init();
|
1074
|
-
return q.then((ie) => (
|
1074
|
+
return q.then((ie) => (I.current = ie) && H(!1)).catch((ie) => ie?.type !== "cancelation" && console.error("Monaco initialization: error:", ie)), () => M.current ? ne() : q.cancel();
|
1075
1075
|
}), It(() => {
|
1076
|
-
if (M.current &&
|
1077
|
-
let q = M.current.getOriginalEditor(), ie = vr(
|
1076
|
+
if (M.current && I.current) {
|
1077
|
+
let q = M.current.getOriginalEditor(), ie = vr(I.current, i || "", s || r || "text", u || "");
|
1078
1078
|
ie !== q.getModel() && q.setModel(ie);
|
1079
1079
|
}
|
1080
1080
|
}, [u], k), It(() => {
|
1081
|
-
if (M.current &&
|
1082
|
-
let q = M.current.getModifiedEditor(), ie = vr(
|
1081
|
+
if (M.current && I.current) {
|
1082
|
+
let q = M.current.getModifiedEditor(), ie = vr(I.current, n || "", a || r || "text", c || "");
|
1083
1083
|
ie !== q.getModel() && q.setModel(ie);
|
1084
1084
|
}
|
1085
1085
|
}, [c], k), It(() => {
|
1086
1086
|
let q = M.current.getModifiedEditor();
|
1087
|
-
q.getOption(
|
1087
|
+
q.getOption(I.current.editor.EditorOption.readOnly) ? q.setValue(n || "") : n !== q.getValue() && (q.executeEdits("", [{ range: q.getModel().getFullModelRange(), text: n || "", forceMoveMarkers: !0 }]), q.pushUndoStop());
|
1088
1088
|
}, [n], k), It(() => {
|
1089
1089
|
M.current?.getModel()?.original.setValue(i || "");
|
1090
1090
|
}, [i], k), It(() => {
|
1091
1091
|
let { original: q, modified: ie } = M.current.getModel();
|
1092
|
-
|
1092
|
+
I.current.editor.setModelLanguage(q, s || r || "text"), I.current.editor.setModelLanguage(ie, a || r || "text");
|
1093
1093
|
}, [r, s, a], k), It(() => {
|
1094
|
-
|
1094
|
+
I.current?.editor.setTheme(p);
|
1095
1095
|
}, [p], k), It(() => {
|
1096
1096
|
M.current?.updateOptions(b);
|
1097
1097
|
}, [b], k);
|
1098
1098
|
let xe = En(() => {
|
1099
|
-
if (!
|
1099
|
+
if (!I.current)
|
1100
1100
|
return;
|
1101
|
-
X.current(
|
1102
|
-
let q = vr(
|
1101
|
+
X.current(I.current);
|
1102
|
+
let q = vr(I.current, i || "", s || r || "text", u || ""), ie = vr(I.current, n || "", a || r || "text", c || "");
|
1103
1103
|
M.current?.setModel({ original: q, modified: ie });
|
1104
1104
|
}, [r, n, a, i, s, u, c]), z = En(() => {
|
1105
|
-
!te.current && Y.current && (M.current =
|
1105
|
+
!te.current && Y.current && (M.current = I.current.editor.createDiffEditor(Y.current, { automaticLayout: !0, ...b }), xe(), I.current?.editor.setTheme(p), Q(!0), te.current = !0);
|
1106
1106
|
}, [b, p, xe]);
|
1107
1107
|
Oe(() => {
|
1108
|
-
k && Z.current(M.current,
|
1108
|
+
k && Z.current(M.current, I.current);
|
1109
1109
|
}, [k]), Oe(() => {
|
1110
1110
|
!B && !k && z();
|
1111
1111
|
}, [B, k, z]);
|
@@ -1113,7 +1113,7 @@ function eb({ original: i, modified: n, language: r, originalLanguage: s, modifi
|
|
1113
1113
|
let q = M.current?.getModel();
|
1114
1114
|
f || q?.original?.dispose(), h || q?.modified?.dispose(), M.current?.dispose();
|
1115
1115
|
}
|
1116
|
-
return hn.createElement(gf, { width:
|
1116
|
+
return hn.createElement(gf, { width: A, height: x, isEditorReady: k, loading: v, _ref: Y, className: T, wrapperProps: F });
|
1117
1117
|
}
|
1118
1118
|
var tb = eb, nb = ca(tb);
|
1119
1119
|
function rb(i) {
|
@@ -1123,8 +1123,8 @@ function rb(i) {
|
|
1123
1123
|
}, [i]), n.current;
|
1124
1124
|
}
|
1125
1125
|
var ib = rb, io = /* @__PURE__ */ new Map();
|
1126
|
-
function ob({ defaultValue: i, defaultLanguage: n, defaultPath: r, value: s, language: a, path: u, theme: c = "light", line: f, loading: h = "Loading...", options: p = {}, overrideServices: v = {}, saveViewState: b = !0, keepCurrentModel: x = !1, width:
|
1127
|
-
let [H, M] = Re(!1), [
|
1126
|
+
function ob({ defaultValue: i, defaultLanguage: n, defaultPath: r, value: s, language: a, path: u, theme: c = "light", line: f, loading: h = "Loading...", options: p = {}, overrideServices: v = {}, saveViewState: b = !0, keepCurrentModel: x = !1, width: A = "100%", height: T = "100%", className: F, wrapperProps: U = {}, beforeMount: W = ti, onMount: k = ti, onChange: Q, onValidate: B = ti }) {
|
1127
|
+
let [H, M] = Re(!1), [I, Y] = Re(!0), Z = Ce(null), X = Ce(null), te = Ce(null), xe = Ce(k), z = Ce(W), ne = Ce(), q = Ce(s), ie = ib(u), j = Ce(!1), V = Ce(!1);
|
1128
1128
|
pf(() => {
|
1129
1129
|
let fe = fa.init();
|
1130
1130
|
return fe.then((De) => (Z.current = De) && Y(!1)).catch((De) => De?.type !== "cancelation" && console.error("Monaco initialization: error:", De)), () => X.current ? Ae() : fe.cancel();
|
@@ -1153,17 +1153,17 @@ function ob({ defaultValue: i, defaultLanguage: n, defaultPath: r, value: s, lan
|
|
1153
1153
|
Oe(() => {
|
1154
1154
|
H && xe.current(X.current, Z.current);
|
1155
1155
|
}, [H]), Oe(() => {
|
1156
|
-
!
|
1157
|
-
}, [
|
1156
|
+
!I && !H && he();
|
1157
|
+
}, [I, H, he]), q.current = s, Oe(() => {
|
1158
1158
|
H && Q && (ne.current?.dispose(), ne.current = X.current?.onDidChangeModelContent((fe) => {
|
1159
1159
|
V.current || Q(X.current.getValue(), fe);
|
1160
1160
|
}));
|
1161
1161
|
}, [H, Q]), Oe(() => {
|
1162
1162
|
if (H) {
|
1163
1163
|
let fe = Z.current.editor.onDidChangeMarkers((De) => {
|
1164
|
-
let
|
1165
|
-
if (
|
1166
|
-
let at = Z.current.editor.getModelMarkers({ resource:
|
1164
|
+
let Ge = X.current.getModel()?.uri;
|
1165
|
+
if (Ge && De.find((at) => at.path === Ge.path)) {
|
1166
|
+
let at = Z.current.editor.getModelMarkers({ resource: Ge });
|
1167
1167
|
B?.(at);
|
1168
1168
|
}
|
1169
1169
|
});
|
@@ -1177,7 +1177,7 @@ function ob({ defaultValue: i, defaultLanguage: n, defaultPath: r, value: s, lan
|
|
1177
1177
|
function Ae() {
|
1178
1178
|
ne.current?.dispose(), x ? b && io.set(u, X.current.saveViewState()) : X.current.getModel()?.dispose(), X.current.dispose();
|
1179
1179
|
}
|
1180
|
-
return hn.createElement(gf, { width:
|
1180
|
+
return hn.createElement(gf, { width: A, height: T, isEditorReady: H, loading: h, _ref: te, className: F, wrapperProps: U });
|
1181
1181
|
}
|
1182
1182
|
var sb = ob, ab = ca(sb);
|
1183
1183
|
const Ie = {
|
@@ -1578,26 +1578,26 @@ class mo extends So {
|
|
1578
1578
|
}
|
1579
1579
|
const b = this.resolve(n, r);
|
1580
1580
|
let x = b && b.res;
|
1581
|
-
const
|
1581
|
+
const A = b && b.usedKey || c, T = b && b.exactUsedKey || c, F = Object.prototype.toString.apply(x), U = ["[object Number]", "[object Function]", "[object RegExp]"], W = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, k = !this.i18nFormat || this.i18nFormat.handleAsObject, Q = !ue(x) && typeof x != "boolean" && typeof x != "number";
|
1582
1582
|
if (k && x && Q && U.indexOf(F) < 0 && !(ue(W) && Array.isArray(x))) {
|
1583
1583
|
if (!r.returnObjects && !this.options.returnObjects) {
|
1584
1584
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
1585
|
-
const B = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(
|
1585
|
+
const B = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(A, x, {
|
1586
1586
|
...r,
|
1587
1587
|
ns: f
|
1588
1588
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
1589
1589
|
return a ? (b.res = B, b.usedParams = this.getUsedParamsDetails(r), b) : B;
|
1590
1590
|
}
|
1591
1591
|
if (u) {
|
1592
|
-
const B = Array.isArray(x), H = B ? [] : {}, M = B ? T :
|
1593
|
-
for (const
|
1594
|
-
if (Object.prototype.hasOwnProperty.call(x,
|
1595
|
-
const Y = `${M}${u}${
|
1596
|
-
H[
|
1592
|
+
const B = Array.isArray(x), H = B ? [] : {}, M = B ? T : A;
|
1593
|
+
for (const I in x)
|
1594
|
+
if (Object.prototype.hasOwnProperty.call(x, I)) {
|
1595
|
+
const Y = `${M}${u}${I}`;
|
1596
|
+
H[I] = this.translate(Y, {
|
1597
1597
|
...r,
|
1598
1598
|
joinArrays: !1,
|
1599
1599
|
ns: f
|
1600
|
-
}), H[
|
1600
|
+
}), H[I] === Y && (H[I] = x[I]);
|
1601
1601
|
}
|
1602
1602
|
x = H;
|
1603
1603
|
}
|
@@ -1605,11 +1605,11 @@ class mo extends So {
|
|
1605
1605
|
x = x.join(W), x && (x = this.extendTranslation(x, n, r, s));
|
1606
1606
|
else {
|
1607
1607
|
let B = !1, H = !1;
|
1608
|
-
const M = r.count !== void 0 && !ue(r.count),
|
1608
|
+
const M = r.count !== void 0 && !ue(r.count), I = mo.hasDefaultValue(r), Y = M ? this.pluralResolver.getSuffix(p, r.count, r) : "", Z = r.ordinal && M ? this.pluralResolver.getSuffix(p, r.count, {
|
1609
1609
|
ordinal: !1
|
1610
1610
|
}) : "", X = M && !r.ordinal && r.count === 0 && this.pluralResolver.shouldUseIntlApi(), te = X && r[`defaultValue${this.options.pluralSeparator}zero`] || r[`defaultValue${Y}`] || r[`defaultValue${Z}`] || r.defaultValue;
|
1611
|
-
!this.isValidLookup(x) &&
|
1612
|
-
const z = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : x, ne =
|
1611
|
+
!this.isValidLookup(x) && I && (B = !0, x = te), this.isValidLookup(x) || (H = !0, x = c);
|
1612
|
+
const z = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : x, ne = I && te !== x && this.options.updateMissing;
|
1613
1613
|
if (H || B || ne) {
|
1614
1614
|
if (this.logger.log(ne ? "updateKey" : "missingKey", p, h, c, ne ? te : x), u) {
|
1615
1615
|
const V = this.resolve(c, {
|
@@ -1626,7 +1626,7 @@ class mo extends So {
|
|
1626
1626
|
else
|
1627
1627
|
this.options.saveMissingTo === "all" ? q = this.languageUtils.toResolveHierarchy(r.lng || this.language) : q.push(r.lng || this.language);
|
1628
1628
|
const j = (V, he, Ae) => {
|
1629
|
-
const fe =
|
1629
|
+
const fe = I && Ae !== x ? Ae : z;
|
1630
1630
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(V, h, he, fe, ne, r) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(V, h, he, fe, ne, r), this.emit("missingKey", V, h, he, x);
|
1631
1631
|
};
|
1632
1632
|
this.options.saveMissing && (this.options.saveMissingPlurals && M ? q.forEach((V) => {
|
@@ -1668,13 +1668,13 @@ class mo extends So {
|
|
1668
1668
|
...this.options.interpolation.defaultVariables,
|
1669
1669
|
...b
|
1670
1670
|
}), n = this.interpolator.interpolate(n, b, s.lng || this.language || a.usedLng, s), p) {
|
1671
|
-
const x = n.match(this.interpolator.nestingRegexp),
|
1672
|
-
v <
|
1671
|
+
const x = n.match(this.interpolator.nestingRegexp), A = x && x.length;
|
1672
|
+
v < A && (s.nest = !1);
|
1673
1673
|
}
|
1674
1674
|
!s.lng && this.options.compatibilityAPI !== "v1" && a && a.res && (s.lng = this.language || a.usedLng), s.nest !== !1 && (n = this.interpolator.nest(n, function() {
|
1675
|
-
for (var x = arguments.length,
|
1676
|
-
|
1677
|
-
return u && u[0] ===
|
1675
|
+
for (var x = arguments.length, A = new Array(x), T = 0; T < x; T++)
|
1676
|
+
A[T] = arguments[T];
|
1677
|
+
return u && u[0] === A[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${r[0]}`), null) : c.translate(...A, r);
|
1678
1678
|
}, s)), s.interpolation && this.interpolator.reset();
|
1679
1679
|
}
|
1680
1680
|
const f = s.postProcess || this.options.postProcess, h = ue(f) ? [f] : f;
|
@@ -1695,7 +1695,7 @@ class mo extends So {
|
|
1695
1695
|
a = v;
|
1696
1696
|
let b = p.namespaces;
|
1697
1697
|
this.options.fallbackNS && (b = b.concat(this.options.fallbackNS));
|
1698
|
-
const x = r.count !== void 0 && !ue(r.count),
|
1698
|
+
const x = r.count !== void 0 && !ue(r.count), A = x && !r.ordinal && r.count === 0 && this.pluralResolver.shouldUseIntlApi(), T = r.context !== void 0 && (ue(r.context) || typeof r.context == "number") && r.context !== "", F = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
|
1699
1699
|
b.forEach((U) => {
|
1700
1700
|
this.isValidLookup(s) || (f = U, !oc[`${F[0]}-${U}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(f) && (oc[`${F[0]}-${U}`] = !0, this.logger.warn(`key "${a}" for languages "${F.join(", ")}" won't get resolved as namespace "${f}" 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!!!")), F.forEach((W) => {
|
1701
1701
|
if (this.isValidLookup(s))
|
@@ -1708,9 +1708,9 @@ class mo extends So {
|
|
1708
1708
|
let B;
|
1709
1709
|
x && (B = this.pluralResolver.getSuffix(W, r.count, r));
|
1710
1710
|
const H = `${this.options.pluralSeparator}zero`, M = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
1711
|
-
if (x && (k.push(v + B), r.ordinal && B.indexOf(M) === 0 && k.push(v + B.replace(M, this.options.pluralSeparator)),
|
1712
|
-
const
|
1713
|
-
k.push(
|
1711
|
+
if (x && (k.push(v + B), r.ordinal && B.indexOf(M) === 0 && k.push(v + B.replace(M, this.options.pluralSeparator)), A && k.push(v + H)), T) {
|
1712
|
+
const I = `${v}${this.options.contextSeparator}${r.context}`;
|
1713
|
+
k.push(I), x && (k.push(I + B), r.ordinal && B.indexOf(M) === 0 && k.push(I + B.replace(M, this.options.pluralSeparator)), A && k.push(I + H));
|
1714
1714
|
}
|
1715
1715
|
}
|
1716
1716
|
let Q;
|
@@ -2054,14 +2054,14 @@ class Ib {
|
|
2054
2054
|
unescapeSuffix: v,
|
2055
2055
|
unescapePrefix: b,
|
2056
2056
|
nestingPrefix: x,
|
2057
|
-
nestingPrefixEscaped:
|
2057
|
+
nestingPrefixEscaped: A,
|
2058
2058
|
nestingSuffix: T,
|
2059
2059
|
nestingSuffixEscaped: F,
|
2060
2060
|
nestingOptionsSeparator: U,
|
2061
2061
|
maxReplaces: W,
|
2062
2062
|
alwaysFormat: k
|
2063
2063
|
} = n.interpolation;
|
2064
|
-
this.escape = r !== void 0 ? r : pb, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = u ? gr(u) : c || "{{", this.suffix = f ? gr(f) : h || "}}", this.formatSeparator = p || ",", this.unescapePrefix = v ? "" : b || "-", this.unescapeSuffix = this.unescapePrefix ? "" : v || "", this.nestingPrefix = x ? gr(x) :
|
2064
|
+
this.escape = r !== void 0 ? r : pb, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = u ? gr(u) : c || "{{", this.suffix = f ? gr(f) : h || "}}", this.formatSeparator = p || ",", this.unescapePrefix = v ? "" : b || "-", this.unescapeSuffix = this.unescapePrefix ? "" : v || "", this.nestingPrefix = x ? gr(x) : A || gr("$t("), this.nestingSuffix = T ? gr(T) : F || gr(")"), this.nestingOptionsSeparator = U || ",", this.maxReplaces = W || 1e3, this.alwaysFormat = k !== void 0 ? k : !1, this.resetRegExp();
|
2065
2065
|
}
|
2066
2066
|
reset() {
|
2067
2067
|
this.options && this.init(this.options);
|
@@ -2072,16 +2072,16 @@ class Ib {
|
|
2072
2072
|
}
|
2073
2073
|
interpolate(n, r, s, a) {
|
2074
2074
|
let u, c, f;
|
2075
|
-
const h = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, p = (
|
2076
|
-
if (
|
2077
|
-
const W = uc(r, h,
|
2075
|
+
const h = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, p = (A) => {
|
2076
|
+
if (A.indexOf(this.formatSeparator) < 0) {
|
2077
|
+
const W = uc(r, h, A, this.options.keySeparator, this.options.ignoreJSONStructure);
|
2078
2078
|
return this.alwaysFormat ? this.format(W, void 0, s, {
|
2079
2079
|
...a,
|
2080
2080
|
...r,
|
2081
|
-
interpolationkey:
|
2081
|
+
interpolationkey: A
|
2082
2082
|
}) : W;
|
2083
2083
|
}
|
2084
|
-
const T =
|
2084
|
+
const T = A.split(this.formatSeparator), F = T.shift().trim(), U = T.join(this.formatSeparator).trim();
|
2085
2085
|
return this.format(uc(r, h, F, this.options.keySeparator, this.options.ignoreJSONStructure), U, s, {
|
2086
2086
|
...a,
|
2087
2087
|
...r,
|
@@ -2092,12 +2092,12 @@ class Ib {
|
|
2092
2092
|
const v = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, b = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
2093
2093
|
return [{
|
2094
2094
|
regex: this.regexpUnescape,
|
2095
|
-
safeValue: (
|
2095
|
+
safeValue: (A) => Ys(A)
|
2096
2096
|
}, {
|
2097
2097
|
regex: this.regexp,
|
2098
|
-
safeValue: (
|
2099
|
-
}].forEach((
|
2100
|
-
for (f = 0; u =
|
2098
|
+
safeValue: (A) => this.escapeValue ? Ys(this.escape(A)) : Ys(A)
|
2099
|
+
}].forEach((A) => {
|
2100
|
+
for (f = 0; u = A.regex.exec(n); ) {
|
2101
2101
|
const T = u[1].trim();
|
2102
2102
|
if (c = p(T), c === void 0)
|
2103
2103
|
if (typeof v == "function") {
|
@@ -2112,8 +2112,8 @@ class Ib {
|
|
2112
2112
|
this.logger.warn(`missed to pass in variable ${T} for interpolating ${n}`), c = "";
|
2113
2113
|
else
|
2114
2114
|
!ue(c) && !this.useRawValueToEscape && (c = ec(c));
|
2115
|
-
const F =
|
2116
|
-
if (n = n.replace(u[0], F), b ? (
|
2115
|
+
const F = A.safeValue(c);
|
2116
|
+
if (n = n.replace(u[0], F), b ? (A.regex.lastIndex += c.length, A.regex.lastIndex -= u[0].length) : A.regex.lastIndex = 0, f++, f >= this.maxReplaces)
|
2117
2117
|
break;
|
2118
2118
|
}
|
2119
2119
|
}), n;
|
@@ -2127,8 +2127,8 @@ class Ib {
|
|
2127
2127
|
const b = h.split(new RegExp(`${v}[ ]*{`));
|
2128
2128
|
let x = `{${b[1]}`;
|
2129
2129
|
h = b[0], x = this.interpolate(x, c);
|
2130
|
-
const
|
2131
|
-
(
|
2130
|
+
const A = x.match(/'/g), T = x.match(/"/g);
|
2131
|
+
(A && A.length % 2 === 0 && !T || T.length % 2 !== 0) && (x = x.replace(/'/g, '"'));
|
2132
2132
|
try {
|
2133
2133
|
c = JSON.parse(x), p && (c = {
|
2134
2134
|
...p,
|
@@ -2254,8 +2254,8 @@ class kb {
|
|
2254
2254
|
if (this.formats[p]) {
|
2255
2255
|
let b = f;
|
2256
2256
|
try {
|
2257
|
-
const x = a && a.formatParams && a.formatParams[a.interpolationkey] || {},
|
2258
|
-
b = this.formats[p](f,
|
2257
|
+
const x = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, A = x.locale || x.lng || a.locale || a.lng || s;
|
2258
|
+
b = this.formats[p](f, A, {
|
2259
2259
|
...v,
|
2260
2260
|
...a,
|
2261
2261
|
...x
|
@@ -2511,16 +2511,16 @@ class ii extends So {
|
|
2511
2511
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
2512
2512
|
}), v && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (x.formatter = u(v), x.formatter.init(x, this.options), this.options.interpolation.format = x.formatter.format.bind(x.formatter)), x.interpolator = new Ib(this.options), x.utils = {
|
2513
2513
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
2514
|
-
}, x.backendConnector = new Tb(u(this.modules.backend), x.resourceStore, x, this.options), x.backendConnector.on("*", function(
|
2514
|
+
}, x.backendConnector = new Tb(u(this.modules.backend), x.resourceStore, x, this.options), x.backendConnector.on("*", function(A) {
|
2515
2515
|
for (var T = arguments.length, F = new Array(T > 1 ? T - 1 : 0), U = 1; U < T; U++)
|
2516
2516
|
F[U - 1] = arguments[U];
|
2517
|
-
n.emit(
|
2518
|
-
}), this.modules.languageDetector && (x.languageDetector = u(this.modules.languageDetector), x.languageDetector.init && x.languageDetector.init(x, this.options.detection, this.options)), this.modules.i18nFormat && (x.i18nFormat = u(this.modules.i18nFormat), x.i18nFormat.init && x.i18nFormat.init(this)), this.translator = new mo(this.services, this.options), this.translator.on("*", function(
|
2517
|
+
n.emit(A, ...F);
|
2518
|
+
}), this.modules.languageDetector && (x.languageDetector = u(this.modules.languageDetector), x.languageDetector.init && x.languageDetector.init(x, this.options.detection, this.options)), this.modules.i18nFormat && (x.i18nFormat = u(this.modules.i18nFormat), x.i18nFormat.init && x.i18nFormat.init(this)), this.translator = new mo(this.services, this.options), this.translator.on("*", function(A) {
|
2519
2519
|
for (var T = arguments.length, F = new Array(T > 1 ? T - 1 : 0), U = 1; U < T; U++)
|
2520
2520
|
F[U - 1] = arguments[U];
|
2521
|
-
n.emit(
|
2522
|
-
}), this.modules.external.forEach((
|
2523
|
-
|
2521
|
+
n.emit(A, ...F);
|
2522
|
+
}), this.modules.external.forEach((A) => {
|
2523
|
+
A.init && A.init(this);
|
2524
2524
|
});
|
2525
2525
|
}
|
2526
2526
|
if (this.format = this.options.interpolation.format, s || (s = oo), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
@@ -2624,8 +2624,8 @@ class ii extends So {
|
|
2624
2624
|
};
|
2625
2625
|
h.lng = h.lng || u.lng, h.lngs = h.lngs || u.lngs, h.ns = h.ns || u.ns, h.keyPrefix !== "" && (h.keyPrefix = h.keyPrefix || s || u.keyPrefix);
|
2626
2626
|
const x = a.options.keySeparator || ".";
|
2627
|
-
let
|
2628
|
-
return h.keyPrefix && Array.isArray(c) ?
|
2627
|
+
let A;
|
2628
|
+
return h.keyPrefix && Array.isArray(c) ? A = c.map((T) => `${h.keyPrefix}${x}${T}`) : A = h.keyPrefix ? `${h.keyPrefix}${x}${c}` : c, a.t(A, h);
|
2629
2629
|
};
|
2630
2630
|
return ue(n) ? u.lng = n : u.lngs = n, u.ns = r, u.keyPrefix = s, u;
|
2631
2631
|
}
|
@@ -2791,7 +2791,7 @@ function $b(i, n = 0, r = !0) {
|
|
2791
2791
|
return "";
|
2792
2792
|
if (s.isEnumMember)
|
2793
2793
|
return `${pe.bold(s.name)} (${Ft("enum member")})${s.value === void 0 ? "" : ` = ${s.value}`}`;
|
2794
|
-
const a = /(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent), { name: u, title: c = "", desc: f, type: h, syntax: p, returns: v, remarks: b, fields: x, members:
|
2794
|
+
const a = /(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent), { name: u, title: c = "", desc: f, type: h, syntax: p, returns: v, remarks: b, fields: x, members: A } = s, T = [`${pe.bold(u)} (${Ft(c)})`];
|
2795
2795
|
if (i.length > 1 && T.push(pe.italic(`+${i.length - 1} ${Ft("overloads")}`)), T.push(pe.delimiter), f && T.push(pe.paragraph(Array.isArray(f) ? f.join(pe.lineBreak) : f || "")), h && T.push(pe.paragraph(pe.bold(Ft(vt.Type)), pe.italic(h))), p && p.length && T.push(pe.paragraph(pe.bold(Ft(vt.Syntax)), pe.pineCode(p.join(pe.lineBreak)))), v && T.push(pe.paragraph(pe.bold(Ft(vt.Returns)), pe.lineBreak, v.join(pe.lineBreak))), b && b.length && i.length <= 1) {
|
2796
2796
|
let F = "";
|
2797
2797
|
typeof b == "string" ? F = b : F = b.join(pe.lineBreak) || "", F.length < 200 && T.push(pe.paragraph(pe.bold(Ft(vt.Remarks)), pe.lineBreak, F));
|
@@ -2804,9 +2804,9 @@ function $b(i, n = 0, r = !0) {
|
|
2804
2804
|
}
|
2805
2805
|
T.push(pe.paragraph(pe.bold(Ft(vt.Fields)), pe.lineBreak, F.join(pe.paragraphBreak)));
|
2806
2806
|
}
|
2807
|
-
if (
|
2807
|
+
if (A) {
|
2808
2808
|
const F = [];
|
2809
|
-
for (const U of
|
2809
|
+
for (const U of A) {
|
2810
2810
|
const W = U.desc ? ` - ${U.desc}` : "";
|
2811
2811
|
F.push(`${U.name}${U.value ? ` (${U.value})` : ""}${W}`);
|
2812
2812
|
}
|
@@ -2833,7 +2833,7 @@ async function An(i = Kt) {
|
|
2833
2833
|
case 4:
|
2834
2834
|
return await import("./index-CjECfhIW.js");
|
2835
2835
|
case 5:
|
2836
|
-
return await import("./index-
|
2836
|
+
return await import("./index-DLIhM_y0.js");
|
2837
2837
|
}
|
2838
2838
|
}
|
2839
2839
|
async function Oo(i = Kt) {
|
@@ -2843,10 +2843,10 @@ async function Oo(i = Kt) {
|
|
2843
2843
|
case 4:
|
2844
2844
|
return await import("./monarchTokens-Cj3v8l0Q.js");
|
2845
2845
|
case 5:
|
2846
|
-
return await import("./monarchTokens-
|
2846
|
+
return await import("./monarchTokens-D-73EVQs.js");
|
2847
2847
|
}
|
2848
2848
|
}
|
2849
|
-
const { t:
|
2849
|
+
const { t: ze } = Me;
|
2850
2850
|
class Bb {
|
2851
2851
|
constructor() {
|
2852
2852
|
Object.defineProperty(this, "bracketsPostfix", {
|
@@ -3026,16 +3026,16 @@ class Bb {
|
|
3026
3026
|
return s;
|
3027
3027
|
for (const [a, u] of n) {
|
3028
3028
|
const [c, ...f] = a.split("."), h = f.length > 0, p = s.get(this._getNodeKey(c, h ? "ns" : r));
|
3029
|
-
let v = /* @__PURE__ */ new Map(), b = u.map((
|
3030
|
-
...
|
3029
|
+
let v = /* @__PURE__ */ new Map(), b = u.map((A) => ({
|
3030
|
+
...A,
|
3031
3031
|
name: a
|
3032
3032
|
})), x = this._getNodeKey(a, r);
|
3033
3033
|
if (h && r !== "type") {
|
3034
|
-
const
|
3034
|
+
const A = /* @__PURE__ */ new Map([[f.join("."), u]]);
|
3035
3035
|
b = [{
|
3036
3036
|
name: c,
|
3037
3037
|
title: Ie.namespace
|
3038
|
-
}], x = this._getNodeKey(c, "ns"), v = this._generateTreeSlice(
|
3038
|
+
}], x = this._getNodeKey(c, "ns"), v = this._generateTreeSlice(A, r);
|
3039
3039
|
}
|
3040
3040
|
p && (b = [{
|
3041
3041
|
name: c,
|
@@ -3086,10 +3086,10 @@ class Bb {
|
|
3086
3086
|
let s = [];
|
3087
3087
|
const a = Db(n.type || ""), u = this._methodNamespaceCache.get(a), c = r ? `${r}.${n.name}` : n.name;
|
3088
3088
|
u && (s = u.filter((p) => {
|
3089
|
-
const v = `${a}.${p.label}`, b = this._keyMaps.methods?.get(v) || this._userMethods.get(v), x = b?.some((
|
3089
|
+
const v = `${a}.${p.label}`, b = this._keyMaps.methods?.get(v) || this._userMethods.get(v), x = b?.some((A) => !A.thisType || A.thisType[0].includes("<>") || A.thisType.includes(n.type || ""));
|
3090
3090
|
if (x && b) {
|
3091
|
-
const
|
3092
|
-
this._userFuncArgsCache.set(T,
|
3091
|
+
const A = this._getNamedArgumentsCompletionList(b[0]?.args || []), T = `${c}.${p.label}`;
|
3092
|
+
this._userFuncArgsCache.set(T, A), this._methodFuncs.set(T, b);
|
3093
3093
|
}
|
3094
3094
|
return x;
|
3095
3095
|
}));
|
@@ -3223,7 +3223,7 @@ class Bb {
|
|
3223
3223
|
};
|
3224
3224
|
return {
|
3225
3225
|
label: r,
|
3226
|
-
detail: `(${u} ${
|
3226
|
+
detail: `(${u} ${ze(s)})`,
|
3227
3227
|
insertText: a,
|
3228
3228
|
insertTextRules: et.CompletionItemInsertTextRule.InsertAsSnippet,
|
3229
3229
|
sortText: `2_${r}`,
|
@@ -3274,10 +3274,10 @@ class Bb {
|
|
3274
3274
|
return {
|
3275
3275
|
label: c,
|
3276
3276
|
documentation: {
|
3277
|
-
value: this._formatter.paragraph(this._formatter.bold(
|
3277
|
+
value: this._formatter.paragraph(this._formatter.bold(ze(Ie.Description)), this._formatter.lineBreak, f)
|
3278
3278
|
},
|
3279
3279
|
insertText: c,
|
3280
|
-
detail: `(${
|
3280
|
+
detail: `(${ze(Ie.parameter)}) ${ze(Ie.types)} ${u}`,
|
3281
3281
|
kind: et.CompletionItemKind.Text,
|
3282
3282
|
sortText: `0_${c}`
|
3283
3283
|
};
|
@@ -3288,7 +3288,7 @@ class Bb {
|
|
3288
3288
|
a.length ? c.push(this._createExampleSection(a)) : n.syntax && n.syntax.length && c.push(this._createSyntaxSection(n.syntax));
|
3289
3289
|
const f = {
|
3290
3290
|
value: c.join(this._formatter.lineBreak)
|
3291
|
-
}, h =
|
3291
|
+
}, h = ze(s ? Ie.variables : Ie.userDefinedVariable);
|
3292
3292
|
return {
|
3293
3293
|
documentation: f,
|
3294
3294
|
label: n.name,
|
@@ -3308,7 +3308,7 @@ class Bb {
|
|
3308
3308
|
insertText: n.name,
|
3309
3309
|
kind: et.CompletionItemKind.Keyword,
|
3310
3310
|
sortText: `${r}_${n.name}`,
|
3311
|
-
detail: `(${
|
3311
|
+
detail: `(${ze(Ie.keywords)})`
|
3312
3312
|
};
|
3313
3313
|
}
|
3314
3314
|
_getTypeCompletionItem(n) {
|
@@ -3321,7 +3321,7 @@ class Bb {
|
|
3321
3321
|
insertText: n.name,
|
3322
3322
|
kind: et.CompletionItemKind.Keyword,
|
3323
3323
|
sortText: `1_${n.name}`,
|
3324
|
-
detail: `(${
|
3324
|
+
detail: `(${ze(Ie.types)})`
|
3325
3325
|
};
|
3326
3326
|
}
|
3327
3327
|
_getCustomTypeCompletionItem(n) {
|
@@ -3334,7 +3334,7 @@ class Bb {
|
|
3334
3334
|
insertText: n.name,
|
3335
3335
|
kind: et.CompletionItemKind.Keyword,
|
3336
3336
|
sortText: `2_${n.name}`,
|
3337
|
-
detail: `(${
|
3337
|
+
detail: `(${ze(Ie.userDefinedType)})`
|
3338
3338
|
};
|
3339
3339
|
}
|
3340
3340
|
_getEnumCompletionItem(n) {
|
@@ -3347,7 +3347,7 @@ class Bb {
|
|
3347
3347
|
insertText: n.name,
|
3348
3348
|
kind: et.CompletionItemKind.Enum,
|
3349
3349
|
sortText: `2_${n.name}`,
|
3350
|
-
detail: `(${
|
3350
|
+
detail: `(${ze(Ie.enum)})`
|
3351
3351
|
};
|
3352
3352
|
}
|
3353
3353
|
_getEnumMemberCompletionItem(n) {
|
@@ -3360,12 +3360,12 @@ class Bb {
|
|
3360
3360
|
insertText: n.name,
|
3361
3361
|
kind: et.CompletionItemKind.EnumMember,
|
3362
3362
|
sortText: `2_${n.name}`,
|
3363
|
-
detail: `(${
|
3363
|
+
detail: `(${ze("enum member")}) ${n.value ? `${n.name} = ${n.value}` : `${n.name}`}`
|
3364
3364
|
};
|
3365
3365
|
}
|
3366
3366
|
_getInstanceTypeCompletionItemProp(n) {
|
3367
3367
|
const r = this._extractDescription(n), s = [];
|
3368
|
-
return r && s.push(this._formatter.paragraph(this._formatter.bold(
|
3368
|
+
return r && s.push(this._formatter.paragraph(this._formatter.bold(ze(vt.Description)), this._formatter.lineBreak, r)), {
|
3369
3369
|
documentation: {
|
3370
3370
|
value: s.join(this._formatter.lineBreak)
|
3371
3371
|
},
|
@@ -3373,7 +3373,7 @@ class Bb {
|
|
3373
3373
|
insertText: n.name,
|
3374
3374
|
kind: et.CompletionItemKind.Field,
|
3375
3375
|
sortText: `2_${n.name}`,
|
3376
|
-
detail: `(${
|
3376
|
+
detail: `(${ze(Ie.field)}) ${n.type}`
|
3377
3377
|
};
|
3378
3378
|
}
|
3379
3379
|
_getFunctionCompletionItem(n, r = 2, s = !0) {
|
@@ -3390,7 +3390,7 @@ class Bb {
|
|
3390
3390
|
insertTextRules: et.CompletionItemInsertTextRule.InsertAsSnippet,
|
3391
3391
|
insertText: x + this.bracketsPostfix,
|
3392
3392
|
originInsertText: x,
|
3393
|
-
detail: `(${
|
3393
|
+
detail: `(${ze(v)}) ${ze(Ie.returns)} ${a}`,
|
3394
3394
|
command: {
|
3395
3395
|
id: "tcc.editor.function",
|
3396
3396
|
title: "",
|
@@ -3409,17 +3409,17 @@ class Bb {
|
|
3409
3409
|
label: n.name,
|
3410
3410
|
insertText: n.name.replace("@", ""),
|
3411
3411
|
kind: et.CompletionItemKind.Keyword,
|
3412
|
-
detail: `(${
|
3412
|
+
detail: `(${ze(Ie.annotations)})`
|
3413
3413
|
};
|
3414
3414
|
}
|
3415
3415
|
_getNamespaceCompletionItem(n, r = 2) {
|
3416
|
-
const s = [this._createDescriptionSection(
|
3416
|
+
const s = [this._createDescriptionSection(ze(Ie.namespaceDesc))];
|
3417
3417
|
return {
|
3418
3418
|
label: n.name,
|
3419
3419
|
documentation: {
|
3420
3420
|
value: s.join(this._formatter.lineBreak)
|
3421
3421
|
},
|
3422
|
-
detail: `(${
|
3422
|
+
detail: `(${ze(Ie.namespace)}) ${n.name}`,
|
3423
3423
|
insertText: n.name,
|
3424
3424
|
sortText: `${r}_${n.name}`,
|
3425
3425
|
kind: et.CompletionItemKind.Module
|
@@ -3433,16 +3433,16 @@ class Bb {
|
|
3433
3433
|
return Array.isArray(n.desc) ? n.desc.join(this._formatter.lineBreak) : n.desc || "";
|
3434
3434
|
}
|
3435
3435
|
_createExampleSection(n) {
|
3436
|
-
return this._formatter.paragraph(this._formatter.bold(
|
3436
|
+
return this._formatter.paragraph(this._formatter.bold(ze(vt.Example)), this._formatter.pineCode(n.join(this._formatter.lineBreak)));
|
3437
3437
|
}
|
3438
3438
|
_createSyntaxSection(n) {
|
3439
|
-
return this._formatter.paragraph(this._formatter.bold(
|
3439
|
+
return this._formatter.paragraph(this._formatter.bold(ze(vt.Syntax)), this._formatter.pineCode(n.join(this._formatter.lineBreak)));
|
3440
3440
|
}
|
3441
3441
|
_createReturnSection(n) {
|
3442
|
-
return this._formatter.paragraph(this._formatter.bold(
|
3442
|
+
return this._formatter.paragraph(this._formatter.bold(ze(vt.Returns)), this._formatter.lineBreak, n.join(this._formatter.lineBreak));
|
3443
3443
|
}
|
3444
3444
|
_createDescriptionSection(n) {
|
3445
|
-
return !n || n.trim().length === 0 ? "" : this._formatter.paragraph(this._formatter.bold(
|
3445
|
+
return !n || n.trim().length === 0 ? "" : this._formatter.paragraph(this._formatter.bold(ze(vt.Description)), this._formatter.lineBreak, n);
|
3446
3446
|
}
|
3447
3447
|
}
|
3448
3448
|
const zt = new Bb();
|
@@ -3702,22 +3702,22 @@ class Ub {
|
|
3702
3702
|
let c = u[0], f, h = null, p = n.indexOf(r, s - r.length) + 1, v = p + c.length - 1;
|
3703
3703
|
for (const b of u.slice(1)) {
|
3704
3704
|
if (!h) {
|
3705
|
-
const x = p <= s && v >= s,
|
3706
|
-
if (x &&
|
3707
|
-
return
|
3708
|
-
h =
|
3705
|
+
const x = p <= s && v >= s, A = this._getUserVariablesDocVal(c, s, a);
|
3706
|
+
if (x && A)
|
3707
|
+
return A;
|
3708
|
+
h = A?.type;
|
3709
3709
|
}
|
3710
3710
|
if (h) {
|
3711
3711
|
f = h, p = v + 2, v = v + b.length + 1;
|
3712
|
-
const
|
3713
|
-
if (
|
3712
|
+
const A = (this._userTypes.get(h) || this._keyMaps.types.get(h))?.[0]?.fields?.find((T) => T.name === b);
|
3713
|
+
if (A && p <= s && v >= s)
|
3714
3714
|
return {
|
3715
3715
|
name: `${h}.${b}`,
|
3716
|
-
desc:
|
3717
|
-
type: this._arrayTypeTransform(
|
3716
|
+
desc: A.desc,
|
3717
|
+
type: this._arrayTypeTransform(A.type),
|
3718
3718
|
title: Ie.field
|
3719
3719
|
};
|
3720
|
-
h =
|
3720
|
+
h = A?.type;
|
3721
3721
|
} else
|
3722
3722
|
c = `${c}.${b}`, v = v + b.length + 1;
|
3723
3723
|
}
|
@@ -3826,8 +3826,8 @@ var vo = { exports: {} };
|
|
3826
3826
|
vo.exports;
|
3827
3827
|
(function(i, n) {
|
3828
3828
|
(function() {
|
3829
|
-
var r, s = "4.17.21", a = 200, u = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", c = "Expected a function", f = "Invalid `variable` option passed into `_.template`", h = "__lodash_hash_undefined__", p = 500, v = "__lodash_placeholder__", b = 1, x = 2,
|
3830
|
-
["ary",
|
3829
|
+
var r, s = "4.17.21", a = 200, u = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", c = "Expected a function", f = "Invalid `variable` option passed into `_.template`", h = "__lodash_hash_undefined__", p = 500, v = "__lodash_placeholder__", b = 1, x = 2, A = 4, T = 1, F = 2, U = 1, W = 2, k = 4, Q = 8, B = 16, H = 32, M = 64, I = 128, Y = 256, Z = 512, X = 30, te = "...", xe = 800, z = 16, ne = 1, q = 2, ie = 3, j = 1 / 0, V = 9007199254740991, he = 17976931348623157e292, Ae = NaN, fe = 4294967295, De = fe - 1, Ge = fe >>> 1, at = [
|
3830
|
+
["ary", I],
|
3831
3831
|
["bind", U],
|
3832
3832
|
["bindKey", W],
|
3833
3833
|
["curry", Q],
|
@@ -3836,7 +3836,7 @@ vo.exports;
|
|
3836
3836
|
["partial", H],
|
3837
3837
|
["partialRight", M],
|
3838
3838
|
["rearg", Y]
|
3839
|
-
], Xe = "[object Arguments]", Ve = "[object Array]", _t = "[object AsyncFunction]", Gt = "[object Boolean]", Qt = "[object Date]", Gn = "[object DOMException]", qn = "[object Error]", Tn = "[object Function]", ai = "[object GeneratorFunction]", bt = "[object Map]", qt = "[object Number]", Yn = "[object Null]", At = "[object Object]", yr = "[object Promise]", Vn = "[object Proxy]", Nn = "[object RegExp]", yt = "[object Set]", en = "[object String]", Jn = "[object Symbol]", Io = "[object Undefined]", gn = "[object WeakMap]", ui = "[object WeakSet]", Dt = "[object ArrayBuffer]", pn = "[object DataView]", Zn = "[object Float32Array]", Xn = "[object Float64Array]", Rn = "[object Int8Array]", xr = "[object Int16Array]", wr = "[object Int32Array]", Cr = "[object Uint8Array]", Sr = "[object Uint8ClampedArray]", Or = "[object Uint16Array]", Er = "[object Uint32Array]", Ao = /\b__p \+= '';/g, Ir = /\b(__p \+=) '' \+/g, li = /(__e\(.*?\)|\b__t\)) \+\n'';/g, tn = /&(?:amp|lt|gt|quot|#39);/g, Qn = /[&<>"']/g, Ar = RegExp(tn.source), ci = RegExp(Qn.source), ko = /<%-([\s\S]+?)%>/g, fi = /<%([\s\S]+?)%>/g, di = /<%=([\s\S]+?)%>/g, hi = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, gi = /^\w*$/, Lo = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, kr = /[\\^$.*+?()[\]{}|]/g, pi = RegExp(kr.source), Lr = /^\s+/, To = /\s/, No = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ro = /\{\n\/\* \[wrapped with (.+)\] \*/, y = /,? & /, D = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, K = /[()=,{}\[\]\/\s]/, ae = /\\(\\)?/g, Se = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ke = /\w*$/, be = /^[-+]0x[0-9a-f]+$/i, ve = /^0b[01]+$/i, tt = /^\[object .+?Constructor\]$/, je = /^0o[0-7]+$/i,
|
3839
|
+
], Xe = "[object Arguments]", Ve = "[object Array]", _t = "[object AsyncFunction]", Gt = "[object Boolean]", Qt = "[object Date]", Gn = "[object DOMException]", qn = "[object Error]", Tn = "[object Function]", ai = "[object GeneratorFunction]", bt = "[object Map]", qt = "[object Number]", Yn = "[object Null]", At = "[object Object]", yr = "[object Promise]", Vn = "[object Proxy]", Nn = "[object RegExp]", yt = "[object Set]", en = "[object String]", Jn = "[object Symbol]", Io = "[object Undefined]", gn = "[object WeakMap]", ui = "[object WeakSet]", Dt = "[object ArrayBuffer]", pn = "[object DataView]", Zn = "[object Float32Array]", Xn = "[object Float64Array]", Rn = "[object Int8Array]", xr = "[object Int16Array]", wr = "[object Int32Array]", Cr = "[object Uint8Array]", Sr = "[object Uint8ClampedArray]", Or = "[object Uint16Array]", Er = "[object Uint32Array]", Ao = /\b__p \+= '';/g, Ir = /\b(__p \+=) '' \+/g, li = /(__e\(.*?\)|\b__t\)) \+\n'';/g, tn = /&(?:amp|lt|gt|quot|#39);/g, Qn = /[&<>"']/g, Ar = RegExp(tn.source), ci = RegExp(Qn.source), ko = /<%-([\s\S]+?)%>/g, fi = /<%([\s\S]+?)%>/g, di = /<%=([\s\S]+?)%>/g, hi = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, gi = /^\w*$/, Lo = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, kr = /[\\^$.*+?()[\]{}|]/g, pi = RegExp(kr.source), Lr = /^\s+/, To = /\s/, No = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ro = /\{\n\/\* \[wrapped with (.+)\] \*/, y = /,? & /, D = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, K = /[()=,{}\[\]\/\s]/, ae = /\\(\\)?/g, Se = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ke = /\w*$/, be = /^[-+]0x[0-9a-f]+$/i, ve = /^0b[01]+$/i, tt = /^\[object .+?Constructor\]$/, je = /^0o[0-7]+$/i, He = /^(?:0|[1-9]\d*)$/, ft = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, jt = /($^)/, mi = /['\n\r\u2028\u2029\\]/g, dt = "\\ud800-\\udfff", Bf = "\\u0300-\\u036f", Uf = "\\ufe20-\\ufe2f", Hf = "\\u20d0-\\u20ff", ya = Bf + Uf + Hf, xa = "\\u2700-\\u27bf", wa = "a-z\\xdf-\\xf6\\xf8-\\xff", Wf = "\\xac\\xb1\\xd7\\xf7", zf = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Kf = "\\u2000-\\u206f", Gf = " \\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", Ca = "A-Z\\xc0-\\xd6\\xd8-\\xde", Sa = "\\ufe0e\\ufe0f", Oa = Wf + zf + Kf + Gf, Po = "['’]", qf = "[" + dt + "]", Ea = "[" + Oa + "]", vi = "[" + ya + "]", Ia = "\\d+", Yf = "[" + xa + "]", Aa = "[" + wa + "]", ka = "[^" + dt + Oa + Ia + xa + wa + Ca + "]", Mo = "\\ud83c[\\udffb-\\udfff]", Vf = "(?:" + vi + "|" + Mo + ")", La = "[^" + dt + "]", $o = "(?:\\ud83c[\\udde6-\\uddff]){2}", Fo = "[\\ud800-\\udbff][\\udc00-\\udfff]", er = "[" + Ca + "]", Ta = "\\u200d", Na = "(?:" + Aa + "|" + ka + ")", Jf = "(?:" + er + "|" + ka + ")", Ra = "(?:" + Po + "(?:d|ll|m|re|s|t|ve))?", Pa = "(?:" + Po + "(?:D|LL|M|RE|S|T|VE))?", Ma = Vf + "?", $a = "[" + Sa + "]?", Zf = "(?:" + Ta + "(?:" + [La, $o, Fo].join("|") + ")" + $a + Ma + ")*", Xf = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Qf = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Fa = $a + Ma + Zf, ed = "(?:" + [Yf, $o, Fo].join("|") + ")" + Fa, td = "(?:" + [La + vi + "?", vi, $o, Fo, qf].join("|") + ")", nd = RegExp(Po, "g"), rd = RegExp(vi, "g"), Do = RegExp(Mo + "(?=" + Mo + ")|" + td + Fa, "g"), id = RegExp([
|
3840
3840
|
er + "?" + Aa + "+" + Ra + "(?=" + [Ea, er, "$"].join("|") + ")",
|
3841
3841
|
Jf + "+" + Pa + "(?=" + [Ea, er + Na, "$"].join("|") + ")",
|
3842
3842
|
er + "?" + Na + "+" + Ra,
|
@@ -4383,7 +4383,7 @@ vo.exports;
|
|
4383
4383
|
}
|
4384
4384
|
}(), Gd = N.clearTimeout !== nt.clearTimeout && N.clearTimeout, qd = J && J.now !== nt.Date.now && J.now, Yd = N.setTimeout !== nt.setTimeout && N.setTimeout, Li = Je.ceil, Ti = Je.floor, Zo = Ne.getOwnPropertySymbols, Vd = Oi ? Oi.isBuffer : r, au = N.isFinite, Jd = xi.join, Zd = eu(Ne.keys, Ne), Ze = Je.max, it = Je.min, Xd = J.now, Qd = N.parseInt, uu = Je.random, eh = xi.reverse, Xo = Bn(N, "DataView"), Rr = Bn(N, "Map"), Qo = Bn(N, "Promise"), sr = Bn(N, "Set"), Pr = Bn(N, "WeakMap"), Mr = Bn(Ne, "create"), Ni = Pr && new Pr(), ar = {}, th = Un(Xo), nh = Un(Rr), rh = Un(Qo), ih = Un(sr), oh = Un(Pr), Ri = bn ? bn.prototype : r, $r = Ri ? Ri.valueOf : r, lu = Ri ? Ri.toString : r;
|
4385
4385
|
function g(e) {
|
4386
|
-
if (
|
4386
|
+
if (We(e) && !ce(e) && !(e instanceof ye)) {
|
4387
4387
|
if (e instanceof Nt)
|
4388
4388
|
return e;
|
4389
4389
|
if (Te.call(e, "__wrapped__"))
|
@@ -4682,7 +4682,7 @@ vo.exports;
|
|
4682
4682
|
return e === e && (o !== r && (e = e <= o ? e : o), t !== r && (e = e >= t ? e : t)), e;
|
4683
4683
|
}
|
4684
4684
|
function Rt(e, t, o, l, d, m) {
|
4685
|
-
var _, w = t & b, O = t & x, R = t &
|
4685
|
+
var _, w = t & b, O = t & x, R = t & A;
|
4686
4686
|
if (o && (_ = d ? o(e, l, d, m) : o(e)), _ !== r)
|
4687
4687
|
return _;
|
4688
4688
|
if (!Be(e))
|
@@ -4864,16 +4864,16 @@ vo.exports;
|
|
4864
4864
|
return l == null ? r : xt(l, e, o);
|
4865
4865
|
}
|
4866
4866
|
function bu(e) {
|
4867
|
-
return
|
4867
|
+
return We(e) && ut(e) == Xe;
|
4868
4868
|
}
|
4869
4869
|
function Hh(e) {
|
4870
|
-
return
|
4870
|
+
return We(e) && ut(e) == Dt;
|
4871
4871
|
}
|
4872
4872
|
function Wh(e) {
|
4873
|
-
return
|
4873
|
+
return We(e) && ut(e) == Qt;
|
4874
4874
|
}
|
4875
4875
|
function Br(e, t, o, l, d) {
|
4876
|
-
return e === t ? !0 : e == null || t == null || !
|
4876
|
+
return e === t ? !0 : e == null || t == null || !We(e) && !We(t) ? e !== e && t !== t : zh(e, t, o, l, Br, d);
|
4877
4877
|
}
|
4878
4878
|
function zh(e, t, o, l, d, m) {
|
4879
4879
|
var _ = ce(e), w = ce(t), O = _ ? Ve : ot(e), R = w ? Ve : ot(t);
|
@@ -4896,7 +4896,7 @@ vo.exports;
|
|
4896
4896
|
return G ? (m || (m = new Ut()), _g(e, t, o, l, d, m)) : !1;
|
4897
4897
|
}
|
4898
4898
|
function Kh(e) {
|
4899
|
-
return
|
4899
|
+
return We(e) && ot(e) == bt;
|
4900
4900
|
}
|
4901
4901
|
function ss(e, t, o, l) {
|
4902
4902
|
var d = o.length, m = d, _ = !l;
|
@@ -4930,13 +4930,13 @@ vo.exports;
|
|
4930
4930
|
return t.test(Un(e));
|
4931
4931
|
}
|
4932
4932
|
function Gh(e) {
|
4933
|
-
return
|
4933
|
+
return We(e) && ut(e) == Nn;
|
4934
4934
|
}
|
4935
4935
|
function qh(e) {
|
4936
|
-
return
|
4936
|
+
return We(e) && ot(e) == yt;
|
4937
4937
|
}
|
4938
4938
|
function Yh(e) {
|
4939
|
-
return
|
4939
|
+
return We(e) && eo(e.length) && !!$e[ut(e)];
|
4940
4940
|
}
|
4941
4941
|
function xu(e) {
|
4942
4942
|
return typeof e == "function" ? e : e == null ? mt : typeof e == "object" ? ce(e) ? Su(e[0], e[1]) : Cu(e) : Wl(e);
|
@@ -4997,7 +4997,7 @@ vo.exports;
|
|
4997
4997
|
var P = m ? m(w, O, o + "", e, t, _) : r, $ = P === r;
|
4998
4998
|
if ($) {
|
4999
4999
|
var G = ce(O), ee = !G && Sn(O), oe = !G && !ee && dr(O);
|
5000
|
-
P = O, G || ee || oe ? ce(w) ? P = w :
|
5000
|
+
P = O, G || ee || oe ? ce(w) ? P = w : qe(w) ? P = ht(w) : ee ? ($ = !1, P = $u(O, !0)) : oe ? ($ = !1, P = Fu(O, !0)) : P = [] : Kr(O) || Hn(O) ? (P = w, Hn(w) ? P = Rl(w) : (!Be(w) || ln(w)) && (P = tl(O))) : $ = !1;
|
5001
5001
|
}
|
5002
5002
|
$ && (_.set(O, P), d(P, O, l, m, _), _.delete(O)), es(e, o, P);
|
5003
5003
|
}
|
@@ -5129,7 +5129,7 @@ vo.exports;
|
|
5129
5129
|
}
|
5130
5130
|
function ji(e, t, o) {
|
5131
5131
|
var l = 0, d = e == null ? l : e.length;
|
5132
|
-
if (typeof t == "number" && t === t && d <=
|
5132
|
+
if (typeof t == "number" && t === t && d <= Ge) {
|
5133
5133
|
for (; l < d; ) {
|
5134
5134
|
var m = l + d >>> 1, _ = e[m];
|
5135
5135
|
_ !== null && !St(_) && (o ? _ <= t : _ < t) ? l = m + 1 : d = m;
|
@@ -5234,7 +5234,7 @@ vo.exports;
|
|
5234
5234
|
return _;
|
5235
5235
|
}
|
5236
5236
|
function ps(e) {
|
5237
|
-
return
|
5237
|
+
return qe(e) ? e : [];
|
5238
5238
|
}
|
5239
5239
|
function ms(e) {
|
5240
5240
|
return typeof e == "function" ? e : mt;
|
@@ -5468,7 +5468,7 @@ vo.exports;
|
|
5468
5468
|
for (l = _ ? l : o; ++l < o; ) {
|
5469
5469
|
m = t[l];
|
5470
5470
|
var w = Gi(m), O = w == "wrapper" ? ws(m) : r;
|
5471
|
-
O && Es(O[0]) && O[1] == (
|
5471
|
+
O && Es(O[0]) && O[1] == (I | Q | H | Y) && !O[4].length && O[9] == 1 ? _ = _[Gi(O[0])].apply(_, O[3]) : _ = m.length == 1 && Es(m) ? _[w]() : _.thru(m);
|
5472
5472
|
}
|
5473
5473
|
return function() {
|
5474
5474
|
var R = arguments, P = R[0];
|
@@ -5481,14 +5481,14 @@ vo.exports;
|
|
5481
5481
|
});
|
5482
5482
|
}
|
5483
5483
|
function Hi(e, t, o, l, d, m, _, w, O, R) {
|
5484
|
-
var P = t &
|
5484
|
+
var P = t & I, $ = t & U, G = t & W, ee = t & (Q | B), oe = t & Z, ge = G ? r : Hr(e);
|
5485
5485
|
function se() {
|
5486
5486
|
for (var _e = arguments.length, we = E(_e), Ot = _e; Ot--; )
|
5487
5487
|
we[Ot] = arguments[Ot];
|
5488
5488
|
if (ee)
|
5489
5489
|
var ct = fr(se), Et = Od(we, ct);
|
5490
5490
|
if (l && (we = ju(we, l, d, ee)), m && (we = Bu(we, m, _, ee)), _e -= Et, ee && _e < R) {
|
5491
|
-
var
|
5491
|
+
var Ye = _n(we, ct);
|
5492
5492
|
return Yu(
|
5493
5493
|
e,
|
5494
5494
|
t,
|
@@ -5496,7 +5496,7 @@ vo.exports;
|
|
5496
5496
|
se.placeholder,
|
5497
5497
|
o,
|
5498
5498
|
we,
|
5499
|
-
|
5499
|
+
Ye,
|
5500
5500
|
w,
|
5501
5501
|
O,
|
5502
5502
|
R - _e
|
@@ -5903,7 +5903,7 @@ vo.exports;
|
|
5903
5903
|
}
|
5904
5904
|
function un(e, t) {
|
5905
5905
|
var o = typeof e;
|
5906
|
-
return t = t ?? V, !!t && (o == "number" || o != "symbol" &&
|
5906
|
+
return t = t ?? V, !!t && (o == "number" || o != "symbol" && He.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
5907
5907
|
}
|
5908
5908
|
function lt(e, t, o) {
|
5909
5909
|
if (!Be(o))
|
@@ -5953,7 +5953,7 @@ vo.exports;
|
|
5953
5953
|
return t;
|
5954
5954
|
}
|
5955
5955
|
function Lg(e, t) {
|
5956
|
-
var o = e[1], l = t[1], d = o | l, m = d < (U | W |
|
5956
|
+
var o = e[1], l = t[1], d = o | l, m = d < (U | W | I), _ = l == I && o == Q || l == I && o == Y && e[7].length <= t[8] || l == (I | Y) && t[7].length <= t[8] && o == Q;
|
5957
5957
|
if (!(m || _))
|
5958
5958
|
return e;
|
5959
5959
|
l & U && (e[2] = t[2], d |= o & U ? 0 : k);
|
@@ -5962,7 +5962,7 @@ vo.exports;
|
|
5962
5962
|
var O = e[3];
|
5963
5963
|
e[3] = O ? ju(O, w, t[4]) : w, e[4] = O ? _n(e[3], v) : t[4];
|
5964
5964
|
}
|
5965
|
-
return w = t[5], w && (O = e[5], e[5] = O ? Bu(O, w, t[6]) : w, e[6] = O ? _n(e[5], v) : t[6]), w = t[7], w && (e[7] = w), l &
|
5965
|
+
return w = t[5], w && (O = e[5], e[5] = O ? Bu(O, w, t[6]) : w, e[6] = O ? _n(e[5], v) : t[6]), w = t[7], w && (e[7] = w), l & I && (e[8] = e[8] == null ? t[8] : it(e[8], t[8])), e[9] == null && (e[9] = t[9]), e[0] = t[0], e[1] = d, e;
|
5966
5966
|
}
|
5967
5967
|
function Tg(e) {
|
5968
5968
|
var t = [];
|
@@ -6087,13 +6087,13 @@ vo.exports;
|
|
6087
6087
|
return vn(ce(o) ? ht(o) : [o], rt(t, 1));
|
6088
6088
|
}
|
6089
6089
|
var Dg = me(function(e, t) {
|
6090
|
-
return
|
6090
|
+
return qe(e) ? Dr(e, rt(t, 1, qe, !0)) : [];
|
6091
6091
|
}), jg = me(function(e, t) {
|
6092
6092
|
var o = Mt(t);
|
6093
|
-
return
|
6093
|
+
return qe(o) && (o = r), qe(e) ? Dr(e, rt(t, 1, qe, !0), re(o, 2)) : [];
|
6094
6094
|
}), Bg = me(function(e, t) {
|
6095
6095
|
var o = Mt(t);
|
6096
|
-
return
|
6096
|
+
return qe(o) && (o = r), qe(e) ? Dr(e, rt(t, 1, qe, !0), r, o) : [];
|
6097
6097
|
});
|
6098
6098
|
function Ug(e, t, o) {
|
6099
6099
|
var l = e == null ? 0 : e.length;
|
@@ -6275,13 +6275,13 @@ vo.exports;
|
|
6275
6275
|
return e && e.length ? Bi(e, re(t, 3)) : [];
|
6276
6276
|
}
|
6277
6277
|
var wp = me(function(e) {
|
6278
|
-
return xn(rt(e, 1,
|
6278
|
+
return xn(rt(e, 1, qe, !0));
|
6279
6279
|
}), Cp = me(function(e) {
|
6280
6280
|
var t = Mt(e);
|
6281
|
-
return
|
6281
|
+
return qe(t) && (t = r), xn(rt(e, 1, qe, !0), re(t, 2));
|
6282
6282
|
}), Sp = me(function(e) {
|
6283
6283
|
var t = Mt(e);
|
6284
|
-
return t = typeof t == "function" ? t : r, xn(rt(e, 1,
|
6284
|
+
return t = typeof t == "function" ? t : r, xn(rt(e, 1, qe, !0), r, t);
|
6285
6285
|
});
|
6286
6286
|
function Op(e) {
|
6287
6287
|
return e && e.length ? xn(e) : [];
|
@@ -6297,7 +6297,7 @@ vo.exports;
|
|
6297
6297
|
return [];
|
6298
6298
|
var t = 0;
|
6299
6299
|
return e = mn(e, function(o) {
|
6300
|
-
if (
|
6300
|
+
if (qe(o))
|
6301
6301
|
return t = Ze(o.length, t), !0;
|
6302
6302
|
}), qo(t, function(o) {
|
6303
6303
|
return Fe(e, zo(o));
|
@@ -6312,15 +6312,15 @@ vo.exports;
|
|
6312
6312
|
});
|
6313
6313
|
}
|
6314
6314
|
var Ap = me(function(e, t) {
|
6315
|
-
return
|
6315
|
+
return qe(e) ? Dr(e, t) : [];
|
6316
6316
|
}), kp = me(function(e) {
|
6317
|
-
return gs(mn(e,
|
6317
|
+
return gs(mn(e, qe));
|
6318
6318
|
}), Lp = me(function(e) {
|
6319
6319
|
var t = Mt(e);
|
6320
|
-
return
|
6320
|
+
return qe(t) && (t = r), gs(mn(e, qe), re(t, 2));
|
6321
6321
|
}), Tp = me(function(e) {
|
6322
6322
|
var t = Mt(e);
|
6323
|
-
return t = typeof t == "function" ? t : r, gs(mn(e,
|
6323
|
+
return t = typeof t == "function" ? t : r, gs(mn(e, qe), r, t);
|
6324
6324
|
}), Np = me(Ls);
|
6325
6325
|
function Rp(e, t) {
|
6326
6326
|
return Pu(e || [], t || [], Fr);
|
@@ -6503,7 +6503,7 @@ vo.exports;
|
|
6503
6503
|
};
|
6504
6504
|
}
|
6505
6505
|
function yl(e, t, o) {
|
6506
|
-
return t = o ? r : t, t = e && t == null ? e.length : t, sn(e,
|
6506
|
+
return t = o ? r : t, t = e && t == null ? e.length : t, sn(e, I, r, r, r, r, t);
|
6507
6507
|
}
|
6508
6508
|
function xl(e, t) {
|
6509
6509
|
var o;
|
@@ -6543,29 +6543,29 @@ vo.exports;
|
|
6543
6543
|
if (typeof e != "function")
|
6544
6544
|
throw new Tt(c);
|
6545
6545
|
t = $t(t) || 0, Be(o) && (P = !!o.leading, $ = "maxWait" in o, m = $ ? Ze($t(o.maxWait) || 0, t) : m, G = "trailing" in o ? !!o.trailing : G);
|
6546
|
-
function ee(
|
6546
|
+
function ee(Ye) {
|
6547
6547
|
var Wt = l, fn = d;
|
6548
|
-
return l = d = r, R =
|
6548
|
+
return l = d = r, R = Ye, _ = e.apply(fn, Wt), _;
|
6549
6549
|
}
|
6550
|
-
function oe(
|
6551
|
-
return R =
|
6550
|
+
function oe(Ye) {
|
6551
|
+
return R = Ye, w = zr(_e, t), P ? ee(Ye) : _;
|
6552
6552
|
}
|
6553
|
-
function ge(
|
6554
|
-
var Wt =
|
6553
|
+
function ge(Ye) {
|
6554
|
+
var Wt = Ye - O, fn = Ye - R, zl = t - Wt;
|
6555
6555
|
return $ ? it(zl, m - fn) : zl;
|
6556
6556
|
}
|
6557
|
-
function se(
|
6558
|
-
var Wt =
|
6557
|
+
function se(Ye) {
|
6558
|
+
var Wt = Ye - O, fn = Ye - R;
|
6559
6559
|
return O === r || Wt >= t || Wt < 0 || $ && fn >= m;
|
6560
6560
|
}
|
6561
6561
|
function _e() {
|
6562
|
-
var
|
6563
|
-
if (se(
|
6564
|
-
return we(
|
6565
|
-
w = zr(_e, ge(
|
6562
|
+
var Ye = Zi();
|
6563
|
+
if (se(Ye))
|
6564
|
+
return we(Ye);
|
6565
|
+
w = zr(_e, ge(Ye));
|
6566
6566
|
}
|
6567
|
-
function we(
|
6568
|
-
return w = r, G && l ? ee(
|
6567
|
+
function we(Ye) {
|
6568
|
+
return w = r, G && l ? ee(Ye) : (l = d = r, _);
|
6569
6569
|
}
|
6570
6570
|
function Ot() {
|
6571
6571
|
w !== r && Mu(w), R = 0, l = O = d = w = r;
|
@@ -6574,8 +6574,8 @@ vo.exports;
|
|
6574
6574
|
return w === r ? _ : we(Zi());
|
6575
6575
|
}
|
6576
6576
|
function Et() {
|
6577
|
-
var
|
6578
|
-
if (l = arguments, d = this, O =
|
6577
|
+
var Ye = Zi(), Wt = se(Ye);
|
6578
|
+
if (l = arguments, d = this, O = Ye, Wt) {
|
6579
6579
|
if (w === r)
|
6580
6580
|
return oe(O);
|
6581
6581
|
if ($)
|
@@ -6680,16 +6680,16 @@ vo.exports;
|
|
6680
6680
|
return ce(e) ? e : [e];
|
6681
6681
|
}
|
6682
6682
|
function Im(e) {
|
6683
|
-
return Rt(e,
|
6683
|
+
return Rt(e, A);
|
6684
6684
|
}
|
6685
6685
|
function Am(e, t) {
|
6686
|
-
return t = typeof t == "function" ? t : r, Rt(e,
|
6686
|
+
return t = typeof t == "function" ? t : r, Rt(e, A, t);
|
6687
6687
|
}
|
6688
6688
|
function km(e) {
|
6689
|
-
return Rt(e, b |
|
6689
|
+
return Rt(e, b | A);
|
6690
6690
|
}
|
6691
6691
|
function Lm(e, t) {
|
6692
|
-
return t = typeof t == "function" ? t : r, Rt(e, b |
|
6692
|
+
return t = typeof t == "function" ? t : r, Rt(e, b | A, t);
|
6693
6693
|
}
|
6694
6694
|
function Tm(e, t) {
|
6695
6695
|
return t == null || hu(e, t, Qe(t));
|
@@ -6702,20 +6702,20 @@ vo.exports;
|
|
6702
6702
|
}), Hn = bu(/* @__PURE__ */ function() {
|
6703
6703
|
return arguments;
|
6704
6704
|
}()) ? bu : function(e) {
|
6705
|
-
return
|
6705
|
+
return We(e) && Te.call(e, "callee") && !ou.call(e, "callee");
|
6706
6706
|
}, ce = E.isArray, Pm = Ba ? wt(Ba) : Hh;
|
6707
6707
|
function gt(e) {
|
6708
6708
|
return e != null && eo(e.length) && !ln(e);
|
6709
6709
|
}
|
6710
|
-
function
|
6711
|
-
return
|
6710
|
+
function qe(e) {
|
6711
|
+
return We(e) && gt(e);
|
6712
6712
|
}
|
6713
6713
|
function Mm(e) {
|
6714
|
-
return e === !0 || e === !1 ||
|
6714
|
+
return e === !0 || e === !1 || We(e) && ut(e) == Gt;
|
6715
6715
|
}
|
6716
6716
|
var Sn = Vd || Ws, $m = Ua ? wt(Ua) : Wh;
|
6717
6717
|
function Fm(e) {
|
6718
|
-
return
|
6718
|
+
return We(e) && e.nodeType === 1 && !Kr(e);
|
6719
6719
|
}
|
6720
6720
|
function Dm(e) {
|
6721
6721
|
if (e == null)
|
@@ -6741,7 +6741,7 @@ vo.exports;
|
|
6741
6741
|
return l === r ? Br(e, t, r, o) : !!l;
|
6742
6742
|
}
|
6743
6743
|
function Rs(e) {
|
6744
|
-
if (!
|
6744
|
+
if (!We(e))
|
6745
6745
|
return !1;
|
6746
6746
|
var t = ut(e);
|
6747
6747
|
return t == qn || t == Gn || typeof e.message == "string" && typeof e.name == "string" && !Kr(e);
|
@@ -6765,7 +6765,7 @@ vo.exports;
|
|
6765
6765
|
var t = typeof e;
|
6766
6766
|
return e != null && (t == "object" || t == "function");
|
6767
6767
|
}
|
6768
|
-
function
|
6768
|
+
function We(e) {
|
6769
6769
|
return e != null && typeof e == "object";
|
6770
6770
|
}
|
6771
6771
|
var Al = Ha ? wt(Ha) : Kh;
|
@@ -6790,10 +6790,10 @@ vo.exports;
|
|
6790
6790
|
return e == null;
|
6791
6791
|
}
|
6792
6792
|
function kl(e) {
|
6793
|
-
return typeof e == "number" ||
|
6793
|
+
return typeof e == "number" || We(e) && ut(e) == qt;
|
6794
6794
|
}
|
6795
6795
|
function Kr(e) {
|
6796
|
-
if (!
|
6796
|
+
if (!We(e) || ut(e) != At)
|
6797
6797
|
return !1;
|
6798
6798
|
var t = Ii(e);
|
6799
6799
|
if (t === null)
|
@@ -6807,20 +6807,20 @@ vo.exports;
|
|
6807
6807
|
}
|
6808
6808
|
var Ll = za ? wt(za) : qh;
|
6809
6809
|
function to(e) {
|
6810
|
-
return typeof e == "string" || !ce(e) &&
|
6810
|
+
return typeof e == "string" || !ce(e) && We(e) && ut(e) == en;
|
6811
6811
|
}
|
6812
6812
|
function St(e) {
|
6813
|
-
return typeof e == "symbol" ||
|
6813
|
+
return typeof e == "symbol" || We(e) && ut(e) == Jn;
|
6814
6814
|
}
|
6815
6815
|
var dr = Ka ? wt(Ka) : Yh;
|
6816
6816
|
function Vm(e) {
|
6817
6817
|
return e === r;
|
6818
6818
|
}
|
6819
6819
|
function Jm(e) {
|
6820
|
-
return
|
6820
|
+
return We(e) && ot(e) == gn;
|
6821
6821
|
}
|
6822
6822
|
function Zm(e) {
|
6823
|
-
return
|
6823
|
+
return We(e) && ut(e) == ui;
|
6824
6824
|
}
|
6825
6825
|
var Xm = Ki(us), Qm = Ki(function(e, t) {
|
6826
6826
|
return e <= t;
|
@@ -6973,7 +6973,7 @@ vo.exports;
|
|
6973
6973
|
var l = !1;
|
6974
6974
|
t = Fe(t, function(m) {
|
6975
6975
|
return m = wn(m, e), l || (l = m.length > 1), m;
|
6976
|
-
}), Vt(e, xs(e), o), l && (o = Rt(o, b | x |
|
6976
|
+
}), Vt(e, xs(e), o), l && (o = Rt(o, b | x | A, mg));
|
6977
6977
|
for (var d = t.length; d--; )
|
6978
6978
|
hs(o, t[d]);
|
6979
6979
|
return o;
|
@@ -7390,7 +7390,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
7390
7390
|
function Gv(e, t) {
|
7391
7391
|
return e && e.length ? Go(e, re(t, 2)) : 0;
|
7392
7392
|
}
|
7393
|
-
return g.after = gm, g.ary = yl, g.assign = t0, g.assignIn = Pl, g.assignInWith = no, g.assignWith = n0, g.at = r0, g.before = xl, g.bind = Ts, g.bindAll = uv, g.bindKey = wl, g.castArray = Em, g.chain = vl, g.chunk = Mg, g.compact = $g, g.concat = Fg, g.cond = lv, g.conforms = cv, g.constant = Ds, g.countBy = Kp, g.create = i0, g.curry = Cl, g.curryRight = Sl, g.debounce = Ol, g.defaults = o0, g.defaultsDeep = s0, g.defer = pm, g.delay = mm, g.difference = Dg, g.differenceBy = jg, g.differenceWith = Bg, g.drop = Ug, g.dropRight = Hg, g.dropRightWhile = Wg, g.dropWhile = zg, g.fill = Kg, g.filter = qp, g.flatMap = Jp, g.flatMapDeep = Zp, g.flatMapDepth = Xp, g.flatten = hl, g.flattenDeep = Gg, g.flattenDepth = qg, g.flip = vm, g.flow = dv, g.flowRight = hv, g.fromPairs = Yg, g.functions = h0, g.functionsIn = g0, g.groupBy = Qp, g.initial = Jg, g.intersection = Zg, g.intersectionBy = Xg, g.intersectionWith = Qg, g.invert = m0, g.invertBy = v0, g.invokeMap = tm, g.iteratee = js, g.keyBy = nm, g.keys = Qe, g.keysIn = pt, g.map = Ji, g.mapKeys = b0, g.mapValues = y0, g.matches = gv, g.matchesProperty = pv, g.memoize = Xi, g.merge = x0, g.mergeWith = Ml, g.method = mv, g.methodOf = vv, g.mixin = Bs, g.negate = Qi, g.nthArg = bv, g.omit = w0, g.omitBy = C0, g.once = _m, g.orderBy = rm, g.over = yv, g.overArgs = bm, g.overEvery = xv, g.overSome = wv, g.partial = Ns, g.partialRight = El, g.partition = im, g.pick = S0, g.pickBy = $l, g.property = Wl, g.propertyOf = Cv, g.pull = rp, g.pullAll = pl, g.pullAllBy = ip, g.pullAllWith = op, g.pullAt = sp, g.range = Sv, g.rangeRight = Ov, g.rearg = ym, g.reject = am, g.remove = ap, g.rest = xm, g.reverse = ks, g.sampleSize = lm, g.set = E0, g.setWith = I0, g.shuffle = cm, g.slice = up, g.sortBy = hm, g.sortedUniq = pp, g.sortedUniqBy = mp, g.split = J0, g.spread = wm, g.tail = vp, g.take = _p, g.takeRight = bp, g.takeRightWhile = yp, g.takeWhile = xp, g.tap = $p, g.throttle = Cm, g.thru = Vi, g.toArray = Tl, g.toPairs = Fl, g.toPairsIn = Dl, g.toPath = Lv, g.toPlainObject = Rl, g.transform = A0, g.unary = Sm, g.union = wp, g.unionBy = Cp, g.unionWith = Sp, g.uniq = Op, g.uniqBy = Ep, g.uniqWith = Ip, g.unset = k0, g.unzip = Ls, g.unzipWith = ml, g.update = L0, g.updateWith = T0, g.values = hr, g.valuesIn = N0, g.without = Ap, g.words = Ul, g.wrap = Om, g.xor = kp, g.xorBy = Lp, g.xorWith = Tp, g.zip = Np, g.zipObject = Rp, g.zipObjectDeep = Pp, g.zipWith = Mp, g.entries = Fl, g.entriesIn = Dl, g.extend = Pl, g.extendWith = no, Bs(g, g), g.add = Nv, g.attempt = Hl, g.camelCase = $0, g.capitalize = jl, g.ceil = Rv, g.clamp = R0, g.clone = Im, g.cloneDeep = km, g.cloneDeepWith = Lm, g.cloneWith = Am, g.conformsTo = Tm, g.deburr = Bl, g.defaultTo = fv, g.divide = Pv, g.endsWith = F0, g.eq = Ht, g.escape = D0, g.escapeRegExp = j0, g.every = Gp, g.find = Yp, g.findIndex = fl, g.findKey = a0, g.findLast = Vp, g.findLastIndex = dl, g.findLastKey = u0, g.floor = Mv, g.forEach = _l, g.forEachRight = bl, g.forIn = l0, g.forInRight = c0, g.forOwn = f0, g.forOwnRight = d0, g.get = Ms, g.gt = Nm, g.gte = Rm, g.has = p0, g.hasIn = $s, g.head = gl, g.identity = mt, g.includes = em, g.indexOf = Vg, g.inRange = P0, g.invoke = _0, g.isArguments = Hn, g.isArray = ce, g.isArrayBuffer = Pm, g.isArrayLike = gt, g.isArrayLikeObject =
|
7393
|
+
return g.after = gm, g.ary = yl, g.assign = t0, g.assignIn = Pl, g.assignInWith = no, g.assignWith = n0, g.at = r0, g.before = xl, g.bind = Ts, g.bindAll = uv, g.bindKey = wl, g.castArray = Em, g.chain = vl, g.chunk = Mg, g.compact = $g, g.concat = Fg, g.cond = lv, g.conforms = cv, g.constant = Ds, g.countBy = Kp, g.create = i0, g.curry = Cl, g.curryRight = Sl, g.debounce = Ol, g.defaults = o0, g.defaultsDeep = s0, g.defer = pm, g.delay = mm, g.difference = Dg, g.differenceBy = jg, g.differenceWith = Bg, g.drop = Ug, g.dropRight = Hg, g.dropRightWhile = Wg, g.dropWhile = zg, g.fill = Kg, g.filter = qp, g.flatMap = Jp, g.flatMapDeep = Zp, g.flatMapDepth = Xp, g.flatten = hl, g.flattenDeep = Gg, g.flattenDepth = qg, g.flip = vm, g.flow = dv, g.flowRight = hv, g.fromPairs = Yg, g.functions = h0, g.functionsIn = g0, g.groupBy = Qp, g.initial = Jg, g.intersection = Zg, g.intersectionBy = Xg, g.intersectionWith = Qg, g.invert = m0, g.invertBy = v0, g.invokeMap = tm, g.iteratee = js, g.keyBy = nm, g.keys = Qe, g.keysIn = pt, g.map = Ji, g.mapKeys = b0, g.mapValues = y0, g.matches = gv, g.matchesProperty = pv, g.memoize = Xi, g.merge = x0, g.mergeWith = Ml, g.method = mv, g.methodOf = vv, g.mixin = Bs, g.negate = Qi, g.nthArg = bv, g.omit = w0, g.omitBy = C0, g.once = _m, g.orderBy = rm, g.over = yv, g.overArgs = bm, g.overEvery = xv, g.overSome = wv, g.partial = Ns, g.partialRight = El, g.partition = im, g.pick = S0, g.pickBy = $l, g.property = Wl, g.propertyOf = Cv, g.pull = rp, g.pullAll = pl, g.pullAllBy = ip, g.pullAllWith = op, g.pullAt = sp, g.range = Sv, g.rangeRight = Ov, g.rearg = ym, g.reject = am, g.remove = ap, g.rest = xm, g.reverse = ks, g.sampleSize = lm, g.set = E0, g.setWith = I0, g.shuffle = cm, g.slice = up, g.sortBy = hm, g.sortedUniq = pp, g.sortedUniqBy = mp, g.split = J0, g.spread = wm, g.tail = vp, g.take = _p, g.takeRight = bp, g.takeRightWhile = yp, g.takeWhile = xp, g.tap = $p, g.throttle = Cm, g.thru = Vi, g.toArray = Tl, g.toPairs = Fl, g.toPairsIn = Dl, g.toPath = Lv, g.toPlainObject = Rl, g.transform = A0, g.unary = Sm, g.union = wp, g.unionBy = Cp, g.unionWith = Sp, g.uniq = Op, g.uniqBy = Ep, g.uniqWith = Ip, g.unset = k0, g.unzip = Ls, g.unzipWith = ml, g.update = L0, g.updateWith = T0, g.values = hr, g.valuesIn = N0, g.without = Ap, g.words = Ul, g.wrap = Om, g.xor = kp, g.xorBy = Lp, g.xorWith = Tp, g.zip = Np, g.zipObject = Rp, g.zipObjectDeep = Pp, g.zipWith = Mp, g.entries = Fl, g.entriesIn = Dl, g.extend = Pl, g.extendWith = no, Bs(g, g), g.add = Nv, g.attempt = Hl, g.camelCase = $0, g.capitalize = jl, g.ceil = Rv, g.clamp = R0, g.clone = Im, g.cloneDeep = km, g.cloneDeepWith = Lm, g.cloneWith = Am, g.conformsTo = Tm, g.deburr = Bl, g.defaultTo = fv, g.divide = Pv, g.endsWith = F0, g.eq = Ht, g.escape = D0, g.escapeRegExp = j0, g.every = Gp, g.find = Yp, g.findIndex = fl, g.findKey = a0, g.findLast = Vp, g.findLastIndex = dl, g.findLastKey = u0, g.floor = Mv, g.forEach = _l, g.forEachRight = bl, g.forIn = l0, g.forInRight = c0, g.forOwn = f0, g.forOwnRight = d0, g.get = Ms, g.gt = Nm, g.gte = Rm, g.has = p0, g.hasIn = $s, g.head = gl, g.identity = mt, g.includes = em, g.indexOf = Vg, g.inRange = P0, g.invoke = _0, g.isArguments = Hn, g.isArray = ce, g.isArrayBuffer = Pm, g.isArrayLike = gt, g.isArrayLikeObject = qe, g.isBoolean = Mm, g.isBuffer = Sn, g.isDate = $m, g.isElement = Fm, g.isEmpty = Dm, g.isEqual = jm, g.isEqualWith = Bm, g.isError = Rs, g.isFinite = Um, g.isFunction = ln, g.isInteger = Il, g.isLength = eo, g.isMap = Al, g.isMatch = Hm, g.isMatchWith = Wm, g.isNaN = zm, g.isNative = Km, g.isNil = qm, g.isNull = Gm, g.isNumber = kl, g.isObject = Be, g.isObjectLike = We, g.isPlainObject = Kr, g.isRegExp = Ps, g.isSafeInteger = Ym, g.isSet = Ll, g.isString = to, g.isSymbol = St, g.isTypedArray = dr, g.isUndefined = Vm, g.isWeakMap = Jm, g.isWeakSet = Zm, g.join = ep, g.kebabCase = B0, g.last = Mt, g.lastIndexOf = tp, g.lowerCase = U0, g.lowerFirst = H0, g.lt = Xm, g.lte = Qm, g.max = $v, g.maxBy = Fv, g.mean = Dv, g.meanBy = jv, g.min = Bv, g.minBy = Uv, g.stubArray = Hs, g.stubFalse = Ws, g.stubObject = Ev, g.stubString = Iv, g.stubTrue = Av, g.multiply = Hv, g.nth = np, g.noConflict = _v, g.noop = Us, g.now = Zi, g.pad = W0, g.padEnd = z0, g.padStart = K0, g.parseInt = G0, g.random = M0, g.reduce = om, g.reduceRight = sm, g.repeat = q0, g.replace = Y0, g.result = O0, g.round = Wv, g.runInContext = S, g.sample = um, g.size = fm, g.snakeCase = V0, g.some = dm, g.sortedIndex = lp, g.sortedIndexBy = cp, g.sortedIndexOf = fp, g.sortedLastIndex = dp, g.sortedLastIndexBy = hp, g.sortedLastIndexOf = gp, g.startCase = Z0, g.startsWith = X0, g.subtract = zv, g.sum = Kv, g.sumBy = Gv, g.template = Q0, g.times = kv, g.toFinite = cn, g.toInteger = de, g.toLength = Nl, g.toLower = ev, g.toNumber = $t, g.toSafeInteger = e0, g.toString = Le, g.toUpper = tv, g.trim = nv, g.trimEnd = rv, g.trimStart = iv, g.truncate = ov, g.unescape = sv, g.uniqueId = Tv, g.upperCase = av, g.upperFirst = Fs, g.each = _l, g.eachRight = bl, g.first = gl, Bs(g, function() {
|
7394
7394
|
var e = {};
|
7395
7395
|
return Yt(g, function(t, o) {
|
7396
7396
|
Te.call(g.prototype, o) || (e[o] = t);
|
@@ -7490,7 +7490,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
7490
7490
|
}).call(Gr);
|
7491
7491
|
})(vo, vo.exports);
|
7492
7492
|
var Hb = vo.exports;
|
7493
|
-
const
|
7493
|
+
const Ke = "mineScript", L = { "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" };
|
7494
7494
|
function Zt(i, n = 1) {
|
7495
7495
|
return i + Math.round(255 * Math.min(Math.max(n, 0), 1)).toString(16).toUpperCase().padStart(2, "0");
|
7496
7496
|
}
|
@@ -8083,7 +8083,7 @@ class Yb {
|
|
8083
8083
|
if (!n)
|
8084
8084
|
return;
|
8085
8085
|
const r = n.LANGUAGE_MONARCH_TOKENS, s = [...this._funcs.values()].map((c) => c.funcs.join("|")), a = new RegExp("\\b(" + s.join("|") + ")(?=\\s*\\()"), u = [...r.tokenizer.root];
|
8086
|
-
u.splice(15, 0, [a, "meta.function-call"]), et.setMonarchTokensProvider(
|
8086
|
+
u.splice(15, 0, [a, "meta.function-call"]), et.setMonarchTokensProvider(Ke, { ...r, tokenizer: { ...r.tokenizer, root: u } });
|
8087
8087
|
}
|
8088
8088
|
}
|
8089
8089
|
const _o = new Yb();
|
@@ -8114,8 +8114,8 @@ function Vb(i, n, r) {
|
|
8114
8114
|
zt.nextIsBracket = b === "(";
|
8115
8115
|
let x = dc(zt.getSuggestions(f) || [], v);
|
8116
8116
|
if (u[0] === "." && (x = []), p && !f && !/=\s*\w+$/.test(a)) {
|
8117
|
-
const
|
8118
|
-
x = x.concat(
|
8117
|
+
const A = dc(zt.getArgSuggestions(p.funcName) || [], v);
|
8118
|
+
x = x.concat(A);
|
8119
8119
|
}
|
8120
8120
|
return {
|
8121
8121
|
suggestions: x || [],
|
@@ -8167,7 +8167,7 @@ function Xb(i, n) {
|
|
8167
8167
|
u.length % 2 === 0 ? f && f[0] === "'" && (p = !0) : f && !f[0] && (p = !0);
|
8168
8168
|
const v = kn.parseCurrentInputFuncAndArg(s, p, h);
|
8169
8169
|
if (v) {
|
8170
|
-
const { funcName: b, args: x, startIndex:
|
8170
|
+
const { funcName: b, args: x, startIndex: A } = v, T = bf.getSignatureHelpValues(b, x, A + 1, n.lineNumber);
|
8171
8171
|
if (T)
|
8172
8172
|
return {
|
8173
8173
|
value: T,
|
@@ -8320,7 +8320,7 @@ Ln.prototype = {
|
|
8320
8320
|
n = this.castInput(n), r = this.castInput(r), n = this.removeEmpty(this.tokenize(n)), r = this.removeEmpty(this.tokenize(r));
|
8321
8321
|
var h = r.length, p = n.length, v = 1, b = h + p;
|
8322
8322
|
a.maxEditLength && (b = Math.min(b, a.maxEditLength));
|
8323
|
-
var x = (s = a.timeout) !== null && s !== void 0 ? s : 1 / 0,
|
8323
|
+
var x = (s = a.timeout) !== null && s !== void 0 ? s : 1 / 0, A = Date.now() + x, T = [{
|
8324
8324
|
oldPos: -1,
|
8325
8325
|
lastComponent: void 0
|
8326
8326
|
}], F = this.extractCommon(T[0], r, n, 0);
|
@@ -8332,19 +8332,19 @@ Ln.prototype = {
|
|
8332
8332
|
var U = -1 / 0, W = 1 / 0;
|
8333
8333
|
function k() {
|
8334
8334
|
for (var B = Math.max(U, -v); B <= Math.min(W, v); B += 2) {
|
8335
|
-
var H = void 0, M = T[B - 1],
|
8335
|
+
var H = void 0, M = T[B - 1], I = T[B + 1];
|
8336
8336
|
M && (T[B - 1] = void 0);
|
8337
8337
|
var Y = !1;
|
8338
|
-
if (
|
8339
|
-
var Z =
|
8340
|
-
Y =
|
8338
|
+
if (I) {
|
8339
|
+
var Z = I.oldPos - B;
|
8340
|
+
Y = I && 0 <= Z && Z < h;
|
8341
8341
|
}
|
8342
8342
|
var X = M && M.oldPos + 1 < p;
|
8343
8343
|
if (!Y && !X) {
|
8344
8344
|
T[B] = void 0;
|
8345
8345
|
continue;
|
8346
8346
|
}
|
8347
|
-
if (!X || Y && M.oldPos + 1 <
|
8347
|
+
if (!X || Y && M.oldPos + 1 < I.oldPos ? H = c.addToPath(I, !0, void 0, 0) : H = c.addToPath(M, void 0, !0, 1), F = c.extractCommon(H, r, n, B), H.oldPos + 1 >= p && F + 1 >= h)
|
8348
8348
|
return f(ay(c, H.lastComponent, r, n, c.useLongestToken));
|
8349
8349
|
T[B] = H, H.oldPos + 1 >= p && (W = Math.min(W, B - 1)), F + 1 >= h && (U = Math.max(U, B + 1));
|
8350
8350
|
}
|
@@ -8353,13 +8353,13 @@ Ln.prototype = {
|
|
8353
8353
|
if (u)
|
8354
8354
|
(function B() {
|
8355
8355
|
setTimeout(function() {
|
8356
|
-
if (v > b || Date.now() >
|
8356
|
+
if (v > b || Date.now() > A)
|
8357
8357
|
return u();
|
8358
8358
|
k() || B();
|
8359
8359
|
}, 0);
|
8360
8360
|
})();
|
8361
8361
|
else
|
8362
|
-
for (; v <= b && Date.now() <=
|
8362
|
+
for (; v <= b && Date.now() <= A; ) {
|
8363
8363
|
var Q = k();
|
8364
8364
|
if (Q)
|
8365
8365
|
return Q;
|
@@ -8419,8 +8419,8 @@ function ay(i, n, r, s, a) {
|
|
8419
8419
|
var b = u[f];
|
8420
8420
|
if (b.removed) {
|
8421
8421
|
if (b.value = i.join(s.slice(v, v + b.count)), v += b.count, f && u[f - 1].added) {
|
8422
|
-
var
|
8423
|
-
u[f - 1] = u[f], u[f] =
|
8422
|
+
var A = u[f - 1];
|
8423
|
+
u[f - 1] = u[f], u[f] = A;
|
8424
8424
|
}
|
8425
8425
|
} else {
|
8426
8426
|
if (!b.added && a) {
|
@@ -8562,13 +8562,13 @@ class dy {
|
|
8562
8562
|
configurable: !0,
|
8563
8563
|
writable: !0,
|
8564
8564
|
value: void 0
|
8565
|
-
}), this._editor = n, this._monaco = r, this._originalModel = this._monaco.editor.createModel(s,
|
8565
|
+
}), this._editor = n, this._monaco = r, this._originalModel = this._monaco.editor.createModel(s, Ke), this._oldDecorations = [], this._init(), this._eventListening();
|
8566
8566
|
}
|
8567
8567
|
_init() {
|
8568
8568
|
this._changeEvent(), this._didChangeListener = this._editor.getModel()?.onDidChangeContent(() => this._changeEvent());
|
8569
8569
|
}
|
8570
8570
|
update(n) {
|
8571
|
-
if (this._originalModel = this._monaco.editor.createModel(n,
|
8571
|
+
if (this._originalModel = this._monaco.editor.createModel(n, Ke), n !== this._editor.getModel()?.getValue()) {
|
8572
8572
|
this._changeEvent();
|
8573
8573
|
return;
|
8574
8574
|
}
|
@@ -8736,7 +8736,7 @@ class hy {
|
|
8736
8736
|
return;
|
8737
8737
|
this._version = n;
|
8738
8738
|
const s = r.LANGUAGE_MONARCH_TOKENS, a = r.CONFIGURATION;
|
8739
|
-
zt.initBuiltinsTrees(n), kn.onVersionChange(n), bf.onVersionChange(n), this._monaco.languages.setMonarchTokensProvider(
|
8739
|
+
zt.initBuiltinsTrees(n), kn.onVersionChange(n), bf.onVersionChange(n), this._monaco.languages.setMonarchTokensProvider(Ke, s), this._monaco.languages.setLanguageConfiguration(Ke, a);
|
8740
8740
|
}
|
8741
8741
|
_init() {
|
8742
8742
|
this._register(), this._setOptions(), this._addCommands(), this._addActions(), this._setCursorPosition(), this._onTabSizeChange();
|
@@ -8756,24 +8756,24 @@ class hy {
|
|
8756
8756
|
}
|
8757
8757
|
_register() {
|
8758
8758
|
this._monaco.languages.register({
|
8759
|
-
id:
|
8759
|
+
id: Ke
|
8760
8760
|
});
|
8761
|
-
const n = this._monaco.languages.registerCompletionItemProvider(
|
8761
|
+
const n = this._monaco.languages.registerCompletionItemProvider(Ke, {
|
8762
8762
|
triggerCharacters: [".", "@"],
|
8763
8763
|
provideCompletionItems: Vb,
|
8764
8764
|
resolveCompletionItem: Jb
|
8765
8765
|
});
|
8766
8766
|
this._registerList.push(n);
|
8767
|
-
const r = this._monaco.languages.registerHoverProvider(
|
8767
|
+
const r = this._monaco.languages.registerHoverProvider(Ke, {
|
8768
8768
|
provideHover: Zb
|
8769
8769
|
});
|
8770
8770
|
this._registerList.push(r);
|
8771
|
-
const s = this._monaco.languages.registerSignatureHelpProvider(
|
8771
|
+
const s = this._monaco.languages.registerSignatureHelpProvider(Ke, {
|
8772
8772
|
signatureHelpTriggerCharacters: ["(", ","],
|
8773
8773
|
provideSignatureHelp: Xb
|
8774
8774
|
});
|
8775
8775
|
this._registerList.push(s);
|
8776
|
-
const a = this._monaco.languages.registerColorProvider(
|
8776
|
+
const a = this._monaco.languages.registerColorProvider(Ke, {
|
8777
8777
|
provideColorPresentations: ey,
|
8778
8778
|
provideDocumentColors: Qb
|
8779
8779
|
});
|
@@ -8782,7 +8782,7 @@ class hy {
|
|
8782
8782
|
openCodeEditor: (p, v, b) => {
|
8783
8783
|
const x = ty(p, b);
|
8784
8784
|
if (x) {
|
8785
|
-
const { index:
|
8785
|
+
const { index: A, docValue: T } = x, { title: F, name: U } = T[A];
|
8786
8786
|
let W = "";
|
8787
8787
|
switch (F) {
|
8788
8788
|
case Ie.keywords:
|
@@ -8802,7 +8802,7 @@ class hy {
|
|
8802
8802
|
W = "const";
|
8803
8803
|
break;
|
8804
8804
|
}
|
8805
|
-
this._onLinkOpen && this._onLinkOpen(`${W}_${U}`,
|
8805
|
+
this._onLinkOpen && this._onLinkOpen(`${W}_${U}`, A, this._version);
|
8806
8806
|
}
|
8807
8807
|
return !0;
|
8808
8808
|
}
|
@@ -8812,11 +8812,11 @@ class hy {
|
|
8812
8812
|
open: (p) => (this._onLinkOpen && p.fragment && this._onLinkOpen(p.fragment, 0, this._version), !!p.fragment)
|
8813
8813
|
});
|
8814
8814
|
this._registerList.push(c);
|
8815
|
-
const f = this._monaco.languages.registerDefinitionProvider(
|
8815
|
+
const f = this._monaco.languages.registerDefinitionProvider(Ke, {
|
8816
8816
|
provideDefinition: ny
|
8817
8817
|
});
|
8818
8818
|
this._registerList.push(f);
|
8819
|
-
const h = this._monaco.languages.registerInlayHintsProvider(
|
8819
|
+
const h = this._monaco.languages.registerInlayHintsProvider(Ke, {
|
8820
8820
|
provideInlayHints: ry
|
8821
8821
|
});
|
8822
8822
|
this._registerList.push(h);
|
@@ -8970,7 +8970,7 @@ function Sf(i, n = globalThis, r = ["*"]) {
|
|
8970
8970
|
const { id: u, type: c, path: f } = Object.assign({ path: [] }, a.data), h = (a.data.argumentList || []).map(zn);
|
8971
8971
|
let p;
|
8972
8972
|
try {
|
8973
|
-
const v = f.slice(0, -1).reduce((x,
|
8973
|
+
const v = f.slice(0, -1).reduce((x, A) => x[A], i), b = f.reduce((x, A) => x[A], i);
|
8974
8974
|
switch (c) {
|
8975
8975
|
case "GET":
|
8976
8976
|
p = b;
|
@@ -8989,8 +8989,8 @@ function Sf(i, n = globalThis, r = ["*"]) {
|
|
8989
8989
|
break;
|
8990
8990
|
case "ENDPOINT":
|
8991
8991
|
{
|
8992
|
-
const { port1: x, port2:
|
8993
|
-
Sf(i,
|
8992
|
+
const { port1: x, port2: A } = new MessageChannel();
|
8993
|
+
Sf(i, A), p = Cy(x, [x]);
|
8994
8994
|
}
|
8995
8995
|
break;
|
8996
8996
|
case "RELEASE":
|
@@ -9156,7 +9156,7 @@ function mr(i, n, r) {
|
|
9156
9156
|
function Sy() {
|
9157
9157
|
return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
|
9158
9158
|
}
|
9159
|
-
const Af = new Worker(new URL("" + new URL("assets/scriptsRunWorker-
|
9159
|
+
const Af = new Worker(new URL("" + new URL("assets/scriptsRunWorker-DwpQi_P7.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run MineScript Server" });
|
9160
9160
|
Af.onerror = (i) => {
|
9161
9161
|
console.error(i);
|
9162
9162
|
};
|
@@ -9571,7 +9571,7 @@ const e1 = (i, n) => {
|
|
9571
9571
|
} = Yv(Xy) || {}, u = r || s || Jy();
|
9572
9572
|
if (u && !u.reportNamespaces && (u.reportNamespaces = new Qy()), !u) {
|
9573
9573
|
ia("You will need to pass in an i18next instance by using initReactI18next");
|
9574
|
-
const B = (M,
|
9574
|
+
const B = (M, I) => Kn(I) ? I : Hy(I) && Kn(I.defaultValue) ? I.defaultValue : Array.isArray(M) ? M[M.length - 1] : M, H = [B, {}, !1];
|
9575
9575
|
return H.t = B, H.i18n = {}, H.ready = !1, H;
|
9576
9576
|
}
|
9577
9577
|
u.options.react?.wait && ia("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
@@ -9585,7 +9585,7 @@ const e1 = (i, n) => {
|
|
9585
9585
|
} = c;
|
9586
9586
|
let p = i || a || u.options?.defaultNS;
|
9587
9587
|
p = Kn(p) ? [p] : p || ["translation"], u.reportNamespaces.addUsedNamespaces?.(p);
|
9588
|
-
const v = (u.isInitialized || u.initializedStoreOnce) && p.every((B) => Uy(B, u, c)), b = t1(u, n.lng || null, c.nsMode === "fallback" ? p : p[0], h), x = () => b,
|
9588
|
+
const v = (u.isInitialized || u.initializedStoreOnce) && p.every((B) => Uy(B, u, c)), b = t1(u, n.lng || null, c.nsMode === "fallback" ? p : p[0], h), x = () => b, A = () => Mf(u, n.lng || null, c.nsMode === "fallback" ? p : p[0], h), [T, F] = Re(x);
|
9589
9589
|
let U = p.join();
|
9590
9590
|
n.lng && (U = `${n.lng}${U}`);
|
9591
9591
|
const W = e1(U), k = Ce(!0);
|
@@ -9595,15 +9595,15 @@ const e1 = (i, n) => {
|
|
9595
9595
|
bindI18nStore: H
|
9596
9596
|
} = c;
|
9597
9597
|
k.current = !0, !v && !f && (n.lng ? xc(u, n.lng, p, () => {
|
9598
|
-
k.current && F(
|
9598
|
+
k.current && F(A);
|
9599
9599
|
}) : oa(u, p, () => {
|
9600
|
-
k.current && F(
|
9601
|
-
})), v && W && W !== U && k.current && F(
|
9600
|
+
k.current && F(A);
|
9601
|
+
})), v && W && W !== U && k.current && F(A);
|
9602
9602
|
const M = () => {
|
9603
|
-
k.current && F(
|
9603
|
+
k.current && F(A);
|
9604
9604
|
};
|
9605
9605
|
return B && u?.on(B, M), H && u?.store.on(H, M), () => {
|
9606
|
-
k.current = !1, u && B?.split(" ").forEach((
|
9606
|
+
k.current = !1, u && B?.split(" ").forEach((I) => u.off(I, M)), H && u && H.split(" ").forEach((I) => u.store.off(I, M));
|
9607
9607
|
};
|
9608
9608
|
}, [u, U]), Oe(() => {
|
9609
9609
|
k.current && v && F(x);
|
@@ -9755,12 +9755,12 @@ self.MonacoEnvironment = {
|
|
9755
9755
|
};
|
9756
9756
|
fa.config({
|
9757
9757
|
paths: {
|
9758
|
-
vs: "https://
|
9758
|
+
vs: "https://www.tradingvue.com/vs"
|
9759
9759
|
},
|
9760
9760
|
"vs/nls": { availableLanguages: { "*": "zh-cn" } }
|
9761
9761
|
});
|
9762
9762
|
const i1 = (i, n) => {
|
9763
|
-
const { height: r, width: s, theme: a, options: u, hasDiff: c, readOnly: f, defaultValue: h, language: p, onChange: v, onLinkOpen: b, onCursorPositionChange: x, onActionTrigger:
|
9763
|
+
const { height: r, width: s, theme: a, options: u, hasDiff: c, readOnly: f, defaultValue: h, language: p, onChange: v, onLinkOpen: b, onCursorPositionChange: x, onActionTrigger: A, onEditorDidMount: T, onVersionChange: F } = i, { t: U, i18n: W } = br(), k = Ce(null), Q = Ce(null), B = Ce(!1), H = Ce(!1);
|
9764
9764
|
lf(n, () => ({
|
9765
9765
|
setOriginalScript(te) {
|
9766
9766
|
k.current?.setOriginalScript(te);
|
@@ -9792,35 +9792,35 @@ const i1 = (i, n) => {
|
|
9792
9792
|
}, [a]), Oe(() => {
|
9793
9793
|
p && W.changeLanguage(p);
|
9794
9794
|
}, [p]), Oe(() => {
|
9795
|
-
k.current?.updateActionTrigger(
|
9796
|
-
}, [
|
9795
|
+
k.current?.updateActionTrigger(A);
|
9796
|
+
}, [A]), Oe(() => {
|
9797
9797
|
b && k.current?.addLinkOpenFunc(b);
|
9798
9798
|
}, [b]);
|
9799
9799
|
function M(te, xe) {
|
9800
|
-
_o.setEditor(te), k.current = new hy(te, xe,
|
9800
|
+
_o.setEditor(te), k.current = new hy(te, xe, A), b && k.current?.addLinkOpenFunc(b), c && k.current?.addDiffDecorations(), jb(te), requestAnimationFrame(X);
|
9801
9801
|
const z = te.getValue();
|
9802
|
-
k.current.onChangeCursorPosition(x), v && v(z), !f &&
|
9802
|
+
k.current.onChangeCursorPosition(x), v && v(z), !f && I(z), T && T();
|
9803
9803
|
}
|
9804
|
-
const
|
9804
|
+
const I = En(async (te) => {
|
9805
9805
|
B.current = !1;
|
9806
|
-
const { errors: xe, functions: z, methods: ne, types: q, variables: ie, overloadsFuncs: j, imports: V, enums: he } = await Oy(te, !1, Kt), Ae = new Map(Object.entries(z)), fe = new Map(Object.entries(ne)), De = new Map(Object.entries(q)),
|
9806
|
+
const { errors: xe, functions: z, methods: ne, types: q, variables: ie, overloadsFuncs: j, imports: V, enums: he } = await Oy(te, !1, Kt), Ae = new Map(Object.entries(z)), fe = new Map(Object.entries(ne)), De = new Map(Object.entries(q)), Ge = new Map(Object.entries(ie)), at = new Map(Object.entries(V)), Xe = new Map(Object.entries(he));
|
9807
9807
|
kn.setUserDefined({
|
9808
9808
|
functions: Ae,
|
9809
9809
|
methods: fe,
|
9810
9810
|
types: De,
|
9811
|
-
variables:
|
9811
|
+
variables: Ge,
|
9812
9812
|
imports: at,
|
9813
9813
|
enums: Xe
|
9814
|
-
}, j), zt.setUserDefind(Ae, De,
|
9814
|
+
}, j), zt.setUserDefind(Ae, De, Ge, fe, Xe);
|
9815
9815
|
const Ve = xe.map((_t) => ({
|
9816
9816
|
..._t,
|
9817
9817
|
severity: _t.type || Zv.Error
|
9818
9818
|
}));
|
9819
9819
|
f || !B.current && !H.current && Ve.length && k.current?.setModelMarkers(Ve);
|
9820
|
-
}, [f]), Y = Vv(() => Hb.debounce(
|
9820
|
+
}, [f]), Y = Vv(() => Hb.debounce(I, 1500), [I]);
|
9821
9821
|
function Z(te) {
|
9822
9822
|
if (f) {
|
9823
|
-
|
9823
|
+
I(te || "");
|
9824
9824
|
return;
|
9825
9825
|
}
|
9826
9826
|
B.current = !0, _o.clearInlayHints(), k.current?.setModelMarkers([]), te !== void 0 && (v && v(te), Y(te));
|
@@ -9836,7 +9836,7 @@ const i1 = (i, n) => {
|
|
9836
9836
|
return Q.current && xe.observe(Q.current), () => {
|
9837
9837
|
Q.current && xe.unobserve(Q.current), xe.disconnect(), k.current?.dispose();
|
9838
9838
|
};
|
9839
|
-
}, []), C.jsx("div", { ref: Q, children: C.jsx(ab, { height: r, width: s || "100%", defaultLanguage:
|
9839
|
+
}, []), C.jsx("div", { ref: Q, children: C.jsx(ab, { height: r, width: s || "100%", defaultLanguage: Ke, defaultValue: h || `indicator("我的脚本")
|
9840
9840
|
plot(close)
|
9841
9841
|
`, theme: a || "vs-dark", className: `tvue-script ${a || "vs-dark"}`, options: {
|
9842
9842
|
colorDecorators: !0,
|
@@ -9862,16 +9862,16 @@ plot(close)
|
|
9862
9862
|
}, P1 = uf(i1), M1 = (i) => {
|
9863
9863
|
const { theme: n, modified: r, original: s, height: a, width: u, renderSideBySide: c = !0, version: f = 5 } = i, h = En(async (p, v) => {
|
9864
9864
|
v.languages.register({
|
9865
|
-
id:
|
9865
|
+
id: Ke
|
9866
9866
|
}), v.editor.defineTheme("vs-dark", ha), v.editor.defineTheme("vs", da);
|
9867
9867
|
const b = await Oo(f);
|
9868
|
-
b && (v.languages.setMonarchTokensProvider(
|
9868
|
+
b && (v.languages.setMonarchTokensProvider(Ke, b.LANGUAGE_MONARCH_TOKENS), v.languages.setLanguageConfiguration(Ke, b.CONFIGURATION));
|
9869
9869
|
}, [f]);
|
9870
9870
|
return C.jsx(nb, { height: a || "90vh", width: u || "100%", theme: n || "vs-dark", options: {
|
9871
9871
|
readOnly: !0,
|
9872
9872
|
renderSideBySide: c,
|
9873
9873
|
scrollBeyondLastLine: !1
|
9874
|
-
}, language:
|
9874
|
+
}, language: Ke, modified: r, original: s, onMount: h });
|
9875
9875
|
};
|
9876
9876
|
var wc;
|
9877
9877
|
(function(i) {
|
@@ -10070,8 +10070,8 @@ var Df = /* @__PURE__ */ function(i) {
|
|
10070
10070
|
for (var a = arguments.length, u = new Array(a), c = 0; c < a; c++)
|
10071
10071
|
u[c] = arguments[c];
|
10072
10072
|
return s = n.call.apply(n, [this].concat(u)), va(Ff(s), "onClick", function(f) {
|
10073
|
-
var h = s.props, p = h.text, v = h.onCopy, b = h.children, x = h.options,
|
10074
|
-
v && v(p, T),
|
10073
|
+
var h = s.props, p = h.text, v = h.onCopy, b = h.children, x = h.options, A = uo.default.Children.only(b), T = (0, f1.default)(p, x);
|
10074
|
+
v && v(p, T), A && A.props && typeof A.props.onClick == "function" && A.props.onClick(f);
|
10075
10075
|
}), s;
|
10076
10076
|
}
|
10077
10077
|
return m1(r, [{
|
@@ -10096,16 +10096,16 @@ la.CopyToClipboard = la;
|
|
10096
10096
|
var w1 = la;
|
10097
10097
|
const _r = /* @__PURE__ */ Qv(w1);
|
10098
10098
|
et.register({
|
10099
|
-
id:
|
10099
|
+
id: Ke
|
10100
10100
|
});
|
10101
10101
|
In.defineTheme("vs-dark", ha);
|
10102
10102
|
In.defineTheme("vs", da);
|
10103
10103
|
async function _a(i) {
|
10104
10104
|
const n = await Oo(i);
|
10105
|
-
n && (et.setMonarchTokensProvider(
|
10105
|
+
n && (et.setMonarchTokensProvider(Ke, n.LANGUAGE_MONARCH_TOKENS), et.setLanguageConfiguration(Ke, n.CONFIGURATION));
|
10106
10106
|
}
|
10107
10107
|
async function C1(i, n, r) {
|
10108
|
-
return n && In.setTheme(n.includes("dark") ? "vs-dark" : "light"), r && await _a(r), await In.colorize(i,
|
10108
|
+
return n && In.setTheme(n.includes("dark") ? "vs-dark" : "light"), r && await _a(r), await In.colorize(i, Ke, {
|
10109
10109
|
tabSize: 4
|
10110
10110
|
});
|
10111
10111
|
}
|
@@ -10113,7 +10113,7 @@ async function ba(i, n = 0) {
|
|
10113
10113
|
const r = i[n];
|
10114
10114
|
if (!r)
|
10115
10115
|
return;
|
10116
|
-
const { name: s, args: a, type: u, desc: c, examples: f, remarks: h, seeAlso: p, syntax: v, detailedDesc: b, fields: x, returns:
|
10116
|
+
const { name: s, args: a, type: u, desc: c, examples: f, remarks: h, seeAlso: p, syntax: v, detailedDesc: b, fields: x, returns: A } = r, T = {
|
10117
10117
|
name: s,
|
10118
10118
|
orirginalName: s
|
10119
10119
|
};
|
@@ -10124,7 +10124,7 @@ async function ba(i, n = 0) {
|
|
10124
10124
|
desc: W && Wn(W)
|
10125
10125
|
};
|
10126
10126
|
})), c && (T.desc = c.map((F) => Wn(F))), f && (T.originalExample = f.join(`
|
10127
|
-
`), T.examples = await In.colorize(T.originalExample,
|
10127
|
+
`), T.examples = await In.colorize(T.originalExample, Ke, {
|
10128
10128
|
tabSize: 4
|
10129
10129
|
})), b) {
|
10130
10130
|
T.detailedDesc = [];
|
@@ -10139,7 +10139,7 @@ async function ba(i, n = 0) {
|
|
10139
10139
|
});
|
10140
10140
|
}
|
10141
10141
|
}
|
10142
|
-
return
|
10142
|
+
return A && (T.returns = A.map((F) => Wn(F))), h && (T.remarks = typeof h == "string" ? [Wn(h)] : h.map((F) => Wn(F))), v && (T.syntax = i.map((F) => F.syntax?.[0])), x && (T.fields = x.map((F) => {
|
10143
10143
|
const { name: U, desc: W, type: k } = F;
|
10144
10144
|
return {
|
10145
10145
|
label: `${U} (${k})`,
|
@@ -10191,13 +10191,13 @@ function jf(i, n, r, s) {
|
|
10191
10191
|
}));
|
10192
10192
|
const b = s[f.key].get(p) || [];
|
10193
10193
|
for (const x of b) {
|
10194
|
-
const { name:
|
10195
|
-
label:
|
10194
|
+
const { name: A, args: T, type: F, desc: U, examples: W, remarks: k, seeAlso: Q, syntax: B, detailedDesc: H, fields: M, returns: I } = x, Y = {
|
10195
|
+
label: A,
|
10196
10196
|
index: h,
|
10197
10197
|
group: f,
|
10198
|
-
key: `${f.prefix}_${
|
10198
|
+
key: `${f.prefix}_${A}`
|
10199
10199
|
};
|
10200
|
-
if (f.prefix === "fun" && (Y.label = `${
|
10200
|
+
if (f.prefix === "fun" && (Y.label = `${A}()`), Y.label.includes(i))
|
10201
10201
|
break;
|
10202
10202
|
if (T) {
|
10203
10203
|
let Z = !1;
|
@@ -10280,9 +10280,9 @@ function jf(i, n, r, s) {
|
|
10280
10280
|
if (Z)
|
10281
10281
|
break;
|
10282
10282
|
}
|
10283
|
-
if (
|
10283
|
+
if (I) {
|
10284
10284
|
let Z = !1;
|
10285
|
-
for (const X of
|
10285
|
+
for (const X of I)
|
10286
10286
|
if (X.includes(i)) {
|
10287
10287
|
c.push(Y), Z = !0;
|
10288
10288
|
break;
|
@@ -10298,21 +10298,21 @@ function jf(i, n, r, s) {
|
|
10298
10298
|
};
|
10299
10299
|
}
|
10300
10300
|
const O1 = (i) => {
|
10301
|
-
const { group: n, itemKey: r, onItemClick: s, currentIndex: a, keyMaps: u, version: c } = i, { t: f } = br(), [h, p] = Re(), [v, b] = Re(""), [x,
|
10301
|
+
const { group: n, itemKey: r, onItemClick: s, currentIndex: a, keyMaps: u, version: c } = i, { t: f } = br(), [h, p] = Re(), [v, b] = Re(""), [x, A] = Re(0), [T, F] = Re(f("Copy code")), [U, W] = Re(f("Copy link"));
|
10302
10302
|
Oe(() => {
|
10303
10303
|
k(a);
|
10304
10304
|
}, [r, u]);
|
10305
|
-
const k = (
|
10305
|
+
const k = (I) => {
|
10306
10306
|
const Y = r.replace(`${n?.prefix}_`, ""), Z = u?.[n?.key]?.get(Y);
|
10307
|
-
I
|
10307
|
+
A(I), Z && ba(Z, I).then((X) => {
|
10308
10308
|
p(X), b(`${window.location.origin}/reference-manual/#${n?.prefix}_${X?.orirginalName}`);
|
10309
10309
|
});
|
10310
|
-
}, Q = (
|
10311
|
-
k(
|
10312
|
-
}, B = (
|
10313
|
-
if (
|
10314
|
-
|
10315
|
-
const { hash: Y } =
|
10310
|
+
}, Q = (I) => {
|
10311
|
+
k(I);
|
10312
|
+
}, B = (I) => {
|
10313
|
+
if (I.target.localName === "a" && I.target.hash && I.target?.dataset?.name) {
|
10314
|
+
I.preventDefault();
|
10315
|
+
const { hash: Y } = I.target;
|
10316
10316
|
s(Y.replace("#", ""));
|
10317
10317
|
}
|
10318
10318
|
}, H = () => {
|
@@ -10324,23 +10324,23 @@ const O1 = (i) => {
|
|
10324
10324
|
W(f("Copy link"));
|
10325
10325
|
}, 3e3);
|
10326
10326
|
};
|
10327
|
-
return C.jsx("div", { onClick: B, id: `#${r}`, children: C.jsxs("div", { className: "manual-content-wrapper", children: [C.jsxs("div", { className: "manual-content-header", children: [C.jsxs("div", { children: [C.jsx("h3", { className: "manual-content-header-title", children: h?.name }), !!h?.overloads && C.jsx("span", { className: "manual-content-header-overloads", children: h?.overloads })] }), C.jsx(_r, { text: v, onCopy: M, children: C.jsx("div", { "data-tooltip": U, className: "manual-content-btn", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: "28", height: "28", children: C.jsxs("g", { fill: "currentColor", children: [C.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" }), C.jsx("path", { d: "M10.485 16.141l5.656-5.656.707.707-5.656 5.656z" })] }) }) }) })] }), h?.desc?.map((
|
10328
|
-
__html:
|
10329
|
-
}, className: "manual-content-text" }, Y)), h?.type && C.jsxs(
|
10330
|
-
__html:
|
10331
|
-
} })] }, Y))] }), h?.fields && C.jsxs(
|
10332
|
-
__html:
|
10333
|
-
} })] }, Y))] }), h?.examples && C.jsxs(
|
10327
|
+
return C.jsx("div", { onClick: B, id: `#${r}`, children: C.jsxs("div", { className: "manual-content-wrapper", children: [C.jsxs("div", { className: "manual-content-header", children: [C.jsxs("div", { children: [C.jsx("h3", { className: "manual-content-header-title", children: h?.name }), !!h?.overloads && C.jsx("span", { className: "manual-content-header-overloads", children: h?.overloads })] }), C.jsx(_r, { text: v, onCopy: M, children: C.jsx("div", { "data-tooltip": U, className: "manual-content-btn", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: "28", height: "28", children: C.jsxs("g", { fill: "currentColor", children: [C.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" }), C.jsx("path", { d: "M10.485 16.141l5.656-5.656.707.707-5.656 5.656z" })] }) }) }) })] }), h?.desc?.map((I, Y) => C.jsx("div", { dangerouslySetInnerHTML: {
|
10328
|
+
__html: I
|
10329
|
+
}, className: "manual-content-text" }, Y)), h?.type && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-content-sub-title", children: f("type") }), C.jsx("div", { className: "manual-content-text", children: h.type })] }), h?.syntax && C.jsxs(Ue, { children: [C.jsxs("div", { className: "manual-content-sub-title", children: [f("syntax"), " ", !!h?.overloads && `& ${f("overloads")}`] }), h.syntax.map((I, Y) => (h.syntax?.length || 0) > 1 ? C.jsx("div", { onClick: () => Q(Y), children: C.jsx("pre", { className: `manual-content-syntax with-overloads ${Y === x ? "selected" : ""}`, children: I }) }, Y) : C.jsx("pre", { className: "manual-content-syntax", children: I }, Y))] }), h?.args && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-content-sub-title", children: f("arguments") }), h.args.map((I, Y) => C.jsxs("div", { className: "manual-content-text", children: [C.jsx("span", { className: "manual-content-args-label", children: I.label }), " ", C.jsx("span", { dangerouslySetInnerHTML: {
|
10330
|
+
__html: I.desc || ""
|
10331
|
+
} })] }, Y))] }), h?.fields && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-content-sub-title", children: f("fields") }), h.fields.map((I, Y) => C.jsxs("div", { className: "manual-content-text", children: [C.jsx("span", { className: "manual-content-args-label", children: I.label }), " ", C.jsx("span", { dangerouslySetInnerHTML: {
|
10332
|
+
__html: I.desc || ""
|
10333
|
+
} })] }, Y))] }), h?.examples && C.jsxs(Ue, { children: [C.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [C.jsx("div", { children: C.jsx("span", { children: f("example") }) }), C.jsx(_r, { text: h.originalExample || "", onCopy: H, children: C.jsx("div", { "data-tooltip": T, className: "manual-content-btn manual-content-example-copy", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: C.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" }) }) }) })] }), C.jsx("pre", { className: "manual-content-example", children: C.jsx("code", { dangerouslySetInnerHTML: {
|
10334
10334
|
__html: h.examples
|
10335
|
-
} }) })] }), h?.detailedDesc && h.detailedDesc.map((
|
10335
|
+
} }) })] }), h?.detailedDesc && h.detailedDesc.map((I, Y) => C.jsxs(Ue, { children: [I.desc.map((Z, X) => C.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
10336
10336
|
__html: Z
|
10337
|
-
} }, X)), C.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [C.jsx("div", { children: C.jsx("span", { children: f("example") }) }), C.jsx(_r, { text:
|
10338
|
-
__html:
|
10339
|
-
} }) })] }, Y)), h?.returns && C.jsxs(
|
10340
|
-
__html:
|
10341
|
-
} }, Y))] }), h?.remarks && C.jsxs(
|
10342
|
-
__html:
|
10343
|
-
} }, Y))] }), h?.seeAlso && C.jsxs(
|
10337
|
+
} }, X)), !!(I.examples && I.examples.length) && C.jsxs(Ue, { children: [C.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [C.jsx("div", { children: C.jsx("span", { children: f("example") }) }), C.jsx(_r, { text: I.originalExample || "", onCopy: H, children: C.jsx("div", { "data-tooltip": T, className: "manual-content-btn manual-content-example-copy", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: C.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" }) }) }) })] }), C.jsx("pre", { className: "manual-content-example", children: C.jsx("code", { dangerouslySetInnerHTML: {
|
10338
|
+
__html: I.examples || ""
|
10339
|
+
} }) })] })] }, Y)), h?.returns && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-content-sub-title", children: f("returns") }), h.returns.map((I, Y) => C.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
10340
|
+
__html: I
|
10341
|
+
} }, Y))] }), h?.remarks && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-content-sub-title", children: f("remarks") }), h.remarks.map((I, Y) => C.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
10342
|
+
__html: I
|
10343
|
+
} }, Y))] }), h?.seeAlso && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-content-sub-title", children: f("see also") }), C.jsx("div", { className: "manual-content-see_also", children: h.seeAlso.map((I, Y) => C.jsx("a", { className: "manual-content-see_also-tag", "data-name": I?.name, href: I?.link, children: I?.name }, Y)) })] })] }) });
|
10344
10344
|
}, Ic = {
|
10345
10345
|
// title: 'Variables',
|
10346
10346
|
title: "内置变量",
|
@@ -10348,7 +10348,7 @@ const O1 = (i) => {
|
|
10348
10348
|
prefix: "var",
|
10349
10349
|
index: 0
|
10350
10350
|
}, $1 = ({ theme: i = "vs-dark", language: n, currentValue: r, version: s = Kt, onChange: a, onVersionChange: u }) => {
|
10351
|
-
const [c, f] = Re({}), { t: h, i18n: p } = br(), [v, b] = Re(Ic), [x,
|
10351
|
+
const [c, f] = Re({}), { t: h, i18n: p } = br(), [v, b] = Re(Ic), [x, A] = Re(s || 5), [T, F] = Re(null), [U, W] = Re(0), [k, Q] = Re(""), [B, H] = Re(s !== 5 ? "var_accdist" : "var_bar_index"), M = Ce(null), I = Ce(null), Y = Ce(null), Z = (j) => {
|
10352
10352
|
j.key === v?.key && !v?.isHidden ? b({ ...j, isHidden: !0 }) : b(j), M.current?.focus();
|
10353
10353
|
}, X = (j, V = !1) => {
|
10354
10354
|
_a(j), An(j).then((he) => {
|
@@ -10388,11 +10388,11 @@ const O1 = (i) => {
|
|
10388
10388
|
}
|
10389
10389
|
}, ne = () => {
|
10390
10390
|
Q(""), F(null), setTimeout(() => {
|
10391
|
-
|
10391
|
+
I.current?.querySelector(`a[data-href="${B}"]`)?.scrollIntoView(!0);
|
10392
10392
|
}, 10), M.current?.focus();
|
10393
10393
|
}, q = (j, V) => {
|
10394
10394
|
b(j), H(V), a && a(V), setTimeout(() => {
|
10395
|
-
|
10395
|
+
I.current?.querySelector(`a[data-href="${V}"]`)?.scrollIntoView(!0);
|
10396
10396
|
}, 10), Y.current?.scrollTo({ top: 0 });
|
10397
10397
|
}, ie = (j) => {
|
10398
10398
|
const V = c.CONTENT_GROUPS?.find((he) => j.startsWith(he.prefix));
|
@@ -10402,28 +10402,28 @@ const O1 = (i) => {
|
|
10402
10402
|
V.preventDefault(), xe(j.key, j.group);
|
10403
10403
|
}, className: `manual-group-body-item ${j.key === B ? "manual-group-body-item-selected" : ""}`, "data-href": j.key, href: `#${j.key}`, children: j.label }, `search_${j.key}`)), C.jsx("div", { className: "manual-content-separator" }), T?.contentList.map((j) => C.jsx("a", { onClick: (V) => {
|
10404
10404
|
V.preventDefault(), xe(j.key, j.group);
|
10405
|
-
}, className: `manual-group-body-item ${j.key === B ? "manual-group-body-item-selected" : ""}`, "data-href": j.key, href: `#${j.key}`, children: j.label }, `search_${j.key}`))] }) }), C.jsx("div", { className: `manual-group-list manual-scroll ${k ? "hide" : ""}`, ref:
|
10405
|
+
}, className: `manual-group-body-item ${j.key === B ? "manual-group-body-item-selected" : ""}`, "data-href": j.key, href: `#${j.key}`, children: j.label }, `search_${j.key}`))] }) }), C.jsx("div", { className: `manual-group-list manual-scroll ${k ? "hide" : ""}`, ref: I, children: c.CONTENT_GROUPS?.map((j) => C.jsxs(Ue, { children: [C.jsx("div", { onClick: () => Z(j), className: `manual-group-title ${j.key === v?.key && !v?.isHidden ? "active" : ""}`, children: h(j.key) }), C.jsx("div", { className: `manual-group-body manual-scroll ${j.key !== v?.key || v?.isHidden ? "hide" : ""}`, children: c.KEY_LIST?.[j.key]?.sort().filter((V) => !c.NOT_SHOW_KEYWORDS?.includes(V))?.map((V) => {
|
10406
10406
|
const he = `${j.prefix}_${V}`;
|
10407
10407
|
return C.jsx("a", { onClick: (Ae) => {
|
10408
10408
|
Ae.preventDefault(), xe(he);
|
10409
10409
|
}, className: `manual-group-body-item ${he === B ? "manual-group-body-item-selected" : ""}`, "data-href": he, href: `#${he}`, children: `${V}${j.prefix === "fun" ? "()" : ""}` }, he);
|
10410
10410
|
}) })] }, j.key)) })] }), C.jsx("div", { ref: Y, className: "manual-right manual-scroll", children: C.jsx(O1, { currentIndex: U, version: x, keyMaps: c.KEY_MAP_LIST, group: v, itemKey: B, onItemClick: ie }) })] });
|
10411
10411
|
}, E1 = (i) => {
|
10412
|
-
const { onItemClick: n, item: r, prefix: s, value: a, version: u } = i, { t: c } = br(), [f, h] = Re(), [p, v] = Re(""), [b, x] = Re(0), [
|
10412
|
+
const { onItemClick: n, item: r, prefix: s, value: a, version: u } = i, { t: c } = br(), [f, h] = Re(), [p, v] = Re(""), [b, x] = Re(0), [A, T] = Re(c("Copy code")), [F, U] = Re(c("Copy link"));
|
10413
10413
|
Oe(() => {
|
10414
10414
|
a && (h(a), v(`${window.location.origin}/reference-manual/#${s}_${a?.orirginalName}`));
|
10415
10415
|
}, [a]);
|
10416
10416
|
const W = (M = 0) => {
|
10417
|
-
x(M), ba(r, M).then((
|
10418
|
-
h(
|
10417
|
+
x(M), ba(r, M).then((I) => {
|
10418
|
+
h(I), v(`${window.location.origin}/reference-manual/#${s}_${I?.orirginalName}`);
|
10419
10419
|
});
|
10420
10420
|
}, k = (M) => {
|
10421
10421
|
W(M);
|
10422
10422
|
}, Q = (M) => {
|
10423
10423
|
if (M.target.localName === "a" && M.target.hash && M.target?.dataset?.name) {
|
10424
10424
|
M.preventDefault();
|
10425
|
-
const { hash:
|
10426
|
-
n(
|
10425
|
+
const { hash: I } = M.target;
|
10426
|
+
n(I.replace("#", ""));
|
10427
10427
|
}
|
10428
10428
|
}, B = () => {
|
10429
10429
|
T(c("Copied")), setTimeout(() => {
|
@@ -10434,25 +10434,25 @@ const O1 = (i) => {
|
|
10434
10434
|
U(c("Copy link"));
|
10435
10435
|
}, 3e3);
|
10436
10436
|
};
|
10437
|
-
return C.jsx("div", { onClick: Q, id: `${s}_${f?.orirginalName}`, children: C.jsxs("div", { className: "manual-page-content-wrapper", children: [C.jsxs("div", { className: "manual-page-content-header", children: [C.jsxs("div", { children: [C.jsx("h3", { className: "manual-page-content-header-title", children: f?.name }), !!f?.overloads && C.jsx("span", { className: "manual-page-content-header-overloads", children: f?.overloads })] }), C.jsx(_r, { text: p, onCopy: H, children: C.jsx("div", { "data-tooltip": F, className: "manual-page-content-btn", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: "28", height: "28", children: C.jsxs("g", { fill: "currentColor", children: [C.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" }), C.jsx("path", { d: "M10.485 16.141l5.656-5.656.707.707-5.656 5.656z" })] }) }) }) })] }), f?.desc?.map((M,
|
10437
|
+
return C.jsx("div", { onClick: Q, id: `${s}_${f?.orirginalName}`, children: C.jsxs("div", { className: "manual-page-content-wrapper", children: [C.jsxs("div", { className: "manual-page-content-header", children: [C.jsxs("div", { children: [C.jsx("h3", { className: "manual-page-content-header-title", children: f?.name }), !!f?.overloads && C.jsx("span", { className: "manual-page-content-header-overloads", children: f?.overloads })] }), C.jsx(_r, { text: p, onCopy: H, children: C.jsx("div", { "data-tooltip": F, className: "manual-page-content-btn", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: "28", height: "28", children: C.jsxs("g", { fill: "currentColor", children: [C.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" }), C.jsx("path", { d: "M10.485 16.141l5.656-5.656.707.707-5.656 5.656z" })] }) }) }) })] }), f?.desc?.map((M, I) => C.jsx("div", { dangerouslySetInnerHTML: {
|
10438
10438
|
__html: M
|
10439
|
-
}, className: "manual-page-content-text" },
|
10439
|
+
}, className: "manual-page-content-text" }, I)), f?.type && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-page-content-sub-title", children: c("type") }), C.jsx("div", { className: "manual-page-content-text", children: f.type })] }), f?.syntax && C.jsxs(Ue, { children: [C.jsxs("div", { className: "manual-page-content-sub-title", children: [c("syntax"), " ", !!f?.overloads && `& ${c("overloads")}`] }), f.syntax.map((M, I) => (f.syntax?.length || 0) > 1 ? C.jsx("div", { onClick: () => k(I), children: C.jsx("pre", { className: `manual-page-content-syntax with-overloads ${I === b ? "selected" : ""}`, children: M }) }, I) : C.jsx("pre", { className: "manual-page-content-syntax", children: M }, I))] }), f?.args && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-page-content-sub-title", children: c("arguments") }), f.args.map((M, I) => C.jsxs("div", { className: "manual-page-content-text", children: [C.jsx("span", { className: "manual-page-content-args-label", children: M.label }), " ", C.jsx("span", { dangerouslySetInnerHTML: {
|
10440
10440
|
__html: M.desc || ""
|
10441
|
-
} })] },
|
10441
|
+
} })] }, I))] }), f?.fields && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-page-content-sub-title", children: c("fields") }), f.fields.map((M, I) => C.jsxs("div", { className: "manual-page-content-text", children: [C.jsx("span", { className: "manual-page-content-args-label", children: M.label }), " ", C.jsx("span", { dangerouslySetInnerHTML: {
|
10442
10442
|
__html: M.desc || ""
|
10443
|
-
} })] },
|
10443
|
+
} })] }, I))] }), f?.examples && C.jsxs(Ue, { children: [C.jsxs("div", { className: "manual-page-content-sub-title manual-page-content-example-header", children: [C.jsx("div", { children: C.jsx("span", { children: c("example") }) }), C.jsx(_r, { text: f.originalExample || "", onCopy: B, children: C.jsx("div", { "data-tooltip": A, className: "manual-page-content-btn manual-page-content-example-copy", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: C.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" }) }) }) })] }), C.jsx("pre", { className: "manual-page-content-example", children: C.jsx("code", { dangerouslySetInnerHTML: {
|
10444
10444
|
__html: f.examples
|
10445
|
-
} }) })] }), f?.detailedDesc && f.detailedDesc.map((M,
|
10445
|
+
} }) })] }), f?.detailedDesc && f.detailedDesc.map((M, I) => C.jsxs(Ue, { children: [M.desc.map((Y, Z) => C.jsx("div", { className: "manual-page-content-text", dangerouslySetInnerHTML: {
|
10446
10446
|
__html: Y
|
10447
|
-
} }, Z)), C.jsxs("div", { className: "manual-page-content-sub-title manual-page-content-example-header", children: [C.jsx("div", { children: C.jsx("span", { children: c("example") }) }), C.jsx(_r, { text: M.originalExample || "", onCopy: B, children: C.jsx("div", { "data-tooltip":
|
10447
|
+
} }, Z)), !!(M.examples && M.examples.length) && C.jsxs(Ue, { children: [C.jsxs("div", { className: "manual-page-content-sub-title manual-page-content-example-header", children: [C.jsx("div", { children: C.jsx("span", { children: c("example") }) }), C.jsx(_r, { text: M.originalExample || "", onCopy: B, children: C.jsx("div", { "data-tooltip": A, className: "manual-page-content-btn manual-page-content-example-copy", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: C.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" }) }) }) })] }), C.jsx("pre", { className: "manual-page-content-example", children: C.jsx("code", { dangerouslySetInnerHTML: {
|
10448
10448
|
__html: M.examples || ""
|
10449
|
-
} }) })] },
|
10449
|
+
} }) })] })] }, I)), f?.returns && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-page-content-sub-title", children: c("returns") }), f.returns.map((M, I) => C.jsx("div", { className: "manual-page-content-text", dangerouslySetInnerHTML: {
|
10450
10450
|
__html: M
|
10451
|
-
} },
|
10451
|
+
} }, I))] }), f?.remarks && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-page-content-sub-title", children: c("remarks") }), f.remarks.map((M, I) => C.jsx("div", { className: "manual-page-content-text", dangerouslySetInnerHTML: {
|
10452
10452
|
__html: M
|
10453
|
-
} },
|
10453
|
+
} }, I))] }), f?.seeAlso && C.jsxs(Ue, { children: [C.jsx("div", { className: "manual-page-content-sub-title", children: c("see also") }), C.jsx("div", { className: "manual-page-content-see_also", children: f.seeAlso.map((M, I) => C.jsx("a", { className: "manual-page-content-see_also-tag", "data-name": M?.name, href: M?.link, children: M?.name }, I)) })] })] }) });
|
10454
10454
|
}, I1 = ({ onItemClick: i, onGroupClick: n, selectedItemChange: r, selectItem: s, manualTabRef: a, searchRef: u, contentGroups: c, manualKeys: f, keyMaps: h, version: p, onVersionChange: v }) => {
|
10455
|
-
const { t: b } = br(), [x,
|
10455
|
+
const { t: b } = br(), [x, A] = Re(null), [T, F] = Re("");
|
10456
10456
|
Oe(() => {
|
10457
10457
|
u.current?.focus();
|
10458
10458
|
}, [u.current]);
|
@@ -10462,10 +10462,10 @@ const O1 = (i) => {
|
|
10462
10462
|
else {
|
10463
10463
|
F(k.target.value);
|
10464
10464
|
const Q = jf(k.target.value, c, f, h);
|
10465
|
-
|
10465
|
+
A(Q);
|
10466
10466
|
}
|
10467
10467
|
}, W = () => {
|
10468
|
-
F(""),
|
10468
|
+
F(""), A(null), setTimeout(() => {
|
10469
10469
|
s.current && r(s.current, !0);
|
10470
10470
|
}, 10), u.current?.focus();
|
10471
10471
|
};
|
@@ -10473,7 +10473,7 @@ const O1 = (i) => {
|
|
10473
10473
|
Q.preventDefault(), i(k.key, k.index, k.group);
|
10474
10474
|
}, className: "manual-page-group-body-item", "data-href": k.key, href: `#${k.key}`, children: k.label }, `search_${k.key}`)), C.jsx("div", { className: "manual-page-content-separator" }), x?.contentList.map((k) => C.jsx("a", { onClick: (Q) => {
|
10475
10475
|
Q.preventDefault(), i(k.key, k.index, k.group);
|
10476
|
-
}, className: "manual-page-group-body-item", "data-href": k.key, href: `#${k.key}`, children: k.label }, `search_${k.key}`))] }) }), C.jsx("div", { className: `manual-page-group-list manual-page-scroll ${T ? "hide" : ""}`, children: c?.map((k) => C.jsxs(
|
10476
|
+
}, className: "manual-page-group-body-item", "data-href": k.key, href: `#${k.key}`, children: k.label }, `search_${k.key}`))] }) }), C.jsx("div", { className: `manual-page-group-list manual-page-scroll ${T ? "hide" : ""}`, children: c?.map((k) => C.jsxs(Ue, { children: [C.jsx("div", { onClick: () => n(k), className: "manual-page-group-title manual-page-group-t", children: b(k.key) }), C.jsx("div", { className: "manual-page-group-body manual-page-group-b manual-page-scroll hide", children: f?.[k.key]?.map((Q, B) => {
|
10477
10477
|
const H = `${k.prefix}_${Q}`;
|
10478
10478
|
return C.jsx("a", { onClick: (M) => {
|
10479
10479
|
M.preventDefault(), i(H, B);
|
@@ -10486,7 +10486,7 @@ const O1 = (i) => {
|
|
10486
10486
|
prefix: "var",
|
10487
10487
|
index: 0
|
10488
10488
|
}, F1 = ({ theme: i = "vs-dark", language: n, version: r = Kt, onVersionChange: s }) => {
|
10489
|
-
const [a, u] = Re({}), { t: c, i18n: f } = br(), [h, p] = Re(), v = Ce(""), b = Ce(null), x = Ce(null),
|
10489
|
+
const [a, u] = Re({}), { t: c, i18n: f } = br(), [h, p] = Re(), v = Ce(""), b = Ce(null), x = Ce(null), A = Ce(null), T = Ce(null), F = Ce(null), U = Ce(null), W = Ce(0), k = Ce({
|
10490
10490
|
startTop: 0,
|
10491
10491
|
endTop: 0,
|
10492
10492
|
key: r !== 5 ? "var_accdist" : "var_bar_index",
|
@@ -10500,7 +10500,7 @@ const O1 = (i) => {
|
|
10500
10500
|
z && u(z);
|
10501
10501
|
}));
|
10502
10502
|
}, [r]), Oe(() => {
|
10503
|
-
F.current || (B(), W.current =
|
10503
|
+
F.current || (B(), W.current = A.current?.offsetTop || 0);
|
10504
10504
|
}, [a]);
|
10505
10505
|
const B = async () => {
|
10506
10506
|
if (!a.CONTENT_GROUPS)
|
@@ -10555,7 +10555,7 @@ const O1 = (i) => {
|
|
10555
10555
|
}, M = (z, ne = 0) => {
|
10556
10556
|
const q = document.getElementById(z), ie = q?.offsetHeight || 0, j = ne ? 0 : 78, V = (q?.offsetTop || 0) - 72 - W.current;
|
10557
10557
|
return [V - j, V + ie];
|
10558
|
-
},
|
10558
|
+
}, I = (z, ne) => {
|
10559
10559
|
z.key !== F.current?.key && te(z), Y(ne, !0);
|
10560
10560
|
}, Y = (z, ne = !1) => {
|
10561
10561
|
const q = x.current?.querySelector(`a[data-href="${z}"]`);
|
@@ -10566,7 +10566,7 @@ const O1 = (i) => {
|
|
10566
10566
|
v.current = z, U.current?.classList.remove("manual-page-group-body-item-selected"), q?.classList.add("manual-page-group-body-item-selected"), U.current = q;
|
10567
10567
|
}, Z = (z) => {
|
10568
10568
|
const ne = a.CONTENT_GROUPS?.find((q) => z.startsWith(q.prefix));
|
10569
|
-
ne && (
|
10569
|
+
ne && (I(ne, z), window.location.href = `#${z}`, b.current?.focus());
|
10570
10570
|
}, X = En((z) => {
|
10571
10571
|
const { startTop: ne, endTop: q, index: ie, group: j, key: V } = k.current;
|
10572
10572
|
let he = q, Ae = ne;
|
@@ -10580,32 +10580,32 @@ const O1 = (i) => {
|
|
10580
10580
|
const fe = z.currentTarget.scrollTop;
|
10581
10581
|
if (fe >= Ae && fe < he)
|
10582
10582
|
return;
|
10583
|
-
let De = !1,
|
10583
|
+
let De = !1, Ge = ie, at = j.index, Xe = a.MANUAL_KEYS?.[j.key], Ve = j;
|
10584
10584
|
if (fe >= he)
|
10585
10585
|
for (; !De; ) {
|
10586
|
-
|
10587
|
-
const _t = Xe[
|
10586
|
+
Ge++;
|
10587
|
+
const _t = Xe[Ge];
|
10588
10588
|
if (_t)
|
10589
|
-
De = xe(Ve, _t,
|
10589
|
+
De = xe(Ve, _t, Ge, fe);
|
10590
10590
|
else {
|
10591
10591
|
if (at++, Ve = a.CONTENT_GROUPS?.[at], Xe = a.MANUAL_KEYS?.[Ve?.key], !Xe) {
|
10592
10592
|
De = !0;
|
10593
10593
|
return;
|
10594
10594
|
}
|
10595
|
-
te(Ve),
|
10595
|
+
te(Ve), Ge = -1;
|
10596
10596
|
}
|
10597
10597
|
}
|
10598
10598
|
else
|
10599
10599
|
for (; !De; )
|
10600
|
-
if (
|
10601
|
-
const _t = Xe[
|
10602
|
-
De = xe(Ve, _t,
|
10600
|
+
if (Ge--, Ge >= 0) {
|
10601
|
+
const _t = Xe[Ge];
|
10602
|
+
De = xe(Ve, _t, Ge, fe);
|
10603
10603
|
} else {
|
10604
10604
|
if (at--, at < 0) {
|
10605
10605
|
De = !0;
|
10606
10606
|
return;
|
10607
10607
|
}
|
10608
|
-
Ve = a.CONTENT_GROUPS?.[at], te(Ve), Xe = a.MANUAL_KEYS?.[Ve?.key],
|
10608
|
+
Ve = a.CONTENT_GROUPS?.[at], te(Ve), Xe = a.MANUAL_KEYS?.[Ve?.key], Ge = Xe.length;
|
10609
10609
|
}
|
10610
10610
|
}, [a]), te = (z) => {
|
10611
10611
|
const ne = F.current?.index, q = x.current?.querySelectorAll(".manual-page-group-t"), ie = x.current?.querySelectorAll(".manual-page-group-b"), j = z.index;
|
@@ -10629,7 +10629,7 @@ const O1 = (i) => {
|
|
10629
10629
|
}
|
10630
10630
|
return !1;
|
10631
10631
|
};
|
10632
|
-
return C.jsxs("div", { ref:
|
10632
|
+
return C.jsxs("div", { ref: A, className: `${i} manual-page-warpper ${h ? "show-warpper" : ""}`, children: [C.jsx(I1, { onGroupClick: Q, onItemClick: H, selectItem: v, manualTabRef: x, searchRef: b, selectedItemChange: Y, manualKeys: a.MANUAL_KEYS, contentGroups: a.CONTENT_GROUPS, keyMaps: a.KEY_MAP_LIST, version: r || 5, onVersionChange: s }), C.jsxs("div", { className: "manual-page-right", children: [C.jsx("div", { children: C.jsx("h1", { className: "manual-page-title", children: c("Mine Script® v1 Reference Manual", { version: r }) }) }), C.jsx("div", { onScroll: X, className: "manual-page-scroll manual-page-scroll-none", children: a.CONTENT_GROUPS?.map((z) => C.jsxs(Ue, { children: [C.jsx("h2", { className: "manual-page-header", children: c(z.key) }), C.jsx("div", { children: a.MANUAL_KEYS?.[z.key]?.map((ne) => C.jsx(E1, { version: r || 5, item: a.KEY_MAP_LIST?.[z.key].get(ne) || [], value: h?.[z.key]?.get(ne), prefix: z.prefix, onItemClick: Z }, ne)) })] }, z.key)) })] })] });
|
10633
10633
|
};
|
10634
10634
|
var Ac;
|
10635
10635
|
(function(i) {
|