@infinilabs/ui-web-cli 0.0.2 → 0.0.4
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/dist/_common-CMOqKs8V.cjs +1 -0
- package/dist/bulk-5mm3LC-n.cjs +1 -0
- package/dist/cat.aliases-DnMoMbH3.cjs +1 -0
- package/dist/cat.allocation-BM_YASyK.cjs +1 -0
- package/dist/cat.count-DtahJB4e.cjs +1 -0
- package/dist/cat.fielddata-Bf4DFcNn.cjs +1 -0
- package/dist/cat.health-B8rSXJl5.cjs +1 -0
- package/dist/cat.help-BBfM7V--.cjs +1 -0
- package/dist/cat.indices-B7dGCeWZ.cjs +1 -0
- package/dist/cat.master-BO1xbYN-.cjs +1 -0
- package/dist/cat.nodeattrs-CDPi2wGi.cjs +1 -0
- package/dist/cat.nodes-XNPR1TfD.cjs +1 -0
- package/dist/cat.pending_tasks-C3LGOdj_.cjs +1 -0
- package/dist/cat.plugins-BtvSUMfZ.cjs +1 -0
- package/dist/cat.recovery-DYY_mQze.cjs +1 -0
- package/dist/cat.repositories-DHM-neKo.cjs +1 -0
- package/dist/cat.segments-B7AYrkZs.cjs +1 -0
- package/dist/cat.shards-BFohEeDv.cjs +1 -0
- package/dist/cat.snapshots-B79mLWvF.cjs +1 -0
- package/dist/cat.tasks-DzXoXAP3.cjs +1 -0
- package/dist/cat.templates--VBAJ79z.cjs +1 -0
- package/dist/cat.thread_pool-Dve3vc7H.cjs +1 -0
- package/dist/clear_scroll-CGgyOrmQ.cjs +1 -0
- package/dist/clear_scroll-CoeqJJM6.cjs +1 -0
- package/dist/cluster.allocation_explain-5uMsnyRu.cjs +1 -0
- package/dist/cluster.delete_component_template-WYaVdav2.cjs +1 -0
- package/dist/cluster.get_component_template-uPK7ZXdY.cjs +1 -0
- package/dist/cluster.get_settings-C5WGvBat.cjs +1 -0
- package/dist/cluster.health-BIY-QH5E.cjs +1 -0
- package/dist/cluster.health-C9RtOTFZ.cjs +1 -0
- package/dist/cluster.pending_tasks-BByEdB17.cjs +1 -0
- package/dist/cluster.put_component_template-Bs8kvYYz.cjs +1 -0
- package/dist/cluster.put_component_template-Dpp0iPob.cjs +1 -0
- package/dist/cluster.put_settings-BufMweSm.cjs +1 -0
- package/dist/cluster.put_settings-CmVNw-la.cjs +1 -0
- package/dist/cluster.remote_info-D2lcZ1Ym.cjs +1 -0
- package/dist/cluster.reroute-CVmCu_5D.cjs +1 -0
- package/dist/cluster.reroute-Ca7B3s4P.cjs +1 -0
- package/dist/cluster.state-BZZfYTNi.cjs +1 -0
- package/dist/cluster.stats-Da5JRRh6.cjs +1 -0
- package/dist/count-C4MIuAZw.cjs +1 -0
- package/dist/count-XFzlrndY.cjs +1 -0
- package/dist/create-BNeLmmv4.cjs +1 -0
- package/dist/delete-DfL1cQ5-.cjs +1 -0
- package/dist/delete_by_query-CFDMiFmM.cjs +1 -0
- package/dist/delete_by_query_rethrottle-BykCpP0w.cjs +1 -0
- package/dist/delete_script-CV-JzzD3.cjs +1 -0
- package/dist/exists-3-a1BjWn.cjs +1 -0
- package/dist/exists_source-CZgoQsbu.cjs +1 -0
- package/dist/explain-CUI_flx7.cjs +1 -0
- package/dist/field_caps-Cun8gqi4.cjs +1 -0
- package/dist/get-DaALtELy.cjs +1 -0
- package/dist/get_script-DTHXjUfG.cjs +1 -0
- package/dist/get_script_context-oiMyBvK1.cjs +1 -0
- package/dist/get_script_languages-CLmFVKlG.cjs +1 -0
- package/dist/get_source-CPfBrc6C.cjs +1 -0
- package/dist/index-CsL0mn-5.cjs +1 -0
- package/dist/indices.analyze-ByoFggw9.cjs +1 -0
- package/dist/indices.analyze-Ca_LdrpG.cjs +1 -0
- package/dist/indices.clear_cache-_YwdaEs0.cjs +1 -0
- package/dist/indices.clone-8RL66eeg.cjs +1 -0
- package/dist/indices.clone-BUxFyBRc.cjs +1 -0
- package/dist/indices.close-DTa6uPUz.cjs +1 -0
- package/dist/indices.create-BiWtozmw.cjs +1 -0
- package/dist/indices.create-BxbZU62B.cjs +1 -0
- package/dist/indices.delete-CE2lZntY.cjs +1 -0
- package/dist/indices.delete_alias-DQYnlM2Z.cjs +1 -0
- package/dist/indices.delete_template-DkYccHYX.cjs +1 -0
- package/dist/indices.delete_template-KcMvxl6n.cjs +1 -0
- package/dist/indices.exists-Dwhj4QKp.cjs +1 -0
- package/dist/indices.exists_alias-7t7EFwPH.cjs +1 -0
- package/dist/indices.exists_template-CF_8-Wny.cjs +1 -0
- package/dist/indices.exists_template-CRpLrsu7.cjs +1 -0
- package/dist/indices.exists_type-wQ9DvIxA.cjs +1 -0
- package/dist/indices.flush-NSDkNUwg.cjs +1 -0
- package/dist/indices.flush_synced-Dl6Y4gsT.cjs +1 -0
- package/dist/indices.forcemerge-BySPCum-.cjs +1 -0
- package/dist/indices.get-BdIK83rw.cjs +1 -0
- package/dist/indices.get_alias-BnSvYNtw.cjs +1 -0
- package/dist/indices.get_field_mapping-CYG2wNHO.cjs +1 -0
- package/dist/indices.get_field_mapping-DXlWi4h4.cjs +1 -0
- package/dist/indices.get_mapping-CICPJLBi.cjs +1 -0
- package/dist/indices.get_mapping-CrtmSCvN.cjs +1 -0
- package/dist/indices.get_settings-DI3-Xphq.cjs +1 -0
- package/dist/indices.get_template-DGkghljU.cjs +1 -0
- package/dist/indices.get_template-DzPfsFeU.cjs +1 -0
- package/dist/indices.get_upgrade-Cwepj_3S.cjs +1 -0
- package/dist/indices.open-BPqJqVIp.cjs +1 -0
- package/dist/indices.put_alias-Cf6m-sUg.cjs +1 -0
- package/dist/indices.put_alias-Dl0nLnFj.cjs +1 -0
- package/dist/indices.put_mapping-CubbpiC5.cjs +1 -0
- package/dist/indices.put_settings-ApYmb-G6.cjs +1 -0
- package/dist/indices.put_settings-DlaEA2qI.cjs +1 -0
- package/dist/indices.put_template-CkmLUYRN.cjs +1 -0
- package/dist/indices.put_template-Y2qnGcJL.cjs +1 -0
- package/dist/indices.recovery-wXwYhDT0.cjs +1 -0
- package/dist/indices.refresh-D-1MhdaQ.cjs +1 -0
- package/dist/indices.rollover-CwmmlQz1.cjs +1 -0
- package/dist/indices.rollover-D8QUsaTN.cjs +1 -0
- package/dist/indices.segments-BNJbwGhI.cjs +1 -0
- package/dist/indices.shard_stores-D6RBlJlX.cjs +1 -0
- package/dist/indices.shrink-BskJk9Va.cjs +1 -0
- package/dist/indices.split-C031jsQI.cjs +1 -0
- package/dist/indices.stats-B2GKe51V.cjs +1 -0
- package/dist/indices.update_aliases-BSOeXVyL.cjs +1 -0
- package/dist/indices.update_aliases-DEi6eajk.cjs +1 -0
- package/dist/indices.upgrade-pZP_rCzh.cjs +1 -0
- package/dist/indices.validate_query-BmgN43C3.cjs +1 -0
- package/dist/indices.validate_query-DilTwlSI.cjs +1 -0
- package/dist/info-Bihl3ycX.cjs +1 -0
- package/dist/ingest.delete_pipeline-8sqPIBEw.cjs +1 -0
- package/dist/ingest.get_pipeline-CoyMO45r.cjs +1 -0
- package/dist/ingest.processor_grok-B-R3mNZz.cjs +1 -0
- package/dist/ingest.put_pipeline-C48N8VLb.cjs +1 -0
- package/dist/ingest.simulate-xTiA-ntV.cjs +1 -0
- package/dist/mget-CTm-_LOH.cjs +1 -0
- package/dist/msearch-D2RYRdg9.cjs +1 -0
- package/dist/msearch_template-D-5waRCZ.cjs +1 -0
- package/dist/mtermvectors-Iob1EyZq.cjs +1 -0
- package/dist/nodes.hot_threads-DtdspLBs.cjs +1 -0
- package/dist/nodes.info-B5qBn4bJ.cjs +1 -0
- package/dist/nodes.reload_secure_settings-IT7wkb4F.cjs +1 -0
- package/dist/nodes.stats-ByRup3kp.cjs +1 -0
- package/dist/nodes.usage-BOB6uZgC.cjs +1 -0
- package/dist/ping-BQ2zs_iF.cjs +1 -0
- package/dist/put_script-Wtk-J1KT.cjs +1 -0
- package/dist/rank_eval-XW5Sepg2.cjs +1 -0
- package/dist/reindex-BIG_sxiH.cjs +1 -0
- package/dist/reindex_rethrottle-CRN0zTwg.cjs +1 -0
- package/dist/render_search_template-ot0hZ0W8.cjs +1 -0
- package/dist/scripts_painless_execute-BZJwr2WZ.cjs +1 -0
- package/dist/scroll-Dl5sjO9s.cjs +1 -0
- package/dist/search-Bsayi2Z7.cjs +1 -0
- package/dist/search_shards-CQHOad6m.cjs +1 -0
- package/dist/search_template-BjlH72xD.cjs +1 -0
- package/dist/snapshot.cleanup_repository-DhLuWH_4.cjs +1 -0
- package/dist/snapshot.create-Cikcfjas.cjs +1 -0
- package/dist/snapshot.create-D305SikA.cjs +1 -0
- package/dist/snapshot.create_repository-CJ-t7HOq.cjs +1 -0
- package/dist/snapshot.create_repository-DSfPE9Re.cjs +1 -0
- package/dist/snapshot.delete-LRvaQDyl.cjs +1 -0
- package/dist/snapshot.delete_repository-BaNhSl9L.cjs +1 -0
- package/dist/snapshot.get-RH1NvbXk.cjs +1 -0
- package/dist/snapshot.get_repository-BUSeINoE.cjs +1 -0
- package/dist/snapshot.restore-D11iTuaW.cjs +1 -0
- package/dist/snapshot.restore-DTrdiduA.cjs +1 -0
- package/dist/snapshot.status-BJ3wLJ-6.cjs +1 -0
- package/dist/snapshot.verify_repository-BAovUJEf.cjs +1 -0
- package/dist/tasks.cancel-uev3HNwn.cjs +1 -0
- package/dist/tasks.get-Dx5AatEN.cjs +1 -0
- package/dist/tasks.list-DF8jKoLv.cjs +1 -0
- package/dist/termvectors-CCD0RzNB.cjs +1 -0
- package/dist/update-Df56o2sS.cjs +1 -0
- package/dist/update_by_query-C99J5V_Y.cjs +1 -0
- package/dist/update_by_query-Cg4ruhuj.cjs +1 -0
- package/dist/update_by_query_rethrottle-SiTIU_2D.cjs +1 -0
- package/dist/webCli.cjs +303 -0
- package/dist/webCli.iife.js +322 -0
- package/dist/webCli.js +32016 -75970
- package/dist/webCli.umd.cjs +322 -0
- package/dist/worker-COMjIpIG.cjs +10 -0
- package/dist/x_json.ace.worker-ClEhbr73.cjs +11 -0
- package/package.json +3 -3
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".conApp{display:flex}.conApp__editor{width:100%;display:flex;flex:0 0 auto;position:relative}.conApp__editor__spinner{width:100%}.conApp__output{display:flex;flex:1 1 1px}.conApp__editorContent,.conApp__outputContent{height:100%;flex:1 1 1px;font-size:14px}.conApp__editorActions{position:absolute;z-index:1000;top:0;right:8px;line-height:1;min-width:20px;display:flex;align-items:center}.conApp__editorActions button{line-height:inherit;cursor:pointer}.conApp__editorActionButton{padding:0 4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:none}.conApp__editorActionButton--success{color:#017d73}.conApp__resizer{z-index:1000}.conApp__autoComplete{position:absolute;left:-1000px;visibility:hidden;z-index:1002;margin-top:22px}.conApp__settingsModal{min-width:460px}.conApp__requestProgressBarContainer{position:relative;z-index:2000}.conApp__tabsExtension{border-bottom:1px solid #cccccc}.ace_method,.ace_select_keyword{color:#c80a68!important}.ace_url,.ace_start_triple_quote,.ace_end_triple_quote{color:#00756c}.conApp .euiButtonIcon--primary:not([class*=isDisabled]){box-shadow:none!important;background-color:transparent!important}.request-status-bar,.request-status-bar .bar-item{height:100%}.request-status-bar .bar-item .base-info{display:flex;font-size:12px;align-items:center;margin-top:2px}.request-status-bar .bar-item .base-info .info-item{margin:0 12px;position:relative;flex:0 0 auto}.request-status-bar .bar-item .base-info .info-item.health{padding-right:14px}.request-status-bar .bar-item .status_info{display:flex;font-size:12px;align-items:center}.request-status-bar .bar-item .status_info .info-item{margin:0 12px}.Console{position:relative;width:100%;height:100vh;display:flex}.Console .ConsoleInput_wrapper{flex:1;min-width:0}.Console .ConsoleOutput_wrapper{width:50%}.Console .resizer{position:relative;z-index:999;width:14px;height:100%;display:flex;align-items:center;justify-content:center;background:#fafbfd;padding:0;margin:0;outline:none;border:none;cursor:col-resize}.Console .resizer:hover{background-color:#cce1f0}.Console .ant-tabs-right-content{padding-right:0}.Console .ant-tabs-right-bar .ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.Console .ant-tabs-right>.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.flex-tabbar,.flex-tabbar .ant-tabs{height:100%}.flex-tabbar .ant-tabs-top-bar{display:flex}.flex-tabbar .ant-tabs-extra-left{order:1;flex:0 0 auto}.flex-tabbar .ant-tabs-nav-container{order:2;flex:0 0 auto}.flex-tabbar .ant-tabs-top-bar .ant-tabs-nav-container{max-width:calc(100% - 140px)}.flex-tabbar .tabbar-icon{padding:0 10px;cursor:pointer}.flex-tabbar .tabbar-icon:hover{background-color:#efefef}.ant-tabs-extra-append{order:3}.ant-tabs-extra-right{order:4;margin-left:auto;flex:0 0 auto}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab{border-radius:0;height:32px}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content{line-height:30px;display:flex}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content .tabbar-icon{padding:0 10px}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container{height:30px;max-width:calc(100% - 156px)}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x{margin-bottom:18px}#console .ant-tabs-nav-wrap{height:30px}#console .ant-tabs-nav-list .ant-tabs-tab{padding:3px 8px;display:flex}#console .ant-tabs{height:100%}#console .ant-tabs-nav-add{min-height:30px}#console .ant-tabs-nav{margin-bottom:5px}#console .ant-tabs-content,#console .ant-tabs-tabpane{height:100%}#console .ant-tabs-nav .ant-tabs-nav-wrap-ping-bottom .ant-tabs-tab{margin:0}#console .ant-tabs-right>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-top:16px}#console .ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab{border-radius:0}#console .ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-add{border:none;border-radius:0}#console .ant-tabs .ant-tabs-tab-btn .ant-tabs-tab-icon:not(:last-child){margin-inline-end:0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active .ant-tabs-tab-btn{color:#fff}.resize-bar{display:flex;height:10px;background:#eee;margin-top:-5px;align-items:center;justify-content:center}.resize-bar .dash{height:1px;width:16px;background:#666;margin-top:1px}.fullscreen{position:fixed;width:100%;left:0;top:0;height:100vh;z-index:100}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}.slideInUp{animation-name:slideInUp;animation-duration:.2s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
(function(M,ce){typeof exports=="object"&&typeof module<"u"?module.exports=ce(require("react"),require("classnames"),require("@ant-design/icons"),require("re-resizable"),require("react-dnd"),require("react-dnd-html5-backend"),require("react-dom"),require("resize-observer-polyfill"),require("brace"),require("react-intl"),require("lodash"),require("jquery"),require("query-string"),require("minimatch"),require("@hapi/boom"),require("immer"),require("rxjs"),require("uuid")):typeof define=="function"&&define.amd?define(["react","classnames","@ant-design/icons","re-resizable","react-dnd","react-dnd-html5-backend","react-dom","resize-observer-polyfill","brace","react-intl","lodash","jquery","query-string","minimatch","@hapi/boom","immer","rxjs","uuid"],ce):(M=typeof globalThis<"u"?globalThis:M||self,M.webCli=ce(M.React,M.classNames,M.icons,M.reResizable,M.reactDnd,M.reactDndHtml5Backend,M.ReactDOM,M.require$$9,M.ace$1,M.reactIntl,M._,M.$,M.queryString,null,null,M.immer,M.rxjs,M.uuid$1))})(this,function(M,ce,gn,aS,Yl,sS,to,Op,Ze,nn,ye,Ot,lS,_q,yq,Wa,cS,uS){"use strict";var gq=Object.defineProperty;var vq=(M,ce,gn)=>ce in M?gq(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:gn}):M[ce]=gn;var iS=(M,ce,gn)=>vq(M,typeof ce!="symbol"?ce+"":ce,gn);function Jl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const v=Jl(M),dS=Jl(to),fS=Jl(uS);function pS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $p={exports:{}},zt=$p.exports={},or,ir;function Ql(){throw new Error("setTimeout has not been defined")}function Zl(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?or=setTimeout:or=Ql}catch{or=Ql}try{typeof clearTimeout=="function"?ir=clearTimeout:ir=Zl}catch{ir=Zl}})();function Tp(e){if(or===setTimeout)return setTimeout(e,0);if((or===Ql||!or)&&setTimeout)return or=setTimeout,setTimeout(e,0);try{return or(e,0)}catch{try{return or.call(null,e,0)}catch{return or.call(this,e,0)}}}function hS(e){if(ir===clearTimeout)return clearTimeout(e);if((ir===Zl||!ir)&&clearTimeout)return ir=clearTimeout,clearTimeout(e);try{return ir(e)}catch{try{return ir.call(null,e)}catch{return ir.call(this,e)}}}var hr=[],ko=!1,no,Ua=-1;function mS(){!ko||!no||(ko=!1,no.length?hr=no.concat(hr):Ua=-1,hr.length&&Pp())}function Pp(){if(!ko){var e=Tp(mS);ko=!0;for(var t=hr.length;t;){for(no=hr,hr=[];++Ua<t;)no&&no[Ua].run();Ua=-1,t=hr.length}no=null,ko=!1,hS(e)}}zt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];hr.push(new Rp(e,t)),hr.length===1&&!ko&&Tp(Pp)};function Rp(e,t){this.fun=e,this.array=t}Rp.prototype.run=function(){this.fun.apply(null,this.array)},zt.title="browser",zt.browser=!0,zt.env={},zt.argv=[],zt.version="",zt.versions={};function mr(){}zt.on=mr,zt.addListener=mr,zt.once=mr,zt.off=mr,zt.removeListener=mr,zt.removeAllListeners=mr,zt.emit=mr,zt.prependListener=mr,zt.prependOnceListener=mr,zt.listeners=function(e){return[]},zt.binding=function(e){throw new Error("process.binding is not supported")},zt.cwd=function(){return"/"},zt.chdir=function(e){throw new Error("process.chdir is not supported")},zt.umask=function(){return 0};var gS=$p.exports;const ne=pS(gS);var vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ec(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var tc={exports:{}},ji={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Mp;function vS(){if(Mp)return ji;Mp=1;var e=M,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,s,c){var u,f={},d=null,y=null;c!==void 0&&(d=""+c),s.key!==void 0&&(d=""+s.key),s.ref!==void 0&&(y=s.ref);for(u in s)r.call(s,u)&&!i.hasOwnProperty(u)&&(f[u]=s[u]);if(l&&l.defaultProps)for(u in s=l.defaultProps,s)f[u]===void 0&&(f[u]=s[u]);return{$$typeof:t,type:l,key:d,ref:y,props:f,_owner:o.current}}return ji.Fragment=n,ji.jsx=a,ji.jsxs=a,ji}var Mi={},Ip;function _S(){return Ip||(Ip=1,ne.env.NODE_ENV!=="production"&&function(){var e=M,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x=Symbol.iterator,E="@@iterator";function h(Q){if(Q===null||typeof Q!="object")return null;var de=x&&Q[x]||Q[E];return typeof de=="function"?de:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(Q){{for(var de=arguments.length,_e=new Array(de>1?de-1:0),Oe=1;Oe<de;Oe++)_e[Oe-1]=arguments[Oe];m("error",Q,_e)}}function m(Q,de,_e){{var Oe=_.ReactDebugCurrentFrame,Le=Oe.getStackAddendum();Le!==""&&(de+="%s",_e=_e.concat([Le]));var Ne=_e.map(function(Be){return String(Be)});Ne.unshift("Warning: "+de),Function.prototype.apply.call(console[Q],console,Ne)}}var g=!1,b=!1,C=!1,S=!1,w=!1,O;O=Symbol.for("react.module.reference");function R(Q){return!!(typeof Q=="string"||typeof Q=="function"||Q===r||Q===i||w||Q===o||Q===c||Q===u||S||Q===y||g||b||C||typeof Q=="object"&&Q!==null&&(Q.$$typeof===d||Q.$$typeof===f||Q.$$typeof===a||Q.$$typeof===l||Q.$$typeof===s||Q.$$typeof===O||Q.getModuleId!==void 0))}function N(Q,de,_e){var Oe=Q.displayName;if(Oe)return Oe;var Le=de.displayName||de.name||"";return Le!==""?_e+"("+Le+")":_e}function P(Q){return Q.displayName||"Context"}function L(Q){if(Q==null)return null;if(typeof Q.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof Q=="function")return Q.displayName||Q.name||null;if(typeof Q=="string")return Q;switch(Q){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof Q=="object")switch(Q.$$typeof){case l:var de=Q;return P(de)+".Consumer";case a:var _e=Q;return P(_e._context)+".Provider";case s:return N(Q,Q.render,"ForwardRef");case f:var Oe=Q.displayName||null;return Oe!==null?Oe:L(Q.type)||"Memo";case d:{var Le=Q,Ne=Le._payload,Be=Le._init;try{return L(Be(Ne))}catch{return null}}}return null}var z=Object.assign,J=0,X,j,H,U,D,W,A;function k(){}k.__reactDisabledLog=!0;function G(){{if(J===0){X=console.log,j=console.info,H=console.warn,U=console.error,D=console.group,W=console.groupCollapsed,A=console.groupEnd;var Q={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:Q,log:Q,warn:Q,error:Q,group:Q,groupCollapsed:Q,groupEnd:Q})}J++}}function Z(){{if(J--,J===0){var Q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},Q,{value:X}),info:z({},Q,{value:j}),warn:z({},Q,{value:H}),error:z({},Q,{value:U}),group:z({},Q,{value:D}),groupCollapsed:z({},Q,{value:W}),groupEnd:z({},Q,{value:A})})}J<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=_.ReactCurrentDispatcher,V;function Y(Q,de,_e){{if(V===void 0)try{throw Error()}catch(Le){var Oe=Le.stack.trim().match(/\n( *(at )?)/);V=Oe&&Oe[1]||""}return`
|
|
11
|
+
`+V+Q}}var re=!1,se;{var F=typeof WeakMap=="function"?WeakMap:Map;se=new F}function B(Q,de){if(!Q||re)return"";{var _e=se.get(Q);if(_e!==void 0)return _e}var Oe;re=!0;var Le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ne;Ne=q.current,q.current=null,G();try{if(de){var Be=function(){throw Error()};if(Object.defineProperty(Be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Be,[])}catch(Nt){Oe=Nt}Reflect.construct(Q,[],Be)}else{try{Be.call()}catch(Nt){Oe=Nt}Q.call(Be.prototype)}}else{try{throw Error()}catch(Nt){Oe=Nt}Q()}}catch(Nt){if(Nt&&Oe&&typeof Nt.stack=="string"){for(var He=Nt.stack.split(`
|
|
12
|
+
`),Ct=Oe.stack.split(`
|
|
13
|
+
`),gt=He.length-1,Ye=Ct.length-1;gt>=1&&Ye>=0&&He[gt]!==Ct[Ye];)Ye--;for(;gt>=1&&Ye>=0;gt--,Ye--)if(He[gt]!==Ct[Ye]){if(gt!==1||Ye!==1)do if(gt--,Ye--,Ye<0||He[gt]!==Ct[Ye]){var Dt=`
|
|
14
|
+
`+He[gt].replace(" at new "," at ");return Q.displayName&&Dt.includes("<anonymous>")&&(Dt=Dt.replace("<anonymous>",Q.displayName)),typeof Q=="function"&&se.set(Q,Dt),Dt}while(gt>=1&&Ye>=0);break}}}finally{re=!1,q.current=Ne,Z(),Error.prepareStackTrace=Le}var yn=Q?Q.displayName||Q.name:"",Qt=yn?Y(yn):"";return typeof Q=="function"&&se.set(Q,Qt),Qt}function ae(Q,de,_e){return B(Q,!1)}function ee(Q){var de=Q.prototype;return!!(de&&de.isReactComponent)}function me(Q,de,_e){if(Q==null)return"";if(typeof Q=="function")return B(Q,ee(Q));if(typeof Q=="string")return Y(Q);switch(Q){case c:return Y("Suspense");case u:return Y("SuspenseList")}if(typeof Q=="object")switch(Q.$$typeof){case s:return ae(Q.render);case f:return me(Q.type,de,_e);case d:{var Oe=Q,Le=Oe._payload,Ne=Oe._init;try{return me(Ne(Le),de,_e)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,xe={},Ae=_.ReactDebugCurrentFrame;function ue(Q){if(Q){var de=Q._owner,_e=me(Q.type,Q._source,de?de.type:null);Ae.setExtraStackFrame(_e)}else Ae.setExtraStackFrame(null)}function Me(Q,de,_e,Oe,Le){{var Ne=Function.call.bind(pe);for(var Be in Q)if(Ne(Q,Be)){var He=void 0;try{if(typeof Q[Be]!="function"){var Ct=Error((Oe||"React class")+": "+_e+" type `"+Be+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof Q[Be]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ct.name="Invariant Violation",Ct}He=Q[Be](de,Be,Oe,_e,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(gt){He=gt}He&&!(He instanceof Error)&&(ue(Le),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Oe||"React class",_e,Be,typeof He),ue(null)),He instanceof Error&&!(He.message in xe)&&(xe[He.message]=!0,ue(Le),p("Failed %s type: %s",_e,He.message),ue(null))}}}var Re=Array.isArray;function $e(Q){return Re(Q)}function ve(Q){{var de=typeof Symbol=="function"&&Symbol.toStringTag,_e=de&&Q[Symbol.toStringTag]||Q.constructor.name||"Object";return _e}}function we(Q){try{return Ce(Q),!1}catch{return!0}}function Ce(Q){return""+Q}function Ee(Q){if(we(Q))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ve(Q)),Ce(Q)}var We=_.ReactCurrentOwner,Ue={key:!0,ref:!0,__self:!0,__source:!0},Je,mt,bt;bt={};function dt(Q){if(pe.call(Q,"ref")){var de=Object.getOwnPropertyDescriptor(Q,"ref").get;if(de&&de.isReactWarning)return!1}return Q.ref!==void 0}function qe(Q){if(pe.call(Q,"key")){var de=Object.getOwnPropertyDescriptor(Q,"key").get;if(de&&de.isReactWarning)return!1}return Q.key!==void 0}function je(Q,de){if(typeof Q.ref=="string"&&We.current&&de&&We.current.stateNode!==de){var _e=L(We.current.type);bt[_e]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L(We.current.type),Q.ref),bt[_e]=!0)}}function ct(Q,de){{var _e=function(){Je||(Je=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",de))};_e.isReactWarning=!0,Object.defineProperty(Q,"key",{get:_e,configurable:!0})}}function lt(Q,de){{var _e=function(){mt||(mt=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",de))};_e.isReactWarning=!0,Object.defineProperty(Q,"ref",{get:_e,configurable:!0})}}var Qe=function(Q,de,_e,Oe,Le,Ne,Be){var He={$$typeof:t,type:Q,key:de,ref:_e,props:Be,_owner:Ne};return He._store={},Object.defineProperty(He._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(He,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Oe}),Object.defineProperty(He,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Le}),Object.freeze&&(Object.freeze(He.props),Object.freeze(He)),He};function Rt(Q,de,_e,Oe,Le){{var Ne,Be={},He=null,Ct=null;_e!==void 0&&(Ee(_e),He=""+_e),qe(de)&&(Ee(de.key),He=""+de.key),dt(de)&&(Ct=de.ref,je(de,Le));for(Ne in de)pe.call(de,Ne)&&!Ue.hasOwnProperty(Ne)&&(Be[Ne]=de[Ne]);if(Q&&Q.defaultProps){var gt=Q.defaultProps;for(Ne in gt)Be[Ne]===void 0&&(Be[Ne]=gt[Ne])}if(He||Ct){var Ye=typeof Q=="function"?Q.displayName||Q.name||"Unknown":Q;He&&ct(Be,Ye),Ct&<(Be,Ye)}return Qe(Q,He,Ct,Le,Oe,We.current,Be)}}var Ht=_.ReactCurrentOwner,Jt=_.ReactDebugCurrentFrame;function wt(Q){if(Q){var de=Q._owner,_e=me(Q.type,Q._source,de?de.type:null);Jt.setExtraStackFrame(_e)}else Jt.setExtraStackFrame(null)}var jt;jt=!1;function et(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===t}function ut(){{if(Ht.current){var Q=L(Ht.current.type);if(Q)return`
|
|
15
|
+
|
|
16
|
+
Check the render method of \``+Q+"`."}return""}}function Mt(Q){return""}var Xe={};function ke(Q){{var de=ut();if(!de){var _e=typeof Q=="string"?Q:Q.displayName||Q.name;_e&&(de=`
|
|
17
|
+
|
|
18
|
+
Check the top-level render call using <`+_e+">.")}return de}}function I(Q,de){{if(!Q._store||Q._store.validated||Q.key!=null)return;Q._store.validated=!0;var _e=ke(de);if(Xe[_e])return;Xe[_e]=!0;var Oe="";Q&&Q._owner&&Q._owner!==Ht.current&&(Oe=" It was passed a child from "+L(Q._owner.type)+"."),wt(Q),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_e,Oe),wt(null)}}function $(Q,de){{if(typeof Q!="object")return;if($e(Q))for(var _e=0;_e<Q.length;_e++){var Oe=Q[_e];et(Oe)&&I(Oe,de)}else if(et(Q))Q._store&&(Q._store.validated=!0);else if(Q){var Le=h(Q);if(typeof Le=="function"&&Le!==Q.entries)for(var Ne=Le.call(Q),Be;!(Be=Ne.next()).done;)et(Be.value)&&I(Be.value,de)}}}function T(Q){{var de=Q.type;if(de==null||typeof de=="string")return;var _e;if(typeof de=="function")_e=de.propTypes;else if(typeof de=="object"&&(de.$$typeof===s||de.$$typeof===f))_e=de.propTypes;else return;if(_e){var Oe=L(de);Me(_e,Q.props,"prop",Oe,Q)}else if(de.PropTypes!==void 0&&!jt){jt=!0;var Le=L(de);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Le||"Unknown")}typeof de.getDefaultProps=="function"&&!de.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function K(Q){{for(var de=Object.keys(Q.props),_e=0;_e<de.length;_e++){var Oe=de[_e];if(Oe!=="children"&&Oe!=="key"){wt(Q),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Oe),wt(null);break}}Q.ref!==null&&(wt(Q),p("Invalid attribute `ref` supplied to `React.Fragment`."),wt(null))}}var te={};function le(Q,de,_e,Oe,Le,Ne){{var Be=R(Q);if(!Be){var He="";(Q===void 0||typeof Q=="object"&&Q!==null&&Object.keys(Q).length===0)&&(He+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ct=Mt();Ct?He+=Ct:He+=ut();var gt;Q===null?gt="null":$e(Q)?gt="array":Q!==void 0&&Q.$$typeof===t?(gt="<"+(L(Q.type)||"Unknown")+" />",He=" Did you accidentally export a JSX literal instead of a component?"):gt=typeof Q,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",gt,He)}var Ye=Rt(Q,de,_e,Le,Ne);if(Ye==null)return Ye;if(Be){var Dt=de.children;if(Dt!==void 0)if(Oe)if($e(Dt)){for(var yn=0;yn<Dt.length;yn++)$(Dt[yn],Q);Object.freeze&&Object.freeze(Dt)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $(Dt,Q)}if(pe.call(de,"key")){var Qt=L(Q),Nt=Object.keys(de).filter(function(Dn){return Dn!=="key"}),$r=Nt.length>0?"{key: someKey, "+Nt.join(": ..., ")+": ...}":"{key: someKey}";if(!te[Qt+$r]){var Tr=Nt.length>0?"{"+Nt.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
|
|
19
|
+
let props = %s;
|
|
20
|
+
<%s {...props} />
|
|
21
|
+
React keys must be passed directly to JSX without using spread:
|
|
22
|
+
let props = %s;
|
|
23
|
+
<%s key={someKey} {...props} />`,$r,Qt,Tr,Qt),te[Qt+$r]=!0}}return Q===r?K(Ye):T(Ye),Ye}}function ge(Q,de,_e){return le(Q,de,_e,!0)}function Fe(Q,de,_e){return le(Q,de,_e,!1)}var tt=Fe,rt=ge;Mi.Fragment=r,Mi.jsx=tt,Mi.jsxs=rt}()),Mi}ne.env.NODE_ENV==="production"?tc.exports=vS():tc.exports=_S();var fe=tc.exports;function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(null,arguments)}var nc={exports:{}},_t={};/**
|
|
24
|
+
* @license React
|
|
25
|
+
* react-is.production.min.js
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/var Ap;function yS(){if(Ap)return _t;Ap=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function E(h){if(typeof h=="object"&&h!==null){var _=h.$$typeof;switch(_){case e:switch(h=h.type,h){case n:case o:case r:case c:case u:return h;default:switch(h=h&&h.$$typeof,h){case l:case a:case s:case d:case f:case i:return h;default:return _}}case t:return _}}}return _t.ContextConsumer=a,_t.ContextProvider=i,_t.Element=e,_t.ForwardRef=s,_t.Fragment=n,_t.Lazy=d,_t.Memo=f,_t.Portal=t,_t.Profiler=o,_t.StrictMode=r,_t.Suspense=c,_t.SuspenseList=u,_t.isAsyncMode=function(){return!1},_t.isConcurrentMode=function(){return!1},_t.isContextConsumer=function(h){return E(h)===a},_t.isContextProvider=function(h){return E(h)===i},_t.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},_t.isForwardRef=function(h){return E(h)===s},_t.isFragment=function(h){return E(h)===n},_t.isLazy=function(h){return E(h)===d},_t.isMemo=function(h){return E(h)===f},_t.isPortal=function(h){return E(h)===t},_t.isProfiler=function(h){return E(h)===o},_t.isStrictMode=function(h){return E(h)===r},_t.isSuspense=function(h){return E(h)===c},_t.isSuspenseList=function(h){return E(h)===u},_t.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===r||h===c||h===u||h===y||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===f||h.$$typeof===i||h.$$typeof===a||h.$$typeof===s||h.$$typeof===x||h.getModuleId!==void 0)},_t.typeOf=E,_t}var yt={},Np;function bS(){return Np||(Np=1,ne.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x=!1,E=!1,h=!1,_=!1,p=!1,m;m=Symbol.for("react.module.reference");function g(ee){return!!(typeof ee=="string"||typeof ee=="function"||ee===n||ee===o||p||ee===r||ee===c||ee===u||_||ee===y||x||E||h||typeof ee=="object"&&ee!==null&&(ee.$$typeof===d||ee.$$typeof===f||ee.$$typeof===i||ee.$$typeof===a||ee.$$typeof===s||ee.$$typeof===m||ee.getModuleId!==void 0))}function b(ee){if(typeof ee=="object"&&ee!==null){var me=ee.$$typeof;switch(me){case e:var pe=ee.type;switch(pe){case n:case o:case r:case c:case u:return pe;default:var xe=pe&&pe.$$typeof;switch(xe){case l:case a:case s:case d:case f:case i:return xe;default:return me}}case t:return me}}}var C=a,S=i,w=e,O=s,R=n,N=d,P=f,L=t,z=o,J=r,X=c,j=u,H=!1,U=!1;function D(ee){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(ee){return U||(U=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function A(ee){return b(ee)===a}function k(ee){return b(ee)===i}function G(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===e}function Z(ee){return b(ee)===s}function q(ee){return b(ee)===n}function V(ee){return b(ee)===d}function Y(ee){return b(ee)===f}function re(ee){return b(ee)===t}function se(ee){return b(ee)===o}function F(ee){return b(ee)===r}function B(ee){return b(ee)===c}function ae(ee){return b(ee)===u}yt.ContextConsumer=C,yt.ContextProvider=S,yt.Element=w,yt.ForwardRef=O,yt.Fragment=R,yt.Lazy=N,yt.Memo=P,yt.Portal=L,yt.Profiler=z,yt.StrictMode=J,yt.Suspense=X,yt.SuspenseList=j,yt.isAsyncMode=D,yt.isConcurrentMode=W,yt.isContextConsumer=A,yt.isContextProvider=k,yt.isElement=G,yt.isForwardRef=Z,yt.isFragment=q,yt.isLazy=V,yt.isMemo=Y,yt.isPortal=re,yt.isProfiler=se,yt.isStrictMode=F,yt.isSuspense=B,yt.isSuspenseList=ae,yt.isValidElementType=g,yt.typeOf=b}()),yt}ne.env.NODE_ENV==="production"?nc.exports=yS():nc.exports=bS();var Ii=nc.exports;function ro(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return M.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ro(r)):Ii.isFragment(r)&&r.props?n=n.concat(ro(r.props.children,t)):n.push(r))}),n}var rc={},oc=[],wS=function(t){oc.push(t)};function Mr(e,t){if(ne.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=oc.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function xS(e,t){if(ne.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=oc.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function kp(){rc={}}function Lp(e,t,n){!t&&!rc[n]&&(e(!1,n),rc[n]=!0)}function pt(e,t){Lp(Mr,e,t)}function SS(e,t){Lp(xS,e,t)}pt.preMessage=wS,pt.resetWarned=kp,pt.noteOnce=SS;function De(e){"@babel/helpers - typeof";return De=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(e)}function CS(e,t){if(De(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(De(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fp(e){var t=CS(e,"string");return De(t)=="symbol"?t:t+""}function oe(e,t,n){return(t=Fp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dp(Object(n),!0).forEach(function(r){oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ai(e){return e instanceof HTMLElement||e instanceof SVGElement}function Bp(e){return e&&De(e)==="object"&&Ai(e.nativeElement)?e.nativeElement:Ai(e)?e:null}function Ga(e){var t=Bp(e);if(t)return t;if(e instanceof M.Component){var n;return(n=to.findDOMNode)===null||n===void 0?void 0:n.call(to,e)}return null}function Ka(e,t,n){var r=v.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var ic=function(t,n){typeof t=="function"?t(n):De(t)==="object"&&t&&"current"in t&&(t.current=n)},qn=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(i){n.forEach(function(a){ic(a,i)})}},Lo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ka(function(){return qn.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,l){return a!==i[l]})})},Ir=function(t){var n,r,o=Ii.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Ii.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Ii.ForwardRef)};function zp(e){return M.isValidElement(e)&&!Ii.isFragment(e)}Number(M.version.split(".")[0])>=19;var ac=v.createContext(null);function ES(e){var t=e.children,n=e.onBatchResize,r=v.useRef(0),o=v.useRef([]),i=v.useContext(ac),a=v.useCallback(function(l,s,c){r.current+=1;var u=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,s,c)},[n,i]);return v.createElement(ac.Provider,{value:a},t)}var gr=new Map;function qp(e){e.forEach(function(t){var n,r=t.target;(n=gr.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Vp=new Op(qp);ne.env.NODE_ENV,ne.env.NODE_ENV;function OS(e,t){gr.has(e)||(gr.set(e,new Set),Vp.observe(e)),gr.get(e).add(t)}function $S(e,t){gr.has(e)&&(gr.get(e).delete(t),gr.get(e).size||(Vp.unobserve(e),gr.delete(e)))}function rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fp(r.key),r)}}function on(e,t,n){return t&&Hp(e.prototype,t),n&&Hp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ni(e,t){return Ni=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ni(e,t)}function Ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ni(e,t)}function ki(e){return ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ki(e)}function sc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sc=function(){return!!e})()}function nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TS(e,t){if(t&&(De(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nt(e)}function Nr(e){var t=sc();return function(){var n,r=ki(e);if(t){var o=ki(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return TS(this,n)}}var PS=function(e){Ar(n,e);var t=Nr(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component);function RS(e,t){var n=e.children,r=e.disabled,o=v.useRef(null),i=v.useRef(null),a=v.useContext(ac),l=typeof n=="function",s=l?n(o):n,c=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&v.isValidElement(s)&&Ir(s),f=u?s.ref:null,d=Lo(f,o),y=function(){var _;return Ga(o.current)||(o.current&&De(o.current)==="object"?Ga((_=o.current)===null||_===void 0?void 0:_.nativeElement):null)||Ga(i.current)};v.useImperativeHandle(t,function(){return y()});var x=v.useRef(e);x.current=e;var E=v.useCallback(function(h){var _=x.current,p=_.onResize,m=_.data,g=h.getBoundingClientRect(),b=g.width,C=g.height,S=h.offsetWidth,w=h.offsetHeight,O=Math.floor(b),R=Math.floor(C);if(c.current.width!==O||c.current.height!==R||c.current.offsetWidth!==S||c.current.offsetHeight!==w){var N={width:O,height:R,offsetWidth:S,offsetHeight:w};c.current=N;var P=S===Math.round(b)?b:S,L=w===Math.round(C)?C:w,z=ie(ie({},N),{},{offsetWidth:P,offsetHeight:L});a==null||a(z,h,m),p&&Promise.resolve().then(function(){p(z,h)})}},[]);return v.useEffect(function(){var h=y();return h&&!r&&OS(h,E),function(){return $S(h,E)}},[o.current,r]),v.createElement(PS,{ref:i},u?v.cloneElement(s,{ref:d}):s)}var Wp=v.forwardRef(RS);ne.env.NODE_ENV!=="production"&&(Wp.displayName="SingleObserver");var jS="rc-observer-key";function MS(e,t){var n=e.children,r=typeof n=="function"?[n]:ro(n);return ne.env.NODE_ENV!=="production"&&(r.length>1?Mr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Mr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(jS,"-").concat(i);return v.createElement(Wp,Pe({},e,{key:a,ref:i===0?t:void 0}),o)})}var ar=v.forwardRef(MS);ne.env.NODE_ENV!=="production"&&(ar.displayName="ResizeObserver"),ar.Collection=ES;function Vn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function lc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function IS(e){if(Array.isArray(e))return lc(e)}function Up(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cc(e,t){if(e){if(typeof e=="string")return lc(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lc(e,t):void 0}}function AS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
32
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Se(e){return IS(e)||Up(e)||cc(e)||AS()}var Gp=function(t){return+setTimeout(t,16)},Kp=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Gp=function(t){return window.requestAnimationFrame(t)},Kp=function(t){return window.cancelAnimationFrame(t)});var Xp=0,Xa=new Map;function Yp(e){Xa.delete(e)}var kt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xp+=1;var r=Xp;function o(i){if(i===0)Yp(r),t();else{var a=Gp(function(){o(i-1)});Xa.set(r,a)}}return o(n),r};kt.cancel=function(e){var t=Xa.get(e);return Yp(e),Kp(t)},ne.env.NODE_ENV!=="production"&&(kt.ids=function(){return Xa});function Jp(e){if(Array.isArray(e))return e}function NS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,o=u}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function Qp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
33
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function he(e,t){return Jp(e)||NS(e,t)||cc(e,t)||Qp()}function Li(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function hn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function uc(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Zp="data-rc-order",eh="data-rc-priority",kS="rc-util-key",dc=new Map;function th(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):kS}function Ya(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function LS(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function fc(e){return Array.from((dc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function nh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!hn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=LS(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(Zp,a),l&&i&&s.setAttribute(eh,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=Ya(t),u=c.firstChild;if(r){if(l){var f=(t.styles||fc(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(Zp)))return!1;var y=Number(d.getAttribute(eh)||0);return i>=y});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function rh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ya(t);return(t.styles||fc(n)).find(function(r){return r.getAttribute(th(t))===e})}function Fi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rh(e,t);if(n){var r=Ya(t);r.removeChild(n)}}function FS(e,t){var n=dc.get(e);if(!n||!uc(document,n)){var r=nh("",t),o=r.parentNode;dc.set(e,o),e.removeChild(r)}}function vr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ya(n),o=fc(r),i=ie(ie({},n),{},{styles:o});FS(r,i);var a=rh(t,i);if(a){var l,s;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=nh(e,i);return u.setAttribute(th(i),t),u}function DS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ot(e,t){if(e==null)return{};var n,r,o=DS(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Di(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(pt(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var c=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&De(i)==="object"&&De(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(d){return o(i[d],a[d],c)})}return!1}return o(e,t)}var BS="%";function pc(e){return e.join(BS)}var zS=function(){function e(t){rn(this,e),oe(this,"instanceId",void 0),oe(this,"cache",new Map),this.instanceId=t}return on(e,[{key:"get",value:function(n){return this.opGet(pc(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(pc(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),Fo="data-token-hash",Hn="data-css-hash",qS="data-cache-path",kr="__cssinjs_instance__";function VS(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Hn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[kr]=o[kr]||e,o[kr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Hn,"]"))).forEach(function(o){var i=o.getAttribute(Hn);if(r[i]){if(o[kr]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new zS(e)}var Ja=v.createContext({hashPriority:"low",cache:VS(),defaultCache:!0});function HS(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var hc=function(){function e(){rn(this,e),oe(this,"cache",void 0),oe(this,"keys",void 0),oe(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return on(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=he(c,2),d=f[1];return o.internalGet(u)[1]<d?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=he(i,1),l=a[0];this.delete(l)}this.keys.push(n)}var s=this.cache;n.forEach(function(c,u){if(u===n.length-1)s.set(c,{value:[r,o.cacheCallTimes++]});else{var f=s.get(c);f?f.map||(f.map=new Map):s.set(c,{map:new Map}),s=s.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!HS(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();oe(hc,"MAX_CACHE_SIZE",20),oe(hc,"MAX_CACHE_OFFSET",5);var oh=0,ih=function(){function e(t){rn(this,e),oe(this,"derivatives",void 0),oe(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=oh,t.length===0&&Mr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),oh+=1}return on(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),mc=new hc;function gc(e){var t=Array.isArray(e)?e:[e];return mc.has(t)||mc.set(t,new ih(t)),mc.get(t)}var WS=new WeakMap,vc={};function US(e,t){for(var n=WS,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(vc)||n.set(vc,e()),n.get(vc)}var ah=new WeakMap;function Bi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ah.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof ih?n+=o.id:o&&De(o)==="object"?n+=Bi(o,t):n+=o}),t&&(n=Li(n)),ah.set(e,n)),n}function sh(e,t){return Li("".concat(t,"_").concat(Bi(e,!0)))}var _c=hn();function be(e){return typeof e=="number"?"".concat(e,"px"):e}function Qa(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=ie(ie({},r),{},oe(oe({},Fo,t),Hn,n)),a=Object.keys(i).map(function(l){var s=i[l];return s?"".concat(l,'="').concat(s,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var Za=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},GS=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=he(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},lh=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,s,c=he(a,2),u=c[0],f=c[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[u])){var d,y=Za(u,r==null?void 0:r.prefix);o[y]=typeof f=="number"&&!(r!=null&&(d=r.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(y,")")}}),[i,GS(o,n,{scope:r==null?void 0:r.scope})]},ch=ne.env.NODE_ENV!=="test"&&hn()?v.useLayoutEffect:v.useEffect,Kt=function(t,n){var r=v.useRef(!0);ch(function(){return t(r.current)},n),ch(function(){return r.current=!1,function(){r.current=!0}},[])},yc=function(t,n){Kt(function(r){if(!r)return t()},n)},KS=ie({},v),uh=KS.useInsertionEffect,XS=function(t,n,r){v.useMemo(t,r),Kt(function(){return n(!0)},r)},YS=uh?function(e,t,n){return uh(function(){return e(),t()},n)}:XS,JS=ie({},v),QS=JS.useInsertionEffect,ZS=function(t){var n=[],r=!1;function o(i){if(r){ne.env.NODE_ENV!=="production"&&Mr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return v.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},eC=function(){return function(t){t()}},tC=typeof QS<"u"?ZS:eC;function nC(){return!1}var bc=!1;function rC(){return bc}const oC=ne.env.NODE_ENV==="production"?nC:rC;if(ne.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var wc=window;if(typeof wc.webpackHotUpdate=="function"){var iC=wc.webpackHotUpdate;wc.webpackHotUpdate=function(){return bc=!0,setTimeout(function(){bc=!1},0),iC.apply(void 0,arguments)}}}function xc(e,t,n,r,o){var i=v.useContext(Ja),a=i.cache,l=[e].concat(Se(t)),s=pc(l),c=tC([s]),u=oC(),f=function(E){a.opUpdate(s,function(h){var _=h||[void 0,void 0],p=he(_,2),m=p[0],g=m===void 0?0:m,b=p[1],C=b;ne.env.NODE_ENV!=="production"&&b&&u&&(r==null||r(C,u),C=null);var S=C||n(),w=[g,S];return E?E(w):w})};v.useMemo(function(){f()},[s]);var d=a.opGet(s);ne.env.NODE_ENV!=="production"&&!d&&(f(),d=a.opGet(s));var y=d[1];return YS(function(){o==null||o(y)},function(x){return f(function(E){var h=he(E,2),_=h[0],p=h[1];return x&&_===0&&(o==null||o(y)),[_+1,p]}),function(){a.opUpdate(s,function(E){var h=E||[],_=he(h,2),p=_[0],m=p===void 0?0:p,g=_[1],b=m-1;return b===0?(c(function(){(x||!a.opGet(s))&&(r==null||r(g,!1))}),null):[m-1,g]})}},[s]),y}var aC={},sC=ne.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",oo=new Map;function lC(e){oo.set(e,(oo.get(e)||0)+1)}function cC(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Fo,'="').concat(e,'"]'));n.forEach(function(r){if(r[kr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var uC=0;function dC(e,t){oo.set(e,(oo.get(e)||0)-1);var n=Array.from(oo.keys()),r=n.filter(function(o){var i=oo.get(o)||0;return i<=0});n.length-r.length>uC&&r.forEach(function(o){cC(o,t),oo.delete(o)})}var fC=function(t,n,r,o){var i=r.getDerivativeToken(t),a=ie(ie({},i),n);return o&&(a=o(a)),a},dh="token";function pC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=M.useContext(Ja),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,c=s===void 0?aC:s,u=n.formatToken,f=n.getComputedToken,d=n.cssVar,y=US(function(){return Object.assign.apply(Object,[{}].concat(Se(t)))},t),x=Bi(y),E=Bi(c),h=d?Bi(d):"",_=xc(dh,[l,e.id,x,E,h],function(){var p,m=f?f(y,c,e):fC(y,c,e,u),g=ie({},m),b="";if(d){var C=lh(m,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),S=he(C,2);m=S[0],b=S[1]}var w=sh(m,l);m._tokenKey=w,g._tokenKey=sh(g,l);var O=(p=d==null?void 0:d.key)!==null&&p!==void 0?p:w;m._themeKey=O,lC(O);var R="".concat(sC,"-").concat(Li(w));return m._hashId=R,[m,R,g,b,(d==null?void 0:d.key)||""]},function(p){dC(p[0]._themeKey,o)},function(p){var m=he(p,4),g=m[0],b=m[3];if(d&&b){var C=vr(b,Li("css-variables-".concat(g._themeKey)),{mark:Hn,prepend:"queue",attachTo:i,priority:-999});C[kr]=o,C.setAttribute(Fo,g._themeKey)}});return _}var hC=function(t,n,r){var o=he(t,5),i=o[2],a=o[3],l=o[4],s=r||{},c=s.plain;if(!a)return null;var u=i._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},y=Qa(a,l,u,d,c);return[f,u,y]},mC={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fh="comm",ph="rule",hh="decl",gC="@import",vC="@keyframes",_C="@layer",mh=Math.abs,Sc=String.fromCharCode;function gh(e){return e.trim()}function es(e,t,n){return e.replace(t,n)}function yC(e,t,n){return e.indexOf(t,n)}function zi(e,t){return e.charCodeAt(t)|0}function Do(e,t,n){return e.slice(t,n)}function sr(e){return e.length}function bC(e){return e.length}function ts(e,t){return t.push(e),e}var ns=1,Bo=1,vh=0,Pn=0,Ut=0,zo="";function Cc(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ns,column:Bo,length:a,return:"",siblings:l}}function wC(){return Ut}function xC(){return Ut=Pn>0?zi(zo,--Pn):0,Bo--,Ut===10&&(Bo=1,ns--),Ut}function Wn(){return Ut=Pn<vh?zi(zo,Pn++):0,Bo++,Ut===10&&(Bo=1,ns++),Ut}function Lr(){return zi(zo,Pn)}function rs(){return Pn}function os(e,t){return Do(zo,e,t)}function qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function SC(e){return ns=Bo=1,vh=sr(zo=e),Pn=0,[]}function CC(e){return zo="",e}function Ec(e){return gh(os(Pn-1,Oc(e===91?e+2:e===40?e+1:e)))}function EC(e){for(;(Ut=Lr())&&Ut<33;)Wn();return qi(e)>2||qi(Ut)>3?"":" "}function OC(e,t){for(;--t&&Wn()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return os(e,rs()+(t<6&&Lr()==32&&Wn()==32))}function Oc(e){for(;Wn();)switch(Ut){case e:return Pn;case 34:case 39:e!==34&&e!==39&&Oc(Ut);break;case 40:e===41&&Oc(e);break;case 92:Wn();break}return Pn}function $C(e,t){for(;Wn()&&e+Ut!==57;)if(e+Ut===84&&Lr()===47)break;return"/*"+os(t,Pn-1)+"*"+Sc(e===47?e:Wn())}function TC(e){for(;!qi(Lr());)Wn();return os(e,Pn)}function PC(e){return CC(is("",null,null,null,[""],e=SC(e),0,[0],e))}function is(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,f=a,d=0,y=0,x=0,E=1,h=1,_=1,p=0,m="",g=o,b=i,C=r,S=m;h;)switch(x=p,p=Wn()){case 40:if(x!=108&&zi(S,f-1)==58){yC(S+=es(Ec(p),"&","&\f"),"&\f",mh(c?l[c-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:S+=Ec(p);break;case 9:case 10:case 13:case 32:S+=EC(x);break;case 92:S+=OC(rs()-1,7);continue;case 47:switch(Lr()){case 42:case 47:ts(RC($C(Wn(),rs()),t,n,s),s),(qi(x||1)==5||qi(Lr()||1)==5)&&sr(S)&&Do(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*E:l[c++]=sr(S)*_;case 125*E:case 59:case 0:switch(p){case 0:case 125:h=0;case 59+u:_==-1&&(S=es(S,/\f/g,"")),y>0&&(sr(S)-f||E===0&&x===47)&&ts(y>32?yh(S+";",r,n,f-1,s):yh(es(S," ","")+";",r,n,f-2,s),s);break;case 59:S+=";";default:if(ts(C=_h(S,t,n,c,u,o,l,m,g=[],b=[],f,i),i),p===123)if(u===0)is(S,t,C,C,g,i,f,l,b);else switch(d===99&&zi(S,3)===110?100:d){case 100:case 108:case 109:case 115:is(e,C,C,r&&ts(_h(e,C,C,0,0,o,l,m,o,g=[],f,b),b),o,b,f,l,r?g:b);break;default:is(S,C,C,C,[""],b,0,l,b)}}c=u=y=0,E=_=1,m=S="",f=a;break;case 58:f=1+sr(S),y=x;default:if(E<1){if(p==123)--E;else if(p==125&&E++==0&&xC()==125)continue}switch(S+=Sc(p),p*E){case 38:_=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(sr(S)-1)*_,_=1;break;case 64:Lr()===45&&(S+=Ec(Wn())),d=Lr(),u=f=sr(m=S+=TC(rs())),p++;break;case 45:x===45&&sr(S)==2&&(E=0)}}return i}function _h(e,t,n,r,o,i,a,l,s,c,u,f){for(var d=o-1,y=o===0?i:[""],x=bC(y),E=0,h=0,_=0;E<r;++E)for(var p=0,m=Do(e,d+1,d=mh(h=a[E])),g=e;p<x;++p)(g=gh(h>0?y[p]+" "+m:es(m,/&\f/g,y[p])))&&(s[_++]=g);return Cc(e,t,n,o===0?ph:l,s,c,u,f)}function RC(e,t,n,r){return Cc(e,t,n,fh,Sc(wC()),Do(e,2,-2),0,r)}function yh(e,t,n,r,o){return Cc(e,t,n,hh,Do(e,0,r),Do(e,r+1,-1),r,o)}function $c(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function jC(e,t,n,r){switch(e.type){case _C:if(e.children.length)break;case gC:case hh:return e.return=e.return||e.value;case fh:return"";case vC:return e.return=e.value+"{"+$c(e.children,r)+"}";case ph:if(!sr(e.value=e.props.join(",")))return""}return sr(n=$c(e.children,r))?e.return=e.value+"{"+n+"}":""}function bh(e,t){var n=t.path,r=t.parentSelectors;pt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var MC=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&bh("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},IC=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&bh("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},wh="data-ant-cssinjs-cache-path",xh="_FILE_STYLE__",io,Sh=!0;function AC(){if(!io&&(io={},hn())){var e=document.createElement("div");e.className=wh,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=he(i,2),l=a[0],s=a[1];io[l]=s});var n=document.querySelector("style[".concat(wh,"]"));if(n){var r;Sh=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function NC(e){return AC(),!!io[e]}function kC(e){var t=io[e],n=null;if(t&&hn())if(Sh)n=xh;else{var r=document.querySelector("style[".concat(Hn,'="').concat(io[e],'"]'));r?n=r.innerHTML:delete io[e]}return[n,t]}var Ch="_skip_check_",Eh="_multi_value_";function as(e){var t=$c(PC(e),jC);return t.replace(/\{%%%\:[^;];}/g,";")}function LC(e){return De(e)==="object"&&e&&(Ch in e||Eh in e)}function Oh(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var l,s=a.trim().split(/\s+/),c=s[0]||"",u=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Se(s.slice(1))).join(" ")});return i.join(",")}var FC=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer,c=n.path,u=n.hashPriority,f=n.transformers,d=f===void 0?[]:f,y=n.linters,x=y===void 0?[]:y,E="",h={};function _(g){var b=g.getName(l);if(!h[b]){var C=e(g.style,n,{root:!1,parentSelectors:a}),S=he(C,1),w=S[0];h[b]="@keyframes ".concat(g.getName(l)).concat(w)}}function p(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return g.forEach(function(C){Array.isArray(C)?p(C,b):C&&b.push(C)}),b}var m=p(Array.isArray(t)?t:[t]);return m.forEach(function(g){var b=typeof g=="string"&&!o?{}:g;if(typeof b=="string")E+="".concat(b,`
|
|
34
|
+
`);else if(b._keyframe)_(b);else{var C=d.reduce(function(S,w){var O;return(w==null||(O=w.visit)===null||O===void 0?void 0:O.call(w,S))||S},b);Object.keys(C).forEach(function(S){var w=C[S];if(De(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!LC(w)){var O=!1,R=S.trim(),N=!1;(o||i)&&l?R.startsWith("@")?O=!0:R==="&"?R=Oh("",l,u):R=Oh(S,l,u):o&&!l&&(R==="&"||R==="")&&(R="",N=!0);var P=e(w,n,{root:N,injectHash:O,parentSelectors:[].concat(Se(a),[R])}),L=he(P,2),z=L[0],J=L[1];h=ie(ie({},h),J),E+="".concat(R).concat(z)}else{let H=function(U,D){ne.env.NODE_ENV!=="production"&&(De(w)!=="object"||!(w!=null&&w[Ch]))&&[MC,IC].concat(Se(x)).forEach(function(k){return k(U,D,{path:c,hashId:l,parentSelectors:a})});var W=U.replace(/[A-Z]/g,function(k){return"-".concat(k.toLowerCase())}),A=D;!mC[U]&&typeof A=="number"&&A!==0&&(A="".concat(A,"px")),U==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(_(D),A=D.getName(l)),E+="".concat(W,":").concat(A,";")};var X,j=(X=w==null?void 0:w.value)!==null&&X!==void 0?X:w;De(w)==="object"&&w!==null&&w!==void 0&&w[Eh]&&Array.isArray(j)?j.forEach(function(U){H(S,U)}):H(S,j)}})}}),o?s&&(E="@layer ".concat(s.name," {").concat(E,"}"),s.dependencies&&(h["@layer ".concat(s.name)]=s.dependencies.map(function(g){return"@layer ".concat(g,", ").concat(s.name,";")}).join(`
|
|
35
|
+
`))):E="{".concat(E,"}"),[E,h]};function $h(e,t){return Li("".concat(e.join("%")).concat(t))}function DC(){return null}var Th="style";function Tc(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,u=v.useContext(Ja),f=u.autoClear,d=u.mock,y=u.defaultCache,x=u.hashPriority,E=u.container,h=u.ssrInline,_=u.transformers,p=u.linters,m=u.cache,g=u.layer,b=n._tokenKey,C=[b];g&&C.push("layer"),C.push.apply(C,Se(r));var S=_c;ne.env.NODE_ENV!=="production"&&d!==void 0&&(S=d==="client");var w=xc(Th,C,function(){var L=C.join("|");if(NC(L)){var z=kC(L),J=he(z,2),X=J[0],j=J[1];if(X)return[X,b,j,{},l,c]}var H=t(),U=FC(H,{hashId:o,hashPriority:x,layer:g?i:void 0,path:r.join("-"),transformers:_,linters:p}),D=he(U,2),W=D[0],A=D[1],k=as(W),G=$h(C,k);return[k,b,G,A,l,c]},function(L,z){var J=he(L,3),X=J[2];(z||f)&&_c&&Fi(X,{mark:Hn})},function(L){var z=he(L,4),J=z[0];z[1];var X=z[2],j=z[3];if(S&&J!==xh){var H={mark:Hn,prepend:g?!1:"queue",attachTo:E,priority:c},U=typeof a=="function"?a():a;U&&(H.csp={nonce:U});var D=[],W=[];Object.keys(j).forEach(function(k){k.startsWith("@layer")?D.push(k):W.push(k)}),D.forEach(function(k){vr(as(j[k]),"_layer-".concat(k),ie(ie({},H),{},{prepend:!0}))});var A=vr(J,X,H);A[kr]=m.instanceId,A.setAttribute(Fo,b),ne.env.NODE_ENV!=="production"&&A.setAttribute(qS,C.join("|")),W.forEach(function(k){vr(as(j[k]),"_effect-".concat(k),H)})}}),O=he(w,3),R=O[0],N=O[1],P=O[2];return function(L){var z;return!h||S||!y?z=v.createElement(DC,null):z=v.createElement("style",Pe({},oe(oe({},Fo,N),Hn,P),{dangerouslySetInnerHTML:{__html:R}})),v.createElement(v.Fragment,null,z,L)}}var BC=function(t,n,r){var o=he(t,6),i=o[0],a=o[1],l=o[2],s=o[3],c=o[4],u=o[5],f=r||{},d=f.plain;if(c)return null;var y=i,x={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return y=Qa(i,a,l,x,d),s&&Object.keys(s).forEach(function(E){if(!n[E]){n[E]=!0;var h=as(s[E]),_=Qa(h,a,"_effect-".concat(E),x,d);E.startsWith("@layer")?y=_+y:y+=_}}),[u,l,y]},Ph="cssVar",zC=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,u=M.useContext(Ja),f=u.cache.instanceId,d=u.container,y=l._tokenKey,x=[].concat(Se(t.path),[r,c,y]),E=xc(Ph,x,function(){var h=n(),_=lh(h,r,{prefix:o,unitless:i,ignore:a,scope:c}),p=he(_,2),m=p[0],g=p[1],b=$h(x,g);return[m,g,b,r]},function(h){var _=he(h,3),p=_[2];_c&&Fi(p,{mark:Hn})},function(h){var _=he(h,3),p=_[1],m=_[2];if(p){var g=vr(p,m,{mark:Hn,prepend:"queue",attachTo:d,priority:-999});g[kr]=f,g.setAttribute(Fo,r)}});return E},qC=function(t,n,r){var o=he(t,4),i=o[1],a=o[2],l=o[3],s=r||{},c=s.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Qa(i,l,a,f,c);return[u,a,d]};oe(oe(oe({},Th,BC),dh,hC),Ph,qC);var it=function(){function e(t,n){rn(this,e),oe(this,"name",void 0),oe(this,"style",void 0),oe(this,"_keyframe",!0),this.name=t,this.style=n}return on(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function qo(e){return e.notSplit=!0,e}qo(["borderTop","borderBottom"]),qo(["borderTop"]),qo(["borderBottom"]),qo(["borderLeft","borderRight"]),qo(["borderLeft"]),qo(["borderRight"]);var Pc=M.createContext({});function VC(e){return Jp(e)||Up(e)||cc(e)||Qp()}function lr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Rh(e,t,n,r){if(!t.length)return n;var o=VC(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=Se(e):l=ie({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=Rh(l[i],a,n,r),l}function Un(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!lr(e,t.slice(0,-1))?e:Rh(e,t,n,r)}function HC(e){return De(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function jh(e){return Array.isArray(e)?[]:{}}var WC=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Vo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jh(t[0]);return t.forEach(function(o){function i(a,l){var s=new Set(l),c=lr(o,a),u=Array.isArray(c);if(u||HC(c)){if(!s.has(c)){s.add(c);var f=lr(r,a);u?r=Un(r,a,[]):(!f||De(f)!=="object")&&(r=Un(r,a,jh(c))),WC(c).forEach(function(d){i([].concat(Se(a),[d]),s)})}}else r=Un(r,a,c)}i([])}),r}function Mh(){}let _r=null;function UC(){_r=null,kp()}let Rc=Mh;ne.env.NODE_ENV!=="production"&&(Rc=(e,t,n)=>{pt(e,`[antd: ${t}] ${n}`),ne.env.NODE_ENV==="test"&&UC()});const Ih=v.createContext({}),Pt=ne.env.NODE_ENV!=="production"?e=>{const{strict:t}=v.useContext(Ih),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=_r;_r||(_r={}),_r[e]=_r[e]||[],_r[e].includes(i||"")||_r[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",_r)}else ne.env.NODE_ENV!=="production"&&Rc(r,e,i)};return n.deprecated=(r,o,i,a)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=Mh,e},ao=Rc,Ah=M.createContext(void 0);var GC={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},KC={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},XC=ie(ie({},KC),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Nh={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},kh={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},XC),timePickerLocale:Object.assign({},Nh)},wn="${label} is not a valid ${type}",Fr={locale:"en",Pagination:GC,DatePicker:kh,TimePicker:Nh,Calendar:kh,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:wn,method:wn,array:wn,object:wn,number:wn,date:wn,boolean:wn,integer:wn,float:wn,regexp:wn,email:wn,url:wn,hex:wn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let ss=Object.assign({},Fr.Modal),ls=[];const Lh=()=>ls.reduce((e,t)=>Object.assign(Object.assign({},e),t),Fr.Modal);function YC(e){if(e){const t=Object.assign({},e);return ls.push(t),ss=Lh(),()=>{ls=ls.filter(n=>n!==t),ss=Lh()}}ss=Object.assign({},Fr.Modal)}function Fh(){return ss}const jc=M.createContext(void 0),cs=(e,t)=>{const n=v.useContext(jc),r=v.useMemo(()=>{var i;const a=t||Fr[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=v.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Fr.locale:i},[n]);return[r,o]},Dh="internalMark",Bh=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(ne.env.NODE_ENV!=="production"){const i=Pt("LocaleProvider");ne.env.NODE_ENV!=="production"&&i(r===Dh,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}v.useEffect(()=>YC(t==null?void 0:t.Modal),[t]);const o=v.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return v.createElement(jc.Provider,{value:o},n)};ne.env.NODE_ENV!=="production"&&(Bh.displayName="LocaleProvider");function an(e,t){JC(e)&&(e="100%");var n=QC(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function us(e){return Math.min(1,Math.max(0,e))}function JC(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function QC(e){return typeof e=="string"&&e.indexOf("%")!==-1}function zh(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ds(e){return e<=1?"".concat(Number(e)*100,"%"):e}function so(e){return e.length===1?"0"+e:String(e)}function ZC(e,t,n){return{r:an(e,255)*255,g:an(t,255)*255,b:an(n,255)*255}}function qh(e,t,n){e=an(e,255),t=an(t,255),n=an(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:a,l}}function Mc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eE(e,t,n){var r,o,i;if(e=an(e,360),t=an(t,100),n=an(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Mc(l,a,e+1/3),o=Mc(l,a,e),i=Mc(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Ic(e,t,n){e=an(e,255),t=an(t,255),n=an(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s,v:a}}function tE(e,t,n){e=an(e,360)*6,t=an(t,100),n=an(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,c=[n,a,i,i,l,n][s],u=[l,n,n,a,i,i][s],f=[i,i,l,n,n,a][s];return{r:c*255,g:u*255,b:f*255}}function Ac(e,t,n,r){var o=[so(Math.round(e).toString(16)),so(Math.round(t).toString(16)),so(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function nE(e,t,n,r,o){var i=[so(Math.round(e).toString(16)),so(Math.round(t).toString(16)),so(Math.round(n).toString(16)),so(rE(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function rE(e){return Math.round(parseFloat(e)*255).toString(16)}function Vh(e){return xn(e)/255}function xn(e){return parseInt(e,16)}function oE(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Nc={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ho(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=sE(e)),typeof e=="object"&&(yr(e.r)&&yr(e.g)&&yr(e.b)?(t=ZC(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):yr(e.h)&&yr(e.s)&&yr(e.v)?(r=ds(e.s),o=ds(e.v),t=tE(e.h,r,o),a=!0,l="hsv"):yr(e.h)&&yr(e.s)&&yr(e.l)&&(r=ds(e.s),i=ds(e.l),t=eE(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=zh(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var iE="[-\\+]?\\d+%?",aE="[-\\+]?\\d*\\.\\d+%?",Dr="(?:".concat(aE,")|(?:").concat(iE,")"),kc="[\\s|\\(]+(".concat(Dr,")[,|\\s]+(").concat(Dr,")[,|\\s]+(").concat(Dr,")\\s*\\)?"),Lc="[\\s|\\(]+(".concat(Dr,")[,|\\s]+(").concat(Dr,")[,|\\s]+(").concat(Dr,")[,|\\s]+(").concat(Dr,")\\s*\\)?"),Gn={CSS_UNIT:new RegExp(Dr),rgb:new RegExp("rgb"+kc),rgba:new RegExp("rgba"+Lc),hsl:new RegExp("hsl"+kc),hsla:new RegExp("hsla"+Lc),hsv:new RegExp("hsv"+kc),hsva:new RegExp("hsva"+Lc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function sE(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Nc[e])e=Nc[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Gn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Gn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Gn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Gn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Gn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Gn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Gn.hex8.exec(e),n?{r:xn(n[1]),g:xn(n[2]),b:xn(n[3]),a:Vh(n[4]),format:t?"name":"hex8"}:(n=Gn.hex6.exec(e),n?{r:xn(n[1]),g:xn(n[2]),b:xn(n[3]),format:t?"name":"hex"}:(n=Gn.hex4.exec(e),n?{r:xn(n[1]+n[1]),g:xn(n[2]+n[2]),b:xn(n[3]+n[3]),a:Vh(n[4]+n[4]),format:t?"name":"hex8"}:(n=Gn.hex3.exec(e),n?{r:xn(n[1]+n[1]),g:xn(n[2]+n[2]),b:xn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function yr(e){return!!Gn.CSS_UNIT.exec(String(e))}var vn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=oE(t)),this.originalInput=t;var o=Ho(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=zh(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Ic(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ic(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=qh(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=qh(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ac(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),nE(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(an(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(an(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Ac(this.r,this.g,this.b,!1),n=0,r=Object.entries(Nc);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=us(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=us(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=us(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=us(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),fs=2,Hh=.16,lE=.05,cE=.05,uE=.15,Wh=5,Uh=4,dE=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Gh(e){var t=e.r,n=e.g,r=e.b,o=Ic(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function ps(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Ac(t,n,r,!1))}function fE(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function Kh(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-fs*t:Math.round(e.h)+fs*t:r=n?Math.round(e.h)+fs*t:Math.round(e.h)-fs*t,r<0?r+=360:r>=360&&(r-=360),r}function Xh(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Hh*t:t===Uh?r=e.s+Hh:r=e.s+lE*t,r>1&&(r=1),n&&t===Wh&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Yh(e,t,n){var r;return n?r=e.v+cE*t:r=e.v-uE*t,r>1&&(r=1),Number(r.toFixed(2))}function Vi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ho(e),o=Wh;o>0;o-=1){var i=Gh(r),a=ps(Ho({h:Kh(i,o,!0),s:Xh(i,o,!0),v:Yh(i,o,!0)}));n.push(a)}n.push(ps(r));for(var l=1;l<=Uh;l+=1){var s=Gh(r),c=ps(Ho({h:Kh(s,l),s:Xh(s,l),v:Yh(s,l)}));n.push(c)}return t.theme==="dark"?dE.map(function(u){var f=u.index,d=u.opacity,y=ps(fE(Ho(t.backgroundColor||"#141414"),Ho(n[f]),d*100));return y}):n}var Fc={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Dc=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Dc.primary=Dc[5];var Bc=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Bc.primary=Bc[5];var zc=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];zc.primary=zc[5];var qc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];qc.primary=qc[5];var Vc=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Vc.primary=Vc[5];var Hc=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Hc.primary=Hc[5];var Wc=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Wc.primary=Wc[5];var Uc=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Uc.primary=Uc[5];var hs=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];hs.primary=hs[5];var Gc=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Gc.primary=Gc[5];var Kc=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Kc.primary=Kc[5];var Xc=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Xc.primary=Xc[5];var Yc=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Yc.primary=Yc[5];var Jc={red:Dc,volcano:Bc,orange:zc,gold:qc,yellow:Vc,lime:Hc,green:Wc,cyan:Uc,blue:hs,geekblue:Gc,purple:Kc,magenta:Xc,grey:Yc};const Jh={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Hi=Object.assign(Object.assign({},Jh),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
36
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
37
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function pE(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,f=n(s),d=n(o),y=n(i),x=n(a),E=n(l),h=r(c,u),_=e.colorLink||e.colorInfo,p=n(_);return Object.assign(Object.assign({},h),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:x[1],colorErrorBgHover:x[2],colorErrorBgActive:x[3],colorErrorBorder:x[3],colorErrorBorderHover:x[4],colorErrorHover:x[5],colorError:x[6],colorErrorActive:x[7],colorErrorTextHover:x[8],colorErrorText:x[9],colorErrorTextActive:x[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:E[1],colorInfoBgHover:E[2],colorInfoBorder:E[3],colorInfoBorderHover:E[4],colorInfoHover:E[4],colorInfo:E[6],colorInfoActive:E[7],colorInfoTextHover:E[8],colorInfoText:E[9],colorInfoTextActive:E[10],colorLinkHover:p[4],colorLink:p[6],colorLinkActive:p[7],colorBgMask:new vn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const hE=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function mE(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},hE(r))}const gE=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ms(e){return(e+8)/e}function vE(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ms(n)}))}const _E=e=>{const t=vE(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function yE(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const br=(e,t)=>new vn(e).setAlpha(t).toRgbString(),Wi=(e,t)=>new vn(e).darken(t).toHexString(),bE=e=>{const t=Vi(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},wE=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:br(r,.88),colorTextSecondary:br(r,.65),colorTextTertiary:br(r,.45),colorTextQuaternary:br(r,.25),colorFill:br(r,.15),colorFillSecondary:br(r,.06),colorFillTertiary:br(r,.04),colorFillQuaternary:br(r,.02),colorBgLayout:Wi(n,4),colorBgContainer:Wi(n,0),colorBgElevated:Wi(n,0),colorBgSpotlight:br(r,.85),colorBgBlur:"transparent",colorBorder:Wi(n,15),colorBorderSecondary:Wi(n,6)}};function xE(e){Fc.pink=Fc.magenta,Jc.pink=Jc.magenta;const t=Object.keys(Jh).map(n=>{const r=e[n]===Fc[n]?Jc[n]:Vi(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),pE(e,{generateColorPalettes:bE,generateNeutralColorPalettes:wE})),_E(e.fontSize)),yE(e)),gE(e)),mE(e))}const Qh=gc(xE),Qc={token:Hi,override:{override:Hi},hashed:!0},Zh=M.createContext(Qc),Ui="ant",Zc="anticon",SE=["outlined","borderless","filled"],CE=(e,t)=>t||(e?`${Ui}-${e}`:Ui),Ke=v.createContext({getPrefixCls:CE,iconPrefixCls:Zc}),EE=`-ant-${Date.now()}-${Math.random()}`;function OE(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new vn(a),c=Vi(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new vn(t.primaryColor),l=Vi(a.toRgbString());l.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const s=new vn(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
38
|
+
:root {
|
|
39
|
+
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
40
|
+
`)}
|
|
41
|
+
}
|
|
42
|
+
`.trim()}function $E(e,t){const n=OE(e,t);hn()?vr(n,`${EE}-dynamic-theme`):ne.env.NODE_ENV!=="production"&&ao(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Br=v.createContext(!1),eu=e=>{let{children:t,disabled:n}=e;const r=v.useContext(Br);return v.createElement(Br.Provider,{value:n??r},t)},lo=v.createContext(void 0),TE=e=>{let{children:t,size:n}=e;const r=v.useContext(lo);return v.createElement(lo.Provider,{value:n||r},t)};function PE(){const e=M.useContext(Br),t=M.useContext(lo);return{componentDisabled:e,componentSize:t}}var em=on(function e(){rn(this,e)}),tm="CALC_UNIT",RE=new RegExp(tm,"g");function tu(e){return typeof e=="number"?"".concat(e).concat(tm):e}var jE=function(e){Ar(n,e);var t=Nr(n);function n(r,o){var i;rn(this,n),i=t.call(this),oe(nt(i),"result",""),oe(nt(i),"unitlessCssVar",void 0),oe(nt(i),"lowPriority",void 0);var a=De(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=tu(r):a==="string"&&(i.result=r),i}return on(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(tu(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(tu(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},l=a.unit,s=!0;return typeof l=="boolean"?s=l:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(s=!1),this.result=this.result.replace(RE,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(em),ME=function(e){Ar(n,e);var t=Nr(n);function n(r){var o;return rn(this,n),o=t.call(this),oe(nt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return on(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(em),IE=function(t,n){var r=t==="css"?jE:ME;return function(o){return new r(o,n)}},nm=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Zt(e){var t=v.useRef();t.current=e;var n=v.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function co(e){var t=v.useRef(!1),n=v.useState(e),r=he(n,2),o=r[0],i=r[1];v.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,s){s&&t.current||i(l)}return[o,a]}function nu(e){return e!==void 0}function Kn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=co(function(){return nu(o)?o:nu(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=he(l,2),c=s[0],u=s[1],f=o!==void 0?o:c,d=a?a(f):f,y=Zt(i),x=co([f]),E=he(x,2),h=E[0],_=E[1];yc(function(){var m=h[0];c!==m&&y(c,m)},[h]),yc(function(){nu(o)||u(o)},[o]);var p=Zt(function(m,g){u(m,g),_([f],g)});return[d,p]}function rm(e,t,n,r){var o=ie({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var s=he(l,2),c=s[0],u=s[1];if(ne.env.NODE_ENV!=="production"&&pt(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var a=ie(ie({},n),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var om=ne.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",ru=!0;function Lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!om)return Object.assign.apply(Object,[{}].concat(t));ru=!1;var r={};return t.forEach(function(o){if(De(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),ru=!0,r}var im={};function AE(){}var NE=function(t){var n,r=t,o=AE;return om&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(ru){var s;(s=n)===null||s===void 0||s.add(l)}return a[l]}}),o=function(a,l){var s;im[a]={global:Array.from(n),component:ie(ie({},(s=im[a])===null||s===void 0?void 0:s.component),l)}}),{token:r,keys:n,flush:o}};function am(e,t,n){if(typeof n=="function"){var r;return n(Lt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function kE(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(i){return be(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(i){return be(i)}).join(","),")")}}}var LE=1e3*60*10,FE=function(){function e(){rn(this,e),oe(this,"map",new Map),oe(this,"objectIDMap",new WeakMap),oe(this,"nextID",0),oe(this,"lastAccessBeat",new Map),oe(this,"accessBeat",0)}return on(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(i){return i&&De(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(De(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>LE&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),sm=new FE;function DE(e,t){return M.useMemo(function(){var n=sm.get(t);if(n)return n;var r=e();return sm.set(t,r),r},t)}var BE=function(){return{}};function zE(e){var t=e.useCSP,n=t===void 0?BE:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function s(d,y,x,E){var h=Array.isArray(d)?d[0]:d;function _(w){return"".concat(String(h)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var p=(E==null?void 0:E.unitless)||{},m=typeof l=="function"?l(d):{},g=ie(ie({},m),{},oe({},_("zIndexPopup"),!0));Object.keys(p).forEach(function(w){g[_(w)]=p[w]});var b=ie(ie({},E),{},{unitless:g,prefixToken:_}),C=u(d,y,x,b),S=c(h,x,b);return function(w){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,R=C(w,O),N=he(R,2),P=N[1],L=S(O),z=he(L,2),J=z[0],X=z[1];return[J,P,X]}}function c(d,y,x){var E=x.unitless,h=x.injectStyle,_=h===void 0?!0:h,p=x.prefixToken,m=x.ignore,g=function(S){var w=S.rootCls,O=S.cssVar,R=O===void 0?{}:O,N=r(),P=N.realToken;return zC({path:[d],prefix:R.prefix,key:R.key,unitless:E,ignore:m,token:P,scope:w},function(){var L=am(d,P,y),z=rm(d,P,L,{deprecatedTokens:x==null?void 0:x.deprecatedTokens});return Object.keys(L).forEach(function(J){z[p(J)]=z[J],delete z[J]}),z}),null},b=function(S){var w=r(),O=w.cssVar;return[function(R){return _&&O?M.createElement(M.Fragment,null,M.createElement(g,{rootCls:S,cssVar:O,component:d}),R):R},O==null?void 0:O.key]};return b}function u(d,y,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(d)?d:[d,d],_=he(h,1),p=_[0],m=h.join("-"),g=e.layer||{name:"antd"};return function(b){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,S=r(),w=S.theme,O=S.realToken,R=S.hashId,N=S.token,P=S.cssVar,L=o(),z=L.rootPrefixCls,J=L.iconPrefixCls,X=n(),j=P?"css":"js",H=DE(function(){var G=new Set;return P&&Object.keys(E.unitless||{}).forEach(function(Z){G.add(Za(Z,P.prefix)),G.add(Za(Z,nm(p,P.prefix)))}),IE(j,G)},[j,p,P==null?void 0:P.prefix]),U=kE(j),D=U.max,W=U.min,A={theme:w,token:N,hashId:R,nonce:function(){return X.nonce},clientOnly:E.clientOnly,layer:g,order:E.order||-999};Tc(ie(ie({},A),{},{clientOnly:!1,path:["Shared",z]}),function(){return typeof i=="function"?i(N):[]});var k=Tc(ie(ie({},A),{},{path:[m,b,J]}),function(){if(E.injectStyle===!1)return[];var G=NE(N),Z=G.token,q=G.flush,V=am(p,O,x),Y=".".concat(b),re=rm(p,O,V,{deprecatedTokens:E.deprecatedTokens});P&&V&&De(V)==="object"&&Object.keys(V).forEach(function(ae){V[ae]="var(".concat(Za(ae,nm(p,P.prefix)),")")});var se=Lt(Z,{componentCls:Y,prefixCls:b,iconCls:".".concat(J),antCls:".".concat(z),calc:H,max:D,min:W},P?V:re),F=y(se,{hashId:R,prefixCls:b,rootPrefixCls:z,iconPrefixCls:J});q(p,re);var B=typeof a=="function"?a(se,b,C,E.resetFont):null;return[E.resetStyle===!1?null:B,F]});return[k,R]}}function f(d,y,x){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=u(d,y,x,ie({resetStyle:!1,order:-998},E)),_=function(m){var g=m.prefixCls,b=m.rootCls,C=b===void 0?g:b;return h(g,C),null};return ne.env.NODE_ENV!=="production"&&(_.displayName="SubStyle_".concat(String(Array.isArray(d)?d.join("."):d))),_}return{genStyleHooks:s,genSubStyleComponent:f,genComponentStyleHook:u}}const Gi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],qE="5.20.6";function ou(e){return e>=0&&e<=255}function gs(e,t){const{r:n,g:r,b:o,a:i}=new vn(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new vn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-l*(1-c))/c),d=Math.round((o-s*(1-c))/c);if(ou(u)&&ou(f)&&ou(d))return new vn({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new vn({r:n,g:r,b:o,a:1}).toRgbString()}var VE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function lm(e){const{override:t}=e,n=VE(e,["override"]),r=Object.assign({},t);Object.keys(Hi).forEach(d=>{delete r[d]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,c=1200,u=1600;if(o.motion===!1){const d="0s";o.motionDurationFast=d,o.motionDurationMid=d,o.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:gs(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:gs(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:gs(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:gs(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
43
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
44
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
45
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
46
|
+
`,boxShadowSecondary:`
|
|
47
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
48
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
49
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
50
|
+
`,boxShadowTertiary:`
|
|
51
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
52
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
53
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
54
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
55
|
+
0 1px 2px -2px ${new vn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
56
|
+
0 3px 6px 0 ${new vn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
57
|
+
0 5px 12px 4px ${new vn("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
58
|
+
`,boxShadowDrawerRight:`
|
|
59
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
60
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
61
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
62
|
+
`,boxShadowDrawerLeft:`
|
|
63
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
64
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
65
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
66
|
+
`,boxShadowDrawerUp:`
|
|
67
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
68
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
69
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
70
|
+
`,boxShadowDrawerDown:`
|
|
71
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
72
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
73
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
74
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var cm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const um={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},HE={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},WE={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},dm=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=cm(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=lm(a),i&&Object.entries(i).forEach(l=>{let[s,c]=l;const{theme:u}=c,f=cm(c,["theme"]);let d=f;u&&(d=dm(Object.assign(Object.assign({},a),f),{override:f},u)),a[s]=d}),a};function Xn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=M.useContext(Zh),i=`${qE}-${t||""}`,a=n||Qh,[l,s,c]=pC(a,[Hi,e],{salt:i,override:r,getComputedToken:dm,formatToken:lm,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:um,ignore:HE,preserve:WE}});return[a,c,t?s:"",l,o]}const UE={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},_n=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},GE=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),fm=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),KE=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),XE=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},YE=e=>({outline:`${be(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ki=e=>({"&:focus-visible":Object.assign({},YE(e))}),pm=(e,t)=>{const[n,r]=Xn();return Tc({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},GE()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:ln,genComponentStyleHook:JE,genSubStyleComponent:Wo}=zE({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=M.useContext(Ke);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Xn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=M.useContext(Ke);return pm(t,e),e??{}},getResetStyles:e=>[{"&":KE(e)}],getCommonStyle:XE,getCompUnitless:()=>um});function vs(e,t){return Gi.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const QE=Object.assign({},v),{useId:hm}=QE,ZE=typeof hm>"u"?()=>"":hm;function e1(e,t,n){var r,o;const i=Pt("ConfigProvider"),a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},Qc),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Qc.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=ZE();if(ne.env.NODE_ENV!=="production"){const c=a.cssVar||l.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||s);ne.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Ka(()=>{var c,u;if(!e)return t;const f=Object.assign({},l.components);Object.keys(e.components||{}).forEach(x=>{f[x]=Object.assign(Object.assign({},f[x]),e.components[x])});const d=`css-var-${s.replace(/:/g,"")}`,y=((c=a.cssVar)!==null&&c!==void 0?c:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||d});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:f,cssVar:y})},[a,l],(c,u)=>c.some((f,d)=>{const y=u[d];return!Di(f,y,!0)}))}var t1=["children"],mm=v.createContext({});function n1(e){var t=e.children,n=ot(e,t1);return v.createElement(mm.Provider,{value:n},t)}var r1=function(e){Ar(n,e);var t=Nr(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component);function o1(e){var t=v.useReducer(function(l){return l+1},0),n=he(t,2),r=n[1],o=v.useRef(e),i=Zt(function(){return o.current}),a=Zt(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[i,a]}var zr="none",_s="appear",ys="enter",bs="leave",gm="none",Yn="prepare",Uo="start",Go="active",iu="end",vm="prepared";function _m(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function i1(e,t){var n={animationend:_m("Animation","AnimationEnd"),transitionend:_m("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var a1=i1(hn(),typeof window<"u"?window:{}),ym={};if(hn()){var s1=document.createElement("div");ym=s1.style}var ws={};function bm(e){if(ws[e])return ws[e];var t=a1[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in ym)return ws[e]=t[i],ws[e]}return""}var wm=bm("animationend"),xm=bm("transitionend"),Sm=!!(wm&&xm),Cm=wm||"animationend",Em=xm||"transitionend";function Om(e,t){if(!e)return null;if(De(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const l1=function(e){var t=M.useRef();function n(o){o&&(o.removeEventListener(Em,e),o.removeEventListener(Cm,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Em,e),o.addEventListener(Cm,e),t.current=o)}return v.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var $m=hn()?M.useLayoutEffect:M.useEffect;const c1=function(){var e=v.useRef(null);function t(){kt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=kt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return v.useEffect(function(){return function(){t()}},[]),[n,t]};var u1=[Yn,Uo,Go,iu],d1=[Yn,vm],Tm=!1,f1=!0;function Pm(e){return e===Go||e===iu}const p1=function(e,t,n){var r=co(gm),o=he(r,2),i=o[0],a=o[1],l=c1(),s=he(l,2),c=s[0],u=s[1];function f(){a(Yn,!0)}var d=t?d1:u1;return $m(function(){if(i!==gm&&i!==iu){var y=d.indexOf(i),x=d[y+1],E=n(i);E===Tm?a(x,!0):x&&c(function(h){function _(){h.isCanceled()||a(x,!0)}E===!0?_():Promise.resolve(E).then(_)})}},[e,i]),v.useEffect(function(){return function(){u()}},[]),[f,i]};function h1(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,c=s===void 0?!0:s,u=r.motionDeadline,f=r.motionLeaveImmediately,d=r.onAppearPrepare,y=r.onEnterPrepare,x=r.onLeavePrepare,E=r.onAppearStart,h=r.onEnterStart,_=r.onLeaveStart,p=r.onAppearActive,m=r.onEnterActive,g=r.onLeaveActive,b=r.onAppearEnd,C=r.onEnterEnd,S=r.onLeaveEnd,w=r.onVisibleChanged,O=co(),R=he(O,2),N=R[0],P=R[1],L=o1(zr),z=he(L,2),J=z[0],X=z[1],j=co(null),H=he(j,2),U=H[0],D=H[1],W=J(),A=M.useRef(!1),k=M.useRef(null);function G(){return n()}var Z=M.useRef(!1);function q(){X(zr),D(null,!0)}var V=Zt(function(Me){var Re=J();if(Re!==zr){var $e=G();if(!(Me&&!Me.deadline&&Me.target!==$e)){var ve=Z.current,we;Re===_s&&ve?we=b==null?void 0:b($e,Me):Re===ys&&ve?we=C==null?void 0:C($e,Me):Re===bs&&ve&&(we=S==null?void 0:S($e,Me)),ve&&we!==!1&&q()}}}),Y=l1(V),re=he(Y,1),se=re[0],F=function(Re){switch(Re){case _s:return oe(oe(oe({},Yn,d),Uo,E),Go,p);case ys:return oe(oe(oe({},Yn,y),Uo,h),Go,m);case bs:return oe(oe(oe({},Yn,x),Uo,_),Go,g);default:return{}}},B=v.useMemo(function(){return F(W)},[W]),ae=p1(W,!e,function(Me){if(Me===Yn){var Re=B[Yn];return Re?Re(G()):Tm}if(pe in B){var $e;D((($e=B[pe])===null||$e===void 0?void 0:$e.call(B,G(),null))||null)}return pe===Go&&W!==zr&&(se(G()),u>0&&(clearTimeout(k.current),k.current=setTimeout(function(){V({deadline:!0})},u))),pe===vm&&q(),f1}),ee=he(ae,2),me=ee[0],pe=ee[1],xe=Pm(pe);Z.current=xe,$m(function(){P(t);var Me=A.current;A.current=!0;var Re;!Me&&t&&l&&(Re=_s),Me&&t&&i&&(Re=ys),(Me&&!t&&c||!Me&&f&&!t&&c)&&(Re=bs);var $e=F(Re);Re&&(e||$e[Yn])?(X(Re),me()):X(zr)},[t]),M.useEffect(function(){(W===_s&&!l||W===ys&&!i||W===bs&&!c)&&X(zr)},[l,i,c]),M.useEffect(function(){return function(){A.current=!1,clearTimeout(k.current)}},[]);var Ae=v.useRef(!1);M.useEffect(function(){N&&(Ae.current=!0),N!==void 0&&W===zr&&((Ae.current||N)&&(w==null||w(N)),Ae.current=!0)},[N,W]);var ue=U;return B[Yn]&&pe===Uo&&(ue=ie({transition:"none"},ue)),[W,pe,ue,N??t]}function m1(e){var t=e;De(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=v.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,c=s===void 0?!0:s,u=o.forceRender,f=o.children,d=o.motionName,y=o.leavedClassName,x=o.eventProps,E=v.useContext(mm),h=E.motion,_=n(o,h),p=M.useRef(),m=M.useRef();function g(){try{return p.current instanceof HTMLElement?p.current:Ga(m.current)}catch{return null}}var b=h1(_,l,g,o),C=he(b,4),S=C[0],w=C[1],O=C[2],R=C[3],N=v.useRef(R);R&&(N.current=!0);var P=v.useCallback(function(U){p.current=U,ic(i,U)},[i]),L,z=ie(ie({},x),{},{visible:l});if(!f)L=null;else if(S===zr)R?L=f(ie({},z),P):!c&&N.current&&y?L=f(ie(ie({},z),{},{className:y}),P):u||!c&&!y?L=f(ie(ie({},z),{},{style:{display:"none"}}),P):L=null;else{var J;w===Yn?J="prepare":Pm(w)?J="active":w===Uo&&(J="start");var X=Om(d,"".concat(S,"-").concat(J));L=f(ie(ie({},z),{},{className:ce(Om(d,S),oe(oe({},X,X&&J),d,typeof d=="string")),style:O}),P)}if(v.isValidElement(L)&&Ir(L)){var j=L,H=j.ref;H||(L=v.cloneElement(L,{ref:P}))}return v.createElement(r1,{ref:m},L)});return r.displayName="CSSMotion",r}const Jn=m1(Sm);var au="add",su="keep",lu="remove",cu="removed";function g1(e){var t;return e&&De(e)==="object"&&"key"in e?t=e:t={key:e},ie(ie({},t),{},{key:String(t.key)})}function uu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(g1)}function v1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=uu(e),a=uu(t);i.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var d=a[f];if(d.key===c.key){r<f&&(n=n.concat(a.slice(r,f).map(function(y){return ie(ie({},y),{},{status:au})})),r=f),n.push(ie(ie({},d),{},{status:su})),r+=1,u=!0;break}}u||n.push(ie(ie({},c),{},{status:lu}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return ie(ie({},c),{},{status:au})})));var l={};n.forEach(function(c){var u=c.key;l[u]=(l[u]||0)+1});var s=Object.keys(l).filter(function(c){return l[c]>1});return s.forEach(function(c){n=n.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==lu}),n.forEach(function(u){u.key===c&&(u.status=su)})}),n}var _1=["component","children","onVisibleChanged","onAllRemoved"],y1=["status"],b1=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function w1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jn,n=function(r){Ar(i,r);var o=Nr(i);function i(){var a;rn(this,i);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return a=o.call.apply(o,[this].concat(s)),oe(nt(a),"state",{keyEntities:[]}),oe(nt(a),"removeKey",function(u){var f=a.state.keyEntities,d=f.map(function(y){return y.key!==u?y:ie(ie({},y),{},{status:cu})});return a.setState({keyEntities:d}),d.filter(function(y){var x=y.status;return x!==cu}).length}),a}return on(i,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,c=this.props,u=c.component,f=c.children,d=c.onVisibleChanged,y=c.onAllRemoved,x=ot(c,_1),E=u||v.Fragment,h={};return b1.forEach(function(_){h[_]=x[_],delete x[_]}),delete x.keys,v.createElement(E,x,s.map(function(_,p){var m=_.status,g=ot(_,y1),b=m===au||m===su;return v.createElement(t,Pe({},h,{key:g.key,visible:b,eventProps:g,onVisibleChanged:function(S){if(d==null||d(S,{key:g.key}),!S){var w=l.removeKey(g.key);w===0&&y&&y()}}}),function(C,S){return f(ie(ie({},C),{},{index:p}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var c=l.keys,u=s.keyEntities,f=uu(c),d=v1(u,f);return{keyEntities:d.filter(function(y){var x=u.find(function(E){var h=E.key;return y.key===h});return!(x&&x.status===cu&&y.status===lu)})}}}]),i}(v.Component);return oe(n,"defaultProps",{component:"div"}),n}const Rm=w1(Sm);function x1(e){const{children:t}=e,[,n]=Xn(),{motion:r}=n,o=v.useRef(!1);return o.current=o.current||r===!1,o.current?v.createElement(n1,{motion:r},t):t}const jm=v.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Pt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});ne.env.NODE_ENV!=="production"&&(jm.displayName="PropWarning");const S1=ne.env.NODE_ENV!=="production"?jm:()=>null;var C1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let du=!1;const fu=ne.env.NODE_ENV!=="production"?e=>{ne.env.NODE_ENV!=="production"&&ao(!du,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,E1=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let xs,Mm,Im,Am;function Ss(){return xs||Ui}function O1(){return Mm||Zc}function $1(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const T1=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(xs=t),n!==void 0&&(Mm=n),"holderRender"in e&&(Am=o),r&&($1(r)?(ne.env.NODE_ENV!=="production"&&ao(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),$E(Ss(),r)):Im=r)},Xi=()=>({getPrefixCls:(e,t)=>t||(e?`${Ss()}-${e}`:Ss()),getIconPrefixCls:O1,getRootPrefixCls:()=>xs||Ss(),getTheme:()=>Im,holderRender:Am}),P1=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:u,virtual:f,dropdownMatchSelectWidth:d,popupMatchSelectWidth:y,popupOverflow:x,legacyLocale:E,parentContext:h,iconPrefixCls:_,theme:p,componentDisabled:m,segmented:g,statistic:b,spin:C,calendar:S,carousel:w,cascader:O,collapse:R,typography:N,checkbox:P,descriptions:L,divider:z,drawer:J,skeleton:X,steps:j,image:H,layout:U,list:D,mentions:W,modal:A,progress:k,result:G,slider:Z,breadcrumb:q,menu:V,pagination:Y,input:re,textArea:se,empty:F,badge:B,radio:ae,rate:ee,switch:me,transfer:pe,avatar:xe,message:Ae,tag:ue,table:Me,card:Re,tabs:$e,timeline:ve,timePicker:we,upload:Ce,notification:Ee,tree:We,colorPicker:Ue,datePicker:Je,rangePicker:mt,flex:bt,wave:dt,dropdown:qe,warning:je,tour:ct,floatButtonGroup:lt,variant:Qe,inputNumber:Rt,treeSelect:Ht}=e,Jt=v.useCallback((K,te)=>{const{prefixCls:le}=e;if(te)return te;const ge=le||h.getPrefixCls("");return K?`${ge}-${K}`:ge},[h.getPrefixCls,e.prefixCls]),wt=_||h.iconPrefixCls||Zc,jt=n||h.csp;pm(wt,jt);const et=e1(p,h.theme,{prefixCls:Jt("")});ne.env.NODE_ENV!=="production"&&(du=du||!!et);const ut={csp:jt,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||E,direction:c,space:u,virtual:f,popupMatchSelectWidth:y??d,popupOverflow:x,getPrefixCls:Jt,iconPrefixCls:wt,theme:et,segmented:g,statistic:b,spin:C,calendar:S,carousel:w,cascader:O,collapse:R,typography:N,checkbox:P,descriptions:L,divider:z,drawer:J,skeleton:X,steps:j,image:H,input:re,textArea:se,layout:U,list:D,mentions:W,modal:A,progress:k,result:G,slider:Z,breadcrumb:q,menu:V,pagination:Y,empty:F,badge:B,radio:ae,rate:ee,switch:me,transfer:pe,avatar:xe,message:Ae,tag:ue,table:Me,card:Re,tabs:$e,timeline:ve,timePicker:we,upload:Ce,notification:Ee,tree:We,colorPicker:Ue,datePicker:Je,rangePicker:mt,flex:bt,wave:dt,dropdown:qe,warning:je,tour:ct,floatButtonGroup:lt,variant:Qe,inputNumber:Rt,treeSelect:Ht};ne.env.NODE_ENV!=="production"&&Pt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Mt=Object.assign({},h);Object.keys(ut).forEach(K=>{ut[K]!==void 0&&(Mt[K]=ut[K])}),E1.forEach(K=>{const te=e[K];te&&(Mt[K]=te)}),typeof r<"u"&&(Mt.button=Object.assign({autoInsertSpace:r},Mt.button));const Xe=Ka(()=>Mt,Mt,(K,te)=>{const le=Object.keys(K),ge=Object.keys(te);return le.length!==ge.length||le.some(Fe=>K[Fe]!==te[Fe])}),ke=v.useMemo(()=>({prefixCls:wt,csp:jt}),[wt,jt]);let I=v.createElement(v.Fragment,null,v.createElement(S1,{dropdownMatchSelectWidth:d}),t);const $=v.useMemo(()=>{var K,te,le,ge;return Vo(((K=Fr.Form)===null||K===void 0?void 0:K.defaultValidateMessages)||{},((le=(te=Xe.locale)===null||te===void 0?void 0:te.Form)===null||le===void 0?void 0:le.defaultValidateMessages)||{},((ge=Xe.form)===null||ge===void 0?void 0:ge.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Xe,a==null?void 0:a.validateMessages]);Object.keys($).length>0&&(I=v.createElement(Ah.Provider,{value:$},I)),l&&(I=v.createElement(Bh,{locale:l,_ANT_MARK__:Dh},I)),(wt||jt)&&(I=v.createElement(Pc.Provider,{value:ke},I)),s&&(I=v.createElement(TE,{size:s},I)),I=v.createElement(x1,null,I);const T=v.useMemo(()=>{const K=et||{},{algorithm:te,token:le,components:ge,cssVar:Fe}=K,tt=C1(K,["algorithm","token","components","cssVar"]),rt=te&&(!Array.isArray(te)||te.length>0)?gc(te):Qh,Q={};Object.entries(ge||{}).forEach(_e=>{let[Oe,Le]=_e;const Ne=Object.assign({},Le);"algorithm"in Ne&&(Ne.algorithm===!0?Ne.theme=rt:(Array.isArray(Ne.algorithm)||typeof Ne.algorithm=="function")&&(Ne.theme=gc(Ne.algorithm)),delete Ne.algorithm),Q[Oe]=Ne});const de=Object.assign(Object.assign({},Hi),le);return Object.assign(Object.assign({},tt),{theme:rt,token:de,components:Q,override:Object.assign({override:de},Q),cssVar:Fe})},[et]);return p&&(I=v.createElement(Zh.Provider,{value:T},I)),Xe.warning&&(I=v.createElement(Ih.Provider,{value:Xe.warning},I)),m!==void 0&&(I=v.createElement(eu,{disabled:m},I)),v.createElement(Ke.Provider,{value:Xe},I)},Qn=e=>{const t=v.useContext(Ke),n=v.useContext(jc);return v.createElement(P1,Object.assign({parentContext:t,legacyLocale:n},e))};Qn.ConfigContext=Ke,Qn.SizeContext=lo,Qn.config=T1,Qn.useConfig=PE,Object.defineProperty(Qn,"SizeContext",{get:()=>(ne.env.NODE_ENV!=="production"&&ao(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),lo)}),ne.env.NODE_ENV!=="production"&&(Qn.displayName="ConfigProvider");var R1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Nm(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function j1(e){return Nm(e)instanceof ShadowRoot}function Cs(e){return j1(e)?Nm(e):null}function M1(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function I1(e,t){pt(e,"[@ant-design/icons] ".concat(t))}function km(e){return De(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(De(e.icon)==="object"||typeof e.icon=="function")}function Lm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[M1(n)]=r}return t},{})}function pu(e,t,n){return n?M.createElement(e.tag,ie(ie({key:t},Lm(e.attrs)),n),(e.children||[]).map(function(r,o){return pu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):M.createElement(e.tag,ie({key:t},Lm(e.attrs)),(e.children||[]).map(function(r,o){return pu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Fm(e){return Vi(e)[0]}function Dm(e){return e?Array.isArray(e)?e:[e]:[]}var A1=`
|
|
75
|
+
.anticon {
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
color: inherit;
|
|
79
|
+
font-style: normal;
|
|
80
|
+
line-height: 0;
|
|
81
|
+
text-align: center;
|
|
82
|
+
text-transform: none;
|
|
83
|
+
vertical-align: -0.125em;
|
|
84
|
+
text-rendering: optimizeLegibility;
|
|
85
|
+
-webkit-font-smoothing: antialiased;
|
|
86
|
+
-moz-osx-font-smoothing: grayscale;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.anticon > * {
|
|
90
|
+
line-height: 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.anticon svg {
|
|
94
|
+
display: inline-block;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.anticon::before {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.anticon .anticon-icon {
|
|
102
|
+
display: block;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.anticon[tabindex] {
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.anticon-spin::before,
|
|
110
|
+
.anticon-spin {
|
|
111
|
+
display: inline-block;
|
|
112
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
113
|
+
animation: loadingCircle 1s infinite linear;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@-webkit-keyframes loadingCircle {
|
|
117
|
+
100% {
|
|
118
|
+
-webkit-transform: rotate(360deg);
|
|
119
|
+
transform: rotate(360deg);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@keyframes loadingCircle {
|
|
124
|
+
100% {
|
|
125
|
+
-webkit-transform: rotate(360deg);
|
|
126
|
+
transform: rotate(360deg);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
`,N1=function(t){var n=M.useContext(Pc),r=n.csp,o=n.prefixCls,i=A1;o&&(i=i.replace(/anticon/g,o)),M.useEffect(function(){var a=t.current,l=Cs(a);vr(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},k1=["icon","className","onClick","style","primaryColor","secondaryColor"],Yi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function L1(e){var t=e.primaryColor,n=e.secondaryColor;Yi.primaryColor=t,Yi.secondaryColor=n||Fm(t),Yi.calculated=!!n}function F1(){return ie({},Yi)}var Ko=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=ot(t,k1),c=v.useRef(),u=Yi;if(a&&(u={primaryColor:a,secondaryColor:l||Fm(a)}),N1(c),I1(km(n),"icon should be icon definiton, but got ".concat(n)),!km(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=ie(ie({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),pu(f.icon,"svg-".concat(f.name),ie(ie({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};Ko.displayName="IconReact",Ko.getTwoToneColors=F1,Ko.setTwoToneColors=L1;function Bm(e){var t=Dm(e),n=he(t,2),r=n[0],o=n[1];return Ko.setTwoToneColors({primaryColor:r,secondaryColor:o})}function D1(){var e=Ko.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var B1=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Bm(hs.primary);var cn=v.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=ot(e,B1),u=v.useContext(Pc),f=u.prefixCls,d=f===void 0?"anticon":f,y=u.rootClassName,x=ce(y,d,oe(oe({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!o||r.name==="loading"),n),E=a;E===void 0&&l&&(E=-1);var h=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,_=Dm(s),p=he(_,2),m=p[0],g=p[1];return v.createElement("span",Pe({role:"img","aria-label":r.name},c,{ref:t,tabIndex:E,onClick:l,className:x}),v.createElement(Ko,{icon:r,primaryColor:m,secondaryColor:g,style:h}))});cn.displayName="AntdIcon",cn.getTwoToneColor=D1,cn.setTwoToneColor=Bm;var z1=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:R1}))},Ji=v.forwardRef(z1);ne.env.NODE_ENV!=="production"&&(Ji.displayName="CheckCircleFilled");var q1={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},V1=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:q1}))},Xo=v.forwardRef(V1);ne.env.NODE_ENV!=="production"&&(Xo.displayName="CloseCircleFilled");var H1={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},W1=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:H1}))},uo=v.forwardRef(W1);ne.env.NODE_ENV!=="production"&&(uo.displayName="CloseOutlined");var U1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},G1=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:U1}))},Qi=v.forwardRef(G1);ne.env.NODE_ENV!=="production"&&(Qi.displayName="ExclamationCircleFilled");var K1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},X1=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:K1}))},Es=v.forwardRef(X1);ne.env.NODE_ENV!=="production"&&(Es.displayName="InfoCircleFilled");var Y1=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
130
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
131
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
132
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
133
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
134
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
135
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
136
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
137
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
138
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
139
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
140
|
+
summary tabIndex target title type useMap value width wmode wrap`,J1=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
141
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
142
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
143
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
144
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
145
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
146
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Q1="".concat(Y1," ").concat(J1).split(/[\s\n]+/),Z1="aria-",eO="data-";function zm(e,t){return e.indexOf(t)===0}function Zi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=ie({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||zm(o,Z1))||n.data&&zm(o,eO)||n.attr&&Q1.includes(o))&&(r[o]=e[o])}),r}function qm(e){return e&&M.isValidElement(e)&&e.type===M.Fragment}const Vm=(e,t,n)=>M.isValidElement(e)?M.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function wr(e,t){return Vm(e,e,t)}const Hm=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Wm=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",hu=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Wm(n.overflowY,t)||Wm(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Os=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,tO=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Um=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:X=>X!==c;if(!Hm(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,y=[];let x=e;for(;Hm(x)&&f(x);){if(x=tO(x),x===d){y.push(x);break}x!=null&&x===document.body&&hu(x)&&!hu(document.documentElement)||x!=null&&hu(x,u)&&y.push(x)}const E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,h=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:_,scrollY:p}=window,{height:m,width:g,top:b,right:C,bottom:S,left:w}=e.getBoundingClientRect(),{top:O,right:R,bottom:N,left:P}=(X=>{const j=window.getComputedStyle(X);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(e);let L=l==="start"||l==="nearest"?b-O:l==="end"?S+N:b+m/2-O+N,z=s==="center"?w+g/2-P+R:s==="end"?C+R:w-P;const J=[];for(let X=0;X<y.length;X++){const j=y[X],{height:H,width:U,top:D,right:W,bottom:A,left:k}=j.getBoundingClientRect();if(a==="if-needed"&&b>=0&&w>=0&&S<=h&&C<=E&&b>=D&&S<=A&&w>=k&&C<=W)return J;const G=getComputedStyle(j),Z=parseInt(G.borderLeftWidth,10),q=parseInt(G.borderTopWidth,10),V=parseInt(G.borderRightWidth,10),Y=parseInt(G.borderBottomWidth,10);let re=0,se=0;const F="offsetWidth"in j?j.offsetWidth-j.clientWidth-Z-V:0,B="offsetHeight"in j?j.offsetHeight-j.clientHeight-q-Y:0,ae="offsetWidth"in j?j.offsetWidth===0?0:U/j.offsetWidth:0,ee="offsetHeight"in j?j.offsetHeight===0?0:H/j.offsetHeight:0;if(d===j)re=l==="start"?L:l==="end"?L-h:l==="nearest"?Os(p,p+h,h,q,Y,p+L,p+L+m,m):L-h/2,se=s==="start"?z:s==="center"?z-E/2:s==="end"?z-E:Os(_,_+E,E,Z,V,_+z,_+z+g,g),re=Math.max(0,re+p),se=Math.max(0,se+_);else{re=l==="start"?L-D-q:l==="end"?L-A+Y+B:l==="nearest"?Os(D,A,H,q,Y+B,L,L+m,m):L-(D+H/2)+B/2,se=s==="start"?z-k-Z:s==="center"?z-(k+U/2)+F/2:s==="end"?z-W+V+F:Os(k,W,U,Z,V+F,z,z+g,g);const{scrollLeft:me,scrollTop:pe}=j;re=ee===0?0:Math.max(0,Math.min(pe+re/ee,j.scrollHeight-H/ee+B)),se=ae===0?0:Math.max(0,Math.min(me+se/ae,j.scrollWidth-U/ae+F)),L+=pe-re,z+=me-se}J.push({el:j,top:re,left:se})}return J},nO=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function rO(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Um(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of Um(e,nO(t))){const l=i-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const Sn=e=>{const[,,,,t]=Xn();return t?`${e}-css-var`:""};var Te={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Te.F1&&n<=Te.F12)return!1;switch(n){case Te.ALT:case Te.CAPS_LOCK:case Te.CONTEXT_MENU:case Te.CTRL:case Te.DOWN:case Te.END:case Te.ESC:case Te.HOME:case Te.INSERT:case Te.LEFT:case Te.MAC_FF_META:case Te.META:case Te.NUMLOCK:case Te.NUM_CENTER:case Te.PAGE_DOWN:case Te.PAGE_UP:case Te.PAUSE:case Te.PRINT_SCREEN:case Te.RIGHT:case Te.SHIFT:case Te.UP:case Te.WIN_KEY:case Te.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Te.ZERO&&t<=Te.NINE||t>=Te.NUM_ZERO&&t<=Te.NUM_MULTIPLY||t>=Te.A&&t<=Te.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Te.SPACE:case Te.QUESTION_MARK:case Te.NUM_PLUS:case Te.NUM_MINUS:case Te.NUM_PERIOD:case Te.NUM_DIVISION:case Te.SEMICOLON:case Te.DASH:case Te.EQUALS:case Te.COMMA:case Te.PERIOD:case Te.SLASH:case Te.APOSTROPHE:case Te.SINGLE_QUOTE:case Te.OPEN_SQUARE_BRACKET:case Te.BACKSLASH:case Te.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},mu=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,l=e.showProgress,s=e.pauseOnHover,c=s===void 0?!0:s,u=e.eventKey,f=e.content,d=e.closable,y=e.closeIcon,x=y===void 0?"x":y,E=e.props,h=e.onClick,_=e.onNoticeClose,p=e.times,m=e.hovering,g=v.useState(!1),b=he(g,2),C=b[0],S=b[1],w=v.useState(0),O=he(w,2),R=O[0],N=O[1],P=v.useState(0),L=he(P,2),z=L[0],J=L[1],X=m||C,j=a>0&&l,H=function(){_(u)},U=function(Z){(Z.key==="Enter"||Z.code==="Enter"||Z.keyCode===Te.ENTER)&&H()};v.useEffect(function(){if(!X&&a>0){var G=Date.now()-z,Z=setTimeout(function(){H()},a*1e3-z);return function(){c&&clearTimeout(Z),J(Date.now()-G)}}},[a,X,p]),v.useEffect(function(){if(!X&&j&&(c||z===0)){var G=performance.now(),Z,q=function V(){cancelAnimationFrame(Z),Z=requestAnimationFrame(function(Y){var re=Y+z-G,se=Math.min(re/(a*1e3),1);N(se*100),se<1&&V()})};return q(),function(){c&&cancelAnimationFrame(Z)}}},[a,z,X,j,p]);var D=v.useMemo(function(){return De(d)==="object"&&d!==null?d:d?{closeIcon:x}:{}},[d,x]),W=Zi(D,!0),A=100-(!R||R<0?0:R>100?100:R),k="".concat(n,"-notice");return v.createElement("div",Pe({},E,{ref:t,className:ce(k,o,oe({},"".concat(k,"-closable"),d)),style:r,onMouseEnter:function(Z){var q;S(!0),E==null||(q=E.onMouseEnter)===null||q===void 0||q.call(E,Z)},onMouseLeave:function(Z){var q;S(!1),E==null||(q=E.onMouseLeave)===null||q===void 0||q.call(E,Z)},onClick:h}),v.createElement("div",{className:"".concat(k,"-content")},f),d&&v.createElement("a",Pe({tabIndex:0,className:"".concat(k,"-close"),onKeyDown:U,"aria-label":"Close"},W,{onClick:function(Z){Z.preventDefault(),Z.stopPropagation(),H()}}),D.closeIcon),j&&v.createElement("progress",{className:"".concat(k,"-progress"),max:"100",value:A},A+"%"))}),Gm=M.createContext({}),Km=function(t){var n=t.children,r=t.classNames;return M.createElement(Gm.Provider,{value:{classNames:r}},n)},Xm=8,Ym=3,Jm=16,oO=function(t){var n={offset:Xm,threshold:Ym,gap:Jm};if(t&&De(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:Xm,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:Ym,n.gap=(i=t.gap)!==null&&i!==void 0?i:Jm}return[!!t,n]},iO=["className","style","classNames","styles"],Qm=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,l=t.motion,s=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=M.useContext(Gm),d=f.classNames,y=M.useRef({}),x=M.useRef(null),E=M.useState([]),h=he(E,2),_=h[0],p=h[1],m=n.map(function(L){return{config:L,key:String(L.key)}}),g=oO(u),b=he(g,2),C=b[0],S=b[1],w=S.offset,O=S.threshold,R=S.gap,N=C&&(_.length>0||m.length<=O),P=typeof l=="function"?l(r):l;return M.useEffect(function(){C&&_.length>1&&p(function(L){return L.filter(function(z){return m.some(function(J){var X=J.key;return z===X})})})},[_,m,C]),M.useEffect(function(){var L;if(C&&y.current[(L=m[m.length-1])===null||L===void 0?void 0:L.key]){var z;x.current=y.current[(z=m[m.length-1])===null||z===void 0?void 0:z.key]}},[m,C]),M.createElement(Rm,Pe({key:r,className:ce(o,"".concat(o,"-").concat(r),d==null?void 0:d.list,i,oe(oe({},"".concat(o,"-stack"),!!C),"".concat(o,"-stack-expanded"),N)),style:a,keys:m,motionAppear:!0},P,{onAllRemoved:function(){s(r)}}),function(L,z){var J=L.config,X=L.className,j=L.style,H=L.index,U=J,D=U.key,W=U.times,A=String(D),k=J,G=k.className,Z=k.style,q=k.classNames,V=k.styles,Y=ot(k,iO),re=m.findIndex(function(we){return we.key===A}),se={};if(C){var F=m.length-1-(re>-1?re:H-1),B=r==="top"||r==="bottom"?"-50%":"0";if(F>0){var ae,ee,me,pe,xe,Ae;se.height=N?(ae=y.current[A])===null||ae===void 0?void 0:ae.offsetHeight:(ee=x.current)===null||ee===void 0?void 0:ee.offsetHeight;for(var ue=0,Me=0;Me<F;Me++){var Re;ue+=((Re=y.current[m[m.length-1-Me].key])===null||Re===void 0?void 0:Re.offsetHeight)+R}var $e=(N?ue:F*w)*(r.startsWith("top")?1:-1),ve=!N&&(me=x.current)!==null&&me!==void 0&&me.offsetWidth&&(pe=y.current[A])!==null&&pe!==void 0&&pe.offsetWidth?(((xe=x.current)===null||xe===void 0?void 0:xe.offsetWidth)-w*2*(F<3?F:3))/((Ae=y.current[A])===null||Ae===void 0?void 0:Ae.offsetWidth):1;se.transform="translate3d(".concat(B,", ").concat($e,"px, 0) scaleX(").concat(ve,")")}else se.transform="translate3d(".concat(B,", 0, 0)")}return M.createElement("div",{ref:z,className:ce("".concat(o,"-notice-wrapper"),X,q==null?void 0:q.wrapper),style:ie(ie(ie({},j),se),V==null?void 0:V.wrapper),onMouseEnter:function(){return p(function(Ce){return Ce.includes(A)?Ce:[].concat(Se(Ce),[A])})},onMouseLeave:function(){return p(function(Ce){return Ce.filter(function(Ee){return Ee!==A})})}},M.createElement(mu,Pe({},Y,{ref:function(Ce){re>-1?y.current[A]=Ce:delete y.current[A]},prefixCls:o,classNames:q,styles:V,className:ce(G,d==null?void 0:d.notice),style:Z,times:W,key:D,eventKey:D,onNoticeClose:c,hovering:C&&_.length>0})))})};ne.env.NODE_ENV!=="production"&&(Qm.displayName="NoticeList");var Zm=v.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,d=v.useState([]),y=he(d,2),x=y[0],E=y[1],h=function(O){var R,N=x.find(function(P){return P.key===O});N==null||(R=N.onClose)===null||R===void 0||R.call(N),E(function(P){return P.filter(function(L){return L.key!==O})})};v.useImperativeHandle(t,function(){return{open:function(O){E(function(R){var N=Se(R),P=N.findIndex(function(J){return J.key===O.key}),L=ie({},O);if(P>=0){var z;L.times=(((z=R[P])===null||z===void 0?void 0:z.times)||0)+1,N[P]=L}else L.times=0,N.push(L);return a>0&&N.length>a&&(N=N.slice(-a)),N})},close:function(O){h(O)},destroy:function(){E([])}}});var _=v.useState({}),p=he(_,2),m=p[0],g=p[1];v.useEffect(function(){var w={};x.forEach(function(O){var R=O.placement,N=R===void 0?"topRight":R;N&&(w[N]=w[N]||[],w[N].push(O))}),Object.keys(m).forEach(function(O){w[O]=w[O]||[]}),g(w)},[x]);var b=function(O){g(function(R){var N=ie({},R),P=N[O]||[];return P.length||delete N[O],N})},C=v.useRef(!1);if(v.useEffect(function(){Object.keys(m).length>0?C.current=!0:C.current&&(c==null||c(),C.current=!1)},[m]),!o)return null;var S=Object.keys(m);return to.createPortal(v.createElement(v.Fragment,null,S.map(function(w){var O=m[w],R=v.createElement(Qm,{key:w,configList:O,placement:w,prefixCls:r,className:l==null?void 0:l(w),style:s==null?void 0:s(w),motion:i,onNoticeClose:h,onAllNoticeRemoved:b,stack:u});return f?f(R,{prefixCls:r,key:w}):R})),o)});ne.env.NODE_ENV!=="production"&&(Zm.displayName="Notifications");var aO=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],sO=function(){return document.body},eg=0;function lO(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function tg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?sO:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=ot(e,aO),d=v.useState(),y=he(d,2),x=y[0],E=y[1],h=v.useRef(),_=v.createElement(Zm,{container:x,ref:h,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:u}),p=v.useState([]),m=he(p,2),g=m[0],b=m[1],C=v.useMemo(function(){return{open:function(w){var O=lO(f,w);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(eg),eg+=1),b(function(R){return[].concat(Se(R),[{type:"open",config:O}])})},close:function(w){b(function(O){return[].concat(Se(O),[{type:"close",key:w}])})},destroy:function(){b(function(w){return[].concat(Se(w),[{type:"destroy"}])})}}},[]);return v.useEffect(function(){E(n())}),v.useEffect(function(){h.current&&g.length&&(g.forEach(function(S){switch(S.type){case"open":h.current.open(S.config);break;case"close":h.current.close(S.key);break;case"destroy":h.current.destroy();break}}),b(function(S){return S.filter(function(w){return!g.includes(w)})}))},[g]),[C,_]}var cO={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},uO=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:cO}))},$s=v.forwardRef(uO);ne.env.NODE_ENV!=="production"&&($s.displayName="LoadingOutlined");const Ts=M.createContext(void 0);ne.env.NODE_ENV!=="production"&&(Ts.displayName="zIndexContext");const fo=100,Ps=fo*10,ng={Modal:fo,Drawer:fo,Popover:fo,Popconfirm:fo,Tooltip:fo,Tour:fo},dO={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function fO(e){return e in ng}function rg(e,t){const[,n]=Xn(),r=M.useContext(Ts),o=fO(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+ng[e]:a+=dO[e],i=[r===void 0?t:a,a]}if(ne.env.NODE_ENV!=="production"){const a=Pt(e),l=n.zIndexPopupBase+Ps,s=i[0]||0;ne.env.NODE_ENV!=="production"&&a(t!==void 0||s<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i}const pO=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:y,borderRadiusLG:x,zIndexPopup:E,contentPadding:h,contentBg:_}=e,p=`${t}-notice`,m=new it("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),g=new it("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),b={padding:y,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:c},[`${p}-content`]:{display:"inline-block",padding:h,background:_,borderRadius:x,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
|
|
147
|
+
${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},_n(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:E,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
148
|
+
${t}-move-up-appear,
|
|
149
|
+
${t}-move-up-enter
|
|
150
|
+
`]:{animationName:m,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
|
|
151
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
152
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
153
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:g,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${p}-wrapper`]:Object.assign({},b)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},b),{padding:0,textAlign:"start"})}]},og=ln("Message",e=>{const t=Lt(e,{height:150});return[pO(t)]},e=>({zIndexPopup:e.zIndexPopupBase+Ps+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var hO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mO={info:v.createElement(Es,null),success:v.createElement(Ji,null),error:v.createElement(Xo,null),warning:v.createElement(Qi,null),loading:v.createElement($s,null)},ig=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return v.createElement("div",{className:ce(`${t}-custom-content`,`${t}-${n}`)},r||mO[n],v.createElement("span",null,o))},gO=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=hO(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=v.useContext(Ke),s=t||l("message"),c=Sn(s),[u,f,d]=og(s,c);return u(v.createElement(mu,Object.assign({},a,{prefixCls:s,className:ce(n,f,`${s}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:v.createElement(ig,{prefixCls:s,type:r,icon:o},i)})))};function vO(e,t){return{motionName:t??`${e}-move-up`}}function gu(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var _O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yO=8,bO=3,wO=e=>{let{children:t,prefixCls:n}=e;const r=Sn(n),[o,i,a]=og(n,r);return o(v.createElement(Km,{classNames:{list:ce(i,a,r)}},t))},xO=(e,t)=>{let{prefixCls:n,key:r}=t;return v.createElement(wO,{prefixCls:n,key:r},e)},SO=v.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=bO,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:d,direction:y}=v.useContext(Ke),x=r||u("message"),E=()=>({left:"50%",transform:"translateX(-50%)",top:n??yO}),h=()=>ce({[`${x}-rtl`]:l??y==="rtl"}),_=()=>vO(x,s),p=v.createElement("span",{className:`${x}-close-x`},v.createElement(uo,{className:`${x}-close-icon`})),[m,g]=tg({prefixCls:x,style:E,className:h,motion:_,closable:!1,closeIcon:p,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:xO});return v.useImperativeHandle(t,()=>Object.assign(Object.assign({},m),{prefixCls:x,message:d})),g});let ag=0;function sg(e){const t=v.useRef(null),n=Pt("Message");return[v.useMemo(()=>{const o=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},i=c=>{if(!t.current){ne.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const S=()=>{};return S.then=()=>{},S}const{open:u,prefixCls:f,message:d}=t.current,y=`${f}-notice`,{content:x,icon:E,type:h,key:_,className:p,style:m,onClose:g}=c,b=_O(c,["content","icon","type","key","className","style","onClose"]);let C=_;return C==null&&(ag+=1,C=`antd-message-${ag}`),gu(S=>(u(Object.assign(Object.assign({},b),{key:C,content:v.createElement(ig,{prefixCls:f,type:h,icon:E},x),placement:"top",className:ce(h&&`${y}-${h}`,p,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),m),onClose:()=>{g==null||g(),S()}})),()=>{o(C)}))},l={open:i,destroy:c=>{var u;c!==void 0?o(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(f,d,y)=>{let x;f&&typeof f=="object"&&"content"in f?x=f:x={content:f};let E,h;typeof d=="function"?h=d:(E=d,h=y);const _=Object.assign(Object.assign({onClose:h,duration:E},x),{type:c});return i(_)};l[c]=u}),l},[]),v.createElement(SO,Object.assign({key:"message-holder"},e,{ref:t}))]}function CO(e){return sg(e)}function EO(){const[e,t]=v.useState([]),n=v.useCallback(r=>(t(o=>[].concat(Se(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function mn(){mn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(X,j,H){X[j]=H.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(X,j,H){return Object.defineProperty(X,j,{value:H,enumerable:!0,configurable:!0,writable:!0}),X[j]}try{c({},"")}catch{c=function(H,U,D){return H[U]=D}}function u(X,j,H,U){var D=j&&j.prototype instanceof _?j:_,W=Object.create(D.prototype),A=new z(U||[]);return o(W,"_invoke",{value:R(X,H,A)}),W}function f(X,j,H){try{return{type:"normal",arg:X.call(j,H)}}catch(U){return{type:"throw",arg:U}}}t.wrap=u;var d="suspendedStart",y="suspendedYield",x="executing",E="completed",h={};function _(){}function p(){}function m(){}var g={};c(g,a,function(){return this});var b=Object.getPrototypeOf,C=b&&b(b(J([])));C&&C!==n&&r.call(C,a)&&(g=C);var S=m.prototype=_.prototype=Object.create(g);function w(X){["next","throw","return"].forEach(function(j){c(X,j,function(H){return this._invoke(j,H)})})}function O(X,j){function H(D,W,A,k){var G=f(X[D],X,W);if(G.type!=="throw"){var Z=G.arg,q=Z.value;return q&&De(q)=="object"&&r.call(q,"__await")?j.resolve(q.__await).then(function(V){H("next",V,A,k)},function(V){H("throw",V,A,k)}):j.resolve(q).then(function(V){Z.value=V,A(Z)},function(V){return H("throw",V,A,k)})}k(G.arg)}var U;o(this,"_invoke",{value:function(W,A){function k(){return new j(function(G,Z){H(W,A,G,Z)})}return U=U?U.then(k,k):k()}})}function R(X,j,H){var U=d;return function(D,W){if(U===x)throw Error("Generator is already running");if(U===E){if(D==="throw")throw W;return{value:e,done:!0}}for(H.method=D,H.arg=W;;){var A=H.delegate;if(A){var k=N(A,H);if(k){if(k===h)continue;return k}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(U===d)throw U=E,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);U=x;var G=f(X,j,H);if(G.type==="normal"){if(U=H.done?E:y,G.arg===h)continue;return{value:G.arg,done:H.done}}G.type==="throw"&&(U=E,H.method="throw",H.arg=G.arg)}}}function N(X,j){var H=j.method,U=X.iterator[H];if(U===e)return j.delegate=null,H==="throw"&&X.iterator.return&&(j.method="return",j.arg=e,N(X,j),j.method==="throw")||H!=="return"&&(j.method="throw",j.arg=new TypeError("The iterator does not provide a '"+H+"' method")),h;var D=f(U,X.iterator,j.arg);if(D.type==="throw")return j.method="throw",j.arg=D.arg,j.delegate=null,h;var W=D.arg;return W?W.done?(j[X.resultName]=W.value,j.next=X.nextLoc,j.method!=="return"&&(j.method="next",j.arg=e),j.delegate=null,h):W:(j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,h)}function P(X){var j={tryLoc:X[0]};1 in X&&(j.catchLoc=X[1]),2 in X&&(j.finallyLoc=X[2],j.afterLoc=X[3]),this.tryEntries.push(j)}function L(X){var j=X.completion||{};j.type="normal",delete j.arg,X.completion=j}function z(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(P,this),this.reset(!0)}function J(X){if(X||X===""){var j=X[a];if(j)return j.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var H=-1,U=function D(){for(;++H<X.length;)if(r.call(X,H))return D.value=X[H],D.done=!1,D;return D.value=e,D.done=!0,D};return U.next=U}}throw new TypeError(De(X)+" is not iterable")}return p.prototype=m,o(S,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:p,configurable:!0}),p.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(X){var j=typeof X=="function"&&X.constructor;return!!j&&(j===p||(j.displayName||j.name)==="GeneratorFunction")},t.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,m):(X.__proto__=m,c(X,s,"GeneratorFunction")),X.prototype=Object.create(S),X},t.awrap=function(X){return{__await:X}},w(O.prototype),c(O.prototype,l,function(){return this}),t.AsyncIterator=O,t.async=function(X,j,H,U,D){D===void 0&&(D=Promise);var W=new O(u(X,j,H,U),D);return t.isGeneratorFunction(j)?W:W.next().then(function(A){return A.done?A.value:W.next()})},w(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(X){var j=Object(X),H=[];for(var U in j)H.push(U);return H.reverse(),function D(){for(;H.length;){var W=H.pop();if(W in j)return D.value=W,D.done=!1,D}return D.done=!0,D}},t.values=J,z.prototype={constructor:z,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!j)for(var H in this)H.charAt(0)==="t"&&r.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=e)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var H=this;function U(Z,q){return A.type="throw",A.arg=j,H.next=Z,q&&(H.method="next",H.arg=e),!!q}for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D],A=W.completion;if(W.tryLoc==="root")return U("end");if(W.tryLoc<=this.prev){var k=r.call(W,"catchLoc"),G=r.call(W,"finallyLoc");if(k&&G){if(this.prev<W.catchLoc)return U(W.catchLoc,!0);if(this.prev<W.finallyLoc)return U(W.finallyLoc)}else if(k){if(this.prev<W.catchLoc)return U(W.catchLoc,!0)}else{if(!G)throw Error("try statement without catch or finally");if(this.prev<W.finallyLoc)return U(W.finallyLoc)}}}},abrupt:function(j,H){for(var U=this.tryEntries.length-1;U>=0;--U){var D=this.tryEntries[U];if(D.tryLoc<=this.prev&&r.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var W=D;break}}W&&(j==="break"||j==="continue")&&W.tryLoc<=H&&H<=W.finallyLoc&&(W=null);var A=W?W.completion:{};return A.type=j,A.arg=H,W?(this.method="next",this.next=W.finallyLoc,h):this.complete(A)},complete:function(j,H){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&H&&(this.next=H),h},finish:function(j){for(var H=this.tryEntries.length-1;H>=0;--H){var U=this.tryEntries[H];if(U.finallyLoc===j)return this.complete(U.completion,U.afterLoc),L(U),h}},catch:function(j){for(var H=this.tryEntries.length-1;H>=0;--H){var U=this.tryEntries[H];if(U.tryLoc===j){var D=U.completion;if(D.type==="throw"){var W=D.arg;L(U)}return W}}throw Error("illegal catch attempt")},delegateYield:function(j,H,U){return this.delegate={iterator:J(j),resultName:H,nextLoc:U},this.method==="next"&&(this.arg=e),h}},t}function lg(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function po(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){lg(i,r,o,a,l,"next",s)}function l(s){lg(i,r,o,a,l,"throw",s)}a(void 0)})}}var ea=ie({},dS),OO=ea.version,$O=ea.render,TO=ea.unmountComponentAtNode,Rs;try{var PO=Number((OO||"").split(".")[0]);PO>=18&&(Rs=ea.createRoot)}catch{}function cg(e){var t=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&De(t)==="object"&&(t.usingClientEntryPoint=e)}var js="__rc_react_root__";function RO(e,t){cg(!0);var n=t[js]||Rs(t);cg(!1),n.render(e),t[js]=n}function jO(e,t){$O(e,t)}function Ms(e,t){if(Rs){RO(e,t);return}jO(e,t)}function MO(e){return vu.apply(this,arguments)}function vu(){return vu=po(mn().mark(function e(t){return mn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[js])===null||o===void 0||o.unmount(),delete t[js]}));case 1:case"end":return r.stop()}},e)})),vu.apply(this,arguments)}function IO(e){TO(e)}function ug(e){return _u.apply(this,arguments)}function _u(){return _u=po(mn().mark(function e(t){return mn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Rs===void 0){r.next=2;break}return r.abrupt("return",MO(t));case 2:IO(t);case 3:case"end":return r.stop()}},e)})),_u.apply(this,arguments)}const yu=()=>({height:0,opacity:0}),dg=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},AO=e=>({height:e?e.offsetHeight:0}),bu=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",fg=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ui}-motion-collapse`,onAppearStart:yu,onEnterStart:yu,onAppearActive:dg,onEnterActive:dg,onLeaveStart:AO,onLeaveActive:yu,onAppearEnd:bu,onEnterEnd:bu,onLeaveEnd:bu,motionDeadline:500}},ho=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Is=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},NO=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},kO=JE("Wave",e=>[NO(e)]),pg=`${Ui}-wave-target`;function LO(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function wu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&LO(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function FO(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return wu(t)?t:wu(n)?n:wu(r)?r:null}function xu(e){return Number.isNaN(e)?0:e}const DO=e=>{const{className:t,target:n,component:r}=e,o=v.useRef(null),[i,a]=v.useState(null),[l,s]=v.useState([]),[c,u]=v.useState(0),[f,d]=v.useState(0),[y,x]=v.useState(0),[E,h]=v.useState(0),[_,p]=v.useState(!1),m={left:c,top:f,width:y,height:E,borderRadius:l.map(C=>`${C}px`).join(" ")};i&&(m["--wave-color"]=i);function g(){const C=getComputedStyle(n);a(FO(n));const S=C.position==="static",{borderLeftWidth:w,borderTopWidth:O}=C;u(S?n.offsetLeft:xu(-parseFloat(w))),d(S?n.offsetTop:xu(-parseFloat(O))),x(n.offsetWidth),h(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:N,borderBottomLeftRadius:P,borderBottomRightRadius:L}=C;s([R,N,L,P].map(z=>xu(parseFloat(z))))}if(v.useEffect(()=>{if(n){const C=kt(()=>{g(),p(!0)});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(g),S.observe(n)),()=>{kt.cancel(C),S==null||S.disconnect()}}},[]),!_)return null;const b=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(pg));return v.createElement(Jn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(C,S)=>{var w;if(S.deadline||S.propertyName==="opacity"){const O=(w=o.current)===null||w===void 0?void 0:w.parentElement;ug(O).then(()=>{O==null||O.remove()})}return!1}},(C,S)=>{let{className:w}=C;return v.createElement("div",{ref:qn(o,S),className:ce(t,w,{"wave-quick":b}),style:m})})},BO=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),Ms(v.createElement(DO,Object.assign({},t,{target:e})),o)},zO=(e,t,n)=>{const{wave:r}=v.useContext(Ke),[,o,i]=Xn(),a=Zt(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${pg}`)||u,{showEffect:d}=r||{};(d||BO)(f,{className:t,token:o,component:n,event:c,hashId:i})}),l=v.useRef();return c=>{kt.cancel(l.current),l.current=kt(()=>{a(c)})}},Su=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=M.useContext(Ke),i=M.useRef(null),a=o("wave"),[,l]=kO(a),s=zO(i,ce(a,l),r);if(M.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const f=d=>{!Is(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||s(d)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!M.isValidElement(t))return t??null;const c=Ir(t)?qn(t.ref,i):i;return wr(t,{ref:c})};ne.env.NODE_ENV!=="production"&&(Su.displayName="Wave");const mo=e=>{const t=M.useContext(lo);return M.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},hg=v.createContext(null),Cu=(e,t)=>{const n=v.useContext(hg),r=v.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return ce(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},qO=e=>{let{children:t}=e;return v.createElement(hg.Provider,{value:null},t)};var VO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mg=v.createContext(void 0),HO=e=>{const{getPrefixCls:t,direction:n}=v.useContext(Ke),{prefixCls:r,size:o,className:i}=e,a=VO(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=Xn();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}if(ne.env.NODE_ENV!=="production"){const f=Pt("Button.Group");ne.env.NODE_ENV!=="production"&&f(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=ce(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},i,s);return v.createElement(mg.Provider,{value:o},v.createElement("div",Object.assign({},a,{className:u})))},gg=/^[\u4e00-\u9fa5]{2}$/,Eu=gg.test.bind(gg);function vg(e){return e==="danger"?{danger:!0}:{type:e}}function _g(e){return typeof e=="string"}function As(e){return e==="text"||e==="link"}function WO(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&_g(e.type)&&Eu(e.props.children)?wr(e,{children:e.props.children.split("").join(n)}):_g(e)?Eu(e)?M.createElement("span",null,e.split("").join(n)):M.createElement("span",null,e):qm(e)?M.createElement("span",null,e):e}function UO(e,t){let n=!1;const r=[];return M.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=a}),M.Children.map(r,o=>WO(o,t))}const yg=M.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=ce(`${i}-icon`,n);return M.createElement("span",{ref:t,className:a,style:r},o)}),bg=M.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=ce(`${n}-loading-icon`,r);return M.createElement(yg,{prefixCls:n,className:a,style:o,ref:t},M.createElement($s,{className:i}))}),Ou=()=>({width:0,opacity:0,transform:"scale(0)"}),$u=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),GO=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?M.createElement(bg,{prefixCls:t,className:o,style:i}):M.createElement(Jn,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Ou,onAppearActive:$u,onEnterStart:Ou,onEnterActive:$u,onLeaveStart:$u,onLeaveActive:Ou},(l,s)=>{let{className:c,style:u}=l;return M.createElement(bg,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:s,iconClassName:c})})},wg=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),KO=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},wg(`${t}-primary`,o),wg(`${t}-danger`,i)]}},xg=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Lt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Sg=e=>{var t,n,r,o,i,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:ms(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:ms(s),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ms(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)}},XO=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${be(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Ki(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},xr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),YO=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),JO=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),QO=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ta=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},xr(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Tu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},QO(e))}),Cg=e=>Object.assign({},Tu(e)),Ns=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Eg=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cg(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),xr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ta(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},xr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ta(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Tu(e))}),ZO=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cg(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),xr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),ta(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},xr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),ta(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Tu(e))}),e$=e=>Object.assign(Object.assign({},Eg(e)),{borderStyle:"dashed"}),t$=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},xr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ns(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},xr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ns(e))}),n$=e=>Object.assign(Object.assign(Object.assign({},xr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Ns(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ns(e)),xr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),r$=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Eg(e),[`${t}-primary`]:ZO(e),[`${t}-dashed`]:e$(e),[`${t}-link`]:t$(e),[`${t}-text`]:n$(e),[`${t}-ghost`]:ta(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Pu=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${be(c)} ${be(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:YO(e)},{[`${n}${n}-round${t}`]:JO(e)}]},o$=e=>{const t=Lt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Pu(t,e.componentCls)},i$=e=>{const t=Lt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Pu(t,`${e.componentCls}-sm`)},a$=e=>{const t=Lt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Pu(t,`${e.componentCls}-lg`)},s$=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},l$=ln("Button",e=>{const t=xg(e);return[XO(t),o$(t),i$(t),a$(t),s$(t),r$(t),KO(t)]},Sg,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function c$(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function u$(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Og(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},c$(e,r,t)),u$(n,r,t))}}function d$(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function f$(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function p$(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},d$(e,t)),f$(e.componentCls,t))}}const h$=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${be(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${be(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},m$=Wo(["Button","compact"],e=>{const t=xg(e);return[Og(t),p$(t),h$(t)]},Sg);var g$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function v$(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const cr=M.forwardRef((e,t)=>{var n,r,o;const{loading:i=!1,prefixCls:a,type:l,danger:s=!1,shape:c="default",size:u,styles:f,disabled:d,className:y,rootClassName:x,children:E,icon:h,iconPosition:_="start",ghost:p=!1,block:m=!1,htmlType:g="button",classNames:b,style:C={},autoInsertSpace:S}=e,w=g$(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=l||"default",{getPrefixCls:R,direction:N,button:P}=M.useContext(Ke),L=(n=S??(P==null?void 0:P.autoInsertSpace))!==null&&n!==void 0?n:!0,z=R("btn",a),[J,X,j]=l$(z),H=M.useContext(Br),U=d??H,D=M.useContext(mg),W=M.useMemo(()=>v$(i),[i]),[A,k]=M.useState(W.loading),[G,Z]=M.useState(!1),V=qn(t,M.createRef()),Y=M.Children.count(E)===1&&!h&&!As(O);M.useEffect(()=>{let we=null;W.delay>0?we=setTimeout(()=>{we=null,k(!0)},W.delay):k(W.loading);function Ce(){we&&(clearTimeout(we),we=null)}return Ce},[W]),M.useEffect(()=>{if(!V||!V.current||!L)return;const we=V.current.textContent;Y&&Eu(we)?G||Z(!0):G&&Z(!1)},[V]);const re=we=>{const{onClick:Ce}=e;if(A||U){we.preventDefault();return}Ce==null||Ce(we)};if(ne.env.NODE_ENV!=="production"){const we=Pt("Button");ne.env.NODE_ENV!=="production"&&we(!(typeof h=="string"&&h.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${h}\` at https://ant.design/components/icon`),ne.env.NODE_ENV!=="production"&&we(!(p&&As(O)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:se,compactItemClassnames:F}=Cu(z,N),B={large:"lg",small:"sm",middle:void 0},ae=mo(we=>{var Ce,Ee;return(Ee=(Ce=u??se)!==null&&Ce!==void 0?Ce:D)!==null&&Ee!==void 0?Ee:we}),ee=ae&&B[ae]||"",me=A?"loading":h,pe=Vn(w,["navigate"]),xe=ce(z,X,j,{[`${z}-${c}`]:c!=="default"&&c,[`${z}-${O}`]:O,[`${z}-${ee}`]:ee,[`${z}-icon-only`]:!E&&E!==0&&!!me,[`${z}-background-ghost`]:p&&!As(O),[`${z}-loading`]:A,[`${z}-two-chinese-chars`]:G&&L&&!A,[`${z}-block`]:m,[`${z}-dangerous`]:s,[`${z}-rtl`]:N==="rtl",[`${z}-icon-end`]:_==="end"},F,y,x,P==null?void 0:P.className),Ae=Object.assign(Object.assign({},P==null?void 0:P.style),C),ue=ce(b==null?void 0:b.icon,(r=P==null?void 0:P.classNames)===null||r===void 0?void 0:r.icon),Me=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((o=P==null?void 0:P.styles)===null||o===void 0?void 0:o.icon)||{}),Re=h&&!A?M.createElement(yg,{prefixCls:z,className:ue,style:Me},h):M.createElement(GO,{existIcon:!!h,prefixCls:z,loading:A}),$e=E||E===0?UO(E,Y&&L):null;if(pe.href!==void 0)return J(M.createElement("a",Object.assign({},pe,{className:ce(xe,{[`${z}-disabled`]:U}),href:U?void 0:pe.href,style:Ae,onClick:re,ref:V,tabIndex:U?-1:0}),Re,$e));let ve=M.createElement("button",Object.assign({},w,{type:g,className:xe,style:Ae,onClick:re,disabled:U,ref:V}),Re,$e,!!F&&M.createElement(m$,{key:"compact",prefixCls:z}));return As(O)||(ve=M.createElement(Su,{component:"Button",disabled:A},ve)),J(ve)});cr.Group=HO,cr.__ANT_BUTTON=!0,ne.env.NODE_ENV!=="production"&&(cr.displayName="Button");function Ru(e){return!!(e!=null&&e.then)}const $g=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:u}=e,f=v.useRef(!1),d=v.useRef(null),[y,x]=co(!1),E=function(){i==null||i.apply(void 0,arguments)};v.useEffect(()=>{let p=null;return a&&(p=setTimeout(()=>{var m;(m=d.current)===null||m===void 0||m.focus()})),()=>{p&&clearTimeout(p)}},[]);const h=p=>{Ru(p)&&(x(!0),p.then(function(){x(!1,!0),E.apply(void 0,arguments),f.current=!1},m=>{if(x(!1,!0),f.current=!1,!(s!=null&&s()))return Promise.reject(m)}))},_=p=>{if(f.current)return;if(f.current=!0,!u){E();return}let m;if(l){if(m=u(p),c&&!Ru(m)){f.current=!1,E(p);return}}else if(u.length)m=u(i),f.current=!1;else if(m=u(),!Ru(m)){E();return}h(m)};return v.createElement(cr,Object.assign({},vg(t),{onClick:_,loading:y,prefixCls:r},o,{ref:d}),n)},na=M.createContext({}),{Provider:Tg}=na,Pg=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=M.useContext(na);return o?M.createElement($g,{isSilent:r,actionFn:l,close:function(){a==null||a.apply(void 0,arguments),s==null||s(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},Rg=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=M.useContext(na);return M.createElement($g,{isSilent:n,type:a||"primary",actionFn:s,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var jg=v.createContext(null),Mg=[];function _$(e,t){var n=v.useState(function(){if(!hn())return null;var x=document.createElement("div");return ne.env.NODE_ENV!=="production"&&t&&x.setAttribute("data-debug",t),x}),r=he(n,1),o=r[0],i=v.useRef(!1),a=v.useContext(jg),l=v.useState(Mg),s=he(l,2),c=s[0],u=s[1],f=a||(i.current?void 0:function(x){u(function(E){var h=[x].concat(Se(E));return h})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function y(){var x;(x=o.parentElement)===null||x===void 0||x.removeChild(o),i.current=!1}return Kt(function(){return e?a?a(d):d():y(),y},[e]),Kt(function(){c.length&&(c.forEach(function(x){return x()}),u(Mg))},[c]),[o,f]}function y$(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var u=s?"width: ".concat(l.width,";"):"",f=c?"height: ".concat(l.height,";"):"";vr(`
|
|
154
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
155
|
+
`).concat(u,`
|
|
156
|
+
`).concat(f,`
|
|
157
|
+
}`),t)}catch(x){console.error(x),o=s,i=c}}document.body.appendChild(n);var d=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,y=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Fi(t),{width:d,height:y}}function b$(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:y$(e)}function w$(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var x$="rc-util-locker-".concat(Date.now()),Ig=0;function S$(e){var t=!!e,n=v.useState(function(){return Ig+=1,"".concat(x$,"_").concat(Ig)}),r=he(n,1),o=r[0];Kt(function(){if(t){var i=b$(document.body).width,a=w$();vr(`
|
|
158
|
+
html body {
|
|
159
|
+
overflow-y: hidden;
|
|
160
|
+
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
161
|
+
}`),o)}else Fi(o);return function(){Fi(o)}},[t,o])}var C$=!1;function E$(e){return C$}var Ag=function(t){return t===!1?!1:!hn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ks=v.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,l=a===void 0?!0:a,s=e.children,c=v.useState(n),u=he(c,2),f=u[0],d=u[1],y=f||n;ne.env.NODE_ENV!=="production"&&pt(hn()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),v.useEffect(function(){(l||n)&&d(n)},[n,l]);var x=v.useState(function(){return Ag(o)}),E=he(x,2),h=E[0],_=E[1];v.useEffect(function(){var P=Ag(o);_(P??null)});var p=_$(y&&!h,i),m=he(p,2),g=m[0],b=m[1],C=h??g;S$(r&&n&&hn()&&(C===g||C===document.body));var S=null;if(s&&Ir(s)&&t){var w=s;S=w.ref}var O=Lo(S,t);if(!y||!hn()||h===void 0)return null;var R=C===!1||E$(),N=s;return t&&(N=v.cloneElement(s,{ref:O})),v.createElement(jg.Provider,{value:b},R?N:to.createPortal(N,C))});ne.env.NODE_ENV!=="production"&&(ks.displayName="Portal");var Ng=v.createContext({});function O$(){var e=ie({},v);return e.useId}var kg=0,Lg=O$();const Fg=Lg?function(t){var n=Lg();return t||(ne.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=v.useState("ssr-id"),r=he(n,2),o=r[0],i=r[1];return v.useEffect(function(){var a=kg;kg+=1,i("rc_unique_".concat(a))},[]),t||(ne.env.NODE_ENV==="test"?"test-id":o)};function Dg(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Bg(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function $$(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Bg(o),n.top+=Bg(o,!0),n}const T$=v.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var zg={width:0,height:0,overflow:"hidden",outline:"none"},P$={outline:"none"},ju=M.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,s=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,d=e.bodyStyle,y=e.bodyProps,x=e.modalRender,E=e.onMouseDown,h=e.onMouseUp,_=e.holderRef,p=e.visible,m=e.forceRender,g=e.width,b=e.height,C=e.classNames,S=e.styles,w=M.useContext(Ng),O=w.panel,R=Lo(_,O),N=M.useRef(),P=M.useRef(),L=M.useRef();M.useImperativeHandle(t,function(){return{focus:function(){var k;(k=L.current)===null||k===void 0||k.focus({preventScroll:!0})},changeActive:function(k){var G=document,Z=G.activeElement;k&&Z===P.current?N.current.focus({preventScroll:!0}):!k&&Z===N.current&&P.current.focus({preventScroll:!0})}}});var z={};g!==void 0&&(z.width=g),b!==void 0&&(z.height=b);var J=l?M.createElement("div",{className:ce("".concat(n,"-footer"),C==null?void 0:C.footer),style:ie({},S==null?void 0:S.footer)},l):null,X=i?M.createElement("div",{className:ce("".concat(n,"-header"),C==null?void 0:C.header),style:ie({},S==null?void 0:S.header)},M.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,j=M.useMemo(function(){return De(s)==="object"&&s!==null?s:s?{closeIcon:c??M.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,c,n]),H=Zi(j,!0),U=De(s)==="object"&&s.disabled,D=s?M.createElement("button",Pe({type:"button",onClick:u,"aria-label":"Close"},H,{className:"".concat(n,"-close"),disabled:U}),j.closeIcon):null,W=M.createElement("div",{className:ce("".concat(n,"-content"),C==null?void 0:C.content),style:S==null?void 0:S.content},D,X,M.createElement("div",Pe({className:ce("".concat(n,"-body"),C==null?void 0:C.body),style:ie(ie({},d),S==null?void 0:S.body)},y),f),J);return M.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:R,style:ie(ie({},o),z),className:ce(n,r),onMouseDown:E,onMouseUp:h},M.createElement("div",{tabIndex:0,ref:N,style:zg,"aria-hidden":"true"}),M.createElement("div",{ref:L,tabIndex:-1,style:P$},M.createElement(T$,{shouldUpdate:p||m},x?x(W):W)),M.createElement("div",{tabIndex:0,ref:P,style:zg,"aria-hidden":"true"}))});ne.env.NODE_ENV!=="production"&&(ju.displayName="Panel");var qg=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,s=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,d=e.mousePosition,y=M.useRef(),x=v.useState(),E=he(x,2),h=E[0],_=E[1],p={};h&&(p.transformOrigin=h);function m(){var g=$$(y.current);_(d&&(d.x||d.y)?"".concat(d.x-g.left,"px ").concat(d.y-g.top,"px"):"")}return v.createElement(Jn,{visible:a,onVisibleChanged:f,onAppearPrepare:m,onEnterPrepare:m,forceRender:l,motionName:c,removeOnLeave:s,ref:y},function(g,b){var C=g.className,S=g.style;return v.createElement(ju,Pe({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:b,style:ie(ie(ie({},S),o),p),className:ce(i,C)}))})});qg.displayName="Content";var R$=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,l=t.className;return v.createElement(Jn,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(s,c){var u=s.className,f=s.style;return v.createElement("div",Pe({ref:c,style:ie(ie({},f),r),className:ce("".concat(n,"-mask"),u,l)},i))})},j$=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,l=t.keyboard,s=l===void 0?!0:l,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,d=t.wrapClassName,y=t.wrapProps,x=t.onClose,E=t.afterOpenChange,h=t.afterClose,_=t.transitionName,p=t.animation,m=t.closable,g=m===void 0?!0:m,b=t.mask,C=b===void 0?!0:b,S=t.maskTransitionName,w=t.maskAnimation,O=t.maskClosable,R=O===void 0?!0:O,N=t.maskStyle,P=t.maskProps,L=t.rootClassName,z=t.classNames,J=t.styles;ne.env.NODE_ENV!=="production"&&(["wrapStyle","bodyStyle","maskStyle"].forEach(function(me){Mr(!(me in t),"".concat(me," is deprecated, please use styles instead."))}),"wrapClassName"in t&&Mr(!1,"wrapClassName is deprecated, please use classNames instead."));var X=M.useRef(),j=M.useRef(),H=M.useRef(),U=v.useState(a),D=he(U,2),W=D[0],A=D[1],k=Fg();function G(){uc(j.current,document.activeElement)||(X.current=document.activeElement)}function Z(){if(!uc(j.current,document.activeElement)){var me;(me=H.current)===null||me===void 0||me.focus()}}function q(me){if(me)Z();else{if(A(!1),C&&X.current&&u){try{X.current.focus({preventScroll:!0})}catch{}X.current=null}W&&(h==null||h())}E==null||E(me)}function V(me){x==null||x(me)}var Y=M.useRef(!1),re=M.useRef(),se=function(){clearTimeout(re.current),Y.current=!0},F=function(){re.current=setTimeout(function(){Y.current=!1})},B=null;R&&(B=function(pe){Y.current?Y.current=!1:j.current===pe.target&&V(pe)});function ae(me){if(s&&me.keyCode===Te.ESC){me.stopPropagation(),V(me);return}a&&me.keyCode===Te.TAB&&H.current.changeActive(!me.shiftKey)}M.useEffect(function(){a&&(A(!0),G())},[a]),M.useEffect(function(){return function(){clearTimeout(re.current)}},[]);var ee=ie(ie(ie({zIndex:o},f),J==null?void 0:J.wrapper),{},{display:W?null:"none"});return v.createElement("div",Pe({className:ce("".concat(r,"-root"),L)},Zi(t,{data:!0})),v.createElement(R$,{prefixCls:r,visible:C&&a,motionName:Dg(r,S,w),style:ie(ie({zIndex:o},N),J==null?void 0:J.mask),maskProps:P,className:z==null?void 0:z.mask}),v.createElement("div",Pe({tabIndex:-1,onKeyDown:ae,className:ce("".concat(r,"-wrap"),d,z==null?void 0:z.wrapper),ref:j,onClick:B,style:ee},y),v.createElement(qg,Pe({},t,{onMouseDown:se,onMouseUp:F,ref:H,closable:g,ariaId:k,prefixCls:r,visible:a&&W,onClose:V,onVisibleChanged:q,motionName:Dg(r,_,p)}))))},Vg=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,l=t.afterClose,s=t.panelRef,c=v.useState(n),u=he(c,2),f=u[0],d=u[1],y=v.useMemo(function(){return{panel:s}},[s]);return v.useEffect(function(){n&&d(!0)},[n]),!o&&a&&!f?null:v.createElement(Ng.Provider,{value:y},v.createElement(ks,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},v.createElement(j$,Pe({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),d(!1)}}))))};Vg.displayName="Dialog";var go="RC_FORM_INTERNAL_HOOKS",xt=function(){pt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},vo=v.createContext({getFieldValue:xt,getFieldsValue:xt,getFieldError:xt,getFieldWarning:xt,getFieldsError:xt,isFieldsTouched:xt,isFieldTouched:xt,isFieldValidating:xt,isFieldsValidating:xt,resetFields:xt,setFields:xt,setFieldValue:xt,setFieldsValue:xt,validateFields:xt,submit:xt,getInternalHooks:function(){return xt(),{dispatch:xt,initEntityValue:xt,registerField:xt,useSubscribe:xt,setInitialValues:xt,destroyForm:xt,setCallbacks:xt,registerWatch:xt,getFields:xt,setValidateMessages:xt,setPreserve:xt,getInitialValue:xt}}}),ra=v.createContext(null);function Mu(e){return e==null?[]:Array.isArray(e)?e:[e]}function M$(e){return e&&!!e._init}function Iu(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Au=Iu();function I$(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function A$(e,t,n){if(sc())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ni(o,n.prototype),o}function Nu(e){var t=typeof Map=="function"?new Map:void 0;return Nu=function(r){if(r===null||!I$(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return A$(r,arguments,ki(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ni(o,r)},Nu(e)}var N$=/%[sdj%]/g,Hg=function(){};typeof ne<"u"&&ne.env&&ne.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Hg=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function ku(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Cn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(N$,function(l){if(l==="%%")return"%";if(o>=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function k$(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Xt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||k$(t)&&typeof e=="string"&&!e)}function L$(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,Se(l||[])),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function Wg(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?t(e[l],i):n([])}i([])}function F$(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Se(e[n]||[]))}),t}var Ug=function(e){Ar(n,e);var t=Nr(n);function n(r,o){var i;return rn(this,n),i=t.call(this,"Async Validation Error"),oe(nt(i),"errors",void 0),oe(nt(i),"fields",void 0),i.errors=r,i.fields=o,i}return on(n)}(Nu(Error));function D$(e,t,n,r,o){if(t.first){var i=new Promise(function(d,y){var x=function(_){return r(_),_.length?y(new Ug(_,ku(_))):d(o)},E=F$(e);Wg(E,n,x)});return i.catch(function(d){return d}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],f=new Promise(function(d,y){var x=function(h){if(u.push.apply(u,h),c++,c===s)return r(u),u.length?y(new Ug(u,ku(u))):d(o)};l.length||(r(u),d(o)),l.forEach(function(E){var h=e[E];a.indexOf(E)!==-1?Wg(h,n,x):L$(h,n,x)})});return f.catch(function(d){return d}),f}function B$(e){return!!(e&&e.message!==void 0)}function z$(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Gg(e,t){return function(n){var r;return e.fullFields?r=z$(t,e.fullFields):r=t[n.field||e.fullField],B$(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Kg(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];De(r)==="object"&&De(e[n])==="object"?e[n]=ie(ie({},e[n]),r):e[n]=r}}return e}var Yo="enum",q$=function(t,n,r,o,i){t[Yo]=Array.isArray(t[Yo])?t[Yo]:[],t[Yo].indexOf(n)===-1&&o.push(Cn(i.messages[Yo],t.fullField,t[Yo].join(", ")))},V$=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Cn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Cn(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},H$=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,d=typeof n=="number",y=typeof n=="string",x=Array.isArray(n);if(d?f="number":y?f="string":x&&(f="array"),!f)return!1;x&&(u=n.length),y&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(Cn(i.messages[f].len,t.fullField,t.len)):l&&!s&&u<t.min?o.push(Cn(i.messages[f].min,t.fullField,t.min)):s&&!l&&u>t.max?o.push(Cn(i.messages[f].max,t.fullField,t.max)):l&&s&&(u<t.min||u>t.max)&&o.push(Cn(i.messages[f].range,t.fullField,t.min,t.max))},Xg=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Xt(n,a||t.type))&&o.push(Cn(i.messages.required,t.fullField))},Ls;const W$=function(){if(Ls)return Ls;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(C){return C&&C.exact?l:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(a).concat(t(C),")"),"g")};u.v4=function(b){return b&&b.exact?s:new RegExp("".concat(t(b)).concat(n).concat(t(b)),"g")},u.v6=function(b){return b&&b.exact?c:new RegExp("".concat(t(b)).concat(a).concat(t(b)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",y=u.v4().source,x=u.v6().source,E="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",_="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',g="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(y,"|").concat(x,"|").concat(E).concat(h).concat(_,")").concat(p).concat(m);return Ls=new RegExp("(?:^".concat(g,"$)"),"i"),Ls};var Yg={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},oa={integer:function(t){return oa.number(t)&&parseInt(t,10)===t},float:function(t){return oa.number(t)&&!oa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return De(t)==="object"&&!oa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Yg.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(W$())},hex:function(t){return typeof t=="string"&&!!t.match(Yg.hex)}},U$=function(t,n,r,o,i){if(t.required&&n===void 0){Xg(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?oa[l](n)||o.push(Cn(i.messages.types[l],t.fullField,t.type)):l&&De(n)!==t.type&&o.push(Cn(i.messages.types[l],t.fullField,t.type))},G$=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Cn(i.messages.whitespace,t.fullField))};const at={required:Xg,whitespace:G$,type:U$,range:H$,enum:q$,pattern:V$};var K$=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Xt(n)&&!t.required)return r();at.required(t,n,o,a,i)}r(a)},X$=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();at.required(t,n,o,a,i,"array"),n!=null&&(at.type(t,n,o,a,i),at.range(t,n,o,a,i))}r(a)},Y$=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Xt(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&at.type(t,n,o,a,i)}r(a)},J$=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Xt(n,"date")&&!t.required)return r();if(at.required(t,n,o,a,i),!Xt(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),at.type(t,s,o,a,i),s&&at.range(t,s.getTime(),o,a,i)}}r(a)},Q$="enum",Z$=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Xt(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&at[Q$](t,n,o,a,i)}r(a)},eT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Xt(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&(at.type(t,n,o,a,i),at.range(t,n,o,a,i))}r(a)},tT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Xt(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&(at.type(t,n,o,a,i),at.range(t,n,o,a,i))}r(a)},nT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Xt(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&at.type(t,n,o,a,i)}r(a)},rT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Xt(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&(at.type(t,n,o,a,i),at.range(t,n,o,a,i))}r(a)},oT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Xt(n)&&!t.required)return r();at.required(t,n,o,a,i),n!==void 0&&at.type(t,n,o,a,i)}r(a)},iT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Xt(n,"string")&&!t.required)return r();at.required(t,n,o,a,i),Xt(n,"string")||at.pattern(t,n,o,a,i)}r(a)},aT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Xt(n)&&!t.required)return r();at.required(t,n,o,a,i),Xt(n)||at.type(t,n,o,a,i)}r(a)},sT=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":De(n);at.required(t,n,o,a,i,l),r(a)},lT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Xt(n,"string")&&!t.required)return r();at.required(t,n,o,a,i,"string"),Xt(n,"string")||(at.type(t,n,o,a,i),at.range(t,n,o,a,i),at.pattern(t,n,o,a,i),t.whitespace===!0&&at.whitespace(t,n,o,a,i))}r(a)},Lu=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Xt(n,a)&&!t.required)return r();at.required(t,n,o,l,i,a),Xt(n,a)||at.type(t,n,o,l,i)}r(l)};const ia={string:lT,method:nT,number:rT,boolean:Y$,regexp:aT,integer:tT,float:eT,array:X$,object:oT,enum:Z$,pattern:iT,date:J$,url:Lu,hex:Lu,email:Lu,required:sT,any:K$};var aa=function(){function e(t){rn(this,e),oe(this,"rules",null),oe(this,"_messages",Au),this.define(t)}return on(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(De(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=Kg(Iu(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=o,s=i;if(typeof l=="function"&&(s=l,l={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(x){var E=[],h={};function _(m){if(Array.isArray(m)){var g;E=(g=E).concat.apply(g,Se(m))}else E.push(m)}for(var p=0;p<x.length;p++)_(x[p]);E.length?(h=ku(E),s(E,h)):s(null,a)}if(l.messages){var u=this.messages();u===Au&&(u=Iu()),Kg(u,l.messages),l.messages=u}else l.messages=this.messages();var f={},d=l.keys||Object.keys(this.rules);d.forEach(function(x){var E=r.rules[x],h=a[x];E.forEach(function(_){var p=_;typeof p.transform=="function"&&(a===n&&(a=ie({},a)),h=a[x]=p.transform(h),h!=null&&(p.type=p.type||(Array.isArray(h)?"array":De(h)))),typeof p=="function"?p={validator:p}:p=ie({},p),p.validator=r.getValidationMethod(p),p.validator&&(p.field=x,p.fullField=p.fullField||x,p.type=r.getType(p),f[x]=f[x]||[],f[x].push({rule:p,value:h,source:a,field:x}))})});var y={};return D$(f,l,function(x,E){var h=x.rule,_=(h.type==="object"||h.type==="array")&&(De(h.fields)==="object"||De(h.defaultField)==="object");_=_&&(h.required||!h.required&&x.value),h.field=x.field;function p(S,w){return ie(ie({},w),{},{fullField:"".concat(h.fullField,".").concat(S),fullFields:h.fullFields?[].concat(Se(h.fullFields),[S]):[S]})}function m(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(S)?S:[S];!l.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&h.message!==void 0&&(w=[].concat(h.message));var O=w.map(Gg(h,a));if(l.first&&O.length)return y[h.field]=1,E(O);if(!_)E(O);else{if(h.required&&!x.value)return h.message!==void 0?O=[].concat(h.message).map(Gg(h,a)):l.error&&(O=[l.error(h,Cn(l.messages.required,h.field))]),E(O);var R={};h.defaultField&&Object.keys(x.value).map(function(L){R[L]=h.defaultField}),R=ie(ie({},R),x.rule.fields);var N={};Object.keys(R).forEach(function(L){var z=R[L],J=Array.isArray(z)?z:[z];N[L]=J.map(p.bind(null,L))});var P=new e(N);P.messages(l.messages),x.rule.options&&(x.rule.options.messages=l.messages,x.rule.options.error=l.error),P.validate(x.value,x.rule.options||l,function(L){var z=[];O&&O.length&&z.push.apply(z,Se(O)),L&&L.length&&z.push.apply(z,Se(L)),E(z.length?z:null)})}}var g;if(h.asyncValidator)g=h.asyncValidator(h,x.value,m,x.source,l);else if(h.validator){try{g=h.validator(h,x.value,m,x.source,l)}catch(S){var b,C;(b=(C=console).error)===null||b===void 0||b.call(C,S),l.suppressValidatorError||setTimeout(function(){throw S},0),m(S.message)}g===!0?m():g===!1?m(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):g instanceof Array?m(g):g instanceof Error&&m(g.message)}g&&g.then&&g.then(function(){return m()},function(S){return m(S)})},function(x){c(x)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!ia.hasOwnProperty(n.type))throw new Error(Cn("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?ia.required:ia[this.getType(n)]||void 0}}]),e}();oe(aa,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ia[t]=n}),oe(aa,"warning",Hg),oe(aa,"messages",Au),oe(aa,"validators",ia);var En="'${name}' is not a valid ${type}",Jg={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:En,method:En,array:En,object:En,number:En,date:En,boolean:En,integer:En,float:En,regexp:En,email:En,url:En,hex:En},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Qg=aa;function cT(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Zg="CODE_LOGIC_ERROR";function Fu(e,t,n,r,o){return Du.apply(this,arguments)}function Du(){return Du=po(mn().mark(function e(t,n,r,o,i){var a,l,s,c,u,f,d,y,x;return mn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return a=ie({},r),delete a.ruleIndex,Qg.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(_){return console.error(_),Promise.reject(Zg)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),c=new Qg(oe({},t,[a])),u=Vo(Jg,o.validateMessages),c.messages(u),f=[],h.prev=10,h.next=13,Promise.resolve(c.validate(oe({},t,n),ie({},o)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(f=h.t0.errors.map(function(_,p){var m=_.message,g=m===Zg?u.default:m;return v.isValidElement(g)?v.cloneElement(g,{key:"error_".concat(p)}):g}));case 18:if(!(!f.length&&s)){h.next=23;break}return h.next=21,Promise.all(n.map(function(_,p){return Fu("".concat(t,".").concat(p),_,s,o,i)}));case 21:return d=h.sent,h.abrupt("return",d.reduce(function(_,p){return[].concat(Se(_),Se(p))},[]));case 23:return y=ie(ie({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),x=f.map(function(_){return typeof _=="string"?cT(_,y):_}),h.abrupt("return",x);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),Du.apply(this,arguments)}function uT(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(u,f){var d=u.validator,y=ie(ie({},u),{},{ruleIndex:f});return d&&(y.validator=function(x,E,h){var _=!1,p=function(){for(var b=arguments.length,C=new Array(b),S=0;S<b;S++)C[S]=arguments[S];Promise.resolve().then(function(){pt(!_,"Your validator function has already return a promise. `callback` will be ignored."),_||h.apply(void 0,C)})},m=d(x,E,p);_=m&&typeof m.then=="function"&&typeof m.catch=="function",pt(_,"`callback` is deprecated. Please return a promise instead."),_&&m.then(function(){h()}).catch(function(g){h(g||" ")})}),y}).sort(function(u,f){var d=u.warningOnly,y=u.ruleIndex,x=f.warningOnly,E=f.ruleIndex;return!!d==!!x?y-E:d?1:-1}),s;if(o===!0)s=new Promise(function(){var u=po(mn().mark(function f(d,y){var x,E,h;return mn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:x=0;case 1:if(!(x<l.length)){p.next=12;break}return E=l[x],p.next=5,Fu(a,t,E,r,i);case 5:if(h=p.sent,!h.length){p.next=9;break}return y([{errors:h,rule:E}]),p.abrupt("return");case 9:x+=1,p.next=1;break;case 12:d([]);case 13:case"end":return p.stop()}},f)}));return function(f,d){return u.apply(this,arguments)}}());else{var c=l.map(function(u){return Fu(a,t,u,r,i).then(function(f){return{errors:f,rule:u}})});s=(o?fT(c):dT(c)).then(function(u){return Promise.reject(u)})}return s.catch(function(u){return u}),s}function dT(e){return Bu.apply(this,arguments)}function Bu(){return Bu=po(mn().mark(function e(t){return mn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,Se(o));return a}));case 1:case"end":return r.stop()}},e)})),Bu.apply(this,arguments)}function fT(e){return zu.apply(this,arguments)}function zu(){return zu=po(mn().mark(function e(t){var n;return mn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(l){l.errors.length&&i([l]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),zu.apply(this,arguments)}function qt(e){return Mu(e)}function ev(e,t){var n={};return t.forEach(function(r){var o=lr(e,r);n=Un(n,r,o)}),n}function Jo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return tv(t,r,n)})}function tv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function pT(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||De(e)!=="object"||De(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Se(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function hT(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&De(t.target)==="object"&&e in t.target?t.target[e]:t}function nv(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Se(e.slice(0,n)),[o],Se(e.slice(n,t)),Se(e.slice(t+1,r))):i<0?[].concat(Se(e.slice(0,t)),Se(e.slice(t+1,n+1)),[o],Se(e.slice(n+1,r))):e}var mT=["name"],Rn=[];function qu(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Vu=function(e){Ar(n,e);var t=Nr(n);function n(r){var o;if(rn(this,n),o=t.call(this,r),oe(nt(o),"state",{resetCount:0}),oe(nt(o),"cancelRegisterFunc",null),oe(nt(o),"mounted",!1),oe(nt(o),"touched",!1),oe(nt(o),"dirty",!1),oe(nt(o),"validatePromise",void 0),oe(nt(o),"prevValidating",void 0),oe(nt(o),"errors",Rn),oe(nt(o),"warnings",Rn),oe(nt(o),"cancelRegister",function(){var s=o.props,c=s.preserve,u=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,qt(f)),o.cancelRegisterFunc=null}),oe(nt(o),"getNamePath",function(){var s=o.props,c=s.name,u=s.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(Se(d),Se(c)):[]}),oe(nt(o),"getRules",function(){var s=o.props,c=s.rules,u=c===void 0?[]:c,f=s.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),oe(nt(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),oe(nt(o),"metaCache",null),oe(nt(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var u=ie(ie({},o.getMeta()),{},{destroy:s});Di(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),oe(nt(o),"onStoreChange",function(s,c,u){var f=o.props,d=f.shouldUpdate,y=f.dependencies,x=y===void 0?[]:y,E=f.onReset,h=u.store,_=o.getNamePath(),p=o.getValue(s),m=o.getValue(h),g=c&&Jo(c,_);switch(u.type==="valueUpdate"&&u.source==="external"&&!Di(p,m)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Rn,o.warnings=Rn,o.triggerMetaEvent()),u.type){case"reset":if(!c||g){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Rn,o.warnings=Rn,o.triggerMetaEvent(),E==null||E(),o.refresh();return}break;case"remove":{if(d&&qu(d,s,h,p,m,u)){o.reRender();return}break}case"setField":{var b=u.data;if(g){"touched"in b&&(o.touched=b.touched),"validating"in b&&!("originRCField"in b)&&(o.validatePromise=b.validating?Promise.resolve([]):null),"errors"in b&&(o.errors=b.errors||Rn),"warnings"in b&&(o.warnings=b.warnings||Rn),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in b&&Jo(c,_,!0)){o.reRender();return}if(d&&!_.length&&qu(d,s,h,p,m,u)){o.reRender();return}break}case"dependenciesUpdate":{var C=x.map(qt);if(C.some(function(S){return Jo(u.relatedFields,S)})){o.reRender();return}break}default:if(g||(!x.length||_.length||d)&&qu(d,s,h,p,m,u)){o.reRender();return}break}d===!0&&o.reRender()}),oe(nt(o),"validateRules",function(s){var c=o.getNamePath(),u=o.getValue(),f=s||{},d=f.triggerName,y=f.validateOnly,x=y===void 0?!1:y,E=Promise.resolve().then(po(mn().mark(function h(){var _,p,m,g,b,C,S;return mn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(_=o.props,p=_.validateFirst,m=p===void 0?!1:p,g=_.messageVariables,b=_.validateDebounce,C=o.getRules(),d&&(C=C.filter(function(R){return R}).filter(function(R){var N=R.validateTrigger;if(!N)return!0;var P=Mu(N);return P.includes(d)})),!(b&&d)){O.next=10;break}return O.next=8,new Promise(function(R){setTimeout(R,b)});case 8:if(o.validatePromise===E){O.next=10;break}return O.abrupt("return",[]);case 10:return S=uT(c,u,C,s,m,g),S.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rn;if(o.validatePromise===E){var N;o.validatePromise=null;var P=[],L=[];(N=R.forEach)===null||N===void 0||N.call(R,function(z){var J=z.rule.warningOnly,X=z.errors,j=X===void 0?Rn:X;J?L.push.apply(L,Se(j)):P.push.apply(P,Se(j))}),o.errors=P,o.warnings=L,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",S);case 13:case"end":return O.stop()}},h)})));return x||(o.validatePromise=E,o.dirty=!0,o.errors=Rn,o.warnings=Rn,o.triggerMetaEvent(),o.reRender()),E}),oe(nt(o),"isFieldValidating",function(){return!!o.validatePromise}),oe(nt(o),"isFieldTouched",function(){return o.touched}),oe(nt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,c=s.getInternalHooks(go),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),oe(nt(o),"getErrors",function(){return o.errors}),oe(nt(o),"getWarnings",function(){return o.warnings}),oe(nt(o),"isListField",function(){return o.props.isListField}),oe(nt(o),"isList",function(){return o.props.isList}),oe(nt(o),"isPreserve",function(){return o.props.preserve}),oe(nt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),oe(nt(o),"getOnlyChild",function(s){if(typeof s=="function"){var c=o.getMeta();return ie(ie({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=ro(s);return u.length!==1||!v.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),oe(nt(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return lr(s||c(!0),u)}),oe(nt(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,d=c.validateTrigger,y=c.getValueFromEvent,x=c.normalize,E=c.valuePropName,h=c.getValueProps,_=c.fieldContext,p=d!==void 0?d:_.validateTrigger,m=o.getNamePath(),g=_.getInternalHooks,b=_.getFieldsValue,C=g(go),S=C.dispatch,w=o.getValue(),O=h||function(z){return oe({},E,z)},R=s[f],N=u!==void 0?O(w):{};ne.env.NODE_ENV!=="production"&&N&&Object.keys(N).forEach(function(z){pt(typeof N[z]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(z,")"))});var P=ie(ie({},s),N);P[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var z,J=arguments.length,X=new Array(J),j=0;j<J;j++)X[j]=arguments[j];y?z=y.apply(void 0,X):z=hT.apply(void 0,[E].concat(X)),x&&(z=x(z,w,b(!0))),S({type:"updateValue",namePath:m,value:z}),R&&R.apply(void 0,X)};var L=Mu(p||[]);return L.forEach(function(z){var J=P[z];P[z]=function(){J&&J.apply(void 0,arguments);var X=o.props.rules;X&&X.length&&S({type:"validateField",namePath:m,triggerName:z})}}),P}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(go),l=a.initEntityValue;l(nt(o))}return o}return on(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,s=l(go),c=s.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),l=a.child,s=a.isFunction,c;return s?c=l:v.isValidElement(l)?c=v.cloneElement(l,this.getControlled(l.props)):(pt(!l,"`children` of Field is not validate ReactElement."),c=l),v.createElement(v.Fragment,{key:o},c)}}]),n}(v.Component);oe(Vu,"contextType",vo),oe(Vu,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Hu(e){var t=e.name,n=ot(e,mT),r=v.useContext(vo),o=v.useContext(ra),i=t!==void 0?qt(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),ne.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&i.length<=1&&pt(!1,"`preserve` should not apply on Form.List fields."),v.createElement(Vu,Pe({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function rv(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=v.useContext(vo),s=v.useContext(ra),c=v.useRef({keys:[],id:0}),u=c.current,f=v.useMemo(function(){var E=qt(l.prefixName)||[];return[].concat(Se(E),Se(qt(t)))},[l.prefixName,t]),d=v.useMemo(function(){return ie(ie({},l),{},{prefixName:f})},[l,f]),y=v.useMemo(function(){return{getKey:function(h){var _=f.length,p=h[_];return[u.keys[p],h.slice(_+1)]}}},[f]);if(typeof r!="function")return pt(!1,"Form.List only accepts function as children."),null;var x=function(h,_,p){var m=p.source;return m==="internal"?!1:h!==_};return v.createElement(ra.Provider,{value:y},v.createElement(vo.Provider,{value:d},v.createElement(Hu,{name:[],shouldUpdate:x,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!s},function(E,h){var _=E.value,p=_===void 0?[]:_,m=E.onChange,g=l.getFieldValue,b=function(){var O=g(f||[]);return O||[]},C={add:function(O,R){var N=b();R>=0&&R<=N.length?(u.keys=[].concat(Se(u.keys.slice(0,R)),[u.id],Se(u.keys.slice(R))),m([].concat(Se(N.slice(0,R)),[O],Se(N.slice(R))))):(ne.env.NODE_ENV!=="production"&&(R<0||R>N.length)&&pt(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Se(u.keys),[u.id]),m([].concat(Se(N),[O]))),u.id+=1},remove:function(O){var R=b(),N=new Set(Array.isArray(O)?O:[O]);N.size<=0||(u.keys=u.keys.filter(function(P,L){return!N.has(L)}),m(R.filter(function(P,L){return!N.has(L)})))},move:function(O,R){if(O!==R){var N=b();O<0||O>=N.length||R<0||R>=N.length||(u.keys=nv(u.keys,O,R),m(nv(N,O,R)))}}},S=p||[];return Array.isArray(S)||(S=[],ne.env.NODE_ENV!=="production"&&pt(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(S.map(function(w,O){var R=u.keys[O];return R===void 0&&(u.keys[O]=u.id,R=u.keys[O],u.id+=1),{name:O,key:R,isListField:!0}}),C,h)})))}function gT(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var ov="__@field_split__";function Wu(e){return e.map(function(t){return"".concat(De(t),":").concat(t)}).join(ov)}var Qo=function(){function e(){rn(this,e),oe(this,"kvs",new Map)}return on(e,[{key:"set",value:function(n,r){this.kvs.set(Wu(n),r)}},{key:"get",value:function(n){return this.kvs.get(Wu(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Wu(n))}},{key:"map",value:function(n){return Se(this.kvs.entries()).map(function(r){var o=he(r,2),i=o[0],a=o[1],l=i.split(ov);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),u=he(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),vT=["name"],_T=on(function e(t){var n=this;rn(this,e),oe(this,"formHooked",!1),oe(this,"forceRootUpdate",void 0),oe(this,"subscribable",!0),oe(this,"store",{}),oe(this,"fieldEntities",[]),oe(this,"initialValues",{}),oe(this,"callbacks",{}),oe(this,"validateMessages",null),oe(this,"preserve",null),oe(this,"lastValidatePromise",null),oe(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),oe(this,"getInternalHooks",function(r){return r===go?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(pt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),oe(this,"useSubscribe",function(r){n.subscribable=r}),oe(this,"prevWithoutPreserves",null),oe(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Vo(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=Un(a,s,lr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),oe(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Qo;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),oe(this,"getInitialValue",function(r){var o=lr(n.initialValues,r);return r.length?Vo(o):o}),oe(this,"setCallbacks",function(r){n.callbacks=r}),oe(this,"setValidateMessages",function(r){n.validateMessages=r}),oe(this,"setPreserve",function(r){n.preserve=r}),oe(this,"watchList",[]),oe(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),oe(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),oe(this,"timeoutId",null),oe(this,"warningUnhooked",function(){ne.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||pt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),oe(this,"updateStore",function(r){n.store=r}),oe(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),oe(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Qo;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),oe(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=qt(i);return o.get(a)||{INVALIDATE_NAME_PATH:qt(i)}})}),oe(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&De(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return s.forEach(function(u){var f,d,y="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(l){var x,E;if((x=(E=u).isList)!==null&&x!==void 0&&x.call(E))return}else if(!i&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)c.push(y);else{var h="getMeta"in u?u.getMeta():null;a(h)&&c.push(y)}}),ev(n.store,c.map(qt))}),oe(this,"getFieldValue",function(r){n.warningUnhooked();var o=qt(r);return lr(n.store,o)}),oe(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:qt(r[a]),errors:[],warnings:[]}})}),oe(this,"getFieldError",function(r){n.warningUnhooked();var o=qt(r),i=n.getFieldsError([o])[0];return i.errors}),oe(this,"getFieldWarning",function(r){n.warningUnhooked();var o=qt(r),i=n.getFieldsError([o])[0];return i.warnings}),oe(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],l=o[1],s,c=!1;o.length===0?s=null:o.length===1?Array.isArray(a)?(s=a.map(qt),c=!1):(s=null,c=a):(s=a.map(qt),c=l);var u=n.getFieldEntities(!0),f=function(h){return h.isFieldTouched()};if(!s)return c?u.every(function(E){return f(E)||E.isList()}):u.some(f);var d=new Qo;s.forEach(function(E){d.set(E,[])}),u.forEach(function(E){var h=E.getNamePath();s.forEach(function(_){_.every(function(p,m){return h[m]===p})&&d.update(_,function(p){return[].concat(Se(p),[E])})})});var y=function(h){return h.some(f)},x=d.map(function(E){var h=E.value;return h});return c?x.every(y):x.some(y)}),oe(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),oe(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(qt);return o.some(function(a){var l=a.getNamePath();return Jo(i,l)&&a.isFieldValidating()})}),oe(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),oe(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Qo,i=n.getFieldEntities(!0);i.forEach(function(s){var c=s.props.initialValue,u=s.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:s,value:c}),o.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),y=n.getInitialValue(d);if(y!==void 0)pt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var x=o.get(d);if(x&&x.size>1)pt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(x){var E=n.getFieldValue(d),h=u.isListField();!h&&(!r.skipExist||E===void 0)&&n.updateStore(Un(n.store,d,Se(x)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=o.get(s);if(c){var u;(u=l).push.apply(u,Se(Se(c).map(function(f){return f.entity})))}})):l=i,a(l)}),oe(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Vo(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(qt);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(Un(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),oe(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,s=ot(a,vT),c=qt(l);i.push(c),"value"in s&&n.updateStore(Un(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),oe(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=ie(ie({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),oe(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=lr(n.store,i);a===void 0&&n.updateStore(Un(n.store,i,o))}}),oe(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),oe(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!tv(f.getNamePath(),o)})){var u=n.store;n.updateStore(Un(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),oe(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),oe(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=ie(ie({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,a)})}else n.forceRootUpdate()}),oe(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Se(i))}),i}),oe(this,"updateValue",function(r,o){var i=qt(r),a=n.store;n.updateStore(Un(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),s=n.callbacks.onValuesChange;if(s){var c=ev(n.store,[i]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Se(l)))}),oe(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Vo(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),oe(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),oe(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new Qo;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(u){var f=qt(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(s),d})})});var l=function s(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(i.push(d),s(d))}})};return l(r),i}),oe(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new Qo;o.forEach(function(c){var u=c.name,f=c.errors;l.set(u,f)}),a.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=a.filter(function(c){var u=c.name;return Jo(r,u)});s.length&&i(s,a)}}),oe(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,s=l?i.map(qt):[],c=[],u=String(Date.now()),f=new Set,d=a||{},y=d.recursive,x=d.dirty;n.getFieldEntities(!0).forEach(function(p){if(l||s.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(x&&!p.isFieldDirty())){var m=p.getNamePath();if(f.add(m.join(u)),!l||Jo(s,m,y)){var g=p.validateRules(ie({validateMessages:ie(ie({},Jg),n.validateMessages)},a));c.push(g.then(function(){return{name:m,errors:[],warnings:[]}}).catch(function(b){var C,S=[],w=[];return(C=b.forEach)===null||C===void 0||C.call(b,function(O){var R=O.rule.warningOnly,N=O.errors;R?w.push.apply(w,Se(N)):S.push.apply(S,Se(N))}),S.length?Promise.reject({name:m,errors:S,warnings:w}):{name:m,errors:S,warnings:w}}))}}});var E=gT(c);n.lastValidatePromise=E,E.catch(function(p){return p}).then(function(p){var m=p.map(function(g){var b=g.name;return b});n.notifyObservers(n.store,m,{type:"validateFinish"}),n.triggerOnFieldsChange(m,p)});var h=E.then(function(){return n.lastValidatePromise===E?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(p){var m=p.filter(function(g){return g&&g.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:m,outOfDate:n.lastValidatePromise!==E})});h.catch(function(p){return p});var _=s.filter(function(p){return f.has(p.join(u))});return n.triggerOnFieldsChange(_),h}),oe(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Uu(e){var t=v.useRef(),n=v.useState({}),r=he(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new _T(i);t.current=a.getForm()}return[t.current]}var Gu=v.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),iv=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=v.useContext(Gu),l=v.useRef({});return v.createElement(Gu.Provider,{value:ie(ie({},a),{},{validateMessages:ie(ie({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:l.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:l.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(l.current=ie(ie({},l.current),{},oe({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=ie({},l.current);delete u[c],l.current=u,a.unregisterForm(c)}})},i)},yT=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],bT=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,y=d===void 0?"onChange":d,x=t.onValuesChange,E=t.onFieldsChange,h=t.onFinish,_=t.onFinishFailed,p=t.clearOnDestroy,m=ot(t,yT),g=v.useRef(null),b=v.useContext(Gu),C=Uu(a),S=he(C,1),w=S[0],O=w.getInternalHooks(go),R=O.useSubscribe,N=O.setInitialValues,P=O.setCallbacks,L=O.setValidateMessages,z=O.setPreserve,J=O.destroyForm;v.useImperativeHandle(n,function(){return ie(ie({},w),{},{nativeElement:g.current})}),v.useEffect(function(){return b.registerForm(r,w),function(){b.unregisterForm(r)}},[b,w,r]),L(ie(ie({},b.validateMessages),f)),P({onValuesChange:x,onFieldsChange:function(G){if(b.triggerFormChange(r,G),E){for(var Z=arguments.length,q=new Array(Z>1?Z-1:0),V=1;V<Z;V++)q[V-1]=arguments[V];E.apply(void 0,[G].concat(q))}},onFinish:function(G){b.triggerFormFinish(r,G),h&&h(G)},onFinishFailed:_}),z(l);var X=v.useRef(null);N(o,!X.current),X.current||(X.current=!0),v.useEffect(function(){return function(){return J(p)}},[]);var j,H=typeof s=="function";if(H){var U=w.getFieldsValue(!0);j=s(U,w)}else j=s;R(!H);var D=v.useRef();v.useEffect(function(){pT(D.current||[],i||[])||w.setFields(i||[]),D.current=i},[i,w]);var W=v.useMemo(function(){return ie(ie({},w),{},{validateTrigger:y})},[w,y]),A=v.createElement(ra.Provider,{value:null},v.createElement(vo.Provider,{value:W},j));return u===!1?A:v.createElement(u,Pe({},m,{ref:g,onSubmit:function(G){G.preventDefault(),G.stopPropagation(),w.submit()},onReset:function(G){var Z;G.preventDefault(),w.resetFields(),(Z=m.onReset)===null||Z===void 0||Z.call(m,G)}}),A)};function av(e){try{return JSON.stringify(e)}catch{return Math.random()}}var wT=ne.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=M.useRef(t);pt(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function sv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=o===void 0?{}:o,a=M$(i)?{form:i}:i,l=a.form,s=M.useState(),c=he(s,2),u=c[0],f=c[1],d=M.useMemo(function(){return av(u)},[u]),y=M.useRef(d);y.current=d;var x=M.useContext(vo),E=l||x,h=E&&E._init;ne.env.NODE_ENV!=="production"&&pt(t.length===2?l?h:!0:h,"useWatch requires a form instance since it can not auto detect from context.");var _=qt(r),p=M.useRef(_);return p.current=_,wT(_),M.useEffect(function(){if(h){var m=E.getFieldsValue,g=E.getInternalHooks,b=g(go),C=b.registerWatch,S=function(N,P){var L=a.preserve?P:N;return typeof r=="function"?r(L):lr(L,p.current)},w=C(function(R,N){var P=S(R,N),L=av(P);y.current!==L&&(y.current=L,f(P))}),O=S(m(),m(!0));return u!==O&&f(O),w}},[h]),u}var xT=v.forwardRef(bT),Zo=xT;Zo.FormProvider=iv,Zo.Field=Hu,Zo.List=rv,Zo.useForm=Uu,Zo.useWatch=sv;const Sr=v.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),lv=v.createContext(null),cv=e=>{const t=Vn(e,["prefixCls"]);return v.createElement(iv,Object.assign({},t))},Ku=v.createContext({prefixCls:""}),On=v.createContext({});ne.env.NODE_ENV!=="production"&&(On.displayName="FormItemInputContext");const ST=e=>{let{children:t,status:n,override:r}=e;const o=M.useContext(On),i=M.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return v.createElement(On.Provider,{value:i},t)},uv=M.createContext(void 0),Fs=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=M.createElement(ST,{override:!0,status:!0},o)),t&&(o=M.createElement(qO,null,o)),o};function Ds(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function dv(e){const{closable:t,closeIcon:n}=e||{};return M.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function fv(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}const CT={};function pv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:CT;const r=dv(e),o=dv(t),i=M.useMemo(()=>Object.assign({closeIcon:M.createElement(uo,null)},n),[n]),a=M.useMemo(()=>r===!1?!1:r?fv(i,o,r):o===!1?!1:o?fv(i,o):i.closable?i:!1,[r,o,i]);return M.useMemo(()=>{if(a===!1)return[!1,null];const{closeIconRender:l}=i,{closeIcon:s}=a;let c=s;if(c!=null){l&&(c=l(s));const u=Zi(a,!0);Object.keys(u).length&&(c=M.isValidElement(c)?M.cloneElement(c,u):M.createElement("span",Object.assign({},u),c))}return[!0,c]},[a,i])}const ET=()=>hn()&&window.document.documentElement,Bs=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=ce({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=ce({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=v.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return v.createElement("span",{className:ce(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},OT=new it("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),zs=e=>({height:e,lineHeight:be(e)}),ei=e=>Object.assign({width:e},zs(e)),$T=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:OT,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Xu=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},zs(e)),TT=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ei(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ei(o)),[`${t}${t}-sm`]:Object.assign({},ei(i))}},PT=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Xu(t,l)),[`${r}-lg`]:Object.assign({},Xu(o,l)),[`${r}-sm`]:Object.assign({},Xu(i,l))}},hv=e=>Object.assign({width:e},zs(e)),RT=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},hv(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},hv(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Yu=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Ju=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},zs(e)),jT=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Ju(r,l))},Yu(e,r,n)),{[`${n}-lg`]:Object.assign({},Ju(o,l))}),Yu(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Ju(i,l))}),Yu(e,i,`${n}-sm`))},MT=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:d,marginSM:y,borderRadius:x,titleHeight:E,blockRadius:h,paragraphLiHeight:_,controlHeightXS:p,paragraphMarginTop:m}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ei(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ei(c)),[`${n}-sm`]:Object.assign({},ei(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:E,background:f,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:_,listStyle:"none",background:f,borderRadius:h,"+ li":{marginBlockStart:p}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:x}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:y,[`+ ${o}`]:{marginBlockStart:m}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},jT(e)),TT(e)),PT(e)),RT(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
162
|
+
${r},
|
|
163
|
+
${o} > li,
|
|
164
|
+
${n},
|
|
165
|
+
${i},
|
|
166
|
+
${a},
|
|
167
|
+
${l}
|
|
168
|
+
`]:Object.assign({},$T(e))}}},ti=ln("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Lt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[MT(r)]},e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),IT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=v.useContext(Ke),s=l("skeleton",t),[c,u,f]=ti(s),d=Vn(e,["prefixCls","className"]),y=ce(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,f);return c(v.createElement("div",{className:y},v.createElement(Bs,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},d))))},AT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=v.useContext(Ke),s=l("skeleton",t),[c,u,f]=ti(s),d=Vn(e,["prefixCls"]),y=ce(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,f);return c(v.createElement("div",{className:y},v.createElement(Bs,Object.assign({prefixCls:`${s}-button`,size:a},d))))},NT="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",kT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=v.useContext(Ke),l=a("skeleton",t),[s,c,u]=ti(l),f=ce(l,`${l}-element`,{[`${l}-active`]:i},n,r,c,u);return s(v.createElement("div",{className:f},v.createElement("div",{className:ce(`${l}-image`,n),style:o},v.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},v.createElement("title",null,"Image placeholder"),v.createElement("path",{d:NT,className:`${l}-image-path`})))))},LT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=v.useContext(Ke),s=l("skeleton",t),[c,u,f]=ti(s),d=Vn(e,["prefixCls"]),y=ce(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,f);return c(v.createElement("div",{className:y},v.createElement(Bs,Object.assign({prefixCls:`${s}-input`,size:a},d))))};var FT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},DT=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:FT}))},mv=v.forwardRef(DT);ne.env.NODE_ENV!=="production"&&(mv.displayName="DotChartOutlined");const BT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=v.useContext(Ke),s=l("skeleton",t),[c,u,f]=ti(s),d=ce(s,`${s}-element`,{[`${s}-active`]:i},u,n,r,f),y=a??v.createElement(mv,null);return c(v.createElement("div",{className:d},v.createElement("div",{className:ce(`${s}-image`,n),style:o},y)))},zT=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},qT=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=Se(Array(o)).map((a,l)=>v.createElement("li",{key:l,style:{width:zT(l,e)}}));return v.createElement("ul",{className:ce(t,n),style:r},i)},VT=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return v.createElement("h3",{className:ce(t,n),style:Object.assign({width:r},o)})};function Qu(e){return e&&typeof e=="object"?e:{}}function HT(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function WT(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function UT(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const _o=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:s=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:d,direction:y,skeleton:x}=v.useContext(Ke),E=d("skeleton",t),[h,_,p]=ti(E);if(n||!("loading"in e)){const m=!!l,g=!!s,b=!!c;let C;if(m){const O=Object.assign(Object.assign({prefixCls:`${E}-avatar`},HT(g,b)),Qu(l));C=v.createElement("div",{className:`${E}-header`},v.createElement(Bs,Object.assign({},O)))}let S;if(g||b){let O;if(g){const N=Object.assign(Object.assign({prefixCls:`${E}-title`},WT(m,b)),Qu(s));O=v.createElement(VT,Object.assign({},N))}let R;if(b){const N=Object.assign(Object.assign({prefixCls:`${E}-paragraph`},UT(m,g)),Qu(c));R=v.createElement(qT,Object.assign({},N))}S=v.createElement("div",{className:`${E}-content`},O,R)}const w=ce(E,{[`${E}-with-avatar`]:m,[`${E}-active`]:u,[`${E}-rtl`]:y==="rtl",[`${E}-round`]:f},x==null?void 0:x.className,r,o,_,p);return h(v.createElement("div",{className:w,style:Object.assign(Object.assign({},x==null?void 0:x.style),i)},C,S))}return a??null};_o.Button=AT,_o.Avatar=IT,_o.Input=LT,_o.Image=kT,_o.Node=BT,ne.env.NODE_ENV!=="production"&&(_o.displayName="Skeleton");function gv(){}const GT=v.createContext({add:gv,remove:gv});function KT(e){const t=v.useContext(GT),n=v.useRef();return Zt(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const vv=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=M.useContext(na);return M.createElement(cr,Object.assign({onClick:n},e),t)},_v=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=M.useContext(na);return M.createElement(cr,Object.assign({},vg(n),{loading:e,onClick:o},t),r)};function yv(e,t){return M.createElement("span",{className:`${e}-close-x`},t||M.createElement(uo,{className:`${e}-close-icon`}))}const bv=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[u]=cs("Modal",Fh()),f=t||(u==null?void 0:u.okText),d=r||(u==null?void 0:u.cancelText),y={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:f,cancelTextLocale:d,okType:n,onOk:i,onCancel:a},x=M.useMemo(()=>y,Se(Object.values(y)));let E;return typeof c=="function"||typeof c>"u"?(E=M.createElement(M.Fragment,null,M.createElement(vv,null),M.createElement(_v,null)),typeof c=="function"&&(E=c(E,{OkBtn:_v,CancelBtn:vv})),E=M.createElement(Tg,{value:x},E)):E=c,M.createElement(eu,{disabled:!1},E)},XT=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
169
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
170
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),YT=e=>({animationDuration:e,animationFillMode:"both"}),JT=e=>({animationDuration:e,animationFillMode:"both"}),Zu=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
171
|
+
${i}${e}-enter,
|
|
172
|
+
${i}${e}-appear
|
|
173
|
+
`]:Object.assign(Object.assign({},YT(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},JT(r)),{animationPlayState:"paused"}),[`
|
|
174
|
+
${i}${e}-enter${e}-enter-active,
|
|
175
|
+
${i}${e}-appear${e}-appear-active
|
|
176
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},QT=new it("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ZT=new it("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),eP=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Zu(r,QT,ZT,e.motionDurationMid,t),{[`
|
|
177
|
+
${o}${r}-enter,
|
|
178
|
+
${o}${r}-appear
|
|
179
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},tP=new it("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),nP=new it("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),rP=new it("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),oP=new it("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),iP=new it("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),aP=new it("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),sP=new it("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),lP=new it("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),cP={"slide-up":{inKeyframes:tP,outKeyframes:nP},"slide-down":{inKeyframes:rP,outKeyframes:oP},"slide-left":{inKeyframes:iP,outKeyframes:aP},"slide-right":{inKeyframes:sP,outKeyframes:lP}},wv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=cP[t];return[Zu(r,o,i,e.motionDurationMid),{[`
|
|
180
|
+
${r}-enter,
|
|
181
|
+
${r}-appear
|
|
182
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},ed=new it("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),uP=new it("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),xv=new it("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sv=new it("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),dP=new it("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),fP=new it("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),pP=new it("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),hP=new it("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),mP=new it("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),gP=new it("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),vP=new it("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),_P=new it("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),yP={zoom:{inKeyframes:ed,outKeyframes:uP},"zoom-big":{inKeyframes:xv,outKeyframes:Sv},"zoom-big-fast":{inKeyframes:xv,outKeyframes:Sv},"zoom-left":{inKeyframes:pP,outKeyframes:hP},"zoom-right":{inKeyframes:mP,outKeyframes:gP},"zoom-up":{inKeyframes:dP,outKeyframes:fP},"zoom-down":{inKeyframes:vP,outKeyframes:_P}},td=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=yP[t];return[Zu(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
183
|
+
${r}-enter,
|
|
184
|
+
${r}-appear
|
|
185
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Cv(e){return{position:e,inset:0}}const bP=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Cv("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Cv("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:eP(e)}]},wP=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${be(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},_n(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${be(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:be(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ki(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${be(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
186
|
+
${t}-body,
|
|
187
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},xP=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Ev=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Lt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Ov=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${be(e.paddingMD)} ${be(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${be(e.padding)} ${be(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${be(e.paddingXS)} ${be(e.padding)}`:0,footerBorderTop:e.wireframe?`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${be(e.padding*2)} ${be(e.padding*2)} ${be(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),$v=ln("Modal",e=>{const t=Ev(e);return[wP(t),xP(t),bP(t),td(t,"zoom")]},Ov,{unitless:{titleLineHeight:!0}});var SP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let nd;const CP=e=>{nd={x:e.pageX,y:e.pageY},setTimeout(()=>{nd=null},100)};ET()&&document.documentElement.addEventListener("click",CP,!0);const Tv=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=v.useContext(Ke),a=A=>{const{onCancel:k}=e;k==null||k(A)},l=A=>{const{onOk:k}=e;k==null||k(A)};if(ne.env.NODE_ENV!=="production"){const A=Pt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(k=>{let[G,Z]=k;A.deprecated(!(G in e),G,Z)})}const{prefixCls:s,className:c,rootClassName:u,open:f,wrapClassName:d,centered:y,getContainer:x,focusTriggerAfterClose:E=!0,style:h,visible:_,width:p=520,footer:m,classNames:g,styles:b,children:C,loading:S}=e,w=SP(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),O=r("modal",s),R=r(),N=Sn(O),[P,L,z]=$v(O,N),J=ce(d,{[`${O}-centered`]:!!y,[`${O}-wrap-rtl`]:o==="rtl"}),X=m!==null&&!S?v.createElement(bv,Object.assign({},e,{onOk:l,onCancel:a})):null,[j,H]=pv(Ds(e),Ds(i),{closable:!0,closeIcon:v.createElement(uo,{className:`${O}-close-icon`}),closeIconRender:A=>yv(O,A)}),U=KT(`.${O}-content`),[D,W]=rg("Modal",w.zIndex);return P(v.createElement(Fs,{form:!0,space:!0},v.createElement(Ts.Provider,{value:W},v.createElement(Vg,Object.assign({width:p},w,{zIndex:D,getContainer:x===void 0?n:x,prefixCls:O,rootClassName:ce(L,u,z,N),footer:X,visible:f??_,mousePosition:(t=w.mousePosition)!==null&&t!==void 0?t:nd,onClose:a,closable:j,closeIcon:H,focusTriggerAfterClose:E,transitionName:ho(R,"zoom",e.transitionName),maskTransitionName:ho(R,"fade",e.maskTransitionName),className:ce(L,c,i==null?void 0:i.className),style:Object.assign(Object.assign({},i==null?void 0:i.style),h),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),g),{wrapper:ce(J,g==null?void 0:g.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),b),panelRef:U}),S?v.createElement(_o,{active:!0,title:!1,paragraph:{rows:4},className:`${O}-body-skeleton`}):C))))},EP=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},fm()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${be(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
|
|
188
|
+
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},OP=Wo(["Modal","confirm"],e=>{const t=Ev(e);return[EP(t)]},Ov,{order:-1e3});var $P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Pv(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c}=e,u=$P(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(ne.env.NODE_ENV!=="production"){const S=Pt("Modal");ne.env.NODE_ENV!=="production"&&S(!(typeof n=="string"&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let f=n;if(!n&&n!==null)switch(a){case"info":f=v.createElement(Es,null);break;case"success":f=v.createElement(Ji,null);break;case"error":f=v.createElement(Xo,null);break;default:f=v.createElement(Qi,null)}const d=l??a==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[x]=cs("Modal"),E=c||x,h=r||(d?E==null?void 0:E.okText:E==null?void 0:E.justOkText),_=o||(E==null?void 0:E.cancelText),p=Object.assign({autoFocusButton:y,cancelTextLocale:_,okTextLocale:h,mergedOkCancel:d},u),m=v.useMemo(()=>p,Se(Object.values(p))),g=v.createElement(v.Fragment,null,v.createElement(Pg,null),v.createElement(Rg,null)),b=e.title!==void 0&&e.title!==null,C=`${i}-body`;return v.createElement("div",{className:`${i}-body-wrapper`},v.createElement("div",{className:ce(C,{[`${C}-has-title`]:b})},f,v.createElement("div",{className:`${i}-paragraph`},b&&v.createElement("span",{className:`${i}-title`},e.title),v.createElement("div",{className:`${i}-content`},e.content))),s===void 0||typeof s=="function"?v.createElement(Tg,{value:m},v.createElement("div",{className:`${i}-btns`},typeof s=="function"?s(g,{OkBtn:Rg,CancelBtn:Pg}):g)):s,v.createElement(OP,{prefixCls:t}))}const Rv=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:l,maskStyle:s,direction:c,prefixCls:u,wrapClassName:f,rootPrefixCls:d,bodyStyle:y,closable:x=!1,closeIcon:E,modalRender:h,focusTriggerAfterClose:_,onConfirm:p,styles:m}=e;if(ne.env.NODE_ENV!=="production"){const P=Pt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(L=>{let[z,J]=L;P.deprecated(!(z in e),z,J)})}const g=`${u}-confirm`,b=e.width||416,C=e.style||{},S=e.mask===void 0?!0:e.mask,w=e.maskClosable===void 0?!1:e.maskClosable,O=ce(g,`${g}-${e.type}`,{[`${g}-rtl`]:c==="rtl"},e.className),[,R]=Xn(),N=v.useMemo(()=>n!==void 0?n:R.zIndexPopupBase+Ps,[n,R]);return v.createElement(Tv,{prefixCls:u,className:O,wrapClassName:ce({[`${g}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),p==null||p(!1)},open:o,title:"",footer:null,transitionName:ho(d||"","zoom",e.transitionName),maskTransitionName:ho(d||"","fade",e.maskTransitionName),mask:S,maskClosable:w,style:C,styles:Object.assign({body:y,mask:s},m),width:b,zIndex:N,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:x,closeIcon:E,modalRender:h,focusTriggerAfterClose:_},v.createElement(Pv,Object.assign({},e,{confirmPrefixCls:g})))},rd=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return v.createElement(Qn,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},v.createElement(Rv,Object.assign({},e)))};ne.env.NODE_ENV!=="production"&&(Rv.displayName="ConfirmDialog",rd.displayName="ConfirmDialogWrapper");const yo=[];let jv="";function Mv(){return jv}const TP=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Fh(),l=M.useContext(Ke),s=Mv()||l.getPrefixCls(),c=r||`${s}-modal`;let u=o;return u===!1&&(u=void 0,ne.env.NODE_ENV!=="production"&&ne.env.NODE_ENV!=="production"&&ao(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),M.createElement(rd,Object.assign({},e,{rootPrefixCls:s,prefixCls:c,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:i??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function sa(e){const t=Xi();ne.env.NODE_ENV!=="production"&&!t.holderRender&&fu("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o;function i(){for(var c,u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];if(f.some(E=>E==null?void 0:E.triggerCancel)){var x;(c=e.onCancel)===null||c===void 0||(x=c).call.apply(x,[e,()=>{}].concat(Se(f.slice(1))))}for(let E=0;E<yo.length;E++)if(yo[E]===l){yo.splice(E,1);break}ug(n)}function a(c){clearTimeout(o),o=setTimeout(()=>{const u=t.getPrefixCls(void 0,Mv()),f=t.getIconPrefixCls(),d=t.getTheme(),y=M.createElement(TP,Object.assign({},c));Ms(M.createElement(Qn,{prefixCls:u,iconPrefixCls:f,theme:d},t.holderRender?t.holderRender(y):y),n)})}function l(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,u)}}),r.visible&&delete r.visible,a(r)}function s(c){typeof c=="function"?r=c(r):r=Object.assign(Object.assign({},r),c),a(r)}return a(r),yo.push(l),{destroy:l,update:s}}function Iv(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Av(e){return Object.assign(Object.assign({},e),{type:"info"})}function Nv(e){return Object.assign(Object.assign({},e),{type:"success"})}function kv(e){return Object.assign(Object.assign({},e),{type:"error"})}function Lv(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function PP(e){let{rootPrefixCls:t}=e;ne.env.NODE_ENV!=="production"&&ao(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),jv=t}var RP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const jP=(e,t)=>{var n,{afterClose:r,config:o}=e,i=RP(e,["afterClose","config"]);const[a,l]=v.useState(!0),[s,c]=v.useState(o),{direction:u,getPrefixCls:f}=v.useContext(Ke),d=f("modal"),y=f(),x=()=>{var p;r(),(p=s.afterClose)===null||p===void 0||p.call(s)},E=function(){var p;l(!1);for(var m=arguments.length,g=new Array(m),b=0;b<m;b++)g[b]=arguments[b];if(g.some(w=>w==null?void 0:w.triggerCancel)){var S;(p=s.onCancel)===null||p===void 0||(S=p).call.apply(S,[s,()=>{}].concat(Se(g.slice(1))))}};v.useImperativeHandle(t,()=>({destroy:E,update:p=>{c(m=>Object.assign(Object.assign({},m),p))}}));const h=(n=s.okCancel)!==null&&n!==void 0?n:s.type==="confirm",[_]=cs("Modal",Fr.Modal);return v.createElement(rd,Object.assign({prefixCls:d,rootPrefixCls:y},s,{close:E,open:a,afterClose:x,okText:s.okText||(h?_==null?void 0:_.okText:_==null?void 0:_.justOkText),direction:s.direction||u,cancelText:s.cancelText||(_==null?void 0:_.cancelText)},i))},MP=v.forwardRef(jP);let Fv=0;const IP=v.memo(v.forwardRef((e,t)=>{const[n,r]=EO();return v.useImperativeHandle(t,()=>({patchElement:r}),[]),v.createElement(v.Fragment,null,n)}));function AP(){const e=v.useRef(null),[t,n]=v.useState([]);v.useEffect(()=>{t.length&&(Se(t).forEach(a=>{a()}),n([]))},[t]);const r=v.useCallback(i=>function(l){var s;Fv+=1;const c=v.createRef();let u;const f=new Promise(h=>{u=h});let d=!1,y;const x=v.createElement(MP,{key:`modal-${Fv}`,config:i(l),ref:c,afterClose:()=>{y==null||y()},isSilent:()=>d,onConfirm:h=>{u(h)}});return y=(s=e.current)===null||s===void 0?void 0:s.patchElement(x),y&&yo.push(y),{destroy:()=>{function h(){var _;(_=c.current)===null||_===void 0||_.destroy()}c.current?h():n(_=>[].concat(Se(_),[h]))},update:h=>{function _(){var p;(p=c.current)===null||p===void 0||p.update(h)}c.current?_():n(p=>[].concat(Se(p),[_]))},then:h=>(d=!0,f.then(h))}},[]);return[v.useMemo(()=>({info:r(Av),success:r(Nv),error:r(kv),warning:r(Iv),confirm:r(Lv)}),[]),v.createElement(IP,{key:"modal-holder",ref:e})]}const NP=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new it("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new it("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new it("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new it("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},kP=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],LP={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},FP=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[LP[t]]:{value:0,_skip_check_:!0}}}}},DP=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},BP=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},zP=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},DP(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},BP(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},kP.map(n=>FP(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Dv=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:d,notificationPadding:y,notificationMarginEdge:x,notificationProgressBg:E,notificationProgressHeight:h,fontSize:_,lineHeight:p,width:m,notificationIconSize:g,colorText:b}=e,C=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[C]:{padding:y,width:m,maxWidth:`calc(100vw - ${be(e.calc(x).mul(2).equal())})`,overflow:"hidden",lineHeight:p,wordWrap:"break-word"},[`${C}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:_,color:b},[`${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(g).equal(),fontSize:o},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.calc(e.marginSM).add(g).equal(),fontSize:_},[`${C}-icon`]:{position:"absolute",fontSize:g,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${C}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Ki(e)),[`${C}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${be(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:h,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:E},"&::-webkit-progress-value":{borderRadius:a,background:E}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},qP=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new it("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},_n(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Dv(e))}}]},Bv=e=>({zIndexPopup:e.zIndexPopupBase+Ps+50,width:384}),zv=e=>{const t=e.paddingMD,n=e.paddingLG;return Lt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${be(e.paddingMD)} ${be(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},qv=ln("Notification",e=>{const t=zv(e);return[qP(t),NP(t),zP(t)]},Bv),VP=Wo(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=zv(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Dv(n)),{width:n.width,maxWidth:`calc(100vw - ${be(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Bv);var HP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function od(e,t){return t===null||t===!1?null:t||v.createElement(uo,{className:`${e}-close-icon`})}const WP={success:Ji,info:Es,error:Xo,warning:Qi},Vv=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:l="alert"}=e;let s=null;return n?s=v.createElement("span",{className:`${t}-icon`},n):r&&(s=v.createElement(WP[r]||null,{className:ce(`${t}-icon`,`${t}-icon-${r}`)})),v.createElement("div",{className:ce({[`${t}-with-icon`]:s}),role:l},s,v.createElement("div",{className:`${t}-message`},o),v.createElement("div",{className:`${t}-description`},i),a&&v.createElement("div",{className:`${t}-btn`},a))},UP=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:l,closable:s=!0,closeIcon:c,className:u}=e,f=HP(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:d}=v.useContext(Ke),y=t||d("notification"),x=`${y}-notice`,E=Sn(y),[h,_,p]=qv(y,E);return h(v.createElement("div",{className:ce(`${x}-pure-panel`,_,n,p,E)},v.createElement(VP,{prefixCls:y}),v.createElement(mu,Object.assign({},f,{prefixCls:y,eventKey:"pure",duration:null,closable:s,className:ce({notificationClassName:u}),closeIcon:od(y,c),content:v.createElement(Vv,{prefixCls:x,icon:r,type:o,message:i,description:a,btn:l})}))))};function GP(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function KP(e){return{motionName:`${e}-fade`}}var XP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hv=24,YP=4.5,JP="topRight",QP=e=>{let{children:t,prefixCls:n}=e;const r=Sn(n),[o,i,a]=qv(n,r);return o(M.createElement(Km,{classNames:{list:ce(i,a,r)}},t))},ZP=(e,t)=>{let{prefixCls:n,key:r}=t;return M.createElement(QP,{prefixCls:n,key:r},e)},eR=M.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:c,duration:u,pauseOnHover:f=!0,showProgress:d}=e,{getPrefixCls:y,getPopupContainer:x,notification:E,direction:h}=M.useContext(Ke),[,_]=Xn(),p=o||y("notification"),m=w=>GP(w,n??Hv,r??Hv),g=()=>ce({[`${p}-rtl`]:l??h==="rtl"}),b=()=>KP(p),[C,S]=tg({prefixCls:p,style:m,className:g,motion:b,closable:!0,closeIcon:od(p),duration:u??YP,getContainer:()=>(i==null?void 0:i())||(x==null?void 0:x())||document.body,maxCount:a,pauseOnHover:f,showProgress:d,onAllRemoved:s,renderNotifications:ZP,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:_.margin}});return M.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:p,notification:E})),S});function Wv(e){const t=M.useRef(null),n=Pt("Notification");return[M.useMemo(()=>{const o=s=>{var c;if(!t.current){ne.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:u,prefixCls:f,notification:d}=t.current,y=`${f}-notice`,{message:x,description:E,icon:h,type:_,btn:p,className:m,style:g,role:b="alert",closeIcon:C,closable:S}=s,w=XP(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),O=od(y,typeof C<"u"?C:d==null?void 0:d.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:JP},w),{content:M.createElement(Vv,{prefixCls:y,icon:h,type:_,message:x,description:E,btn:p,role:b}),className:ce(_&&`${y}-${_}`,m,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),g),closeIcon:O,closable:S??!!O}))},a={open:o,destroy:s=>{var c,u;s!==void 0?(c=t.current)===null||c===void 0||c.close(s):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=c=>o(Object.assign(Object.assign({},c),{type:s}))}),a},[]),M.createElement(eR,Object.assign({key:"notification-holder"},e,{ref:t}))]}function tR(e){return Wv(e)}const Uv=M.createContext({});function nR(e){return t=>v.createElement(Qn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(e,Object.assign({},t)))}const Gv=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var rR=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ni=void 0;function oR(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,u=e.className,f=e.style,d=e.children,y=e.display,x=e.order,E=e.component,h=E===void 0?"div":E,_=ot(e,rR),p=a&&!y;function m(w){s(c,w)}v.useEffect(function(){return function(){m(null)}},[]);var g=i&&o!==ni?i(o):d,b;r||(b={opacity:p?0:1,height:p?0:ni,overflowY:p?"hidden":ni,order:a?x:ni,pointerEvents:p?"none":ni,position:p?"absolute":ni});var C={};p&&(C["aria-hidden"]=!0);var S=v.createElement(h,Pe({className:ce(!r&&n,u),style:ie(ie({},b),f)},C,_,{ref:t}),g);return a&&(S=v.createElement(ar,{onResize:function(O){var R=O.offsetWidth;m(R)},disabled:l},S)),S}var la=v.forwardRef(oR);la.displayName="Item";function iR(e){if(typeof MessageChannel>"u")kt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function aR(){var e=v.useRef(null),t=function(r){e.current||(e.current=[],iR(function(){to.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ca(e,t){var n=v.useState(t),r=he(n,2),o=r[0],i=r[1],a=Zt(function(l){e(function(){i(l)})});return[o,a]}var qs=M.createContext(null),sR=["component"],lR=["className"],cR=["className"],uR=function(t,n){var r=v.useContext(qs);if(!r){var o=t.component,i=o===void 0?"div":o,a=ot(t,sR);return v.createElement(i,Pe({},a,{ref:n}))}var l=r.className,s=ot(r,lR),c=t.className,u=ot(t,cR);return v.createElement(qs.Provider,{value:null},v.createElement(la,Pe({ref:n,className:ce(l,c)},s,u)))},Kv=v.forwardRef(uR);Kv.displayName="RawItem";var dR=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Xv="responsive",Yv="invalidate";function fR(e){return"+ ".concat(e.length," ...")}function pR(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,d=e.style,y=e.className,x=e.maxCount,E=e.renderRest,h=e.renderRawRest,_=e.suffix,p=e.component,m=p===void 0?"div":p,g=e.itemComponent,b=e.onVisibleChange,C=ot(e,dR),S=f==="full",w=aR(),O=ca(w,null),R=he(O,2),N=R[0],P=R[1],L=N||0,z=ca(w,new Map),J=he(z,2),X=J[0],j=J[1],H=ca(w,0),U=he(H,2),D=U[0],W=U[1],A=ca(w,0),k=he(A,2),G=k[0],Z=k[1],q=ca(w,0),V=he(q,2),Y=V[0],re=V[1],se=M.useState(null),F=he(se,2),B=F[0],ae=F[1],ee=M.useState(null),me=he(ee,2),pe=me[0],xe=me[1],Ae=v.useMemo(function(){return pe===null&&S?Number.MAX_SAFE_INTEGER:pe||0},[pe,N]),ue=M.useState(!1),Me=he(ue,2),Re=Me[0],$e=Me[1],ve="".concat(r,"-item"),we=Math.max(D,G),Ce=x===Xv,Ee=i.length&&Ce,We=x===Yv,Ue=Ee||typeof x=="number"&&i.length>x,Je=M.useMemo(function(){var ke=i;return Ee?N===null&&S?ke=i:ke=i.slice(0,Math.min(i.length,L/u)):typeof x=="number"&&(ke=i.slice(0,x)),ke},[i,u,N,x,Ee]),mt=M.useMemo(function(){return Ee?i.slice(Ae+1):i.slice(Je.length)},[i,Je,Ee,Ae]),bt=M.useCallback(function(ke,I){var $;return typeof s=="function"?s(ke):($=s&&(ke==null?void 0:ke[s]))!==null&&$!==void 0?$:I},[s]),dt=M.useCallback(a||function(ke){return ke},[a]);function qe(ke,I,$){pe===ke&&(I===void 0||I===B)||(xe(ke),$||($e(ke<i.length-1),b==null||b(ke)),I!==void 0&&ae(I))}function je(ke,I){P(I.clientWidth)}function ct(ke,I){j(function($){var T=new Map($);return I===null?T.delete(ke):T.set(ke,I),T})}function lt(ke,I){Z(I),W(G)}function Qe(ke,I){re(I)}function Rt(ke){return X.get(bt(Je[ke],ke))}Kt(function(){if(L&&typeof we=="number"&&Je){var ke=Y,I=Je.length,$=I-1;if(!I){qe(0,null);return}for(var T=0;T<I;T+=1){var K=Rt(T);if(S&&(K=K||0),K===void 0){qe(T-1,void 0,!0);break}if(ke+=K,$===0&&ke<=L||T===$-1&&ke+Rt($)<=L){qe($,null);break}else if(ke+we>L){qe(T-1,ke-K-Y+G);break}}_&&Rt(0)+Y>L&&ae(null)}},[L,X,G,Y,bt,Je]);var Ht=Re&&!!mt.length,Jt={};B!==null&&Ee&&(Jt={position:"absolute",left:B,top:0});var wt={prefixCls:ve,responsive:Ee,component:g,invalidate:We},jt=l?function(ke,I){var $=bt(ke,I);return v.createElement(qs.Provider,{key:$,value:ie(ie({},wt),{},{order:I,item:ke,itemKey:$,registerSize:ct,display:I<=Ae})},l(ke,I))}:function(ke,I){var $=bt(ke,I);return v.createElement(la,Pe({},wt,{order:I,key:$,item:ke,renderItem:dt,itemKey:$,registerSize:ct,display:I<=Ae}))},et,ut={order:Ht?Ae:Number.MAX_SAFE_INTEGER,className:"".concat(ve,"-rest"),registerSize:lt,display:Ht};if(h)h&&(et=v.createElement(qs.Provider,{value:ie(ie({},wt),ut)},h(mt)));else{var Mt=E||fR;et=v.createElement(la,Pe({},wt,ut),typeof Mt=="function"?Mt(mt):Mt)}var Xe=v.createElement(m,Pe({className:ce(!We&&r,y),style:d,ref:t},C),Je.map(jt),Ue?et:null,_&&v.createElement(la,Pe({},wt,{responsive:Ce,responsiveDisabled:!Ee,order:Ae,className:"".concat(ve,"-suffix"),registerSize:Qe,display:!0,style:Jt}),_));return Ce&&(Xe=v.createElement(ar,{onResize:je,disabled:!Ee},Xe)),Xe}var Cr=v.forwardRef(pR);Cr.displayName="Overflow",Cr.Item=Kv,Cr.RESPONSIVE=Xv,Cr.INVALIDATE=Yv;function hR(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,c=s===void 0?0:s,u=o.y,f=u===void 0?0:u,d=v.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var x=n.points[0],E=n.points[1],h=x[0],_=x[1],p=E[0],m=E[1];h===p||!["t","b"].includes(h)?y.top=f:h==="t"?y.top=0:y.bottom=0,_===m||!["l","r"].includes(_)?y.left=c:_==="l"?y.left=0:y.right=0}return v.createElement("div",{ref:d,className:ce("".concat(t,"-arrow"),a),style:y},l)}function mR(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?v.createElement(Jn,Pe({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return v.createElement("div",{style:{zIndex:r},className:ce("".concat(t,"-mask"),l)})}):null}var Jv=v.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});ne.env.NODE_ENV!=="production"&&(Jv.displayName="PopupContent");var Qv=v.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,y=e.arrow,x=e.arrowPos,E=e.align,h=e.motion,_=e.maskMotion,p=e.forceRender,m=e.getPopupContainer,g=e.autoDestroy,b=e.portal,C=e.zIndex,S=e.onMouseEnter,w=e.onMouseLeave,O=e.onPointerEnter,R=e.ready,N=e.offsetX,P=e.offsetY,L=e.offsetR,z=e.offsetB,J=e.onAlign,X=e.onPrepare,j=e.stretch,H=e.targetWidth,U=e.targetHeight,D=typeof n=="function"?n():n,W=s||c,A=(m==null?void 0:m.length)>0,k=v.useState(!m||!A),G=he(k,2),Z=G[0],q=G[1];if(Kt(function(){!Z&&A&&a&&q(!0)},[Z,A,a]),!Z)return null;var V="auto",Y={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(R||!s){var re,se=E.points,F=E.dynamicInset||((re=E._experimental)===null||re===void 0?void 0:re.dynamicInset),B=F&&se[0][1]==="r",ae=F&&se[0][0]==="b";B?(Y.right=L,Y.left=V):(Y.left=N,Y.right=V),ae?(Y.bottom=z,Y.top=V):(Y.top=P,Y.bottom=V)}var ee={};return j&&(j.includes("height")&&U?ee.height=U:j.includes("minHeight")&&U&&(ee.minHeight=U),j.includes("width")&&H?ee.width=H:j.includes("minWidth")&&H&&(ee.minWidth=H)),s||(ee.pointerEvents="none"),v.createElement(b,{open:p||W,getContainer:m&&function(){return m(a)},autoDestroy:g},v.createElement(mR,{prefixCls:o,open:s,zIndex:C,mask:d,motion:_}),v.createElement(ar,{onResize:J,disabled:!s},function(me){return v.createElement(Jn,Pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(o,"-hidden")},h,{onAppearPrepare:X,onEnterPrepare:X,visible:s,onVisibleChanged:function(xe){var Ae;h==null||(Ae=h.onVisibleChanged)===null||Ae===void 0||Ae.call(h,xe),l(xe)}}),function(pe,xe){var Ae=pe.className,ue=pe.style,Me=ce(o,Ae,r);return v.createElement("div",{ref:qn(me,t,xe),className:Me,style:ie(ie(ie(ie({"--arrow-x":"".concat(x.x||0,"px"),"--arrow-y":"".concat(x.y||0,"px")},Y),ee),ue),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:S,onMouseLeave:w,onPointerEnter:O,onClick:f},y&&v.createElement(hR,{prefixCls:o,arrow:y,arrowPos:x,align:E}),v.createElement(Jv,{cache:!s&&!u},D))})}))});ne.env.NODE_ENV!=="production"&&(Qv.displayName="Popup");var Zv=v.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ir(n),i=v.useCallback(function(l){ic(t,r?r(l):l)},[r]),a=Lo(i,n.ref);return o?v.cloneElement(n,{ref:a}):n});ne.env.NODE_ENV!=="production"&&(Zv.displayName="TriggerWrapper");var e_=v.createContext(null);function t_(e){return e?Array.isArray(e)?e:[e]:[]}function gR(e,t,n,r){return v.useMemo(function(){var o=t_(n??t),i=t_(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function vR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _R(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(vR((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function n_(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ua(e){return e.ownerDocument.defaultView}function id(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=ua(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement}return t}function da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function fa(e){return da(parseFloat(e),0)}function r_(e,t){var n=ie({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=ua(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=r.getBoundingClientRect(),d=r.offsetHeight,y=r.clientHeight,x=r.offsetWidth,E=r.clientWidth,h=fa(l),_=fa(s),p=fa(c),m=fa(u),g=da(Math.round(f.width/x*1e3)/1e3),b=da(Math.round(f.height/d*1e3)/1e3),C=(x-E-p-m)*g,S=(d-y-h-_)*b,w=h*b,O=_*b,R=p*g,N=m*g,P=0,L=0;if(i==="clip"){var z=fa(a);P=z*g,L=z*b}var J=f.x+R-P,X=f.y+w-L,j=J+f.width+2*P-R-N-C,H=X+f.height+2*L-w-O-S;n.left=Math.max(n.left,J),n.top=Math.max(n.top,X),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,H)}}),n}function o_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function i_(e,t){var n=t||[],r=he(n,2),o=r[0],i=r[1];return[o_(e.width,o),o_(e.height,i)]}function a_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ri(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function qr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function yR(e,t,n,r,o,i,a){var l=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=he(l,2),c=s[0],u=s[1],f=v.useRef(0),d=v.useMemo(function(){return t?id(t):[]},[t]),y=v.useRef({}),x=function(){y.current={}};e||x();var E=Zt(function(){if(t&&n&&e){let bn=function(Ha,jr){var No=arguments.length>2&&arguments[2]!==void 0?arguments[2]:we,Ul=G.x+Ha,Gl=G.y+jr,Sp=Ul+ae,Cp=Gl+B,Ie=Math.max(Ul,No.left),Ge=Math.max(Gl,No.top),At=Math.min(Sp,No.right),Wt=Math.min(Cp,No.bottom);return Math.max(0,(At-Ie)*(Wt-Ge))},Ri=function(){Le=G.y+$,Ne=Le+B,Be=G.x+I,He=Be+ae};var p,m,g,b,C=t,S=C.ownerDocument,w=ua(C),O=w.getComputedStyle(C),R=O.width,N=O.height,P=O.position,L=C.style.left,z=C.style.top,J=C.style.right,X=C.style.bottom,j=C.style.overflow,H=ie(ie({},o[r]),i),U=S.createElement("div");(p=C.parentElement)===null||p===void 0||p.appendChild(U),U.style.left="".concat(C.offsetLeft,"px"),U.style.top="".concat(C.offsetTop,"px"),U.style.position=P,U.style.height="".concat(C.offsetHeight,"px"),U.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var D;if(Array.isArray(n))D={x:n[0],y:n[1],width:0,height:0};else{var W,A,k=n.getBoundingClientRect();k.x=(W=k.x)!==null&&W!==void 0?W:k.left,k.y=(A=k.y)!==null&&A!==void 0?A:k.top,D={x:k.x,y:k.y,width:k.width,height:k.height}}var G=C.getBoundingClientRect();G.x=(m=G.x)!==null&&m!==void 0?m:G.left,G.y=(g=G.y)!==null&&g!==void 0?g:G.top;var Z=S.documentElement,q=Z.clientWidth,V=Z.clientHeight,Y=Z.scrollWidth,re=Z.scrollHeight,se=Z.scrollTop,F=Z.scrollLeft,B=G.height,ae=G.width,ee=D.height,me=D.width,pe={left:0,top:0,right:q,bottom:V},xe={left:-F,top:-se,right:Y-F,bottom:re-se},Ae=H.htmlRegion,ue="visible",Me="visibleFirst";Ae!=="scroll"&&Ae!==Me&&(Ae=ue);var Re=Ae===Me,$e=r_(xe,d),ve=r_(pe,d),we=Ae===ue?ve:$e,Ce=Re?ve:we;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var Ee=C.getBoundingClientRect();C.style.left=L,C.style.top=z,C.style.right=J,C.style.bottom=X,C.style.overflow=j,(b=C.parentElement)===null||b===void 0||b.removeChild(U);var We=da(Math.round(ae/parseFloat(R)*1e3)/1e3),Ue=da(Math.round(B/parseFloat(N)*1e3)/1e3);if(We===0||Ue===0||Ai(n)&&!Is(n))return;var Je=H.offset,mt=H.targetOffset,bt=i_(G,Je),dt=he(bt,2),qe=dt[0],je=dt[1],ct=i_(D,mt),lt=he(ct,2),Qe=lt[0],Rt=lt[1];D.x-=Qe,D.y-=Rt;var Ht=H.points||[],Jt=he(Ht,2),wt=Jt[0],jt=Jt[1],et=a_(jt),ut=a_(wt),Mt=ri(D,et),Xe=ri(G,ut),ke=ie({},H),I=Mt.x-Xe.x+qe,$=Mt.y-Xe.y+je,T=bn(I,$),K=bn(I,$,ve),te=ri(D,["t","l"]),le=ri(G,["t","l"]),ge=ri(D,["b","r"]),Fe=ri(G,["b","r"]),tt=H.overflow||{},rt=tt.adjustX,Q=tt.adjustY,de=tt.shiftX,_e=tt.shiftY,Oe=function(jr){return typeof jr=="boolean"?jr:jr>=0},Le,Ne,Be,He;Ri();var Ct=Oe(Q),gt=ut[0]===et[0];if(Ct&&ut[0]==="t"&&(Ne>Ce.bottom||y.current.bt)){var Ye=$;gt?Ye-=B-ee:Ye=te.y-Fe.y-je;var Dt=bn(I,Ye),yn=bn(I,Ye,ve);Dt>T||Dt===T&&(!Re||yn>=K)?(y.current.bt=!0,$=Ye,je=-je,ke.points=[qr(ut,0),qr(et,0)]):y.current.bt=!1}if(Ct&&ut[0]==="b"&&(Le<Ce.top||y.current.tb)){var Qt=$;gt?Qt+=B-ee:Qt=ge.y-le.y-je;var Nt=bn(I,Qt),$r=bn(I,Qt,ve);Nt>T||Nt===T&&(!Re||$r>=K)?(y.current.tb=!0,$=Qt,je=-je,ke.points=[qr(ut,0),qr(et,0)]):y.current.tb=!1}var Tr=Oe(rt),Dn=ut[1]===et[1];if(Tr&&ut[1]==="l"&&(He>Ce.right||y.current.rl)){var nr=I;Dn?nr-=ae-me:nr=te.x-Fe.x-qe;var $i=bn(nr,$),Yr=bn(nr,$,ve);$i>T||$i===T&&(!Re||Yr>=K)?(y.current.rl=!0,I=nr,qe=-qe,ke.points=[qr(ut,1),qr(et,1)]):y.current.rl=!1}if(Tr&&ut[1]==="r"&&(Be<Ce.left||y.current.lr)){var rr=I;Dn?rr+=ae-me:rr=ge.x-le.x-qe;var Mo=bn(rr,$),Pr=bn(rr,$,ve);Mo>T||Mo===T&&(!Re||Pr>=K)?(y.current.lr=!0,I=rr,qe=-qe,ke.points=[qr(ut,1),qr(et,1)]):y.current.lr=!1}Ri();var Bn=de===!0?0:de;typeof Bn=="number"&&(Be<ve.left&&(I-=Be-ve.left-qe,D.x+me<ve.left+Bn&&(I+=D.x-ve.left+me-Bn)),He>ve.right&&(I-=He-ve.right-qe,D.x>ve.right-Bn&&(I+=D.x-ve.right+Bn)));var Tn=_e===!0?0:_e;typeof Tn=="number"&&(Le<ve.top&&($-=Le-ve.top-je,D.y+ee<ve.top+Tn&&($+=D.y-ve.top+ee-Tn)),Ne>ve.bottom&&($-=Ne-ve.bottom-je,D.y>ve.bottom-Tn&&($+=D.y-ve.bottom+Tn)));var Jr=G.x+I,Rr=Jr+ae,zn=G.y+$,za=zn+B,Ti=D.x,qa=Ti+me,Io=D.y,Tt=Io+ee,ft=Math.max(Jr,Ti),Et=Math.min(Rr,qa),tn=(ft+Et)/2,sn=tn-Jr,Qr=Math.max(zn,Io),Zr=Math.min(za,Tt),Va=(Qr+Zr)/2,Pi=Va-zn;a==null||a(t,ke);var eo=Ee.right-G.x-(I+G.width),pn=Ee.bottom-G.y-($+G.height);We===1&&(I=Math.round(I),eo=Math.round(eo)),Ue===1&&($=Math.round($),pn=Math.round(pn));var Ao={ready:!0,offsetX:I/We,offsetY:$/Ue,offsetR:eo/We,offsetB:pn/Ue,arrowX:sn/We,arrowY:Pi/Ue,scaleX:We,scaleY:Ue,align:ke};u(Ao)}}),h=function(){f.current+=1;var m=f.current;Promise.resolve().then(function(){f.current===m&&E()})},_=function(){u(function(m){return ie(ie({},m),{},{ready:!1})})};return Kt(_,[r]),Kt(function(){e||_()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,h]}function bR(e,t,n,r,o){Kt(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,l=id(i),s=id(a),c=ua(a),u=new Set([c].concat(Se(l),Se(s)));return u.forEach(function(d){d.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(d){d.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function wR(e,t,n,r,o,i,a,l){var s=v.useRef(e);s.current=e,v.useEffect(function(){if(t&&r&&(!o||i)){var c=function(_){var p;s.current&&!a(((p=_.composedPath)===null||p===void 0||(p=p.call(_))===null||p===void 0?void 0:p[0])||_.target)&&l(!1)},u=ua(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var f=Cs(n);if(f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),ne.env.NODE_ENV!=="production"){var d,y,x=n==null||(d=n.getRootNode)===null||d===void 0?void 0:d.call(n),E=(y=r.getRootNode)===null||y===void 0?void 0:y.call(r);Mr(x===E,"trigger element and popup element should in same shadow root.")}return function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,n,r,o,i])}var xR=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function SR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ks,t=v.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,u=n.hideAction,f=n.popupVisible,d=n.defaultPopupVisible,y=n.onPopupVisibleChange,x=n.afterPopupVisibleChange,E=n.mouseEnterDelay,h=n.mouseLeaveDelay,_=h===void 0?.1:h,p=n.focusDelay,m=n.blurDelay,g=n.mask,b=n.maskClosable,C=b===void 0?!0:b,S=n.getPopupContainer,w=n.forceRender,O=n.autoDestroy,R=n.destroyPopupOnHide,N=n.popup,P=n.popupClassName,L=n.popupStyle,z=n.popupPlacement,J=n.builtinPlacements,X=J===void 0?{}:J,j=n.popupAlign,H=n.zIndex,U=n.stretch,D=n.getPopupClassNameFromAlign,W=n.fresh,A=n.alignPoint,k=n.onPopupClick,G=n.onPopupAlign,Z=n.arrow,q=n.popupMotion,V=n.maskMotion,Y=n.popupTransitionName,re=n.popupAnimation,se=n.maskTransitionName,F=n.maskAnimation,B=n.className,ae=n.getTriggerDOMNode,ee=ot(n,xR),me=O||R||!1,pe=v.useState(!1),xe=he(pe,2),Ae=xe[0],ue=xe[1];Kt(function(){ue(Gv())},[]);var Me=v.useRef({}),Re=v.useContext(e_),$e=v.useMemo(function(){return{registerSubPopup:function(Ge,At){Me.current[Ge]=At,Re==null||Re.registerSubPopup(Ge,At)}}},[Re]),ve=Fg(),we=v.useState(null),Ce=he(we,2),Ee=Ce[0],We=Ce[1],Ue=v.useRef(null),Je=Zt(function(Ie){Ue.current=Ie,Ai(Ie)&&Ee!==Ie&&We(Ie),Re==null||Re.registerSubPopup(ve,Ie)}),mt=v.useState(null),bt=he(mt,2),dt=bt[0],qe=bt[1],je=v.useRef(null),ct=Zt(function(Ie){Ai(Ie)&&dt!==Ie&&(qe(Ie),je.current=Ie)}),lt=v.Children.only(a),Qe=(lt==null?void 0:lt.props)||{},Rt={},Ht=Zt(function(Ie){var Ge,At,Wt=dt;return(Wt==null?void 0:Wt.contains(Ie))||((Ge=Cs(Wt))===null||Ge===void 0?void 0:Ge.host)===Ie||Ie===Wt||(Ee==null?void 0:Ee.contains(Ie))||((At=Cs(Ee))===null||At===void 0?void 0:At.host)===Ie||Ie===Ee||Object.values(Me.current).some(function(Bt){return(Bt==null?void 0:Bt.contains(Ie))||Ie===Bt})}),Jt=n_(i,q,re,Y),wt=n_(i,V,F,se),jt=v.useState(d||!1),et=he(jt,2),ut=et[0],Mt=et[1],Xe=f??ut,ke=Zt(function(Ie){f===void 0&&Mt(Ie)});Kt(function(){Mt(f||!1)},[f]);var I=v.useRef(Xe);I.current=Xe;var $=v.useRef([]);$.current=[];var T=Zt(function(Ie){var Ge;ke(Ie),((Ge=$.current[$.current.length-1])!==null&&Ge!==void 0?Ge:Xe)!==Ie&&($.current.push(Ie),y==null||y(Ie))}),K=v.useRef(),te=function(){clearTimeout(K.current)},le=function(Ge){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;te(),At===0?T(Ge):K.current=setTimeout(function(){T(Ge)},At*1e3)};v.useEffect(function(){return te},[]);var ge=v.useState(!1),Fe=he(ge,2),tt=Fe[0],rt=Fe[1];Kt(function(Ie){(!Ie||Xe)&&rt(!0)},[Xe]);var Q=v.useState(null),de=he(Q,2),_e=de[0],Oe=de[1],Le=v.useState(null),Ne=he(Le,2),Be=Ne[0],He=Ne[1],Ct=function(Ge){He([Ge.clientX,Ge.clientY])},gt=yR(Xe,Ee,A&&Be!==null?Be:dt,z,X,j,G),Ye=he(gt,11),Dt=Ye[0],yn=Ye[1],Qt=Ye[2],Nt=Ye[3],$r=Ye[4],Tr=Ye[5],Dn=Ye[6],nr=Ye[7],$i=Ye[8],Yr=Ye[9],rr=Ye[10],Mo=gR(Ae,s,c,u),Pr=he(Mo,2),Bn=Pr[0],Tn=Pr[1],Jr=Bn.has("click"),Rr=Tn.has("click")||Tn.has("contextMenu"),zn=Zt(function(){tt||rr()}),za=function(){I.current&&A&&Rr&&le(!1)};bR(Xe,dt,Ee,zn,za),Kt(function(){zn()},[Be,z]),Kt(function(){Xe&&!(X!=null&&X[z])&&zn()},[JSON.stringify(j)]);var Ti=v.useMemo(function(){var Ie=_R(X,i,Yr,A);return ce(Ie,D==null?void 0:D(Yr))},[Yr,D,X,i,A]);v.useImperativeHandle(r,function(){return{nativeElement:je.current,popupElement:Ue.current,forceAlign:zn}});var qa=v.useState(0),Io=he(qa,2),Tt=Io[0],ft=Io[1],Et=v.useState(0),tn=he(Et,2),sn=tn[0],Qr=tn[1],Zr=function(){if(U&&dt){var Ge=dt.getBoundingClientRect();ft(Ge.width),Qr(Ge.height)}},Va=function(){Zr(),zn()},Pi=function(Ge){rt(!1),rr(),x==null||x(Ge)},eo=function(){return new Promise(function(Ge){Zr(),Oe(function(){return Ge})})};Kt(function(){_e&&(rr(),_e(),Oe(null))},[_e]);function pn(Ie,Ge,At,Wt){Rt[Ie]=function(Bt){var Kl;Wt==null||Wt(Bt),le(Ge,At);for(var Ep=arguments.length,oS=new Array(Ep>1?Ep-1:0),Xl=1;Xl<Ep;Xl++)oS[Xl-1]=arguments[Xl];(Kl=Qe[Ie])===null||Kl===void 0||Kl.call.apply(Kl,[Qe,Bt].concat(oS))}}(Jr||Rr)&&(Rt.onClick=function(Ie){var Ge;I.current&&Rr?le(!1):!I.current&&Jr&&(Ct(Ie),le(!0));for(var At=arguments.length,Wt=new Array(At>1?At-1:0),Bt=1;Bt<At;Bt++)Wt[Bt-1]=arguments[Bt];(Ge=Qe.onClick)===null||Ge===void 0||Ge.call.apply(Ge,[Qe,Ie].concat(Wt))}),wR(Xe,Rr,dt,Ee,g,C,Ht,le);var Ao=Bn.has("hover"),bn=Tn.has("hover"),Ri,Ha;Ao&&(pn("onMouseEnter",!0,E,function(Ie){Ct(Ie)}),pn("onPointerEnter",!0,E,function(Ie){Ct(Ie)}),Ri=function(Ge){(Xe||tt)&&Ee!==null&&Ee!==void 0&&Ee.contains(Ge.target)&&le(!0,E)},A&&(Rt.onMouseMove=function(Ie){var Ge;(Ge=Qe.onMouseMove)===null||Ge===void 0||Ge.call(Qe,Ie)})),bn&&(pn("onMouseLeave",!1,_),pn("onPointerLeave",!1,_),Ha=function(){le(!1,_)}),Bn.has("focus")&&pn("onFocus",!0,p),Tn.has("focus")&&pn("onBlur",!1,m),Bn.has("contextMenu")&&(Rt.onContextMenu=function(Ie){var Ge;I.current&&Tn.has("contextMenu")?le(!1):(Ct(Ie),le(!0)),Ie.preventDefault();for(var At=arguments.length,Wt=new Array(At>1?At-1:0),Bt=1;Bt<At;Bt++)Wt[Bt-1]=arguments[Bt];(Ge=Qe.onContextMenu)===null||Ge===void 0||Ge.call.apply(Ge,[Qe,Ie].concat(Wt))}),B&&(Rt.className=ce(Qe.className,B));var jr=ie(ie({},Qe),Rt),No={},Ul=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ul.forEach(function(Ie){ee[Ie]&&(No[Ie]=function(){for(var Ge,At=arguments.length,Wt=new Array(At),Bt=0;Bt<At;Bt++)Wt[Bt]=arguments[Bt];(Ge=jr[Ie])===null||Ge===void 0||Ge.call.apply(Ge,[jr].concat(Wt)),ee[Ie].apply(ee,Wt)})});var Gl=v.cloneElement(lt,ie(ie({},jr),No)),Sp={x:Tr,y:Dn},Cp=Z?ie({},Z!==!0?Z:{}):null;return v.createElement(v.Fragment,null,v.createElement(ar,{disabled:!Xe,ref:ct,onResize:Va},v.createElement(Zv,{getTriggerDOMNode:ae},Gl)),v.createElement(e_.Provider,{value:$e},v.createElement(Qv,{portal:e,ref:Je,prefixCls:i,popup:N,className:ce(P,Ti),style:L,target:dt,onMouseEnter:Ri,onMouseLeave:Ha,onPointerEnter:Ri,zIndex:H,open:Xe,keepDom:tt,fresh:W,onClick:k,mask:g,motion:Jt,maskMotion:wt,onVisibleChanged:Pi,onPrepare:eo,forceRender:w,autoDestroy:me,getPopupContainer:S,align:Yr,arrow:Cp,arrowPos:Sp,ready:Dt,offsetX:yn,offsetY:Qt,offsetR:Nt,offsetB:$r,onAlign:zn,stretch:U,targetWidth:Tt/nr,targetHeight:sn/$i})))});return ne.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const ad=SR(ks);function sd(e,t,n){return ce({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const ld=(e,t)=>t||e,s_=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=M.useContext(Ke),l=M.useContext(uv),s=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=l??s)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=SE.includes(c);return[c,u]};var CR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},ER=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:CR}))},l_=v.forwardRef(ER);ne.env.NODE_ENV!=="production"&&(l_.displayName="SearchOutlined");const pa=["xxl","xl","lg","md","sm","xs"],OR=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),$R=e=>{const t=e,n=[].concat(pa).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const s=`screen${i}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[s]<=t[u]))throw new Error(`${s}<=${u} fails : !(${t[s]}<=${t[u]})`)}}),e};function TR(){const[,e]=Xn(),t=OR($R(e));return M.useMemo(()=>{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}const Vs=e=>e?typeof e=="function"?e():e:null;function cd(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return v.createElement("div",{className:ce("".concat(n,"-content"),i),style:a},v.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var oi={shiftX:64,adjustY:1},ii={adjustX:1,shiftY:!0},jn=[0,0],PR={left:{points:["cr","cl"],overflow:ii,offset:[-4,0],targetOffset:jn},right:{points:["cl","cr"],overflow:ii,offset:[4,0],targetOffset:jn},top:{points:["bc","tc"],overflow:oi,offset:[0,-4],targetOffset:jn},bottom:{points:["tc","bc"],overflow:oi,offset:[0,4],targetOffset:jn},topLeft:{points:["bl","tl"],overflow:oi,offset:[0,-4],targetOffset:jn},leftTop:{points:["tr","tl"],overflow:ii,offset:[-4,0],targetOffset:jn},topRight:{points:["br","tr"],overflow:oi,offset:[0,-4],targetOffset:jn},rightTop:{points:["tl","tr"],overflow:ii,offset:[4,0],targetOffset:jn},bottomRight:{points:["tr","br"],overflow:oi,offset:[0,4],targetOffset:jn},rightBottom:{points:["bl","br"],overflow:ii,offset:[4,0],targetOffset:jn},bottomLeft:{points:["tl","bl"],overflow:oi,offset:[0,4],targetOffset:jn},leftBottom:{points:["br","bl"],overflow:ii,offset:[-4,0],targetOffset:jn}},RR=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],jR=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,c=s===void 0?.1:s,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,y=t.children,x=t.onVisibleChange,E=t.afterVisibleChange,h=t.transitionName,_=t.animation,p=t.motion,m=t.placement,g=m===void 0?"right":m,b=t.align,C=b===void 0?{}:b,S=t.destroyTooltipOnHide,w=S===void 0?!1:S,O=t.defaultVisible,R=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,L=t.id,z=t.showArrow,J=z===void 0?!0:z,X=ot(t,RR),j=M.useRef(null);M.useImperativeHandle(n,function(){return j.current});var H=ie({},X);"visible"in t&&(H.popupVisible=t.visible);var U=function(){return v.createElement(cd,{key:"content",prefixCls:d,id:L,overlayInnerStyle:N},P)};return v.createElement(ad,Pe({popupClassName:r,prefixCls:d,popup:U,action:i,builtinPlacements:PR,popupPlacement:g,ref:j,popupAlign:C,getPopupContainer:R,onPopupVisibleChange:x,afterPopupVisibleChange:E,popupTransitionName:h,popupAnimation:_,popupMotion:p,defaultPopupVisible:O,autoDestroy:w,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:l,arrow:J},H),y)};const MR=M.forwardRef(jR);function c_(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=r*1/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,d=u,y=2*o-l,x=s,E=2*o-i,h=a,_=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),p=r*(Math.sqrt(2)-1),m=`polygon(${p}px 100%, 50% ${p}px, ${2*o-p}px 100%, ${p}px 100%)`,g=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${d} L ${y} ${x} A ${r} ${r} 0 0 0 ${E} ${h} Z')`;return{arrowShadowWidth:_,arrowPath:g,arrowPolygon:m}}const IR=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${be(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},u_=8;function ud(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?u_:r}}function Hs(e,t){return e?t:{}}function d_(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},IR(e,t,o)),{"&:before":{background:t}})]},Hs(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${be(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Hs(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${be(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Hs(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Hs(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function AR(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const f_={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},NR={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},kR=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function LR(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(f_).forEach(c=>{const u=r&&NR[c]||f_[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,kR.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const d=ud({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-l;break}f.overflow=AR(c,d,t,n),a&&(f.htmlRegion="visibleFirst")}),s}const FR=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},_n(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${be(e.calc(c).div(2).equal())} ${be(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,u_)}},[`${t}-content`]:{position:"relative"}}),vs(e,(f,d)=>{let{darkColor:y}=d;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},d_(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},DR=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},ud({contentRadius:e.borderRadius,limitVerticalRadius:!0})),c_(Lt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),p_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ln("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=Lt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[FR(l),td(r,"zoom-big-fast")]},DR,{resetStyle:!1,injectStyle:t})(e)},BR=Gi.map(e=>`${e}-inverse`),zR=["success","processing","error","default","warning"];function Ws(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Se(BR),Se(Gi)).includes(e):Gi.includes(e)}function qR(e){return zR.includes(e)}function h_(e,t){const n=Ws(t),r=ce({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const VR=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=v.useContext(Ke),s=l("tooltip",t),[c,u,f]=p_(s),d=h_(s,i),y=d.arrowStyle,x=Object.assign(Object.assign({},a),d.overlayStyle),E=ce(u,f,s,`${s}-pure`,`${s}-placement-${r}`,n,d.className);return c(v.createElement("div",{className:E,style:y},v.createElement("div",{className:`${s}-arrow`}),v.createElement(cd,Object.assign({},e,{className:u,prefixCls:s,overlayInnerStyle:x}),o)))};var HR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vr=v.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:y,arrow:x=!0,title:E,overlay:h,builtinPlacements:_,arrowPointAtCenter:p=!1,autoAdjustOverflow:m=!0}=e,g=!!x,[,b]=Xn(),{getPopupContainer:C,getPrefixCls:S,direction:w}=v.useContext(Ke),O=Pt("Tooltip"),R=v.useRef(null),N=()=>{var ve;(ve=R.current)===null||ve===void 0||ve.forceAlign()};v.useImperativeHandle(t,()=>{var ve;return{forceAlign:N,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:(ve=R.current)===null||ve===void 0?void 0:ve.nativeElement}}),ne.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ve=>{let[we,Ce]=ve;O.deprecated(!(we in e),we,Ce)}),ne.env.NODE_ENV!=="production"&&O(!y||typeof y=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),ne.env.NODE_ENV!=="production"&&O(!x||typeof x=="boolean"||!("arrowPointAtCenter"in x),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[P,L]=Kn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),z=!E&&!h&&E!==0,J=ve=>{var we,Ce;L(z?!1:ve),z||((we=e.onOpenChange)===null||we===void 0||we.call(e,ve),(Ce=e.onVisibleChange)===null||Ce===void 0||Ce.call(e,ve))},X=v.useMemo(()=>{var ve,we;let Ce=p;return typeof x=="object"&&(Ce=(we=(ve=x.pointAtCenter)!==null&&ve!==void 0?ve:x.arrowPointAtCenter)!==null&&we!==void 0?we:p),_||LR({arrowPointAtCenter:Ce,autoAdjustOverflow:m,arrowWidth:g?b.sizePopupArrow:0,borderRadius:b.borderRadius,offset:b.marginXXS,visibleFirst:!0})},[p,x,_,b]),j=v.useMemo(()=>E===0?E:h||E||"",[h,E]),H=v.createElement(Fs,{space:!0},typeof j=="function"?j():j),{getPopupContainer:U,placement:D="top",mouseEnterDelay:W=.1,mouseLeaveDelay:A=.1,overlayStyle:k,rootClassName:G}=e,Z=HR(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=S("tooltip",o),V=S(),Y=e["data-popover-inject"];let re=P;!("open"in e)&&!("visible"in e)&&z&&(re=!1);const se=v.isValidElement(u)&&!qm(u)?u:v.createElement("span",null,u),F=se.props,B=!F.className||typeof F.className=="string"?ce(F.className,i||`${q}-open`):F.className,[ae,ee,me]=p_(q,!Y),pe=h_(q,s),xe=pe.arrowStyle,Ae=Object.assign(Object.assign({},c),pe.overlayStyle),ue=ce(l,{[`${q}-rtl`]:w==="rtl"},pe.className,G,ee,me),[Me,Re]=rg("Tooltip",Z.zIndex),$e=v.createElement(MR,Object.assign({},Z,{zIndex:Me,showArrow:g,placement:D,mouseEnterDelay:W,mouseLeaveDelay:A,prefixCls:q,overlayClassName:ue,overlayStyle:Object.assign(Object.assign({},xe),k),getTooltipContainer:U||a||C,ref:R,builtinPlacements:X,overlay:H,visible:re,onVisibleChange:J,afterVisibleChange:f??d,overlayInnerStyle:Ae,arrowContent:v.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:ho(V,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),re?wr(se,{className:B}):se);return ae(v.createElement(Ts.Provider,{value:Re},$e))});ne.env.NODE_ENV!=="production"&&(Vr.displayName="Tooltip"),Vr._InternalPanelDoNotUseOrYouWillBeFired=VR;const WR=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:d,titleBorderBottom:y,innerContentPadding:x,titlePadding:E}=e;return[{[t]:Object.assign(Object.assign({},_n(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:y,padding:E},[`${t}-inner-content`]:{color:n,padding:x}})},d_(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},UR=e=>{const{componentCls:t}=e;return{[t]:Gi.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},m_=ln("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Lt(e,{popoverBg:t,popoverColor:n});return[WR(r),UR(r),td(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:f}=e,d=n-r,y=d/2,x=d/2-t,E=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},c_(e)),ud({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${y}px ${E}px ${x}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${f}px ${E}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var GR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const g_=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:v.createElement(v.Fragment,null,t&&v.createElement("div",{className:`${r}-title`},t),n&&v.createElement("div",{className:`${r}-inner-content`},n))},KR=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e,c=Vs(a),u=Vs(l),f=ce(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return v.createElement("div",{className:f,style:o},v.createElement("div",{className:`${n}-arrow`}),v.createElement(cd,Object.assign({},e,{className:t,prefixCls:n}),s||v.createElement(g_,{prefixCls:n,title:c,content:u})))},XR=e=>{const{prefixCls:t,className:n}=e,r=GR(e,["prefixCls","className"]),{getPrefixCls:o}=v.useContext(Ke),i=o("popover",t),[a,l,s]=m_(i);return a(v.createElement(KR,Object.assign({},r,{prefixCls:i,hashId:l,className:ce(n,s)})))};var YR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dd=v.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:l,placement:s="top",trigger:c="hover",children:u,mouseEnterDelay:f=.1,mouseLeaveDelay:d=.1,onOpenChange:y,overlayStyle:x={}}=e,E=YR(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:h}=v.useContext(Ke),_=h("popover",o),[p,m,g]=m_(_),b=h(),C=ce(l,m,g),[S,w]=Kn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=(z,J)=>{w(z,!0),y==null||y(z,J)},R=z=>{z.keyCode===Te.ESC&&O(!1,z)},N=z=>{O(z)},P=Vs(i),L=Vs(a);return p(v.createElement(Vr,Object.assign({placement:s,trigger:c,mouseEnterDelay:f,mouseLeaveDelay:d,overlayStyle:x},E,{prefixCls:_,overlayClassName:C,ref:t,open:S,onOpenChange:N,overlay:P||L?v.createElement(g_,{prefixCls:_,title:P,content:L}):null,transitionName:ho(b,"zoom-big",E.transitionName),"data-popover-inject":!0}),wr(u,{onKeyDown:z=>{var J,X;v.isValidElement(u)&&((X=u==null?void 0:(J=u.props).onKeyDown)===null||X===void 0||X.call(J,z)),R(z)}})))});dd._InternalPanelDoNotUseOrYouWillBeFired=XR,ne.env.NODE_ENV!=="production"&&(dd.displayName="Popover");const JR=new it("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),QR=new it("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),ZR=new it("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),ej=new it("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),tj=new it("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),nj=new it("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),rj=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:s,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:d,calc:y}=e,x=`${r}-scroll-number`,E=vs(e,(h,_)=>{let{darkColor:p}=_;return{[`&${t} ${t}-color-${h}`]:{background:p,[`&:not(${t}-count)`]:{color:p},"a:hover &":{background:p}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},_n(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:be(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(u).div(2).equal(),boxShadow:`0 0 0 ${be(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:a,lineHeight:be(f),borderRadius:y(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${be(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${be(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${x}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:nj,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:JR,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:d,color:e.colorText,fontSize:e.fontSize}}}),E),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:QR,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:ZR,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:ej,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:tj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${x}-custom-component, ${t}-count`]:{transform:"none"},[`${x}-custom-component, ${x}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[x]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${x}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${x}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${x}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${x}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},v_=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,l=e.colorBgContainer,s=e.colorError,c=e.colorErrorHover;return Lt(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:l,badgeColor:s,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},__=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},oj=ln("Badge",e=>{const t=v_(e);return rj(t)},__),ij=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=vs(e,(c,u)=>{let{darkColor:f}=u;return{[`&${a}-color-${c}`]:{background:f,color:f}}});return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},_n(e)),{position:"absolute",top:r,padding:`0 ${be(e.paddingXS)}`,color:e.colorPrimary,lineHeight:be(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${be(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},aj=ln(["Badge","Ribbon"],e=>{const t=v_(e);return ij(t)},__),y_=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:l="end",rootClassName:s}=e,{getPrefixCls:c,direction:u}=v.useContext(Ke),f=c("ribbon",n),d=`${f}-wrapper`,[y,x,E]=aj(f,d),h=Ws(o,!1),_=ce(f,`${f}-placement-${l}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${o}`]:h},t),p={},m={};return o&&!h&&(p.background=o,m.color=o),y(v.createElement("div",{className:ce(d,s,x,E)},i,v.createElement("div",{className:ce(_,x),style:Object.assign(Object.assign({},p),r)},v.createElement("span",{className:`${f}-text`},a),v.createElement("div",{className:`${f}-corner`,style:m}))))};ne.env.NODE_ENV!=="production"&&(y_.displayName="Ribbon");const b_=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),v.createElement("span",{style:i,className:ce(`${t}-only-unit`,{current:r})},n)};function sj(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const lj=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,l]=v.useState(o),[s,c]=v.useState(i),u=()=>{l(o),c(i)};v.useEffect(()=>{const y=setTimeout(u,1e3);return()=>clearTimeout(y)},[o]);let f,d;if(a===o||Number.isNaN(o)||Number.isNaN(a))f=[v.createElement(b_,Object.assign({},e,{key:o,current:!0}))],d={transition:"none"};else{f=[];const y=o+10,x=[];for(let _=o;_<=y;_+=1)x.push(_);const E=x.findIndex(_=>_%10===a);f=x.map((_,p)=>{const m=_%10;return v.createElement(b_,Object.assign({},e,{key:_,value:m,offset:p-E,current:p===E}))});const h=s<i?1:-1;d={transform:`translateY(${-sj(a,o,h)}00%)`}}return v.createElement("span",{className:`${t}-only`,style:d,onTransitionEnd:u},f)};var cj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uj=v.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:l,show:s,component:c="sup",children:u}=e,f=cj(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:d}=v.useContext(Ke),y=d("scroll-number",n),x=Object.assign(Object.assign({},f),{"data-show":s,style:a,className:ce(y,o,i),title:l});let E=r;if(r&&Number(r)%1===0){const h=String(r).split("");E=v.createElement("bdi",null,h.map((_,p)=>v.createElement(lj,{prefixCls:y,count:Number(r),value:_,key:h.length-p})))}return a!=null&&a.borderColor&&(x.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?wr(u,h=>({className:ce(`${y}-custom-component`,h==null?void 0:h.className,i)})):v.createElement(c,Object.assign({},x,{ref:t}),E)});var dj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bo=v.forwardRef((e,t)=>{var n,r,o,i,a;const{prefixCls:l,scrollNumberPrefixCls:s,children:c,status:u,text:f,color:d,count:y=null,overflowCount:x=99,dot:E=!1,size:h="default",title:_,offset:p,style:m,className:g,rootClassName:b,classNames:C,styles:S,showZero:w=!1}=e,O=dj(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:R,direction:N,badge:P}=v.useContext(Ke),L=R("badge",l),[z,J,X]=oj(L),j=y>x?`${x}+`:y,H=j==="0"||j===0,U=y===null||H&&!w,D=(u!=null||d!=null)&&U,W=E&&!H,A=W?"":j,k=M.useMemo(()=>(A==null||A===""||H&&!w)&&!W,[A,H,w,W]),G=M.useRef(y);k||(G.current=y);const Z=G.current,q=M.useRef(A);k||(q.current=A);const V=q.current,Y=M.useRef(W);k||(Y.current=W);const re=M.useMemo(()=>{if(!p)return Object.assign(Object.assign({},P==null?void 0:P.style),m);const xe={marginTop:p[1]};return N==="rtl"?xe.left=parseInt(p[0],10):xe.right=-parseInt(p[0],10),Object.assign(Object.assign(Object.assign({},xe),P==null?void 0:P.style),m)},[N,p,m,P==null?void 0:P.style]),se=_??(typeof Z=="string"||typeof Z=="number"?Z:void 0),F=k||!f?null:v.createElement("span",{className:`${L}-status-text`},f),B=!Z||typeof Z!="object"?void 0:wr(Z,xe=>({style:Object.assign(Object.assign({},re),xe.style)})),ae=Ws(d,!1),ee=ce(C==null?void 0:C.indicator,(n=P==null?void 0:P.classNames)===null||n===void 0?void 0:n.indicator,{[`${L}-status-dot`]:D,[`${L}-status-${u}`]:!!u,[`${L}-color-${d}`]:ae}),me={};d&&!ae&&(me.color=d,me.background=d);const pe=ce(L,{[`${L}-status`]:D,[`${L}-not-a-wrapper`]:!c,[`${L}-rtl`]:N==="rtl"},g,b,P==null?void 0:P.className,(r=P==null?void 0:P.classNames)===null||r===void 0?void 0:r.root,C==null?void 0:C.root,J,X);if(!c&&D){const xe=re.color;return z(v.createElement("span",Object.assign({},O,{className:pe,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=P==null?void 0:P.styles)===null||o===void 0?void 0:o.root),re)}),v.createElement("span",{className:ee,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(i=P==null?void 0:P.styles)===null||i===void 0?void 0:i.indicator),me)}),f&&v.createElement("span",{style:{color:xe},className:`${L}-status-text`},f)))}return z(v.createElement("span",Object.assign({ref:t},O,{className:pe,style:Object.assign(Object.assign({},(a=P==null?void 0:P.styles)===null||a===void 0?void 0:a.root),S==null?void 0:S.root)}),c,v.createElement(Jn,{visible:!k,motionName:`${L}-zoom`,motionAppear:!1,motionDeadline:1e3},xe=>{let{className:Ae}=xe;var ue,Me;const Re=R("scroll-number",s),$e=Y.current,ve=ce(C==null?void 0:C.indicator,(ue=P==null?void 0:P.classNames)===null||ue===void 0?void 0:ue.indicator,{[`${L}-dot`]:$e,[`${L}-count`]:!$e,[`${L}-count-sm`]:h==="small",[`${L}-multiple-words`]:!$e&&V&&V.toString().length>1,[`${L}-status-${u}`]:!!u,[`${L}-color-${d}`]:ae});let we=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(Me=P==null?void 0:P.styles)===null||Me===void 0?void 0:Me.indicator),re);return d&&!ae&&(we=we||{},we.background=d),v.createElement(uj,{prefixCls:Re,show:!k,motionClassName:Ae,className:ve,count:V,title:se,style:we,key:"scrollNumber"},B)}),F))});bo.Ribbon=y_,ne.env.NODE_ENV!=="production"&&(bo.displayName="Badge");var fj=Te.ESC,pj=Te.TAB;function hj(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=v.useRef(!1),l=function(){if(t){var f,d;(f=n.current)===null||f===void 0||(d=f.focus)===null||d===void 0||d.call(f),r==null||r(!1)}},s=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case fj:l();break;case pj:{var d=!1;a.current||(d=s()),d?f.preventDefault():l();break}}};v.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&kt(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var mj=M.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=M.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=qn(t,i==null?void 0:i.ref);return M.createElement(M.Fragment,null,r&&M.createElement("div",{className:"".concat(o,"-arrow")}),M.cloneElement(i,{ref:Ir(i)?a:void 0}))}),ai={adjustX:1,adjustY:1},si=[0,0],gj={topLeft:{points:["bl","tl"],overflow:ai,offset:[0,-4],targetOffset:si},top:{points:["bc","tc"],overflow:ai,offset:[0,-4],targetOffset:si},topRight:{points:["br","tr"],overflow:ai,offset:[0,-4],targetOffset:si},bottomLeft:{points:["tl","bl"],overflow:ai,offset:[0,4],targetOffset:si},bottom:{points:["tc","bc"],overflow:ai,offset:[0,4],targetOffset:si},bottomRight:{points:["tr","br"],overflow:ai,offset:[0,4],targetOffset:si}},vj=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function _j(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,s=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,d=e.placements,y=d===void 0?gj:d,x=e.getPopupContainer,E=e.showAction,h=e.hideAction,_=e.overlayClassName,p=e.overlayStyle,m=e.visible,g=e.trigger,b=g===void 0?["hover"]:g,C=e.autoFocus,S=e.overlay,w=e.children,O=e.onVisibleChange,R=ot(e,vj),N=M.useState(),P=he(N,2),L=P[0],z=P[1],J="visible"in e?m:L,X=M.useRef(null),j=M.useRef(null),H=M.useRef(null);M.useImperativeHandle(t,function(){return X.current});var U=function(Y){z(Y),O==null||O(Y)};hj({visible:J,triggerRef:H,onVisibleChange:U,autoFocus:C,overlayRef:j});var D=function(Y){var re=e.onOverlayClick;z(!1),re&&re(Y)},W=function(){return M.createElement(mj,{ref:j,overlay:S,prefixCls:a,arrow:o})},A=function(){return typeof S=="function"?W:W()},k=function(){var Y=e.minOverlayWidthMatchTrigger,re=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!re},G=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},Z=M.cloneElement(w,{className:ce((n=w.props)===null||n===void 0?void 0:n.className,J&&G()),ref:Ir(w)?qn(H,w.ref):void 0}),q=h;return!q&&b.indexOf("contextMenu")!==-1&&(q=["click"]),M.createElement(ad,Pe({builtinPlacements:y},R,{prefixCls:a,ref:X,popupClassName:ce(_,oe({},"".concat(a,"-show-arrow"),o)),popupStyle:p,action:b,showAction:E,hideAction:q,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:J,stretch:k()?"minWidth":"",popup:A(),onPopupVisibleChange:U,onPopupClick:D,getPopupContainer:x}),Z)}const yj=M.forwardRef(_j);var w_=v.createContext(null);function x_(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function S_(e){var t=v.useContext(w_);return x_(t,e)}var bj=["children","locked"],Zn=v.createContext(null);function wj(e,t){var n=ie({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function ha(e){var t=e.children,n=e.locked,r=ot(e,bj),o=v.useContext(Zn),i=Ka(function(){return wj(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!Di(a[1],l[1],!0))});return v.createElement(Zn.Provider,{value:i},t)}var xj=[],C_=v.createContext(null);function Us(){return v.useContext(C_)}var E_=v.createContext(xj);function ma(e){var t=v.useContext(E_);return v.useMemo(function(){return e!==void 0?[].concat(Se(t),[e]):t},[t,e])}var O_=v.createContext(null),fd=v.createContext({});function $_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Is(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function Sj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Se(e.querySelectorAll("*")).filter(function(r){return $_(r,t)});return $_(e,t)&&n.unshift(e),n}var pd=Te.LEFT,hd=Te.RIGHT,md=Te.UP,Gs=Te.DOWN,Ks=Te.ENTER,T_=Te.ESC,ga=Te.HOME,va=Te.END,P_=[md,Gs,pd,hd];function Cj(e,t,n,r){var o,i,a,l,s="prev",c="next",u="children",f="parent";if(e==="inline"&&r===Ks)return{inlineTrigger:!0};var d=(o={},oe(o,md,s),oe(o,Gs,c),o),y=(i={},oe(i,pd,n?c:s),oe(i,hd,n?s:c),oe(i,Gs,u),oe(i,Ks,u),i),x=(a={},oe(a,md,s),oe(a,Gs,c),oe(a,Ks,u),oe(a,T_,f),oe(a,pd,n?u:f),oe(a,hd,n?f:u),a),E={inline:d,horizontal:y,vertical:x,inlineSub:d,horizontalSub:x,verticalSub:x},h=(l=E["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(h){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function Ej(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Oj(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function gd(e,t){var n=Sj(e,!0);return n.filter(function(r){return t.has(r)})}function R_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=gd(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var vd=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(x_(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function $j(e,t,n,r,o,i,a,l,s,c){var u=v.useRef(),f=v.useRef();f.current=t;var d=function(){kt.cancel(u.current)};return v.useEffect(function(){return function(){d()}},[]),function(y){var x=y.which;if([].concat(P_,[Ks,T_,ga,va]).includes(x)){var E=i(),h=vd(E,r),_=h,p=_.elements,m=_.key2element,g=_.element2key,b=m.get(t),C=Oj(b,p),S=g.get(C),w=Cj(e,a(S,!0).length===1,n,x);if(!w&&x!==ga&&x!==va)return;(P_.includes(x)||[ga,va].includes(x))&&y.preventDefault();var O=function(j){if(j){var H=j,U=j.querySelector("a");U!=null&&U.getAttribute("href")&&(H=U);var D=g.get(j);l(D),d(),u.current=kt(function(){f.current===D&&H.focus()})}};if([ga,va].includes(x)||w.sibling||!C){var R;!C||e==="inline"?R=o.current:R=Ej(C);var N,P=gd(R,p);x===ga?N=P[0]:x===va?N=P[P.length-1]:N=R_(R,p,C,w.offset),O(N)}else if(w.inlineTrigger)s(S);else if(w.offset>0)s(S,!0),d(),u.current=kt(function(){h=vd(E,r);var X=C.getAttribute("aria-controls"),j=document.getElementById(X),H=R_(j,h.elements);O(H)},5);else if(w.offset<0){var L=a(S,!0),z=L[L.length-2],J=m.get(z);s(z,!1),O(J)}}c==null||c(y)}}function Tj(e){Promise.resolve().then(e)}var _d="__RC_UTIL_PATH_SPLIT__",j_=function(t){return t.join(_d)},Pj=function(t){return t.split(_d)},yd="rc-menu-more";function Rj(){var e=v.useState({}),t=he(e,2),n=t[1],r=M.useRef(new Map),o=M.useRef(new Map),i=v.useState([]),a=he(i,2),l=a[0],s=a[1],c=M.useRef(0),u=M.useRef(!1),f=function(){u.current||n({})},d=M.useCallback(function(m,g){ne.env.NODE_ENV!=="production"&&pt(!r.current.has(m),"Duplicated key '".concat(m,"' used in Menu by path [").concat(g.join(" > "),"]"));var b=j_(g);o.current.set(b,m),r.current.set(m,b),c.current+=1;var C=c.current;Tj(function(){C===c.current&&f()})},[]),y=M.useCallback(function(m,g){var b=j_(g);o.current.delete(b),r.current.delete(m)},[]),x=M.useCallback(function(m){s(m)},[]),E=M.useCallback(function(m,g){var b=r.current.get(m)||"",C=Pj(b);return g&&l.includes(C[0])&&C.unshift(yd),C},[l]),h=M.useCallback(function(m,g){return m.filter(function(b){return b!==void 0}).some(function(b){var C=E(b,!0);return C.includes(g)})},[E]),_=function(){var g=Se(r.current.keys());return l.length&&g.push(yd),g},p=M.useCallback(function(m){var g="".concat(r.current.get(m)).concat(_d),b=new Set;return Se(o.current.keys()).forEach(function(C){C.startsWith(g)&&b.add(o.current.get(C))}),b},[]);return v.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:y,refreshOverflowKeys:x,isSubPathKey:h,getKeyPath:E,getKeys:_,getSubPathKeys:p}}function _a(e){var t=v.useRef(e);t.current=e;var n=v.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var jj=Math.random().toFixed(5).toString().slice(2),M_=0;function Mj(e){var t=Kn(e,{value:e}),n=he(t,2),r=n[0],o=n[1];return v.useEffect(function(){M_+=1;var i=ne.env.NODE_ENV==="test"?"test":"".concat(jj,"-").concat(M_);o("rc-menu-uuid-".concat(i))},[]),r}function I_(e,t,n,r){var o=v.useContext(Zn),i=o.activeKey,a=o.onActive,l=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},s.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),l(e)}),s}function A_(e){var t=v.useContext(Zn),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function N_(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=v.createElement(t,ie({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var Ij=["item"];function Xs(e){var t=e.item,n=ot(e,Ij);return Object.defineProperty(n,"item",{get:function(){return pt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Aj=["title","attribute","elementRef"],Nj=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],kj=["active"],Lj=function(e){Ar(n,e);var t=Nr(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,s=ot(o,Aj),c=Vn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return pt(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v.createElement(Cr.Item,Pe({},a,{title:typeof i=="string"?i:void 0},c,{ref:l}))}}]),n}(v.Component),Fj=v.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey,a=e.warnKey,l=e.disabled,s=e.itemIcon,c=e.children,u=e.role,f=e.onMouseEnter,d=e.onMouseLeave,y=e.onClick,x=e.onKeyDown,E=e.onFocus,h=ot(e,Nj),_=S_(i),p=v.useContext(Zn),m=p.prefixCls,g=p.onItemClick,b=p.disabled,C=p.overflowDisabled,S=p.itemIcon,w=p.selectedKeys,O=p.onActive,R=v.useContext(fd),N=R._internalRenderMenuItem,P="".concat(m,"-item"),L=v.useRef(),z=v.useRef(),J=b||l,X=Lo(t,z),j=ma(i);ne.env.NODE_ENV!=="production"&&a&&pt(!1,"MenuItem should not leave undefined `key`.");var H=function(F){return{key:i,keyPath:Se(j).reverse(),item:L.current,domEvent:F}},U=s||S,D=I_(i,J,f,d),W=D.active,A=ot(D,kj),k=w.includes(i),G=A_(j.length),Z=function(F){if(!J){var B=H(F);y==null||y(Xs(B)),g(B)}},q=function(F){if(x==null||x(F),F.which===Te.ENTER){var B=H(F);y==null||y(Xs(B)),g(B)}},V=function(F){O(i),E==null||E(F)},Y={};e.role==="option"&&(Y["aria-selected"]=k);var re=v.createElement(Lj,Pe({ref:L,elementRef:X,role:u===null?"none":u||"menuitem",tabIndex:l?null:-1,"data-menu-id":C&&_?null:_},h,A,Y,{component:"li","aria-disabled":l,style:ie(ie({},G),r),className:ce(P,(n={},oe(n,"".concat(P,"-active"),W),oe(n,"".concat(P,"-selected"),k),oe(n,"".concat(P,"-disabled"),J),n),o),onClick:Z,onKeyDown:q,onFocus:V}),c,v.createElement(N_,{props:ie(ie({},e),{},{isSelected:k}),icon:U}));return N&&(re=N(re,e,{selected:k})),re});function Dj(e,t){var n=e.eventKey,r=Us(),o=ma(n);return v.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:v.createElement(Fj,Pe({},e,{ref:t}))}const Ys=v.forwardRef(Dj);var Bj=["className","children"],zj=function(t,n){var r=t.className,o=t.children,i=ot(t,Bj),a=v.useContext(Zn),l=a.prefixCls,s=a.mode,c=a.rtl;return v.createElement("ul",Pe({className:ce(l,c&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(s==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},bd=v.forwardRef(zj);bd.displayName="SubMenuList";function wd(e,t){return ro(e).map(function(n,r){if(v.isValidElement(n)){var o,i,a=n.key,l=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,s=l==null;s&&(l="tmp_key-".concat([].concat(Se(t),[r]).join("-")));var c={key:l,eventKey:l};return ne.env.NODE_ENV!=="production"&&s&&(c.warnKey=!0),v.cloneElement(n,c)}return n})}var un={adjustX:1,adjustY:1},qj={topLeft:{points:["bl","tl"],overflow:un},topRight:{points:["br","tr"],overflow:un},bottomLeft:{points:["tl","bl"],overflow:un},bottomRight:{points:["tr","br"],overflow:un},leftTop:{points:["tr","tl"],overflow:un},leftBottom:{points:["br","bl"],overflow:un},rightTop:{points:["tl","tr"],overflow:un},rightBottom:{points:["bl","br"],overflow:un}},Vj={topLeft:{points:["bl","tl"],overflow:un},topRight:{points:["br","tr"],overflow:un},bottomLeft:{points:["tl","bl"],overflow:un},bottomRight:{points:["tr","br"],overflow:un},rightTop:{points:["tr","tl"],overflow:un},rightBottom:{points:["br","bl"],overflow:un},leftTop:{points:["tl","tr"],overflow:un},leftBottom:{points:["bl","br"],overflow:un}};function k_(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Hj={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Wj(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,s=e.disabled,c=e.mode,u=e.onVisibleChange,f=v.useContext(Zn),d=f.getPopupContainer,y=f.rtl,x=f.subMenuOpenDelay,E=f.subMenuCloseDelay,h=f.builtinPlacements,_=f.triggerSubMenuAction,p=f.forceSubMenuRender,m=f.rootClassName,g=f.motion,b=f.defaultMotions,C=v.useState(!1),S=he(C,2),w=S[0],O=S[1],R=ie(y?ie({},Vj):ie({},qj),h),N=Hj[c],P=k_(c,g,b),L=v.useRef(P);c!=="inline"&&(L.current=P);var z=ie(ie({},L.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),J=v.useRef();return v.useEffect(function(){return J.current=kt(function(){O(n)}),function(){kt.cancel(J.current)}},[n]),v.createElement(ad,{prefixCls:t,popupClassName:ce("".concat(t,"-popup"),oe({},"".concat(t,"-rtl"),y),a,m),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:R,popupPlacement:N,popupVisible:w,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:s?[]:[_],mouseEnterDelay:x,mouseLeaveDelay:E,onPopupVisibleChange:u,forceRender:p,popupMotion:z,fresh:!0},r)}function Uj(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=v.useContext(Zn),l=a.prefixCls,s=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,f=a.mode,d=v.useRef(!1);d.current=f===i;var y=v.useState(!d.current),x=he(y,2),E=x[0],h=x[1],_=d.current?n:!1;v.useEffect(function(){d.current&&h(!1)},[f]);var p=ie({},k_(i,c,u));r.length>1&&(p.motionAppear=!1);var m=p.onVisibleChanged;return p.onVisibleChanged=function(g){return!d.current&&!g&&h(!0),m==null?void 0:m(g)},E?null:v.createElement(ha,{mode:i,locked:!d.current},v.createElement(Jn,Pe({visible:_},p,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(g){var b=g.className,C=g.style;return v.createElement(bd,{id:t,className:b,style:C},o)}))}var Gj=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Kj=["active"],Xj=v.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.title,a=e.eventKey,l=e.warnKey,s=e.disabled,c=e.internalPopupClose,u=e.children,f=e.itemIcon,d=e.expandIcon,y=e.popupClassName,x=e.popupOffset,E=e.popupStyle,h=e.onClick,_=e.onMouseEnter,p=e.onMouseLeave,m=e.onTitleClick,g=e.onTitleMouseEnter,b=e.onTitleMouseLeave,C=ot(e,Gj),S=S_(a),w=v.useContext(Zn),O=w.prefixCls,R=w.mode,N=w.openKeys,P=w.disabled,L=w.overflowDisabled,z=w.activeKey,J=w.selectedKeys,X=w.itemIcon,j=w.expandIcon,H=w.onItemClick,U=w.onOpenChange,D=w.onActive,W=v.useContext(fd),A=W._internalRenderSubMenuItem,k=v.useContext(O_),G=k.isSubPathKey,Z=ma(),q="".concat(O,"-submenu"),V=P||s,Y=v.useRef(),re=v.useRef();ne.env.NODE_ENV!=="production"&&l&&pt(!1,"SubMenu should not leave undefined `key`.");var se=f??X,F=d??j,B=N.includes(a),ae=!L&&B,ee=G(J,a),me=I_(a,V,g,b),pe=me.active,xe=ot(me,Kj),Ae=v.useState(!1),ue=he(Ae,2),Me=ue[0],Re=ue[1],$e=function(Qe){V||Re(Qe)},ve=function(Qe){$e(!0),_==null||_({key:a,domEvent:Qe})},we=function(Qe){$e(!1),p==null||p({key:a,domEvent:Qe})},Ce=v.useMemo(function(){return pe||(R!=="inline"?Me||G([z],a):!1)},[R,pe,z,Me,a,G]),Ee=A_(Z.length),We=function(Qe){V||(m==null||m({key:a,domEvent:Qe}),R==="inline"&&U(a,!B))},Ue=_a(function(lt){h==null||h(Xs(lt)),H(lt)}),Je=function(Qe){R!=="inline"&&U(a,Qe)},mt=function(){D(a)},bt=S&&"".concat(S,"-popup"),dt=v.createElement("div",Pe({role:"menuitem",style:Ee,className:"".concat(q,"-title"),tabIndex:V?null:-1,ref:Y,title:typeof i=="string"?i:null,"data-menu-id":L&&S?null:S,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":bt,"aria-disabled":V,onClick:We,onFocus:mt},xe),i,v.createElement(N_,{icon:R!=="horizontal"?F:void 0,props:ie(ie({},e),{},{isOpen:ae,isSubMenu:!0})},v.createElement("i",{className:"".concat(q,"-arrow")}))),qe=v.useRef(R);if(R!=="inline"&&Z.length>1?qe.current="vertical":qe.current=R,!L){var je=qe.current;dt=v.createElement(Wj,{mode:je,prefixCls:q,visible:!c&&ae&&R!=="inline",popupClassName:y,popupOffset:x,popupStyle:E,popup:v.createElement(ha,{mode:je==="horizontal"?"vertical":je},v.createElement(bd,{id:bt,ref:re},u)),disabled:V,onVisibleChange:Je},dt)}var ct=v.createElement(Cr.Item,Pe({ref:t,role:"none"},C,{component:"li",style:r,className:ce(q,"".concat(q,"-").concat(R),o,(n={},oe(n,"".concat(q,"-open"),ae),oe(n,"".concat(q,"-active"),Ce),oe(n,"".concat(q,"-selected"),ee),oe(n,"".concat(q,"-disabled"),V),n)),onMouseEnter:ve,onMouseLeave:we}),dt,!L&&v.createElement(Uj,{id:bt,open:ae,keyPath:Z},u));return A&&(ct=A(ct,e,{selected:ee,active:Ce,open:ae,disabled:V})),v.createElement(ha,{onItemClick:Ue,mode:R==="horizontal"?"vertical":R,itemIcon:se,expandIcon:F},ct)}),Js=v.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ma(n),i=wd(r,o),a=Us();v.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var l;return a?l=i:l=v.createElement(Xj,Pe({ref:t},e),i),v.createElement(E_.Provider,{value:o},l)});ne.env.NODE_ENV!=="production"&&(Js.displayName="SubMenu");function L_(e){var t=e.className,n=e.style,r=v.useContext(Zn),o=r.prefixCls,i=Us();return i?null:v.createElement("li",{role:"separator",className:ce("".concat(o,"-item-divider"),t),style:n})}var Yj=["className","title","eventKey","children"],Jj=v.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=ot(e,Yj),a=v.useContext(Zn),l=a.prefixCls,s="".concat(l,"-item-group");return v.createElement("li",Pe({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:ce(s,n)}),v.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),v.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))}),xd=v.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ma(n),i=wd(r,o),a=Us();return a?i:v.createElement(Jj,Pe({ref:t},Vn(e,["warnKey"])),i)});ne.env.NODE_ENV!=="production"&&(xd.displayName="MenuItemGroup");var Qj=["label","children","key","type"];function Sd(e,t){var n=t.item,r=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(a,l){if(a&&De(a)==="object"){var s=a,c=s.label,u=s.children,f=s.key,d=s.type,y=ot(s,Qj),x=f??"tmp-".concat(l);return u||d==="group"?d==="group"?v.createElement(r,Pe({key:x},y,{title:c}),Sd(u,t)):v.createElement(o,Pe({key:x},y,{title:c}),Sd(u,t)):d==="divider"?v.createElement(i,Pe({key:x},y)):v.createElement(n,Pe({key:x},y),c)}return null}).filter(function(a){return a})}function F_(e,t,n,r){var o=e,i=ie({divider:L_,item:Ys,group:xd,submenu:Js},r);return t&&(o=Sd(t,i)),wd(o,n)}var Zj=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],wo=[],eM=v.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,s=o.style,c=o.className,u=o.tabIndex,f=u===void 0?0:u,d=o.items,y=o.children,x=o.direction,E=o.id,h=o.mode,_=h===void 0?"vertical":h,p=o.inlineCollapsed,m=o.disabled,g=o.disabledOverflow,b=o.subMenuOpenDelay,C=b===void 0?.1:b,S=o.subMenuCloseDelay,w=S===void 0?.1:S,O=o.forceSubMenuRender,R=o.defaultOpenKeys,N=o.openKeys,P=o.activeKey,L=o.defaultActiveFirst,z=o.selectable,J=z===void 0?!0:z,X=o.multiple,j=X===void 0?!1:X,H=o.defaultSelectedKeys,U=o.selectedKeys,D=o.onSelect,W=o.onDeselect,A=o.inlineIndent,k=A===void 0?24:A,G=o.motion,Z=o.defaultMotions,q=o.triggerSubMenuAction,V=q===void 0?"hover":q,Y=o.builtinPlacements,re=o.itemIcon,se=o.expandIcon,F=o.overflowedIndicator,B=F===void 0?"...":F,ae=o.overflowedIndicatorPopupClassName,ee=o.getPopupContainer,me=o.onClick,pe=o.onOpenChange,xe=o.onKeyDown,Ae=o.openAnimation,ue=o.openTransitionName,Me=o._internalRenderMenuItem,Re=o._internalRenderSubMenuItem,$e=o._internalComponents,ve=ot(o,Zj),we=v.useMemo(function(){return[F_(y,d,wo,$e),F_(y,d,wo,{})]},[y,d,$e]),Ce=he(we,2),Ee=Ce[0],We=Ce[1],Ue=v.useState(!1),Je=he(Ue,2),mt=Je[0],bt=Je[1],dt=v.useRef(),qe=Mj(E),je=x==="rtl";ne.env.NODE_ENV!=="production"&&pt(!Ae&&!ue,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var ct=Kn(R,{value:N,postState:function(ft){return ft||wo}}),lt=he(ct,2),Qe=lt[0],Rt=lt[1],Ht=function(ft){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function tn(){Rt(ft),pe==null||pe(ft)}Et?to.flushSync(tn):tn()},Jt=v.useState(Qe),wt=he(Jt,2),jt=wt[0],et=wt[1],ut=v.useRef(!1),Mt=v.useMemo(function(){return(_==="inline"||_==="vertical")&&p?["vertical",p]:[_,!1]},[_,p]),Xe=he(Mt,2),ke=Xe[0],I=Xe[1],$=ke==="inline",T=v.useState(ke),K=he(T,2),te=K[0],le=K[1],ge=v.useState(I),Fe=he(ge,2),tt=Fe[0],rt=Fe[1];v.useEffect(function(){le(ke),rt(I),ut.current&&($?Rt(jt):Ht(wo))},[ke,I]);var Q=v.useState(0),de=he(Q,2),_e=de[0],Oe=de[1],Le=_e>=Ee.length-1||te!=="horizontal"||g;v.useEffect(function(){$&&et(Qe)},[Qe]),v.useEffect(function(){return ut.current=!0,function(){ut.current=!1}},[]);var Ne=Rj(),Be=Ne.registerPath,He=Ne.unregisterPath,Ct=Ne.refreshOverflowKeys,gt=Ne.isSubPathKey,Ye=Ne.getKeyPath,Dt=Ne.getKeys,yn=Ne.getSubPathKeys,Qt=v.useMemo(function(){return{registerPath:Be,unregisterPath:He}},[Be,He]),Nt=v.useMemo(function(){return{isSubPathKey:gt}},[gt]);v.useEffect(function(){Ct(Le?wo:Ee.slice(_e+1).map(function(Tt){return Tt.key}))},[_e,Le]);var $r=Kn(P||L&&((n=Ee[0])===null||n===void 0?void 0:n.key),{value:P}),Tr=he($r,2),Dn=Tr[0],nr=Tr[1],$i=_a(function(Tt){nr(Tt)}),Yr=_a(function(){nr(void 0)});M.useImperativeHandle(t,function(){return{list:dt.current,focus:function(ft){var Et,tn=Dt(),sn=vd(tn,qe),Qr=sn.elements,Zr=sn.key2element,Va=sn.element2key,Pi=gd(dt.current,Qr),eo=Dn??(Pi[0]?Va.get(Pi[0]):(Et=Ee.find(function(bn){return!bn.props.disabled}))===null||Et===void 0?void 0:Et.key),pn=Zr.get(eo);if(eo&&pn){var Ao;pn==null||(Ao=pn.focus)===null||Ao===void 0||Ao.call(pn,ft)}}}});var rr=Kn(H||[],{value:U,postState:function(ft){return Array.isArray(ft)?ft:ft==null?wo:[ft]}}),Mo=he(rr,2),Pr=Mo[0],Bn=Mo[1],Tn=function(ft){if(J){var Et=ft.key,tn=Pr.includes(Et),sn;j?tn?sn=Pr.filter(function(Zr){return Zr!==Et}):sn=[].concat(Se(Pr),[Et]):sn=[Et],Bn(sn);var Qr=ie(ie({},ft),{},{selectedKeys:sn});tn?W==null||W(Qr):D==null||D(Qr)}!j&&Qe.length&&te!=="inline"&&Ht(wo)},Jr=_a(function(Tt){me==null||me(Xs(Tt)),Tn(Tt)}),Rr=_a(function(Tt,ft){var Et=Qe.filter(function(sn){return sn!==Tt});if(ft)Et.push(Tt);else if(te!=="inline"){var tn=yn(Tt);Et=Et.filter(function(sn){return!tn.has(sn)})}Di(Qe,Et,!0)||Ht(Et,!0)}),zn=function(ft,Et){var tn=Et??!Qe.includes(ft);Rr(ft,tn)},za=$j(te,Dn,je,qe,dt,Dt,Ye,nr,zn,xe);v.useEffect(function(){bt(!0)},[]);var Ti=v.useMemo(function(){return{_internalRenderMenuItem:Me,_internalRenderSubMenuItem:Re}},[Me,Re]),qa=te!=="horizontal"||g?Ee:Ee.map(function(Tt,ft){return v.createElement(ha,{key:Tt.key,overflowDisabled:ft>_e},Tt)}),Io=v.createElement(Cr,Pe({id:E,ref:dt,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Ys,className:ce(a,"".concat(a,"-root"),"".concat(a,"-").concat(te),c,(r={},oe(r,"".concat(a,"-inline-collapsed"),tt),oe(r,"".concat(a,"-rtl"),je),r),l),dir:x,style:s,role:"menu",tabIndex:f,data:qa,renderRawItem:function(ft){return ft},renderRawRest:function(ft){var Et=ft.length,tn=Et?Ee.slice(-Et):null;return v.createElement(Js,{eventKey:yd,title:B,disabled:Le,internalPopupClose:Et===0,popupClassName:ae},tn)},maxCount:te!=="horizontal"||g?Cr.INVALIDATE:Cr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ft){Oe(ft)},onKeyDown:za},ve));return v.createElement(fd.Provider,{value:Ti},v.createElement(w_.Provider,{value:qe},v.createElement(ha,{prefixCls:a,rootClassName:l,mode:te,openKeys:Qe,rtl:je,disabled:m,motion:mt?G:null,defaultMotions:mt?Z:null,activeKey:Dn,onActive:$i,onInactive:Yr,selectedKeys:Pr,inlineIndent:k,subMenuOpenDelay:C,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:Y,triggerSubMenuAction:V,getPopupContainer:ee,itemIcon:re,expandIcon:se,onItemClick:Jr,onOpenChange:Rr},v.createElement(O_.Provider,{value:Nt},Io),v.createElement("div",{style:{display:"none"},"aria-hidden":!0},v.createElement(C_.Provider,{value:Qt},We)))))}),ya=eM;ya.Item=Ys,ya.SubMenu=Js,ya.ItemGroup=xd,ya.Divider=L_;var tM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},nM=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:tM}))},D_=v.forwardRef(nM);ne.env.NODE_ENV!=="production"&&(D_.displayName="EllipsisOutlined");function B_(e){return Lt(e,{inputAffixPadding:e.paddingXXS})}const z_=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:y,colorPrimary:x,controlOutlineWidth:E,controlOutline:h,colorErrorOutline:_,colorWarningOutline:p,colorBgContainer:m}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:d,activeBorderColor:x,hoverBorderColor:y,activeShadow:`0 0 0 ${E}px ${h}`,errorActiveShadow:`0 0 0 ${E}px ${_}`,warningActiveShadow:`0 0 0 ${E}px ${p}`,hoverBg:m,activeBg:m,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},rM=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Cd=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},rM(Lt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),q_=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),V_=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},q_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),oM=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},q_(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Cd(e))}),V_(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),V_(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),H_=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),iM=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},H_(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),H_(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Cd(e))}})}),aM=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},W_=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),U_=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},W_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),sM=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},W_(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Cd(e))}),U_(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),U_(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),G_=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),lM=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},G_(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),G_(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),cM=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),K_=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${be(t)} ${be(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},X_=e=>({padding:`${be(e.paddingBlockSM)} ${be(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Y_=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${be(e.paddingBlock)} ${be(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},cM(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},K_(e)),"&-sm":Object.assign({},X_(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),uM=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},K_(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},X_(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${be(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${be(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${be(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${be(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${be(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},fm()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
189
|
+
& > ${t}-affix-wrapper,
|
|
190
|
+
& > ${t}-number-affix-wrapper,
|
|
191
|
+
& > ${n}-picker-range
|
|
192
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
|
193
|
+
& > ${n}-select-auto-complete ${t},
|
|
194
|
+
& > ${n}-cascader-picker ${t},
|
|
195
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
196
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
197
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
198
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
199
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
200
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
201
|
+
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},dM=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_n(e)),Y_(e)),oM(e)),sM(e)),aM(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},fM=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${be(e.inputAffixPadding)}`}}}},pM=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Y_(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),fM(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},hM=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},_n(e)),uM(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},iM(e)),lM(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},mM=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
202
|
+
> ${t},
|
|
203
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},gM=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
204
|
+
&-allow-clear > ${t},
|
|
205
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
206
|
+
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},vM=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ed=ln("Input",e=>{const t=Lt(e,B_(e));return[dM(t),gM(t),pM(t),hM(t),mM(t),vM(t),Og(t)]},z_,{resetFont:!1});var _M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},yM=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:_M}))},J_=v.forwardRef(yM);ne.env.NODE_ENV!=="production"&&(J_.displayName="PlusOutlined");const Qs=M.createContext(null);var bM=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,l=a.size,s=a.align,c=s===void 0?"center":s,u=M.useState(),f=he(u,2),d=f[0],y=f[1],x=M.useRef(),E=M.useCallback(function(_){return typeof l=="function"?l(_):typeof l=="number"?l:_},[l]);function h(){kt.cancel(x.current)}return M.useEffect(function(){var _={};if(n)if(r){_.width=E(n.width);var p=o?"right":"left";c==="start"&&(_[p]=n[p]),c==="center"&&(_[p]=n[p]+n.width/2,_.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(_[p]=n[p]+n.width,_.transform="translateX(-100%)")}else _.height=E(n.height),c==="start"&&(_.top=n.top),c==="center"&&(_.top=n.top+n.height/2,_.transform="translateY(-50%)"),c==="end"&&(_.top=n.top+n.height,_.transform="translateY(-100%)");return h(),x.current=kt(function(){y(_)}),h},[n,r,o,c,E]),{style:d}},Q_={width:0,height:0,left:0,top:0};function wM(e,t,n){return M.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Q_,a=i.left+i.width,l=0;l<e.length;l+=1){var s=e[l].key,c=t.get(s);if(!c){var u;c=t.get((u=e[l-1])===null||u===void 0?void 0:u.key)||Q_}var f=o.get(s)||ie({},c);f.right=a-f.left-f.width,o.set(s,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Z_(e,t){var n=v.useRef(e),r=v.useState({}),o=he(r,2),i=o[1];function a(l){var s=typeof l=="function"?l(n.current):l;s!==n.current&&t(s,n.current),n.current=s,i({})}return[n.current,a]}var xM=.1,ey=.01,Zs=20,ty=Math.pow(.995,Zs);function SM(e,t){var n=M.useState(),r=he(n,2),o=r[0],i=r[1],a=M.useState(0),l=he(a,2),s=l[0],c=l[1],u=M.useState(0),f=he(u,2),d=f[0],y=f[1],x=M.useState(),E=he(x,2),h=E[0],_=E[1],p=M.useRef();function m(O){var R=O.touches[0],N=R.screenX,P=R.screenY;i({x:N,y:P}),window.clearInterval(p.current)}function g(O){if(o){O.preventDefault();var R=O.touches[0],N=R.screenX,P=R.screenY;i({x:N,y:P});var L=N-o.x,z=P-o.y;t(L,z);var J=Date.now();c(J),y(J-s),_({x:L,y:z})}}function b(){if(o&&(i(null),_(null),h)){var O=h.x/d,R=h.y/d,N=Math.abs(O),P=Math.abs(R);if(Math.max(N,P)<xM)return;var L=O,z=R;p.current=window.setInterval(function(){if(Math.abs(L)<ey&&Math.abs(z)<ey){window.clearInterval(p.current);return}L*=ty,z*=ty,t(L*Zs,z*Zs)},Zs)}}var C=M.useRef();function S(O){var R=O.deltaX,N=O.deltaY,P=0,L=Math.abs(R),z=Math.abs(N);L===z?P=C.current==="x"?R:N:L>z?(P=R,C.current="x"):(P=N,C.current="y"),t(-P,-P)&&O.preventDefault()}var w=M.useRef(null);w.current={onTouchStart:m,onTouchMove:g,onTouchEnd:b,onWheel:S},v.useEffect(function(){function O(L){w.current.onTouchStart(L)}function R(L){w.current.onTouchMove(L)}function N(L){w.current.onTouchEnd(L)}function P(L){w.current.onWheel(L)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",N,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",P,{passive:!1}),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",N)}},[])}function ny(e){var t=M.useState(0),n=he(t,2),r=n[0],o=n[1],i=M.useRef(0),a=M.useRef();return a.current=e,yc(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function CM(e){var t=M.useRef([]),n=M.useState({}),r=he(n,2),o=r[1],i=M.useRef(typeof e=="function"?e():e),a=ny(function(){var s=i.current;t.current.forEach(function(c){s=c(s)}),t.current=[],i.current=s,o({})});function l(s){t.current.push(s),a()}return[i.current,l]}var ry={width:0,height:0,left:0,top:0,right:0};function EM(e,t,n,r,o,i,a){var l=a.tabs,s=a.tabPosition,c=a.rtl,u,f,d;return["top","bottom"].includes(s)?(u="width",f=c?"right":"left",d=Math.abs(n)):(u="height",f="top",d=-n),M.useMemo(function(){if(!l.length)return[0,0];for(var y=l.length,x=y,E=0;E<y;E+=1){var h=e.get(l[E].key)||ry;if(h[f]+h[u]>d+t){x=E-1;break}}for(var _=0,p=y-1;p>=0;p-=1){var m=e.get(l[p].key)||ry;if(m[f]<d){_=p+1;break}}return _>=x?[0,0]:[_,x]},[e,t,r,o,i,d,s,l.map(function(y){return y.key}).join("_"),c])}function oy(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var OM="TABS_DQ";function iy(e){return String(e).replace(/"/g,OM)}function ay(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var sy=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:v.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),Od=v.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return De(o)==="object"&&!v.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?v.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});ne.env.NODE_ENV!=="production"&&(Od.displayName="ExtraContent");var $M=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.more,s=l===void 0?{}:l,c=e.style,u=e.className,f=e.editable,d=e.tabBarGutter,y=e.rtl,x=e.removeAriaLabel,E=e.onTabClick,h=e.getPopupContainer,_=e.popupClassName,p=M.useState(!1),m=he(p,2),g=m[0],b=m[1],C=M.useState(null),S=he(C,2),w=S[0],O=S[1],R=s.icon,N=R===void 0?"More":R,P="".concat(r,"-more-popup"),L="".concat(n,"-dropdown"),z=w!==null?"".concat(P,"-").concat(w):null,J=i==null?void 0:i.dropdownAriaLabel;function X(k,G){k.preventDefault(),k.stopPropagation(),f.onEdit("remove",{key:G,event:k})}var j=v.createElement(ya,{onClick:function(G){var Z=G.key,q=G.domEvent;E(Z,q),b(!1)},prefixCls:"".concat(L,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":z,selectedKeys:[w],"aria-label":J!==void 0?J:"expanded dropdown"},o.map(function(k){var G=k.closable,Z=k.disabled,q=k.closeIcon,V=k.key,Y=k.label,re=ay(G,q,f,Z);return v.createElement(Ys,{key:V,id:"".concat(P,"-").concat(V),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(V),disabled:Z},v.createElement("span",null,Y),re&&v.createElement("button",{type:"button","aria-label":x||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(F){F.stopPropagation(),X(F,V)}},q||f.removeIcon||"×"))}));function H(k){for(var G=o.filter(function(re){return!re.disabled}),Z=G.findIndex(function(re){return re.key===w})||0,q=G.length,V=0;V<q;V+=1){Z=(Z+k+q)%q;var Y=G[Z];if(!Y.disabled){O(Y.key);return}}}function U(k){var G=k.which;if(!g){[Te.DOWN,Te.SPACE,Te.ENTER].includes(G)&&(b(!0),k.preventDefault());return}switch(G){case Te.UP:H(-1),k.preventDefault();break;case Te.DOWN:H(1),k.preventDefault();break;case Te.ESC:b(!1);break;case Te.SPACE:case Te.ENTER:w!==null&&E(w,k);break}}M.useEffect(function(){var k=document.getElementById(z);k&&k.scrollIntoView&&k.scrollIntoView(!1)},[w]),M.useEffect(function(){g||O(null)},[g]);var D=oe({},y?"marginRight":"marginLeft",d);o.length||(D.visibility="hidden",D.order=1);var W=ce(oe({},"".concat(L,"-rtl"),y)),A=a?null:v.createElement(yj,Pe({prefixCls:L,overlay:j,visible:o.length?g:!1,onVisibleChange:b,overlayClassName:ce(W,_),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),v.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":P,id:"".concat(r,"-more"),"aria-expanded":g,onKeyDown:U},N));return v.createElement("div",{className:ce("".concat(n,"-nav-operations"),u),style:c,ref:t},A,v.createElement(sy,{prefixCls:n,locale:i,editable:f}))});const TM=v.memo($M,function(e,t){return t.tabMoving});var PM=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.tab,a=i.key,l=i.label,s=i.disabled,c=i.closeIcon,u=i.icon,f=t.closable,d=t.renderWrapper,y=t.removeAriaLabel,x=t.editable,E=t.onClick,h=t.onFocus,_=t.style,p="".concat(n,"-tab"),m=ay(f,c,x,s);function g(w){s||E(w)}function b(w){w.preventDefault(),w.stopPropagation(),x.onEdit("remove",{key:a,event:w})}var C=v.useMemo(function(){return u&&typeof l=="string"?v.createElement("span",null,l):l},[l,u]),S=v.createElement("div",{key:a,"data-node-key":iy(a),className:ce(p,oe(oe(oe({},"".concat(p,"-with-remove"),m),"".concat(p,"-active"),o),"".concat(p,"-disabled"),s)),style:_,onClick:g},v.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(p,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":s,tabIndex:s?null:0,onClick:function(O){O.stopPropagation(),g(O)},onKeyDown:function(O){[Te.SPACE,Te.ENTER].includes(O.which)&&(O.preventDefault(),g(O))},onFocus:h},u&&v.createElement("span",{className:"".concat(p,"-icon")},u),l&&C),m&&v.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(p,"-remove"),onClick:function(O){O.stopPropagation(),b(O)}},c||x.removeIcon||"×"));return d?d(S):S},RM=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,a=t.offsetLeft,l=t.getBoundingClientRect(),s=l.width,c=l.height,u=l.x,f=l.y;return Math.abs(s-r)<1?[s,c,u-n.x,f-n.y]:[r,o,a,i]},li=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;if(t.current){var l=t.current.getBoundingClientRect(),s=l.width,c=l.height;if(Math.abs(s-o)<1)return[s,c]}return[o,a]},el=function(t,n){return t[n?0:1]},ly=v.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,l=e.rtl,s=e.extra,c=e.editable,u=e.locale,f=e.tabPosition,d=e.tabBarGutter,y=e.children,x=e.onTabClick,E=e.onTabScroll,h=e.indicator,_=v.useContext(Qs),p=_.prefixCls,m=_.tabs,g=M.useRef(null),b=M.useRef(null),C=M.useRef(null),S=M.useRef(null),w=M.useRef(null),O=M.useRef(null),R=M.useRef(null),N=f==="top"||f==="bottom",P=Z_(0,function(de,_e){N&&E&&E({direction:de>_e?"left":"right"})}),L=he(P,2),z=L[0],J=L[1],X=Z_(0,function(de,_e){!N&&E&&E({direction:de>_e?"top":"bottom"})}),j=he(X,2),H=j[0],U=j[1],D=M.useState([0,0]),W=he(D,2),A=W[0],k=W[1],G=M.useState([0,0]),Z=he(G,2),q=Z[0],V=Z[1],Y=M.useState([0,0]),re=he(Y,2),se=re[0],F=re[1],B=M.useState([0,0]),ae=he(B,2),ee=ae[0],me=ae[1],pe=CM(new Map),xe=he(pe,2),Ae=xe[0],ue=xe[1],Me=wM(m,Ae,q[0]),Re=el(A,N),$e=el(q,N),ve=el(se,N),we=el(ee,N),Ce=Re<$e+ve,Ee=Ce?Re-we:Re-ve,We="".concat(p,"-nav-operations-hidden"),Ue=0,Je=0;N&&l?(Ue=0,Je=Math.max(0,$e-Ee)):(Ue=Math.min(0,Ee-$e),Je=0);function mt(de){return de<Ue?Ue:de>Je?Je:de}var bt=M.useRef(null),dt=M.useState(),qe=he(dt,2),je=qe[0],ct=qe[1];function lt(){ct(Date.now())}function Qe(){bt.current&&clearTimeout(bt.current)}SM(S,function(de,_e){function Oe(Le,Ne){Le(function(Be){var He=mt(Be+Ne);return He})}return Ce?(N?Oe(J,de):Oe(U,_e),Qe(),lt(),!0):!1}),M.useEffect(function(){return Qe(),je&&(bt.current=setTimeout(function(){ct(0)},100)),Qe},[je]);var Rt=EM(Me,Ee,N?z:H,$e,ve,we,ie(ie({},e),{},{tabs:m})),Ht=he(Rt,2),Jt=Ht[0],wt=Ht[1],jt=Zt(function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,_e=Me.get(de)||{width:0,height:0,left:0,right:0,top:0};if(N){var Oe=z;l?_e.right<z?Oe=_e.right:_e.right+_e.width>z+Ee&&(Oe=_e.right+_e.width-Ee):_e.left<-z?Oe=-_e.left:_e.left+_e.width>-z+Ee&&(Oe=-(_e.left+_e.width-Ee)),U(0),J(mt(Oe))}else{var Le=H;_e.top<-H?Le=-_e.top:_e.top+_e.height>-H+Ee&&(Le=-(_e.top+_e.height-Ee)),J(0),U(mt(Le))}}),et={};f==="top"||f==="bottom"?et[l?"marginRight":"marginLeft"]=d:et.marginTop=d;var ut=m.map(function(de,_e){var Oe=de.key;return v.createElement(PM,{id:o,prefixCls:p,key:Oe,tab:de,style:_e===0?void 0:et,closable:de.closable,editable:c,active:Oe===a,renderWrapper:y,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(Ne){x(Oe,Ne)},onFocus:function(){jt(Oe),lt(),S.current&&(l||(S.current.scrollLeft=0),S.current.scrollTop=0)}})}),Mt=function(){return ue(function(){var _e,Oe=new Map,Le=(_e=w.current)===null||_e===void 0?void 0:_e.getBoundingClientRect();return m.forEach(function(Ne){var Be,He=Ne.key,Ct=(Be=w.current)===null||Be===void 0?void 0:Be.querySelector('[data-node-key="'.concat(iy(He),'"]'));if(Ct){var gt=RM(Ct,Le),Ye=he(gt,4),Dt=Ye[0],yn=Ye[1],Qt=Ye[2],Nt=Ye[3];Oe.set(He,{width:Dt,height:yn,left:Qt,top:Nt})}}),Oe})};M.useEffect(function(){Mt()},[m.map(function(de){return de.key}).join("_")]);var Xe=ny(function(){var de=li(g),_e=li(b),Oe=li(C);k([de[0]-_e[0]-Oe[0],de[1]-_e[1]-Oe[1]]);var Le=li(R);F(Le);var Ne=li(O);me(Ne);var Be=li(w);V([Be[0]-Le[0],Be[1]-Le[1]]),Mt()}),ke=m.slice(0,Jt),I=m.slice(wt+1),$=[].concat(Se(ke),Se(I)),T=Me.get(a),K=bM({activeTabOffset:T,horizontal:N,indicator:h,rtl:l}),te=K.style;M.useEffect(function(){jt()},[a,Ue,Je,oy(T),oy(Me),N]),M.useEffect(function(){Xe()},[l]);var le=!!$.length,ge="".concat(p,"-nav-wrap"),Fe,tt,rt,Q;return N?l?(tt=z>0,Fe=z!==Je):(Fe=z<0,tt=z!==Ue):(rt=H<0,Q=H!==Ue),v.createElement(ar,{onResize:Xe},v.createElement("div",{ref:Lo(t,g),role:"tablist",className:ce("".concat(p,"-nav"),n),style:r,onKeyDown:function(){lt()}},v.createElement(Od,{ref:b,position:"left",extra:s,prefixCls:p}),v.createElement(ar,{onResize:Xe},v.createElement("div",{className:ce(ge,oe(oe(oe(oe({},"".concat(ge,"-ping-left"),Fe),"".concat(ge,"-ping-right"),tt),"".concat(ge,"-ping-top"),rt),"".concat(ge,"-ping-bottom"),Q)),ref:S},v.createElement(ar,{onResize:Xe},v.createElement("div",{ref:w,className:"".concat(p,"-nav-list"),style:{transform:"translate(".concat(z,"px, ").concat(H,"px)"),transition:je?"none":void 0}},ut,v.createElement(sy,{ref:R,prefixCls:p,locale:u,editable:c,style:ie(ie({},ut.length===0?void 0:et),{},{visibility:le?"hidden":null})}),v.createElement("div",{className:ce("".concat(p,"-ink-bar"),oe({},"".concat(p,"-ink-bar-animated"),i.inkBar)),style:te}))))),v.createElement(TM,Pe({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:O,prefixCls:p,tabs:$,className:!le&&We,tabMoving:!!je})),v.createElement(Od,{ref:C,position:"right",extra:s,prefixCls:p})))}),$d=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,s=e.children;return v.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:ce(n,a&&"".concat(n,"-active"),r),ref:t},s)});ne.env.NODE_ENV!=="production"&&($d.displayName="TabPane");var jM=["renderTabBar"],MM=["label","key"],cy=function(t){var n=t.renderTabBar,r=ot(t,jM),o=v.useContext(Qs),i=o.tabs;if(n){var a=ie(ie({},r),{},{panes:i.map(function(l){var s=l.label,c=l.key,u=ot(l,MM);return v.createElement($d,Pe({tab:s,key:c,tabKey:c},u))})});return n(a,ly)}return v.createElement(ly,r)};ne.env.NODE_ENV!=="production"&&(cy.displayName="TabNavListWrapper");var IM=["key","forceRender","style","className","destroyInactiveTabPane"],AM=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=v.useContext(Qs),s=l.prefixCls,c=l.tabs,u=o.tabPane,f="".concat(s,"-tabpane");return v.createElement("div",{className:ce("".concat(s,"-content-holder"))},v.createElement("div",{className:ce("".concat(s,"-content"),"".concat(s,"-content-").concat(i),oe({},"".concat(s,"-content-animated"),u))},c.map(function(d){var y=d.key,x=d.forceRender,E=d.style,h=d.className,_=d.destroyInactiveTabPane,p=ot(d,IM),m=y===r;return v.createElement(Jn,Pe({key:y,visible:m,forceRender:x,removeOnLeave:!!(a||_),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(g,b){var C=g.style,S=g.className;return v.createElement($d,Pe({},p,{prefixCls:f,id:n,tabKey:y,animated:u,active:m,style:ie(ie({},E),C),className:ce(h,S),ref:b}))})})))};function NM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ie({inkBar:!0},De(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(ne.env.NODE_ENV!=="production"&&pt(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var kM=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],uy=0,dy=v.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,d=e.tabPosition,y=d===void 0?"top":d,x=e.tabBarGutter,E=e.tabBarStyle,h=e.tabBarExtraContent,_=e.locale,p=e.more,m=e.destroyInactiveTabPane,g=e.renderTabBar,b=e.onChange,C=e.onTabClick,S=e.onTabScroll,w=e.getPopupContainer,O=e.popupClassName,R=e.indicator,N=ot(e,kM),P=v.useMemo(function(){return(a||[]).filter(function(ee){return ee&&De(ee)==="object"&&"key"in ee})},[a]),L=l==="rtl",z=NM(f),J=M.useState(!1),X=he(J,2),j=X[0],H=X[1];M.useEffect(function(){H(Gv())},[]);var U=Kn(function(){var ee;return(ee=P[0])===null||ee===void 0?void 0:ee.key},{value:s,defaultValue:c}),D=he(U,2),W=D[0],A=D[1],k=M.useState(function(){return P.findIndex(function(ee){return ee.key===W})}),G=he(k,2),Z=G[0],q=G[1];M.useEffect(function(){var ee=P.findIndex(function(pe){return pe.key===W});if(ee===-1){var me;ee=Math.max(0,Math.min(Z,P.length-1)),A((me=P[ee])===null||me===void 0?void 0:me.key)}q(ee)},[P.map(function(ee){return ee.key}).join("_"),W,Z]);var V=Kn(null,{value:n}),Y=he(V,2),re=Y[0],se=Y[1];M.useEffect(function(){n||(se("rc-tabs-".concat(ne.env.NODE_ENV==="test"?"test":uy)),uy+=1)},[]);function F(ee,me){C==null||C(ee,me);var pe=ee!==W;A(ee),pe&&(b==null||b(ee))}var B={id:re,activeKey:W,animated:z,tabPosition:y,rtl:L,mobile:j},ae=ie(ie({},B),{},{editable:u,locale:_,more:p,tabBarGutter:x,onTabClick:F,onTabScroll:S,extra:h,style:E,panes:null,getPopupContainer:w,popupClassName:O,indicator:R});return v.createElement(Qs.Provider,{value:{tabs:P,prefixCls:o}},v.createElement("div",Pe({ref:t,id:n,className:ce(o,"".concat(o,"-").concat(y),oe(oe(oe({},"".concat(o,"-mobile"),j),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),L),i)},N),v.createElement(cy,Pe({},ae,{renderTabBar:g})),v.createElement(AM,Pe({destroyInactiveTabPane:m},B,{animated:z}))))});ne.env.NODE_ENV!=="production"&&(dy.displayName="Tabs");const LM={motionAppear:!1,motionEnter:!0,motionLeave:!0};function FM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},LM),{motionName:ho(e,"switch")})),n}var DM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function BM(e){return e.filter(t=>t)}function zM(e,t){if(ne.env.NODE_ENV!=="production"&&Pt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=ro(t).map(r=>{if(v.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:l}=a,s=DM(a,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return BM(n)}const qM=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[wv(e,"slide-up"),wv(e,"slide-down")]]},VM=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${be(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:be(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:be(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be(e.borderRadiusLG)} 0 0 ${be(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},HM=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},_n(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${be(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},UE),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${be(e.paddingXXS)} ${be(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},WM=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${be(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
207
|
+
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
208
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:be(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},UM=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${be(e.borderRadius)} ${be(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${be(e.borderRadius)} ${be(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be(e.borderRadius)} ${be(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be(e.borderRadius)} 0 0 ${be(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},GM=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Ki(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},KM=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:be(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:be(e.marginXS)},marginLeft:{_skip_check_:!0,value:be(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},XM=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},_n(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${be(e.paddingXS)}`,background:"transparent",border:`${be(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${be(e.borderRadiusLG)} ${be(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Ki(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),GM(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},YM=ln("Tabs",e=>{const t=Lt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${be(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${be(e.horizontalItemGutter)}`});return[UM(t),KM(t),WM(t),HM(t),VM(t),XM(t),qM(t)]},e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),fy=()=>null;ne.env.NODE_ENV!=="production"&&(fy.displayName="DeprecatedTabPane");var JM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ba=e=>{var t,n,r,o,i,a,l,s,c,u,f;const{type:d,className:y,rootClassName:x,size:E,onEdit:h,hideAdd:_,centered:p,addIcon:m,removeIcon:g,moreIcon:b,more:C,popupClassName:S,children:w,items:O,animated:R,style:N,indicatorSize:P,indicator:L}=e,z=JM(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:J}=z,{direction:X,tabs:j,getPrefixCls:H,getPopupContainer:U}=v.useContext(Ke),D=H("tabs",J),W=Sn(D),[A,k,G]=YM(D,W);let Z;d==="editable-card"&&(Z={onEdit:(B,ae)=>{let{key:ee,event:me}=ae;h==null||h(B==="add"?me:ee,B)},removeIcon:(t=g??(j==null?void 0:j.removeIcon))!==null&&t!==void 0?t:v.createElement(uo,null),addIcon:(m??(j==null?void 0:j.addIcon))||v.createElement(J_,null),showAdd:_!==!0});const q=H();if(ne.env.NODE_ENV!=="production"){const B=Pt("Tabs");ne.env.NODE_ENV!=="production"&&B(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),ne.env.NODE_ENV!=="production"&&B(!(P||j!=null&&j.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const V=mo(E),Y=zM(O,w),re=FM(D,R),se=Object.assign(Object.assign({},j==null?void 0:j.style),N),F={align:(n=L==null?void 0:L.align)!==null&&n!==void 0?n:(r=j==null?void 0:j.indicator)===null||r===void 0?void 0:r.align,size:(l=(i=(o=L==null?void 0:L.size)!==null&&o!==void 0?o:P)!==null&&i!==void 0?i:(a=j==null?void 0:j.indicator)===null||a===void 0?void 0:a.size)!==null&&l!==void 0?l:j==null?void 0:j.indicatorSize};return A(v.createElement(dy,Object.assign({direction:X,getPopupContainer:U},z,{items:Y,className:ce({[`${D}-${V}`]:V,[`${D}-card`]:["card","editable-card"].includes(d),[`${D}-editable-card`]:d==="editable-card",[`${D}-centered`]:p},j==null?void 0:j.className,y,x,k,G,W),popupClassName:ce(S,k,G,W),style:se,editable:Z,more:Object.assign({icon:(f=(u=(c=(s=j==null?void 0:j.more)===null||s===void 0?void 0:s.icon)!==null&&c!==void 0?c:j==null?void 0:j.moreIcon)!==null&&u!==void 0?u:b)!==null&&f!==void 0?f:v.createElement(D_,null),transitionName:`${q}-slide-up`},C),prefixCls:D,animated:re,indicator:F})))};ba.TabPane=fy,ne.env.NODE_ENV!=="production"&&(ba.displayName="Tabs");const py=M.createContext({}),QM=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},ZM=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},eI=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},Td=(e,t)=>eI(e,t),tI=(e,t,n)=>({[`@media (min-width: ${be(t)})`]:Object.assign({},Td(e,n))}),nI=()=>({}),rI=()=>({}),oI=ln("Grid",QM,nI),iI=ln("Grid",e=>{const t=Lt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[ZM(t),Td(t,""),Td(t,"-xs"),Object.keys(n).map(r=>tI(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},rI);var aI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function hy(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const sI=["xs","sm","md","lg","xl","xxl"],Pd=v.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=v.useContext(Ke),{gutter:o,wrap:i}=v.useContext(py),{prefixCls:a,span:l,order:s,offset:c,push:u,pull:f,className:d,children:y,flex:x,style:E}=e,h=aI(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),_=n("col",a),[p,m,g]=iI(_),b={};let C={};sI.forEach(O=>{let R={};const N=e[O];typeof N=="number"?R.span=N:typeof N=="object"&&(R=N||{}),delete h[O],C=Object.assign(Object.assign({},C),{[`${_}-${O}-${R.span}`]:R.span!==void 0,[`${_}-${O}-order-${R.order}`]:R.order||R.order===0,[`${_}-${O}-offset-${R.offset}`]:R.offset||R.offset===0,[`${_}-${O}-push-${R.push}`]:R.push||R.push===0,[`${_}-${O}-pull-${R.pull}`]:R.pull||R.pull===0,[`${_}-rtl`]:r==="rtl"}),R.flex&&(C[`${_}-${O}-flex`]=!0,b[`--${_}-${O}-flex`]=hy(R.flex))});const S=ce(_,{[`${_}-${l}`]:l!==void 0,[`${_}-order-${s}`]:s,[`${_}-offset-${c}`]:c,[`${_}-push-${u}`]:u,[`${_}-pull-${f}`]:f},d,C,m,g),w={};if(o&&o[0]>0){const O=o[0]/2;w.paddingLeft=O,w.paddingRight=O}return x&&(w.flex=hy(x),i===!1&&!w.minWidth&&(w.minWidth=0)),p(v.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign({},w),E),b),className:S,ref:t}),y))});ne.env.NODE_ENV!=="production"&&(Pd.displayName="Col");var lI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function my(e,t){const[n,r]=v.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<pa.length;i++){const a=pa[i];if(!t[a])continue;const l=e[a];if(l!==void 0){r(l);return}}};return v.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const gy=v.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:c}=e,u=lI(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:d}=v.useContext(Ke),[y,x]=v.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[E,h]=v.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),_=my(o,E),p=my(r,E),m=v.useRef(s),g=TR();v.useEffect(()=>{const j=g.subscribe(H=>{h(H);const U=m.current||0;(!Array.isArray(U)&&typeof U=="object"||Array.isArray(U)&&(typeof U[0]=="object"||typeof U[1]=="object"))&&x(H)});return()=>g.unsubscribe(j)},[]);const b=()=>{const j=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((U,D)=>{if(typeof U=="object")for(let W=0;W<pa.length;W++){const A=pa[W];if(y[A]&&U[A]!==void 0){j[D]=U[A];break}}else j[D]=U}),j},C=f("row",n),[S,w,O]=oI(C),R=b(),N=ce(C,{[`${C}-no-wrap`]:c===!1,[`${C}-${p}`]:p,[`${C}-${_}`]:_,[`${C}-rtl`]:d==="rtl"},i,w,O),P={},L=R[0]!=null&&R[0]>0?R[0]/-2:void 0;L&&(P.marginLeft=L,P.marginRight=L);const[z,J]=R;P.rowGap=J;const X=v.useMemo(()=>({gutter:[z,J],wrap:c}),[z,J,c]);return S(v.createElement(py.Provider,{value:X},v.createElement("div",Object.assign({},u,{className:N,style:Object.assign(Object.assign({},P),a),ref:t}),l)))});ne.env.NODE_ENV!=="production"&&(gy.displayName="Row");function cI(e){return!!(e.addonBefore||e.addonAfter)}function uI(e){return!!(e.prefix||e.suffix||e.allowClear)}function vy(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function tl(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=vy(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=vy(t,e,r),n(o);return}n(o)}}function dI(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var _y=M.forwardRef(function(e,t){var n,r,o=e.inputElement,i=e.children,a=e.prefixCls,l=e.prefix,s=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.style,y=e.disabled,x=e.readOnly,E=e.focused,h=e.triggerFocus,_=e.allowClear,p=e.value,m=e.handleReset,g=e.hidden,b=e.classes,C=e.classNames,S=e.dataAttrs,w=e.styles,O=e.components,R=e.onClear,N=i??o,P=(O==null?void 0:O.affixWrapper)||"span",L=(O==null?void 0:O.groupWrapper)||"span",z=(O==null?void 0:O.wrapper)||"span",J=(O==null?void 0:O.groupAddon)||"span",X=M.useRef(null),j=function(ee){var me;(me=X.current)!==null&&me!==void 0&&me.contains(ee.target)&&(h==null||h())},H=uI(e),U=M.cloneElement(N,{value:p,className:ce(N.props.className,!H&&(C==null?void 0:C.variant))||null}),D=M.useRef(null);if(M.useImperativeHandle(t,function(){return{nativeElement:D.current||X.current}}),H){var W=null;if(_){var A=!y&&!x&&p,k="".concat(a,"-clear-icon"),G=De(_)==="object"&&_!==null&&_!==void 0&&_.clearIcon?_.clearIcon:"✖";W=M.createElement("span",{onClick:function(ee){m==null||m(ee),R==null||R()},onMouseDown:function(ee){return ee.preventDefault()},className:ce(k,oe(oe({},"".concat(k,"-hidden"),!A),"".concat(k,"-has-suffix"),!!s)),role:"button",tabIndex:-1},G)}var Z="".concat(a,"-affix-wrapper"),q=ce(Z,oe(oe(oe(oe(oe({},"".concat(a,"-disabled"),y),"".concat(Z,"-disabled"),y),"".concat(Z,"-focused"),E),"".concat(Z,"-readonly"),x),"".concat(Z,"-input-with-clear-btn"),s&&_&&p),b==null?void 0:b.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),V=(s||_)&&M.createElement("span",{className:ce("".concat(a,"-suffix"),C==null?void 0:C.suffix),style:w==null?void 0:w.suffix},W,s);U=M.createElement(P,Pe({className:q,style:w==null?void 0:w.affixWrapper,onClick:j},S==null?void 0:S.affixWrapper,{ref:X}),l&&M.createElement("span",{className:ce("".concat(a,"-prefix"),C==null?void 0:C.prefix),style:w==null?void 0:w.prefix},l),U,V)}if(cI(e)){var Y="".concat(a,"-group"),re="".concat(Y,"-addon"),se="".concat(Y,"-wrapper"),F=ce("".concat(a,"-wrapper"),Y,b==null?void 0:b.wrapper,C==null?void 0:C.wrapper),B=ce(se,oe({},"".concat(se,"-disabled"),y),b==null?void 0:b.group,C==null?void 0:C.groupWrapper);U=M.createElement(L,{className:B,ref:D},M.createElement(z,{className:F},c&&M.createElement(J,{className:re},c),U,u&&M.createElement(J,{className:re},u)))}return M.cloneElement(U,{className:ce((n=U.props)===null||n===void 0?void 0:n.className,f)||null,style:ie(ie({},(r=U.props)===null||r===void 0?void 0:r.style),d),hidden:g})}),fI=["show"];function yy(e,t){return v.useMemo(function(){var n={};t&&(n.show=De(t)==="object"&&t.formatter?t.formatter:!!t),n=ie(ie({},n),e);var r=n,o=r.show,i=ot(r,fI);return ie(ie({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var pI=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],hI=M.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,d=e.htmlSize,y=e.className,x=e.maxLength,E=e.suffix,h=e.showCount,_=e.count,p=e.type,m=p===void 0?"text":p,g=e.classes,b=e.classNames,C=e.styles,S=e.onCompositionStart,w=e.onCompositionEnd,O=ot(e,pI),R=M.useState(!1),N=he(R,2),P=N[0],L=N[1],z=M.useRef(!1),J=M.useRef(!1),X=M.useRef(null),j=M.useRef(null),H=function(we){X.current&&dI(X.current,we)},U=Kn(e.defaultValue,{value:e.value}),D=he(U,2),W=D[0],A=D[1],k=W==null?"":String(W),G=M.useState(null),Z=he(G,2),q=Z[0],V=Z[1],Y=yy(_,h),re=Y.max||x,se=Y.strategy(k),F=!!re&&se>re;M.useImperativeHandle(t,function(){var ve;return{focus:H,blur:function(){var Ce;(Ce=X.current)===null||Ce===void 0||Ce.blur()},setSelectionRange:function(Ce,Ee,We){var Ue;(Ue=X.current)===null||Ue===void 0||Ue.setSelectionRange(Ce,Ee,We)},select:function(){var Ce;(Ce=X.current)===null||Ce===void 0||Ce.select()},input:X.current,nativeElement:((ve=j.current)===null||ve===void 0?void 0:ve.nativeElement)||X.current}}),M.useEffect(function(){L(function(ve){return ve&&f?!1:ve})},[f]);var B=function(we,Ce,Ee){var We=Ce;if(!z.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Ce)>Y.max){if(We=Y.exceedFormatter(Ce,{max:Y.max}),Ce!==We){var Ue,Je;V([((Ue=X.current)===null||Ue===void 0?void 0:Ue.selectionStart)||0,((Je=X.current)===null||Je===void 0?void 0:Je.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;A(We),X.current&&tl(X.current,we,r,We)};M.useEffect(function(){if(q){var ve;(ve=X.current)===null||ve===void 0||ve.setSelectionRange.apply(ve,Se(q))}},[q]);var ae=function(we){B(we,we.target.value,{source:"change"})},ee=function(we){z.current=!1,B(we,we.currentTarget.value,{source:"compositionEnd"}),w==null||w(we)},me=function(we){a&&we.key==="Enter"&&!J.current&&(J.current=!0,a(we)),l==null||l(we)},pe=function(we){we.key==="Enter"&&(J.current=!1),s==null||s(we)},xe=function(we){L(!0),o==null||o(we)},Ae=function(we){L(!1),i==null||i(we)},ue=function(we){A(""),H(),X.current&&tl(X.current,we,r)},Me=F&&"".concat(u,"-out-of-range"),Re=function(){var we=Vn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return M.createElement("input",Pe({autoComplete:n},we,{onChange:ae,onFocus:xe,onBlur:Ae,onKeyDown:me,onKeyUp:pe,className:ce(u,oe({},"".concat(u,"-disabled"),f),b==null?void 0:b.input),style:C==null?void 0:C.input,ref:X,size:d,type:m,onCompositionStart:function(Ee){z.current=!0,S==null||S(Ee)},onCompositionEnd:ee}))},$e=function(){var we=Number(re)>0;if(E||Y.show){var Ce=Y.showFormatter?Y.showFormatter({value:k,count:se,maxLength:re}):"".concat(se).concat(we?" / ".concat(re):"");return M.createElement(M.Fragment,null,Y.show&&M.createElement("span",{className:ce("".concat(u,"-show-count-suffix"),oe({},"".concat(u,"-show-count-has-suffix"),!!E),b==null?void 0:b.count),style:ie({},C==null?void 0:C.count)},Ce),E)}return null};return M.createElement(_y,Pe({},O,{prefixCls:u,className:ce(y,Me),handleReset:ue,value:k,focused:P,triggerFocus:H,suffix:$e(),disabled:f,classes:g,classNames:b,styles:C}),Re())});const mI=e=>{const{getPrefixCls:t,direction:n}=M.useContext(Ke),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=Ed(a),c=ce(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),u=M.useContext(On),f=M.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return ne.env.NODE_ENV!=="production"&&Pt("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),l(v.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},v.createElement(On.Provider,{value:f},e.children)))},by=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:M.createElement(Xo,null)}),t};function wy(e,t){const n=M.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return M.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function gI(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var vI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function _I(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const wa=M.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:f,addonAfter:d,addonBefore:y,className:x,style:E,styles:h,rootClassName:_,onChange:p,classNames:m,variant:g}=e,b=vI(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(ne.env.NODE_ENV!=="production"){const{deprecated:ee}=Pt("Input");ee(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:S,input:w}=M.useContext(Ke),O=C("input",r),R=M.useRef(null),N=Sn(O),[P,L,z]=Ed(O,N),{compactSize:J,compactItemClassnames:X}=Cu(O,S),j=mo(ee=>{var me;return(me=a??J)!==null&&me!==void 0?me:ee}),H=M.useContext(Br),U=l??H,{status:D,hasFeedback:W,feedbackIcon:A}=M.useContext(On),k=ld(D,i),G=gI(e)||!!W,Z=M.useRef(G);if(ne.env.NODE_ENV!=="production"){const ee=Pt("Input");M.useEffect(()=>{var me;G&&!Z.current&&ne.env.NODE_ENV!=="production"&&ee(document.activeElement===((me=R.current)===null||me===void 0?void 0:me.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),Z.current=G},[G])}const q=wy(R,!0),V=ee=>{q(),s==null||s(ee)},Y=ee=>{q(),c==null||c(ee)},re=ee=>{q(),p==null||p(ee)},se=(W||u)&&M.createElement(M.Fragment,null,u,W&&A),F=by(f??(w==null?void 0:w.allowClear)),[B,ae]=s_("input",g,o);return P(M.createElement(hI,Object.assign({ref:qn(t,R),prefixCls:O,autoComplete:w==null?void 0:w.autoComplete},b,{disabled:U,onBlur:V,onFocus:Y,style:Object.assign(Object.assign({},w==null?void 0:w.style),E),styles:Object.assign(Object.assign({},w==null?void 0:w.styles),h),suffix:se,allowClear:F,className:ce(x,_,z,N,X,w==null?void 0:w.className),onChange:re,addonBefore:y&&M.createElement(Fs,{form:!0,space:!0},y),addonAfter:d&&M.createElement(Fs,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},m),w==null?void 0:w.classNames),{input:ce({[`${O}-sm`]:j==="small",[`${O}-lg`]:j==="large",[`${O}-rtl`]:S==="rtl"},m==null?void 0:m.input,(n=w==null?void 0:w.classNames)===null||n===void 0?void 0:n.input,L),variant:ce({[`${O}-${B}`]:ae},sd(O,k)),affixWrapper:ce({[`${O}-affix-wrapper-sm`]:j==="small",[`${O}-affix-wrapper-lg`]:j==="large",[`${O}-affix-wrapper-rtl`]:S==="rtl"},L),wrapper:ce({[`${O}-group-rtl`]:S==="rtl"},L),groupWrapper:ce({[`${O}-group-wrapper-sm`]:j==="small",[`${O}-group-wrapper-lg`]:j==="large",[`${O}-group-wrapper-rtl`]:S==="rtl",[`${O}-group-wrapper-${B}`]:ae},sd(`${O}-group-wrapper`,k,W),L)})})))});ne.env.NODE_ENV!=="production"&&(wa.displayName="Input");const yI=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},bI=ln(["Input","OTP"],e=>{const t=Lt(e,B_(e));return[yI(t)]},z_);var wI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xI=v.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,l=wI(e,["value","onChange","onActiveChange","index","mask"]),s=n&&typeof a=="string"?a:n,c=x=>{r(i,x.target.value)},u=v.useRef(null);v.useImperativeHandle(t,()=>u.current);const f=()=>{kt(()=>{var x;const E=(x=u.current)===null||x===void 0?void 0:x.input;document.activeElement===E&&E&&E.select()})},d=x=>{let{key:E}=x;E==="ArrowLeft"?o(i-1):E==="ArrowRight"&&o(i+1),f()},y=x=>{x.key==="Backspace"&&!n&&o(i-1),f()};return v.createElement(wa,Object.assign({},l,{ref:u,value:s,onInput:c,onFocus:f,onKeyDown:d,onKeyUp:y,onMouseDown:f,onMouseUp:f,type:a===!0?"password":"text"}))});var SI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function nl(e){return(e||"").split("")}const CI=v.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:s,variant:c,disabled:u,status:f,autoFocus:d,mask:y}=e,x=SI(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if(ne.env.NODE_ENV!=="production"){const W=Pt("Input.OTP");ne.env.NODE_ENV!=="production"&&W(!(typeof y=="string"&&y.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:E,direction:h}=v.useContext(Ke),_=E("otp",n),p=Zi(x,{aria:!0,data:!0,attr:!0}),m=Sn(_),[g,b,C]=bI(_,m),S=mo(W=>o??W),w=v.useContext(On),O=ld(w.status,f),R=v.useMemo(()=>Object.assign(Object.assign({},w),{status:O,hasFeedback:!1,feedbackIcon:null}),[w,O]),N=v.useRef(null),P=v.useRef({});v.useImperativeHandle(t,()=>({focus:()=>{var W;(W=P.current[0])===null||W===void 0||W.focus()},blur:()=>{var W;for(let A=0;A<r;A+=1)(W=P.current[A])===null||W===void 0||W.blur()},nativeElement:N.current}));const L=W=>s?s(W):W,[z,J]=v.useState(nl(L(i||"")));v.useEffect(()=>{a!==void 0&&J(nl(a))},[a]);const X=Zt(W=>{J(W),l&&W.length===r&&W.every(A=>A)&&W.some((A,k)=>z[k]!==A)&&l(W.join(""))}),j=Zt((W,A)=>{let k=Se(z);for(let Z=0;Z<W;Z+=1)k[Z]||(k[Z]="");A.length<=1?k[W]=A:k=k.slice(0,W).concat(nl(A)),k=k.slice(0,r);for(let Z=k.length-1;Z>=0&&!k[Z];Z-=1)k.pop();const G=L(k.map(Z=>Z||" ").join(""));return k=nl(G).map((Z,q)=>Z===" "&&!k[q]?k[q]:Z),k}),H=(W,A)=>{var k;const G=j(W,A),Z=Math.min(W+A.length,r-1);Z!==W&&((k=P.current[Z])===null||k===void 0||k.focus()),X(G)},U=W=>{var A;(A=P.current[W])===null||A===void 0||A.focus()},D={variant:c,disabled:u,status:O,mask:y};return g(v.createElement("div",Object.assign({},p,{ref:N,className:ce(_,{[`${_}-sm`]:S==="small",[`${_}-lg`]:S==="large",[`${_}-rtl`]:h==="rtl"},C,b)}),v.createElement(On.Provider,{value:R},Array.from({length:r}).map((W,A)=>{const k=`otp-${A}`,G=z[A]||"";return v.createElement(xI,Object.assign({ref:Z=>{P.current[A]=Z},key:k,index:A,size:S,htmlSize:1,className:`${_}-input`,onChange:H,value:G,onActiveChange:U,autoFocus:A===0&&d},D))}))))});var EI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},OI=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:EI}))},xy=v.forwardRef(OI);ne.env.NODE_ENV!=="production"&&(xy.displayName="EyeInvisibleOutlined");var $I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},TI=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:$I}))},Sy=v.forwardRef(TI);ne.env.NODE_ENV!=="production"&&(Sy.displayName="EyeOutlined");var PI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const RI=e=>e?v.createElement(Sy,null):v.createElement(xy,null),jI={click:"onClick",hover:"onMouseOver"},Cy=v.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=RI}=e,a=v.useContext(Br),l=n??a,s=typeof o=="object"&&o.visible!==void 0,[c,u]=M.useState(()=>s?o.visible:!1),f=M.useRef(null);v.useEffect(()=>{s&&u(o.visible)},[s,o]);const d=wy(f),y=()=>{l||(c&&d(),u(R=>{var N;const P=!R;return typeof o=="object"&&((N=o.onVisibleChange)===null||N===void 0||N.call(o,P)),P}))},x=R=>{const N=jI[r]||"",P=i(c),L={[N]:y,className:`${R}-icon`,key:"passwordIcon",onMouseDown:z=>{z.preventDefault()},onMouseUp:z=>{z.preventDefault()}};return v.cloneElement(v.isValidElement(P)?P:v.createElement("span",null,P),L)},{className:E,prefixCls:h,inputPrefixCls:_,size:p}=e,m=PI(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=v.useContext(Ke),b=g("input",_),C=g("input-password",h),S=o&&x(C),w=ce(C,E,{[`${C}-${p}`]:!!p}),O=Object.assign(Object.assign({},Vn(m,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:w,prefixCls:b,suffix:S});return p&&(O.size=p),v.createElement(wa,Object.assign({ref:qn(t,f)},O))});ne.env.NODE_ENV!=="production"&&(Cy.displayName="Input.Password");var MI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ey=v.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:c,disabled:u,onSearch:f,onChange:d,onCompositionStart:y,onCompositionEnd:x}=e,E=MI(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:_}=v.useContext(Ke),p=v.useRef(!1),m=h("input-search",n),g=h("input",r),{compactSize:b}=Cu(m,_),C=mo(D=>{var W;return(W=i??b)!==null&&W!==void 0?W:D}),S=v.useRef(null),w=D=>{D!=null&&D.target&&D.type==="click"&&f&&f(D.target.value,D,{source:"clear"}),d==null||d(D)},O=D=>{var W;document.activeElement===((W=S.current)===null||W===void 0?void 0:W.input)&&D.preventDefault()},R=D=>{var W,A;f&&f((A=(W=S.current)===null||W===void 0?void 0:W.input)===null||A===void 0?void 0:A.value,D,{source:"input"})},N=D=>{p.current||c||R(D)},P=typeof l=="boolean"?v.createElement(l_,null):null,L=`${m}-button`;let z;const J=l||{},X=J.type&&J.type.__ANT_BUTTON===!0;X||J.type==="button"?z=wr(J,Object.assign({onMouseDown:O,onClick:D=>{var W,A;(A=(W=J==null?void 0:J.props)===null||W===void 0?void 0:W.onClick)===null||A===void 0||A.call(W,D),R(D)},key:"enterButton"},X?{className:L,size:C}:{})):z=v.createElement(cr,{className:L,type:l?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:O,onClick:R,loading:c,icon:P},l),s&&(z=[z,wr(s,{key:"addonAfter"})]);const j=ce(m,{[`${m}-rtl`]:_==="rtl",[`${m}-${C}`]:!!C,[`${m}-with-button`]:!!l},o),H=D=>{p.current=!0,y==null||y(D)},U=D=>{p.current=!1,x==null||x(D)};return v.createElement(wa,Object.assign({ref:qn(S,t),onPressEnter:N},E,{size:C,onCompositionStart:H,onCompositionEnd:U,prefixCls:g,addonAfter:z,suffix:a,onChange:w,className:j,disabled:u}))});ne.env.NODE_ENV!=="production"&&(Ey.displayName="Search");var II=`
|
|
209
|
+
min-height:0 !important;
|
|
210
|
+
max-height:none !important;
|
|
211
|
+
height:0 !important;
|
|
212
|
+
visibility:hidden !important;
|
|
213
|
+
overflow:hidden !important;
|
|
214
|
+
position:absolute !important;
|
|
215
|
+
z-index:-1000 !important;
|
|
216
|
+
top:0 !important;
|
|
217
|
+
right:0 !important;
|
|
218
|
+
pointer-events: none !important;
|
|
219
|
+
`,AI=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Rd={},Mn;function NI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Rd[n])return Rd[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=AI.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Rd[n]=s),s}function kI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Mn||(Mn=document.createElement("textarea"),Mn.setAttribute("tab-index","-1"),Mn.setAttribute("aria-hidden","true"),document.body.appendChild(Mn)),e.getAttribute("wrap")?Mn.setAttribute("wrap",e.getAttribute("wrap")):Mn.removeAttribute("wrap");var o=NI(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Mn.setAttribute("style","".concat(s,";").concat(II)),Mn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=Mn.scrollHeight;if(l==="border-box"?d+=a:l==="content-box"&&(d-=i),n!==null||r!==null){Mn.value=" ";var y=Mn.scrollHeight-i;n!==null&&(c=y*n,l==="border-box"&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(u=y*r,l==="border-box"&&(u=u+i+a),f=d>u?"":"hidden",d=Math.min(u,d))}var x={height:d,overflowY:f,resize:"none"};return c&&(x.minHeight=c),u&&(x.maxHeight=u),x}var LI=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],jd=0,Md=1,Id=2,FI=v.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,u=n.disabled,f=n.onChange,d=n.onInternalAutoSize,y=ot(n,LI),x=Kn(o,{value:i,postState:function(Z){return Z??""}}),E=he(x,2),h=E[0],_=E[1],p=function(Z){_(Z.target.value),f==null||f(Z)},m=v.useRef();v.useImperativeHandle(t,function(){return{textArea:m.current}});var g=v.useMemo(function(){return a&&De(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),b=he(g,2),C=b[0],S=b[1],w=!!a,O=function(){try{if(document.activeElement===m.current){var Z=m.current,q=Z.selectionStart,V=Z.selectionEnd,Y=Z.scrollTop;m.current.setSelectionRange(q,V),m.current.scrollTop=Y}}catch{}},R=v.useState(Id),N=he(R,2),P=N[0],L=N[1],z=v.useState(),J=he(z,2),X=J[0],j=J[1],H=function(){L(jd),ne.env.NODE_ENV==="test"&&(d==null||d())};Kt(function(){w&&H()},[i,C,S,w]),Kt(function(){if(P===jd)L(Md);else if(P===Md){var G=kI(m.current,!1,C,S);L(Id),j(G)}else O()},[P]);var U=v.useRef(),D=function(){kt.cancel(U.current)},W=function(Z){P===Id&&(l==null||l(Z),a&&(D(),U.current=kt(function(){H()})))};v.useEffect(function(){return D},[]);var A=w?X:null,k=ie(ie({},c),A);return(P===jd||P===Md)&&(k.overflowY="hidden",k.overflowX="hidden"),v.createElement(ar,{onResize:W,disabled:!(a||l)},v.createElement("textarea",Pe({},y,{ref:m,style:k,className:ce(r,s,oe({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:p})))}),DI=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],BI=M.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,d=e.suffix,y=e.prefixCls,x=y===void 0?"rc-textarea":y,E=e.showCount,h=e.count,_=e.className,p=e.style,m=e.disabled,g=e.hidden,b=e.classNames,C=e.styles,S=e.onResize,w=e.onClear,O=e.onPressEnter,R=e.readOnly,N=e.autoSize,P=e.onKeyDown,L=ot(e,DI),z=Kn(r,{value:o,defaultValue:r}),J=he(z,2),X=J[0],j=J[1],H=X==null?"":String(X),U=M.useState(!1),D=he(U,2),W=D[0],A=D[1],k=M.useRef(!1),G=M.useState(null),Z=he(G,2),q=Z[0],V=Z[1],Y=M.useRef(null),re=M.useRef(null),se=function(){var je;return(je=re.current)===null||je===void 0?void 0:je.textArea},F=function(){se().focus()};M.useImperativeHandle(t,function(){var qe;return{resizableTextArea:re.current,focus:F,blur:function(){se().blur()},nativeElement:((qe=Y.current)===null||qe===void 0?void 0:qe.nativeElement)||se()}}),M.useEffect(function(){A(function(qe){return!m&&qe})},[m]);var B=M.useState(null),ae=he(B,2),ee=ae[0],me=ae[1];M.useEffect(function(){if(ee){var qe;(qe=se()).setSelectionRange.apply(qe,Se(ee))}},[ee]);var pe=yy(h,E),xe=(n=pe.max)!==null&&n!==void 0?n:c,Ae=Number(xe)>0,ue=pe.strategy(H),Me=!!xe&&ue>xe,Re=function(je,ct){var lt=ct;!k.current&&pe.exceedFormatter&&pe.max&&pe.strategy(ct)>pe.max&&(lt=pe.exceedFormatter(ct,{max:pe.max}),ct!==lt&&me([se().selectionStart||0,se().selectionEnd||0])),j(lt),tl(je.currentTarget,je,l,lt)},$e=function(je){k.current=!0,u==null||u(je)},ve=function(je){k.current=!1,Re(je,je.currentTarget.value),f==null||f(je)},we=function(je){Re(je,je.target.value)},Ce=function(je){je.key==="Enter"&&O&&O(je),P==null||P(je)},Ee=function(je){A(!0),i==null||i(je)},We=function(je){A(!1),a==null||a(je)},Ue=function(je){j(""),F(),tl(se(),je,l)},Je=d,mt;pe.show&&(pe.showFormatter?mt=pe.showFormatter({value:H,count:ue,maxLength:xe}):mt="".concat(ue).concat(Ae?" / ".concat(xe):""),Je=M.createElement(M.Fragment,null,Je,M.createElement("span",{className:ce("".concat(x,"-data-count"),b==null?void 0:b.count),style:C==null?void 0:C.count},mt)));var bt=function(je){var ct;S==null||S(je),(ct=se())!==null&&ct!==void 0&&ct.style.height&&V(!0)},dt=!N&&!E&&!s;return M.createElement(_y,{ref:Y,value:H,allowClear:s,handleReset:Ue,suffix:Je,prefixCls:x,classNames:ie(ie({},b),{},{affixWrapper:ce(b==null?void 0:b.affixWrapper,oe(oe({},"".concat(x,"-show-count"),E),"".concat(x,"-textarea-allow-clear"),s))}),disabled:m,focused:W,className:ce(_,Me&&"".concat(x,"-out-of-range")),style:ie(ie({},p),q&&!dt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof mt=="string"?mt:void 0}},hidden:g,readOnly:R,onClear:w},M.createElement(FI,Pe({},L,{autoSize:N,maxLength:c,onKeyDown:Ce,onChange:we,onFocus:Ee,onBlur:We,onCompositionStart:$e,onCompositionEnd:ve,className:ce(b==null?void 0:b.textarea),style:ie(ie({},C==null?void 0:C.textarea),{},{resize:p==null?void 0:p.resize}),disabled:m,prefixCls:x,onResize:bt,ref:re,readOnly:R})))}),zI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qI=M.forwardRef((e,t)=>{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:s,allowClear:c,classNames:u,rootClassName:f,className:d,style:y,styles:x,variant:E}=e,h=zI(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(ne.env.NODE_ENV!=="production"){const{deprecated:D}=Pt("TextArea");D(!("bordered"in e),"bordered","variant")}const{getPrefixCls:_,direction:p,textArea:m}=v.useContext(Ke),g=mo(a),b=v.useContext(Br),C=l??b,{status:S,hasFeedback:w,feedbackIcon:O}=v.useContext(On),R=ld(S,s),N=v.useRef(null);v.useImperativeHandle(t,()=>{var D;return{resizableTextArea:(D=N.current)===null||D===void 0?void 0:D.resizableTextArea,focus:W=>{var A,k;_I((k=(A=N.current)===null||A===void 0?void 0:A.resizableTextArea)===null||k===void 0?void 0:k.textArea,W)},blur:()=>{var W;return(W=N.current)===null||W===void 0?void 0:W.blur()}}});const P=_("input",o),L=Sn(P),[z,J,X]=Ed(P,L),[j,H]=s_("textArea",E,i),U=by(c??(m==null?void 0:m.allowClear));return z(v.createElement(BI,Object.assign({autoComplete:m==null?void 0:m.autoComplete},h,{style:Object.assign(Object.assign({},m==null?void 0:m.style),y),styles:Object.assign(Object.assign({},m==null?void 0:m.styles),x),disabled:C,allowClear:U,className:ce(X,L,d,f,m==null?void 0:m.className),classNames:Object.assign(Object.assign(Object.assign({},u),m==null?void 0:m.classNames),{textarea:ce({[`${P}-sm`]:g==="small",[`${P}-lg`]:g==="large"},J,u==null?void 0:u.textarea,(n=m==null?void 0:m.classNames)===null||n===void 0?void 0:n.textarea),variant:ce({[`${P}-${j}`]:H},sd(P,R)),affixWrapper:ce(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:p==="rtl",[`${P}-affix-wrapper-sm`]:g==="small",[`${P}-affix-wrapper-lg`]:g==="large",[`${P}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},J)}),prefixCls:P,suffix:w&&v.createElement("span",{className:`${P}-textarea-suffix`},O),ref:N})))}),xo=wa;xo.Group=mI,xo.Search=Ey,xo.TextArea=qI,xo.Password=Cy,xo.OTP=CI;function rl(e){const[t,n]=v.useState(e);return v.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const VI=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
|
|
220
|
+
opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
|
|
221
|
+
transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},HI=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${be(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Oy=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},WI=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},_n(e)),HI(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Oy(e,e.controlHeightSM)),"&-large":Object.assign({},Oy(e,e.controlHeightLG))})}},UI=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},_n(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
222
|
+
&-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:l,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:ed,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},$y=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},GI=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
223
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},er=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ty=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:er(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},KI=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
224
|
+
${r}-col-24${n}-label,
|
|
225
|
+
${r}-col-xl-24${n}-label`]:er(e)}},[`@media (max-width: ${be(e.screenXSMax)})`]:[Ty(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:er(e)}}}],[`@media (max-width: ${be(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:er(e)}}},[`@media (max-width: ${be(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:er(e)}}},[`@media (max-width: ${be(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:er(e)}}}}},XI=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
|
|
226
|
+
${n}-col-24${t}-label,
|
|
227
|
+
${n}-col-xl-24${t}-label`]:er(e),[`@media (max-width: ${be(e.screenXSMax)})`]:[Ty(e),{[t]:{[`${n}-col-xs-24${t}-label`]:er(e)}}],[`@media (max-width: ${be(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:er(e)}},[`@media (max-width: ${be(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:er(e)}},[`@media (max-width: ${be(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:er(e)}}}},YI=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Py=(e,t)=>Lt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Ad=ln("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Py(e,n);return[WI(r),UI(r),VI(r),$y(r,r.componentCls),$y(r,r.formItemCls),GI(r),KI(r),XI(r),XT(r),ed]},YI,{order:-1e3}),Ry=[];function Nd(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const jy=e=>{let{help:t,helpStatus:n,errors:r=Ry,warnings:o=Ry,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=v.useContext(Ku),c=`${s}-item-explain`,u=Sn(s),[f,d,y]=Ad(s,u),x=M.useMemo(()=>fg(s),[s]),E=rl(r),h=rl(o),_=v.useMemo(()=>t!=null?[Nd(t,"help",n)]:[].concat(Se(E.map((m,g)=>Nd(m,"error","error",g))),Se(h.map((m,g)=>Nd(m,"warning","warning",g)))),[t,n,E,h]),p={};return a&&(p.id=`${a}_help`),f(v.createElement(Jn,{motionDeadline:x.motionDeadline,motionName:`${s}-show-help`,visible:!!_.length,onVisibleChanged:l},m=>{const{className:g,style:b}=m;return v.createElement("div",Object.assign({},p,{className:ce(c,g,y,u,i,d),style:b,role:"alert"}),v.createElement(Rm,Object.assign({keys:_},fg(s),{motionName:`${s}-show-help-item`,component:!1}),C=>{const{key:S,error:w,errorStatus:O,className:R,style:N}=C;return v.createElement("div",{key:S,className:ce(R,{[`${c}-${O}`]:O}),style:N},w)}))}))},JI=["parentNode"],QI="form_item";function xa(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function My(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:JI.includes(n)?`${QI}_${n}`:n}function Iy(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function Ay(e){return xa(e).join("_")}function ZI(e,t){const n=t.getFieldInstance(e),r=Bp(n);if(r)return r;const o=My(xa(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function Ny(e){const[t]=Uu(),n=v.useRef({}),r=v.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=Ay(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=ZI(o,r);a&&rO(a,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=Ay(o);return n.current[i]}}),[e,t]);return[r]}const ol={};function eA(e){let{name:t}=e;const n=Pt("Form");M.useEffect(()=>{if(t)return ol[t]=(ol[t]||0)+1,ne.env.NODE_ENV!=="production"&&n(ol[t]<=1,"usage","There exist multiple Form with same `name`."),()=>{ol[t]-=1}},[t])}var tA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nA=(e,t)=>{const n=v.useContext(Br),{getPrefixCls:r,direction:o,form:i}=v.useContext(Ke),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:u=n,form:f,colon:d,labelAlign:y,labelWrap:x,labelCol:E,wrapperCol:h,hideRequiredMark:_,layout:p="horizontal",scrollToFirstError:m,requiredMark:g,onFinishFailed:b,name:C,style:S,feedbackIcons:w,variant:O}=e,R=tA(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=mo(c),P=v.useContext(Ah);ne.env.NODE_ENV!=="production"&&eA(e);const L=M.useMemo(()=>g!==void 0?g:_?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[_,g,i]),z=d??(i==null?void 0:i.colon),J=r("form",a),X=Sn(J),[j,H,U]=Ad(J,X),D=ce(J,`${J}-${p}`,{[`${J}-hide-required-mark`]:L===!1,[`${J}-rtl`]:o==="rtl",[`${J}-${N}`]:N},U,X,H,i==null?void 0:i.className,l,s),[W]=Ny(f),{__INTERNAL__:A}=W;A.name=C;const k=M.useMemo(()=>({name:C,labelAlign:y,labelCol:E,labelWrap:x,wrapperCol:h,vertical:p==="vertical",colon:z,requiredMark:L,itemRef:A.itemRef,form:W,feedbackIcons:w}),[C,y,E,h,p,z,L,W,w]),G=v.useRef(null);v.useImperativeHandle(t,()=>{var V;return Object.assign(Object.assign({},W),{nativeElement:(V=G.current)===null||V===void 0?void 0:V.nativeElement})});const Z=(V,Y)=>{if(V){let re={block:"nearest"};typeof V=="object"&&(re=V),W.scrollToField(Y,re)}},q=V=>{if(b==null||b(V),V.errorFields.length){const Y=V.errorFields[0].name;if(m!==void 0){Z(m,Y);return}i&&i.scrollToFirstError!==void 0&&Z(i.scrollToFirstError,Y)}};return j(v.createElement(uv.Provider,{value:O},v.createElement(eu,{disabled:u},v.createElement(lo.Provider,{value:N},v.createElement(cv,{validateMessages:P},v.createElement(Sr.Provider,{value:k},v.createElement(Zo,Object.assign({id:C},R,{name:C,onFinishFailed:q,form:W,ref:G,style:Object.assign(Object.assign({},i==null?void 0:i.style),S),className:D}))))))))},ky=v.forwardRef(nA);ne.env.NODE_ENV!=="production"&&(ky.displayName="Form");function rA(e){if(typeof e=="function")return e;const t=ro(e);return t.length<=1?t[0]:t}const Ly=()=>{const{status:e,errors:t=[],warnings:n=[]}=M.useContext(On);if(ne.env.NODE_ENV!=="production"){const r=Pt("Form.Item");ne.env.NODE_ENV!=="production"&&r(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:e,errors:t,warnings:n}};Ly.Context=On;function oA(e){const[t,n]=v.useState(e),r=M.useRef(null),o=M.useRef([]),i=M.useRef(!1);v.useEffect(()=>(i.current=!1,()=>{i.current=!0,kt.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=kt(()=>{r.current=null,n(s=>{let c=s;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(l))}return[t,a]}function iA(){const{itemRef:e}=v.useContext(Sr),t=v.useRef({});function n(r,o){const i=o&&typeof o=="object"&&o.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=qn(e(r),i)),t.current.ref}return n}const aA=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},sA=Wo(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Py(e,n);return[aA(r)]}),lA=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:s,help:c,fieldId:u,marginBottom:f,onErrorVisibleChanged:d}=e,y=`${t}-item`,x=v.useContext(Sr),E=r||x.wrapperCol||{},h=ce(`${y}-control`,E.className),_=v.useMemo(()=>Object.assign({},x),[x]);delete _.labelCol,delete _.wrapperCol;const p=v.createElement("div",{className:`${y}-control-input`},v.createElement("div",{className:`${y}-control-input-content`},o)),m=v.useMemo(()=>({prefixCls:t,status:n}),[t,n]),g=f!==null||i.length||a.length?v.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},v.createElement(Ku.Provider,{value:m},v.createElement(jy,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:d})),!!f&&v.createElement("div",{style:{width:0,height:f}})):null,b={};u&&(b.id=`${u}_extra`);const C=s?v.createElement("div",Object.assign({},b,{className:`${y}-extra`}),s):null,S=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:p,errorList:g,extra:C}):v.createElement(v.Fragment,null,p,g,C);return v.createElement(Sr.Provider,{value:_},v.createElement(Pd,Object.assign({},E,{className:h}),S),v.createElement(sA,{prefixCls:t}))};var cA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},uA=function(t,n){return v.createElement(cn,Pe({},t,{ref:n,icon:cA}))},Fy=v.forwardRef(uA);ne.env.NODE_ENV!=="production"&&(Fy.displayName="QuestionCircleOutlined");var dA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function fA(e){return e?typeof e=="object"&&!v.isValidElement(e)?e:{title:e}:null}const pA=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:s,tooltip:c,vertical:u}=e;var f;const[d]=cs("Form"),{labelAlign:y,labelCol:x,labelWrap:E,colon:h}=v.useContext(Sr);if(!n)return null;const _=o||x||{},p=i||y,m=`${t}-item-label`,g=ce(m,p==="left"&&`${m}-left`,_.className,{[`${m}-wrap`]:!!E});let b=n;const C=a===!0||h!==!1&&a!==!1;C&&!u&&typeof n=="string"&&n.trim()&&(b=n.replace(/[:|:]\s*$/,""));const w=fA(c);if(w){const{icon:P=v.createElement(Fy,null)}=w,L=dA(w,["icon"]),z=v.createElement(Vr,Object.assign({},L),v.cloneElement(P,{className:`${t}-item-tooltip`,title:"",onClick:J=>{J.preventDefault()},tabIndex:null}));b=v.createElement(v.Fragment,null,b,z)}const O=s==="optional",R=typeof s=="function";R?b=s(b,{required:!!l}):O&&!l&&(b=v.createElement(v.Fragment,null,b,v.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((f=Fr.Form)===null||f===void 0?void 0:f.optional))));const N=ce({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:O||R,[`${t}-item-no-colon`]:!C});return v.createElement(Pd,Object.assign({},_,{className:g}),v.createElement("label",{htmlFor:r,className:N,title:typeof n=="string"?n:""},b))},hA={success:Ji,warning:Qi,error:Xo,validating:$s};function Dy(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:s}=e;const c=`${a}-item`,{feedbackIcons:u}=v.useContext(Sr),f=Iy(n,r,l,null,!!o,i),{isFormItemInput:d,status:y,hasFeedback:x,feedbackIcon:E}=v.useContext(On),h=v.useMemo(()=>{var _;let p;if(o){const g=o!==!0&&o.icons||u,b=f&&((_=g==null?void 0:g({status:f,errors:n,warnings:r}))===null||_===void 0?void 0:_[f]),C=f&&hA[f];p=b!==!1&&C?v.createElement("span",{className:ce(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},b||v.createElement(C,null)):null}const m={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:p,isFormItemInput:!0};return s&&(m.status=(f??y)||"",m.isFormItemInput=d,m.hasFeedback=!!(o??x),m.feedbackIcon=o!==void 0?m.feedbackIcon:E),m},[f,o,s,d,y]);return v.createElement(On.Provider,{value:h},t)}var mA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function gA(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:s,meta:c,hasFeedback:u,hidden:f,children:d,fieldId:y,required:x,isRequired:E,onSubItemMetaChange:h,layout:_}=e,p=mA(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),m=`${t}-item`,{requiredMark:g,vertical:b}=v.useContext(Sr),C=b||_==="vertical",S=v.useRef(null),w=rl(a),O=rl(l),R=i!=null,N=!!(R||a.length||l.length),P=!!S.current&&Is(S.current),[L,z]=v.useState(null);Kt(()=>{if(N&&S.current){const U=getComputedStyle(S.current);z(parseInt(U.marginBottom,10))}},[N,P]);const J=U=>{U||z(null)},j=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const D=U?w:c.errors,W=U?O:c.warnings;return Iy(D,W,c,"",!!u,s)}(),H=ce(m,n,r,{[`${m}-with-help`]:R||w.length||O.length,[`${m}-has-feedback`]:j&&u,[`${m}-has-success`]:j==="success",[`${m}-has-warning`]:j==="warning",[`${m}-has-error`]:j==="error",[`${m}-is-validating`]:j==="validating",[`${m}-hidden`]:f,[`${m}-${_}`]:_});return v.createElement("div",{className:H,style:o,ref:S},v.createElement(gy,Object.assign({className:`${m}-row`},Vn(p,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),v.createElement(pA,Object.assign({htmlFor:y},e,{requiredMark:g,required:x??E,prefixCls:t,vertical:C})),v.createElement(lA,Object.assign({},e,c,{errors:w,warnings:O,prefixCls:t,status:j,help:i,marginBottom:L,onErrorVisibleChanged:J}),v.createElement(lv.Provider,{value:h},v.createElement(Dy,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:j},d)))),!!L&&v.createElement("div",{className:`${m}-margin-offset`,style:{marginBottom:-L}}))}const vA="__SPLIT__";function _A(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const yA=v.memo(e=>{let{children:t}=e;return t},(e,t)=>_A(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function By(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function bA(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:u,messageVariables:f,trigger:d="onChange",validateTrigger:y,hidden:x,help:E,layout:h}=e,{getPrefixCls:_}=v.useContext(Ke),{name:p}=v.useContext(Sr),m=rA(s),g=typeof m=="function",b=v.useContext(lv),{validateTrigger:C}=v.useContext(vo),S=y!==void 0?y:C,w=t!=null,O=_("form",i),R=Sn(O),[N,P,L]=Ad(O,R),z=Pt("Form.Item");ne.env.NODE_ENV!=="production"&&ne.env.NODE_ENV!=="production"&&z(t!==null,"usage","`null` is passed as `name` property");const J=v.useContext(ra),X=v.useRef(),[j,H]=oA({}),[U,D]=co(()=>By()),W=Y=>{const re=J==null?void 0:J.getKey(Y.name);if(D(Y.destroy?By():Y,!0),n&&E!==!1&&b){let se=Y.name;if(Y.destroy)se=X.current||se;else if(re!==void 0){const[F,B]=re;se=[F].concat(Se(B)),X.current=se}b(Y,se)}},A=(Y,re)=>{H(se=>{const F=Object.assign({},se),ae=[].concat(Se(Y.name.slice(0,-1)),Se(re)).join(vA);return Y.destroy?delete F[ae]:F[ae]=Y,F})},[k,G]=v.useMemo(()=>{const Y=Se(U.errors),re=Se(U.warnings);return Object.values(j).forEach(se=>{Y.push.apply(Y,Se(se.errors||[])),re.push.apply(re,Se(se.warnings||[]))}),[Y,re]},[j,U.errors,U.warnings]),Z=iA();function q(Y,re,se){return n&&!x?v.createElement(Dy,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:U,errors:k,warnings:G,noStyle:!0},Y):v.createElement(gA,Object.assign({key:"row"},e,{className:ce(r,L,R,P),prefixCls:O,fieldId:re,isRequired:se,errors:k,warnings:G,meta:U,onSubItemMetaChange:A,layout:h}),Y)}if(!w&&!g&&!o)return N(q(m));let V={};return typeof u=="string"?V.label=u:t&&(V.label=String(t)),f&&(V=Object.assign(Object.assign({},V),f)),N(v.createElement(Hu,Object.assign({},e,{messageVariables:V,trigger:d,validateTrigger:S,onMetaChange:W}),(Y,re,se)=>{const F=xa(t).length&&re?re.name:[],B=My(F,p),ae=c!==void 0?c:!!(l!=null&&l.some(pe=>{if(pe&&typeof pe=="object"&&pe.required&&!pe.warningOnly)return!0;if(typeof pe=="function"){const xe=pe(se);return(xe==null?void 0:xe.required)&&!(xe!=null&&xe.warningOnly)}return!1})),ee=Object.assign({},Y);let me=null;if(ne.env.NODE_ENV!=="production"&&z(!(a&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(m)&&w)ne.env.NODE_ENV!=="production"&&z(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),me=m;else if(g&&(!(a||o)||w))ne.env.NODE_ENV!=="production"&&z(!!(a||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),ne.env.NODE_ENV!=="production"&&z(!w,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!g&&!w)ne.env.NODE_ENV!=="production"&&z(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(v.isValidElement(m)){ne.env.NODE_ENV!=="production"&&z(m.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const pe=Object.assign(Object.assign({},m.props),ee);if(pe.id||(pe.id=B),E||k.length>0||G.length>0||e.extra){const ue=[];(E||k.length>0)&&ue.push(`${B}_help`),e.extra&&ue.push(`${B}_extra`),pe["aria-describedby"]=ue.join(" ")}k.length>0&&(pe["aria-invalid"]="true"),ae&&(pe["aria-required"]="true"),Ir(m)&&(pe.ref=Z(F,m)),new Set([].concat(Se(xa(d)),Se(xa(S)))).forEach(ue=>{pe[ue]=function(){for(var Me,Re,$e,ve,we,Ce=arguments.length,Ee=new Array(Ce),We=0;We<Ce;We++)Ee[We]=arguments[We];($e=ee[ue])===null||$e===void 0||(Me=$e).call.apply(Me,[ee].concat(Ee)),(we=(ve=m.props)[ue])===null||we===void 0||(Re=we).call.apply(Re,[ve].concat(Ee))}});const Ae=[pe["aria-required"],pe["aria-invalid"],pe["aria-describedby"]];me=v.createElement(yA,{control:ee,update:m,childProps:Ae},wr(m,pe))}else g&&(a||o)&&!w?me=m(se):(ne.env.NODE_ENV!=="production"&&z(!F.length||!!n,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),me=m);return q(me,B,ae)}))}const zy=bA;zy.useStatus=Ly;var wA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xA=e=>{var{prefixCls:t,children:n}=e,r=wA(e,["prefixCls","children"]);if(ne.env.NODE_ENV!=="production"){const l=Pt("Form.List");ne.env.NODE_ENV!=="production"&&l(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.")}const{getPrefixCls:o}=v.useContext(Ke),i=o("form",t),a=v.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return v.createElement(rv,Object.assign({},r),(l,s,c)=>v.createElement(Ku.Provider,{value:a},n(l.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),s,{errors:c.errors,warnings:c.warnings})))};function SA(){const{form:e}=M.useContext(Sr);return e}const In=ky;In.Item=zy,In.List=xA,In.ErrorList=jy,In.useForm=Ny,In.useFormInstance=SA,In.useWatch=sv,In.Provider=cv,In.create=()=>{ne.env.NODE_ENV!=="production"&&ao(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};let An=null,So=e=>e(),Sa=[],Ca={};function qy(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Ca,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const CA=M.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=M.useContext(Ke),i=Ca.prefixCls||o("message"),a=M.useContext(Uv),[l,s]=sg(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return M.useImperativeHandle(t,()=>{const c=Object.assign({},l);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),l[u].apply(l,arguments)}}),{instance:c,sync:r}}),s}),EA=M.forwardRef((e,t)=>{const[n,r]=M.useState(qy),o=()=>{r(qy)};M.useEffect(o,[]);const i=Xi(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=M.createElement(CA,{ref:t,sync:o,messageConfig:n});return M.createElement(Qn,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function il(){if(!An){const e=document.createDocumentFragment(),t={fragment:e};An=t,So(()=>{Ms(M.createElement(EA,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,il())})}}),e)});return}An.instance&&(Sa.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{So(()=>{const r=An.instance.open(Object.assign(Object.assign({},Ca),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":So(()=>{An==null||An.instance.destroy(e.key)});break;default:So(()=>{var r;const o=(r=An.instance)[t].apply(r,Se(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Sa=[])}function OA(e){Ca=Object.assign(Object.assign({},Ca),e),So(()=>{var t;(t=An==null?void 0:An.sync)===null||t===void 0||t.call(An)})}function $A(e){const t=gu(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Sa.push(o),()=>{r?So(()=>{r()}):o.skipped=!0}});return il(),t}function TA(e,t){const n=Xi();ne.env.NODE_ENV!=="production"&&!n.holderRender&&fu("message");const r=gu(o=>{let i;const a={type:e,args:t,resolve:o,setCloseFn:l=>{i=l}};return Sa.push(a),()=>{i?So(()=>{i()}):a.skipped=!0}});return il(),r}const PA=e=>{Sa.push({type:"destroy",key:e}),il()},RA=["success","info","warning","error","loading"],Vy={open:$A,destroy:PA,config:OA,useMessage:CO,_InternalPanelDoNotUseOrYouWillBeFired:gO};RA.forEach(e=>{Vy[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return TA(e,n)}}),ne.env.NODE_ENV,ne.env.NODE_ENV;var jA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const MA=nR(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:s}=e,c=jA(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=v.useContext(Ke),f=u(),d=t||u("modal"),y=Sn(f),[x,E,h]=$v(d,y),_=`${d}-confirm`;let p={};return i?p={closable:o??!1,title:"",footer:"",children:v.createElement(Pv,Object.assign({},e,{prefixCls:d,confirmPrefixCls:_,rootPrefixCls:f,content:l}))}:p={closable:o??!0,title:a,footer:s!==null&&v.createElement(bv,Object.assign({},e)),children:l},x(v.createElement(ju,Object.assign({prefixCls:d,className:ce(E,`${d}-pure-panel`,i&&_,i&&`${_}-${i}`,n,h,y)},c,{closeIcon:yv(d,r),closable:o},p)))});function Hy(e){return sa(Iv(e))}const Nn=Tv;Nn.useModal=AP,Nn.info=function(t){return sa(Av(t))},Nn.success=function(t){return sa(Nv(t))},Nn.error=function(t){return sa(kv(t))},Nn.warning=Hy,Nn.warn=Hy,Nn.confirm=function(t){return sa(Lv(t))},Nn.destroyAll=function(){for(;yo.length;){const t=yo.pop();t&&t()}},Nn.config=PP,Nn._InternalPanelDoNotUseOrYouWillBeFired=MA,ne.env.NODE_ENV!=="production"&&(Nn.displayName="Modal");let tr=null,al=e=>e(),sl=[],Ea={};function Wy(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=Ea,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const IA=M.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=M.useContext(Ke),i=Ea.prefixCls||o("notification"),a=M.useContext(Uv),[l,s]=Wv(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return M.useEffect(r,[]),M.useImperativeHandle(t,()=>{const c=Object.assign({},l);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),l[u].apply(l,arguments)}}),{instance:c,sync:r}}),s}),AA=M.forwardRef((e,t)=>{const[n,r]=M.useState(Wy),o=()=>{r(Wy)};M.useEffect(o,[]);const i=Xi(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=M.createElement(IA,{ref:t,sync:o,notificationConfig:n});return M.createElement(Qn,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function kd(){if(!tr){const e=document.createDocumentFragment(),t={fragment:e};tr=t,al(()=>{Ms(M.createElement(AA,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,kd())})}}),e)});return}tr.instance&&(sl.forEach(e=>{switch(e.type){case"open":{al(()=>{tr.instance.open(Object.assign(Object.assign({},Ea),e.config))});break}case"destroy":al(()=>{tr==null||tr.instance.destroy(e.key)});break}}),sl=[])}function NA(e){Ea=Object.assign(Object.assign({},Ea),e),al(()=>{var t;(t=tr==null?void 0:tr.sync)===null||t===void 0||t.call(tr)})}function Uy(e){const t=Xi();ne.env.NODE_ENV!=="production"&&!t.holderRender&&fu("notification"),sl.push({type:"open",config:e}),kd()}const kA=e=>{sl.push({type:"destroy",key:e}),kd()},LA=["success","info","warning","error"],Oa={open:Uy,destroy:kA,config:NA,useNotification:tR,_InternalPanelDoNotUseOrYouWillBeFired:UP};LA.forEach(e=>{Oa[e]=t=>Uy(Object.assign(Object.assign({},t),{type:e}))}),ne.env.NODE_ENV,ne.env.NODE_ENV;const FA=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},_n(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${be(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Ld=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Lt(e,{tagFontSize:o,tagLineHeight:be(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Fd=e=>({defaultBg:new vn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Gy=ln("Tag",e=>{const t=Ld(e);return FA(t)},Fd);var DA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const BA=v.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,s=DA(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=v.useContext(Ke),f=_=>{a==null||a(!i),l==null||l(_)},d=c("tag",n),[y,x,E]=Gy(d),h=ce(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},u==null?void 0:u.className,o,x,E);return y(v.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:h,onClick:f})))}),zA=e=>vs(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),qA=Wo(["Tag","preset"],e=>{const t=Ld(e);return zA(t)},Fd);function VA(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const ll=(e,t,n)=>{const r=VA(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},HA=Wo(["Tag","status"],e=>{const t=Ld(e);return[ll(t,"success","Success"),ll(t,"processing","Info"),ll(t,"error","Error"),ll(t,"warning","Warning")]},Fd);var WA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cl=v.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:s,onClose:c,bordered:u=!0,visible:f}=e,d=WA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:x,tag:E}=v.useContext(Ke),[h,_]=v.useState(!0),p=Vn(d,["closeIcon","closable"]);ne.env.NODE_ENV!=="production"&&Pt("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />"),v.useEffect(()=>{f!==void 0&&_(f)},[f]);const m=Ws(s),g=qR(s),b=m||g,C=Object.assign(Object.assign({backgroundColor:s&&!b?s:void 0},E==null?void 0:E.style),i),S=y("tag",n),[w,O,R]=Gy(S),N=ce(S,E==null?void 0:E.className,{[`${S}-${s}`]:b,[`${S}-has-color`]:s&&!b,[`${S}-hidden`]:!h,[`${S}-rtl`]:x==="rtl",[`${S}-borderless`]:!u},r,o,O,R),P=H=>{H.stopPropagation(),c==null||c(H),!H.defaultPrevented&&_(!1)},[,L]=pv(Ds(e),Ds(E),{closable:!1,closeIconRender:H=>{const U=v.createElement("span",{className:`${S}-close-icon`,onClick:P},H);return Vm(H,U,D=>({onClick:W=>{var A;(A=D==null?void 0:D.onClick)===null||A===void 0||A.call(D,W),P(W)},className:ce(D==null?void 0:D.className,`${S}-close-icon`)}))}}),z=typeof d.onClick=="function"||a&&a.type==="a",J=l||null,X=J?v.createElement(v.Fragment,null,J,a&&v.createElement("span",null,a)):a,j=v.createElement("span",Object.assign({},p,{ref:t,className:N,style:C}),X,L,m&&v.createElement(qA,{key:"preset",prefixCls:S}),g&&v.createElement(HA,{key:"status",prefixCls:S}));return w(z?v.createElement(Su,{component:"Tag"},j):j)});ne.env.NODE_ENV!=="production"&&(cl.displayName="Tag"),cl.CheckableTag=BA;const Ky=({code:e})=>{const[t,n]=M.useState(!1),r=()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)};return fe.jsxs("div",{style:{position:"relative"},children:[e?fe.jsx(Vr,{title:t?"Copied!":"Copy",children:fe.jsx(gn.CopyOutlined,{style:{position:"absolute",top:"10px",right:"10px",zIndex:1,border:"none",padding:"5px",cursor:"pointer"},onClick:r})}):null,e?fe.jsx("pre",{style:{padding:"8px",margin:0,backgroundColor:"F5F7FA",color:"#343741",fontSize:"12px",fontWeight:400,border:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowX:"auto"},children:fe.jsx("code",{children:e})}):null]})},UA=":",Xy='"',GA="\\",KA=e=>{let t=0,n,r=!1;const o=[];function i(){return e[t]}function a(){let s=t+1;for(;s<e.length;){const c=e[s];if(c.match(/[^\s\r\n]/))return c;++s}}function l(){++t}for(;t<e.length;){const s=i();r?s===GA?l():s===Xy&&(a()!==UA&&o.push({startIndex:n,endIndex:t}),r=!1):s===Xy&&(n=t,r=!0),l()}return{stringValues:o}};function Yy(e){const t=e.split('"""');for(let n=1;n<t.length-1;n+=2)t[n]=JSON.stringify(t[n]);return t.join("")}const XA=5*1024*1024;function YA(e){if(e.length>XA)return e;const{stringValues:t}=KA(e);if(t.length===0)return e;let n=e.substring(0,t[0].startIndex);for(let r=0;r<t.length;r++){const{startIndex:o,endIndex:i}=t[r],a=e.substring(o,i+1);!(a[1]==="\\"&&a[2]==='"'||a[a.length-2]==='"'&&a[a.length-3]==="\\")&&a.match(/\\./)?n+=`"""${JSON.parse(a)}"""`:n+=a,t[r+1]&&(n+=e.substring(i+1,t[r+1].startIndex))}return n+=e.substring(t[t.length-1].endIndex+1),n}function JA(e,t){return e<t.position.column?!1:e<=t.position.column+t.value.length}class QA{constructor(t,n){this.provider=t,this.currentTokenIdx=-1,this.currentPosition={lineNumber:-1,column:-1},this.tokensLineCache=this.provider.getTokens(n.lineNumber)||[];const r=this.tokensLineCache.findIndex(o=>JA(n.column,o));r>-1?this.updatePosition({tokenIdx:r,position:this.tokensLineCache[r].position}):this.updatePosition({tokenIdx:-1,position:n})}updateLineTokens(t){this.tokensLineCache=t}updatePosition(t){this.currentTokenIdx=t.tokenIdx,this.currentPosition={...t.position}}step(t){const n=this.currentTokenIdx+t;let r=this.tokensLineCache[n];if(r)return this.updatePosition({tokenIdx:n,position:r.position}),r;const o=this.currentPosition.lineNumber+t,i=this.provider.getTokens(o);if(i){this.updateLineTokens(i);let a;t>0?(r=i[0],a=0):(r=i[i.length-1],a=r?i.length-1:0);const l=r?r.position:{column:1,lineNumber:o};return this.updatePosition({tokenIdx:a,position:l}),r||null}return null}getCurrentToken(){return this.tokensLineCache[this.currentTokenIdx]||null}getCurrentPosition(){return this.currentPosition}stepBackward(){return this.step(-1)}stepForward(){return this.step(1)}getCurrentTokenLineNumber(){const t=this.getCurrentToken();return t?t.position.lineNumber:null}getCurrentTokenColumn(){const t=this.getCurrentToken();return t?t.position.column:null}}function Co({editor:e,position:t}){const n=e.getTokenProvider();return new QA(n,t)}function ZA(e){let t=e.data;return typeof t!="string"&&(t=t.join(`
|
|
228
|
+
`)),e.method+" "+e.url+`
|
|
229
|
+
`+t}function Jy(e,t){return JSON.stringify(e,null,t?2:0)}function Qy(e,t){let n=!1;const r=[];for(let o=0;o<e.length;o++){const i=e[o];try{let a=Jy(JSON.parse(Yy(i)),t);t&&(a=YA(a)),n=n||a!==i,r.push(a)}catch(a){console.log(a),r.push(i)}}return{changed:n,data:r}}const Zy="/_search-center",eN="/elasticsearch",tN="team_id",nN="project_id",Dd=()=>localStorage.getItem(tN),Bd=()=>localStorage.getItem(nN);function rN(e){return"text/plain"}function oN(e,t,n,{clusterID:r}={}){const o=Ot.Deferred(),i={"X-Team-ID":Dd(),"X-Project-ID":Bd()},a={url:`${eN}/${r}/_proxy?`+lS.stringify({path:t,method:e}),headers:i,data:n,contentType:rN(),cache:!1,type:"POST",dataType:"json"};return Ot.ajax(a).then((l,s,c)=>{o.resolveWith({},[l,s,c])},(l,s,c)=>{l.status===0&&(l.responseText=`
|
|
230
|
+
|
|
231
|
+
Failed to connect to Console's backend.
|
|
232
|
+
Please check the server is up and running`),o.rejectWith({},[l,s,c])}),o}function iN(e){const t={"content-type":"application/json","X-Team-ID":Dd(),"X-Project-ID":Bd()};let n=`${Zy}/elasticsearch/command?size=1000`;return fetch(n,{method:"GET",headers:t})}function aN(e,t){return e&&(e=e.replace(/\/+$/,"")),t=t.replace(/^\/+/,""),e+"/"+t}function sN(e){const t={"content-type":"application/json","X-Team-ID":Dd(),"X-Project-ID":Bd()};return fetch(`${Zy}/elasticsearch/command`,{method:"POST",body:JSON.stringify(e),headers:t})}class lN{constructor(t){this.coreEditor=t,this.prevRequestStart=n=>{let r;for(n==null?r=this.coreEditor.getCurrentPosition().lineNumber:ye.isObject(n)?r=n.lineNumber:r=n;r>0&&!this.parser.isStartRequestRow(r,this.coreEditor);)r--;return{lineNumber:r,column:1}},this.nextRequestStart=n=>{let r;n==null?r=this.coreEditor.getCurrentPosition().lineNumber:ye.isObject(n)?r=n.lineNumber:r=n;const o=this.coreEditor.getLineCount();for(;r<o-1&&!this.parser.isStartRequestRow(r,this.coreEditor);r++);return{row:r,column:0}},this.autoIndent=ye.debounce(async()=>{await this.coreEditor.waitForLatestTokens();const n=await this.getRequestRange();if(!n)return;const r=await this.getRequest();if(r&&r.data&&r.data.length>0){let o=r.data.length===1,i=Qy(r.data,o);i.changed||(o=!o,i=Qy(r.data,o)),r.data=i.data,this.replaceRequestRange(r,n)}},25),this.update=async(n,r=!1)=>this.coreEditor.setValue(n,r),this.replaceRequestRange=(n,r)=>{const o=ZA(n);r?this.coreEditor.replaceRange(r,o):this.coreEditor.insert(this.coreEditor.getCurrentPosition(),o)},this.getRequestRange=async n=>{if(await this.coreEditor.waitForLatestTokens(),this.parser.isInBetweenRequestsRow(n))return null;const r=this.prevRequestStart(n),o=this.nextRequestEnd(r);return{start:{...r},end:{...o}}},this.expandRangeToRequestEdges=async(n=this.coreEditor.getSelectionRange())=>{await this.coreEditor.waitForLatestTokens();let r=n.start.lineNumber,o=n.end.lineNumber;const i=Math.max(1,this.coreEditor.getLineCount());if(!this.parser.isInBetweenRequestsRow(r))for(;r>=1&&!this.parser.isStartRequestRow(r);r--);if(r<1||r>o)return null;if(this.parser.isInBetweenRequestsRow(o))for(;o>=r&&!this.parser.isEndRequestRow(o);o--);else for(;o<=i&&!this.parser.isEndRequestRow(o);o++);if(o<r||o>i)return null;const a=(this.coreEditor.getLineValue(o)||"").replace(/\s+$/,"").length+1;return{start:{lineNumber:r,column:1},end:{lineNumber:o,column:a}}},this.getRequestInRange=async n=>{if(await this.coreEditor.waitForLatestTokens(),!n)return null;const r={method:"",data:[],url:"",range:n},o=n.start,i=Co({editor:this.coreEditor,position:o});let a=i.getCurrentToken();if(this.parser.isEmptyToken(a)&&(a=this.parser.nextNonEmptyToken(i)),a==null||(r.method=a.value,a=this.parser.nextNonEmptyToken(i),!a||a.type==="method"))return null;for(r.url="";a&&a.type&&a.type.indexOf("url")===0;)r.url+=a.value,a=i.stepForward();this.parser.isEmptyToken(a)&&(a=this.parser.nextNonEmptyToken(i));let l=(a?0:1)+i.getCurrentPosition().lineNumber,s;for(;l<n.end.lineNumber||l===n.end.lineNumber&&1<n.end.column;){s=this.nextDataDocEnd({lineNumber:l,column:1});const c={start:{lineNumber:l,column:1},end:s},u=this.coreEditor.getValueInRange(c);r.data.push(u.trim()),l=s.lineNumber+1}return r},this.getRequestsInRange=async(n=this.coreEditor.getSelectionRange(),r=!1)=>{if(await this.coreEditor.waitForLatestTokens(),!n)return[];const o=await this.expandRangeToRequestEdges(n);if(!o)return[];const i=[];let a=o.start.lineNumber;const l=o.end.lineNumber;let s=o.start.lineNumber;const c=()=>{if(r){const u=this.coreEditor.getLines(a,s-1).join(`
|
|
233
|
+
`);u&&i.push(u)}};for(;s<=l;)if(this.parser.isStartRequestRow(s)){c();const u=await this.getRequest(s);if(u)i.push(u),a=s=u.range.end.lineNumber+1;else return i}else++s;return c(),i},this.getRequest=async n=>{if(await this.coreEditor.waitForLatestTokens(),this.parser.isInBetweenRequestsRow(n))return null;const r=await this.getRequestRange(n);return this.getRequestInRange(r)},this.moveToPreviousRequestEdge=async()=>{await this.coreEditor.waitForLatestTokens();const n=this.coreEditor.getCurrentPosition();for(n.lineNumber--;n.lineNumber>1&&!this.parser.isRequestEdge(n.lineNumber);n.lineNumber--);this.coreEditor.moveCursorToPosition({lineNumber:n.lineNumber,column:1})},this.moveToNextRequestEdge=async n=>{await this.coreEditor.waitForLatestTokens();const r=this.coreEditor.getCurrentPosition(),o=this.coreEditor.getLineCount();for(n||r.lineNumber++;r.lineNumber<o&&!this.parser.isRequestEdge(r.lineNumber);r.lineNumber++);this.coreEditor.moveCursorToPosition({lineNumber:r.lineNumber,column:1})},this.nextRequestEnd=n=>{n=n||this.coreEditor.getCurrentPosition();const r=this.coreEditor.getLineCount();let o=n.lineNumber;for(;o<=r;++o){const a=this.parser.getRowParseMode(o);if((a&this.parser.MODE.REQUEST_END)>0||o!==n.lineNumber&&(a&this.parser.MODE.REQUEST_START)>0)break}const i=(this.coreEditor.getLineValue(o)||"").replace(/\s+$/,"").length+1;return{lineNumber:o,column:i}},this.nextDataDocEnd=n=>{n=n||this.coreEditor.getCurrentPosition();let r=n.lineNumber;const o=this.coreEditor.getLineCount();for(;r<o;r++){const a=this.parser.getRowParseMode(r);if((a&this.parser.MODE.REQUEST_END)>0||(a&this.parser.MODE.MULTI_DOC_CUR_DOC_END)>0||r!==n.lineNumber&&(a&this.parser.MODE.REQUEST_START)>0)break}const i=(this.coreEditor.getLineValue(r)||"").length+1;return{lineNumber:r,column:i}},this.highlightCurrentRequestsAndUpdateActionBar=ye.debounce(async()=>{await this.coreEditor.waitForLatestTokens();const n=await this.expandRangeToRequestEdges();if(!(n===null&&this.currentReqRange===null)){if(n!==null&&this.currentReqRange!==null&&n.start.lineNumber===this.currentReqRange.start.lineNumber&&n.end.lineNumber===this.currentReqRange.end.lineNumber){this.coreEditor.getCurrentPosition().lineNumber===this.currentReqRange.start.lineNumber&&this.updateActionsBar();return}this.currentReqRange&&this.coreEditor.removeMarker(this.currentReqRange.markerRef),this.currentReqRange=n,this.currentReqRange&&(this.currentReqRange.markerRef=this.coreEditor.addMarker(this.currentReqRange)),this.updateActionsBar()}},25),this.getRequestsAsCURL=async(n,r)=>{const o=await this.getRequestsInRange(r,!0);return ye.map(o,a=>{if(typeof a=="string")return a;const l=a.url,s=a.method,c=a.data,u=aN(n,l);let f="curl -X"+s+' "'+u+'"';if(c&&c.length){f+=` -H 'Content-Type: application/json' -d'
|
|
234
|
+
`;const d=Yy(c.join(`
|
|
235
|
+
`));f+=d.replace(/'/g,"'\\''"),c.length>1&&(f+=`
|
|
236
|
+
`),f+="'"}return f}).join(`
|
|
237
|
+
`)},this.updateActionsBar=()=>this.coreEditor.legacyUpdateUI(this.currentReqRange),this.currentReqRange=null,this.parser=t.getParser(),this.coreEditor.on("tokenizerUpdate",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeCursor",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeScrollTop",this.updateActionsBar.bind(this))}getCoreEditor(){return this.coreEditor}}ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],function(e,t,n){var r=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,i=e("./lib/lang"),a=e("./range").Range,l=e("./anchor").Anchor,s=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,u=a.comparePoints,f=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,o),this.getTokenizer=function(){function h(p,m,g){return p=p.substr(1),/^\d+$/.test(p)&&!g.inFormatString?[{tabstopId:parseInt(p,10)}]:[{text:p}]}function _(p){return"(?:[^\\\\"+p+"]|\\\\.)"}return f.$tokenizer=new c({start:[{regex:/:/,onMatch:function(p,m,g){return g.length&&g[0].expectIf?(g[0].expectIf=!1,g[0].elseBranch=g[0],[g[0]]):":"}},{regex:/\\./,onMatch:function(p,m,g){var b=p[1];return b=="}"&&g.length||"`$\\".indexOf(b)!=-1?p=b:g.inFormatString&&(b=="n"||b=="t"?p=`
|
|
238
|
+
`:"ulULE".indexOf(b)!=-1&&(p={changeCase:b,local:b>"a"})),[p]}},{regex:/}/,onMatch:function(p,m,g){return[g.length?g.shift():p]}},{regex:/\$(?:\d+|\w+)/,onMatch:h},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(p,m,g){var b=h(p.substr(1),m,g);return g.unshift(b[0]),b},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+_("\\|")+"*\\|",onMatch:function(p,m,g){g[0].choices=p.slice(1,-1).split(",")},next:"start"},{regex:"/("+_("/")+"+)/(?:("+_("/")+"*)/)(\\w*):?",onMatch:function(p,m,g){var b=g[0];return b.fmtString=p,p=this.splitRegex.exec(p),b.guard=p[1],b.fmt=p[2],b.flag=p[3],""},next:"start"},{regex:"`"+_("`")+"*`",onMatch:function(p,m,g){return g[0].code=p.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(p,m,g){g[0]&&(g[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+_("/")+"+)/",token:"regex"},{regex:"",onMatch:function(p,m,g){g.inFormatString=!0},next:"start"}]}),f.prototype.getTokenizer=function(){return f.$tokenizer},f.$tokenizer},this.tokenizeTmSnippet=function(h,_){return this.getTokenizer().getLineTokens(h,_).tokens.map(function(p){return p.value||p})},this.$getDefaultValue=function(h,_){if(/^[A-Z]\d+$/.test(_)){var p=_.substr(1);return(this.variables[_[0]+"__"]||{})[p]}if(/^\d+$/.test(_))return(this.variables.__||{})[_];if(_=_.replace(/^TM_/,""),!!h){var m=h.session;switch(_){case"CURRENT_WORD":var g=m.getWordRange();case"SELECTION":case"SELECTED_TEXT":return m.getTextRange(g);case"CURRENT_LINE":return m.getLine(h.getCursorPosition().row);case"PREV_LINE":return m.getLine(h.getCursorPosition().row-1);case"LINE_INDEX":return h.getCursorPosition().column;case"LINE_NUMBER":return h.getCursorPosition().row+1;case"SOFT_TABS":return m.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return m.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(h,_){return this.variables.hasOwnProperty(_)?this.variables[_](h,_)||"":this.$getDefaultValue(h,_)||""},this.tmStrFormat=function(h,_,p){var m=_.flag||"",g=_.guard;g=new RegExp(g,m.replace(/[^gi]/,""));var b=this.tokenizeTmSnippet(_.fmt,"formatString"),C=this,S=h.replace(g,function(){C.variables.__=arguments;for(var w=C.resolveVariables(b,p),O="E",R=0;R<w.length;R++){var N=w[R];if(typeof N=="object")if(w[R]="",N.changeCase&&N.local){var P=w[R+1];P&&typeof P=="string"&&(N.changeCase=="u"?w[R]=P[0].toUpperCase():w[R]=P[0].toLowerCase(),w[R+1]=P.substr(1))}else N.changeCase&&(O=N.changeCase);else O=="U"?w[R]=N.toUpperCase():O=="L"&&(w[R]=N.toLowerCase())}return w.join("")});return this.variables.__=null,S},this.resolveVariables=function(h,_){for(var p=[],m=0;m<h.length;m++){var g=h[m];if(typeof g=="string")p.push(g);else{if(typeof g!="object")continue;if(g.skip)C(g);else{if(g.processed<m)continue;if(g.text){var b=this.getVariableValue(_,g.text);b&&g.fmtString&&(b=this.tmStrFormat(b,g)),g.processed=m,g.expectIf==null?b&&(p.push(b),C(g)):b?g.skip=g.elseBranch:C(g)}else(g.tabstopId!=null||g.changeCase!=null)&&p.push(g)}}}function C(S){var w=h.indexOf(S,m+1);w!=-1&&(m=w)}return p},this.insertSnippetForSelection=function(h,_){var p=h.getCursorPosition(),m=h.session.getLine(p.row),g=h.session.getTabString(),b=m.match(/^\s*/)[0];p.column<b.length&&(b=b.slice(0,p.column)),_=_.replace(/\r/g,"");var C=this.tokenizeTmSnippet(_);C=this.resolveVariables(C,h),C=C.map(function(k){return k==`
|
|
239
|
+
`?k+b:typeof k=="string"?k.replace(/\t/g,g):k});var S=[];C.forEach(function(k,G){if(typeof k=="object"){var Z=k.tabstopId,q=S[Z];if(q||(q=S[Z]=[],q.index=Z,q.value=""),q.indexOf(k)===-1){q.push(k);var V=C.indexOf(k,G+1);if(V!==-1){var Y=C.slice(G+1,V),re=Y.some(function(se){return typeof se=="object"});re&&!q.value?q.value=Y:Y.length&&(!q.value||typeof q.value!="string")&&(q.value=Y.join(""))}}}}),S.forEach(function(k){k.length=0});var w={};function O(k){for(var G=[],Z=0;Z<k.length;Z++){var q=k[Z];if(typeof q=="object"){if(w[q.tabstopId])continue;var V=k.lastIndexOf(q,Z-1);q=G[V]||{tabstopId:q.tabstopId}}G[Z]=q}return G}for(var R=0;R<C.length;R++){var N=C[R];if(typeof N=="object"){var P=N.tabstopId,L=C.indexOf(N,R+1);if(w[P]){w[P]===N&&(w[P]=null);continue}var z=S[P],J=typeof z.value=="string"?[z.value]:O(z.value);J.unshift(R+1,Math.max(0,L-R)),J.push(N),w[P]=N,C.splice.apply(C,J),z.indexOf(N)===-1&&z.push(N)}}var X=0,j=0,H="";C.forEach(function(k){if(typeof k=="string"){var G=k.split(`
|
|
240
|
+
`);G.length>1?(j=G[G.length-1].length,X+=G.length-1):j+=k.length,H+=k}else k.start?k.end={row:X,column:j}:k.start={row:X,column:j}});var U=h.getSelectionRange(),D=h.session.replace(U,H),W=new d(h),A=h.inVirtualSelectionMode&&h.selection.index;W.addTabstops(S,U.start,D,A)},this.insertSnippet=function(h,_){var p=this;if(h.inVirtualSelectionMode)return p.insertSnippetForSelection(h,_);h.forEachSelection(function(){p.insertSnippetForSelection(h,_)},null,{keepOrder:!0}),h.tabstopManager&&h.tabstopManager.tabNext()},this.$getScope=function(h){var _=h.session.$mode.$id||"";if(_=_.split("/").pop(),_==="html"||_==="php"){_==="php"&&!h.session.$mode.inlinePhp&&(_="html");var p=h.getCursorPosition(),m=h.session.getState(p.row);typeof m=="object"&&(m=m[0]),m.substring&&(m.substring(0,3)=="js-"?_="javascript":m.substring(0,4)=="css-"?_="css":m.substring(0,4)=="php-"&&(_="php"))}return _},this.getActiveScopes=function(h){var _=this.$getScope(h),p=[_],m=this.snippetMap;return m[_]&&m[_].includeScopes&&p.push.apply(p,m[_].includeScopes),p.push("_"),p},this.expandWithTab=function(h,_){var p=this,m=h.forEachSelection(function(){return p.expandSnippetForSelection(h,_)},null,{keepOrder:!0});return m&&h.tabstopManager&&h.tabstopManager.tabNext(),m},this.expandSnippetForSelection=function(h,_){var p=h.getCursorPosition(),m=h.session.getLine(p.row),g=m.substring(0,p.column),b=m.substr(p.column),C=this.snippetMap,S;return this.getActiveScopes(h).some(function(w){var O=C[w];return O&&(S=this.findMatchingSnippet(O,g,b)),!!S},this),S?(_&&_.dryRun||(h.session.doc.removeInLine(p.row,p.column-S.replaceBefore.length,p.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(h,S.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(h,_,p){for(var m=h.length;m--;){var g=h[m];if(!(g.startRe&&!g.startRe.test(_))&&!(g.endRe&&!g.endRe.test(p))&&!(!g.startRe&&!g.endRe))return g.matchBefore=g.startRe?g.startRe.exec(_):[""],g.matchAfter=g.endRe?g.endRe.exec(p):[""],g.replaceBefore=g.triggerRe?g.triggerRe.exec(_)[0]:"",g.replaceAfter=g.endTriggerRe?g.endTriggerRe.exec(p)[0]:"",g}},this.snippetMap={},this.snippetNameMap={},this.register=function(h,_){var p=this.snippetMap,m=this.snippetNameMap,g=this;h||(h=[]);function b(w){return w&&!/^\^?\(.*\)\$?$|^\\b$/.test(w)&&(w="(?:"+w+")"),w||""}function C(w,O,R){return w=b(w),O=b(O),w=O+w,w&&w[w.length-1]!="$"&&(w=w+"$"),new RegExp(w)}function S(w){w.scope||(w.scope=_||"_"),_=w.scope,p[_]||(p[_]=[],m[_]={});var O=m[_];if(w.name){var R=O[w.name];R&&g.unregister(R),O[w.name]=w}p[_].push(w),w.tabTrigger&&!w.trigger&&(!w.guard&&/^\w/.test(w.tabTrigger)&&(w.guard="\\b"),w.trigger=i.escapeRegExp(w.tabTrigger)),!(!w.trigger&&!w.guard&&!w.endTrigger&&!w.endGuard)&&(w.startRe=C(w.trigger,w.guard),w.triggerRe=new RegExp(w.trigger,"",!0),w.endRe=C(w.endTrigger,w.endGuard),w.endTriggerRe=new RegExp(w.endTrigger,"",!0))}h&&h.content?S(h):Array.isArray(h)&&h.forEach(S),this._signal("registerSnippets",{scope:_})},this.unregister=function(h,_){var p=this.snippetMap,m=this.snippetNameMap;function g(b){var C=m[b.scope||_];if(C&&C[b.name]){delete C[b.name];var S=p[b.scope||_],w=S&&S.indexOf(b);w>=0&&S.splice(w,1)}}h.content?g(h):Array.isArray(h)&&h.forEach(g)},this.parseSnippetFile=function(h){h=h.replace(/\r/g,"");for(var _=[],p={},m=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,g;g=m.exec(h);){if(g[1])try{p=JSON.parse(g[1]),_.push(p)}catch{}if(g[4])p.content=g[4].replace(/^\t/gm,""),_.push(p),p={};else{var b=g[2],C=g[3];if(b=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;p.guard=S.exec(C)[1],p.trigger=S.exec(C)[1],p.endTrigger=S.exec(C)[1],p.endGuard=S.exec(C)[1]}else b=="snippet"?(p.tabTrigger=C.match(/^\S*/)[0],p.name||(p.name=C)):p[b]=C}}return _},this.getSnippetByName=function(h,_){var p=this.snippetNameMap,m;return this.getActiveScopes(_).some(function(g){var b=p[g];return b&&(m=b[h]),!!m},this),m}}).call(f.prototype);var d=function(h){if(h.tabstopManager)return h.tabstopManager;h.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=i.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(h)};(function(){this.attach=function(h){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=h,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(h){var _=h.action[0]=="r",p=h.start,m=h.end,g=p.row,b=m.row,C=b-g,S=m.column-p.column;if(_&&(C=-C,S=-S),!this.$inChange&&_){var w=this.selectedTabstop,O=w&&!w.some(function(L){return u(L.start,p)<=0&&u(L.end,m)>=0});if(O)return this.detach()}for(var R=this.ranges,N=0;N<R.length;N++){var P=R[N];if(!(P.end.row<p.row)){if(_&&u(p,P.start)<0&&u(m,P.end)>0){this.removeRange(P),N--;continue}P.start.row==g&&P.start.column>p.column&&(P.start.column+=S),P.end.row==g&&P.end.column>=p.column&&(P.end.column+=S),P.start.row>=g&&(P.start.row+=C),P.end.row>=g&&(P.end.row+=C),u(P.start,P.end)>0&&this.removeRange(P)}}R.length||this.detach()},this.updateLinkedFields=function(){var h=this.selectedTabstop;if(!(!h||!h.hasLinkedRanges)){this.$inChange=!0;for(var _=this.editor.session,p=_.getTextRange(h.firstNonLinked),m=h.length;m--;){var g=h[m];if(g.linked){var b=t.snippetManager.tmStrFormat(p,g.original);_.replace(g,b)}}this.$inChange=!1}},this.onAfterExec=function(h){h.command&&!h.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var h=this.editor.selection.lead,_=this.editor.selection.anchor,p=this.editor.selection.isEmpty(),m=this.ranges.length;m--;)if(!this.ranges[m].linked){var g=this.ranges[m].contains(h.row,h.column),b=p||this.ranges[m].contains(_.row,_.column);if(g&&b)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(h){var _=this.tabstops.length,p=this.index+(h||1);p=Math.min(Math.max(p,1),_),p==_&&(p=0),this.selectTabstop(p),p===0&&this.detach()},this.selectTabstop=function(h){this.$openTabstops=null;var _=this.tabstops[this.index];if(_&&this.addTabstopMarkers(_),this.index=h,_=this.tabstops[this.index],!(!_||!_.length)){if(this.selectedTabstop=_,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(_.firstNonLinked);else{var p=this.editor.multiSelect;p.toSingleRange(_.firstNonLinked.clone());for(var m=_.length;m--;)_.hasLinkedRanges&&_[m].linked||p.addRange(_[m].clone(),!0);p.ranges[0]&&p.addRange(p.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(h,_,p){if(this.$openTabstops||(this.$openTabstops=[]),!h[0]){var m=a.fromPoints(p,p);x(m.start,_),x(m.end,_),h[0]=[m],h[0].index=0}var g=this.index,b=[g+1,0],C=this.ranges;h.forEach(function(S,w){for(var O=this.$openTabstops[w]||S,R=S.length;R--;){var N=S[R],P=a.fromPoints(N.start,N.end||N.start);y(P.start,_),y(P.end,_),P.original=N,P.tabstop=O,C.push(P),O!=S?O.unshift(P):O[R]=P,N.fmtString?(P.linked=!0,O.hasLinkedRanges=!0):O.firstNonLinked||(O.firstNonLinked=P)}O.firstNonLinked||(O.hasLinkedRanges=!1),O===S&&(b.push(O),this.$openTabstops[w]=O),this.addTabstopMarkers(O)},this),b.length>2&&(this.tabstops.length&&b.push(b.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,b))},this.addTabstopMarkers=function(h){var _=this.editor.session;h.forEach(function(p){p.markerId||(p.markerId=_.addMarker(p,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(h){var _=this.editor.session;h.forEach(function(p){_.removeMarker(p.markerId),p.markerId=null})},this.removeRange=function(h){var _=h.tabstop.indexOf(h);h.tabstop.splice(_,1),_=this.ranges.indexOf(h),this.ranges.splice(_,1),this.editor.session.removeMarker(h.markerId),h.tabstop.length||(_=this.tabstops.indexOf(h.tabstop),_!=-1&&this.tabstops.splice(_,1),this.tabstops.length||this.detach())},this.keyboardHandler=new s,this.keyboardHandler.bindKeys({Tab:function(h){t.snippetManager&&t.snippetManager.expandWithTab(h)||h.tabstopManager.tabNext(1)},"Shift-Tab":function(h){h.tabstopManager.tabNext(-1)},Esc:function(h){h.tabstopManager.detach()},Return:function(h){return!1}})}).call(d.prototype),l.prototype.onChange;var y=function(h,_){h.row==0&&(h.column+=_.column),h.row+=_.row},x=function(h,_){h.row==_.row&&(h.column-=_.column),h.row-=_.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new f;var E=e("./editor").Editor;(function(){this.insertSnippet=function(h,_){return t.snippetManager.insertSnippet(this,h,_)},this.expandSnippet=function(h){return t.snippetManager.expandWithTab(this,h)}}).call(E.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],function(e,t,n){var r=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,i=e("../range").Range,a=e("../lib/event"),l=e("../lib/lang"),s=e("../lib/dom"),c=function(f){var d=new r(f);d.$maxLines=4;var y=new o(d);return y.setHighlightActiveLine(!1),y.setShowPrintMargin(!1),y.renderer.setShowGutter(!1),y.renderer.setHighlightGutterLine(!1),y.$mouseHandler.$focusWaitTimout=0,y.$highlightTagPending=!0,y},u=function(f){var d=s.createElement("div"),y=new c(d);f&&f.appendChild(d),d.style.display="none",y.renderer.content.style.cursor="default",y.renderer.setStyle("ace_autocomplete"),y.setOption("displayIndentGuides",!1),y.setOption("dragDelay",150);var x=function(){};y.focus=x,y.$isFocused=!0,y.renderer.$cursorLayer.restartTimer=x,y.renderer.$cursorLayer.element.style.opacity=0,y.renderer.$maxLines=8,y.renderer.$keepTextAreaAtCursor=!1,y.setHighlightActiveLine(!1),y.session.highlight(""),y.session.$searchHighlight.clazz="ace_highlight-marker",y.on("mousedown",function(b){var C=b.getDocumentPosition();y.selection.moveToPosition(C),_.start.row=_.end.row=C.row,b.stop()});var E,h=new i(-1,0,-1,1/0),_=new i(-1,0,-1,1/0);_.id=y.session.addMarker(_,"ace_active-line","fullLine"),y.setSelectOnHover=function(b){b?h.id&&(y.session.removeMarker(h.id),h.id=null):h.id=y.session.addMarker(h,"ace_line-hover","fullLine")},y.setSelectOnHover(!1),y.on("mousemove",function(b){if(!E){E=b;return}if(!(E.x==b.x&&E.y==b.y)){E=b,E.scrollTop=y.renderer.scrollTop;var C=E.getDocumentPosition().row;h.start.row!=C&&(h.id||y.setRow(C),m(C))}}),y.renderer.on("beforeRender",function(){if(E&&h.start.row!=-1){E.$pos=null;var b=E.getDocumentPosition().row;h.id||y.setRow(b),m(b,!0)}}),y.renderer.on("afterRender",function(){var b=y.getRow(),C=y.renderer.$textLayer,S=C.element.childNodes[b-C.config.firstRow];S!=C.selectedNode&&(C.selectedNode&&s.removeCssClass(C.selectedNode,"ace_selected"),C.selectedNode=S,S&&s.addCssClass(S,"ace_selected"))});var p=function(){m(-1)},m=function(b,C){b!==h.start.row&&(h.start.row=h.end.row=b,C||y.session._emit("changeBackMarker"),y._emit("changeHoverMarker"))};y.getHoveredRow=function(){return h.start.row},a.addListener(y.container,"mouseout",p),y.on("hide",p),y.on("changeSelection",p),y.session.doc.getLength=function(){return y.data.length},y.session.doc.getLine=function(b){var C=y.data[b];return typeof C=="string"?C:C&&C.value||""};var g=y.session.bgTokenizer;return g.$tokenizeRow=function(b){var C=y.data[b],S=[];if(!C)return S;typeof C=="string"&&(C={value:C}),C.caption||(C.caption=C.value||C.name);for(var w=-1,O,R,N=0;N<C.caption.length;N++)R=C.caption[N],O=C.matchMask&1<<N?1:0,w!==O?(S.push({type:C.className||(O?"completion-highlight":""),value:R}),w=O):S[S.length-1].value+=R;if(C.meta){var P=y.renderer.$size.scrollerWidth/y.renderer.layerConfig.characterWidth,L=C.meta;L.length+C.caption.length>P-2&&(L=L.substr(0,P-C.caption.length-3)+"…"),S.push({type:"rightAlignedText",value:L})}return S},g.$updateOnChange=x,g.start=x,y.session.$computeWidth=function(){return this.screenWidth=0},y.$blockScrolling=1/0,y.isOpen=!1,y.isTopdown=!1,y.autoSelect=!0,y.data=[],y.setData=function(b){y.setValue(l.stringRepeat(`
|
|
241
|
+
`,b.length),-1),y.data=b||[],y.setRow(0)},y.getData=function(b){return y.data[b]},y.getRow=function(){return _.start.row},y.setRow=function(b){b=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,b)),_.start.row!=b&&(y.selection.clearSelection(),_.start.row=_.end.row=b||0,y.session._emit("changeBackMarker"),y.moveCursorTo(b||0,0),y.isOpen&&y._signal("select"))},y.on("changeSelection",function(){y.isOpen&&y.setRow(y.selection.lead.row),y.renderer.scrollCursorIntoView()}),y.hide=function(){this.container.style.display="none",this._signal("hide"),y.isOpen=!1},y.show=function(b,C,S){var w=this.container,O=window.innerHeight,R=window.innerWidth,N=this.renderer,P=N.$maxLines*C*1.4,L=b.top+this.$borderSize,z=L>O/2&&!S;z&&L+C+P>O?(N.$maxPixelHeight=L-2*this.$borderSize,w.style.top="",w.style.bottom=O-L+"px",y.isTopdown=!1):(L+=C,N.$maxPixelHeight=O-L-.2*C,w.style.top=L+"px",w.style.bottom="",y.isTopdown=!0),w.style.display="",this.renderer.$textLayer.checkForSizeChanges();var J=b.left;J+w.offsetWidth>R&&(J=R-w.offsetWidth),w.style.left=J+"px",this._signal("show"),E=null,y.isOpen=!0},y.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},y.$imageSize=0,y.$borderSize=1,y};s.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=u}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,n){t.parForEach=function(o,i,a){var l=0,s=o.length;s===0&&a();for(var c=0;c<s;c++)i(o[c],function(u,f){l++,l===s&&a(u,f)})};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(o,i,a){a=a||r;for(var l=[],s=i-1;s>=0&&a.test(o[s]);s--)l.push(o[s]);return l.reverse().join("")},t.retrieveFollowingIdentifier=function(o,i,a){a=a||r;for(var l=[],s=i;s<o.length&&a.test(o[s]);s++)l.push(o[s]);return l},t.getCompletionPrefix=function(o){var i=o.getCursorPosition(),a=o.session.getLine(i.row),l;return o.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(c){!l&&c&&(l=this.retrievePrecedingIdentifier(a,i.column,c))}).bind(this))}).bind(this)),l||this.retrievePrecedingIdentifier(a,i.column)}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],function(e,t,n){var r=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,i=e("./autocomplete/util");e("./lib/event");var a=e("./lib/lang"),l=e("./lib/dom"),s=e("./snippets").snippetManager,c=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new o(document.body||document.documentElement),this.popup.on("click",(function(f){this.insertMatch(),f.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(f,d,y){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),f.keyBinding.addKeyboardHandler(this.keyboardHandler);var x=f.renderer;if(this.popup.setRow(this.autoSelect?0:-1),y)y&&!d&&this.detach();else{this.popup.setTheme(f.getTheme()),this.popup.setFontSize(f.getFontSize());var E=x.layerConfig.lineHeight,h=x.$cursorLayer.getPixelPosition(this.base,!0);h.left-=this.popup.getTextLeftOffset();var _=f.container.getBoundingClientRect();h.top+=_.top-x.layerConfig.offset,h.left+=_.left-f.renderer.scrollLeft,h.left+=x.gutterWidth,this.popup.show(h,E)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(f){var d=this.editor.selection.lead;(d.row!=this.base.row||d.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(f){var d=document.activeElement,y=this.editor.textInput.getElement(),x=f.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(f.relatedTarget),E=this.popup&&this.popup.container;d!=y&&d.parentNode!=E&&!x&&d!=this.tooltipNode&&f.relatedTarget!=y&&this.detach()},this.mousedownListener=function(f){this.detach()},this.mousewheelListener=function(f){this.detach()},this.goTo=function(f){var d=this.popup.getRow(),y=this.popup.session.getLength()-1;switch(f){case"up":d=d<=0?y:d-1;break;case"down":d=d>=y?-1:d+1;break;case"start":d=0;break;case"end":d=y;break}this.popup.setRow(d)},this.insertMatch=function(f,d){if(f||(f=this.popup.getData(this.popup.getRow())),!f)return!1;if(f.completer&&f.completer.insertMatch)f.completer.insertMatch(this.editor,f);else{if(this.completions.filterText)for(var y=this.editor.selection.getAllRanges(),x=0,E;E=y[x];x++)E.start.column-=this.completions.filterText.length,this.editor.session.remove(E);f.snippet?s.insertSnippet(this.editor,f.snippet):this.editor.execCommand("insertstring",f.value||f)}this.detach()},this.commands={Up:function(f){f.completer.goTo("up")},Down:function(f){f.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(f){f.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(f){f.completer.goTo("end")},Esc:function(f){f.completer.detach()},Return:function(f){return f.completer.insertMatch()},"Shift-Return":function(f){f.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(f){var d=f.completer.insertMatch();if(!d&&!f.tabstopManager)f.completer.goTo("down");else return d},PageUp:function(f){f.completer.popup.gotoPageUp()},PageDown:function(f){f.completer.popup.gotoPageDown()}},this.gatherCompletions=function(f,d){var y=f.getSession(),x=f.getCursorPosition(),E=i.getCompletionPrefix(f);this.base=y.doc.createAnchor(x.row,x.column-E.length),this.base.$insertRight=!0;var h=[],_=f.completers.length;return f.completers.forEach(function(p,m){p.getCompletions(f,y,x,E,function(g,b){!g&&b&&(h=h.concat(b)),d(null,{prefix:i.getCompletionPrefix(f),matches:h,finished:--_===0})})}),!0},this.showPopup=function(f){this.editor&&this.detach(),this.activated=!0,this.editor=f,f.completer!=this&&(f.completer&&f.completer.detach(),f.completer=this),f.on("changeSelection",this.changeListener),f.on("blur",this.blurListener),f.on("mousedown",this.mousedownListener),f.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(f){if(f&&this.base&&this.completions){var d=this.editor.getCursorPosition(),y=this.editor.session.getTextRange({start:this.base,end:d});if(y==this.completions.filterText)return;if(this.completions.setFilter(y),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==y&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,y,f);return}var x=this.gatherCompletionsId;this.gatherCompletions(this.editor,(function(E,h){var _=(function(){if(h.finished)return this.detach()}).bind(this),p=h.prefix,m=h&&h.matches;if(!m||!m.length)return _();if(!(p.indexOf(h.prefix)!==0||x!=this.gatherCompletionsId)){this.completions=new u(m),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(p);var g=this.completions.filtered;if(!g.length||g.length==1&&g[0].value==p&&!g[0].snippet)return _();if(this.autoInsert&&g.length==1&&h.finished)return this.insertMatch(g[0]);this.openPopup(this.editor,p,f)}}).bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var f=this.popup,d=f.data,y=d&&(d[f.getHoveredRow()]||d[f.getRow()]),x=null;if(!y||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();if(this.editor.completers.some(function(E){return E.getDocTooltip&&(x=E.getDocTooltip(y)),x}),x||(x=y),typeof x=="string"&&(x={docText:x}),!x||!(x.docHTML||x.docText))return this.hideDocTooltip();this.showDocTooltip(x)},this.showDocTooltip=function(f){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var d=this.tooltipNode;f.docHTML?d.innerHTML=f.docHTML:f.docText&&(d.textContent=f.docText),d.parentNode||document.body.appendChild(d);var y=this.popup,x=y.container.getBoundingClientRect();d.style.top=y.container.style.top,d.style.bottom=y.container.style.bottom,window.innerWidth-x.right<320?(d.style.right=window.innerWidth-x.left+"px",d.style.left=""):(d.style.left=x.right+1+"px",d.style.right=""),d.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var f=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==f&&this.editor.focus(),this.tooltipNode=null,f.parentNode&&f.parentNode.removeChild(f)}},this.onTooltipClick=function(f){for(var d=f.target;d&&d!=this.tooltipNode;){if(d.nodeName=="A"&&d.href){d.rel="noreferrer",d.target="_blank";break}d=d.parentNode}}}).call(c.prototype),c.startCommand={name:"startAutocomplete",exec:function(f){f.completer||(f.completer=new c),f.completer.autoInsert=!1,f.completer.autoSelect=!0,f.completer.showPopup(f),f.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(f,d){this.all=f,this.filtered=f,this.filterText=d||"",this.exactMatch=!1};(function(){this.setFilter=function(f){if(f.length>this.filterText&&f.lastIndexOf(this.filterText,0)===0)var d=this.filtered;else var d=this.all;this.filterText=f,d=this.filterCompletions(d,this.filterText),d=d.sort(function(x,E){return E.exactMatch-x.exactMatch||E.score-x.score});var y=null;d=d.filter(function(x){var E=x.snippet||x.caption||x.value;return E===y?!1:(y=E,!0)}),this.filtered=d},this.filterCompletions=function(f,d){var y=[],x=d.toUpperCase(),E=d.toLowerCase();e:for(var h=0,_;_=f[h];h++){var p=_.value||_.caption||_.snippet;if(p){var m=-1,g=0,b=0,C,S;if(this.exactMatch){if(d!==p.substr(0,d.length))continue e}else for(var w=0;w<d.length;w++){var O=p.indexOf(E[w],m+1),R=p.indexOf(x[w],m+1);if(C=O>=0&&(R<0||O<R)?O:R,C<0)continue e;S=C-m-1,S>0&&(m===-1&&(b+=10),b+=S),g=g|1<<C,m=C}_.matchMask=g,_.exactMatch=b?0:1,_.score=(_.score||0)-b,y.push(_)}}return y}}).call(u.prototype),t.Autocomplete=c,t.FilteredList=u}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function i(l,s){var c=l.getTextRange(r.fromPoints({row:0,column:0},s));return c.split(o).length-1}function a(l,s){var c=i(l,s),u=l.getValue().split(o),f=Object.create(null),d=u[c];return u.forEach(function(y,x){if(!(!y||y===d)){var E=Math.abs(c-x),h=u.length-E;f[y]?f[y]=Math.max(h,f[y]):f[y]=h}}),f}t.getCompletions=function(l,s,c,u,f){var d=a(s,c),y=Object.keys(d);f(null,y.map(function(x){return{caption:x,value:x,score:d[x],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,t,n){var r=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,i=e("../config"),a=e("../lib/lang"),l=e("../autocomplete/util"),s=e("../autocomplete/text_completer"),c={getCompletions:function(p,m,g,b,C){if(m.$mode.completer)return m.$mode.completer.getCompletions(p,m,g,b,C);var S=p.session.getState(g.row),w=m.$mode.getCompletions(S,m,g,b);C(null,w)}},u={getCompletions:function(p,m,g,b,C){var S=r.snippetMap,w=[];r.getActiveScopes(p).forEach(function(O){for(var R=S[O]||[],N=R.length;N--;){var P=R[N],L=P.name||P.tabTrigger;L&&w.push({caption:L,snippet:P.content,meta:P.tabTrigger&&!P.name?P.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),C(null,w)},getDocTooltip:function(p){p.type=="snippet"&&!p.docHTML&&(p.docHTML=["<b>",a.escapeHTML(p.caption),"</b>","<hr></hr>",a.escapeHTML(p.snippet)].join(""))}},f=[u,s,c];t.setCompleters=function(p){f.length=0,p&&f.push.apply(f,p)},t.addCompleter=function(p){f.push(p)},t.textCompleter=s,t.keyWordCompleter=c,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(p){return r.expandWithTab(p)},bindKey:"Tab"},y=function(p,m){x(m.session.$mode)},x=function(p){var m=p.$id;r.files||(r.files={}),E(m),p.modes&&p.modes.forEach(x)},E=function(p){if(!(!p||r.files[p])){var m=p.replace("mode","snippets");r.files[p]={},i.loadModule(m,function(g){g&&(r.files[p]=g,!g.snippets&&g.snippetText&&(g.snippets=r.parseSnippetFile(g.snippetText)),r.register(g.snippets||[],g.scope),g.includeScopes&&(r.snippetMap[g.scope].includeScopes=g.includeScopes,g.includeScopes.forEach(function(b){E("ace/mode/"+b)})))})}},h=function(p){var m=p.editor,g=m.completer&&m.completer.activated;if(p.command.name==="backspace")g&&!l.getCompletionPrefix(m)&&m.completer.detach();else if(p.command.name==="insertstring"){var b=l.getCompletionPrefix(m);b&&!g&&(m.completer||(m.completer=new o),m.completer.autoInsert=!1,m.completer.showPopup(m))}},_=e("../editor").Editor;e("../config").defineOptions(_.prototype,"editor",{enableBasicAutocompletion:{set:function(p){p?(this.completers||(this.completers=Array.isArray(p)?p:f),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(p){p?(this.completers||(this.completers=Array.isArray(p)?p:f),this.commands.on("afterExec",h)):this.commands.removeListener("afterExec",h)},value:!1},enableSnippets:{set:function(p){p?(this.commands.addCommand(d),this.on("changeMode",y),y(null,this)):(this.commands.removeCommand(d),this.off("changeMode",y))},value:!1}})}),function(){ace.acequire(["ace/ext/language_tools"],function(){})}(),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t,n){var r=e("../lib/dom"),o=e("../lib/lang"),i=e("../lib/event"),a='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;box-sizing: border-box!important;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;box-sizing: content-box!important;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',l=e("../keyboard/hash_handler").HashHandler,s=e("../lib/keys"),c=999;r.importCssString(a,"ace_searchbox");var u='<div class="ace_search right"> <span action="hide" class="ace_searchbtn_close"></span> <div class="ace_search_form"> <input class="ace_search_field" placeholder="Search for" spellcheck="false"></input> <span action="findPrev" class="ace_searchbtn prev"></span> <span action="findNext" class="ace_searchbtn next"></span> <span action="findAll" class="ace_searchbtn" title="Alt-Enter">All</span> </div> <div class="ace_replace_form"> <input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input> <span action="replaceAndFindNext" class="ace_searchbtn">Replace</span> <span action="replaceAll" class="ace_searchbtn">All</span> </div> <div class="ace_search_options"> <span action="toggleReplace" class="ace_button" title="Toggel Replace mode" style="float:left;margin-top:-2px;padding:0 5px;">+</span> <span class="ace_search_counter"></span> <span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span> <span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span> <span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span> <span action="searchInSelection" class="ace_button" title="Search In Selection">S</span> </div></div>'.replace(/> +/g,">"),f=function(d,y,x){var E=r.createElement("div");E.innerHTML=u,this.element=E.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(d)};(function(){this.setEditor=function(d){d.searchBox=this,d.renderer.scroller.appendChild(this.element),this.editor=d},this.setSession=function(d){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(d){this.searchBox=d.querySelector(".ace_search_form"),this.replaceBox=d.querySelector(".ace_replace_form"),this.searchOption=d.querySelector("[action=searchInSelection]"),this.replaceOption=d.querySelector("[action=toggleReplace]"),this.regExpOption=d.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=d.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=d.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=d.querySelector(".ace_search_counter")},this.$init=function(){var d=this.element;this.$initElements(d);var y=this;i.addListener(d,"mousedown",function(x){setTimeout(function(){y.activeInput.focus()},0),i.stopPropagation(x)}),i.addListener(d,"click",function(x){var E=x.target||x.srcElement,h=E.getAttribute("action");h&&y[h]?y[h]():y.$searchBarKb.commands[h]&&y.$searchBarKb.commands[h].exec(y),i.stopPropagation(x)}),i.addCommandKeyListener(d,function(x,E,h){var _=s.keyCodeToString(h),p=y.$searchBarKb.findKeyCommand(E,_);p&&p.exec&&(p.exec(y),i.stopEvent(x))}),this.$onChange=o.delayedCall(function(){y.find(!1,!1)}),i.addListener(this.searchInput,"input",function(){y.$onChange.schedule(20)}),i.addListener(this.searchInput,"focus",function(){y.activeInput=y.searchInput,y.searchInput.value&&y.highlight()}),i.addListener(this.replaceInput,"focus",function(){y.activeInput=y.replaceInput,y.searchInput.value&&y.highlight()})},this.$closeSearchBarKb=new l([{bindKey:"Esc",name:"closeSearchBar",exec:function(d){d.searchBox.hide()}}]),this.$searchBarKb=new l,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(d){var y=d.isReplace=!d.isReplace;d.replaceBox.style.display=y?"":"none",d.replaceOption.checked=!1,d.$syncOptions(),d.searchInput.focus()},"Ctrl-H|Command-Option-F":function(d){d.replaceOption.checked=!0,d.$syncOptions(),d.replaceInput.focus()},"Ctrl-G|Command-G":function(d){d.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(d){d.findPrev()},esc:function(d){setTimeout(function(){d.hide()})},Return:function(d){d.activeInput==d.replaceInput&&d.replace(),d.findNext()},"Shift-Return":function(d){d.activeInput==d.replaceInput&&d.replace(),d.findPrev()},"Alt-Return":function(d){d.activeInput==d.replaceInput&&d.replaceAll(),d.findAll()},Tab:function(d){(d.activeInput==d.replaceInput?d.searchInput:d.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(d){d.regExpOption.checked=!d.regExpOption.checked,d.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(d){d.caseSensitiveOption.checked=!d.caseSensitiveOption.checked,d.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(d){d.wholeWordOption.checked=!d.wholeWordOption.checked,d.$syncOptions()}},{name:"toggleReplace",exec:function(d){d.replaceOption.checked=!d.replaceOption.checked,d.$syncOptions()}},{name:"searchInSelection",exec:function(d){d.searchOption.checked=!d.searchRange,d.setSearchRange(d.searchOption.checked&&d.editor.getSelectionRange()),d.$syncOptions()}}]),this.setSearchRange=function(d){this.searchRange=d,d?this.searchRangeMarker=this.editor.session.addMarker(d,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(d){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.replaceBox.style.display=this.replaceOption.checked?"":"none",this.find(!1,!1,d)},this.highlight=function(d){this.editor.session.highlight(d||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(d,y,x){var E=this.editor.find(this.searchInput.value,{skipCurrent:d,backwards:y,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:x,range:this.searchRange}),h=!E&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",h),this.editor._emit("findSearchBox",{match:!h}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var d=this.editor,y=d.$search.$options.re,x=0,E=0;if(y){var h=this.searchRange?d.session.getTextRange(this.searchRange):d.getValue(),_=d.session.doc.positionToIndex(d.selection.anchor);this.searchRange&&(_-=d.session.doc.positionToIndex(this.searchRange.start));for(var p=y.lastIndex=0,m;(m=y.exec(h))&&(x++,p=m.index,p<=_&&E++,!(x>c||!m[0]&&(y.lastIndex=p+=1,p>=h.length))););}this.searchCounter.textContent=E+" of "+(x>c?c+"+":x)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var d=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),y=!d&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",y),this.editor._emit("findSearchBox",{match:!y}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(d,y){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=y,d&&(this.searchInput.value=d),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var d=document.activeElement;return d==this.searchInput||d==this.replaceInput}}).call(f.prototype),t.SearchBox=f,t.Search=function(d,y){var x=d.searchBox||new f(d);x.show(d.session.getTextRange(),y)}}),function(){ace.acequire(["ace/ext/searchbox"],function(){})}();var ul={},eb;function cN(){return eb||(eb=1,ul.id="ace/mode/json_worker",ul.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={'"':'"',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:" "},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected '"+c+"' instead of '"+ch+"'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if('"'===ch)for(;next();){if('"'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected '"+ch+"'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key "'+key+'"'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0
|
|
242
|
+
}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),ul}ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(l){l&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+l.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+l.end)))};r.inherits(a,i),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(l,s,c){var u=l.getLine(c);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var f=this._getFoldWidgetBase(l,s,c);return!f&&this.startRegionRe.test(u)?"start":f},this.getFoldWidgetRange=function(l,s,c,u){var f=l.getLine(c);if(this.startRegionRe.test(f))return this.getCommentRegionBlock(l,f,c);var x=f.match(this.foldingStartMarker);if(x){var d=x.index;if(x[1])return this.openingBracketBlock(l,x[1],c,d);var y=l.getCommentFoldRange(c,d+x[0].length,1);return y&&!y.isMultiLine()&&(u?y=this.getSectionRange(l,c):s!="all"&&(y=null)),y}if(s!=="markbegin"){var x=f.match(this.foldingStopMarker);if(x){var d=x.index+x[0].length;return x[1]?this.closingBracketBlock(l,x[1],c,d):l.getCommentFoldRange(c,d,-1)}}},this.getSectionRange=function(l,s){var c=l.getLine(s),u=c.search(/\S/),f=s,d=c.length;s=s+1;for(var y=s,x=l.getLength();++s<x;){c=l.getLine(s);var E=c.search(/\S/);if(E!==-1){if(u>E)break;var h=this.getFoldWidgetRange(l,"all",s);if(h){if(h.start.row<=f)break;if(h.isMultiLine())s=h.end.row;else if(u==E)break}y=s}}return new o(f,d,y,l.getLine(y).length)},this.getCommentRegionBlock=function(l,s,c){for(var u=s.search(/\s*$/),f=l.getLength(),d=c,y=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,x=1;++c<f;){s=l.getLine(c);var E=y.exec(s);if(E&&(E[1]?x--:x++,!x))break}var h=c;if(h>d)return new o(d,u,h,s.length)}}).call(a.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./behaviour/cstyle").CstyleBehaviour,s=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new s};r.inherits(u,o),(function(){this.getNextLineIndent=function(f,d,y){var x=this.$getIndent(d);if(f=="start"){var E=d.match(/^.*[\{\(\[]\s*$/);E&&(x+=y)}return x},this.checkOutdent=function(f,d,y){return this.$outdent.checkOutdent(d,y)},this.autoOutdent=function(f,d,y){this.$outdent.autoOutdent(d,y)},this.createWorker=function(f){var d=new c(["ace"],cN(),"JsonWorker");return d.attachToDocument(f.getDocument()),d.on("annotate",function(y){f.setAnnotations(y.data)}),d.on("terminate",function(){f.clearAnnotations()}),d},this.$id="ace/mode/json"}).call(u.prototype),t.Mode=u});const tb=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),uN=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,tb(e,o,r)})},dN=(e,t,n)=>{let r="";for(const o of n){const i=r.length+1;r+=o.value;const a=r.length;if(!(t<i)&&!(t>a+1))return tb(e,i,o)}return null};class fN{constructor(t){this.session=t}getTokens(t){var o;if(t<1)return null;const n=this.session.getLength();if(t>n)return null;const r=(o=this.session)==null?void 0:o.getTokens(t-1);return!r||!r.length?[]:uN(t,r)}getTokenAt(t){const n=this.session.getTokens(t.lineNumber-1);return n?dN(t.lineNumber,t.column,n):null}}function pN(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function hN(e){if(!e)return!1;for(const t of e.split(`
|
|
243
|
+
`))if(pN(t))return!0;return!1}function mN(e){let t="NONE";const n=[];let r=[],o="";const i=e.trim().split(`
|
|
244
|
+
`);let a;const l=/^\s*$/,s=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^\s*#!/,u=/^([^']*)'/,f=/^((?:[^\\"]|\\.)*)"/,d=/^((?:[^\\"']|\\.)+)/,y=/^\s*curl\s+/,x=/-X ?(GET|HEAD|POST|PUT|DELETE)/,E=/[\s"']https?:\/\//,h=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,_=/[\s"'][^\/ ]+\/+([^\s"']+)/,p=/^.+\s(--data|-d)\s*/,m=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;i.length>0&&c.test(i[0])&&i.shift();function g(){return o.length>0?!0:i.length===0?!1:(o=i.shift().replace(/[\r\n]+/g,`
|
|
245
|
+
`)+`
|
|
246
|
+
`,!0)}function b(){const R=r.pop().replace(/\\([\\"'])/g,"$1");r.push(R)}function C(){o.substr(0,1)==="'"?(o=o.substr(1),t="SINGLE_QUOTE"):o.substr(0,1)==='"'?(o=o.substr(1),t="DOUBLE_QUOTE"):t="UNQUOTED"}function S(){r.length>0&&(n.push(r.join("")),r=[]),t="LF",n.push(`
|
|
247
|
+
`)}function w(R){const N=o.match(R);N?(r.push(N[1]),o=o.substr(N[0].length),C()):(r.push(o),o="")}function O(){let R="GET",N="",P;(P=o.match(x))&&(R=P[1]);const L=E.test(o)?h:_;(P=o.match(L))&&(N=P[1]),n.push(R+" /"+N+`
|
|
248
|
+
`),(P=o.match(p))?(o=o.substr(P[0].length),C(),l.test(o)&&(o="")):(t="NONE",o="",n.push(""))}for(;g();)t==="SINGLE_QUOTE"?w(u):t==="DOUBLE_QUOTE"?(w(f),b()):t==="UNQUOTED"?(w(d),r.length&&b(),t==="UNQUOTED"&&(S(),o="")):t==="BODY"?s.test(o)||l.test(o)?S():(r.push(o),o=""):l.test(o)?(t!=="LF"&&(n.push(`
|
|
249
|
+
`),t="LF"),o=""):(a=o.match(s))?(n.push("#"+a[1]+`
|
|
250
|
+
`),t="NONE",o=""):y.test(o)?O():(a=o.match(m))?(n.push(a[1]+" /"+a[2]+`
|
|
251
|
+
`),o="",t="BODY"):(n.push("### "+o),o="");return S(),n.join("").trim()}function nb(e){const t=e.resize,n=ye.throttle(()=>{t.call(e,!1);const r=ye.get(n,"topRow",0);r!==0&&e.renderer.scrollToLine(r,!1,!1,()=>{})},35);return n}class gN{constructor(t){this.name=t}getTerms(){return[]}match(){return{next:this.next}}}class $n extends gN{constructor(t,n){super(t),this._nextDict={},n&&n.addComponent(this),this._parent=n}getComponent(t){return(this._nextDict[t]||[void 0])[0]}addComponent(t){const n=this._nextDict[t.name]||[];n.push(t),this._nextDict[t.name]=n,this.next=[].concat.apply([],ye.values(this._nextDict))}}class Eo extends $n{constructor(t,n,r){super(t,n),ye.isString(r)&&(r=[r]),this.options=r||[t]}getTerms(){return this.options}addOption(t){Array.isArray(t)||(t=[t]),[].push.apply(this.options,t),this.options=ye.uniq(this.options)}match(t,n,r){return t!==this.name?null:super.match(t,n,r)}}class kn extends $n{constructor(t,n,r,o,i){super(t,r),this.listGenerator=Array.isArray(n)?function(){return n}:n,this.multiValued=ye.isUndefined(o)?!0:o,this.allowNonValidValues=ye.isUndefined(i)?!1:i}getTerms(t,n){if(!this.multiValued&&t.otherTokenValues)return[];let r=t.otherTokenValues||[];ye.isString(r)&&(r=[r]);let o=ye.difference(this.listGenerator(t,n),r);if(this.getDefaultTermMeta()){const i=this.getDefaultTermMeta();o=ye.map(o,function(a){return ye.isString(a)&&(a={name:a}),ye.defaults(a,{meta:i})})}return o}validateTokens(t){if(!this.multiValued&&t.length>1)return!1;const n=this.listGenerator();return!ye.some(t,function(o){return n.indexOf(o)===-1})}getContextKey(){return this.name}getDefaultTermMeta(){return this.name}match(t,n,r){if(Array.isArray(t)||(t=[t]),!this.allowNonValidValues&&!this.validateTokens(t,n,r))return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values[this.getContextKey()]=t,o}}class vN extends $n{constructor(t,n){super(t,n)}match(t,n,r){const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values[this.name]=t,o}}class _N extends $n{constructor(t,n){super("__condition"),this.predicate=t,this.delegate=n}getTerms(t,n){return this.predicate(t,n)?this.delegate.getTerms(t,n):null}match(t,n,r){return this.predicate(n,r)?this.delegate.match(t,n,r):!1}}class yN extends $n{getTerms(){return null}match(t,n){const r={next:[]},o=n.globalComponentResolver(t,!1);return o&&r.next.push.apply(r.next,o),r.next.length||(r.next=[this]),r}}class bN extends $n{constructor(t,n,r){super(t),this.constants=n,this.patternsAndWildCards=r}getTerms(t,n){const r=[];return ye.each(this.constants,function(o){r.push.apply(r,o.getTerms(t,n))}),ye.each(this.patternsAndWildCards,function(o){r.push.apply(r,o.getTerms(t,n))}),r}match(t,n,r){const o={next:[]};ye.each(this.constants,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)});const i=n.globalComponentResolver(t,!1);return i&&o.next.push.apply(o.next,i),o.next.length||ye.each(this.patternsAndWildCards,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)}),o}}const zd="__url_path_end__";class wN extends $n{constructor(t,n){super(t.id,n),this.endpoint=t}match(t,n,r){if(t!==zd||this.endpoint.methods&&ye.indexOf(this.endpoint.methods,n.method)===-1)return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values.endpoint=this.endpoint,ye.isNumber(this.endpoint.priority)&&(o.priority=this.endpoint.priority),o}}class xN extends Eo{constructor(t,n,r){super(t,n),this.template=r,this.name=t}getTerms(){return[{name:this.name,snippet:this.template}]}}class SN{constructor(t){iS(this,"getTopLevelComponents",function(t){const n=this[t];return n?n.rootComponent.next:[]});["HEAD","GET","PUT","POST","DELETE"].forEach(n=>{this[n]={rootComponent:new $n("ROOT"),parametrizedComponentFactories:t||{getComponent:()=>{}}}})}addEndpoint(t,n){n.methods.forEach(r=>{let o,i=this[r].rootComponent;n.template&&new xN(t+"[body]",i,n.template);const a=n.url_components||{},l=t.split("/");ye.each(l,(s,c)=>{if(s.search(/^{.+}$/)>=0){if(s=s.substr(1,s.length-2),i.getComponent(s)){i=i.getComponent(s);return}(o=a[s])?Array.isArray(o)?o=new kn(s,o,i):ye.isObject(o)&&o.type==="list"?o=new kn(s,o.list,i,o.multiValued,o.allow_non_valid):(console.warn("incorrectly configured url component ",s," in endpoint",n),o=new $n(s)):(o=this[r].parametrizedComponentFactories.getComponent(s))?o=o(s,i):o=new vN(s,i),i=o}else{let u=s,f;for(c++;c<l.length&&(f=l[c],!(f.indexOf("{")>=0));c++)u+="/"+f;i.getComponent(s)?(i=i.getComponent(s),i.addOption(u)):(o=new Eo(s,i,u),i=o)}}),new wN(n,i)})}}const CN=6e4;let qd,dl={},Vd={},rb={},fl=[];const EN={};let pl="";function ob(e,t){const n=Vd[t]||{};if(!e)return e;typeof e=="string"&&(e=[e]),e=Ot.map(e,function(i){return n[i]?n[i]:[i]});let r=[].concat.apply([],e);r.sort();let o;return r=Ot.map(r,function(i){const a=o===i?null:i;return o=i,a}),r.length>1?r:r[0]}function ON(e){return e=e.editor.editor.clusterID||pl,[...rb[e]||[]]}function $a(e,t,n){n=n||pl;const r=dl[n]||{};let o=[];if(e=ob(e,n),typeof e=="string"){const i=r[e];if(!i)return[];if(typeof t=="string"){const a=i[t];o=a||[]}else Ot.each(i,function(a,l){(!t||t.length===0||Ot.inArray(a,t)!==-1)&&o.push(l)}),o=[].concat.apply([],o)}else Ot.each(r,function(i){(!e||e.length===0||Ot.inArray(i,e)!==-1)&&o.push($a(i,t,n))}),o=[].concat.apply([],o);return ye.uniqBy(o,function(i){return i.name+":"+i.type})}function ib(e,t){const n=dl[t]||{};let r=[];if(e=ob(e,t),typeof e=="string"){const o=n[e];if(!o)return[];Ot.each(o,function(i){r.push(i)})}else Ot.each(n,function(o){(!e||Ot.inArray(o,e)!==-1)&&r.push(ib(o,t))}),r=[].concat.apply([],r);return ye.uniq(r)}function Hd(e,t){var i;typeof t!="string"&&(t=((i=t==null?void 0:t.editor)==null?void 0:i.clusterID)||pl);const n=dl[t]||{},r=Vd[t]||[],o=[];return Ot.each(n,function(a){o.push(a)}),(typeof e>"u"||e)&&Ot.each(r,function(a){o.push(a)}),o}function ab(e,t){if(t.enabled===!1)return[];let n;function r(a){return(t.path||"full")==="full"?Ot.map(a,function(s){return s.name=e+"."+s.name,s}):a}if(t.properties)return n=Wd(t.properties),r(n);const o=t.type,i={name:e,type:o};return t.index_name&&(i.name=t.index_name),t.fields?(n=Ot.map(t.fields,function(a,l){return ab(l,a)}),n=r(n),n.unshift(i),n):[i]}function Wd(e={}){const t=Ot.map(e,function(n,r){return ab(r,n)});return ye.uniqBy(t,function(n){return n.name+":"+n.type})}function $N(e={},t){e=Ud(e),rb[t]=Object.keys(e)}function Ud(e){return e.response_body?JSON.parse(e.response_body):e}function TN(e,t){e=Ud(e);let n={};Ot.each(e,function(r,o){const i={};o.mappings&&ye.keys(o).length===1&&(o=o.mappings),Ot.each(o,function(a,l){if(a==="properties"){const s=Wd(l);i[a]=s}else i[a]=Wd(l.properties)}),n[r]=i}),dl[t]=n}function PN(e,t){e=Ud(e);let n={};Ot.each(e||{},function(r,o){Ot.each(o.aliases||{},function(i){if(i===r)return;let a=n[i];a||(a=[],n[i]=a),a.push(r)})}),n._all=Hd(!1,t),Vd[t]=n}function hl(e,t,n){const r={fields:"_mapping",indices:"_aliases",templates:"_template",commands:"commands/_search"};if(t[e]===!0)return e==="commands"?iN():oN("GET",r[e],null,{clusterID:n,asSystemRequest:!0});{const o=new Ot.Deferred;return t[e]===!1?o.resolveWith(this,[[JSON.stringify({})]]):o.resolve()}}function RN(){qd&&clearTimeout(qd)}function Gd(e){return typeof e=="string"?JSON.parse(e):e}function sb(e,t,n){RN();const r=hl("fields",t,n),o=hl("indices",t,n),i=hl("templates",t,n),a=hl("commands",t,n);Ot.when(r,o,i,a).done((l,s,c,u)=>{u&&jN(u);let f;l&&(l[0].length>10485760?(console.warn(`Mapping size is larger than 10MB (${l[0].length/1024/1024} MB). Ignoring...`),f="[{}]"):f=l[0],TN(Gd(f),n)),s&&PN(Gd(s[0]),n),c&&$N(Gd(c[0]),n),l&&s&&Ot(EN).trigger("update",[f,s[0]]),qd=setTimeout(()=>{e.getPolling()&&sb(e,e.getAutocomplete(),n)},CN)})}async function jN(e){const t=await e.json();if(t.status&&t.status!=200)return;const n=t.hits.hits;n&&n.length>0&&n.forEach(r=>{fl.push(r)})}function MN(e){fl.push(e)}function IN({editor:e}){const t=[];return fl.forEach(n=>{t.push(n._source.title)}),t}function AN(e){const t=fl.filter(n=>n._source.title==e);return t&&t[0]}function NN(e){pl=e}function kN(e){return!(e==="_all"||e[0]!=="_")}class ml extends kn{constructor(t,n,r){super(t,Hd,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ye.find(t,kN)}getDefaultTermMeta(){return"index"}getContextKey(){return"indices"}}function LN(e){return ye.map($a(e.indices,e.types),function(t){return{name:t.name,meta:t.type}})}class lb extends kn{constructor(t,n,r){super(t,LN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ye.find(t,function(n){return n.match(/[^\w.?*]/)})}getDefaultTermMeta(){return"field"}getContextKey(){return"fields"}}function FN(e){return ib(e.indices)}function DN(e){return!(e==="_all"||e[0]!=="_")}class cb extends kn{constructor(t,n,r){super(t,FN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ye.find(t,DN)}getDefaultTermMeta(){return"type"}getContextKey(){return"types"}}class BN extends $n{constructor(t,n,r){super(t,n),this.multi_match=r}match(t,n,r){if(!t||!this.multi_match&&Array.isArray(t)||(t=Array.isArray(t)?t:[t],ye.find(t,function(i){return i.match(/[\/,]/)})))return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values.id=t,o}}class zN extends kn{constructor(t,n){super(t,ON,n,!0,!0)}getContextKey(){return"template"}}function qN(e){return e[0]==="_"}class ub extends kn{constructor(t,n,r){super(t,Hd,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ye.find(t,qN)}getDefaultTermMeta(){return"username"}getContextKey(){return"username"}}var VN={exports:{}},db={},ci={};(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},n={};n.byteLength=u,n.toByteArray=d,n.fromByteArray=E;for(var r=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=a.length;l<s;++l)r[l]=a[l],o[a.charCodeAt(l)]=l;o[45]=62,o[95]=63;function c(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=m);var b=g===m?0:4-g%4;return[g,b]}function u(p){var m=c(p),g=m[0],b=m[1];return(g+b)*3/4-b}function f(p,m,g){return(m+g)*3/4-g}function d(p){var m,g=c(p),b=g[0],C=g[1],S=new i(f(p,b,C)),w=0,O=C>0?b-4:b,R;for(R=0;R<O;R+=4)m=o[p.charCodeAt(R)]<<18|o[p.charCodeAt(R+1)]<<12|o[p.charCodeAt(R+2)]<<6|o[p.charCodeAt(R+3)],S[w++]=m>>16&255,S[w++]=m>>8&255,S[w++]=m&255;return C===2&&(m=o[p.charCodeAt(R)]<<2|o[p.charCodeAt(R+1)]>>4,S[w++]=m&255),C===1&&(m=o[p.charCodeAt(R)]<<10|o[p.charCodeAt(R+1)]<<4|o[p.charCodeAt(R+2)]>>2,S[w++]=m>>8&255,S[w++]=m&255),S}function y(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[p&63]}function x(p,m,g){for(var b,C=[],S=m;S<g;S+=3)b=(p[S]<<16&16711680)+(p[S+1]<<8&65280)+(p[S+2]&255),C.push(y(b));return C.join("")}function E(p){for(var m,g=p.length,b=g%3,C=[],S=16383,w=0,O=g-b;w<O;w+=S)C.push(x(p,w,w+S>O?O:w+S));return b===1?(m=p[g-1],C.push(r[m>>2]+r[m<<4&63]+"==")):b===2&&(m=(p[g-2]<<8)+p[g-1],C.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),C.join("")}var h={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */h.read=function(p,m,g,b,C){var S,w,O=C*8-b-1,R=(1<<O)-1,N=R>>1,P=-7,L=g?C-1:0,z=g?-1:1,J=p[m+L];for(L+=z,S=J&(1<<-P)-1,J>>=-P,P+=O;P>0;S=S*256+p[m+L],L+=z,P-=8);for(w=S&(1<<-P)-1,S>>=-P,P+=b;P>0;w=w*256+p[m+L],L+=z,P-=8);if(S===0)S=1-N;else{if(S===R)return w?NaN:(J?-1:1)*(1/0);w=w+Math.pow(2,b),S=S-N}return(J?-1:1)*w*Math.pow(2,S-b)},h.write=function(p,m,g,b,C,S){var w,O,R,N=S*8-C-1,P=(1<<N)-1,L=P>>1,z=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,J=b?0:S-1,X=b?1:-1,j=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(O=isNaN(m)?1:0,w=P):(w=Math.floor(Math.log(m)/Math.LN2),m*(R=Math.pow(2,-w))<1&&(w--,R*=2),w+L>=1?m+=z/R:m+=z*Math.pow(2,1-L),m*R>=2&&(w++,R/=2),w+L>=P?(O=0,w=P):w+L>=1?(O=(m*R-1)*Math.pow(2,C),w=w+L):(O=m*Math.pow(2,L-1)*Math.pow(2,C),w=0));C>=8;p[g+J]=O&255,J+=X,O/=256,C-=8);for(w=w<<C|O,N+=C;N>0;p[g+J]=w&255,J+=X,w/=256,N-=8);p[g+J-X]|=j*128};/*!
|
|
252
|
+
* The buffer module from node.js, for the browser.
|
|
253
|
+
*
|
|
254
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
255
|
+
* @license MIT
|
|
256
|
+
*/(function(p){const m=n,g=h,b=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=P,p.SlowBuffer=k,p.INSPECT_MAX_BYTES=50;const C=2147483647;p.kMaxLength=C;const{Uint8Array:S,ArrayBuffer:w,SharedArrayBuffer:O}=globalThis;P.TYPED_ARRAY_SUPPORT=R(),!P.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function R(){try{const I=new S(1),$={foo:function(){return 42}};return Object.setPrototypeOf($,S.prototype),Object.setPrototypeOf(I,$),I.foo()===42}catch{return!1}}Object.defineProperty(P.prototype,"parent",{enumerable:!0,get:function(){if(P.isBuffer(this))return this.buffer}}),Object.defineProperty(P.prototype,"offset",{enumerable:!0,get:function(){if(P.isBuffer(this))return this.byteOffset}});function N(I){if(I>C)throw new RangeError('The value "'+I+'" is invalid for option "size"');const $=new S(I);return Object.setPrototypeOf($,P.prototype),$}function P(I,$,T){if(typeof I=="number"){if(typeof $=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return X(I)}return L(I,$,T)}P.poolSize=8192;function L(I,$,T){if(typeof I=="string")return j(I,$);if(w.isView(I))return U(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(et(I,w)||I&&et(I.buffer,w)||typeof O<"u"&&(et(I,O)||I&&et(I.buffer,O)))return D(I,$,T);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const K=I.valueOf&&I.valueOf();if(K!=null&&K!==I)return P.from(K,$,T);const te=W(I);if(te)return te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return P.from(I[Symbol.toPrimitive]("string"),$,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}P.from=function(I,$,T){return L(I,$,T)},Object.setPrototypeOf(P.prototype,S.prototype),Object.setPrototypeOf(P,S);function z(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function J(I,$,T){return z(I),I<=0?N(I):$!==void 0?typeof T=="string"?N(I).fill($,T):N(I).fill($):N(I)}P.alloc=function(I,$,T){return J(I,$,T)};function X(I){return z(I),N(I<0?0:A(I)|0)}P.allocUnsafe=function(I){return X(I)},P.allocUnsafeSlow=function(I){return X(I)};function j(I,$){if((typeof $!="string"||$==="")&&($="utf8"),!P.isEncoding($))throw new TypeError("Unknown encoding: "+$);const T=G(I,$)|0;let K=N(T);const te=K.write(I,$);return te!==T&&(K=K.slice(0,te)),K}function H(I){const $=I.length<0?0:A(I.length)|0,T=N($);for(let K=0;K<$;K+=1)T[K]=I[K]&255;return T}function U(I){if(et(I,S)){const $=new S(I);return D($.buffer,$.byteOffset,$.byteLength)}return H(I)}function D(I,$,T){if($<0||I.byteLength<$)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<$+(T||0))throw new RangeError('"length" is outside of buffer bounds');let K;return $===void 0&&T===void 0?K=new S(I):T===void 0?K=new S(I,$):K=new S(I,$,T),Object.setPrototypeOf(K,P.prototype),K}function W(I){if(P.isBuffer(I)){const $=A(I.length)|0,T=N($);return T.length===0||I.copy(T,0,0,$),T}if(I.length!==void 0)return typeof I.length!="number"||ut(I.length)?N(0):H(I);if(I.type==="Buffer"&&Array.isArray(I.data))return H(I.data)}function A(I){if(I>=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return I|0}function k(I){return+I!=I&&(I=0),P.alloc(+I)}P.isBuffer=function($){return $!=null&&$._isBuffer===!0&&$!==P.prototype},P.compare=function($,T){if(et($,S)&&($=P.from($,$.offset,$.byteLength)),et(T,S)&&(T=P.from(T,T.offset,T.byteLength)),!P.isBuffer($)||!P.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if($===T)return 0;let K=$.length,te=T.length;for(let le=0,ge=Math.min(K,te);le<ge;++le)if($[le]!==T[le]){K=$[le],te=T[le];break}return K<te?-1:te<K?1:0},P.isEncoding=function($){switch(String($).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},P.concat=function($,T){if(!Array.isArray($))throw new TypeError('"list" argument must be an Array of Buffers');if($.length===0)return P.alloc(0);let K;if(T===void 0)for(T=0,K=0;K<$.length;++K)T+=$[K].length;const te=P.allocUnsafe(T);let le=0;for(K=0;K<$.length;++K){let ge=$[K];if(et(ge,S))le+ge.length>te.length?(P.isBuffer(ge)||(ge=P.from(ge)),ge.copy(te,le)):S.prototype.set.call(te,ge,le);else if(P.isBuffer(ge))ge.copy(te,le);else throw new TypeError('"list" argument must be an Array of Buffers');le+=ge.length}return te};function G(I,$){if(P.isBuffer(I))return I.length;if(w.isView(I)||et(I,w))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);const T=I.length,K=arguments.length>2&&arguments[2]===!0;if(!K&&T===0)return 0;let te=!1;for(;;)switch($){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return Rt(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return wt(I).length;default:if(te)return K?-1:Rt(I).length;$=(""+$).toLowerCase(),te=!0}}P.byteLength=G;function Z(I,$,T){let K=!1;if(($===void 0||$<0)&&($=0),$>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0,$>>>=0,T<=$))return"";for(I||(I="utf8");;)switch(I){case"hex":return Me(this,$,T);case"utf8":case"utf-8":return me(this,$,T);case"ascii":return Ae(this,$,T);case"latin1":case"binary":return ue(this,$,T);case"base64":return ee(this,$,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,$,T);default:if(K)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),K=!0}}P.prototype._isBuffer=!0;function q(I,$,T){const K=I[$];I[$]=I[T],I[T]=K}P.prototype.swap16=function(){const $=this.length;if($%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let T=0;T<$;T+=2)q(this,T,T+1);return this},P.prototype.swap32=function(){const $=this.length;if($%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let T=0;T<$;T+=4)q(this,T,T+3),q(this,T+1,T+2);return this},P.prototype.swap64=function(){const $=this.length;if($%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let T=0;T<$;T+=8)q(this,T,T+7),q(this,T+1,T+6),q(this,T+2,T+5),q(this,T+3,T+4);return this},P.prototype.toString=function(){const $=this.length;return $===0?"":arguments.length===0?me(this,0,$):Z.apply(this,arguments)},P.prototype.toLocaleString=P.prototype.toString,P.prototype.equals=function($){if(!P.isBuffer($))throw new TypeError("Argument must be a Buffer");return this===$?!0:P.compare(this,$)===0},P.prototype.inspect=function(){let $="";const T=p.INSPECT_MAX_BYTES;return $=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&($+=" ... "),"<Buffer "+$+">"},b&&(P.prototype[b]=P.prototype.inspect),P.prototype.compare=function($,T,K,te,le){if(et($,S)&&($=P.from($,$.offset,$.byteLength)),!P.isBuffer($))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof $);if(T===void 0&&(T=0),K===void 0&&(K=$?$.length:0),te===void 0&&(te=0),le===void 0&&(le=this.length),T<0||K>$.length||te<0||le>this.length)throw new RangeError("out of range index");if(te>=le&&T>=K)return 0;if(te>=le)return-1;if(T>=K)return 1;if(T>>>=0,K>>>=0,te>>>=0,le>>>=0,this===$)return 0;let ge=le-te,Fe=K-T;const tt=Math.min(ge,Fe),rt=this.slice(te,le),Q=$.slice(T,K);for(let de=0;de<tt;++de)if(rt[de]!==Q[de]){ge=rt[de],Fe=Q[de];break}return ge<Fe?-1:Fe<ge?1:0};function V(I,$,T,K,te){if(I.length===0)return-1;if(typeof T=="string"?(K=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,ut(T)&&(T=te?0:I.length-1),T<0&&(T=I.length+T),T>=I.length){if(te)return-1;T=I.length-1}else if(T<0)if(te)T=0;else return-1;if(typeof $=="string"&&($=P.from($,K)),P.isBuffer($))return $.length===0?-1:Y(I,$,T,K,te);if(typeof $=="number")return $=$&255,typeof S.prototype.indexOf=="function"?te?S.prototype.indexOf.call(I,$,T):S.prototype.lastIndexOf.call(I,$,T):Y(I,[$],T,K,te);throw new TypeError("val must be string, number or Buffer")}function Y(I,$,T,K,te){let le=1,ge=I.length,Fe=$.length;if(K!==void 0&&(K=String(K).toLowerCase(),K==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(I.length<2||$.length<2)return-1;le=2,ge/=2,Fe/=2,T/=2}function tt(Q,de){return le===1?Q[de]:Q.readUInt16BE(de*le)}let rt;if(te){let Q=-1;for(rt=T;rt<ge;rt++)if(tt(I,rt)===tt($,Q===-1?0:rt-Q)){if(Q===-1&&(Q=rt),rt-Q+1===Fe)return Q*le}else Q!==-1&&(rt-=rt-Q),Q=-1}else for(T+Fe>ge&&(T=ge-Fe),rt=T;rt>=0;rt--){let Q=!0;for(let de=0;de<Fe;de++)if(tt(I,rt+de)!==tt($,de)){Q=!1;break}if(Q)return rt}return-1}P.prototype.includes=function($,T,K){return this.indexOf($,T,K)!==-1},P.prototype.indexOf=function($,T,K){return V(this,$,T,K,!0)},P.prototype.lastIndexOf=function($,T,K){return V(this,$,T,K,!1)};function re(I,$,T,K){T=Number(T)||0;const te=I.length-T;K?(K=Number(K),K>te&&(K=te)):K=te;const le=$.length;K>le/2&&(K=le/2);let ge;for(ge=0;ge<K;++ge){const Fe=parseInt($.substr(ge*2,2),16);if(ut(Fe))return ge;I[T+ge]=Fe}return ge}function se(I,$,T,K){return jt(Rt($,I.length-T),I,T,K)}function F(I,$,T,K){return jt(Ht($),I,T,K)}function B(I,$,T,K){return jt(wt($),I,T,K)}function ae(I,$,T,K){return jt(Jt($,I.length-T),I,T,K)}P.prototype.write=function($,T,K,te){if(T===void 0)te="utf8",K=this.length,T=0;else if(K===void 0&&typeof T=="string")te=T,K=this.length,T=0;else if(isFinite(T))T=T>>>0,isFinite(K)?(K=K>>>0,te===void 0&&(te="utf8")):(te=K,K=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const le=this.length-T;if((K===void 0||K>le)&&(K=le),$.length>0&&(K<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let ge=!1;for(;;)switch(te){case"hex":return re(this,$,T,K);case"utf8":case"utf-8":return se(this,$,T,K);case"ascii":case"latin1":case"binary":return F(this,$,T,K);case"base64":return B(this,$,T,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,$,T,K);default:if(ge)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),ge=!0}},P.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ee(I,$,T){return $===0&&T===I.length?m.fromByteArray(I):m.fromByteArray(I.slice($,T))}function me(I,$,T){T=Math.min(I.length,T);const K=[];let te=$;for(;te<T;){const le=I[te];let ge=null,Fe=le>239?4:le>223?3:le>191?2:1;if(te+Fe<=T){let tt,rt,Q,de;switch(Fe){case 1:le<128&&(ge=le);break;case 2:tt=I[te+1],(tt&192)===128&&(de=(le&31)<<6|tt&63,de>127&&(ge=de));break;case 3:tt=I[te+1],rt=I[te+2],(tt&192)===128&&(rt&192)===128&&(de=(le&15)<<12|(tt&63)<<6|rt&63,de>2047&&(de<55296||de>57343)&&(ge=de));break;case 4:tt=I[te+1],rt=I[te+2],Q=I[te+3],(tt&192)===128&&(rt&192)===128&&(Q&192)===128&&(de=(le&15)<<18|(tt&63)<<12|(rt&63)<<6|Q&63,de>65535&&de<1114112&&(ge=de))}}ge===null?(ge=65533,Fe=1):ge>65535&&(ge-=65536,K.push(ge>>>10&1023|55296),ge=56320|ge&1023),K.push(ge),te+=Fe}return xe(K)}const pe=4096;function xe(I){const $=I.length;if($<=pe)return String.fromCharCode.apply(String,I);let T="",K=0;for(;K<$;)T+=String.fromCharCode.apply(String,I.slice(K,K+=pe));return T}function Ae(I,$,T){let K="";T=Math.min(I.length,T);for(let te=$;te<T;++te)K+=String.fromCharCode(I[te]&127);return K}function ue(I,$,T){let K="";T=Math.min(I.length,T);for(let te=$;te<T;++te)K+=String.fromCharCode(I[te]);return K}function Me(I,$,T){const K=I.length;(!$||$<0)&&($=0),(!T||T<0||T>K)&&(T=K);let te="";for(let le=$;le<T;++le)te+=Mt[I[le]];return te}function Re(I,$,T){const K=I.slice($,T);let te="";for(let le=0;le<K.length-1;le+=2)te+=String.fromCharCode(K[le]+K[le+1]*256);return te}P.prototype.slice=function($,T){const K=this.length;$=~~$,T=T===void 0?K:~~T,$<0?($+=K,$<0&&($=0)):$>K&&($=K),T<0?(T+=K,T<0&&(T=0)):T>K&&(T=K),T<$&&(T=$);const te=this.subarray($,T);return Object.setPrototypeOf(te,P.prototype),te};function $e(I,$,T){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+$>T)throw new RangeError("Trying to access beyond buffer length")}P.prototype.readUintLE=P.prototype.readUIntLE=function($,T,K){$=$>>>0,T=T>>>0,K||$e($,T,this.length);let te=this[$],le=1,ge=0;for(;++ge<T&&(le*=256);)te+=this[$+ge]*le;return te},P.prototype.readUintBE=P.prototype.readUIntBE=function($,T,K){$=$>>>0,T=T>>>0,K||$e($,T,this.length);let te=this[$+--T],le=1;for(;T>0&&(le*=256);)te+=this[$+--T]*le;return te},P.prototype.readUint8=P.prototype.readUInt8=function($,T){return $=$>>>0,T||$e($,1,this.length),this[$]},P.prototype.readUint16LE=P.prototype.readUInt16LE=function($,T){return $=$>>>0,T||$e($,2,this.length),this[$]|this[$+1]<<8},P.prototype.readUint16BE=P.prototype.readUInt16BE=function($,T){return $=$>>>0,T||$e($,2,this.length),this[$]<<8|this[$+1]},P.prototype.readUint32LE=P.prototype.readUInt32LE=function($,T){return $=$>>>0,T||$e($,4,this.length),(this[$]|this[$+1]<<8|this[$+2]<<16)+this[$+3]*16777216},P.prototype.readUint32BE=P.prototype.readUInt32BE=function($,T){return $=$>>>0,T||$e($,4,this.length),this[$]*16777216+(this[$+1]<<16|this[$+2]<<8|this[$+3])},P.prototype.readBigUInt64LE=Xe(function($){$=$>>>0,je($,"offset");const T=this[$],K=this[$+7];(T===void 0||K===void 0)&&ct($,this.length-8);const te=T+this[++$]*2**8+this[++$]*2**16+this[++$]*2**24,le=this[++$]+this[++$]*2**8+this[++$]*2**16+K*2**24;return BigInt(te)+(BigInt(le)<<BigInt(32))}),P.prototype.readBigUInt64BE=Xe(function($){$=$>>>0,je($,"offset");const T=this[$],K=this[$+7];(T===void 0||K===void 0)&&ct($,this.length-8);const te=T*2**24+this[++$]*2**16+this[++$]*2**8+this[++$],le=this[++$]*2**24+this[++$]*2**16+this[++$]*2**8+K;return(BigInt(te)<<BigInt(32))+BigInt(le)}),P.prototype.readIntLE=function($,T,K){$=$>>>0,T=T>>>0,K||$e($,T,this.length);let te=this[$],le=1,ge=0;for(;++ge<T&&(le*=256);)te+=this[$+ge]*le;return le*=128,te>=le&&(te-=Math.pow(2,8*T)),te},P.prototype.readIntBE=function($,T,K){$=$>>>0,T=T>>>0,K||$e($,T,this.length);let te=T,le=1,ge=this[$+--te];for(;te>0&&(le*=256);)ge+=this[$+--te]*le;return le*=128,ge>=le&&(ge-=Math.pow(2,8*T)),ge},P.prototype.readInt8=function($,T){return $=$>>>0,T||$e($,1,this.length),this[$]&128?(255-this[$]+1)*-1:this[$]},P.prototype.readInt16LE=function($,T){$=$>>>0,T||$e($,2,this.length);const K=this[$]|this[$+1]<<8;return K&32768?K|4294901760:K},P.prototype.readInt16BE=function($,T){$=$>>>0,T||$e($,2,this.length);const K=this[$+1]|this[$]<<8;return K&32768?K|4294901760:K},P.prototype.readInt32LE=function($,T){return $=$>>>0,T||$e($,4,this.length),this[$]|this[$+1]<<8|this[$+2]<<16|this[$+3]<<24},P.prototype.readInt32BE=function($,T){return $=$>>>0,T||$e($,4,this.length),this[$]<<24|this[$+1]<<16|this[$+2]<<8|this[$+3]},P.prototype.readBigInt64LE=Xe(function($){$=$>>>0,je($,"offset");const T=this[$],K=this[$+7];(T===void 0||K===void 0)&&ct($,this.length-8);const te=this[$+4]+this[$+5]*2**8+this[$+6]*2**16+(K<<24);return(BigInt(te)<<BigInt(32))+BigInt(T+this[++$]*2**8+this[++$]*2**16+this[++$]*2**24)}),P.prototype.readBigInt64BE=Xe(function($){$=$>>>0,je($,"offset");const T=this[$],K=this[$+7];(T===void 0||K===void 0)&&ct($,this.length-8);const te=(T<<24)+this[++$]*2**16+this[++$]*2**8+this[++$];return(BigInt(te)<<BigInt(32))+BigInt(this[++$]*2**24+this[++$]*2**16+this[++$]*2**8+K)}),P.prototype.readFloatLE=function($,T){return $=$>>>0,T||$e($,4,this.length),g.read(this,$,!0,23,4)},P.prototype.readFloatBE=function($,T){return $=$>>>0,T||$e($,4,this.length),g.read(this,$,!1,23,4)},P.prototype.readDoubleLE=function($,T){return $=$>>>0,T||$e($,8,this.length),g.read(this,$,!0,52,8)},P.prototype.readDoubleBE=function($,T){return $=$>>>0,T||$e($,8,this.length),g.read(this,$,!1,52,8)};function ve(I,$,T,K,te,le){if(!P.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if($>te||$<le)throw new RangeError('"value" argument is out of bounds');if(T+K>I.length)throw new RangeError("Index out of range")}P.prototype.writeUintLE=P.prototype.writeUIntLE=function($,T,K,te){if($=+$,T=T>>>0,K=K>>>0,!te){const Fe=Math.pow(2,8*K)-1;ve(this,$,T,K,Fe,0)}let le=1,ge=0;for(this[T]=$&255;++ge<K&&(le*=256);)this[T+ge]=$/le&255;return T+K},P.prototype.writeUintBE=P.prototype.writeUIntBE=function($,T,K,te){if($=+$,T=T>>>0,K=K>>>0,!te){const Fe=Math.pow(2,8*K)-1;ve(this,$,T,K,Fe,0)}let le=K-1,ge=1;for(this[T+le]=$&255;--le>=0&&(ge*=256);)this[T+le]=$/ge&255;return T+K},P.prototype.writeUint8=P.prototype.writeUInt8=function($,T,K){return $=+$,T=T>>>0,K||ve(this,$,T,1,255,0),this[T]=$&255,T+1},P.prototype.writeUint16LE=P.prototype.writeUInt16LE=function($,T,K){return $=+$,T=T>>>0,K||ve(this,$,T,2,65535,0),this[T]=$&255,this[T+1]=$>>>8,T+2},P.prototype.writeUint16BE=P.prototype.writeUInt16BE=function($,T,K){return $=+$,T=T>>>0,K||ve(this,$,T,2,65535,0),this[T]=$>>>8,this[T+1]=$&255,T+2},P.prototype.writeUint32LE=P.prototype.writeUInt32LE=function($,T,K){return $=+$,T=T>>>0,K||ve(this,$,T,4,4294967295,0),this[T+3]=$>>>24,this[T+2]=$>>>16,this[T+1]=$>>>8,this[T]=$&255,T+4},P.prototype.writeUint32BE=P.prototype.writeUInt32BE=function($,T,K){return $=+$,T=T>>>0,K||ve(this,$,T,4,4294967295,0),this[T]=$>>>24,this[T+1]=$>>>16,this[T+2]=$>>>8,this[T+3]=$&255,T+4};function we(I,$,T,K,te){qe($,K,te,I,T,7);let le=Number($&BigInt(4294967295));I[T++]=le,le=le>>8,I[T++]=le,le=le>>8,I[T++]=le,le=le>>8,I[T++]=le;let ge=Number($>>BigInt(32)&BigInt(4294967295));return I[T++]=ge,ge=ge>>8,I[T++]=ge,ge=ge>>8,I[T++]=ge,ge=ge>>8,I[T++]=ge,T}function Ce(I,$,T,K,te){qe($,K,te,I,T,7);let le=Number($&BigInt(4294967295));I[T+7]=le,le=le>>8,I[T+6]=le,le=le>>8,I[T+5]=le,le=le>>8,I[T+4]=le;let ge=Number($>>BigInt(32)&BigInt(4294967295));return I[T+3]=ge,ge=ge>>8,I[T+2]=ge,ge=ge>>8,I[T+1]=ge,ge=ge>>8,I[T]=ge,T+8}P.prototype.writeBigUInt64LE=Xe(function($,T=0){return we(this,$,T,BigInt(0),BigInt("0xffffffffffffffff"))}),P.prototype.writeBigUInt64BE=Xe(function($,T=0){return Ce(this,$,T,BigInt(0),BigInt("0xffffffffffffffff"))}),P.prototype.writeIntLE=function($,T,K,te){if($=+$,T=T>>>0,!te){const tt=Math.pow(2,8*K-1);ve(this,$,T,K,tt-1,-tt)}let le=0,ge=1,Fe=0;for(this[T]=$&255;++le<K&&(ge*=256);)$<0&&Fe===0&&this[T+le-1]!==0&&(Fe=1),this[T+le]=($/ge>>0)-Fe&255;return T+K},P.prototype.writeIntBE=function($,T,K,te){if($=+$,T=T>>>0,!te){const tt=Math.pow(2,8*K-1);ve(this,$,T,K,tt-1,-tt)}let le=K-1,ge=1,Fe=0;for(this[T+le]=$&255;--le>=0&&(ge*=256);)$<0&&Fe===0&&this[T+le+1]!==0&&(Fe=1),this[T+le]=($/ge>>0)-Fe&255;return T+K},P.prototype.writeInt8=function($,T,K){return $=+$,T=T>>>0,K||ve(this,$,T,1,127,-128),$<0&&($=255+$+1),this[T]=$&255,T+1},P.prototype.writeInt16LE=function($,T,K){return $=+$,T=T>>>0,K||ve(this,$,T,2,32767,-32768),this[T]=$&255,this[T+1]=$>>>8,T+2},P.prototype.writeInt16BE=function($,T,K){return $=+$,T=T>>>0,K||ve(this,$,T,2,32767,-32768),this[T]=$>>>8,this[T+1]=$&255,T+2},P.prototype.writeInt32LE=function($,T,K){return $=+$,T=T>>>0,K||ve(this,$,T,4,2147483647,-2147483648),this[T]=$&255,this[T+1]=$>>>8,this[T+2]=$>>>16,this[T+3]=$>>>24,T+4},P.prototype.writeInt32BE=function($,T,K){return $=+$,T=T>>>0,K||ve(this,$,T,4,2147483647,-2147483648),$<0&&($=4294967295+$+1),this[T]=$>>>24,this[T+1]=$>>>16,this[T+2]=$>>>8,this[T+3]=$&255,T+4},P.prototype.writeBigInt64LE=Xe(function($,T=0){return we(this,$,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),P.prototype.writeBigInt64BE=Xe(function($,T=0){return Ce(this,$,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ee(I,$,T,K,te,le){if(T+K>I.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function We(I,$,T,K,te){return $=+$,T=T>>>0,te||Ee(I,$,T,4),g.write(I,$,T,K,23,4),T+4}P.prototype.writeFloatLE=function($,T,K){return We(this,$,T,!0,K)},P.prototype.writeFloatBE=function($,T,K){return We(this,$,T,!1,K)};function Ue(I,$,T,K,te){return $=+$,T=T>>>0,te||Ee(I,$,T,8),g.write(I,$,T,K,52,8),T+8}P.prototype.writeDoubleLE=function($,T,K){return Ue(this,$,T,!0,K)},P.prototype.writeDoubleBE=function($,T,K){return Ue(this,$,T,!1,K)},P.prototype.copy=function($,T,K,te){if(!P.isBuffer($))throw new TypeError("argument should be a Buffer");if(K||(K=0),!te&&te!==0&&(te=this.length),T>=$.length&&(T=$.length),T||(T=0),te>0&&te<K&&(te=K),te===K||$.length===0||this.length===0)return 0;if(T<0)throw new RangeError("targetStart out of bounds");if(K<0||K>=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),$.length-T<te-K&&(te=$.length-T+K);const le=te-K;return this===$&&typeof S.prototype.copyWithin=="function"?this.copyWithin(T,K,te):S.prototype.set.call($,this.subarray(K,te),T),le},P.prototype.fill=function($,T,K,te){if(typeof $=="string"){if(typeof T=="string"?(te=T,T=0,K=this.length):typeof K=="string"&&(te=K,K=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!P.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if($.length===1){const ge=$.charCodeAt(0);(te==="utf8"&&ge<128||te==="latin1")&&($=ge)}}else typeof $=="number"?$=$&255:typeof $=="boolean"&&($=Number($));if(T<0||this.length<T||this.length<K)throw new RangeError("Out of range index");if(K<=T)return this;T=T>>>0,K=K===void 0?this.length:K>>>0,$||($=0);let le;if(typeof $=="number")for(le=T;le<K;++le)this[le]=$;else{const ge=P.isBuffer($)?$:P.from($,te),Fe=ge.length;if(Fe===0)throw new TypeError('The value "'+$+'" is invalid for argument "value"');for(le=0;le<K-T;++le)this[le+T]=ge[le%Fe]}return this};const Je={};function mt(I,$,T){Je[I]=class extends T{constructor(){super(),Object.defineProperty(this,"message",{value:$.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}mt("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),mt("ERR_INVALID_ARG_TYPE",function(I,$){return`The "${I}" argument must be of type number. Received type ${typeof $}`},TypeError),mt("ERR_OUT_OF_RANGE",function(I,$,T){let K=`The value of "${I}" is out of range.`,te=T;return Number.isInteger(T)&&Math.abs(T)>2**32?te=bt(String(T)):typeof T=="bigint"&&(te=String(T),(T>BigInt(2)**BigInt(32)||T<-(BigInt(2)**BigInt(32)))&&(te=bt(te)),te+="n"),K+=` It must be ${$}. Received ${te}`,K},RangeError);function bt(I){let $="",T=I.length;const K=I[0]==="-"?1:0;for(;T>=K+4;T-=3)$=`_${I.slice(T-3,T)}${$}`;return`${I.slice(0,T)}${$}`}function dt(I,$,T){je($,"offset"),(I[$]===void 0||I[$+T]===void 0)&&ct($,I.length-(T+1))}function qe(I,$,T,K,te,le){if(I>T||I<$){const ge=typeof $=="bigint"?"n":"";let Fe;throw $===0||$===BigInt(0)?Fe=`>= 0${ge} and < 2${ge} ** ${(le+1)*8}${ge}`:Fe=`>= -(2${ge} ** ${(le+1)*8-1}${ge}) and < 2 ** ${(le+1)*8-1}${ge}`,new Je.ERR_OUT_OF_RANGE("value",Fe,I)}dt(K,te,le)}function je(I,$){if(typeof I!="number")throw new Je.ERR_INVALID_ARG_TYPE($,"number",I)}function ct(I,$,T){throw Math.floor(I)!==I?(je(I,T),new Je.ERR_OUT_OF_RANGE("offset","an integer",I)):$<0?new Je.ERR_BUFFER_OUT_OF_BOUNDS:new Je.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${$}`,I)}const lt=/[^+/0-9A-Za-z-_]/g;function Qe(I){if(I=I.split("=")[0],I=I.trim().replace(lt,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Rt(I,$){$=$||1/0;let T;const K=I.length;let te=null;const le=[];for(let ge=0;ge<K;++ge){if(T=I.charCodeAt(ge),T>55295&&T<57344){if(!te){if(T>56319){($-=3)>-1&&le.push(239,191,189);continue}else if(ge+1===K){($-=3)>-1&&le.push(239,191,189);continue}te=T;continue}if(T<56320){($-=3)>-1&&le.push(239,191,189),te=T;continue}T=(te-55296<<10|T-56320)+65536}else te&&($-=3)>-1&&le.push(239,191,189);if(te=null,T<128){if(($-=1)<0)break;le.push(T)}else if(T<2048){if(($-=2)<0)break;le.push(T>>6|192,T&63|128)}else if(T<65536){if(($-=3)<0)break;le.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if(($-=4)<0)break;le.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return le}function Ht(I){const $=[];for(let T=0;T<I.length;++T)$.push(I.charCodeAt(T)&255);return $}function Jt(I,$){let T,K,te;const le=[];for(let ge=0;ge<I.length&&!(($-=2)<0);++ge)T=I.charCodeAt(ge),K=T>>8,te=T%256,le.push(te),le.push(K);return le}function wt(I){return m.toByteArray(Qe(I))}function jt(I,$,T,K){let te;for(te=0;te<K&&!(te+T>=$.length||te>=I.length);++te)$[te+T]=I[te];return te}function et(I,$){return I instanceof $||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===$.name}function ut(I){return I!==I}const Mt=function(){const I="0123456789abcdef",$=new Array(256);for(let T=0;T<16;++T){const K=T*16;for(let te=0;te<16;++te)$[K+te]=I[T]+I[te]}return $}();function Xe(I){return typeof BigInt>"u"?ke:I}function ke(){throw new Error("BigInt not supported")}})(t);const _=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=_,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(ci);const Oo=ec(ci);var fb={exports:{}},Kd={};(function(e){e.fetch=o(vt.fetch)&&o(vt.ReadableStream),e.writableStream=o(vt.WritableStream),e.abortController=o(vt.AbortController);var t;function n(){if(t!==void 0)return t;if(vt.XMLHttpRequest){t=new vt.XMLHttpRequest;try{t.open("GET",vt.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function r(i){var a=n();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(n()?o(n().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null})(Kd);var Xd={exports:{}};typeof Object.create=="function"?Xd.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Xd.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}};var Hr=Xd.exports,gl={},Yd={exports:{}},Jd={exports:{}},ui=typeof Reflect=="object"?Reflect:null,pb=ui&&typeof ui.apply=="function"?ui.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},vl;ui&&typeof ui.ownKeys=="function"?vl=ui.ownKeys:Object.getOwnPropertySymbols?vl=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:vl=function(t){return Object.getOwnPropertyNames(t)};function HN(e){console&&console.warn&&console.warn(e)}var hb=Number.isNaN||function(t){return t!==t};function St(){St.init.call(this)}Jd.exports=St,Jd.exports.once=KN,St.EventEmitter=St,St.prototype._events=void 0,St.prototype._eventsCount=0,St.prototype._maxListeners=void 0;var mb=10;function _l(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(St,"defaultMaxListeners",{enumerable:!0,get:function(){return mb},set:function(e){if(typeof e!="number"||e<0||hb(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");mb=e}}),St.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},St.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||hb(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function gb(e){return e._maxListeners===void 0?St.defaultMaxListeners:e._maxListeners}St.prototype.getMaxListeners=function(){return gb(this)},St.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var o=t==="error",i=this._events;if(i!==void 0)o=o&&i.error===void 0;else if(!o)return!1;if(o){var a;if(n.length>0&&(a=n[0]),a instanceof Error)throw a;var l=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw l.context=a,l}var s=i[t];if(s===void 0)return!1;if(typeof s=="function")pb(s,this,n);else for(var c=s.length,u=wb(s,c),r=0;r<c;++r)pb(u[r],this,n);return!0};function vb(e,t,n,r){var o,i,a;if(_l(n),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),a===void 0)a=i[t]=n,++e._eventsCount;else if(typeof a=="function"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),o=gb(e),o>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,HN(l)}return e}St.prototype.addListener=function(t,n){return vb(this,t,n,!1)},St.prototype.on=St.prototype.addListener,St.prototype.prependListener=function(t,n){return vb(this,t,n,!0)};function WN(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _b(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=WN.bind(r);return o.listener=n,r.wrapFn=o,o}St.prototype.once=function(t,n){return _l(n),this.on(t,_b(this,t,n)),this},St.prototype.prependOnceListener=function(t,n){return _l(n),this.prependListener(t,_b(this,t,n)),this},St.prototype.removeListener=function(t,n){var r,o,i,a,l;if(_l(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){l=r[a].listener,i=a;break}if(i<0)return this;i===0?r.shift():UN(r,i),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit("removeListener",t,l||n)}return this},St.prototype.off=St.prototype.removeListener,St.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),a;for(o=0;o<i.length;++o)a=i[o],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(o=n.length-1;o>=0;o--)this.removeListener(t,n[o]);return this};function yb(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?GN(o):wb(o,o.length)}St.prototype.listeners=function(t){return yb(this,t,!0)},St.prototype.rawListeners=function(t){return yb(this,t,!1)},St.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):bb.call(e,t)},St.prototype.listenerCount=bb;function bb(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}St.prototype.eventNames=function(){return this._eventsCount>0?vl(this._events):[]};function wb(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function UN(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function GN(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function KN(e,t){return new Promise(function(n,r){function o(a){e.removeListener(t,i),r(a)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",o),n([].slice.call(arguments))}xb(e,t,i,{once:!0}),t!=="error"&&XN(e,o,{once:!0})})}function XN(e,t,n){typeof e.on=="function"&&xb(e,"error",t,n)}function xb(e,t,n,r){if(typeof e.on=="function")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var Qd=Jd.exports,Sb=Qd.EventEmitter,Zd={},Cb={},Eb=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},YN=Eb,ef=function(){return YN()&&!!Symbol.toStringTag},JN=Error,QN=EvalError,ZN=RangeError,ek=ReferenceError,Ob=SyntaxError,Ta=TypeError,tk=URIError,$b=typeof Symbol<"u"&&Symbol,nk=Eb,rk=function(){return typeof $b!="function"||typeof Symbol!="function"||typeof $b("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:nk()},tf={__proto__:null,foo:{}},ok=Object,ik=function(){return{__proto__:tf}.foo===tf.foo&&!(tf instanceof ok)},ak="Function.prototype.bind called on incompatible ",sk=Object.prototype.toString,lk=Math.max,ck="[object Function]",Tb=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},uk=function(t,n){for(var r=[],o=n,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},dk=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},fk=function(t){var n=this;if(typeof n!="function"||sk.apply(n)!==ck)throw new TypeError(ak+n);for(var r=uk(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,Tb(r,arguments));return Object(u)===u?u:this}return n.apply(t,Tb(r,arguments))},a=lk(0,n.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(o=Function("binder","return function ("+dk(l,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,o.prototype=new c,c.prototype=null}return o},pk=fk,nf=Function.prototype.bind||pk,hk=Function.prototype.call,mk=Object.prototype.hasOwnProperty,gk=nf,vk=gk.call(hk,mk),st,_k=JN,yk=QN,bk=ZN,wk=ek,di=Ob,fi=Ta,xk=tk,Pb=Function,rf=function(e){try{return Pb('"use strict"; return ('+e+").constructor;")()}catch{}},$o=Object.getOwnPropertyDescriptor;if($o)try{$o({},"")}catch{$o=null}var of=function(){throw new fi},Sk=$o?function(){try{return arguments.callee,of}catch{try{return $o(arguments,"callee").get}catch{return of}}}():of,pi=rk(),Ck=ik(),en=Object.getPrototypeOf||(Ck?function(e){return e.__proto__}:null),hi={},Ek=typeof Uint8Array>"u"||!en?st:en(Uint8Array),To={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?st:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?st:ArrayBuffer,"%ArrayIteratorPrototype%":pi&&en?en([][Symbol.iterator]()):st,"%AsyncFromSyncIteratorPrototype%":st,"%AsyncFunction%":hi,"%AsyncGenerator%":hi,"%AsyncGeneratorFunction%":hi,"%AsyncIteratorPrototype%":hi,"%Atomics%":typeof Atomics>"u"?st:Atomics,"%BigInt%":typeof BigInt>"u"?st:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?st:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?st:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?st:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_k,"%eval%":eval,"%EvalError%":yk,"%Float32Array%":typeof Float32Array>"u"?st:Float32Array,"%Float64Array%":typeof Float64Array>"u"?st:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?st:FinalizationRegistry,"%Function%":Pb,"%GeneratorFunction%":hi,"%Int8Array%":typeof Int8Array>"u"?st:Int8Array,"%Int16Array%":typeof Int16Array>"u"?st:Int16Array,"%Int32Array%":typeof Int32Array>"u"?st:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":pi&&en?en(en([][Symbol.iterator]())):st,"%JSON%":typeof JSON=="object"?JSON:st,"%Map%":typeof Map>"u"?st:Map,"%MapIteratorPrototype%":typeof Map>"u"||!pi||!en?st:en(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?st:Promise,"%Proxy%":typeof Proxy>"u"?st:Proxy,"%RangeError%":bk,"%ReferenceError%":wk,"%Reflect%":typeof Reflect>"u"?st:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?st:Set,"%SetIteratorPrototype%":typeof Set>"u"||!pi||!en?st:en(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?st:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":pi&&en?en(""[Symbol.iterator]()):st,"%Symbol%":pi?Symbol:st,"%SyntaxError%":di,"%ThrowTypeError%":Sk,"%TypedArray%":Ek,"%TypeError%":fi,"%Uint8Array%":typeof Uint8Array>"u"?st:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?st:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?st:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?st:Uint32Array,"%URIError%":xk,"%WeakMap%":typeof WeakMap>"u"?st:WeakMap,"%WeakRef%":typeof WeakRef>"u"?st:WeakRef,"%WeakSet%":typeof WeakSet>"u"?st:WeakSet};if(en)try{null.error}catch(e){var Ok=en(en(e));To["%Error.prototype%"]=Ok}var $k=function e(t){var n;if(t==="%AsyncFunction%")n=rf("async function () {}");else if(t==="%GeneratorFunction%")n=rf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=rf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&en&&(n=en(o.prototype))}return To[t]=n,n},Rb={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Pa=nf,yl=vk,Tk=Pa.call(Function.call,Array.prototype.concat),Pk=Pa.call(Function.apply,Array.prototype.splice),jb=Pa.call(Function.call,String.prototype.replace),bl=Pa.call(Function.call,String.prototype.slice),Rk=Pa.call(Function.call,RegExp.prototype.exec),jk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Mk=/\\(\\)?/g,Ik=function(t){var n=bl(t,0,1),r=bl(t,-1);if(n==="%"&&r!=="%")throw new di("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new di("invalid intrinsic syntax, expected opening `%`");var o=[];return jb(t,jk,function(i,a,l,s){o[o.length]=l?jb(s,Mk,"$1"):a||i}),o},Ak=function(t,n){var r=t,o;if(yl(Rb,r)&&(o=Rb[r],r="%"+o[0]+"%"),yl(To,r)){var i=To[r];if(i===hi&&(i=$k(r)),typeof i>"u"&&!n)throw new fi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new di("intrinsic "+t+" does not exist!")},mi=function(t,n){if(typeof t!="string"||t.length===0)throw new fi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new fi('"allowMissing" argument must be a boolean');if(Rk(/^%?[^%]*%?$/,t)===null)throw new di("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Ik(t),o=r.length>0?r[0]:"",i=Ak("%"+o+"%",n),a=i.name,l=i.value,s=!1,c=i.alias;c&&(o=c[0],Pk(r,Tk([0,1],c)));for(var u=1,f=!0;u<r.length;u+=1){var d=r[u],y=bl(d,0,1),x=bl(d,-1);if((y==='"'||y==="'"||y==="`"||x==='"'||x==="'"||x==="`")&&y!==x)throw new di("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(s=!0),o+="."+d,a="%"+o+"%",yl(To,a))l=To[a];else if(l!=null){if(!(d in l)){if(!n)throw new fi("base intrinsic for "+t+" exists, but the property is not available.");return}if($o&&u+1>=r.length){var E=$o(l,d);f=!!E,f&&"get"in E&&!("originalValue"in E.get)?l=E.get:l=l[d]}else f=yl(l,d),l=l[d];f&&!s&&(To[a]=l)}}return l},Mb={exports:{}},af,Ib;function sf(){if(Ib)return af;Ib=1;var e=mi,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return af=t,af}var Nk=mi,wl=Nk("%Object.getOwnPropertyDescriptor%",!0);if(wl)try{wl([],"length")}catch{wl=null}var lf=wl,Ab=sf(),kk=Ob,gi=Ta,Nb=lf,Lk=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new gi("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new gi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new gi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new gi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new gi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new gi("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!Nb&&Nb(t,n);if(Ab)Ab(t,n,{configurable:a===null&&s?s.configurable:!a,enumerable:o===null&&s?s.enumerable:!o,value:r,writable:i===null&&s?s.writable:!i});else if(l||!o&&!i&&!a)t[n]=r;else throw new kk("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},cf=sf(),kb=function(){return!!cf};kb.hasArrayLengthDefineBug=function(){if(!cf)return null;try{return cf([],"length",{value:1}).length!==1}catch{return!0}};var Fk=kb,Dk=mi,Lb=Lk,Bk=Fk(),Fb=lf,Db=Ta,zk=Dk("%Math.floor%"),qk=function(t,n){if(typeof t!="function")throw new Db("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||zk(n)!==n)throw new Db("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&Fb){var a=Fb(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(Bk?Lb(t,"length",n,!0,!0):Lb(t,"length",n)),t};(function(e){var t=nf,n=mi,r=qk,o=Ta,i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||t.call(a,i),s=sf(),c=n("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new o("a function is required");var y=l(t,a,arguments);return r(y,1+c(0,d.length-(arguments.length-1)),!0)};var u=function(){return l(t,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u})(Mb);var Bb=Mb.exports,zb=mi,qb=Bb,Vk=qb(zb("String.prototype.indexOf")),uf=function(t,n){var r=zb(t,!!n);return typeof r=="function"&&Vk(t,".prototype.")>-1?qb(r):r},Hk=ef(),Wk=uf,df=Wk("Object.prototype.toString"),xl=function(t){return Hk&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:df(t)==="[object Arguments]"},Vb=function(t){return xl(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&df(t)!=="[object Array]"&&df(t.callee)==="[object Function]"},Uk=function(){return xl(arguments)}();xl.isLegacyArguments=Vb;var Gk=Uk?xl:Vb,Kk=Object.prototype.toString,Xk=Function.prototype.toString,Yk=/^\s*(?:function)?\*/,Hb=ef(),ff=Object.getPrototypeOf,Jk=function(){if(!Hb)return!1;try{return Function("return function*() {}")()}catch{}},pf,Qk=function(t){if(typeof t!="function")return!1;if(Yk.test(Xk.call(t)))return!0;if(!Hb){var n=Kk.call(t);return n==="[object GeneratorFunction]"}if(!ff)return!1;if(typeof pf>"u"){var r=Jk();pf=r?ff(r):!1}return ff(t)===pf},Wb=Function.prototype.toString,vi=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,hf,Sl;if(typeof vi=="function"&&typeof Object.defineProperty=="function")try{hf=Object.defineProperty({},"length",{get:function(){throw Sl}}),Sl={},vi(function(){throw 42},null,hf)}catch(e){e!==Sl&&(vi=null)}else vi=null;var Zk=/^\s*class\b/,mf=function(t){try{var n=Wb.call(t);return Zk.test(n)}catch{return!1}},gf=function(t){try{return mf(t)?!1:(Wb.call(t),!0)}catch{return!1}},Cl=Object.prototype.toString,e2="[object Object]",t2="[object Function]",n2="[object GeneratorFunction]",r2="[object HTMLAllCollection]",o2="[object HTML document.all class]",i2="[object HTMLCollection]",a2=typeof Symbol=="function"&&!!Symbol.toStringTag,s2=!(0 in[,]),vf=function(){return!1};if(typeof document=="object"){var l2=document.all;Cl.call(l2)===Cl.call(document.all)&&(vf=function(t){if((s2||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=Cl.call(t);return(n===r2||n===o2||n===i2||n===e2)&&t("")==null}catch{}return!1})}var c2=vi?function(t){if(vf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{vi(t,null,hf)}catch(n){if(n!==Sl)return!1}return!mf(t)&&gf(t)}:function(t){if(vf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(a2)return gf(t);if(mf(t))return!1;var n=Cl.call(t);return n!==t2&&n!==n2&&!/^\[object HTML/.test(n)?!1:gf(t)},u2=c2,d2=Object.prototype.toString,Ub=Object.prototype.hasOwnProperty,f2=function(t,n,r){for(var o=0,i=t.length;o<i;o++)Ub.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},p2=function(t,n,r){for(var o=0,i=t.length;o<i;o++)r==null?n(t.charAt(o),o,t):n.call(r,t.charAt(o),o,t)},h2=function(t,n,r){for(var o in t)Ub.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},m2=function(t,n,r){if(!u2(n))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),d2.call(t)==="[object Array]"?f2(t,n,o):typeof t=="string"?p2(t,n,o):h2(t,n,o)},g2=m2,v2=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],_f=v2,_2=typeof globalThis>"u"?vt:globalThis,y2=function(){for(var t=[],n=0;n<_f.length;n++)typeof _2[_f[n]]=="function"&&(t[t.length]=_f[n]);return t},El=g2,b2=y2,Gb=Bb,yf=uf,Ol=lf,w2=yf("Object.prototype.toString"),Kb=ef(),Xb=typeof globalThis>"u"?vt:globalThis,bf=b2(),wf=yf("String.prototype.slice"),xf=Object.getPrototypeOf,x2=yf("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},$l={__proto__:null};Kb&&Ol&&xf?El(bf,function(e){var t=new Xb[e];if(Symbol.toStringTag in t){var n=xf(t),r=Ol(n,Symbol.toStringTag);if(!r){var o=xf(n);r=Ol(o,Symbol.toStringTag)}$l["$"+e]=Gb(r.get)}}):El(bf,function(e){var t=new Xb[e],n=t.slice||t.set;n&&($l["$"+e]=Gb(n))});var S2=function(t){var n=!1;return El($l,function(r,o){if(!n)try{"$"+r(t)===o&&(n=wf(o,1))}catch{}}),n},C2=function(t){var n=!1;return El($l,function(r,o){if(!n)try{r(t),n=wf(o,1)}catch{}}),n},Yb=function(t){if(!t||typeof t!="object")return!1;if(!Kb){var n=wf(w2(t),8,-1);return x2(bf,n)>-1?n:n!=="Object"?!1:C2(t)}return Ol?S2(t):null},E2=Yb,O2=function(t){return!!E2(t)};(function(e){var t=Gk,n=Qk,r=Yb,o=O2;function i(ue){return ue.call.bind(ue)}var a=typeof BigInt<"u",l=typeof Symbol<"u",s=i(Object.prototype.toString),c=i(Number.prototype.valueOf),u=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(l)var y=i(Symbol.prototype.valueOf);function x(ue,Me){if(typeof ue!="object")return!1;try{return Me(ue),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=o;function E(ue){return typeof Promise<"u"&&ue instanceof Promise||ue!==null&&typeof ue=="object"&&typeof ue.then=="function"&&typeof ue.catch=="function"}e.isPromise=E;function h(ue){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ue):o(ue)||k(ue)}e.isArrayBufferView=h;function _(ue){return r(ue)==="Uint8Array"}e.isUint8Array=_;function p(ue){return r(ue)==="Uint8ClampedArray"}e.isUint8ClampedArray=p;function m(ue){return r(ue)==="Uint16Array"}e.isUint16Array=m;function g(ue){return r(ue)==="Uint32Array"}e.isUint32Array=g;function b(ue){return r(ue)==="Int8Array"}e.isInt8Array=b;function C(ue){return r(ue)==="Int16Array"}e.isInt16Array=C;function S(ue){return r(ue)==="Int32Array"}e.isInt32Array=S;function w(ue){return r(ue)==="Float32Array"}e.isFloat32Array=w;function O(ue){return r(ue)==="Float64Array"}e.isFloat64Array=O;function R(ue){return r(ue)==="BigInt64Array"}e.isBigInt64Array=R;function N(ue){return r(ue)==="BigUint64Array"}e.isBigUint64Array=N;function P(ue){return s(ue)==="[object Map]"}P.working=typeof Map<"u"&&P(new Map);function L(ue){return typeof Map>"u"?!1:P.working?P(ue):ue instanceof Map}e.isMap=L;function z(ue){return s(ue)==="[object Set]"}z.working=typeof Set<"u"&&z(new Set);function J(ue){return typeof Set>"u"?!1:z.working?z(ue):ue instanceof Set}e.isSet=J;function X(ue){return s(ue)==="[object WeakMap]"}X.working=typeof WeakMap<"u"&&X(new WeakMap);function j(ue){return typeof WeakMap>"u"?!1:X.working?X(ue):ue instanceof WeakMap}e.isWeakMap=j;function H(ue){return s(ue)==="[object WeakSet]"}H.working=typeof WeakSet<"u"&&H(new WeakSet);function U(ue){return H(ue)}e.isWeakSet=U;function D(ue){return s(ue)==="[object ArrayBuffer]"}D.working=typeof ArrayBuffer<"u"&&D(new ArrayBuffer);function W(ue){return typeof ArrayBuffer>"u"?!1:D.working?D(ue):ue instanceof ArrayBuffer}e.isArrayBuffer=W;function A(ue){return s(ue)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function k(ue){return typeof DataView>"u"?!1:A.working?A(ue):ue instanceof DataView}e.isDataView=k;var G=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Z(ue){return s(ue)==="[object SharedArrayBuffer]"}function q(ue){return typeof G>"u"?!1:(typeof Z.working>"u"&&(Z.working=Z(new G)),Z.working?Z(ue):ue instanceof G)}e.isSharedArrayBuffer=q;function V(ue){return s(ue)==="[object AsyncFunction]"}e.isAsyncFunction=V;function Y(ue){return s(ue)==="[object Map Iterator]"}e.isMapIterator=Y;function re(ue){return s(ue)==="[object Set Iterator]"}e.isSetIterator=re;function se(ue){return s(ue)==="[object Generator]"}e.isGeneratorObject=se;function F(ue){return s(ue)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=F;function B(ue){return x(ue,c)}e.isNumberObject=B;function ae(ue){return x(ue,u)}e.isStringObject=ae;function ee(ue){return x(ue,f)}e.isBooleanObject=ee;function me(ue){return a&&x(ue,d)}e.isBigIntObject=me;function pe(ue){return l&&x(ue,y)}e.isSymbolObject=pe;function xe(ue){return B(ue)||ae(ue)||ee(ue)||me(ue)||pe(ue)}e.isBoxedPrimitive=xe;function Ae(ue){return typeof Uint8Array<"u"&&(W(ue)||q(ue))}e.isAnyArrayBuffer=Ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ue){Object.defineProperty(e,ue,{enumerable:!1,value:function(){throw new Error(ue+" is not supported in userland")}})})})(Cb);var $2=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"};(function(e){var t=Object.getOwnPropertyDescriptors||function(k){for(var G=Object.keys(k),Z={},q=0;q<G.length;q++)Z[G[q]]=Object.getOwnPropertyDescriptor(k,G[q]);return Z},n=/%[sdj%]/g;e.format=function(A){if(!b(A)){for(var k=[],G=0;G<arguments.length;G++)k.push(a(arguments[G]));return k.join(" ")}for(var G=1,Z=arguments,q=Z.length,V=String(A).replace(n,function(re){if(re==="%%")return"%";if(G>=q)return re;switch(re){case"%s":return String(Z[G++]);case"%d":return Number(Z[G++]);case"%j":try{return JSON.stringify(Z[G++])}catch{return"[Circular]"}default:return re}}),Y=Z[G];G<q;Y=Z[++G])p(Y)||!O(Y)?V+=" "+Y:V+=" "+a(Y);return V},e.deprecate=function(A,k){if(typeof ne<"u"&&ne.noDeprecation===!0)return A;if(typeof ne>"u")return function(){return e.deprecate(A,k).apply(this,arguments)};var G=!1;function Z(){if(!G){if(ne.throwDeprecation)throw new Error(k);ne.traceDeprecation?console.trace(k):console.error(k),G=!0}return A.apply(this,arguments)}return Z};var r={},o=/^$/;if(ne.env.NODE_DEBUG){var i=ne.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(A){if(A=A.toUpperCase(),!r[A])if(o.test(A)){var k=ne.pid;r[A]=function(){var G=e.format.apply(e,arguments);console.error("%s %d: %s",A,k,G)}}else r[A]=function(){};return r[A]};function a(A,k){var G={seen:[],stylize:s};return arguments.length>=3&&(G.depth=arguments[2]),arguments.length>=4&&(G.colors=arguments[3]),_(k)?G.showHidden=k:k&&e._extend(G,k),S(G.showHidden)&&(G.showHidden=!1),S(G.depth)&&(G.depth=2),S(G.colors)&&(G.colors=!1),S(G.customInspect)&&(G.customInspect=!0),G.colors&&(G.stylize=l),u(G,A,G.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(A,k){var G=a.styles[k];return G?"\x1B["+a.colors[G][0]+"m"+A+"\x1B["+a.colors[G][1]+"m":A}function s(A,k){return A}function c(A){var k={};return A.forEach(function(G,Z){k[G]=!0}),k}function u(A,k,G){if(A.customInspect&&k&&P(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var Z=k.inspect(G,A);return b(Z)||(Z=u(A,Z,G)),Z}var q=f(A,k);if(q)return q;var V=Object.keys(k),Y=c(V);if(A.showHidden&&(V=Object.getOwnPropertyNames(k)),N(k)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return d(k);if(V.length===0){if(P(k)){var re=k.name?": "+k.name:"";return A.stylize("[Function"+re+"]","special")}if(w(k))return A.stylize(RegExp.prototype.toString.call(k),"regexp");if(R(k))return A.stylize(Date.prototype.toString.call(k),"date");if(N(k))return d(k)}var se="",F=!1,B=["{","}"];if(h(k)&&(F=!0,B=["[","]"]),P(k)){var ae=k.name?": "+k.name:"";se=" [Function"+ae+"]"}if(w(k)&&(se=" "+RegExp.prototype.toString.call(k)),R(k)&&(se=" "+Date.prototype.toUTCString.call(k)),N(k)&&(se=" "+d(k)),V.length===0&&(!F||k.length==0))return B[0]+se+B[1];if(G<0)return w(k)?A.stylize(RegExp.prototype.toString.call(k),"regexp"):A.stylize("[Object]","special");A.seen.push(k);var ee;return F?ee=y(A,k,G,Y,V):ee=V.map(function(me){return x(A,k,G,Y,me,F)}),A.seen.pop(),E(ee,se,B)}function f(A,k){if(S(k))return A.stylize("undefined","undefined");if(b(k)){var G="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(G,"string")}if(g(k))return A.stylize(""+k,"number");if(_(k))return A.stylize(""+k,"boolean");if(p(k))return A.stylize("null","null")}function d(A){return"["+Error.prototype.toString.call(A)+"]"}function y(A,k,G,Z,q){for(var V=[],Y=0,re=k.length;Y<re;++Y)H(k,String(Y))?V.push(x(A,k,G,Z,String(Y),!0)):V.push("");return q.forEach(function(se){se.match(/^\d+$/)||V.push(x(A,k,G,Z,se,!0))}),V}function x(A,k,G,Z,q,V){var Y,re,se;if(se=Object.getOwnPropertyDescriptor(k,q)||{value:k[q]},se.get?se.set?re=A.stylize("[Getter/Setter]","special"):re=A.stylize("[Getter]","special"):se.set&&(re=A.stylize("[Setter]","special")),H(Z,q)||(Y="["+q+"]"),re||(A.seen.indexOf(se.value)<0?(p(G)?re=u(A,se.value,null):re=u(A,se.value,G-1),re.indexOf(`
|
|
257
|
+
`)>-1&&(V?re=re.split(`
|
|
258
|
+
`).map(function(F){return" "+F}).join(`
|
|
259
|
+
`).slice(2):re=`
|
|
260
|
+
`+re.split(`
|
|
261
|
+
`).map(function(F){return" "+F}).join(`
|
|
262
|
+
`))):re=A.stylize("[Circular]","special")),S(Y)){if(V&&q.match(/^\d+$/))return re;Y=JSON.stringify(""+q),Y.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Y=Y.slice(1,-1),Y=A.stylize(Y,"name")):(Y=Y.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Y=A.stylize(Y,"string"))}return Y+": "+re}function E(A,k,G){var Z=A.reduce(function(q,V){return V.indexOf(`
|
|
263
|
+
`)>=0,q+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Z>60?G[0]+(k===""?"":k+`
|
|
264
|
+
`)+" "+A.join(`,
|
|
265
|
+
`)+" "+G[1]:G[0]+k+" "+A.join(", ")+" "+G[1]}e.types=Cb;function h(A){return Array.isArray(A)}e.isArray=h;function _(A){return typeof A=="boolean"}e.isBoolean=_;function p(A){return A===null}e.isNull=p;function m(A){return A==null}e.isNullOrUndefined=m;function g(A){return typeof A=="number"}e.isNumber=g;function b(A){return typeof A=="string"}e.isString=b;function C(A){return typeof A=="symbol"}e.isSymbol=C;function S(A){return A===void 0}e.isUndefined=S;function w(A){return O(A)&&z(A)==="[object RegExp]"}e.isRegExp=w,e.types.isRegExp=w;function O(A){return typeof A=="object"&&A!==null}e.isObject=O;function R(A){return O(A)&&z(A)==="[object Date]"}e.isDate=R,e.types.isDate=R;function N(A){return O(A)&&(z(A)==="[object Error]"||A instanceof Error)}e.isError=N,e.types.isNativeError=N;function P(A){return typeof A=="function"}e.isFunction=P;function L(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}e.isPrimitive=L,e.isBuffer=$2;function z(A){return Object.prototype.toString.call(A)}function J(A){return A<10?"0"+A.toString(10):A.toString(10)}var X=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var A=new Date,k=[J(A.getHours()),J(A.getMinutes()),J(A.getSeconds())].join(":");return[A.getDate(),X[A.getMonth()],k].join(" ")}e.log=function(){console.log("%s - %s",j(),e.format.apply(e,arguments))},e.inherits=Hr,e._extend=function(A,k){if(!k||!O(k))return A;for(var G=Object.keys(k),Z=G.length;Z--;)A[G[Z]]=k[G[Z]];return A};function H(A,k){return Object.prototype.hasOwnProperty.call(A,k)}var U=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(k){if(typeof k!="function")throw new TypeError('The "original" argument must be of type Function');if(U&&k[U]){var G=k[U];if(typeof G!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(G,U,{value:G,enumerable:!1,writable:!1,configurable:!0}),G}function G(){for(var Z,q,V=new Promise(function(se,F){Z=se,q=F}),Y=[],re=0;re<arguments.length;re++)Y.push(arguments[re]);Y.push(function(se,F){se?q(se):Z(F)});try{k.apply(this,Y)}catch(se){q(se)}return V}return Object.setPrototypeOf(G,Object.getPrototypeOf(k)),U&&Object.defineProperty(G,U,{value:G,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(G,t(k))},e.promisify.custom=U;function D(A,k){if(!A){var G=new Error("Promise was rejected with a falsy value");G.reason=A,A=G}return k(A)}function W(A){if(typeof A!="function")throw new TypeError('The "original" argument must be of type Function');function k(){for(var G=[],Z=0;Z<arguments.length;Z++)G.push(arguments[Z]);var q=G.pop();if(typeof q!="function")throw new TypeError("The last argument must be of type Function");var V=this,Y=function(){return q.apply(V,arguments)};A.apply(this,G).then(function(re){ne.nextTick(Y.bind(null,null,re))},function(re){ne.nextTick(D.bind(null,re,Y))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(A)),Object.defineProperties(k,t(A)),k}e.callbackify=W})(Zd);var Sf,Jb;function T2(){if(Jb)return Sf;Jb=1;function e(x,E){var h=Object.keys(x);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(x);E&&(_=_.filter(function(p){return Object.getOwnPropertyDescriptor(x,p).enumerable})),h.push.apply(h,_)}return h}function t(x){for(var E=1;E<arguments.length;E++){var h=arguments[E]!=null?arguments[E]:{};E%2?e(Object(h),!0).forEach(function(_){n(x,_,h[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(h)):e(Object(h)).forEach(function(_){Object.defineProperty(x,_,Object.getOwnPropertyDescriptor(h,_))})}return x}function n(x,E,h){return E=a(E),E in x?Object.defineProperty(x,E,{value:h,enumerable:!0,configurable:!0,writable:!0}):x[E]=h,x}function r(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function o(x,E){for(var h=0;h<E.length;h++){var _=E[h];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(x,a(_.key),_)}}function i(x,E,h){return E&&o(x.prototype,E),Object.defineProperty(x,"prototype",{writable:!1}),x}function a(x){var E=l(x,"string");return typeof E=="symbol"?E:String(E)}function l(x,E){if(typeof x!="object"||x===null)return x;var h=x[Symbol.toPrimitive];if(h!==void 0){var _=h.call(x,E||"default");if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(x)}var s=ci,c=s.Buffer,u=Zd,f=u.inspect,d=f&&f.custom||"inspect";function y(x,E,h){c.prototype.copy.call(x,E,h)}return Sf=function(){function x(){r(this,x),this.head=null,this.tail=null,this.length=0}return i(x,[{key:"push",value:function(h){var _={data:h,next:null};this.length>0?this.tail.next=_:this.head=_,this.tail=_,++this.length}},{key:"unshift",value:function(h){var _={data:h,next:this.head};this.length===0&&(this.tail=_),this.head=_,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var _=this.head,p=""+_.data;_=_.next;)p+=h+_.data;return p}},{key:"concat",value:function(h){if(this.length===0)return c.alloc(0);for(var _=c.allocUnsafe(h>>>0),p=this.head,m=0;p;)y(p.data,_,m),m+=p.data.length,p=p.next;return _}},{key:"consume",value:function(h,_){var p;return h<this.head.data.length?(p=this.head.data.slice(0,h),this.head.data=this.head.data.slice(h)):h===this.head.data.length?p=this.shift():p=_?this._getString(h):this._getBuffer(h),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(h){var _=this.head,p=1,m=_.data;for(h-=m.length;_=_.next;){var g=_.data,b=h>g.length?g.length:h;if(b===g.length?m+=g:m+=g.slice(0,h),h-=b,h===0){b===g.length?(++p,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=g.slice(b));break}++p}return this.length-=p,m}},{key:"_getBuffer",value:function(h){var _=c.allocUnsafe(h),p=this.head,m=1;for(p.data.copy(_),h-=p.data.length;p=p.next;){var g=p.data,b=h>g.length?g.length:h;if(g.copy(_,_.length-h,0,b),h-=b,h===0){b===g.length?(++m,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=g.slice(b));break}++m}return this.length-=m,_}},{key:d,value:function(h,_){return f(this,t(t({},_),{},{depth:0,customInspect:!1}))}}]),x}(),Sf}function P2(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ne.nextTick(Cf,this,e)):ne.nextTick(Cf,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!t&&i?n._writableState?n._writableState.errorEmitted?ne.nextTick(Tl,n):(n._writableState.errorEmitted=!0,ne.nextTick(Qb,n,i)):ne.nextTick(Qb,n,i):t?(ne.nextTick(Tl,n),t(i)):ne.nextTick(Tl,n)}),this)}function Qb(e,t){Cf(e,t),Tl(e)}function Tl(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function R2(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Cf(e,t){e.emit("error",t)}function j2(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}var Zb={destroy:P2,undestroy:R2,errorOrDestroy:j2},Po={};function M2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var e0={};function Ln(e,t,n){n||(n=Error);function r(i,a,l){return typeof t=="string"?t:t(i,a,l)}var o=function(i){M2(a,i);function a(l,s,c){return i.call(this,r(l,s,c))||this}return a}(n);o.prototype.name=n.name,o.prototype.code=e,e0[e]=o}function t0(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(r){return String(r)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:n===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function I2(e,t,n){return e.substr(0,t.length)===t}function A2(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function N2(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}Ln("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),Ln("ERR_INVALID_ARG_TYPE",function(e,t,n){var r;typeof t=="string"&&I2(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";var o;if(A2(e," argument"))o="The ".concat(e," ").concat(r," ").concat(t0(t,"type"));else{var i=N2(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(i," ").concat(r," ").concat(t0(t,"type"))}return o+=". Received type ".concat(typeof n),o},TypeError),Ln("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Ln("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),Ln("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Ln("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),Ln("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Ln("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Ln("ERR_STREAM_WRITE_AFTER_END","write after end"),Ln("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Ln("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),Ln("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Po.codes=e0;var k2=Po.codes.ERR_INVALID_OPT_VALUE;function L2(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function F2(e,t,n,r){var o=L2(t,r,n);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var i=r?n:"highWaterMark";throw new k2(i,o)}return Math.floor(o)}return e.objectMode?16:16*1024}var n0={getHighWaterMark:F2},D2=B2;function B2(e,t){if(Ef("noDeprecation"))return e;var n=!1;function r(){if(!n){if(Ef("throwDeprecation"))throw new Error(t);Ef("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return r}function Ef(e){try{if(!vt.localStorage)return!1}catch{return!1}var t=vt.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var Of,r0;function o0(){if(r0)return Of;r0=1,Of=w;function e(q){var V=this;this.next=null,this.entry=null,this.finish=function(){Z(V,q)}}var t;w.WritableState=C;var n={deprecate:D2},r=Sb,o=ci.Buffer,i=(typeof vt<"u"?vt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(q){return o.from(q)}function l(q){return o.isBuffer(q)||q instanceof i}var s=Zb,c=n0,u=c.getHighWaterMark,f=Po.codes,d=f.ERR_INVALID_ARG_TYPE,y=f.ERR_METHOD_NOT_IMPLEMENTED,x=f.ERR_MULTIPLE_CALLBACK,E=f.ERR_STREAM_CANNOT_PIPE,h=f.ERR_STREAM_DESTROYED,_=f.ERR_STREAM_NULL_VALUES,p=f.ERR_STREAM_WRITE_AFTER_END,m=f.ERR_UNKNOWN_ENCODING,g=s.errorOrDestroy;Hr(w,r);function b(){}function C(q,V,Y){t=t||_i(),q=q||{},typeof Y!="boolean"&&(Y=V instanceof t),this.objectMode=!!q.objectMode,Y&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=u(this,q,"writableHighWaterMark",Y),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var re=q.decodeStrings===!1;this.decodeStrings=!re,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){X(V,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}C.prototype.getBuffer=function(){for(var V=this.bufferedRequest,Y=[];V;)Y.push(V),V=V.next;return Y},function(){try{Object.defineProperty(C.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var S;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(V){return S.call(this,V)?!0:this!==w?!1:V&&V._writableState instanceof C}})):S=function(V){return V instanceof this};function w(q){t=t||_i();var V=this instanceof t;if(!V&&!S.call(w,this))return new w(q);this._writableState=new C(q,this,V),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),r.call(this)}w.prototype.pipe=function(){g(this,new E)};function O(q,V){var Y=new p;g(q,Y),ne.nextTick(V,Y)}function R(q,V,Y,re){var se;return Y===null?se=new _:typeof Y!="string"&&!V.objectMode&&(se=new d("chunk",["string","Buffer"],Y)),se?(g(q,se),ne.nextTick(re,se),!1):!0}w.prototype.write=function(q,V,Y){var re=this._writableState,se=!1,F=!re.objectMode&&l(q);return F&&!o.isBuffer(q)&&(q=a(q)),typeof V=="function"&&(Y=V,V=null),F?V="buffer":V||(V=re.defaultEncoding),typeof Y!="function"&&(Y=b),re.ending?O(this,Y):(F||R(this,re,q,Y))&&(re.pendingcb++,se=P(this,re,F,q,V,Y)),se},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&U(this,q))},w.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=V.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((V+"").toLowerCase())>-1))throw new m(V);return this._writableState.defaultEncoding=V,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function N(q,V,Y){return!q.objectMode&&q.decodeStrings!==!1&&typeof V=="string"&&(V=o.from(V,Y)),V}Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P(q,V,Y,re,se,F){if(!Y){var B=N(V,re,se);re!==B&&(Y=!0,se="buffer",re=B)}var ae=V.objectMode?1:re.length;V.length+=ae;var ee=V.length<V.highWaterMark;if(ee||(V.needDrain=!0),V.writing||V.corked){var me=V.lastBufferedRequest;V.lastBufferedRequest={chunk:re,encoding:se,isBuf:Y,callback:F,next:null},me?me.next=V.lastBufferedRequest:V.bufferedRequest=V.lastBufferedRequest,V.bufferedRequestCount+=1}else L(q,V,!1,ae,re,se,F);return ee}function L(q,V,Y,re,se,F,B){V.writelen=re,V.writecb=B,V.writing=!0,V.sync=!0,V.destroyed?V.onwrite(new h("write")):Y?q._writev(se,V.onwrite):q._write(se,F,V.onwrite),V.sync=!1}function z(q,V,Y,re,se){--V.pendingcb,Y?(ne.nextTick(se,re),ne.nextTick(k,q,V),q._writableState.errorEmitted=!0,g(q,re)):(se(re),q._writableState.errorEmitted=!0,g(q,re),k(q,V))}function J(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function X(q,V){var Y=q._writableState,re=Y.sync,se=Y.writecb;if(typeof se!="function")throw new x;if(J(Y),V)z(q,Y,re,V,se);else{var F=D(Y)||q.destroyed;!F&&!Y.corked&&!Y.bufferProcessing&&Y.bufferedRequest&&U(q,Y),re?ne.nextTick(j,q,Y,F,se):j(q,Y,F,se)}}function j(q,V,Y,re){Y||H(q,V),V.pendingcb--,re(),k(q,V)}function H(q,V){V.length===0&&V.needDrain&&(V.needDrain=!1,q.emit("drain"))}function U(q,V){V.bufferProcessing=!0;var Y=V.bufferedRequest;if(q._writev&&Y&&Y.next){var re=V.bufferedRequestCount,se=new Array(re),F=V.corkedRequestsFree;F.entry=Y;for(var B=0,ae=!0;Y;)se[B]=Y,Y.isBuf||(ae=!1),Y=Y.next,B+=1;se.allBuffers=ae,L(q,V,!0,V.length,se,"",F.finish),V.pendingcb++,V.lastBufferedRequest=null,F.next?(V.corkedRequestsFree=F.next,F.next=null):V.corkedRequestsFree=new e(V),V.bufferedRequestCount=0}else{for(;Y;){var ee=Y.chunk,me=Y.encoding,pe=Y.callback,xe=V.objectMode?1:ee.length;if(L(q,V,!1,xe,ee,me,pe),Y=Y.next,V.bufferedRequestCount--,V.writing)break}Y===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=Y,V.bufferProcessing=!1}w.prototype._write=function(q,V,Y){Y(new y("_write()"))},w.prototype._writev=null,w.prototype.end=function(q,V,Y){var re=this._writableState;return typeof q=="function"?(Y=q,q=null,V=null):typeof V=="function"&&(Y=V,V=null),q!=null&&this.write(q,V),re.corked&&(re.corked=1,this.uncork()),re.ending||G(this,re,Y),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function D(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function W(q,V){q._final(function(Y){V.pendingcb--,Y&&g(q,Y),V.prefinished=!0,q.emit("prefinish"),k(q,V)})}function A(q,V){!V.prefinished&&!V.finalCalled&&(typeof q._final=="function"&&!V.destroyed?(V.pendingcb++,V.finalCalled=!0,ne.nextTick(W,q,V)):(V.prefinished=!0,q.emit("prefinish")))}function k(q,V){var Y=D(V);if(Y&&(A(q,V),V.pendingcb===0&&(V.finished=!0,q.emit("finish"),V.autoDestroy))){var re=q._readableState;(!re||re.autoDestroy&&re.endEmitted)&&q.destroy()}return Y}function G(q,V,Y){V.ending=!0,k(q,V),Y&&(V.finished?ne.nextTick(Y):q.once("finish",Y)),V.ended=!0,q.writable=!1}function Z(q,V,Y){var re=q.entry;for(q.entry=null;re;){var se=re.callback;V.pendingcb--,se(Y),re=re.next}V.corkedRequestsFree.next=q}return Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(V){this._writableState&&(this._writableState.destroyed=V)}}),w.prototype.destroy=s.destroy,w.prototype._undestroy=s.undestroy,w.prototype._destroy=function(q,V){V(q)},Of}var $f,i0;function _i(){if(i0)return $f;i0=1;var e=Object.keys||function(c){var u=[];for(var f in c)u.push(f);return u};$f=a;var t=h0(),n=o0();Hr(a,t);for(var r=e(n.prototype),o=0;o<r.length;o++){var i=r[o];a.prototype[i]||(a.prototype[i]=n.prototype[i])}function a(c){if(!(this instanceof a))return new a(c);t.call(this,c),n.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||ne.nextTick(s,this)}function s(c){c.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),$f}var Tf={},Pl={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var a0;function z2(){return a0||(a0=1,function(e,t){var n=ci,r=n.Buffer;function o(a,l){for(var s in a)l[s]=a[s]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i);function i(a,l,s){return r(a,l,s)}i.prototype=Object.create(r.prototype),o(r,i),i.from=function(a,l,s){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,l,s)},i.alloc=function(a,l,s){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=r(a);return l!==void 0?typeof s=="string"?c.fill(l,s):c.fill(l):c.fill(0),c},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}}(Pl,Pl.exports)),Pl.exports}var s0;function l0(){if(s0)return Tf;s0=1;var e=z2().Buffer,t=e.isEncoding||function(_){switch(_=""+_,_&&_.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(_){if(!_)return"utf8";for(var p;;)switch(_){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return _;default:if(p)return;_=(""+_).toLowerCase(),p=!0}}function r(_){var p=n(_);if(typeof p!="string"&&(e.isEncoding===t||!t(_)))throw new Error("Unknown encoding: "+_);return p||_}Tf.StringDecoder=o;function o(_){this.encoding=r(_);var p;switch(this.encoding){case"utf16le":this.text=f,this.end=d,p=4;break;case"utf8":this.fillLast=s,p=4;break;case"base64":this.text=y,this.end=x,p=3;break;default:this.write=E,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}o.prototype.write=function(_){if(_.length===0)return"";var p,m;if(this.lastNeed){if(p=this.fillLast(_),p===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<_.length?p?p+this.text(_,m):this.text(_,m):p||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length};function i(_){return _<=127?0:_>>5===6?2:_>>4===14?3:_>>3===30?4:_>>6===2?-1:-2}function a(_,p,m){var g=p.length-1;if(g<m)return 0;var b=i(p[g]);return b>=0?(b>0&&(_.lastNeed=b-1),b):--g<m||b===-2?0:(b=i(p[g]),b>=0?(b>0&&(_.lastNeed=b-2),b):--g<m||b===-2?0:(b=i(p[g]),b>=0?(b>0&&(b===2?b=0:_.lastNeed=b-3),b):0))}function l(_,p,m){if((p[0]&192)!==128)return _.lastNeed=0,"�";if(_.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return _.lastNeed=1,"�";if(_.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return _.lastNeed=2,"�"}}function s(_){var p=this.lastTotal-this.lastNeed,m=l(this,_);if(m!==void 0)return m;if(this.lastNeed<=_.length)return _.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,p,0,_.length),this.lastNeed-=_.length}function c(_,p){var m=a(this,_,p);if(!this.lastNeed)return _.toString("utf8",p);this.lastTotal=m;var g=_.length-(m-this.lastNeed);return _.copy(this.lastChar,0,g),_.toString("utf8",p,g)}function u(_){var p=_&&_.length?this.write(_):"";return this.lastNeed?p+"�":p}function f(_,p){if((_.length-p)%2===0){var m=_.toString("utf16le",p);if(m){var g=m.charCodeAt(m.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",p,_.length-1)}function d(_){var p=_&&_.length?this.write(_):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,m)}return p}function y(_,p){var m=(_.length-p)%3;return m===0?_.toString("base64",p):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",p,_.length-m))}function x(_){var p=_&&_.length?this.write(_):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function E(_){return _.toString(this.encoding)}function h(_){return _&&_.length?this.write(_):""}return Tf}var c0=Po.codes.ERR_STREAM_PREMATURE_CLOSE;function q2(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}}function V2(){}function H2(e){return e.setHeader&&typeof e.abort=="function"}function u0(e,t,n){if(typeof t=="function")return u0(e,null,t);t||(t={}),n=q2(n||V2);var r=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,i=function(){e.writable||l()},a=e._writableState&&e._writableState.finished,l=function(){o=!1,a=!0,r||n.call(e)},s=e._readableState&&e._readableState.endEmitted,c=function(){r=!1,s=!0,o||n.call(e)},u=function(x){n.call(e,x)},f=function(){var x;if(r&&!s)return(!e._readableState||!e._readableState.ended)&&(x=new c0),n.call(e,x);if(o&&!a)return(!e._writableState||!e._writableState.ended)&&(x=new c0),n.call(e,x)},d=function(){e.req.on("finish",l)};return H2(e)?(e.on("complete",l),e.on("abort",f),e.req?d():e.on("request",d)):o&&!e._writableState&&(e.on("end",i),e.on("close",i)),e.on("end",c),e.on("finish",l),t.error!==!1&&e.on("error",u),e.on("close",f),function(){e.removeListener("complete",l),e.removeListener("abort",f),e.removeListener("request",d),e.req&&e.req.removeListener("finish",l),e.removeListener("end",i),e.removeListener("close",i),e.removeListener("finish",l),e.removeListener("end",c),e.removeListener("error",u),e.removeListener("close",f)}}var Pf=u0,Rf,d0;function W2(){if(d0)return Rf;d0=1;var e;function t(m,g,b){return g=n(g),g in m?Object.defineProperty(m,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[g]=b,m}function n(m){var g=r(m,"string");return typeof g=="symbol"?g:String(g)}function r(m,g){if(typeof m!="object"||m===null)return m;var b=m[Symbol.toPrimitive];if(b!==void 0){var C=b.call(m,g||"default");if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(m)}var o=Pf,i=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),s=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),f=Symbol("stream");function d(m,g){return{value:m,done:g}}function y(m){var g=m[i];if(g!==null){var b=m[f].read();b!==null&&(m[c]=null,m[i]=null,m[a]=null,g(d(b,!1)))}}function x(m){ne.nextTick(y,m)}function E(m,g){return function(b,C){m.then(function(){if(g[s]){b(d(void 0,!0));return}g[u](b,C)},C)}}var h=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var g=this,b=this[l];if(b!==null)return Promise.reject(b);if(this[s])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise(function(O,R){ne.nextTick(function(){g[l]?R(g[l]):O(d(void 0,!0))})});var C=this[c],S;if(C)S=new Promise(E(C,this));else{var w=this[f].read();if(w!==null)return Promise.resolve(d(w,!1));S=new Promise(this[u])}return this[c]=S,S}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var g=this;return new Promise(function(b,C){g[f].destroy(null,function(S){if(S){C(S);return}b(d(void 0,!0))})})}),e),h),p=function(g){var b,C=Object.create(_,(b={},t(b,f,{value:g,writable:!0}),t(b,i,{value:null,writable:!0}),t(b,a,{value:null,writable:!0}),t(b,l,{value:null,writable:!0}),t(b,s,{value:g._readableState.endEmitted,writable:!0}),t(b,u,{value:function(w,O){var R=C[f].read();R?(C[c]=null,C[i]=null,C[a]=null,w(d(R,!1))):(C[i]=w,C[a]=O)},writable:!0}),b));return C[c]=null,o(g,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var w=C[a];w!==null&&(C[c]=null,C[i]=null,C[a]=null,w(S)),C[l]=S;return}var O=C[i];O!==null&&(C[c]=null,C[i]=null,C[a]=null,O(d(void 0,!0))),C[s]=!0}),g.on("readable",x.bind(null,C)),C};return Rf=p,Rf}var jf,f0;function U2(){return f0||(f0=1,jf=function(){throw new Error("Readable.from is not available in the browser")}),jf}var Mf,p0;function h0(){if(p0)return Mf;p0=1,Mf=O;var e;O.ReadableState=w,Qd.EventEmitter;var t=function(B,ae){return B.listeners(ae).length},n=Sb,r=ci.Buffer,o=(typeof vt<"u"?vt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(F){return r.from(F)}function a(F){return r.isBuffer(F)||F instanceof o}var l=Zd,s;l&&l.debuglog?s=l.debuglog("stream"):s=function(){};var c=T2(),u=Zb,f=n0,d=f.getHighWaterMark,y=Po.codes,x=y.ERR_INVALID_ARG_TYPE,E=y.ERR_STREAM_PUSH_AFTER_EOF,h=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,m,g;Hr(O,n);var b=u.errorOrDestroy,C=["error","close","destroy","pause","resume"];function S(F,B,ae){if(typeof F.prependListener=="function")return F.prependListener(B,ae);!F._events||!F._events[B]?F.on(B,ae):Array.isArray(F._events[B])?F._events[B].unshift(ae):F._events[B]=[ae,F._events[B]]}function w(F,B,ae){e=e||_i(),F=F||{},typeof ae!="boolean"&&(ae=B instanceof e),this.objectMode=!!F.objectMode,ae&&(this.objectMode=this.objectMode||!!F.readableObjectMode),this.highWaterMark=d(this,F,"readableHighWaterMark",ae),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=F.emitClose!==!1,this.autoDestroy=!!F.autoDestroy,this.destroyed=!1,this.defaultEncoding=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(p||(p=l0().StringDecoder),this.decoder=new p(F.encoding),this.encoding=F.encoding)}function O(F){if(e=e||_i(),!(this instanceof O))return new O(F);var B=this instanceof e;this._readableState=new w(F,this,B),this.readable=!0,F&&(typeof F.read=="function"&&(this._read=F.read),typeof F.destroy=="function"&&(this._destroy=F.destroy)),n.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(B){this._readableState&&(this._readableState.destroyed=B)}}),O.prototype.destroy=u.destroy,O.prototype._undestroy=u.undestroy,O.prototype._destroy=function(F,B){B(F)},O.prototype.push=function(F,B){var ae=this._readableState,ee;return ae.objectMode?ee=!0:typeof F=="string"&&(B=B||ae.defaultEncoding,B!==ae.encoding&&(F=r.from(F,B),B=""),ee=!0),R(this,F,B,!1,ee)},O.prototype.unshift=function(F){return R(this,F,null,!0,!1)};function R(F,B,ae,ee,me){s("readableAddChunk",B);var pe=F._readableState;if(B===null)pe.reading=!1,X(F,pe);else{var xe;if(me||(xe=P(pe,B)),xe)b(F,xe);else if(pe.objectMode||B&&B.length>0)if(typeof B!="string"&&!pe.objectMode&&Object.getPrototypeOf(B)!==r.prototype&&(B=i(B)),ee)pe.endEmitted?b(F,new _):N(F,pe,B,!0);else if(pe.ended)b(F,new E);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!ae?(B=pe.decoder.write(B),pe.objectMode||B.length!==0?N(F,pe,B,!1):U(F,pe)):N(F,pe,B,!1)}else ee||(pe.reading=!1,U(F,pe))}return!pe.ended&&(pe.length<pe.highWaterMark||pe.length===0)}function N(F,B,ae,ee){B.flowing&&B.length===0&&!B.sync?(B.awaitDrain=0,F.emit("data",ae)):(B.length+=B.objectMode?1:ae.length,ee?B.buffer.unshift(ae):B.buffer.push(ae),B.needReadable&&j(F)),U(F,B)}function P(F,B){var ae;return!a(B)&&typeof B!="string"&&B!==void 0&&!F.objectMode&&(ae=new x("chunk",["string","Buffer","Uint8Array"],B)),ae}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(F){p||(p=l0().StringDecoder);var B=new p(F);this._readableState.decoder=B,this._readableState.encoding=this._readableState.decoder.encoding;for(var ae=this._readableState.buffer.head,ee="";ae!==null;)ee+=B.write(ae.data),ae=ae.next;return this._readableState.buffer.clear(),ee!==""&&this._readableState.buffer.push(ee),this._readableState.length=ee.length,this};var L=1073741824;function z(F){return F>=L?F=L:(F--,F|=F>>>1,F|=F>>>2,F|=F>>>4,F|=F>>>8,F|=F>>>16,F++),F}function J(F,B){return F<=0||B.length===0&&B.ended?0:B.objectMode?1:F!==F?B.flowing&&B.length?B.buffer.head.data.length:B.length:(F>B.highWaterMark&&(B.highWaterMark=z(F)),F<=B.length?F:B.ended?B.length:(B.needReadable=!0,0))}O.prototype.read=function(F){s("read",F),F=parseInt(F,10);var B=this._readableState,ae=F;if(F!==0&&(B.emittedReadable=!1),F===0&&B.needReadable&&((B.highWaterMark!==0?B.length>=B.highWaterMark:B.length>0)||B.ended))return s("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?Y(this):j(this),null;if(F=J(F,B),F===0&&B.ended)return B.length===0&&Y(this),null;var ee=B.needReadable;s("need readable",ee),(B.length===0||B.length-F<B.highWaterMark)&&(ee=!0,s("length less than watermark",ee)),B.ended||B.reading?(ee=!1,s("reading or ended",ee)):ee&&(s("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(F=J(ae,B)));var me;return F>0?me=V(F,B):me=null,me===null?(B.needReadable=B.length<=B.highWaterMark,F=0):(B.length-=F,B.awaitDrain=0),B.length===0&&(B.ended||(B.needReadable=!0),ae!==F&&B.ended&&Y(this)),me!==null&&this.emit("data",me),me};function X(F,B){if(s("onEofChunk"),!B.ended){if(B.decoder){var ae=B.decoder.end();ae&&ae.length&&(B.buffer.push(ae),B.length+=B.objectMode?1:ae.length)}B.ended=!0,B.sync?j(F):(B.needReadable=!1,B.emittedReadable||(B.emittedReadable=!0,H(F)))}}function j(F){var B=F._readableState;s("emitReadable",B.needReadable,B.emittedReadable),B.needReadable=!1,B.emittedReadable||(s("emitReadable",B.flowing),B.emittedReadable=!0,ne.nextTick(H,F))}function H(F){var B=F._readableState;s("emitReadable_",B.destroyed,B.length,B.ended),!B.destroyed&&(B.length||B.ended)&&(F.emit("readable"),B.emittedReadable=!1),B.needReadable=!B.flowing&&!B.ended&&B.length<=B.highWaterMark,q(F)}function U(F,B){B.readingMore||(B.readingMore=!0,ne.nextTick(D,F,B))}function D(F,B){for(;!B.reading&&!B.ended&&(B.length<B.highWaterMark||B.flowing&&B.length===0);){var ae=B.length;if(s("maybeReadMore read 0"),F.read(0),ae===B.length)break}B.readingMore=!1}O.prototype._read=function(F){b(this,new h("_read()"))},O.prototype.pipe=function(F,B){var ae=this,ee=this._readableState;switch(ee.pipesCount){case 0:ee.pipes=F;break;case 1:ee.pipes=[ee.pipes,F];break;default:ee.pipes.push(F);break}ee.pipesCount+=1,s("pipe count=%d opts=%j",ee.pipesCount,B);var me=(!B||B.end!==!1)&&F!==ne.stdout&&F!==ne.stderr,pe=me?Ae:Ee;ee.endEmitted?ne.nextTick(pe):ae.once("end",pe),F.on("unpipe",xe);function xe(We,Ue){s("onunpipe"),We===ae&&Ue&&Ue.hasUnpiped===!1&&(Ue.hasUnpiped=!0,Re())}function Ae(){s("onend"),F.end()}var ue=W(ae);F.on("drain",ue);var Me=!1;function Re(){s("cleanup"),F.removeListener("close",we),F.removeListener("finish",Ce),F.removeListener("drain",ue),F.removeListener("error",ve),F.removeListener("unpipe",xe),ae.removeListener("end",Ae),ae.removeListener("end",Ee),ae.removeListener("data",$e),Me=!0,ee.awaitDrain&&(!F._writableState||F._writableState.needDrain)&&ue()}ae.on("data",$e);function $e(We){s("ondata");var Ue=F.write(We);s("dest.write",Ue),Ue===!1&&((ee.pipesCount===1&&ee.pipes===F||ee.pipesCount>1&&se(ee.pipes,F)!==-1)&&!Me&&(s("false write response, pause",ee.awaitDrain),ee.awaitDrain++),ae.pause())}function ve(We){s("onerror",We),Ee(),F.removeListener("error",ve),t(F,"error")===0&&b(F,We)}S(F,"error",ve);function we(){F.removeListener("finish",Ce),Ee()}F.once("close",we);function Ce(){s("onfinish"),F.removeListener("close",we),Ee()}F.once("finish",Ce);function Ee(){s("unpipe"),ae.unpipe(F)}return F.emit("pipe",ae),ee.flowing||(s("pipe resume"),ae.resume()),F};function W(F){return function(){var ae=F._readableState;s("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&t(F,"data")&&(ae.flowing=!0,q(F))}}O.prototype.unpipe=function(F){var B=this._readableState,ae={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return F&&F!==B.pipes?this:(F||(F=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,F&&F.emit("unpipe",this,ae),this);if(!F){var ee=B.pipes,me=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var pe=0;pe<me;pe++)ee[pe].emit("unpipe",this,{hasUnpiped:!1});return this}var xe=se(B.pipes,F);return xe===-1?this:(B.pipes.splice(xe,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),F.emit("unpipe",this,ae),this)},O.prototype.on=function(F,B){var ae=n.prototype.on.call(this,F,B),ee=this._readableState;return F==="data"?(ee.readableListening=this.listenerCount("readable")>0,ee.flowing!==!1&&this.resume()):F==="readable"&&!ee.endEmitted&&!ee.readableListening&&(ee.readableListening=ee.needReadable=!0,ee.flowing=!1,ee.emittedReadable=!1,s("on readable",ee.length,ee.reading),ee.length?j(this):ee.reading||ne.nextTick(k,this)),ae},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(F,B){var ae=n.prototype.removeListener.call(this,F,B);return F==="readable"&&ne.nextTick(A,this),ae},O.prototype.removeAllListeners=function(F){var B=n.prototype.removeAllListeners.apply(this,arguments);return(F==="readable"||F===void 0)&&ne.nextTick(A,this),B};function A(F){var B=F._readableState;B.readableListening=F.listenerCount("readable")>0,B.resumeScheduled&&!B.paused?B.flowing=!0:F.listenerCount("data")>0&&F.resume()}function k(F){s("readable nexttick read 0"),F.read(0)}O.prototype.resume=function(){var F=this._readableState;return F.flowing||(s("resume"),F.flowing=!F.readableListening,G(this,F)),F.paused=!1,this};function G(F,B){B.resumeScheduled||(B.resumeScheduled=!0,ne.nextTick(Z,F,B))}function Z(F,B){s("resume",B.reading),B.reading||F.read(0),B.resumeScheduled=!1,F.emit("resume"),q(F),B.flowing&&!B.reading&&F.read(0)}O.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function q(F){var B=F._readableState;for(s("flow",B.flowing);B.flowing&&F.read()!==null;);}O.prototype.wrap=function(F){var B=this,ae=this._readableState,ee=!1;F.on("end",function(){if(s("wrapped end"),ae.decoder&&!ae.ended){var xe=ae.decoder.end();xe&&xe.length&&B.push(xe)}B.push(null)}),F.on("data",function(xe){if(s("wrapped data"),ae.decoder&&(xe=ae.decoder.write(xe)),!(ae.objectMode&&xe==null)&&!(!ae.objectMode&&(!xe||!xe.length))){var Ae=B.push(xe);Ae||(ee=!0,F.pause())}});for(var me in F)this[me]===void 0&&typeof F[me]=="function"&&(this[me]=function(Ae){return function(){return F[Ae].apply(F,arguments)}}(me));for(var pe=0;pe<C.length;pe++)F.on(C[pe],this.emit.bind(this,C[pe]));return this._read=function(xe){s("wrapped _read",xe),ee&&(ee=!1,F.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=W2()),m(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(B){this._readableState&&(this._readableState.flowing=B)}}),O._fromList=V,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function V(F,B){if(B.length===0)return null;var ae;return B.objectMode?ae=B.buffer.shift():!F||F>=B.length?(B.decoder?ae=B.buffer.join(""):B.buffer.length===1?ae=B.buffer.first():ae=B.buffer.concat(B.length),B.buffer.clear()):ae=B.buffer.consume(F,B.decoder),ae}function Y(F){var B=F._readableState;s("endReadable",B.endEmitted),B.endEmitted||(B.ended=!0,ne.nextTick(re,B,F))}function re(F,B){if(s("endReadableNT",F.endEmitted,F.length),!F.endEmitted&&F.length===0&&(F.endEmitted=!0,B.readable=!1,B.emit("end"),F.autoDestroy)){var ae=B._writableState;(!ae||ae.autoDestroy&&ae.finished)&&B.destroy()}}typeof Symbol=="function"&&(O.from=function(F,B){return g===void 0&&(g=U2()),g(O,F,B)});function se(F,B){for(var ae=0,ee=F.length;ae<ee;ae++)if(F[ae]===B)return ae;return-1}return Mf}var m0=Er,Rl=Po.codes,G2=Rl.ERR_METHOD_NOT_IMPLEMENTED,K2=Rl.ERR_MULTIPLE_CALLBACK,X2=Rl.ERR_TRANSFORM_ALREADY_TRANSFORMING,Y2=Rl.ERR_TRANSFORM_WITH_LENGTH_0,jl=_i();Hr(Er,jl);function J2(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit("error",new K2);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function Er(e){if(!(this instanceof Er))return new Er(e);jl.call(this,e),this._transformState={afterTransform:J2.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Q2)}function Q2(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,n){g0(e,t,n)}):g0(this,null,null)}Er.prototype.push=function(e,t){return this._transformState.needTransform=!1,jl.prototype.push.call(this,e,t)},Er.prototype._transform=function(e,t,n){n(new G2("_transform()"))},Er.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},Er.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Er.prototype._destroy=function(e,t){jl.prototype._destroy.call(this,e,function(n){t(n)})};function g0(e,t,n){if(t)return e.emit("error",t);if(n!=null&&e.push(n),e._writableState.length)throw new Y2;if(e._transformState.transforming)throw new X2;return e.push(null)}var Z2=Ra,v0=m0;Hr(Ra,v0);function Ra(e){if(!(this instanceof Ra))return new Ra(e);v0.call(this,e)}Ra.prototype._transform=function(e,t,n){n(null,e)};var If;function eL(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var _0=Po.codes,tL=_0.ERR_MISSING_ARGS,nL=_0.ERR_STREAM_DESTROYED;function y0(e){if(e)throw e}function rL(e){return e.setHeader&&typeof e.abort=="function"}function oL(e,t,n,r){r=eL(r);var o=!1;e.on("close",function(){o=!0}),If===void 0&&(If=Pf),If(e,{readable:t,writable:n},function(a){if(a)return r(a);o=!0,r()});var i=!1;return function(a){if(!o&&!i){if(i=!0,rL(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();r(a||new nL("pipe"))}}}function b0(e){e()}function iL(e,t){return e.pipe(t)}function aL(e){return!e.length||typeof e[e.length-1]!="function"?y0:e.pop()}function sL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=aL(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new tL("streams");var o,i=t.map(function(a,l){var s=l<t.length-1,c=l>0;return oL(a,s,c,function(u){o||(o=u),u&&i.forEach(b0),!s&&(i.forEach(b0),r(o))})});return t.reduce(iL)}var lL=sL;(function(e,t){t=e.exports=h0(),t.Stream=t,t.Readable=t,t.Writable=o0(),t.Duplex=_i(),t.Transform=m0,t.PassThrough=Z2,t.finished=Pf,t.pipeline=lL})(Yd,Yd.exports);var w0=Yd.exports,x0=Kd,cL=Hr,S0=w0,Ml=gl.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Af=gl.IncomingMessage=function(e,t,n,r){var o=this;if(S0.Readable.call(o),o._mode=n,o.headers={},o.rawHeaders=[],o.trailers={},o.rawTrailers=[],o.on("end",function(){ne.nextTick(function(){o.emit("close")})}),n==="fetch"){let u=function(){a.read().then(function(f){if(!o._destroyed){if(r(f.done),f.done){o.push(null);return}o.push(Oo.from(f.value)),u()}}).catch(function(f){r(!0),o._destroyed||o.emit("error",f)})};if(o._fetchResponse=t,o.url=t.url,o.statusCode=t.status,o.statusMessage=t.statusText,t.headers.forEach(function(f,d){o.headers[d.toLowerCase()]=f,o.rawHeaders.push(d,f)}),x0.writableStream){var i=new WritableStream({write:function(f){return r(!1),new Promise(function(d,y){o._destroyed?y():o.push(Oo.from(f))?d():o._resumeFetch=d})},close:function(){r(!0),o._destroyed||o.push(null)},abort:function(f){r(!0),o._destroyed||o.emit("error",f)}});try{t.body.pipeTo(i).catch(function(f){r(!0),o._destroyed||o.emit("error",f)});return}catch{}}var a=t.body.getReader();u()}else{o._xhr=e,o._pos=0,o.url=e.responseURL,o.statusCode=e.status,o.statusMessage=e.statusText;var l=e.getAllResponseHeaders().split(/\r?\n/);if(l.forEach(function(u){var f=u.match(/^([^:]+):\s*(.*)/);if(f){var d=f[1].toLowerCase();d==="set-cookie"?(o.headers[d]===void 0&&(o.headers[d]=[]),o.headers[d].push(f[2])):o.headers[d]!==void 0?o.headers[d]+=", "+f[2]:o.headers[d]=f[2],o.rawHeaders.push(f[1],f[2])}}),o._charset="x-user-defined",!x0.overrideMimeType){var s=o.rawHeaders["mime-type"];if(s){var c=s.match(/;\s*charset=([^;])(;|$)/);c&&(o._charset=c[1].toLowerCase())}o._charset||(o._charset="utf-8")}}};cL(Af,S0.Readable),Af.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},Af.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,r=null;switch(t._mode){case"text":if(r=n.responseText,r.length>t._pos){var o=r.substr(t._pos);if(t._charset==="x-user-defined"){for(var i=Oo.alloc(o.length),a=0;a<o.length;a++)i[a]=o.charCodeAt(a)&255;t.push(i)}else t.push(o,t._charset);t._pos=r.length}break;case"arraybuffer":if(n.readyState!==Ml.DONE||!n.response)break;r=n.response,t.push(Oo.from(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=n.response,n.readyState!==Ml.LOADING||!r)break;t.push(Oo.from(new Uint8Array(r)));break;case"ms-stream":if(r=n.response,n.readyState!==Ml.LOADING)break;var l=new vt.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(Oo.from(new Uint8Array(l.result.slice(t._pos)))),t._pos=l.result.byteLength)},l.onload=function(){e(!0),t.push(null)},l.readAsArrayBuffer(r);break}t._xhr.readyState===Ml.DONE&&t._mode!=="ms-stream"&&(e(!0),t.push(null))};var Ro=Kd,uL=Hr,C0=gl,Nf=w0,dL=C0.IncomingMessage,E0=C0.readyStates;function fL(e,t){return Ro.fetch&&t?"fetch":Ro.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Ro.msstream?"ms-stream":Ro.arraybuffer&&e?"arraybuffer":"text"}var dn=fb.exports=function(e){var t=this;Nf.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+Oo.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(o){t.setHeader(o,e.headers[o])});var n,r=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!Ro.abortController)r=!1,n=!0;else if(e.mode==="prefer-streaming")n=!1;else if(e.mode==="allow-wrong-content-type")n=!Ro.overrideMimeType;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")n=!0;else throw new Error("Invalid value for opts.mode");t._mode=fL(n,r),t._fetchTimer=null,t._socketTimeout=null,t._socketTimer=null,t.on("finish",function(){t._onFinish()})};uL(dn,Nf.Writable),dn.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();hL.indexOf(r)===-1&&(n._headers[r]={name:e,value:t})},dn.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},dn.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},dn.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&t.timeout!==0&&e.setTimeout(t.timeout);var n=e._headers,r=null;t.method!=="GET"&&t.method!=="HEAD"&&(r=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var o=[];if(Object.keys(n).forEach(function(s){var c=n[s].name,u=n[s].value;Array.isArray(u)?u.forEach(function(f){o.push([c,f])}):o.push([c,u])}),e._mode==="fetch"){var i=null;if(Ro.abortController){var a=new AbortController;i=a.signal,e._fetchAbortController=a,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=vt.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}vt.fetch(e._opts.url,{method:e._opts.method,headers:o,body:r||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:i}).then(function(s){e._fetchResponse=s,e._resetTimers(!1),e._connect()},function(s){e._resetTimers(!0),e._destroyed||e.emit("error",s)})}else{var l=e._xhr=new vt.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(s){ne.nextTick(function(){e.emit("error",s)});return}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),o.forEach(function(s){l.setRequestHeader(s[0],s[1])}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case E0.LOADING:case E0.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{l.send(r)}catch(s){ne.nextTick(function(){e.emit("error",s)});return}}}};function pL(e){try{var t=e.status;return t!==null&&t!==0}catch{return!1}}dn.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!pL(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},dn.prototype._connect=function(){var e=this;e._destroyed||(e._response=new dL(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},dn.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},dn.prototype._resetTimers=function(e){var t=this;vt.clearTimeout(t._socketTimer),t._socketTimer=null,e?(vt.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=vt.setTimeout(function(){t.emit("timeout")},t._socketTimeout))},dn.prototype.abort=dn.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},dn.prototype.end=function(e,t,n){var r=this;typeof e=="function"&&(n=e,e=void 0),Nf.Writable.prototype.end.call(r,e,t,n)},dn.prototype.setTimeout=function(e,t){var n=this;t&&n.once("timeout",t),n._socketTimeout=e,n._resetTimers(!1)},dn.prototype.flushHeaders=function(){},dn.prototype.setNoDelay=function(){},dn.prototype.setSocketKeepAlive=function(){};var hL=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],mL=fb.exports,gL=_L,vL=Object.prototype.hasOwnProperty;function _L(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)vL.call(n,r)&&(e[r]=n[r])}return e}var yL={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Il={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Il.exports,function(e,t){(function(n){var r=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i=typeof vt=="object"&&vt;(i.global===i||i.window===i||i.self===i)&&(n=i);var a,l=2147483647,s=36,c=1,u=26,f=38,d=700,y=72,x=128,E="-",h=/^xn--/,_=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=s-c,b=Math.floor,C=String.fromCharCode,S;function w(D){throw new RangeError(m[D])}function O(D,W){for(var A=D.length,k=[];A--;)k[A]=W(D[A]);return k}function R(D,W){var A=D.split("@"),k="";A.length>1&&(k=A[0]+"@",D=A[1]),D=D.replace(p,".");var G=D.split("."),Z=O(G,W).join(".");return k+Z}function N(D){for(var W=[],A=0,k=D.length,G,Z;A<k;)G=D.charCodeAt(A++),G>=55296&&G<=56319&&A<k?(Z=D.charCodeAt(A++),(Z&64512)==56320?W.push(((G&1023)<<10)+(Z&1023)+65536):(W.push(G),A--)):W.push(G);return W}function P(D){return O(D,function(W){var A="";return W>65535&&(W-=65536,A+=C(W>>>10&1023|55296),W=56320|W&1023),A+=C(W),A}).join("")}function L(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:s}function z(D,W){return D+22+75*(D<26)-((W!=0)<<5)}function J(D,W,A){var k=0;for(D=A?b(D/d):D>>1,D+=b(D/W);D>g*u>>1;k+=s)D=b(D/g);return b(k+(g+1)*D/(D+f))}function X(D){var W=[],A=D.length,k,G=0,Z=x,q=y,V,Y,re,se,F,B,ae,ee,me;for(V=D.lastIndexOf(E),V<0&&(V=0),Y=0;Y<V;++Y)D.charCodeAt(Y)>=128&&w("not-basic"),W.push(D.charCodeAt(Y));for(re=V>0?V+1:0;re<A;){for(se=G,F=1,B=s;re>=A&&w("invalid-input"),ae=L(D.charCodeAt(re++)),(ae>=s||ae>b((l-G)/F))&&w("overflow"),G+=ae*F,ee=B<=q?c:B>=q+u?u:B-q,!(ae<ee);B+=s)me=s-ee,F>b(l/me)&&w("overflow"),F*=me;k=W.length+1,q=J(G-se,k,se==0),b(G/k)>l-Z&&w("overflow"),Z+=b(G/k),G%=k,W.splice(G++,0,Z)}return P(W)}function j(D){var W,A,k,G,Z,q,V,Y,re,se,F,B=[],ae,ee,me,pe;for(D=N(D),ae=D.length,W=x,A=0,Z=y,q=0;q<ae;++q)F=D[q],F<128&&B.push(C(F));for(k=G=B.length,G&&B.push(E);k<ae;){for(V=l,q=0;q<ae;++q)F=D[q],F>=W&&F<V&&(V=F);for(ee=k+1,V-W>b((l-A)/ee)&&w("overflow"),A+=(V-W)*ee,W=V,q=0;q<ae;++q)if(F=D[q],F<W&&++A>l&&w("overflow"),F==W){for(Y=A,re=s;se=re<=Z?c:re>=Z+u?u:re-Z,!(Y<se);re+=s)pe=Y-se,me=s-se,B.push(C(z(se+pe%me,0))),Y=b(pe/me);B.push(C(z(Y,0))),Z=J(A,ee,k==G),A=0,++k}++A,++W}return B.join("")}function H(D){return R(D,function(W){return h.test(W)?X(W.slice(4).toLowerCase()):W})}function U(D){return R(D,function(W){return _.test(W)?"xn--"+j(W):W})}if(a={version:"1.4.1",ucs2:{decode:N,encode:P},decode:X,encode:j,toASCII:U,toUnicode:H},r&&o)if(e.exports==r)o.exports=a;else for(S in a)a.hasOwnProperty(S)&&(r[S]=a[S]);else n.punycode=a})(vt)}(Il,Il.exports);var bL=Il.exports;const wL=ec(bL),xL=jp(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var kf=typeof Map=="function"&&Map.prototype,Lf=Object.getOwnPropertyDescriptor&&kf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Al=kf&&Lf&&typeof Lf.get=="function"?Lf.get:null,O0=kf&&Map.prototype.forEach,Ff=typeof Set=="function"&&Set.prototype,Df=Object.getOwnPropertyDescriptor&&Ff?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Nl=Ff&&Df&&typeof Df.get=="function"?Df.get:null,$0=Ff&&Set.prototype.forEach,SL=typeof WeakMap=="function"&&WeakMap.prototype,ja=SL?WeakMap.prototype.has:null,CL=typeof WeakSet=="function"&&WeakSet.prototype,Ma=CL?WeakSet.prototype.has:null,EL=typeof WeakRef=="function"&&WeakRef.prototype,T0=EL?WeakRef.prototype.deref:null,OL=Boolean.prototype.valueOf,$L=Object.prototype.toString,TL=Function.prototype.toString,PL=String.prototype.match,Bf=String.prototype.slice,Wr=String.prototype.replace,RL=String.prototype.toUpperCase,P0=String.prototype.toLowerCase,R0=RegExp.prototype.test,j0=Array.prototype.concat,ur=Array.prototype.join,jL=Array.prototype.slice,M0=Math.floor,zf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,qf=Object.getOwnPropertySymbols,Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,yi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===yi||!0)?Symbol.toStringTag:null,I0=Object.prototype.propertyIsEnumerable,A0=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N0(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||R0.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-M0(-e):M0(e);if(r!==e){var o=String(r),i=Bf.call(t,o.length+1);return Wr.call(o,n,"$&_")+"."+Wr.call(Wr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Wr.call(t,n,"$&_")}var Hf=xL,k0=Hf.custom,L0=B0(k0)?k0:null,ML=function e(t,n,r,o){var i=n||{};if(Ur(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ur(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Ur(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ur(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ur(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return q0(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?N0(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?N0(t,c):c}var u=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=u&&u>0&&typeof t=="object")return Wf(t)?"[Array]":"[Object]";var f=YL(i,r);if(typeof o>"u")o=[];else if(z0(o,t)>=0)return"[Circular]";function d(L,z,J){if(z&&(o=jL.call(o),o.push(z)),J){var X={depth:i.depth};return Ur(i,"quoteStyle")&&(X.quoteStyle=i.quoteStyle),e(L,X,r+1,o)}return e(L,i,r+1,o)}if(typeof t=="function"&&!D0(t)){var y=zL(t),x=kl(t,d);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(x.length>0?" { "+ur.call(x,", ")+" }":"")}if(B0(t)){var E=yi?Wr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Vf.call(t);return typeof t=="object"&&!yi?Ia(E):E}if(GL(t)){for(var h="<"+P0.call(String(t.nodeName)),_=t.attributes||[],p=0;p<_.length;p++)h+=" "+_[p].name+"="+F0(IL(_[p].value),"double",i);return h+=">",t.childNodes&&t.childNodes.length&&(h+="..."),h+="</"+P0.call(String(t.nodeName))+">",h}if(Wf(t)){if(t.length===0)return"[]";var m=kl(t,d);return f&&!XL(m)?"["+Gf(m,f)+"]":"[ "+ur.call(m,", ")+" ]"}if(NL(t)){var g=kl(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!I0.call(t,"cause")?"{ ["+String(t)+"] "+ur.call(j0.call("[cause]: "+d(t.cause),g),", ")+" }":g.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ur.call(g,", ")+" }"}if(typeof t=="object"&&a){if(L0&&typeof t[L0]=="function"&&Hf)return Hf(t,{depth:u-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(qL(t)){var b=[];return O0&&O0.call(t,function(L,z){b.push(d(z,t,!0)+" => "+d(L,t))}),V0("Map",Al.call(t),b,f)}if(WL(t)){var C=[];return $0&&$0.call(t,function(L){C.push(d(L,t))}),V0("Set",Nl.call(t),C,f)}if(VL(t))return Uf("WeakMap");if(UL(t))return Uf("WeakSet");if(HL(t))return Uf("WeakRef");if(LL(t))return Ia(d(Number(t)));if(DL(t))return Ia(d(zf.call(t)));if(FL(t))return Ia(OL.call(t));if(kL(t))return Ia(d(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof vt<"u"&&t===vt)return"{ [object globalThis] }";if(!AL(t)&&!D0(t)){var S=kl(t,d),w=A0?A0(t)===Object.prototype:t instanceof Object||t.constructor===Object,O=t instanceof Object?"":"null prototype",R=!w&&fn&&Object(t)===t&&fn in t?Bf.call(Gr(t),8,-1):O?"Object":"",N=w||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",P=N+(R||O?"["+ur.call(j0.call([],R||[],O||[]),": ")+"] ":"");return S.length===0?P+"{}":f?P+"{"+Gf(S,f)+"}":P+"{ "+ur.call(S,", ")+" }"}return String(t)};function F0(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function IL(e){return Wr.call(String(e),/"/g,""")}function Wf(e){return Gr(e)==="[object Array]"&&(!fn||!(typeof e=="object"&&fn in e))}function AL(e){return Gr(e)==="[object Date]"&&(!fn||!(typeof e=="object"&&fn in e))}function D0(e){return Gr(e)==="[object RegExp]"&&(!fn||!(typeof e=="object"&&fn in e))}function NL(e){return Gr(e)==="[object Error]"&&(!fn||!(typeof e=="object"&&fn in e))}function kL(e){return Gr(e)==="[object String]"&&(!fn||!(typeof e=="object"&&fn in e))}function LL(e){return Gr(e)==="[object Number]"&&(!fn||!(typeof e=="object"&&fn in e))}function FL(e){return Gr(e)==="[object Boolean]"&&(!fn||!(typeof e=="object"&&fn in e))}function B0(e){if(yi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Vf)return!1;try{return Vf.call(e),!0}catch{}return!1}function DL(e){if(!e||typeof e!="object"||!zf)return!1;try{return zf.call(e),!0}catch{}return!1}var BL=Object.prototype.hasOwnProperty||function(e){return e in this};function Ur(e,t){return BL.call(e,t)}function Gr(e){return $L.call(e)}function zL(e){if(e.name)return e.name;var t=PL.call(TL.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function z0(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function qL(e){if(!Al||!e||typeof e!="object")return!1;try{Al.call(e);try{Nl.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function VL(e){if(!ja||!e||typeof e!="object")return!1;try{ja.call(e,ja);try{Ma.call(e,Ma)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function HL(e){if(!T0||!e||typeof e!="object")return!1;try{return T0.call(e),!0}catch{}return!1}function WL(e){if(!Nl||!e||typeof e!="object")return!1;try{Nl.call(e);try{Al.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function UL(e){if(!Ma||!e||typeof e!="object")return!1;try{Ma.call(e,Ma);try{ja.call(e,ja)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function GL(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function q0(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return q0(Bf.call(e,0,t.maxStringLength),t)+r}var o=Wr.call(Wr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,KL);return F0(o,"single",t)}function KL(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+RL.call(t.toString(16))}function Ia(e){return"Object("+e+")"}function Uf(e){return e+" { ? }"}function V0(e,t,n,r){var o=r?Gf(n,r):ur.call(n,", ");return e+" ("+t+") {"+o+"}"}function XL(e){for(var t=0;t<e.length;t++)if(z0(e[t],`
|
|
266
|
+
`)>=0)return!1;return!0}function YL(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=ur.call(Array(e.indent+1)," ");else return null;return{base:n,prev:ur.call(Array(t+1),n)}}function Gf(e,t){if(e.length===0)return"";var n=`
|
|
267
|
+
`+t.prev+t.base;return n+ur.call(e,","+n)+`
|
|
268
|
+
`+t.prev}function kl(e,t){var n=Wf(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Ur(e,o)?t(e[o],e):""}var i=typeof qf=="function"?qf(e):[],a;if(yi){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)Ur(e,s)&&(n&&String(Number(s))===s&&s<e.length||yi&&a["$"+s]instanceof Symbol||(R0.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof qf=="function")for(var c=0;c<i.length;c++)I0.call(e,i[c])&&r.push("["+t(i[c])+"]: "+t(e[i[c]],e));return r}var H0=mi,bi=uf,JL=ML,QL=Ta,Ll=H0("%WeakMap%",!0),Fl=H0("%Map%",!0),ZL=bi("WeakMap.prototype.get",!0),eF=bi("WeakMap.prototype.set",!0),tF=bi("WeakMap.prototype.has",!0),nF=bi("Map.prototype.get",!0),rF=bi("Map.prototype.set",!0),oF=bi("Map.prototype.has",!0),Kf=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},iF=function(e,t){var n=Kf(e,t);return n&&n.value},aF=function(e,t,n){var r=Kf(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},sF=function(e,t){return!!Kf(e,t)},lF=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new QL("Side channel does not contain "+JL(i))},get:function(i){if(Ll&&i&&(typeof i=="object"||typeof i=="function")){if(t)return ZL(t,i)}else if(Fl){if(n)return nF(n,i)}else if(r)return iF(r,i)},has:function(i){if(Ll&&i&&(typeof i=="object"||typeof i=="function")){if(t)return tF(t,i)}else if(Fl){if(n)return oF(n,i)}else if(r)return sF(r,i);return!1},set:function(i,a){Ll&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Ll),eF(t,i,a)):Fl?(n||(n=new Fl),rF(n,i,a)):(r||(r={key:{},next:null}),aF(r,i,a))}};return o},cF=String.prototype.replace,uF=/%20/g,Xf={RFC1738:"RFC1738",RFC3986:"RFC3986"},Yf={default:Xf.RFC3986,formatters:{RFC1738:function(e){return cF.call(e,uF,"+")},RFC3986:function(e){return String(e)}},RFC1738:Xf.RFC1738,RFC3986:Xf.RFC3986},dF=Yf,Jf=Object.prototype.hasOwnProperty,jo=Array.isArray,dr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),fF=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(jo(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},W0=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},pF=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(jo(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Jf.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return jo(t)&&!jo(n)&&(o=W0(t,r)),jo(t)&&jo(n)?(n.forEach(function(i,a){if(Jf.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var l=n[a];return Jf.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},hF=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},mF=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Qf=1024,gF=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;s+=Qf){for(var c=a.length>=Qf?a.slice(s,s+Qf):a,u=[],f=0;f<c.length;++f){var d=c.charCodeAt(f);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===dF.RFC1738&&(d===40||d===41)){u[u.length]=c.charAt(f);continue}if(d<128){u[u.length]=dr[d];continue}if(d<2048){u[u.length]=dr[192|d>>6]+dr[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=dr[224|d>>12]+dr[128|d>>6&63]+dr[128|d&63];continue}f+=1,d=65536+((d&1023)<<10|c.charCodeAt(f)&1023),u[u.length]=dr[240|d>>18]+dr[128|d>>12&63]+dr[128|d>>6&63]+dr[128|d&63]}l+=u.join("")}return l},vF=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var c=l[s],u=a[c];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(n.push({obj:a,prop:c}),r.push(u))}return fF(n),t},_F=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},yF=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},bF=function(t,n){return[].concat(t,n)},wF=function(t,n){if(jo(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},U0={arrayToObject:W0,assign:hF,combine:bF,compact:vF,decode:mF,encode:gF,isBuffer:yF,isRegExp:_F,maybeMap:wF,merge:pF},G0=lF,Dl=U0,Aa=Yf,xF=Object.prototype.hasOwnProperty,K0={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},fr=Array.isArray,SF=Array.prototype.push,X0=function(e,t){SF.apply(e,fr(t)?t:[t])},CF=Date.prototype.toISOString,Y0=Aa.default,Yt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Dl.encode,encodeValuesOnly:!1,format:Y0,formatter:Aa.formatters[Y0],indices:!1,serializeDate:function(t){return CF.call(t)},skipNulls:!1,strictNullHandling:!1},EF=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Zf={},OF=function e(t,n,r,o,i,a,l,s,c,u,f,d,y,x,E,h,_,p){for(var m=t,g=p,b=0,C=!1;(g=g.get(Zf))!==void 0&&!C;){var S=g.get(t);if(b+=1,typeof S<"u"){if(S===b)throw new RangeError("Cyclic object value");C=!0}typeof g.get(Zf)>"u"&&(b=0)}if(typeof u=="function"?m=u(n,m):m instanceof Date?m=y(m):r==="comma"&&fr(m)&&(m=Dl.maybeMap(m,function(D){return D instanceof Date?y(D):D})),m===null){if(a)return c&&!h?c(n,Yt.encoder,_,"key",x):n;m=""}if(EF(m)||Dl.isBuffer(m)){if(c){var w=h?n:c(n,Yt.encoder,_,"key",x);return[E(w)+"="+E(c(m,Yt.encoder,_,"value",x))]}return[E(n)+"="+E(String(m))]}var O=[];if(typeof m>"u")return O;var R;if(r==="comma"&&fr(m))h&&c&&(m=Dl.maybeMap(m,c)),R=[{value:m.length>0?m.join(",")||null:void 0}];else if(fr(u))R=u;else{var N=Object.keys(m);R=f?N.sort(f):N}var P=s?n.replace(/\./g,"%2E"):n,L=o&&fr(m)&&m.length===1?P+"[]":P;if(i&&fr(m)&&m.length===0)return L+"[]";for(var z=0;z<R.length;++z){var J=R[z],X=typeof J=="object"&&typeof J.value<"u"?J.value:m[J];if(!(l&&X===null)){var j=d&&s?J.replace(/\./g,"%2E"):J,H=fr(m)?typeof r=="function"?r(L,j):L:L+(d?"."+j:"["+j+"]");p.set(t,b);var U=G0();U.set(Zf,p),X0(O,e(X,H,r,o,i,a,l,s,r==="comma"&&h&&fr(m)?null:c,u,f,d,y,x,E,h,_,U))}}return O},$F=function(t){if(!t)return Yt;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Yt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Aa.default;if(typeof t.format<"u"){if(!xF.call(Aa.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=Aa.formatters[r],i=Yt.filter;(typeof t.filter=="function"||fr(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in K0?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Yt.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Yt.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Yt.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Yt.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Yt.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Yt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Yt.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Yt.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Yt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Yt.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Yt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Yt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Yt.strictNullHandling}},TF=function(e,t){var n=e,r=$F(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):fr(r.filter)&&(i=r.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var l=K0[r.arrayFormat],s=l==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=G0(),u=0;u<o.length;++u){var f=o[u];r.skipNulls&&n[f]===null||X0(a,OF(n[f],f,l,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var d=a.join(r.delimiter),y=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""},wi=U0,ep=Object.prototype.hasOwnProperty,PF=Array.isArray,Ft={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:wi.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},RF=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},J0=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},jF="utf8=%26%2310003%3B",MF="utf8=%E2%9C%93",IF=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=n.parameterLimit===1/0?void 0:n.parameterLimit,a=o.split(n.delimiter,i),l=-1,s,c=n.charset;if(n.charsetSentinel)for(s=0;s<a.length;++s)a[s].indexOf("utf8=")===0&&(a[s]===MF?c="utf-8":a[s]===jF&&(c="iso-8859-1"),l=s,s=a.length);for(s=0;s<a.length;++s)if(s!==l){var u=a[s],f=u.indexOf("]="),d=f===-1?u.indexOf("="):f+1,y,x;d===-1?(y=n.decoder(u,Ft.decoder,c,"key"),x=n.strictNullHandling?null:""):(y=n.decoder(u.slice(0,d),Ft.decoder,c,"key"),x=wi.maybeMap(J0(u.slice(d+1),n),function(h){return n.decoder(h,Ft.decoder,c,"value")})),x&&n.interpretNumericEntities&&c==="iso-8859-1"&&(x=RF(x)),u.indexOf("[]=")>-1&&(x=PF(x)?[x]:x);var E=ep.call(r,y);E&&n.duplicates==="combine"?r[y]=wi.combine(r[y],x):(!E||n.duplicates==="last")&&(r[y]=x)}return r},AF=function(e,t,n,r){for(var o=r?t:J0(t,n),i=e.length-1;i>=0;--i){var a,l=e[i];if(l==="[]"&&n.parseArrays)a=n.allowEmptyArrays&&(o===""||n.strictNullHandling&&o===null)?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,c=n.decodeDotInKeys?s.replace(/%2E/g,"."):s,u=parseInt(c,10);!n.parseArrays&&c===""?a={0:o}:!isNaN(u)&&l!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},NF=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=r.depth>0&&a.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!r.plainObjects&&ep.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&(s=l.exec(i))!==null&&f<r.depth;){if(f+=1,!r.plainObjects&&ep.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(s.index)+"]")}return AF(u,n,r,o)}},kF=function(t){if(!t)return Ft;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Ft.charset:t.charset,r=typeof t.duplicates>"u"?Ft.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Ft.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ft.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ft.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ft.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ft.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ft.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ft.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Ft.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Ft.decoder,delimiter:typeof t.delimiter=="string"||wi.isRegExp(t.delimiter)?t.delimiter:Ft.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ft.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ft.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ft.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ft.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Ft.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ft.strictNullHandling}},LF=function(e,t){var n=kF(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?IF(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a<i.length;++a){var l=i[a],s=NF(l,r[l],n,typeof e=="string");o=wi.merge(o,s,n)}return n.allowSparse===!0?o:wi.compact(o)},FF=TF,DF=LF,BF=Yf,zF={formats:BF,parse:DF,stringify:FF};const qF=ec(zF);var VF=wL;function Fn(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var HF=/^([a-z0-9.+-]+:)/i,WF=/:[0-9]*$/,UF=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,GF=["<",">",'"',"`"," ","\r",`
|
|
269
|
+
`," "],KF=["{","}","|","\\","^","`"].concat(GF),tp=["'"].concat(KF),Q0=["%","/","?",";","#"].concat(tp),Z0=["/","?","#"],XF=255,ew=/^[+a-z0-9A-Z_-]{0,63}$/,YF=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,JF={javascript:!0,"javascript:":!0},np={javascript:!0,"javascript:":!0},xi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},rp=qF;function Na(e,t,n){if(e&&typeof e=="object"&&e instanceof Fn)return e;var r=new Fn;return r.parse(e,t,n),r}Fn.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r<e.indexOf("#")?"?":"#",i=e.split(o),a=/\\/g;i[0]=i[0].replace(a,"/"),e=i.join(o);var l=e;if(l=l.trim(),!n&&e.split("#").length===1){var s=UF.exec(l);if(s)return this.path=l,this.href=l,this.pathname=s[1],s[2]?(this.search=s[2],t?this.query=rp.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var c=HF.exec(l);if(c){c=c[0];var u=c.toLowerCase();this.protocol=u,l=l.substr(c.length)}if(n||c||l.match(/^\/\/[^@/]+@[^@/]+/)){var f=l.substr(0,2)==="//";f&&!(c&&np[c])&&(l=l.substr(2),this.slashes=!0)}if(!np[c]&&(f||c&&!xi[c])){for(var d=-1,y=0;y<Z0.length;y++){var x=l.indexOf(Z0[y]);x!==-1&&(d===-1||x<d)&&(d=x)}var E,h;d===-1?h=l.lastIndexOf("@"):h=l.lastIndexOf("@",d),h!==-1&&(E=l.slice(0,h),l=l.slice(h+1),this.auth=decodeURIComponent(E)),d=-1;for(var y=0;y<Q0.length;y++){var x=l.indexOf(Q0[y]);x!==-1&&(d===-1||x<d)&&(d=x)}d===-1&&(d=l.length),this.host=l.slice(0,d),l=l.slice(d),this.parseHost(),this.hostname=this.hostname||"";var _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_)for(var p=this.hostname.split(/\./),y=0,m=p.length;y<m;y++){var g=p[y];if(g&&!g.match(ew)){for(var b="",C=0,S=g.length;C<S;C++)g.charCodeAt(C)>127?b+="x":b+=g[C];if(!b.match(ew)){var w=p.slice(0,y),O=p.slice(y+1),R=g.match(YF);R&&(w.push(R[1]),O.unshift(R[2])),O.length&&(l="/"+O.join(".")+l),this.hostname=w.join(".");break}}}this.hostname.length>XF?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=VF.toASCII(this.hostname));var N=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+N,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!JF[u])for(var y=0,m=tp.length;y<m;y++){var L=tp[y];if(l.indexOf(L)!==-1){var z=encodeURIComponent(L);z===L&&(z=escape(L)),l=l.split(L).join(z)}}var J=l.indexOf("#");J!==-1&&(this.hash=l.substr(J),l=l.slice(0,J));var X=l.indexOf("?");if(X!==-1?(this.search=l.substr(X),this.query=l.substr(X+1),t&&(this.query=rp.parse(this.query)),l=l.slice(0,X)):t&&(this.search="",this.query={}),l&&(this.pathname=l),xi[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var N=this.pathname||"",j=this.search||"";this.path=N+j}return this.href=this.format(),this};function QF(e){return typeof e=="string"&&(e=Na(e)),e instanceof Fn?e.format():Fn.prototype.format.call(e)}Fn.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=rp.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||xi[t])&&o!==!1?(o="//"+(o||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):o||(o=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),n=n.replace(/[?#]/g,function(l){return encodeURIComponent(l)}),a=a.replace("#","%23"),t+o+n+a+r};function ZF(e,t){return Na(e,!1,!0).resolve(t)}Fn.prototype.resolve=function(e){return this.resolveObject(Na(e,!1,!0)).format()};function eD(e,t){return e?Na(e,!1,!0).resolveObject(t):t}Fn.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new Fn;t.parse(e,!1,!0),e=t}for(var n=new Fn,r=Object.keys(this),o=0;o<r.length;o++){var i=r[o];n[i]=this[i]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var s=a[l];s!=="protocol"&&(n[s]=e[s])}return xi[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!xi[e.protocol]){for(var c=Object.keys(e),u=0;u<c.length;u++){var f=c[u];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!np[e.protocol]){for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),m[0]!==""&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",y=n.search||"";n.path=d+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var x=n.pathname&&n.pathname.charAt(0)==="/",E=e.host||e.pathname&&e.pathname.charAt(0)==="/",h=E||x||n.host&&e.pathname,_=h,p=n.pathname&&n.pathname.split("/")||[],m=e.pathname&&e.pathname.split("/")||[],g=n.protocol&&!xi[n.protocol];if(g&&(n.hostname="",n.port=null,n.host&&(p[0]===""?p[0]=n.host:p.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(m[0]===""?m[0]=e.host:m.unshift(e.host)),e.host=null),h=h&&(m[0]===""||p[0]==="")),E)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,p=m;else if(m.length)p||(p=[]),p.pop(),p=p.concat(m),n.search=e.search,n.query=e.query;else if(e.search!=null){if(g){n.host=p.shift(),n.hostname=n.host;var b=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;b&&(n.auth=b.shift(),n.hostname=b.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!p.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=p.slice(-1)[0],S=(n.host||e.host||p.length>1)&&(C==="."||C==="..")||C==="",w=0,O=p.length;O>=0;O--)C=p[O],C==="."?p.splice(O,1):C===".."?(p.splice(O,1),w++):w&&(p.splice(O,1),w--);if(!h&&!_)for(;w--;w)p.unshift("..");h&&p[0]!==""&&(!p[0]||p[0].charAt(0)!=="/")&&p.unshift(""),S&&p.join("/").substr(-1)!=="/"&&p.push("");var R=p[0]===""||p[0]&&p[0].charAt(0)==="/";if(g){n.hostname=R?"":p.length?p.shift():"",n.host=n.hostname;var b=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;b&&(n.auth=b.shift(),n.hostname=b.shift(),n.host=n.hostname)}return h=h||n.host&&p.length,h&&!R&&p.unshift(""),p.length>0?n.pathname=p.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Fn.prototype.parseHost=function(){var e=this.host,t=WF.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var tD=Na,nD=ZF,tw=eD,rD=QF,oD=Fn;function iD(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function aD(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!r)continue;e=r+"/"+e,t=r.charAt(0)==="/"}return e=iD(sD(e.split("/"),function(o){return!!o}),!t).join("/"),(t?"/":"")+e||"."}function sD(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var nw=function(e){function t(){var r=this||self;return delete e.prototype.__magic__,r}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var n=__magic__;return n}(Object),lD=rD,rw=tD,ow=nD,iw=oD,Kr=nw.URL,aw=nw.URLSearchParams,cD=/%/g,uD=/\\/g,dD=/\n/g,fD=/\r/g,pD=/\t/g,hD=47;function mD(e){var t=e??null;return!!(t!==null&&(t!=null&&t.href)&&(t!=null&&t.origin))}function gD(e){if(e.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var t=e.pathname,n=0;n<t.length;n++)if(t[n]==="%"){var r=t.codePointAt(n+2)|32;if(t[n+1]==="2"&&r===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(t)}function vD(e){return e.includes("%")&&(e=e.replace(cD,"%25")),e.includes("\\")&&(e=e.replace(uD,"%5C")),e.includes(`
|
|
270
|
+
`)&&(e=e.replace(dD,"%0A")),e.includes("\r")&&(e=e.replace(fD,"%0D")),e.includes(" ")&&(e=e.replace(pD,"%09")),e}var sw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Kr("http://"+t).hostname},lw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Kr("http://"+t).hostname},cw=function(t){var n=new Kr("file://"),r=aD(t),o=t.charCodeAt(t.length-1);return o===hD&&r[r.length-1]!=="/"&&(r+="/"),n.pathname=vD(r),n},uw=function(t){if(!mD(t)&&typeof t!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof t+" ("+t+")");var n=new Kr(t);if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return gD(n)},dw=function(t,n){var r,o,i,a;if(n===void 0&&(n={}),!(t instanceof Kr))return lD(t);if(typeof n!="object"||n===null)throw new TypeError('The "options" argument must be of type object.');var l=(r=n.auth)!=null?r:!0,s=(o=n.fragment)!=null?o:!0,c=(i=n.search)!=null?i:!0;(a=n.unicode)!=null;var u=new Kr(t.toString());return l||(u.username="",u.password=""),s||(u.hash=""),c||(u.search=""),u.toString()},_D={format:dw,parse:rw,resolve:ow,resolveObject:tw,Url:iw,URL:Kr,URLSearchParams:aw,domainToASCII:sw,domainToUnicode:lw,pathToFileURL:cw,fileURLToPath:uw};const fw=jp(Object.freeze(Object.defineProperty({__proto__:null,URL:Kr,URLSearchParams:aw,Url:iw,default:_D,domainToASCII:sw,domainToUnicode:lw,fileURLToPath:uw,format:dw,parse:rw,pathToFileURL:cw,resolve:ow,resolveObject:tw},Symbol.toStringTag,{value:"Module"})));(function(e){var t=mL,n=gl,r=gL,o=yL,i=fw,a=e;a.request=function(l,s){typeof l=="string"?l=i.parse(l):l=r(l);var c=vt.location.protocol.search(/^https?:$/)===-1?"http:":"",u=l.protocol||c,f=l.hostname||l.host,d=l.port,y=l.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),l.url=(f?u+"//"+f:"")+(d?":"+d:"")+y,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var x=new t(l);return s&&x.on("response",s),x},a.get=function(s,c){var u=a.request(s,c);return u.end(),u},a.ClientRequest=t,a.IncomingMessage=n.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(db),function(e){var t=db,n=fw,r=e.exports;for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.request=function(a,l){return a=i(a),t.request.call(this,a,l)},r.get=function(a,l){return a=i(a),t.get.call(this,a,l)};function i(a){if(typeof a=="string"&&(a=n.parse(a)),a.protocol||(a.protocol="https:"),a.protocol!=="https:")throw new Error('Protocol "'+a.protocol+'" not supported. Expected "https:"');return a}}(VN);const pw={__template:{field:""},field:"{field}",size:10,shard_size:10,shard_min_doc_count:10,min_doc_count:10,include:{__one_of:["*",{pattern:"",flags:""}]},exclude:{__one_of:["*",{pattern:"",flags:""}]},execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash"]},background_filter:{__scope_link:"GLOBAL.filter"},mutual_information:{include_negatives:{__one_of:[!0,!1]}},chi_square:{include_negatives:{__one_of:[!0,!1]},background_is_superset:{__one_of:[!0,!1]}},percentage:{},gnd:{background_is_superset:{__one_of:[!0,!1]}},script_heuristic:{__template:{script:"_subset_freq/(_superset_freq - _subset_freq + 1)"},script:{}}},Si={__template:{field:""},field:"{field}",missing:0,script:{}},yD={__template:{field:""},field:"{field}"},Ci={__one_of:["skip","insert_zeros"]},Xr={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Ci},op={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Si,max:Si,avg:Si,sum:Si,stats:Si,extended_stats:Si,value_count:{__template:{field:""},field:"{field}",script:{}},global:{},filter:{},filters:{__template:{filters:{NAME:{}}},filters:{"*":{__scope_link:"GLOBAL.filter"}},other_bucket:{__one_of:[!0,!1]},other_bucket_key:""},missing:yD,nested:{__template:{path:""},path:""},reverse_nested:{__template:{path:""},path:""},terms:{__template:{field:"",size:10},field:"{field}",size:10,shard_size:10,order:{__template:{_key:"asc"},_term:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},min_doc_count:10,script:{},include:".*",exclude:".*",execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]},show_term_doc_count_error:{__one_of:[!0,!1]},collect_mode:{__one_of:["depth_first","breadth_first"]},missing:""},significant_text:{...pw,filter_duplicate_text:"__flag__"},significant_terms:pw,range:{__template:{field:"",ranges:[{from:50,to:100}]},field:"{field}",ranges:[{to:50,from:100,key:""}],keyed:{__one_of:[!0,!1]},script:{}},date_range:{__template:{field:"",ranges:[{from:"now-10d/d",to:"now"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:""}],keyed:{__one_of:[!0,!1]},script:{}},ip_range:{__template:{field:"",ranges:[{from:"10.0.0.5",to:"10.0.0.10"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:"",mask:"10.0.0.127/25"}],keyed:{__one_of:[!0,!1]},script:{}},histogram:{__template:{field:"price",interval:50},field:"{field}",interval:50,extended_bounds:{__template:{min:0,max:50},min:0,max:50},min_doc_count:0,order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},missing:0},date_histogram:{__template:{field:"date",interval:"month"},field:"{field}",interval:{__one_of:["year","quarter","week","day","hour","minute","second"]},min_doc_count:0,extended_bounds:{__template:{min:"now/d",max:"now/d"},min:"now/d",max:"now/d"},order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},pre_zone:"-01:00",post_zone:"-01:00",pre_zone_adjust_large_interval:{__one_of:[!0,!1]},factor:1e3,pre_offset:"1d",post_offset:"1d",format:"yyyy-MM-dd",time_zone:"00:00",missing:""},geo_distance:{__template:{field:"location",origin:{lat:52.376,lon:4.894},ranges:[{from:100,to:300}]},field:"{field}",origin:{lat:0,lon:0},unit:{__one_of:["mi","km","in","yd","m","cm","mm"]},ranges:[{from:50,to:100}],distance_type:{__one_of:["arc","sloppy_arc","plane"]}},geohash_grid:{__template:{field:"",precision:3},field:"{field}",precision:{__one_of:[1,2,3,4,5,6,7,8,9,10,11,12]},size:10,shard_size:10},composite:{__template:{sources:[{NAME:{AGG_TYPE:{}}}]},sources:[{__scope_link:".",__template:{NAME:{AGG_TYPE:{}}}}],size:10,after:{}},percentiles:{__template:{field:"",percents:[1,5,25,50,75,95,99]},field:"{field}",percents:{__template:[1,5,25,50,75,95,99],__any_of:[]},script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},cardinality:{__template:{field:""},precision_threshold:100,rehash:!0,script:{},missing:""},cumulative_cardinality:{__template:{buckets_path:""},buckets_path:"",format:""},scripted_metric:{__template:{init_script:"",map_script:"",combine_script:"",reduce_script:""},init_script:{__scope_link:"GLOBAL.script"},map_script:{__scope_link:"GLOBAL.script"},combine_script:{__scope_link:"GLOBAL.script"},reduce_script:{__scope_link:"GLOBAL.script"},lang:"groovy",params:{},reduce_params:{}},geo_bounds:{__template:{field:""},field:"{field}",wrap_longitude:{__one_of:[!0,!1]}},top_hits:{__template:{size:10},from:0,size:10,sort:{__template:[],__scope_link:"search.sort"},highlight:{},explain:{__one_of:[!0,!1]},_source:{__template:"",__scope_link:"search._source"},script_fields:{__scope_link:"search.script_fields"},docvalue_fields:["{field}"],version:{__one_of:[!0,!1]}},percentile_ranks:{__template:{field:"",values:[10,15]},field:"{field}",values:[],script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},sampler:{__template:{},field:"{field}",script:{},shard_size:100,max_docs_per_value:3,execution_hint:{__one_of:["map","global_ordinals","bytes_hash"]}},children:{__template:{type:""},type:""},derivative:Xr,avg_bucket:Xr,max_bucket:Xr,min_bucket:Xr,stats_bucket:Xr,extended_stats_bucket:{...Xr,sigma:""},percentiles_bucket:{...Xr,percents:[]},sum_bucket:Xr,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Ci,window:5,model:{__one_of:["simple","linear","ewma","holt","holt_winters"]},settings:{type:{__one_of:["add","mult"]},alpha:.5,beta:.5,gamma:.5,period:7}},cumulative_sum:{__template:{buckets_path:""},buckets_path:"",format:""},serial_diff:{__template:{buckets_path:"",lag:7},lag:7,gap_policy:Ci,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:Ci,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:Ci,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:Ci},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},{terms:bD,histogram:wD,date_histogram:xD}=op["*"],SD=e=>{e.addGlobalAutocompleteRules("aggregations",op),e.addGlobalAutocompleteRules("aggs",op),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:bD,histogram:wD,date_histogram:xD}})},CD=e=>{const t={filter:{},routing:"1",search_routing:"1,2",index_routing:"1"};e.addGlobalAutocompleteRules("aliases",{"*":t})},ED=e=>{e.addEndpointDescription("update",{data_autocomplete_rules:{script:{},doc:{},upsert:{},scripted_upsert:{__one_of:[!0,!1]}}}),e.addEndpointDescription("put_script",{methods:["POST","PUT"],patterns:["_scripts/{lang}/{id}","_scripts/{lang}/{id}/_create"],url_components:{lang:["groovy","expressions"]},data_autocomplete_rules:{script:""}}),e.addEndpointDescription("termvectors",{data_autocomplete_rules:{fields:["{field}"],offsets:{__one_of:[!1,!0]},payloads:{__one_of:[!1,!0]},positions:{__one_of:[!1,!0]},term_statistics:{__one_of:[!0,!1]},field_statistics:{__one_of:[!1,!0]},per_field_analyzer:{__template:{FIELD:""},"{field}":""},routing:"",version:1,version_type:["external","external_gt","external_gte","force","internal"],doc:{},filter:{max_num_terms:1,min_term_freq:1,max_term_freq:1,min_doc_freq:1,max_doc_freq:1,min_word_length:1,max_word_length:1}}})},It={};It.and={__template:{filters:[{}]},filters:[{__scope_link:"."}]},It.bool={__scope_link:"GLOBAL.query"},It.exists={__template:{field:"FIELD_NAME"},field:"{field}"},It.ids={__template:{values:["ID"]},type:"{type}",values:[""]},It.limit={__template:{value:100},value:100},It.geo_bounding_box={__template:{FIELD:{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.717,lon:-73.99}}},"{field}":{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.73,lon:-74.1}},type:{__one_of:["memory","indexed"]}},It.geo_distance={__template:{distance:100,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},distance:100,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},optimize_bbox:{__one_of:["memory","indexed","none"]},"{field}":{lat:40.73,lon:-74.1}},It.geo_distance_range={__template:{from:100,to:200,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},from:100,to:200,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},include_lower:{__one_of:[!0,!1]},include_upper:{__one_of:[!0,!1]},"{field}":{lat:40.73,lon:-74.1}},It.geo_polygon={__template:{FIELD:{points:[{lat:40.73,lon:-74.1},{lat:40.83,lon:-75.1}]}},"{field}":{points:[{lat:40.73,lon:-74.1}]}},It.geo_shape={__template:{FIELD:{shape:{type:"envelope",coordinates:[[-45,45],[45,-45]]},relation:"within"}},"{field}":{shape:{type:"",coordinates:[]},indexed_shape:{id:"",index:"{index}",type:"{type}",shape_field_name:"shape"},relation:{__one_of:["within","intersects","disjoint"]}}},It.has_child={__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},It.has_parent={__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""},It.m=It.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},It.not={__template:{filter:{}},filter:{}},It.range={__template:{FIELD:{gte:10,lte:20}},"{field}":{gte:1,gt:1,lte:20,lt:20,time_zone:"+01:00",format:"dd/MM/yyyy||yyyy",execution:{__one_of:["index","fielddata"]}}},It.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},It.prefix={__template:{FIELD:"VALUE"},"{field}":""},It.query={},It.script={__template:{script:{}},script:{}},It.term={__template:{FIELD:"VALUE"},"{field}":""},It.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},It.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};const OD=e=>{e.addGlobalAutocompleteRules("filter",It)},hw={boundary_chars:{},boundary_max_scan:20,boundary_scanner:{__one_of:["chars","sentence","word"]},boundary_scanner_locale:{},encoder:{__one_of:["default","html"]},force_source:{__one_of:["false","true"]},fragmenter:{__one_of:["simple","span"]},highlight_query:{__scope_link:"GLOBAL.query"},matched_fields:["FIELD"],order:{},no_match_size:0,number_of_fragments:5,phrase_limit:256,pre_tags:{},post_tags:{},require_field_match:{__one_of:["true","false"]},tags_schema:{}},$D=e=>{e.addGlobalAutocompleteRules("highlight",{...hw,fields:{"{field}":{fragment_size:20,...hw}}}),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},ht={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},TD={append:{__template:{field:"",value:[]},field:"",value:[],...ht}},PD={bytes:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},RD={circle:{__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]},...ht}},jD={csv:{__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]},...ht}},MD={convert:{__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},ID={date:{__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH",...ht}},AD={date_index_name:{__template:{field:"",date_rounding:""},field:"",date_rounding:{__one_of:["y","M","w","d","h","m","s"]},date_formats:[],timezone:"UTC",locale:"ENGLISH",index_name_format:"yyyy-MM-dd",...ht}},ND={dissect:{__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]},...ht}},kD={dot_expander:{__template:{field:""},field:"",path:"",...ht}},LD={drop:{__template:{},...ht}},FD={fail:{__template:{message:""},message:"",...ht}},DD={foreach:{__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"},...ht}},BD={geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},zD={grok:{__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]},...ht}},qD={gsub:{__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:"",...ht}},VD={html_strip:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},HD={inference:{__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:"",...ht}},WD={join:{__template:{field:"",separator:""},field:"",separator:"",...ht}},UD={json:{__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]},...ht}},GD={kv:{__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]},...ht}},KD={lowercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},XD={pipeline:{__template:{name:""},name:"",...ht}},YD={remove:{__template:{field:""},field:"",...ht}},JD={rename:{__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},QD={script:{__template:{},lang:"painless",file:"",id:"",source:"",params:{},...ht}},ZD={set:{__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]},...ht}},eB={set_security_user:{__template:{field:""},field:"",properties:[""],...ht}},tB={split:{__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]},...ht}},nB={sort:{__template:{field:""},field:"",order:"asc",...ht}},rB={trim:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},oB={uppercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},iB={urldecode:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},mw={__one_of:[TD,PD,jD,RD,MD,ID,AD,ND,kD,LD,FD,DD,BD,zD,qD,VD,HD,WD,UD,GD,KD,XD,YD,JD,QD,ZD,eB,tB,nB,rB,oB,iB,{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},gw={description:"",processors:[mw],version:123},aB=e=>{e.addEndpointDescription("_processor",{data_autocomplete_rules:mw}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:gw}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:gw,docs:[]}})},$t=Object.freeze({__one_of:[!0,!1]}),sB=e=>{e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:$t},_all:{enabled:$t},_field_names:{index:$t},_routing:{required:$t},_index:{enabled:$t},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:$t,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:$t,numeric_detection:$t,properties:{"*":{type:{__one_of:["text","keyword","float","half_float","scaled_float","double","byte","short","integer","long","date","boolean","binary","object","nested","geo_point","geo_shape"]},store:$t,index:$t,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:$t,eager_global_ordinals:$t,norms:$t,coerce:$t,index_options:{__one_of:["docs","freqs","positions"]},analyzer:"standard",search_analyzer:"standard",include_in_all:{__one_of:[!1,!0]},ignore_above:10,position_increment_gap:0,precision_step:4,ignore_malformed:$t,scaling_factor:100,lat_lon:{__one_of:[!0,!1]},geohash:{__one_of:[!0,!1]},geohash_precision:"1m",geohash_prefix:{__one_of:[!0,!1]},validate:{__one_of:[!0,!1]},validate_lat:{__one_of:[!0,!1]},validate_lon:{__one_of:[!0,!1]},normalize:{__one_of:[!0,!1]},normalize_lat:{__one_of:[!0,!1]},normalize_lon:{__one_of:[!0,!1]},tree:{__one_of:["geohash","quadtree"]},precision:"5km",tree_levels:12,distance_error_pct:.025,orientation:"ccw",format:{__one_of:[[...["date","date_time","date_time_no_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","week_date_time_no_millis"].flatMap(function(t){return["basic_"+t,"strict_"+t]}),"date","date_hour","date_hour_minute","date_hour_minute_second","date_hour_minute_second_fraction","date_hour_minute_second_millis","date_optional_time","date_time","date_time_no_millis","hour","hour_minute","hour_minute_second","hour_minute_second_fraction","hour_minute_second_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","weekDateTimeNoMillis","weekyear","strict_weekyear","weekyear_week","strict_weekyear_week","strict_date_optional_time_nanos","weekyear_week_day","strict_weekyear_week_day","year","year_month","year_month_day","epoch_millis","epoch_second"].sort()]},fielddata:{filter:{regex:"",frequency:{min:.001,max:.1,min_segment_size:500}}},similarity:{__one_of:["default","BM25"]},properties:{__scope_link:"put_mapping.{type}.properties"},fields:{"*":{__scope_link:"put_mapping.type.properties.field"}},copy_to:{__one_of:["{field}",["{field}"]]},include_in_parent:$t,include_in_root:$t}}}})},lB=e=>{e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":$t,"blocks.read":$t,"blocks.write":$t,"blocks.metadata":$t,term_index_interval:32,term_index_divisor:1,"translog.flush_threshold_ops":5e3,"translog.flush_threshold_size":"200mb","translog.flush_threshold_period":"30m","translog.disable_flush":$t,"cache.filter.max_size":"2gb","cache.filter.expire":"2h","gateway.snapshot_interval":"10s","translog.durability":{__one_of:["request","async"]},routing:{allocation:{include:{tag:""},exclude:{tag:""},require:{tag:""},total_shards_per_node:-1}},"recovery.initial_shards":{__one_of:["quorum","quorum-1","half","full","full-1"]},"ttl.disable_purge":$t,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":$t,shadow_replicas:$t,shared_filesystem:$t,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},vw={FIELD:"REGEXP"},_w={FIELD:{}},yw={FIELD:{value:""}},bw={FIELD:{gte:10,lte:20}},ww={match:{span_term:{FIELD:"VALUE"}},end:3},xw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},Sw={FIELD:{value:"VALUE"}},Cw={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},Ew={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},Ow={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},$w={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Tw={FIELD:{value:"VALUE"}},Pw={cutoff_frequency:.001,query:"",operator:{__one_of:["and","or"]},zero_terms_query:{__one_of:["none","all"]},max_expansions:10,analyzer:"",boost:1,lenient:{__one_of:["true","false"]},fuzzy_transpositions:{__one_of:["true","false"]},auto_generate_synonyms_phrase_query:{__one_of:["true","false"]},fuzziness:1,prefix_length:1,minimum_should_match:1},Rw={docvalue_fields:["FIELD"],from:{},size:{},sort:{},name:{},highlight:{},_source:{__one_of:["true","false"]},explain:{__one_of:["true","false"]},script_fields:{__template:{FIELD:{script:{}}},"{field}":{script:{}}},version:{__one_of:["true","false"]}},jw={span_first:{__template:ww,__scope_link:".span_first"},span_near:{__template:xw,__scope_link:".span_near"},span_or:{__template:Ew,__scope_link:".span_or"},span_not:{__template:Cw,__scope_link:".span_not"},span_term:{__template:Sw,__scope_link:".span_term"},span_containing:{__template:Ow,__scope_link:".span_containing"},span_within:{__template:$w,__scope_link:".span_within"}},Or={...jw,field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:jw,field:""}},cB={wildcard:{__template:Tw,__scope_link:".wildcard"},fuzzy:{__template:_w,__scope_link:".fuzzy"},prefix:{__template:yw,__scope_link:".prefix"},range:{__template:bw,__scope_link:".range"},regexp:{__template:vw,__scope_link:".regexp"}},ip={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},Mw={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:ip,exp:ip,gauss:ip,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},uB=[SD,CD,ED,OD,$D,aB,sB,lB,e=>{e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":{type:{__one_of:["phrase","phrase_prefix","boolean"]},...Pw}},match_phrase:{__template:{FIELD:"PHRASE"},"{field}":{query:"",analyzer:"",slop:1}},match_phrase_prefix:{__template:{FIELD:"PREFIX"},"{field}":{query:"",analyzer:"",max_expansions:10,prefix_length:1,fuzziness:.1}},regexp:{__template:vw,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:{__template:{query:"",fields:[]},...Pw,fields:["{field}"],use_dis_max:{__template:!0,__one_of:[!0,!1]},tie_breaker:0,type:{__one_of:["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]}},bool:{must:[{__scope_link:"."}],must_not:[{__scope_link:"."}],should:[{__scope_link:"."}],filter:[{__scope_link:"GLOBAL.filter"}],minimum_should_match:1,boost:1},boosting:{positive:{__scope_link:"."},negative:{__scope_link:"."},negative_boost:.2},ids:{type:"",values:[]},constant_score:{__template:{filter:{},boost:1.2},query:{},filter:{},boost:1.2},dis_max:{__template:{tie_breaker:.7,boost:1.2,queries:[]},tie_breaker:.7,boost:1.2,queries:[{__scope_link:"."}]},distance_feature:{__template:{field:"",origin:"",pivot:""},field:"{field}",origin:"",pivot:""},exists:{field:""},field:{"{field}":{query:"",boost:2,enable_position_increments:{__template:!1,__one_of:[!0,!1]}}},fuzzy:{__template:_w,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:{...Rw},type:"{type}",score_mode:{__one_of:["none","max","sum","avg"]},_scope:"",query:{},min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",query:{}},parent_type:"{type}",score_mode:{__one_of:["none","score"]},_scope:"",query:{}},match_all:{boost:1},more_like_this:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},fields:["{field}"],like:"",percent_terms_to_match:.3,min_term_freq:2,max_query_terms:25,stop_words:[""],min_doc_freq:5,max_doc_freq:100,min_word_len:0,max_word_len:0,boost_terms:1,boost:1,analyzer:"",docs:[{_index:"{index}",_type:"{type}",_id:""}],ids:[""]},mlt:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},__scope_link:".more_like_this"},prefix:{__template:yw,"{field}":{value:"",boost:1}},query_string:{__template:{default_field:"FIELD",query:"this AND that OR thus"},query:"",default_field:"{field}",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",allow_leading_wildcard:{__one_of:[!0,!1]},enable_position_increments:{__one_of:[!0,!1]},fuzzy_max_expansions:50,fuzziness:.5,fuzzy_prefix_length:0,phrase_slop:0,boost:1,analyze_wildcard:{__one_of:[!1,!0]},auto_generate_phrase_queries:{__one_of:[!1,!0]},minimum_should_match:"20%",lenient:{__one_of:[!1,!0]},use_dis_max:{__one_of:[!0,!1]},tie_breaker:0,time_zone:"+01:00"},simple_query_string:{__template:{query:"",fields:[]},query:"",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",flags:"OR|AND|PREFIX",locale:"ROOT",lenient:{__one_of:[!0,!1]}},range:{__template:bw,"{field}":{__template:{gte:10,lte:20},gte:10,gt:10,lte:20,lt:20,time_zone:"+01:00",boost:1,format:"dd/MM/yyyy||yyyy"}},span_first:{__template:ww,match:Or},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:cB},span_near:{__template:xw,clauses:[Or],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:Sw,"{field}":{value:"",boost:2}},span_not:{__template:Cw,include:Or,exclude:Or},span_or:{__template:Ew,clauses:[Or]},span_containing:{__template:Ow,little:Or,big:Or},span_within:{__template:$w,little:Or,big:Or},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:Tw,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:{...Rw},path:"",query:{},score_mode:{__one_of:["avg","total","max","none"]}},percolate:{__template:{field:"",document:{}},field:"",document:{},name:"",documents:[{}],document_type:"",index:"",type:"",id:"",routing:"",preference:""},common:{__template:{FIELD:{query:{}}},"{field}":{query:{},cutoff_frequency:.001,minimum_should_match:{low_freq:{},high_freq:{}}}},custom_filters_score:{__template:{query:{},filters:[{filter:{}}]},query:{},filters:[{filter:{},boost:2,script:{}}],score_mode:{__one_of:["first","min","max","total","avg","multiply"]},max_boost:2,params:{},lang:""},indices:{__template:{indices:["INDEX1","INDEX2"],query:{}},indices:["{index}"],query:{},no_match_query:{__scope_link:"."}},geo_shape:{__template:{location:{},relation:"within"},__scope_link:".filter.geo_shape"},function_score:ye.defaults({__template:{query:{},functions:[{}]},query:{},functions:[ye.defaults({filter:{},weight:1},Mw)],boost:1,boost_mode:{__one_of:["multiply","replace","sum","avg","max","min"]},score_mode:{__one_of:["multiply","sum","first","avg","max","min"]},max_boost:10,min_score:1},Mw),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},e=>{e.addEndpointDescription("reindex",{methods:["POST"],patterns:["_reindex"],data_autocomplete_rules:{__template:{source:{},dest:{}},source:{index:"",type:"",query:{__scope_link:"GLOBAL.query"},sort:{__template:{FIELD:"desc"},FIELD:{__one_of:["asc","desc"]}},size:1e3,remote:{__template:{host:""},host:"",username:"",password:"",socket_timeout:"30s",connect_timeout:"30s"}},dest:{index:"",version_type:{__one_of:["internal","external"]},op_type:"create",routing:{__one_of:["keep","discard","=SOME TEXT"]},pipeline:""},conflicts:"proceed",size:10,script:{__scope_link:"GLOBAL.script"}}})},e=>{e.addEndpointDescription("search",{priority:10,data_autocomplete_rules:{query:{},profile:{__one_of:["true","false"]},aggs:{__template:{NAME:{AGG_TYPE:{}}}},post_filter:{__scope_link:"GLOBAL.filter"},size:{__template:20},from:0,sort:{__template:[{FIELD:{order:"desc"}}],__any_of:[{"{field}":{order:{__one_of:["desc","asc"]},missing:{__one_of:["_last","_first"]},mode:{__one_of:["min","max","avg","sum"]},nested_path:"",nested_filter:{__scope_link:"GLOBAL.filter"}}},"{field}","_score",{_geo_distance:{__template:{FIELD:{lat:40,lon:-70},order:"asc"},"{field}":{__one_of:[{__template:{lat:40,lon:-70},lat:40,lon:-70},[{__template:{lat:40,lon:-70},lat:40,lon:-70}],[""],""]},distance_type:{__one_of:["sloppy_arc","arc","plane"]},sort_mode:{__one_of:["min","max","avg"]},order:{__one_of:["asc","desc"]},unit:"km"}}]},stored_fields:["{field}"],suggest:{__template:{YOUR_SUGGESTION:{text:"YOUR TEXT",term:{FIELD:"MESSAGE"}}},"*":{include:[],exclude:[]}},docvalue_fields:["{field}"],collapse:{__template:{field:"FIELD"}},indices_boost:{__template:[{INDEX:1}]},rescore:{__template:{query:{},window_size:50}},script_fields:{__template:{FIELD:{script:{}}},"*":{__scope_link:"GLOBAL.script"}},partial_fields:{__template:{NAME:{include:[]}},"*":{include:[],exclude:[]}},highlight:{},_source:{__one_of:["{field}",["{field}"],{includes:{__one_of:["{field}",["{field}"]]},excludes:{__one_of:["{field}",["{field}"]]}}]},explain:{__one_of:[!0,!1]},stats:[""],timeout:"1s",version:{__one_of:[!0,!1]},track_total_hits:{__one_of:[!0,!1]}}}),e.addEndpointDescription("search_template",{data_autocomplete_rules:{template:{__one_of:[{__scope_link:"search"},{__scope_link:"GLOBAL.script"}]},params:{}}}),e.addEndpointDescription("render_search_template",{data_autocomplete_rules:{__one_of:[{source:{__scope_link:"search"}},{__scope_link:"GLOBAL.script"}],params:{}}}),e.addEndpointDescription("_search/template/{id}",{data_autocomplete_rules:{template:{__scope_link:"search"}}})}];class dB{constructor(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}addGlobalAutocompleteRules(t,n){this.globalRules[t]=n}addEndpointDescription(t,n={}){let r={};this.endpoints[t]&&(r={...this.endpoints[t]});let o;ye.each(n.patterns||[],function(i){i.indexOf("{indices}")>=0&&(o=o||{},o.ignore_unavailable="__flag__",o.allow_no_indices="__flag__",o.expand_wildcards=["open","closed"])}),o&&(n.url_params=ye.assign(n.url_params||{},r.url_params),ye.defaults(n.url_params,o)),ye.assign(r,n),ye.defaults(r,{id:t,patterns:[t],methods:["GET"]}),this.endpoints[t]=r}asJson(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}}addExtensionSpecFilePath(t){this.extensionSpecFilePaths.push(t)}addProcessorDefinition(t){if(!this.hasLoadedSpec)throw new Error("Cannot add a processor definition because spec definitions have not loaded!");this.endpoints._processor.data_autocomplete_rules.__one_of.push(t)}setup(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}}start(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}}async loadJSONSpecInDir(){const t=Object.assign({"../lib/spec_definitions/json/generated/_common.json":()=>Promise.resolve().then(()=>w4),"../lib/spec_definitions/json/generated/bulk.json":()=>Promise.resolve().then(()=>x4),"../lib/spec_definitions/json/generated/cat.aliases.json":()=>Promise.resolve().then(()=>S4),"../lib/spec_definitions/json/generated/cat.allocation.json":()=>Promise.resolve().then(()=>C4),"../lib/spec_definitions/json/generated/cat.count.json":()=>Promise.resolve().then(()=>E4),"../lib/spec_definitions/json/generated/cat.fielddata.json":()=>Promise.resolve().then(()=>O4),"../lib/spec_definitions/json/generated/cat.health.json":()=>Promise.resolve().then(()=>$4),"../lib/spec_definitions/json/generated/cat.help.json":()=>Promise.resolve().then(()=>T4),"../lib/spec_definitions/json/generated/cat.indices.json":()=>Promise.resolve().then(()=>P4),"../lib/spec_definitions/json/generated/cat.master.json":()=>Promise.resolve().then(()=>R4),"../lib/spec_definitions/json/generated/cat.nodeattrs.json":()=>Promise.resolve().then(()=>j4),"../lib/spec_definitions/json/generated/cat.nodes.json":()=>Promise.resolve().then(()=>M4),"../lib/spec_definitions/json/generated/cat.pending_tasks.json":()=>Promise.resolve().then(()=>I4),"../lib/spec_definitions/json/generated/cat.plugins.json":()=>Promise.resolve().then(()=>A4),"../lib/spec_definitions/json/generated/cat.recovery.json":()=>Promise.resolve().then(()=>N4),"../lib/spec_definitions/json/generated/cat.repositories.json":()=>Promise.resolve().then(()=>k4),"../lib/spec_definitions/json/generated/cat.segments.json":()=>Promise.resolve().then(()=>L4),"../lib/spec_definitions/json/generated/cat.shards.json":()=>Promise.resolve().then(()=>F4),"../lib/spec_definitions/json/generated/cat.snapshots.json":()=>Promise.resolve().then(()=>D4),"../lib/spec_definitions/json/generated/cat.tasks.json":()=>Promise.resolve().then(()=>B4),"../lib/spec_definitions/json/generated/cat.templates.json":()=>Promise.resolve().then(()=>z4),"../lib/spec_definitions/json/generated/cat.thread_pool.json":()=>Promise.resolve().then(()=>q4),"../lib/spec_definitions/json/generated/clear_scroll.json":()=>Promise.resolve().then(()=>V4),"../lib/spec_definitions/json/generated/cluster.allocation_explain.json":()=>Promise.resolve().then(()=>H4),"../lib/spec_definitions/json/generated/cluster.delete_component_template.json":()=>Promise.resolve().then(()=>W4),"../lib/spec_definitions/json/generated/cluster.get_component_template.json":()=>Promise.resolve().then(()=>U4),"../lib/spec_definitions/json/generated/cluster.get_settings.json":()=>Promise.resolve().then(()=>G4),"../lib/spec_definitions/json/generated/cluster.health.json":()=>Promise.resolve().then(()=>K4),"../lib/spec_definitions/json/generated/cluster.pending_tasks.json":()=>Promise.resolve().then(()=>X4),"../lib/spec_definitions/json/generated/cluster.put_component_template.json":()=>Promise.resolve().then(()=>Y4),"../lib/spec_definitions/json/generated/cluster.put_settings.json":()=>Promise.resolve().then(()=>J4),"../lib/spec_definitions/json/generated/cluster.remote_info.json":()=>Promise.resolve().then(()=>Q4),"../lib/spec_definitions/json/generated/cluster.reroute.json":()=>Promise.resolve().then(()=>Z4),"../lib/spec_definitions/json/generated/cluster.state.json":()=>Promise.resolve().then(()=>e8),"../lib/spec_definitions/json/generated/cluster.stats.json":()=>Promise.resolve().then(()=>t8),"../lib/spec_definitions/json/generated/count.json":()=>Promise.resolve().then(()=>n8),"../lib/spec_definitions/json/generated/create.json":()=>Promise.resolve().then(()=>r8),"../lib/spec_definitions/json/generated/delete.json":()=>Promise.resolve().then(()=>o8),"../lib/spec_definitions/json/generated/delete_by_query.json":()=>Promise.resolve().then(()=>i8),"../lib/spec_definitions/json/generated/delete_by_query_rethrottle.json":()=>Promise.resolve().then(()=>a8),"../lib/spec_definitions/json/generated/delete_script.json":()=>Promise.resolve().then(()=>s8),"../lib/spec_definitions/json/generated/exists.json":()=>Promise.resolve().then(()=>l8),"../lib/spec_definitions/json/generated/exists_source.json":()=>Promise.resolve().then(()=>c8),"../lib/spec_definitions/json/generated/explain.json":()=>Promise.resolve().then(()=>u8),"../lib/spec_definitions/json/generated/field_caps.json":()=>Promise.resolve().then(()=>d8),"../lib/spec_definitions/json/generated/get.json":()=>Promise.resolve().then(()=>f8),"../lib/spec_definitions/json/generated/get_script.json":()=>Promise.resolve().then(()=>p8),"../lib/spec_definitions/json/generated/get_script_context.json":()=>Promise.resolve().then(()=>h8),"../lib/spec_definitions/json/generated/get_script_languages.json":()=>Promise.resolve().then(()=>m8),"../lib/spec_definitions/json/generated/get_source.json":()=>Promise.resolve().then(()=>g8),"../lib/spec_definitions/json/generated/index.json":()=>Promise.resolve().then(()=>v8),"../lib/spec_definitions/json/generated/indices.analyze.json":()=>Promise.resolve().then(()=>_8),"../lib/spec_definitions/json/generated/indices.clear_cache.json":()=>Promise.resolve().then(()=>y8),"../lib/spec_definitions/json/generated/indices.clone.json":()=>Promise.resolve().then(()=>b8),"../lib/spec_definitions/json/generated/indices.close.json":()=>Promise.resolve().then(()=>w8),"../lib/spec_definitions/json/generated/indices.create.json":()=>Promise.resolve().then(()=>x8),"../lib/spec_definitions/json/generated/indices.delete.json":()=>Promise.resolve().then(()=>S8),"../lib/spec_definitions/json/generated/indices.delete_alias.json":()=>Promise.resolve().then(()=>C8),"../lib/spec_definitions/json/generated/indices.delete_template.json":()=>Promise.resolve().then(()=>E8),"../lib/spec_definitions/json/generated/indices.exists.json":()=>Promise.resolve().then(()=>O8),"../lib/spec_definitions/json/generated/indices.exists_alias.json":()=>Promise.resolve().then(()=>$8),"../lib/spec_definitions/json/generated/indices.exists_template.json":()=>Promise.resolve().then(()=>T8),"../lib/spec_definitions/json/generated/indices.exists_type.json":()=>Promise.resolve().then(()=>P8),"../lib/spec_definitions/json/generated/indices.flush.json":()=>Promise.resolve().then(()=>R8),"../lib/spec_definitions/json/generated/indices.flush_synced.json":()=>Promise.resolve().then(()=>j8),"../lib/spec_definitions/json/generated/indices.forcemerge.json":()=>Promise.resolve().then(()=>M8),"../lib/spec_definitions/json/generated/indices.get.json":()=>Promise.resolve().then(()=>I8),"../lib/spec_definitions/json/generated/indices.get_alias.json":()=>Promise.resolve().then(()=>A8),"../lib/spec_definitions/json/generated/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>N8),"../lib/spec_definitions/json/generated/indices.get_mapping.json":()=>Promise.resolve().then(()=>k8),"../lib/spec_definitions/json/generated/indices.get_settings.json":()=>Promise.resolve().then(()=>L8),"../lib/spec_definitions/json/generated/indices.get_template.json":()=>Promise.resolve().then(()=>F8),"../lib/spec_definitions/json/generated/indices.get_upgrade.json":()=>Promise.resolve().then(()=>D8),"../lib/spec_definitions/json/generated/indices.open.json":()=>Promise.resolve().then(()=>B8),"../lib/spec_definitions/json/generated/indices.put_alias.json":()=>Promise.resolve().then(()=>z8),"../lib/spec_definitions/json/generated/indices.put_mapping.json":()=>Promise.resolve().then(()=>q8),"../lib/spec_definitions/json/generated/indices.put_settings.json":()=>Promise.resolve().then(()=>V8),"../lib/spec_definitions/json/generated/indices.put_template.json":()=>Promise.resolve().then(()=>H8),"../lib/spec_definitions/json/generated/indices.recovery.json":()=>Promise.resolve().then(()=>W8),"../lib/spec_definitions/json/generated/indices.refresh.json":()=>Promise.resolve().then(()=>U8),"../lib/spec_definitions/json/generated/indices.rollover.json":()=>Promise.resolve().then(()=>G8),"../lib/spec_definitions/json/generated/indices.segments.json":()=>Promise.resolve().then(()=>K8),"../lib/spec_definitions/json/generated/indices.shard_stores.json":()=>Promise.resolve().then(()=>X8),"../lib/spec_definitions/json/generated/indices.shrink.json":()=>Promise.resolve().then(()=>Y8),"../lib/spec_definitions/json/generated/indices.split.json":()=>Promise.resolve().then(()=>J8),"../lib/spec_definitions/json/generated/indices.stats.json":()=>Promise.resolve().then(()=>Q8),"../lib/spec_definitions/json/generated/indices.update_aliases.json":()=>Promise.resolve().then(()=>Z8),"../lib/spec_definitions/json/generated/indices.upgrade.json":()=>Promise.resolve().then(()=>e3),"../lib/spec_definitions/json/generated/indices.validate_query.json":()=>Promise.resolve().then(()=>t3),"../lib/spec_definitions/json/generated/info.json":()=>Promise.resolve().then(()=>n3),"../lib/spec_definitions/json/generated/ingest.delete_pipeline.json":()=>Promise.resolve().then(()=>r3),"../lib/spec_definitions/json/generated/ingest.get_pipeline.json":()=>Promise.resolve().then(()=>o3),"../lib/spec_definitions/json/generated/ingest.processor_grok.json":()=>Promise.resolve().then(()=>i3),"../lib/spec_definitions/json/generated/ingest.put_pipeline.json":()=>Promise.resolve().then(()=>a3),"../lib/spec_definitions/json/generated/ingest.simulate.json":()=>Promise.resolve().then(()=>s3),"../lib/spec_definitions/json/generated/mget.json":()=>Promise.resolve().then(()=>l3),"../lib/spec_definitions/json/generated/msearch.json":()=>Promise.resolve().then(()=>c3),"../lib/spec_definitions/json/generated/msearch_template.json":()=>Promise.resolve().then(()=>u3),"../lib/spec_definitions/json/generated/mtermvectors.json":()=>Promise.resolve().then(()=>d3),"../lib/spec_definitions/json/generated/nodes.hot_threads.json":()=>Promise.resolve().then(()=>f3),"../lib/spec_definitions/json/generated/nodes.info.json":()=>Promise.resolve().then(()=>p3),"../lib/spec_definitions/json/generated/nodes.reload_secure_settings.json":()=>Promise.resolve().then(()=>h3),"../lib/spec_definitions/json/generated/nodes.stats.json":()=>Promise.resolve().then(()=>m3),"../lib/spec_definitions/json/generated/nodes.usage.json":()=>Promise.resolve().then(()=>g3),"../lib/spec_definitions/json/generated/ping.json":()=>Promise.resolve().then(()=>v3),"../lib/spec_definitions/json/generated/put_script.json":()=>Promise.resolve().then(()=>_3),"../lib/spec_definitions/json/generated/rank_eval.json":()=>Promise.resolve().then(()=>y3),"../lib/spec_definitions/json/generated/reindex.json":()=>Promise.resolve().then(()=>b3),"../lib/spec_definitions/json/generated/reindex_rethrottle.json":()=>Promise.resolve().then(()=>w3),"../lib/spec_definitions/json/generated/render_search_template.json":()=>Promise.resolve().then(()=>x3),"../lib/spec_definitions/json/generated/scripts_painless_execute.json":()=>Promise.resolve().then(()=>S3),"../lib/spec_definitions/json/generated/scroll.json":()=>Promise.resolve().then(()=>C3),"../lib/spec_definitions/json/generated/search.json":()=>Promise.resolve().then(()=>E3),"../lib/spec_definitions/json/generated/search_shards.json":()=>Promise.resolve().then(()=>O3),"../lib/spec_definitions/json/generated/search_template.json":()=>Promise.resolve().then(()=>$3),"../lib/spec_definitions/json/generated/snapshot.cleanup_repository.json":()=>Promise.resolve().then(()=>T3),"../lib/spec_definitions/json/generated/snapshot.create.json":()=>Promise.resolve().then(()=>P3),"../lib/spec_definitions/json/generated/snapshot.create_repository.json":()=>Promise.resolve().then(()=>R3),"../lib/spec_definitions/json/generated/snapshot.delete.json":()=>Promise.resolve().then(()=>j3),"../lib/spec_definitions/json/generated/snapshot.delete_repository.json":()=>Promise.resolve().then(()=>M3),"../lib/spec_definitions/json/generated/snapshot.get.json":()=>Promise.resolve().then(()=>I3),"../lib/spec_definitions/json/generated/snapshot.get_repository.json":()=>Promise.resolve().then(()=>A3),"../lib/spec_definitions/json/generated/snapshot.restore.json":()=>Promise.resolve().then(()=>N3),"../lib/spec_definitions/json/generated/snapshot.status.json":()=>Promise.resolve().then(()=>k3),"../lib/spec_definitions/json/generated/snapshot.verify_repository.json":()=>Promise.resolve().then(()=>L3),"../lib/spec_definitions/json/generated/tasks.cancel.json":()=>Promise.resolve().then(()=>F3),"../lib/spec_definitions/json/generated/tasks.get.json":()=>Promise.resolve().then(()=>D3),"../lib/spec_definitions/json/generated/tasks.list.json":()=>Promise.resolve().then(()=>B3),"../lib/spec_definitions/json/generated/termvectors.json":()=>Promise.resolve().then(()=>z3),"../lib/spec_definitions/json/generated/update.json":()=>Promise.resolve().then(()=>q3),"../lib/spec_definitions/json/generated/update_by_query.json":()=>Promise.resolve().then(()=>V3),"../lib/spec_definitions/json/generated/update_by_query_rethrottle.json":()=>Promise.resolve().then(()=>H3)}),n=await this.loadAllSpecFromModules(t),r=Object.assign({"../lib/spec_definitions/json/overrides/clear_scroll.json":()=>Promise.resolve().then(()=>W3),"../lib/spec_definitions/json/overrides/cluster.health.json":()=>Promise.resolve().then(()=>U3),"../lib/spec_definitions/json/overrides/cluster.put_component_template.json":()=>Promise.resolve().then(()=>G3),"../lib/spec_definitions/json/overrides/cluster.put_settings.json":()=>Promise.resolve().then(()=>K3),"../lib/spec_definitions/json/overrides/cluster.reroute.json":()=>Promise.resolve().then(()=>X3),"../lib/spec_definitions/json/overrides/count.json":()=>Promise.resolve().then(()=>Y3),"../lib/spec_definitions/json/overrides/indices.analyze.json":()=>Promise.resolve().then(()=>J3),"../lib/spec_definitions/json/overrides/indices.clone.json":()=>Promise.resolve().then(()=>Q3),"../lib/spec_definitions/json/overrides/indices.create.json":()=>Promise.resolve().then(()=>Z3),"../lib/spec_definitions/json/overrides/indices.delete_template.json":()=>Promise.resolve().then(()=>e6),"../lib/spec_definitions/json/overrides/indices.exists_template.json":()=>Promise.resolve().then(()=>t6),"../lib/spec_definitions/json/overrides/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>n6),"../lib/spec_definitions/json/overrides/indices.get_mapping.json":()=>Promise.resolve().then(()=>r6),"../lib/spec_definitions/json/overrides/indices.get_template.json":()=>Promise.resolve().then(()=>o6),"../lib/spec_definitions/json/overrides/indices.put_alias.json":()=>Promise.resolve().then(()=>i6),"../lib/spec_definitions/json/overrides/indices.put_settings.json":()=>Promise.resolve().then(()=>a6),"../lib/spec_definitions/json/overrides/indices.put_template.json":()=>Promise.resolve().then(()=>s6),"../lib/spec_definitions/json/overrides/indices.rollover.json":()=>Promise.resolve().then(()=>l6),"../lib/spec_definitions/json/overrides/indices.update_aliases.json":()=>Promise.resolve().then(()=>c6),"../lib/spec_definitions/json/overrides/indices.validate_query.json":()=>Promise.resolve().then(()=>u6),"../lib/spec_definitions/json/overrides/snapshot.create.json":()=>Promise.resolve().then(()=>d6),"../lib/spec_definitions/json/overrides/snapshot.create_repository.json":()=>Promise.resolve().then(()=>f6),"../lib/spec_definitions/json/overrides/snapshot.restore.json":()=>Promise.resolve().then(()=>p6),"../lib/spec_definitions/json/overrides/update_by_query.json":()=>Promise.resolve().then(()=>h6)}),o=await this.loadAllSpecFromModules(r);return ye.merge(n,o)}async loadAllSpecFromModules(t){const n=Object.keys(t).map(async o=>(await t[o]()).default);return(await Promise.all(n)).reduce((o,i)=>ye.merge(o,i),{})}loadJsonSpec(){const t=this.loadJSONSpecInDir();Object.keys(t).forEach(n=>{this.addEndpointDescription(n,t[n])})}loadJSSpec(){uB.forEach(t=>t(this))}}class fB extends Eo{constructor(t,n,r){super(t,n),this.description=r}getTerms(){const t={name:this.name};return this.description==="__flag__"?t.meta="flag":(t.meta="param",t.insertValue=this.name+"="),[t]}}class pB{constructor(t,n){this.rootComponent=new $n("ROOT"),ye.isUndefined(n)&&(n={pretty:"__flag__",format:["json","yaml"],filter_path:""}),t=ye.clone(t||{}),ye.defaults(t,n),ye.each(t,(r,o)=>{const i=new fB(o,this.rootComponent,r);Array.isArray(r)?new kn(o,r,i):r==="__flag__"&&new kn(o,["true","false"],i)})}getTopLevelComponents(){return this.rootComponent.next}}function hB(e,t){const n=e.getTerms;return e.getTerms=function(r,o){let i=n.call(e,r,o);return i&&(i=ye.map(i,a=>(ye.isObject(a)||(a={name:a}),ye.defaults(a,t))),i)},e}function Iw(e,t){function n(){}n.prototype=e;const r=new n;return t&&(t.unshift(r),ye.assign.apply(ye,t),t.shift()),r}function Bl(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function ap(e,t,n,r){if(!e||e.length===0)return t;const o=e[0],i=[];return ye.each(t,function(a){const l=Iw(n,a.contextExtensionList);ye.each(a.components,function(s){const c=s.match(o,l,r);if(c&&!ye.isEmpty(c)){let u,f;c.next&&!Array.isArray(c.next)?u=[c.next]:u=c.next,c.context_values?(f=[],[].push.apply(f,a.contextExtensionList),f.push(c.context_values)):f=a.contextExtensionList;let d=a.priority;ye.isNumber(c.priority)&&(ye.isNumber(d)?d=Math.min(d,c.priority):d=c.priority),i.push(new Bl(s.name,u,f,a.depth+1,d))}})}),i.length===0?ye.map(t,function(a){return new Bl(a.name,[],a.contextExtensionList)}):ap(e.slice(1),i,n,r)}function Ei(e,t,n,r,o){let i=ap(e,[new Bl("ROOT",o,[])],t,n);if(r){let a=[];ye.each(i,function(l){const s=Iw(t,l.contextExtensionList);ye.each(l.components,function(c){ye.each(c.getTerms(s,n),function(u){ye.isObject(u)||(u={name:u}),a.push(u)})})}),a=ye.uniq(a),t.autoCompleteSet=a}if(i.length!==0){let a;i=ye.sortBy(i,function(l){return ye.isNumber(l.priority)?l.priority:Number.MAX_VALUE}),a=ye.find(i,function(l){return ye.isEmpty(l.components)}),!a&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),ye.each(a.contextExtensionList,function(l){ye.assign(t,l)})}}function mB(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}function gB(e,t,n,r){const o=ap(e,[new Bl("ROOT",r,[])],t,n);return[].concat.apply([],ye.map(o,"components"))}class vB extends $n{constructor(t,n){super("__scope_link"),ye.isString(t)&&t[0]==="."&&(t==="."?t=n.endpointId:t=n.endpointId+t),this.link=t,this.compilingContext=n}resolveLinkToComponents(t,n){if(ye.isFunction(this.link)){const a=this.link(t,n);return ka(a,this.compilingContext)}if(!ye.isString(this.link))throw new Error("unsupported link format",this.link);let r=this.link.replace(/\./g,"{").split(/(\{)/);const o=r[0];let i;try{if(o==="GLOBAL"){if(r.length<3)throw new Error("missing term in global link: "+this.link);const a=r[2];i=t.globalComponentResolver(a),r=r.slice(3)}else r=r.slice(1),i=t.endpointComponentResolver(o)}catch(a){throw new Error("failed to resolve link ["+this.link+"]: "+a)}return gB(r,t,n,i)}getTerms(t,n){const r=[],o=this.resolveLinkToComponents(t,n);return ye.each(o,function(i){r.push.apply(r,i.getTerms(t,n))}),r}match(t,n,r){const o={next:[]},i=this.resolveLinkToComponents(n,r);return ye.each(i,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)}),o}}function sp(e){if(e.__template)return e.__raw&&ye.isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return sp(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(e.length===1&&ye.isObject(e[0])){const t=sp(e[0]);return t!=null?[t]:[]}return[]}else return ye.isObject(e)?{}:(ye.isString(e)&&!/^\{.*\}$/.test(e),e)}function _B(e){const t={},n=sp(e);return ye.isUndefined(n)||(t.template=n),t}function ka(e,t){if(Array.isArray(e))return[Nw(e,t)];if(ye.isObject(e)){if(e.__scope_link)return[new vB(e.__scope_link,t)];if(e.__any_of)return[Nw(e.__any_of,t)];if(e.__one_of)return ye.flatten(ye.map(e.__one_of,function(r){return ka(r,t)}));const n=yB(e,t);return e.__condition?[bB(e.__condition,n)]:[n]}else return ye.isString(e)&&/^\{.*\}$/.test(e)?[Aw(e,t)]:[new Eo(e)]}function Aw(e,t,n){e=e.substr(1,e.length-2).toLowerCase();let r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),ye.isUndefined(n)||(r=hB(r,{template:n})),r}function yB(e,t){const n=new Eo("{"),r=[],o=[];return ye.each(e,function(i,a){if(a.indexOf("__")===0)return;const l=_B(i);let s;/^\{.*\}$/.test(a)?(s=Aw(a,t,l.template),o.push(s)):a==="*"?(s=new $n(a),o.push(s)):(l.name=a,s=new Eo(a,null,[l]),r.push(s)),ye.map(ka(i,t),function(c){s.addComponent(c)})}),n.addComponent(new bN("inner",r,o)),n}function Nw(e,t){const n=new Eo("[");return ye.each(e,function(r){ye.each(ka(r,t),function(o){n.addComponent(o)})}),n}function bB(e,t){if(e.lines_regex)return new _N(function(n,r){const o=r.getLines(n.requestStartRow,r.getCurrentPosition().lineNumber).join(`
|
|
271
|
+
`);return new RegExp(e.lines_regex,"m").test(o)},t);throw"unknown condition type - got: "+JSON.stringify(e)}function wB(){return[new yN("__global__")]}function kw(e,t,n){return ka(t,new mB(e,n))}function lp(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new SN(e),this.globalBodyComponentFactories=t,this.name=""}(function(e){e.addGlobalAutocompleteRules=function(t,n){this.globalRules[t]=kw("GLOBAL."+t,n,this.globalBodyComponentFactories)},e.getGlobalAutocompleteComponents=function(t,n){const r=this.globalRules[t];if(ye.isUndefined(r)&&(n||ye.isUndefined(n)))throw new Error("failed to resolve global components for ['"+t+"']");return r},e.addEndpointDescription=function(t,n){const r={};ye.assign(r,n||{}),ye.defaults(r,{id:t,patterns:[t],methods:["GET"]}),ye.each(r.patterns,o=>{this.urlPatternMatcher.addEndpoint(o,r)}),r.paramsAutocomplete=new pB(r.url_params),r.bodyAutocompleteRootComponents=kw(r.id,r.data_autocomplete_rules,this.globalBodyComponentFactories),this.endpoints[t]=r},e.getEndpointDescriptionByEndpoint=function(t){return this.endpoints[t]},e.getTopLevelUrlCompleteComponents=function(t){return this.urlPatternMatcher.getTopLevelComponents(t)},e.getUnmatchedEndpointComponents=function(){return wB()},e.clear=function(){this.endpoints={},this.globalRules={}}})(lp.prototype);let La=new lp;const Lw=e=>e[0]==="_"&&e!=="_all",Fa=(e,t)=>new BN(e,t),xB={getComponent:function(e,t,n){if(this[e])return this[e];if(n)return Fa},index:function(e,t){if(!Lw(e))return new ml(e,t,!1)},indices:function(e,t){if(!Lw(e))return new ml(e,t,!0)},type:function(e,t){return new cb(e,t,!1)},types:function(e,t){return new cb(e,t,!0)},id:function(e,t){return Fa(e,t)},transform_id:function(e,t){return Fa(e,t)},username:function(e,t){return new ub(e,t)},user:function(e,t){return new ub(e,t)},template:function(e,t){return new zN(e,t)},task_id:function(e,t){return Fa(e,t)},ids:function(e,t){return Fa(e,t)},fields:function(e,t){return new lb(e,t,!0)},field:function(e,t){return new lb(e,t,!1)},nodes:function(e,t){return new kn(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new kn(e,[],t,!1)}};function SB(){return La.getUnmatchedEndpointComponents()}function CB(e){return La.getEndpointDescriptionByEndpoint(e)}function EB(e){const t=CB(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function zl(e){return La.getTopLevelUrlCompleteComponents(e)}function OB(e,t){return La.getGlobalAutocompleteComponents(e,t)}function $B(e,t,n){t=t||xB,n=n||t;const r=new lp(t,n),o=[];return ye.each(e,function(i,a){o.unshift(a),ye.each(i.globals||{},function(l,s){r.addGlobalAutocompleteRules(s,l)}),ye.each(i.endpoints||{},function(l,s){r.addEndpointDescription(s,l)})}),r.name=o.join(","),r}const Fw=new dB;Fw.start();const TB=Fw.asJson();La=$B({es:TB});const Vt={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32};class Dw{constructor(t){this.editor=t,this.MODE=Vt}getRowParseMode(t=this.editor.getCurrentPosition().lineNumber){const n=this.editor.getLineCount();if(t>n||t<1)return Vt.BETWEEN_REQUESTS;const r=this.editor.getLineState(t);if(!r)return Vt.BETWEEN_REQUESTS;if(r!=="start"&&r!=="start-sql")return Vt.IN_REQUEST;let o=(this.editor.getLineValue(t)||"").trim();return!o||o[0]==="#"?Vt.BETWEEN_REQUESTS:o.indexOf("}",o.length-1)>=0?(t++,t<n+1&&(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")===0)?Vt.MULTI_DOC_CUR_DOC_END|Vt.IN_REQUEST:Vt.REQUEST_END|Vt.MULTI_DOC_CUR_DOC_END):(t++,t>=n+1||(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")!==0)?Vt.REQUEST_START|Vt.REQUEST_END:Vt.REQUEST_START)}rowPredicate(t,n,r){return(this.getRowParseMode(t)&r)>0}isEndRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.REQUEST_END)}isRequestEdge(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.REQUEST_END|Vt.REQUEST_START)}isStartRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.REQUEST_START)}isInBetweenRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.BETWEEN_REQUESTS)}isInRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.IN_REQUEST)}isMultiDocDocEndRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Vt.MULTI_DOC_CUR_DOC_END)}isEmptyToken(t){const n=t&&t.getCurrentToken?t.getCurrentToken():t;return!n||n.type==="whitespace"}isUrlOrMethodToken(t){const n=(t==null?void 0:t.getCurrentToken())||t;return n&&n.type&&(n.type==="method"||n.type.indexOf("url")===0)}nextNonEmptyToken(t){let n=t.stepForward();for(;n&&this.isEmptyToken(n);)n=t.stepForward();return n}prevNonEmptyToken(t){let n=t.stepBackward();for(;(n||t.getCurrentPosition().lineNumber>1)&&this.isEmptyToken(n);)n=t.stepBackward();return n}}function PB(e){return!(e==="_all"||e[0]!=="_")}class RB extends kn{constructor(t,n,r){super(t,IN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ye.find(t,PB)}getDefaultTermMeta(){return"command"}getContextKey(){return"command"}}function jB(){return[new RB("command",null,!0)]}let pr=null;function cp(e){switch((e||{}).type){case"url.param":case"url.equal":case"url.value":case"url.questionmark":case"url.amp":return!0;default:return!1}}function ql(e,t,n,r){const o=Co({editor:e,position:t}),i=t;let a=[];const l={};l.tokensLineCache=o.tokensLineCache;const s={looking_for_key:0,looking_for_scope_start:1,start:3};let c=s.start,u=o.getCurrentToken();l.token=u,u?i.column===1&&(u=o.stepBackward(),c=s.looking_for_scope_start):i.column===1&&(u=o.stepBackward(),c=s.start);let f=!1;for(;u&&u.type.indexOf("url")===-1&&u.type!=="method";u=o.stepBackward())switch(u.type!=="whitespace"&&(f=!0),u.type){case"variable":c===s.looking_for_key&&a.unshift(u.value.trim().replace(/"/g,"")),c=s.looking_for_scope_start;break;case"paren.lparen":a.unshift(u.value),c===s.looking_for_scope_start&&(c=s.looking_for_key);break;case"paren.rparen":c=s.looking_for_scope_start;let y=1;for(u=o.stepBackward();u&&y>0;){switch(u.type){case"paren.lparen":y--;break;case"paren.rparen":y++;break}y>0&&(u=o.stepBackward())}if(!u)return{};continue;case"punctuation.end_triple_quote":for(c=s.looking_for_scope_start,u=o.stepBackward();u;u=o.stepBackward())if(u.type==="punctuation.start_triple_quote"){u=o.stepBackward();break}if(!u)return{};continue;case"punctuation.start_triple_quote":c===s.start?c=s.looking_for_key:c===s.looking_for_key&&(c=s.looking_for_scope_start),a.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":c===s.start?c=s.looking_for_key:c===s.looking_for_key&&(c=s.looking_for_scope_start);break;case"punctuation.comma":c===s.start&&(c=s.looking_for_scope_start);break;case"punctuation.colon":case"whitespace":c===s.start&&(c=s.looking_for_key);break}if(f&&(!a||a.length===0)&&!r)return{};if(l.urlTokenPath=[],o.getCurrentPosition().lineNumber===i.lineNumber){if(u&&(u.type==="url.part"||u.type==="url.param"||u.type==="url.value")||u.type==="url.select_keyword")if(r&&(u.type==="url.part"||u.type==="url.select_keyword")&&(l.urlTokenPath.push(u.value),l.urlTokenPath.push(zd)),u=o.stepBackward(),u.type==="whitespace")for(;u.type==="whitespace";)u=o.stepBackward();else for(;u.value.trim()==="";)u=o.stepBackward();a=null}l.bodyTokenPath=a,l.urlParamsTokenPath=null,l.requestStartRow=o.getCurrentPosition().lineNumber;let d;for(;u&&cp(u);){switch(u.type){case"url.value":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.param":const y=d;d={},d[u.value]=y;break;case"url.amp":case"url.questionmark":l.urlParamsTokenPath||(l.urlParamsTokenPath=[]),l.urlParamsTokenPath.unshift(d||{}),d=null;break}u=o.stepBackward()}for(d=null;u&&u.type.indexOf("url")!==-1;){switch(u.type){case"url.select_keyword":case"url.part":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.slash":d&&(l.urlTokenPath.unshift(d),d=null);break}for(u=n.prevNonEmptyToken(o);u.value.trim()==="";)u=n.prevNonEmptyToken(o)}return d&&l.urlTokenPath.unshift(d),!l.bodyTokenPath&&!l.urlParamsTokenPath?l.urlTokenPath.length>0&&(l.otherTokenValues=l.urlTokenPath[0]):l.urlTokenPath.push(zd),u&&u.type==="method"&&(l.method=u.value),l}function Bw(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function Vl(e,t,n){return ye.map(e,function(r){return typeof r!="object"&&(r={name:r}),ye.defaults(r,{meta:t,template:n})})}function MB({coreEditor:e}){const t=new Dw(e);function n(p){const m=p.context;i(m,e.getCurrentPosition(),p.insertValue);let g;m.autoCompleteType==="body"?(g=typeof p.insertValue=="string"?'"'+p.insertValue+'"':p.insertValue+"",(p.insertValue==="["||p.insertValue==="{")&&(g="")):g=p.insertValue+"";let b=g,C=!1;if(m.addTemplate&&!ye.isUndefined(p.template)&&!ye.isNull(p.template)){let O;p.template.__raw&&p.template.value?O=p.template.value.split(`
|
|
272
|
+
`):O=Jy(p.template,!0).split(`
|
|
273
|
+
`);let R=e.getLineValue(m.rangeToReplace.start.lineNumber);R=R.match(/^\s*/)[0];for(let N=1;N<O.length;N++)O[N]=R+O[N];b+=": "+O.join(`
|
|
274
|
+
`),C=!0}else C=!0,p.value==="["?b+="[]":p.value==="{"?b+="{}":C=!1;b=m.prefixToAdd+b+m.suffixToAdd,e.off("changeSelection",h),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,b):e.insert(b),e.clearSelection();let S={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+g.length+m.prefixToAdd.length+(C?0:m.suffixToAdd.length)};const w=Co({editor:e,position:S});if(m.autoCompleteType==="body"){let O=t.nextNonEmptyToken(w);switch(O?O.type:"NOTOKEN"){case"paren.rparen":S=w.getCurrentPosition();break;case"punctuation.colon":O=t.nextNonEmptyToken(w),(O||{}).type==="paren.lparen"&&(O=t.nextNonEmptyToken(w),S=w.getCurrentPosition(),O&&O.value.indexOf('"')===0&&S.column++);break;case"paren.lparen":case"punctuation.comma":w.stepForward(),S=w.getCurrentPosition();break}e.moveCursorToPosition(S)}e.on("changeSelection",h)}function r(p,m){const g={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:p};switch(g.autoCompleteType=o(m),g.autoCompleteType){case"path":d(g,m);break;case"url_params":y(g,m);break;case"method":f(g);break;case"body":x(g,m);break;default:return null}return g.autoCompleteSet?(i(g,m),g.createdWithToken=ye.clone(g.updatedForToken),g):null}function o(p){let m=t.getRowParseMode();if(m&t.MODE.IN_REQUEST)return"body";if(m&t.MODE.REQUEST_START){const g=Co({editor:e,position:p});let b=g.getCurrentToken();for(;b.type==="url.comma";)b=g.stepBackward();switch(b.type){case"method":return"method";case"whitespace":switch(b=t.prevNonEmptyToken(g),(b||{}).type){case"method":return"path";default:return Bw(b)?"path":cp(b)?"url_params":null}default:return Bw(b)?"path":cp(b)?"url_params":null}}return m&t.MODE.REQUEST_END?"body":e.getLineValue(p.lineNumber).trim()===""?(m=t.getRowParseMode(p.lineNumber-1),m&t.MODE.REQUEST_START&&m&t.MODE.REQUEST_END?"body":"method"):null}function i(p,m,g){p.updatedForToken=ye.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),p.updatedForToken||(p.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let b=p.createdWithToken;switch(b||(b=p.updatedForToken),p.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":p.rangeToReplace={start:{lineNumber:m.lineNumber,column:b.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0;break;default:g&&p.updatedForToken.value===g?(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:b.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0):(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:m.column},end:{lineNumber:m.lineNumber,column:m.column}},p.replacingToken=!1);break}switch(p.textBoxPosition={lineNumber:p.rangeToReplace.start.lineNumber,column:p.rangeToReplace.start.column},p.autoCompleteType){case"path":c(p);break;case"url_params":l(p);break;case"method":s(p);break;case"body":a(p);break}}function a(p){p.prefixToAdd="",p.suffixToAdd="";let m=Co({editor:e,position:e.getCurrentPosition()}),g=t.nextNonEmptyToken(m);switch(g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":p.addTemplate=!0;break;case"punctuation.colon":if(p.addTemplate=!1,g=t.nextNonEmptyToken(m),!(g&&g.value==="{")||(g=t.nextNonEmptyToken(m),!(g&&g.value==="}")))break;switch(p.addTemplate=!0,p.rangeToReplace.end.lineNumber=m.getCurrentTokenLineNumber(),p.rangeToReplace.end.column=m.getCurrentTokenColumn()+g.value.length,g=t.nextNonEmptyToken(m),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:p.suffixToAdd=", "}break;default:p.addTemplate=!0,p.suffixToAdd=", ";break}m=Co({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentToken();let b;if(p.replacingToken)b=0;else{const C=e.getCurrentPosition();C.column===p.updatedForToken.position.column?b=-1:C.column<p.updatedForToken.position.column+p.updatedForToken.value.length?b=0:b=1}switch((t.isEmptyToken(g)||b<=0)&&(g=t.prevNonEmptyToken(m)),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:g&&g.type.indexOf("url")<0&&(p.prefixToAdd=", ")}return p}function l(p){p.prefixToAdd="",p.suffixToAdd=""}function s(p){p.prefixToAdd="",p.suffixToAdd="";const m=Co({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentPosition().lineNumber,b=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==g||!b)&&(p.suffixToAdd=" ")}function c(p){p.prefixToAdd="",p.suffixToAdd=""}function u(p,m){const g=[];let b=-1;return(p||[]).forEach((C,S)=>{const w=C.value.toUpperCase();if(["FROM","JOIN"].includes(w)&&p.length>S+2&&S+2!=m){let O=p[S+2].value;O.includes("(")||(O=O.replace(/^"+/,"").replace(/"+$/,""),g.push(O),b=S)}}),{indices:g.join(","),idx:b}}function f(p){p.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((m,g)=>({name:m,score:-g,meta:"method"}))}function d(p,m){var C,S;const g=ql(e,m,t);p.method=g.method,p.token=g.token,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath;let b;if(g.method==="LOAD")b=jB();else if(g.method==="SELECT"){const w=(g.tokensLineCache||[]).findIndex(P=>P.value===g.token.value);let{indices:O,idx:R}=u(g.tokensLineCache,w);if(R>-1&&w<R){const P=$a(O);p.autoCompleteSet=Vl(P,"field");return}const N=((C=g.otherTokenValues)==null?void 0:C.length)||0;if(N>0)switch(g.otherTokenValues[N-1].toUpperCase()){case"FROM":!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],b=[new ml("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(N>1&&!g.token.value.includes("=")){O===""&&(O=g.otherTokenValues[N-2],O=O.replace(/^"+/,"").replace(/"+$/,""));const P=$a(O);p.autoCompleteSet=Vl(P,"field");return}}}else if(g.method=="FROM"){const w=(g.tokensLineCache||[]).findIndex(O=>O.value===g.token.value);if(g.tokensLineCache[w-2].value=="FROM")!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],b=[new ml("indices",null,!0)]);else{let O=g.otherTokenValues[0];O=O.replace(/^"+/,"").replace(/"+$/,"");const R=((S=g.otherTokenValues)==null?void 0:S.length)||0;let N=!0,P=null;for(let L=w-1;L>=0;L--){const z=g.tokensLineCache[L];if(P===null&&z.value.trim()!=""&&(P=z),z.type=="url.select_keyword"&&z.value.toUpperCase()!="SELECT"){N=!1;break}}switch(N&&P.value!=","&&P.value.toUpperCase()!="SELECT"&&(N=!1),g.otherTokenValues[R-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":N=!0}if(N&&!g.token.value.includes("=")){const L=$a(O);p.autoCompleteSet=Vl(L,"field");return}}}else b=zl(p.method);Ei(p.urlTokenPath,p,e,!0,b),p.autoCompleteSet=Vl(p.autoCompleteSet,"endpoint")}function y(p,m){const g=ql(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,!g.urlTokenPath||(Ei(g.urlTokenPath,p,e,!1,zl(p.method)),!p.endpoint)||!g.urlParamsTokenPath)return p;let b=[];const C=g.urlParamsTokenPath.pop();return C&&(b=Object.keys(C),p.otherTokenValues=C[b[0]]),Ei(b,p,e,!0,p.endpoint.paramsAutocomplete.getTopLevelComponents(p.method)),p}function x(p,m){const g=ql(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,p.requestStartRow=g.requestStartRow,!g.urlTokenPath||(Ei(g.urlTokenPath,p,e,!1,zl(p.method)),p.bodyTokenPath=g.bodyTokenPath,!g.bodyTokenPath))return p;p.endpointComponentResolver=EB,p.globalComponentResolver=OB;let b;return p.endpoint?b=p.endpoint.bodyAutocompleteRootComponents:b=SB(),Ei(g.bodyTokenPath,p,e,!0,b),p}const E=ye.debounce(function(m){let g=null;try{g=e.getTokenAt(m)}catch{}if(!g){if(m.lineNumber===1){pr=null;return}g={position:{column:0,lineNumber:0},value:"",type:""}}if(g.position.lineNumber=m.lineNumber,t.isEmptyToken(g)){const b=e.getTokenAt({...m,column:m.column+1});t.isEmptyToken(b)?(g.position.column=m.column,pr=g):(b.position.lineNumber=m.lineNumber,pr=b);return}if(!pr){pr=g;return}if(pr.position.column!==g.position.column||pr.position.lineNumber!==g.position.lineNumber||pr.value===g.value){pr=g;return}switch(g.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}pr=g,e.execCommand("startAutocomplete")},100);function h(){const p=e.getCurrentPosition();p&&!e.isCompleterActive()&&E(p)}function _(p,m,g){try{const b=r(e,p);if(!b)g(null,[]);else{const C=ye.map(b.autoCompleteSet.filter(S=>!!S&&S.name!=null),function(S){typeof S!="object"?S={name:S}:S=ye.clone(S);const w={value:S.name,meta:"API",score:0,context:b};return b.method==="LOAD"&&b.autoCompleteType==="path"&&(w.completer={insertMatch(){n(S),e.execCommand("exec_request")}}),b.autoCompleteType==="body"&&(w.completer={insertMatch(){return n(S)}}),ye.defaults(S,w)});C.sort(function(S,w){return S.score>w.score?-1:S.score<w.score?1:S.name<w.name?-1:S.name===w.name?0:1}),g(null,ye.map(C,function(S,w){return S.insertValue=S.insertValue||S.value,S.value=""+S.value,S.score=-w,S}))}}catch(b){console.error(b),g(b,null)}}return e.on("changeSelection",h),{getCompletions:_}}async function IB(){return(await Promise.resolve().then(()=>z6)).someFunction()}const AB={id:"sense_editor/mode/worker",src:IB},{TextHighlightRules:NB}=Ze.acequire("ace/mode/text_highlight_rules"),kB=Ze.acequire("ace/lib/oop"),up=function(){const o=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:o,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"⇐|<⇒|\\*|\\.|\\:\\:|\\+|\\-|\\/|\\/\\/|%|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};kB.inherits(up,NB);const LB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:FB}=Ze.acequire("ace/mode/text_highlight_rules"),DB="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function dp(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:DB},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}LB.inherits(dp,FB);const{JsonHighlightRules:BB}=Ze.acequire("ace/mode/json_highlight_rules"),zB=Ze.acequire("ace/lib/oop"),zw=function(e){e=e||"json";const t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",merge:!1,regex:"{",next:e,push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function qw(){const e=zw("start");this.$rules={...e},this.embedRules(dp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(up,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}zB.inherits(qw,BB);function Vw(e,t){e.$rules=ye.defaultsDeep(e.$rules,zw(t)),e.embedRules(dp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(up,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}async function qB(){return(await Promise.resolve().then(()=>mq)).someFunction()}const VB={id:"ace/mode/json_worker",src:qB},{WorkerClient:HB}=Ze.acequire("ace/worker/worker_client"),WB=Ze.acequire("ace/lib/oop"),{Mode:UB}=Ze.acequire("ace/mode/json"),{Tokenizer:GB}=Ze.acequire("ace/tokenizer"),{MatchingBraceOutdent:KB}=Ze.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:XB}=Ze.acequire("ace/mode/behaviour/cstyle"),{FoldMode:YB}=Ze.acequire("ace/mode/folding/cstyle"),Hw=function(){const t=new qw;t.normalizeRules(),this.$tokenizer=new GB(t.getRules()),this.$outdent=new KB,this.$behaviour=new XB,this.foldingRules=new YB};WB.inherits(Hw,UB),Hw.prototype.createWorker=function(e){const t=new HB(["ace"],VB,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function Gt(e,t,n,r){return typeof t=="object"&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Oi(){return[].concat.apply([],arguments)}const JB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:QB}=Ze.acequire("ace/mode/text_highlight_rules");function fp(){const e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape";this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0);const o=[e,n,t,r].join("|").split("|");let i=Gt(["url.part"],/([^?\/,\s]+)/,"start");i=i.map(a=>(a.onMatch=(l,s,c)=>o.includes(l==null?void 0:l.toLowerCase())?"url.select_keyword":a.token,a)),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Oi([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Gt(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Oi(Gt(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Gt(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Gt(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Gt(["whitespace"],/(\s+)/,"start","url")),url:Oi(Gt(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Gt(["url.comma"],/(,)/,"start"),Gt(["url.slash"],/(\/)/,"start"),Gt(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Oi(Gt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Gt(["url.param"],/([^&=]+)/,"start"),Gt(["url.amp"],/(&)/,"start")),"url-sql":Oi(Gt(["url.part"],/([^?\/,\s]+)/,"start-sql"),Gt(["url.comma"],/(,)/,"start-sql"),Gt(["url.slash"],/(\/)/,"start-sql"),Gt(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Oi(Gt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Gt(["url.param"],/([^&=]+)/,"start-sql"),Gt(["url.amp"],/(&)/,"start-sql"))},Vw(this),this.constructor===fp&&this.normalizeRules()}JB.inherits(fp,QB);const ZB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:ez}=Ze.acequire("ace/mode/text_highlight_rules"),tz="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function Ww(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:tz},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}ZB.inherits(Ww,ez);const nz=Ze.acequire("ace/lib/oop"),rz=Ze.acequire("ace/mode/text").Mode;Ze.acequire("ace/tokenizer");function pp(){}nz.inherits(pp,rz),(function(){this.HighlightRules=Ww,this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return t.match(/^.*[\{\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}).call(pp.prototype);const oz=Ze.acequire("ace/lib/oop"),iz=Ze.acequire("ace/mode/text").Mode,az=Ze.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,sz=Ze.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,lz=Ze.acequire("ace/mode/folding/cstyle").FoldMode,cz=Ze.acequire("ace/worker/worker_client").WorkerClient,uz=Ze.acequire("ace/tokenizer").Tokenizer;function hp(){this.$tokenizer=new uz(new fp().getRules()),this.$outdent=new az,this.$behaviour=new sz,this.foldingRules=new lz,this.createModeDelegates({"script-":pp})}oz.inherits(hp,iz),(function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return e!=="string_literal"&&t.match(/^.*[\{\(\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){const t=new cz(["ace","sense_editor"],AB,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",function(n){e.setAnnotations([n.data])}),t.on("ok",function(n){e.setAnnotations(n.data)}),t}}).call(hp.prototype);var Da={exports:{}};(function(){Ze.define("ace/autocomplete/text_completer",["require","exports","module"],function(n,r){r.getCompletions=function(o,i,a,l,s){s(null,[])}}),Ze.acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o,i)=>{const{coreEditor:a}=n,l={lineNumber:r.row+1,column:r.column+1};a.autocompleter(l,o,i)}}])})();const dz=Ze.acequire("ace/range").Range,Hl=({start:e,end:t})=>new dz(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class fz{constructor(t,n){this.editor=t,this.setActionsBar=(i,a="top")=>{i===null?this.$actions.css("visibility","hidden"):a==="top"?this.$actions.css({bottom:"auto",top:i,visibility:"visible"}):this.$actions.css({top:"auto",bottom:i,visibility:"visible"})},this.hideActionsBar=()=>{this.setActionsBar(null)},this.$actions=Ot(n),this.editor.setShowPrintMargin(!1),this.parser=new Dw(this),this.autocompleter=MB({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new hp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=nb(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),t.coreEditor=this}setMaxTokenCount(t){var r;(r=this.editor.getSession().getMode().getTokenizer())==null||r.$setMaxTokenCount(t)}getParser(){return this.parser}getAutocompleter(){return this.autocompleter}waitForLatestTokens(){return new Promise(t=>{const n=this.editor.getSession(),r=25,o=()=>{n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(o,r):t())};setTimeout(o,0)})}getLineState(t){return this.editor.getSession().getState(t-1)}getValueInRange(t){return this.editor.getSession().getTextRange(Hl(t))}getTokenProvider(){return new fN(this.editor.getSession())}getValue(){return this.editor.getValue()}async setValue(t,n){this.editor.getSession().setValue(t),n&&await this.forceRetokenize()}getLineValue(t){return this.editor.getSession().getLine(t-1)}getCurrentPosition(){const t=this.editor.getCursorPosition();return{lineNumber:t.row+1,column:t.column+1}}clearSelection(){this.editor.clearSelection()}getTokenAt(t){return this.getTokenProvider().getTokenAt(t)}insert(t,n){if(typeof t=="string"){this.editor.insert(t);return}this.editor.getSession().getDocument().insert({column:t.column-1,row:t.lineNumber-1},n||"")}moveCursorToPosition(t){this.editor.moveCursorToPosition({row:t.lineNumber-1,column:t.column-1})}replace(t,n){this.editor.getSession().replace(Hl(t),n)}getLines(t,n){return this.editor.getSession().getLines(t-1,n-1)}replaceRange(t,n){const r=this.editor.getCursorPosition();this.editor.getSession().replace(Hl(t),n);const o=Math.max(t.start.lineNumber-1+n.split(`
|
|
275
|
+
`).length-1,1);r.row=Math.min(r.row,o),this.editor.moveCursorToPosition(r),this.editor.clearSelection()}getSelectionRange(){const t=this.editor.getSelectionRange();return{start:{lineNumber:t.start.row+1,column:t.start.column+1},end:{lineNumber:t.end.row+1,column:t.end.column+1}}}getLineCount(){return this.editor.getSession().getLength()}addMarker(t){return this.editor.getSession().addMarker(Hl(t),"ace_snippet-marker","fullLine",!1)}removeMarker(t){this.editor.getSession().removeMarker(t)}getWrapLimit(){return this.editor.getSession().getWrapLimit()}on(t,n){t==="changeCursor"?this.editor.getSession().selection.on(t,n):t==="changeSelection"?this.editor.on(t,n):this.editor.getSession().on(t,n)}off(t,n){t==="changeSelection"&&this.editor.off(t,n)}isCompleterActive(){return!!(this.editor.completer&&this.editor.completer.activated)}forceRetokenize(){const t=this.editor.getSession();return new Promise(n=>{setTimeout(function(){let r;for(r=0;r<t.getLength();r++)t.getTokens(r);n()})})}DO_NOT_USE_onPaste(t){if(t&&hN(t)){const n=mN(t);this.editor.insert(n);return}this._aceOnPaste.call(this.editor,t)}execCommand(t){this.editor.execCommand(t)}getContainer(){return this.editor.container}setStyles(t){this.editor.getSession().setUseWrapMode(t.wrapLines),this.editor.container.style.fontSize=t.fontSize}registerKeyboardShortcut(t){this.editor.commands.addCommand({exec:t.fn,name:t.name,bindKey:t.keys})}legacyUpdateUI(t){if(this.$actions&&t){const n=Ot(this.editor.container).offset().top,r=t.start.lineNumber,o=t.start.column,i=this.getLineValue(r),a=this.getWrapLimit()-5,l=i.length>a,s=n-(window.pageYOffset||0),c=d=>this.editor.renderer.textToScreenCoordinates(d-1,o).pageY-s,u=c(r);if(u>=0){const{bottom:d}=this.editor.container.getBoundingClientRect();if(u>d-s){this.setActionsBar(0,"bottom");return}let y=0;if(l){const x=Ot(this.editor.container.querySelector("textArea")),E=this.getLineValue(r).length<a;if(x&&E)y+=this.getLineValue(r).length*x.height();else{if(r>1){this.setActionsBar(c(r-1));return}this.setActionsBar(c(r+1));return}}this.setActionsBar(u+y);return}if(this.editor.renderer.textToScreenCoordinates(t.end.lineNumber,t.end.column).pageY-n>=0){this.setActionsBar(0);return}}}registerAutocompleter(t){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o)=>{const i={lineNumber:n.row+1,column:n.column+1};t(i,r,o)}}])}destroy(){this.editor.destroy()}}(Da.exports==null?{}:Da.exports).default||Da.exports,(Da.exports==null?{}:Da.exports).getCompletions;const pz=Ze.acequire("ace/lib/oop"),hz=Ze.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function mp(){this.$rules={},Vw(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===mp&&this.normalizeRules()}pz.inherits(mp,hz);const mz=Ze.acequire("ace/lib/oop"),gz=Ze.acequire("ace/mode/json").Mode,vz=Ze.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,_z=Ze.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,yz=Ze.acequire("ace/mode/folding/cstyle").FoldMode;Ze.acequire("ace/worker/worker_client");const bz=Ze.acequire("ace/tokenizer").Tokenizer;function gp(){this.$tokenizer=new bz(new mp().getRules()),this.$outdent=new vz,this.$behaviour=new _z,this.foldingRules=new yz}mz.inherits(gp,gz),(function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}).call(gp.prototype);function wz(e){const t=Ze.acequire("ace/ace").edit(e),n=new gp;return t.$blockScrolling=1/0,t.resize=nb(t),t.update=(r,o,i)=>{typeof o=="function"&&(i=o,o=void 0);const a=t.getSession();a.setMode(r?o||n:"ace/mode/text"),a.setValue(r),typeof i=="function"&&setTimeout(i)},t.append=(r,o,i)=>{typeof o=="function"&&(i=o,o=!0),ye.isUndefined(o)&&(o=!0);const a=t.getSession(),l=a.getLength();o&&t.moveCursorTo(Math.max(0,l-1),0),a.insert({row:l,column:0},`
|
|
276
|
+
`+r),t.moveCursorTo(l+1,0),typeof i=="function"&&setTimeout(i)},function(o){o.setMode("ace/mode/text"),o.setFoldStyle("markbeginend"),o.setTabSize(2),o.setUseWrapMode(!0)}(t.getSession()),t.setShowPrintMargin(!1),t.setReadOnly(!0),t}const xz=({value:e=[],onChange:t})=>{const[n,r]=M.useState(!1),[o,i]=M.useState(""),a=u=>{i(u.target.value)},l=()=>{r(!0)},s=M.useCallback(u=>{if(u.target.value.length==0)return Vy.warning(fe.jsx(nn.FormattedMessage,{id:"command.message.invalid.tag"}));t&&t([...e||[],u.target.value]),r(!1),i("")},[e,t]),c=M.useCallback(u=>{const f=[...e];f.splice(u,1),t&&t(f)},[e,t]);return fe.jsxs("div",{children:[e.map((u,f)=>fe.jsx(cl,{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:()=>c(f),children:u},f)),n&&fe.jsx(xo,{value:o,onChange:a,style:{width:100},onBlur:s,onPressEnter:s}),!n&&fe.jsxs(cl,{onClick:l,style:{padding:"0 5px",fontSize:14},children:[fe.jsx(gn.PlusOutlined,{})," ",fe.jsx(nn.FormattedMessage,{id:"command.btn.newtag"})]})]})},Sz=e=>{const[t]=In.useForm(),n=async()=>{try{const r=await t.validateFields();e.onConfirm(r)}catch(r){console.error(r)}};return fe.jsx(Nn,{title:fe.jsx(nn.FormattedMessage,{id:"command.manage.save.title"}),open:!0,onCancel:e.onClose,onOk:n,zIndex:1003,cancelText:fe.jsx(nn.FormattedMessage,{id:"form.button.cancel"}),okText:fe.jsx(nn.FormattedMessage,{id:"form.button.save"}),children:fe.jsxs(In,{layout:"vertical",children:[fe.jsx(In.Item,{name:"title",label:fe.jsx(nn.FormattedMessage,{id:"command.table.field.name"}),rules:[{required:!0,message:"请输入标题"}],children:fe.jsx(xo,{})}),fe.jsx(In.Item,{name:"tag",label:fe.jsx(nn.FormattedMessage,{id:"command.table.field.tag"}),children:fe.jsx(xz,{})})]})})};class Cz extends M.Component{constructor(t){super(t),this.mouseEnter=()=>{this.state.isPopoverOpen||this.props.getCurl().then(n=>{this.setState({curlCode:n})})},this.onButtonClick=()=>{this.setState(n=>({isPopoverOpen:!n.isPopoverOpen}))},this.closePopover=()=>{this.setState({isPopoverOpen:!1})},this.openDocs=async()=>{this.closePopover();const n=await this.props.getDocumentation();n&&window.open(n,"_blank")},this.autoIndent=n=>{this.closePopover(),this.props.autoIndent(n)},this.saveAsCommonCommand=()=>{this.setState({isPopoverOpen:!1,modalVisible:!0})},this.handleClose=()=>{this.setState({modalVisible:!1})},this.handleConfirm=async n=>{var a,l;const r=await this.props.saveAsCommonCommand(),o={...n,requests:r},i=await((a=await sN(o))==null?void 0:a.json());i.error?Oa.error({message:((l=i.error)==null?void 0:l.reason)||i.error}):(this.handleClose(),Oa.success({message:fe.jsx(nn.FormattedMessage,{id:"app.message.save.success"})}),MN(i))},this.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1}}async copyAsCurl(){try{await this.copyText(this.state.curlCode),Oa.open({message:"Request copied as cURL",placement:"bottomRight"})}catch(t){console.error(t),Oa.error({message:"Could not copy request as cURL",placement:"bottomRight"})}}async copyText(t){var n;if((n=window.navigator)!=null&&n.clipboard){await window.navigator.clipboard.writeText(t);return}throw new Error("Could not copy to clipboard!")}render(){var t,n;return fe.jsxs("span",{onMouseEnter:this.mouseEnter,children:[fe.jsx(dd,{id:"contextMenu",open:this.state.isPopoverOpen,placement:"bottomLeft",content:fe.jsxs("div",{children:[(t=window.navigator)!=null&&t.clipboard?fe.jsx("div",{children:fe.jsx(cr,{type:"text",id:"ConCopyAsCurl",disabled:!((n=window.navigator)!=null&&n.clipboard),onClick:()=>{this.closePopover(),this.copyAsCurl()},children:fe.jsx(nn.FormattedMessage,{id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,fe.jsx("div",{children:fe.jsx(cr,{type:"text",onClick:this.autoIndent,children:fe.jsx(nn.FormattedMessage,{id:"console.menu.auto_indent"})},"Auto indent")}),fe.jsx("div",{children:fe.jsx(cr,{type:"text",onClick:this.saveAsCommonCommand,children:fe.jsx(nn.FormattedMessage,{id:"console.menu.save_as_command"})},"Save as common command")})]}),children:fe.jsx("button",{className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick,children:fe.jsx(gn.SettingOutlined,{})})}),this.state.modalVisible&&fe.jsx(Sz,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})}}function Ez(e,t,n){const r=e.getLineValue(t.lineNumber),o={...ql(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)},i=zl(o.method);return Ei(o.urlTokenPath,o,e,!0,i),o.endpoint}async function Oz(e,t){t.preventDefault(),await e.autoIndent(),e.getCoreEditor().getContainer().focus()}function $z(e,t){return e.getRequestsInRange().then(n=>{if(!n||n.length===0)return null;const r=n[0].range.end;r.column=r.column-1;const o=Ez(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&o.documentation.indexOf("http")!==-1?o.documentation.replace("/master/",`/${t}/`).replace("/current/",`/${t}/`):null})}const Wl=(e,t)=>()=>{const n=M.useContext(e);if(!n)throw new Error(`${t} should be used inside of ${t}Provider!`);return n};var vp={};(function(e){var t=vt&&vt.__spreadArray||function(S,w,O){if(O||arguments.length===2)for(var R=0,N=w.length,P;R<N;R++)(P||!(R in w))&&(P||(P=Array.prototype.slice.call(w,0,R)),P[R]=w[R]);return S.concat(P||Array.prototype.slice.call(w))};Object.defineProperty(e,"__esModule",{value:!0}),e.dual=e.getEndomorphismMonoid=e.SK=e.hole=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.unsafeCoerce=e.apply=e.getRing=e.getSemiring=e.getMonoid=e.getSemigroup=e.getBooleanAlgebra=void 0,e.identity=s,e.constant=c,e.flip=u,e.flow=f,e.tuple=d,e.increment=y,e.decrement=x,e.absurd=E,e.tupled=h,e.untupled=_,e.pipe=p,e.not=g;var n=function(S){return function(){return{meet:function(w,O){return function(R){return S.meet(w(R),O(R))}},join:function(w,O){return function(R){return S.join(w(R),O(R))}},zero:function(){return S.zero},one:function(){return S.one},implies:function(w,O){return function(R){return S.implies(w(R),O(R))}},not:function(w){return function(O){return S.not(w(O))}}}}};e.getBooleanAlgebra=n;var r=function(S){return function(){return{concat:function(w,O){return function(R){return S.concat(w(R),O(R))}}}}};e.getSemigroup=r;var o=function(S){var w=(0,e.getSemigroup)(S);return function(){return{concat:w().concat,empty:function(){return S.empty}}}};e.getMonoid=o;var i=function(S){return{add:function(w,O){return function(R){return S.add(w(R),O(R))}},zero:function(){return S.zero},mul:function(w,O){return function(R){return S.mul(w(R),O(R))}},one:function(){return S.one}}};e.getSemiring=i;var a=function(S){var w=(0,e.getSemiring)(S);return{add:w.add,mul:w.mul,one:w.one,zero:w.zero,sub:function(O,R){return function(N){return S.sub(O(N),R(N))}}}};e.getRing=a;var l=function(S){return function(w){return w(S)}};e.apply=l;function s(S){return S}e.unsafeCoerce=s;function c(S){return function(){return S}}e.constTrue=c(!0),e.constFalse=c(!1),e.constNull=c(null),e.constUndefined=c(void 0),e.constVoid=e.constUndefined;function u(S){return function(){for(var w=[],O=0;O<arguments.length;O++)w[O]=arguments[O];return w.length>1?S(w[1],w[0]):function(R){return S(R)(w[0])}}}function f(S,w,O,R,N,P,L,z,J){switch(arguments.length){case 1:return S;case 2:return function(){return w(S.apply(this,arguments))};case 3:return function(){return O(w(S.apply(this,arguments)))};case 4:return function(){return R(O(w(S.apply(this,arguments))))};case 5:return function(){return N(R(O(w(S.apply(this,arguments)))))};case 6:return function(){return P(N(R(O(w(S.apply(this,arguments))))))};case 7:return function(){return L(P(N(R(O(w(S.apply(this,arguments)))))))};case 8:return function(){return z(L(P(N(R(O(w(S.apply(this,arguments))))))))};case 9:return function(){return J(z(L(P(N(R(O(w(S.apply(this,arguments)))))))))}}}function d(){for(var S=[],w=0;w<arguments.length;w++)S[w]=arguments[w];return S}function y(S){return S+1}function x(S){return S-1}function E(S){throw new Error("Called `absurd` function which should be uncallable")}function h(S){return function(w){return S.apply(void 0,w)}}function _(S){return function(){for(var w=[],O=0;O<arguments.length;O++)w[O]=arguments[O];return S(w)}}function p(S,w,O,R,N,P,L,z,J){switch(arguments.length){case 1:return S;case 2:return w(S);case 3:return O(w(S));case 4:return R(O(w(S)));case 5:return N(R(O(w(S))));case 6:return P(N(R(O(w(S)))));case 7:return L(P(N(R(O(w(S))))));case 8:return z(L(P(N(R(O(w(S)))))));case 9:return J(z(L(P(N(R(O(w(S))))))));default:{for(var X=arguments[0],j=1;j<arguments.length;j++)X=arguments[j](X);return X}}}e.hole=E;var m=function(S,w){return w};e.SK=m;function g(S){return function(w){return!S(w)}}var b=function(){return{concat:function(S,w){return f(S,w)},empty:s}};e.getEndomorphismMonoid=b;var C=function(S,w){var O=typeof S=="number"?function(R){return R.length>=S}:S;return function(){var R=Array.from(arguments);return O(arguments)?w.apply(this,R):function(N){return w.apply(void 0,t([N],R,!1))}}};e.dual=C})(vp);const _p={data:null,type:"unknown"},Uw=Wa.produce({requestInFlight:!1,lastResult:_p},vp.identity),Tz=(e,t)=>Wa.produce(e,n=>{if(t.type==="sendRequest"){n.requestInFlight=!0,n.lastResult=_p;return}if(t.type==="requestSuccess"){n.requestInFlight=!1,n.lastResult=t.payload;return}if(t.type==="requestFail"){n.requestInFlight=!1,n.lastResult={..._p,error:t.payload};return}}),Gw=M.createContext(Uw),Kw=M.createContext(()=>{});function Pz({children:e}){const[t,n]=M.useReducer(Tz,Uw);return fe.jsx(Gw.Provider,{value:t,children:fe.jsx(Kw.Provider,{value:n,children:e})})}const Xw=Wl(Gw,"RequestReadContext"),Rz=Wl(Kw,"RequestActionContext"),Yw=M.createContext(null);function jz({children:e,value:t}){return fe.jsx(Yw.Provider,{value:t,children:e})}const yp=()=>{const e=M.useContext(Yw);if(e==null)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},Jw=Wa.produce({ready:!1,currentTextObject:null,sensorEditor:null},vp.identity),Mz=(e,t)=>Wa.produce(e,n=>{if(t.type==="setInputEditor"){t.payload&&(n.ready=!0,n.sensorEditor=t.payload);return}if(t.type==="setCurrentTextObject"){n.currentTextObject=t.payload;return}return n}),Qw=M.createContext(Jw),Zw=M.createContext(()=>{});function Iz({children:e}){const[t,n]=M.useReducer(Mz,Jw,r=>({...r}));return fe.jsx(Qw.Provider,{value:t,children:fe.jsx(Zw.Provider,{value:n,children:e})})}const ex=Wl(Qw,"EditorReadContext"),Az=Wl(Zw,"EditorActionContext");function Nz(e){const{requests:t}=e._source;return t.map(r=>{const{method:o,path:i,body:a}=r;return["LOAD","FROM","SELECT"].includes((o||"").toUpperCase())?a:`${o} ${i}
|
|
277
|
+
${a}`}).join(`
|
|
278
|
+
`)}const tx=e=>{const t=Rz(),{clusterID:n}=yp(),{sensorEditor:r}=ex();return M.useCallback(async()=>{let o="";try{if(!r)return;const i=await r.getRequestsInRange();if(!i.length){console.info("No request selected. Select a request by placing the cursor inside it.");return}for(let l=0;l<i.length;l++){const{url:s,method:c,data:u}=i[l];switch(c==null?void 0:c.toUpperCase()){case"LOAD":o="LOAD";const f=u[0]?u[0].slice(4).trim():s,d=AN(f),y=r.getCoreEditor().getCurrentPosition().lineNumber,x=await r.getRequestRange(y),E=Nz(d);await r.getCoreEditor().replaceRange(x,E);continue;case"CONFIG":const h=s;let _=0;if(u&&u.length>0){const O=u[0].split(" ");if(O.length>=3&&(_=parseInt(O[2]),isNaN(_))){t({type:"requestSuccess",payload:{data:{success:!1,error:"wrong config value: "+O[2]}}});continue}}h=="MaxTokenCount"&&localStorage.setItem("editor:"+h,_+""),t({type:"requestSuccess",payload:{data:{success:!0}}});continue;case"FROM":i[l].url="_sql",i[l].method="POST",i[l].rawRequest=i[l].data[0];let p=i[l].data[0]||"";const m=p.search(/\s+(select)\s+/i);if(m==-1){const w=Error("invalid FROM request");throw w.name="FRONT_ERROR",w}const g=p.slice(0,m);p=p.slice(m);const b=p.search(/\s+(order|where|limit)\s+/i);b>-1?p=p.slice(0,b)+" "+g+p.slice(b):p=p+" "+g;let C={query:p.trim()};i[l].data[0]=JSON.stringify(C);break;case"SELECT":i[l].url="_sql",i[l].method="POST",i[l].rawRequest=i[l].data[0];let S={query:i[l].data[0]};i[l].data[0]=JSON.stringify(S);break}}t({type:"sendRequest",payload:void 0});const a=await e({requests:i,clusterID:n});t({type:"requestSuccess",payload:{data:a}})}catch(i){if(o==="LOAD")return;if(i){let a={data:[i]};i.name==="FRONT_ERROR"&&(a={data:[{response:{value:(i==null?void 0:i.message)||i,contentType:"plain/text"}}]}),t({type:"requestSuccess",payload:a})}else t({type:"requestFail",payload:void 0})}},[t,n,r])},kz=()=>{const e=Az();return M.useCallback(t=>{e({type:"setInputEditor",payload:t})},[e])},Lz=500,Fz=()=>{const e=M.useRef(Promise.resolve()),{services:{objectStorageClient:t}}=yp(),{currentTextObject:n}=ex();return M.useCallback(ye.throttle(r=>{const{current:o}=e;n&&o.finally(()=>t.text.update({...n,text:r,updatedAt:Date.now()}))},Lz,{trailing:!0}),[t,n])};function nx(e,t){e.setStyles?e.setStyles({wrapLines:t.wrapMode,fontSize:t.fontSize+"px"}):(e.getSession().setUseWrapMode(t.wrapMode),e.container.style.fontSize=t.fontSize+"px")}function bp(e){return[e.clientWidth,e.clientHeight]}class Dz extends Qd.EventEmitter{constructor(t,n={}){super(),this.destroyed=!1,this.expectedSize=null,this.el=t,this.observer=new Op(()=>{if(this.expectedSize){const r=ye.isEqual(bp(t),this.expectedSize);if(this.expectedSize=null,r)return}this.emit("resize")}),n.disabled||this.enable()}enable(){this.destroyed||(this.expectedSize=bp(this.el),this.observer.observe(this.el))}modifySizeWithoutTriggeringResize(t){try{t()}finally{this.el&&(this.expectedSize=bp(this.el))}}destroy(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())}}function rx(e,...t){const n=new Dz(e);return n.on("resize",()=>t.forEach(r=>{r.getCoreEditor?r.getCoreEditor().resize():r.resize(),r.updateActionsBar&&r.updateActionsBar()})),()=>n.destroy()}const Bz={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},zz=e=>{const t=Fz(),{saveCurrentTextObjectRef:n,sendRequestToES:r}=e,o=tx(r);return M.useEffect(()=>{n.current=t},[n,t]),fe.jsx(Vr,{title:fe.jsx(nn.FormattedMessage,{id:"console.SendRequestButton.ToolTip"}),children:fe.jsx("button",{"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:o,children:fe.jsx(gn.PlayCircleOutlined,{})})})},qz=`GET _search
|
|
279
|
+
{
|
|
280
|
+
"query": {
|
|
281
|
+
"match_all": {}
|
|
282
|
+
}
|
|
283
|
+
}`,Vz=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var _;const{id:i,endpoint:a}=e,l=M.useRef(null),s=M.useRef(null),c=M.useRef(null),u=kz(),f=M.useRef(null),d=M.useRef(null),y=M.useRef(()=>{}),x=M.useRef(()=>{});y.current=tx(o);const{services:{settings:E}}=yp();M.useEffect(()=>{const p=Ze.edit(l.current);d.current=p;const m=new fz(p,s.current);p.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{y.current(),p.execCommand("iSearch")}});const g=new lN(m);c.current=g,u(g),g.paneKey=r,g.update(t||qz),nx(g.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function b(){let w;g.getCoreEditor().on("change",()=>{w&&clearTimeout(w),w=window.setTimeout(C,500)})}function C(){try{const w=g.getCoreEditor().getValue();n(w)}catch(w){console.error(w)}}const S=rx(l.current,g);return b(),()=>{S(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),M.useEffect(()=>{i&&(sb(E,E.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const h=async()=>{const p=c.current;if(p==null){console.warn("editor is null");return}const m=await p.getRequestsInRange();return m==null?void 0:m.map(b=>({method:b.method,path:b.url,body:(b.data||[]).join(`
|
|
284
|
+
`)}))};return fe.jsx("div",{style:{...Bz,height:"100%"},"data-test-subj":"console-application",className:"conApp",children:fe.jsxs("div",{className:"conApp__editor",children:[fe.jsx("ul",{className:"conApp__autoComplete",id:"autocomplete"}),fe.jsxs("div",{className:"conApp__editorActions",id:"ConAppEditorActions",ref:s,children:[fe.jsx(zz,{saveCurrentTextObjectRef:x,sendRequestToES:o}),fe.jsx(Cz,{getCurl:()=>c.current.getRequestsAsCURL(a),getDocumentation:()=>$z(c.current,""),autoIndent:p=>{Oz(c.current,p)},saveAsCommonCommand:h,ref:f})]}),fe.jsx("div",{ref:l,id:`Editor_${(_=c.current)==null?void 0:_.paneKey}`,className:"conApp__editorContent","data-test-subj":"request-editor",onClick:()=>{var p,m;(p=f.current)==null||p.closePopover(),(m=d.current)==null||m.focus()}})]})})};ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w.*?)(:(?=\s|$))/},{token:["meta.tag","keyword"],regex:/(\w+?)(\s*:(?=\s|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:/[|>][-+\d\s]*$/,onMatch:function(a,l,s,c){var u=/^\s*/.exec(c)[0];return s.length<1?s.push(this.next):s[0]="mlString",s.length<2?s.push(u.length):s[1]=u.length,this.token},next:"mlString"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:/[^\s,:\[\]\{\}]+/}],mlString:[{token:"indent",regex:/^\s*$/},{token:"indent",regex:/^\s*/,onMatch:function(a,l,s){var c=s[1];return c>=a.length?(this.next="start",s.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};r.inherits(i,o),t.YamlHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),o=e("./fold_mode").FoldMode,i=e("../../range").Range,a=t.FoldMode=function(){};r.inherits(a,o),(function(){this.getFoldWidgetRange=function(l,s,c){var u=this.indentationBlock(l,c);if(u)return u;var f=/\S/,d=l.getLine(c),y=d.search(f);if(!(y==-1||d[y]!="#")){for(var x=d.length,E=l.getLength(),h=c,_=c;++c<E;){d=l.getLine(c);var p=d.search(f);if(p!=-1){if(d[p]!="#")break;_=c}}if(_>h){var m=l.getLine(_).length;return new i(h,x,_,m)}}},this.getFoldWidget=function(l,s,c){var u=l.getLine(c),f=u.search(/\S/),d=l.getLine(c+1),y=l.getLine(c-1),x=y.search(/\S/),E=d.search(/\S/);if(f==-1)return l.foldWidgets[c-1]=x!=-1&&x<E?"start":"","";if(x==-1){if(f==E&&u[f]=="#"&&d[f]=="#")return l.foldWidgets[c-1]="",l.foldWidgets[c+1]="","start"}else if(x==f&&u[f]=="#"&&y[f]=="#"&&l.getLine(c-2).search(/\S/)==-1)return l.foldWidgets[c-1]="start",l.foldWidgets[c+1]="","";return x!=-1&&x<f?l.foldWidgets[c-1]="start":l.foldWidgets[c-1]="",f<E?"start":""}}).call(a.prototype)}),ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/coffee"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./yaml_highlight_rules").YamlHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./folding/coffee").FoldMode,s=function(){this.HighlightRules=i,this.$outdent=new a,this.foldingRules=new l,this.$behaviour=this.$defaultBehaviour};r.inherits(s,o),(function(){this.lineCommentStart=["#","//"],this.getNextLineIndent=function(c,u,f){var d=this.$getIndent(u);if(c=="start"){var y=u.match(/^.*[\{\(\[]\s*$/);y&&(d+=f)}return d},this.checkOutdent=function(c,u,f){return this.$outdent.checkOutdent(u,f)},this.autoOutdent=function(c,u,f){this.$outdent.autoOutdent(u,f)},this.$id="ace/mode/yaml"}).call(s.prototype),t.Mode=s});const ox=e=>!!(e&&e.indexOf("application/json")>=0);function Hz(e){return e?ox(e)?"ace/mode/json":e.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text"}function Wz({clusterID:e}){const t=M.useRef(null),n=M.useRef(null),r="ConAppOutputTextarea",{lastResult:{data:o,error:i}}=Xw();return M.useEffect(()=>{var a;(a=n.current)==null||a.setValue("")},[e]),M.useEffect(()=>{n.current=wz(t.current);const a=t.current.querySelector("textarea");a.setAttribute("id",r),a.setAttribute("readonly","true"),nx(n.current,{fontSize:12,wrapMode:!0});const l=rx(t.current,n.current);return()=>{l(),n.current.destroy()}},[]),M.useEffect(()=>{var l;const a=n.current;if(o){if(!o.length){a.update(JSON.stringify(o,null,2),"ace/mode/json");return}a.update(o.map(s=>{const{value:c,contentType:u}=s.response;if(ox(u)){let f="",d=c;if(d=="")return"";try{let y="";if(d[0]=="#"){const x=d.indexOf(`
|
|
285
|
+
`);f=d.slice(0,x),d=d.slice(x),y=f+`
|
|
286
|
+
`+JSON.stringify(JSON.parse(d),null,2)}else y=JSON.stringify(JSON.parse(d),null,2);return y}catch(y){console.error(y)}}return c}).join(`
|
|
287
|
+
`))}else if(i){const s=Hz((l=i.response)==null?void 0:l.contentType);if(s=="ace/mode/json"){a.update(JSON.stringify(JSON.parse(i.response.value),null,2),s);return}a.update(i.response.value,s)}else a.update("")},[o,i]),fe.jsx("div",{ref:t,className:"conApp__outputContent","data-test-subj":"response-editor",children:fe.jsx("div",{id:"ConAppOutput"})})}class wp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const ix=M.createContext({registry:new wp});function ax({children:e,registry:t}){return fe.jsx(ix.Provider,{value:{registry:t},children:e})}const Uz=()=>{const e=M.useContext(ix);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function sx({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=M.useState(`${n}%`),{registry:a}=Uz(),l=M.useRef(null);return M.useEffect(()=>{a.registerPanel({width:n,setWidth(s){i(s+"%"),this.width=s},getWidth(){return l.current.getBoundingClientRect().width}})},[n,a]),fe.jsx("div",{className:t,ref:l,style:{...r,width:o,display:"flex"},children:e})}function Gz(e){return fe.jsx("button",{...e,children:fe.jsx(gn.PauseOutlined,{})})}const lx={isDragging:!1,currentResizerPos:-1},cx=(e,t)=>e/t*100,Kz=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=M.Children.toArray(e),[i,a]=o,l=M.useRef(new wp),s=M.useRef(null),[c,u]=M.useState(lx),f=()=>s.current.getBoundingClientRect().width,d=M.useCallback(E=>{u({...c,isDragging:!0,currentResizerPos:E.clientX})},[c]),y=M.useCallback(E=>{const{key:h}=E;if(h==="ArrowLeft"||h==="ArrowRight"){E.preventDefault();const{current:_}=l,[p,m]=_.getPanels(),g=p.width-(h==="ArrowLeft"?1:-1),b=m.width-(h==="ArrowRight"?1:-1);p.setWidth(g),m.setWidth(b),n&&n([g,b])}},[n]);M.useEffect(()=>{var E;((E=ne==null?void 0:ne.env)==null?void 0:E.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const x=[i,fe.jsx(Gz,{className:r,onKeyDown:y,onMouseDown:d},"resizer"),a];return fe.jsx(ax,{registry:l.current,children:fe.jsx("div",{className:t,ref:s,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:E=>{if(c.isDragging){const{clientX:h}=E,{current:_}=l,[p,m]=_.getPanels(),g=h-c.currentResizerPos,b=f(),C=cx(p.getWidth()+g,b),S=cx(m.getWidth()-g,b);p.setWidth(C),m.setWidth(S),n&&n([C,S]),u({...c,currentResizerPos:h})}},onMouseUp:()=>{u(lx)},children:x})})},Xz=100;class Yz{constructor(t){this.storage=t,this.changeEmitter=new cS.BehaviorSubject(this.getHistory()||[])}getHistoryKeys(){return this.storage.keys().filter(t=>t.indexOf("hist_elem")===0).sort().reverse()}getHistory(){return this.getHistoryKeys().map(t=>this.storage.get(t))}change(t){const n=this.changeEmitter.subscribe(t);return()=>n.unsubscribe()}addToHistory(t,n,r){const o=this.getHistoryKeys();o.splice(0,Xz),o.forEach(l=>{this.storage.delete(l)});const i=new Date().getTime(),a="hist_elem_"+i;this.storage.set(a,{time:i,endpoint:t,method:n,data:r}),this.changeEmitter.next(this.getHistory())}updateCurrentState(t){const n=new Date().getTime();this.storage.set("editor_state",{time:n,content:t})}getLegacySavedEditorState(){const t=this.storage.get("editor_state");if(!t)return;const{time:n,content:r}=t;return{time:n,content:r}}deleteLegacySavedEditorState(){this.storage.delete("editor_state")}clearHistory(){this.getHistoryKeys().forEach(t=>this.storage.delete(t))}}function Jz(e){return new Yz(e.storage)}class Qz{constructor(t,n){this.engine=t,this.prefix=n}encode(t){return JSON.stringify(t)}decode(t){if(typeof t=="string")return JSON.parse(t)}encodeKey(t){return`${this.prefix}${t}`}decodeKey(t){if(ye.startsWith(t,this.prefix))return`${t.slice(this.prefix.length)}`}set(t,n){return this.engine.setItem(this.encodeKey(t),this.encode(n)),n}has(t){return this.engine.getItem(this.encodeKey(t))!=null}get(t,n){return this.has(t)?this.decode(this.engine.getItem(this.encodeKey(t))):n}delete(t){return this.engine.removeItem(this.encodeKey(t))}keys(){return ye.transform(ye.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function Zz(e){return new Qz(e.engine,e.prefix)}class e4{constructor(t){this.storage=t}getFontSize(){return this.storage.get("font_size",12)}setFontSize(t){return this.storage.set("font_size",t),!0}getWrapMode(){return this.storage.get("wrap_mode",!0)}setWrapMode(t){return this.storage.set("wrap_mode",t),!0}setTripleQuotes(t){return this.storage.set("triple_quotes",t),!0}getTripleQuotes(){return this.storage.get("triple_quotes",!0)}getAutocomplete(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})}setAutocomplete(t){return this.storage.set("autocomplete_settings",t),!0}getPolling(){return this.storage.get("console_polling",!0)}setPolling(t){return this.storage.set("console_polling",t),!0}toJSON(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:!!this.getPolling()}}updateSettings({fontSize:t,wrapMode:n,tripleQuotes:r,autocomplete:o,polling:i}){this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)}}function t4({storage:e}){return new e4(e)}const n4="text-object";class r4{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}async create(t){const n=fS.v4(),r={id:n,...t};return this.client.set(`${this.prefix}_${n}`,r),r}async update(t){this.client.set(`${this.prefix}_${t.id}`,t)}async findAll(){const t=this.client.keys().filter(r=>r.includes(this.prefix)),n=[];for(const r of t)n.push(this.client.get(r));return n}}const o4=e=>({text:new r4(e,n4)}),Ba="#00bb1b",ux="#fcca00",dx="#ff4d4f",i4="#bbbbbb",xp="#d8d8d8",fx={green:Ba,yellow:ux,red:dx,available:Ba,unavailable:xp,online:Ba,offline:xp,active:ux,normal:Ba,acknowledged:Ba,error:dx,gray:i4};function a4(e){return fx[e]}const s4=({status:e,size:t=14})=>{if(e=="unavailable"||!fx[e])return fe.jsx("span",{children:fe.jsx(gn.CloseCircleOutlined,{style:{fontSize:14,color:xp}})});const n=a4(e);return fe.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},l4=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",px=({requestInProgress:e,requestResult:t,selectedCluster:n,left:r})=>{var a;let o=null;const i=fe.jsxs("div",{className:"base-info",children:[fe.jsxs("div",{className:"info-item health",children:[fe.jsxs("span",{children:[" ",fe.jsx(nn.FormattedMessage,{id:"console.cluster.status"}),":"]}),fe.jsx("i",{style:{position:"absolute",top:1,right:0},children:fe.jsx(s4,{status:(a=n==null?void 0:n.labels)==null?void 0:a.health_status})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),fe.jsx(bo,{color:"default",children:n==null?void 0:n.host})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.cluster.version"}),":"]}),fe.jsx(bo,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=fe.jsx(bo,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:l,method:s,statusCode:c,statusText:u,timeElapsedMs:f}=t;o=fe.jsx(fe.Fragment,{children:fe.jsxs("div",{className:"status_info",children:[fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.response.status"}),":"]}),fe.jsx(Vr,{placement:"top",title:fe.jsx("span",{children:`${s} ${l.startsWith("/")?l:"/"+l}`}),children:fe.jsx("span",{children:fe.jsxs(bo,{color:l4(c),children:[c," - ",u]})})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(nn.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),fe.jsx(Vr,{placement:"top",title:fe.jsx("span",{children:"Time Elapsed"}),children:fe.jsx("span",{children:fe.jsxs(bo,{color:"default",children:[f," ","ms"]})})})]})]})})}return fe.jsx("div",{className:"request-status-bar",children:r?fe.jsx("div",{className:"bar-item",children:i}):fe.jsx("div",{className:"bar-item",children:o})})},hx=50,mx="0px",c4=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,f,d,y,x,E,h,_,p,m,g;const{requestInFlight:a,lastResult:{data:l,error:s}}=Xw(),c=(l==null?void 0:l[l.length-1])??s;return fe.jsx("div",{className:"Console",style:{height:"100%"},children:fe.jsxs(Kz,{resizerClassName:"resizer",children:[fe.jsxs(sx,{style:{height:"calc(100%)",position:"relative",minWidth:mx,paddingBottom:26},initialWidth:hx,children:[fe.jsx(Vz,{selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i}),fe.jsx("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(px,{requestInProgress:a,selectedCluster:e,left:!0,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(u=c.response)==null?void 0:u.statusCode,statusText:(f=c.response)==null?void 0:f.statusText,timeElapsedMs:(d=c.response)==null?void 0:d.timeMs,requestHeader:(y=c.request)==null?void 0:y.header,responseHeader:(x=c.response)==null?void 0:x.header}:void 0})})]}),fe.jsxs(sx,{style:{height:"calc(100%)",position:"relative",minWidth:mx,paddingBottom:26},initialWidth:hx,children:[fe.jsx(ba,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:fe.jsx("div",{style:{height:"100%"},children:fe.jsx(Wz,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:fe.jsx(ba,{animated:!1,items:[{key:"1",label:"Request",children:fe.jsx(Ky,{code:(E=c==null?void 0:c.request)==null?void 0:E.header})},{key:"2",label:"Response",children:fe.jsx(Ky,{code:(h=c==null?void 0:c.response)==null?void 0:h.header})}]})}]}),fe.jsx("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:fe.jsx(px,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(_=c.response)==null?void 0:_.statusCode,statusText:(p=c.response)==null?void 0:p.statusText,timeElapsedMs:(m=c.response)==null?void 0:m.timeMs,requestHeader:c.request.header,responseHeader:(g=c.response)==null?void 0:g.header}:void 0})})]})]})})},gx=e=>{var a;const t=M.useRef(new wp),{storage:n,history:r,objectStorageClient:o,settings:i}=M.useMemo(()=>{const l=Zz({engine:window.localStorage,prefix:"sense:"}),s=Jz({storage:l}),c=o4(l),u=t4({storage:l});return{storage:l,history:s,objectStorageClient:c,settings:u}},[]);return fe.jsx(ax,{registry:t.current,children:fe.jsx(Pz,{children:fe.jsx(Iz,{children:fe.jsx(jz,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:fe.jsx(c4,{...e})})})})})},u4=({id:e,index:t,moveTabNode:n,children:r})=>{const o=M.useRef(null),[,i]=Yl.useDrop({accept:"DND_NODE",hover:s=>{const c=s.index,u=t;c!==u&&(n(c,u),s.index=u)}}),[{isDragging:a},l]=Yl.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:s=>({isDragging:s.isDragging()})});return l(i(o)),fe.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},d4=({id:e,index:t,moveTabNode:n,children:r})=>fe.jsx(u4,{id:e,index:t,moveTabNode:n,children:r}),f4=({children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTableData:l,sendRequestToES:s,...c})=>{const[u,f]=M.useState(n),[d,y]=M.useState(n.activeKey),[x,E]=M.useState([]),h=M.useCallback(w=>{E(O=>O.map(R=>R.key===d?{...R,content:w}:R)),f(O=>{const R={...O};return R.panes=R.panes.map(N=>N.key===d?{...N,content:w}:N),R}),l(u)},[d]);M.useEffect(()=>{var O;const w=(O=n==null?void 0:n.panes)==null?void 0:O.map(R=>({label:R.title,children:fe.jsx(gx,{height:r-35,selectedCluster:R.cluster,paneKey:R.key,saveEditorContent:h,initialText:R.content,isActive:R.key==d,sendRequestToES:s}),key:R.key,closable:R.closable,icon:i&&i(R)}));E(w)},[]);const[_,p]=M.useState(n.order||[]),m=(w,O)=>{const R=[..._];M.Children.forEach(e,L=>{R.indexOf(L.key)===-1&&R.push(L.key)});const N=R.indexOf(w),P=R.indexOf(O);R.splice(N,1),R.splice(P,0,w),p(R),typeof t=="function"&&t(R)},g=(w,O)=>fe.jsx("div",{children:fe.jsx(O,{...w,children:R=>fe.jsx(d4,{id:R.key,index:R.key,moveTabNode:m,children:R},R.key)})}),b=w=>{y(w);const O={...u,activeKey:w};f(O),l(O)};M.useEffect(()=>{var R;if(!a)return;const w=[...x];w.unshift({label:a.title,children:fe.jsx(gx,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:h,initialText:a.content,isActive:a.key==d,sendRequestToES:s}),key:a.key,closable:a.closable,icon:i&&i(a)}),E(w),y(a.key);const O={...u};(R=O.panes)==null||R.unshift(a),f(O),l(O)},[a]);const C=w=>{var L;let O=d,R=-1;x==null||x.forEach((z,J)=>{z.key===w&&(R=J-1)});const N=x.filter(z=>z.key!==w);N.length&&O===w&&(R>=0?O=N[R].key:O=N[0].key),E(N),y(O);let P={...u};P.panes=(L=P.panes)==null?void 0:L.filter(z=>z.key!==w),f(P),l(P)},S=(w,O)=>{O==="add"||C(w)};return fe.jsx(Yl.DndProvider,{backend:sS.HTML5Backend,children:fe.jsx(ba,{...c,type:"editable-card",hideAdd:!0,renderTabBar:g,tabBarExtraContent:o,activeKey:d,items:x,onChange:b,onEdit:S})})},p4=()=>fe.jsx("div",{className:"resize-bar",children:fe.jsxs("div",{children:[fe.jsx("div",{className:"dash"}),fe.jsx("div",{className:"dash"})]})}),h4="data:image/svg+xml,%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2ZM20,20H4V10H20ZM20,8H4V4H20Z'/%3e%3c/svg%3e",m4="data:image/svg+xml,%3csvg%20width='512px'%20height='512px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M352,153H40.247a24.028,24.028,0,0,0-24,24V458a24.028,24.028,0,0,0,24,24H352a24.028,24.028,0,0,0,24-24V177A24.028,24.028,0,0,0,352,153Zm-8,32v45.22H48.247V185ZM48.247,450V262.22H344V450Z'%20class='ci-primary'/%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M472,32H152a24.028,24.028,0,0,0-24,24v65h32V64H464V339.143H408v32h64a24.028,24.028,0,0,0,24-24V56A24.028,24.028,0,0,0,472,32Z'%20class='ci-primary'/%3e%3c/svg%3e",g4=e=>{const[t,n]=M.useState(e.data||[]);M.useEffect(()=>{o(t)},[t,e.panes]);const r=l=>{const{onItemClick:s}=e;s&&typeof s=="function"&&s(l)},o=(l={})=>{var s,c,u;((s=l.data)==null?void 0:s.length)>0&&((c=e.panes)==null?void 0:c.length)===0&&r((u=l.data[0])==null?void 0:u._source)},{children:i,DataSourceSelector:a}=e;return fe.jsx("div",{children:a?fe.jsx(a,{width:34,dropdownWidth:400,onChange:l=>r(l),getClusterList:o,children:i}):null})},v4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:h4}),_4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:m4});function y4(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const b4=({minimize:e=!1,resizeable:t=!1,height:n="50vh",DataSourceSelector:r,tabData:o={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`GET _search
|
|
288
|
+
{
|
|
289
|
+
"query": {
|
|
290
|
+
"match_all": {}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
|
|
295
|
+
`},{key:"cqhngq82sdb12fth1d3g:1721989243622",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`111111111GET _search
|
|
296
|
+
{
|
|
297
|
+
"query": {
|
|
298
|
+
"match_all": {}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
|
|
303
|
+
`}]},renderTabBarItemIcon:i,addTab:a,onMinimizeClick:l=()=>{console.warn("onMinimizeClick function is null")},newTabClick:s=()=>{console.warn("newTabClick function is null")},updateTableData:c=()=>{console.warn("updateTableData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var C;const f=M.useRef(null),[d,y]=M.useState(!1),[x,E]=M.useState(y4(n));M.useEffect(()=>{const S=()=>{d&&E(f.current.offsetHeight)};return window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[d]);const h=()=>{f.current!=null&&(d?(f.current.className=f.current.className.replace(" fullscreen",""),b()):f.current.className=f.current.className+" fullscreen"),E(f.current.clientHeight),y(!d)},_=M.useCallback(S=>{l(S),b()},[l]);NN((C=o.activeKey)==null?void 0:C.split(":")[0]);const p={left:fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{className:"tabbar-icon",onClick:_,children:fe.jsx(gn.CodeOutlined,{})}),fe.jsx(g4,{onItemClick:s,width:"300px",panes:o.panes,DataSourceSelector:r,children:fe.jsx("div",{className:"tabbar-icon",children:fe.jsx(gn.PlusOutlined,{})})})]}),right:fe.jsxs(fe.Fragment,{children:[e?fe.jsx("div",{className:"tabbar-icon",onClick:_,children:fe.jsx(gn.MinusOutlined,{})}):null,fe.jsx("div",{className:"tabbar-icon",onClick:h,children:d?fe.jsx(_4,{}):fe.jsx(v4,{})})]})},m=M.useMemo(()=>["left","right"].reduce((S,w)=>({...S,[w]:p[w]}),{}),[]),g=()=>{document.body.style.overflow="hidden"},b=()=>{document.body.style.overflow=""};return fe.jsx(aS.Resizable,{defaultSize:{height:x},minHeight:70,maxHeight:"100vh",handleComponent:{top:fe.jsx(p4,{})},onResizeStop:(S,w,O,R)=>{E(x+R.height)},enable:{top:t,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:fe.jsx("div",{style:{background:"#fff",height:"100%"},onMouseOver:g,onMouseOut:b,id:"console",ref:f,children:fe.jsx(f4,{editorHeight:x,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTableData:c,sendRequestToES:u})})})},vx={methods:[]},w4=Object.freeze(Object.defineProperty({__proto__:null,default:{documentation:vx},documentation:vx},Symbol.toStringTag,{value:"Module"})),_x={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",type:"",_source:[],_source_excludes:[],_source_includes:[],pipeline:""},methods:["POST","PUT"],patterns:["_bulk","{indices}/_bulk","{indices}/{type}/_bulk"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html"},x4=Object.freeze(Object.defineProperty({__proto__:null,bulk:_x,default:{bulk:_x}},Symbol.toStringTag,{value:"Module"})),S4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.aliases":{url_params:{format:"",local:"__flag__",h:[],help:"__flag__",s:[],v:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/aliases","_cat/aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html"}}},Symbol.toStringTag,{value:"Module"})),C4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.allocation":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/allocation","_cat/allocation/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html"}}},Symbol.toStringTag,{value:"Module"})),E4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.count":{url_params:{format:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/count","_cat/count/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html"}}},Symbol.toStringTag,{value:"Module"})),O4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.fielddata":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__",fields:[]},methods:["GET"],patterns:["_cat/fielddata","_cat/fielddata/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html"}}},Symbol.toStringTag,{value:"Module"})),$4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.health":{url_params:{format:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],ts:"__flag__",v:"__flag__"},methods:["GET"],patterns:["_cat/health"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html"}}},Symbol.toStringTag,{value:"Module"})),T4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.help":{url_params:{help:"__flag__",s:[]},methods:["GET"],patterns:["_cat"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html"}}},Symbol.toStringTag,{value:"Module"})),P4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.indices":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],health:["green","yellow","red"],help:"__flag__",pri:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/indices","_cat/indices/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html"}}},Symbol.toStringTag,{value:"Module"})),R4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.master":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/master"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html"}}},Symbol.toStringTag,{value:"Module"})),j4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodeattrs":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/nodeattrs"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html"}}},Symbol.toStringTag,{value:"Module"})),M4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodes":{url_params:{bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],format:"",full_id:"__flag__",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/nodes"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html"}}},Symbol.toStringTag,{value:"Module"})),I4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.pending_tasks":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html"}}},Symbol.toStringTag,{value:"Module"})),A4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.plugins":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/plugins"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html"}}},Symbol.toStringTag,{value:"Module"})),N4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.recovery":{url_params:{format:"",active_only:"__flag__",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],detailed:"__flag__",h:[],help:"__flag__",index:[],s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/recovery","_cat/recovery/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),k4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.repositories":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/repositories"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html"}}},Symbol.toStringTag,{value:"Module"})),L4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.segments":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/segments","_cat/segments/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html"}}},Symbol.toStringTag,{value:"Module"})),F4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.shards":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/shards","_cat/shards/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html"}}},Symbol.toStringTag,{value:"Module"})),D4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.snapshots":{url_params:{format:"",ignore_unavailable:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/snapshots","_cat/snapshots/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),B4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.tasks":{url_params:{format:"",node_id:[],actions:[],detailed:"__flag__",parent_task:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.templates":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/templates","_cat/templates/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html"}}},Symbol.toStringTag,{value:"Module"})),q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.thread_pool":{url_params:{format:"",size:["","k","m","g","t","p"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/thread_pool","_cat/thread_pool/{thread_pool_patterns}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html"}}},Symbol.toStringTag,{value:"Module"})),yx={methods:["DELETE"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"},V4=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:yx,default:{clear_scroll:yx}},Symbol.toStringTag,{value:"Module"})),H4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.allocation_explain":{url_params:{include_yes_decisions:"__flag__",include_disk_info:"__flag__"},methods:["GET","POST"],patterns:["_cluster/allocation/explain"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html"}}},Symbol.toStringTag,{value:"Module"})),W4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.delete_component_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),U4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_component_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_component_template","_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/getting-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),G4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:"",include_defaults:"__flag__"},methods:["GET"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),K4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]},methods:["GET"],patterns:["_cluster/health","_cluster/health/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html"}}},Symbol.toStringTag,{value:"Module"})),X4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.pending_tasks":{url_params:{local:"__flag__",master_timeout:""},methods:["GET"],patterns:["_cluster/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html"}}},Symbol.toStringTag,{value:"Module"})),Y4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{url_params:{create:"__flag__",master_timeout:""},methods:["PUT"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html"}}},Symbol.toStringTag,{value:"Module"})),J4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:""},methods:["PUT"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),Q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.remote_info":{methods:["GET"],patterns:["_remote/info"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html"}}},Symbol.toStringTag,{value:"Module"})),Z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{url_params:{dry_run:"__flag__",explain:"__flag__",retry_failed:"__flag__",metric:[],master_timeout:"",timeout:""},methods:["POST"],patterns:["_cluster/reroute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html"}}},Symbol.toStringTag,{value:"Module"})),e8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.state":{url_params:{local:"__flag__",master_timeout:"",flat_settings:"__flag__",wait_for_metadata_version:"",wait_for_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cluster/state","_cluster/state/{metrics}","_cluster/state/{metrics}/{indices}"],url_components:{metrics:["_all","blocks","master_node","metadata","nodes","routing_nodes","routing_table","version"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html"}}},Symbol.toStringTag,{value:"Module"})),t8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.stats":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_cluster/stats","_cluster/stats/nodes/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html"}}},Symbol.toStringTag,{value:"Module"})),bx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],min_score:"",preference:"random",routing:[],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",terminate_after:""},methods:["POST","GET"],patterns:["_count","{indices}/_count"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html"},n8=Object.freeze(Object.defineProperty({__proto__:null,count:bx,default:{count:bx}},Symbol.toStringTag,{value:"Module"})),wx={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_create/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},r8=Object.freeze(Object.defineProperty({__proto__:null,create:wx,default:{create:wx}},Symbol.toStringTag,{value:"Module"})),o8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete:{url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",if_seq_no:"",if_primary_term:"",version:"",version_type:["internal","external","external_gte","force"]},methods:["DELETE"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html"}}},Symbol.toStringTag,{value:"Module"})),xx={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_delete_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html"},i8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query:xx},delete_by_query:xx},Symbol.toStringTag,{value:"Module"})),Sx={url_params:{requests_per_second:""},methods:["POST"],patterns:["_delete_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html"},a8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query_rethrottle:Sx},delete_by_query_rethrottle:Sx},Symbol.toStringTag,{value:"Module"})),Cx={url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},s8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_script:Cx},delete_script:Cx},Symbol.toStringTag,{value:"Module"})),Ex={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},l8=Object.freeze(Object.defineProperty({__proto__:null,default:{exists:Ex},exists:Ex},Symbol.toStringTag,{value:"Module"})),Ox={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},c8=Object.freeze(Object.defineProperty({__proto__:null,default:{exists_source:Ox},exists_source:Ox},Symbol.toStringTag,{value:"Module"})),$x={url_params:{analyze_wildcard:"__flag__",analyzer:"",default_operator:["AND","OR"],df:"_all",stored_fields:[],lenient:"__flag__",preference:"random",q:"",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["{indices}/_explain/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html"},u8=Object.freeze(Object.defineProperty({__proto__:null,default:{explain:$x},explain:$x},Symbol.toStringTag,{value:"Module"})),Tx={url_params:{fields:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],include_unmapped:"__flag__"},methods:["GET","POST"],patterns:["_field_caps","{indices}/_field_caps"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html"},d8=Object.freeze(Object.defineProperty({__proto__:null,default:{field_caps:Tx},field_caps:Tx},Symbol.toStringTag,{value:"Module"})),Px={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},f8=Object.freeze(Object.defineProperty({__proto__:null,default:{get:Px},get:Px},Symbol.toStringTag,{value:"Module"})),Rx={url_params:{master_timeout:""},methods:["GET"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},p8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script:Rx},get_script:Rx},Symbol.toStringTag,{value:"Module"})),jx={methods:["GET"],patterns:["_script_context"]},h8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_context:jx},get_script_context:jx},Symbol.toStringTag,{value:"Module"})),Mx={methods:["GET"],patterns:["_script_language"]},m8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_languages:Mx},get_script_languages:Mx},Symbol.toStringTag,{value:"Module"})),Ix={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},g8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_source:Ix},get_source:Ix},Symbol.toStringTag,{value:"Module"})),Ax={url_params:{wait_for_active_shards:"",op_type:["index","create"],refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],if_seq_no:"",if_primary_term:"",pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_doc/{id}","{indices}/_doc"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},v8=Object.freeze(Object.defineProperty({__proto__:null,default:{index:Ax},index:Ax},Symbol.toStringTag,{value:"Module"})),_8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{url_params:{index:""},methods:["GET","POST"],patterns:["_analyze","{indices}/_analyze"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html"}}},Symbol.toStringTag,{value:"Module"})),y8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clear_cache":{url_params:{fielddata:"__flag__",fields:[],query:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],index:[],request:"__flag__"},methods:["POST"],patterns:["_cache/clear","{indices}/_cache/clear"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html"}}},Symbol.toStringTag,{value:"Module"})),b8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{url_params:{timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_clone/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html"}}},Symbol.toStringTag,{value:"Module"})),w8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.close":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_close"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),x8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{url_params:{include_type_name:"__flag__",wait_for_active_shards:"",timeout:"",master_timeout:""},methods:["PUT"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html"}}},Symbol.toStringTag,{value:"Module"})),S8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["DELETE"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html"}}},Symbol.toStringTag,{value:"Module"})),C8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_alias":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),E8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),O8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists":{url_params:{local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__"},methods:["HEAD"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html"}}},Symbol.toStringTag,{value:"Module"})),$8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["_alias/{name}","{indices}/_alias/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),T8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["HEAD"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),P8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_type":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["{indices}/_mapping/{type}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html"}}},Symbol.toStringTag,{value:"Module"})),R8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush":{url_params:{force:"__flag__",wait_if_ongoing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_flush","{indices}/_flush"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html"}}},Symbol.toStringTag,{value:"Module"})),j8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush_synced":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","none","all"]},methods:["POST","GET"],patterns:["_flush/synced","{indices}/_flush/synced"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html"}}},Symbol.toStringTag,{value:"Module"})),M8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.forcemerge":{url_params:{flush:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],max_num_segments:"dynamic",only_expunge_deletes:"__flag__"},methods:["POST"],patterns:["_forcemerge","{indices}/_forcemerge"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html"}}},Symbol.toStringTag,{value:"Module"})),I8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get":{url_params:{include_type_name:"__flag__",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__",master_timeout:""},methods:["GET"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html"}}},Symbol.toStringTag,{value:"Module"})),A8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_alias","_alias/{name}","{indices}/_alias/{name}","{indices}/_alias"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),N8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{url_params:{include_type_name:"__flag__",include_defaults:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_mapping/field/{fields}","{indices}/_mapping/field/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),k8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{url_params:{include_type_name:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_mapping","{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),L8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_settings":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",local:"__flag__",include_defaults:"__flag__"},methods:["GET"],patterns:["_settings","{indices}/_settings","{indices}/_settings/{name}","_settings/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html"}}},Symbol.toStringTag,{value:"Module"})),F8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{url_params:{include_type_name:"__flag__",flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_template","_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),D8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_upgrade":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),B8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.open":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_open"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),z8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{url_params:{timeout:"",master_timeout:""},methods:["PUT","POST"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),q8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_mapping":{url_params:{include_type_name:"__flag__",timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["PUT","POST"],patterns:["{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),V8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{url_params:{master_timeout:"",timeout:"",preserve_existing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__"},methods:["PUT"],patterns:["_settings","{indices}/_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),H8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{url_params:{include_type_name:"__flag__",order:"",create:"__flag__",master_timeout:"",flat_settings:"__flag__"},methods:["PUT","POST"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),W8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.recovery":{url_params:{detailed:"__flag__",active_only:"__flag__"},methods:["GET"],patterns:["_recovery","{indices}/_recovery"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),U8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.refresh":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_refresh","{indices}/_refresh"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html"}}},Symbol.toStringTag,{value:"Module"})),G8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{url_params:{include_type_name:"__flag__",timeout:"",dry_run:"__flag__",master_timeout:"",wait_for_active_shards:""},methods:["POST"],patterns:["{alias}/_rollover","{alias}/_rollover/{new_index}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html"}}},Symbol.toStringTag,{value:"Module"})),K8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.segments":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],verbose:"__flag__"},methods:["GET"],patterns:["_segments","{indices}/_segments"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html"}}},Symbol.toStringTag,{value:"Module"})),X8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shard_stores":{url_params:{status:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_shard_stores","{indices}/_shard_stores"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html"}}},Symbol.toStringTag,{value:"Module"})),Y8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shrink":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_shrink/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html"}}},Symbol.toStringTag,{value:"Module"})),J8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.split":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_split/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html"}}},Symbol.toStringTag,{value:"Module"})),Q8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:[],level:["cluster","indices","shards"],types:[],include_segment_file_sizes:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],forbid_closed_indices:"__flag__"},methods:["GET"],patterns:["_stats","_stats/{metrics}","{indices}/_stats","{indices}/_stats/{metrics}"],url_components:{metrics:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html"}}},Symbol.toStringTag,{value:"Module"})),Z8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{url_params:{timeout:"",master_timeout:""},methods:["POST"],patterns:["_aliases"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),e3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.upgrade":{url_params:{allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],ignore_unavailable:"__flag__",wait_for_completion:"__flag__",only_ancient_segments:"__flag__"},methods:["POST"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),t3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{url_params:{explain:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",rewrite:"__flag__",all_shards:"__flag__"},methods:["GET","POST"],patterns:["_validate/query","{indices}/_validate/query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html"}}},Symbol.toStringTag,{value:"Module"})),Nx={methods:["GET"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},n3=Object.freeze(Object.defineProperty({__proto__:null,default:{info:Nx},info:Nx},Symbol.toStringTag,{value:"Module"})),r3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.delete_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),o3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.get_pipeline":{url_params:{master_timeout:""},methods:["GET"],patterns:["_ingest/pipeline","_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),i3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.processor_grok":{methods:["GET"],patterns:["_ingest/processor/grok"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get"}}},Symbol.toStringTag,{value:"Module"})),a3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.put_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["PUT"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),s3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.simulate":{url_params:{verbose:"__flag__"},methods:["GET","POST"],patterns:["_ingest/pipeline/_simulate","_ingest/pipeline/{id}/_simulate"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),kx={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["_mget","{indices}/_mget"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html"},l3=Object.freeze(Object.defineProperty({__proto__:null,default:{mget:kx},mget:kx},Symbol.toStringTag,{value:"Module"})),Lx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],max_concurrent_searches:"",typed_keys:"__flag__",pre_filter_shard_size:"",max_concurrent_shard_requests:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch","{indices}/_msearch"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html"},c3=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch:Lx},msearch:Lx},Symbol.toStringTag,{value:"Module"})),Fx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],typed_keys:"__flag__",max_concurrent_searches:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch/template","{indices}/_msearch/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html"},u3=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch_template:Fx},msearch_template:Fx},Symbol.toStringTag,{value:"Module"})),Dx={url_params:{ids:[],term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["_mtermvectors","{indices}/_mtermvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html"},d3=Object.freeze(Object.defineProperty({__proto__:null,default:{mtermvectors:Dx},mtermvectors:Dx},Symbol.toStringTag,{value:"Module"})),f3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.hot_threads":{url_params:{interval:"",snapshots:"10",threads:"3",ignore_idle_threads:"__flag__",type:["cpu","wait","block"],timeout:""},methods:["GET"],patterns:["_nodes/hot_threads","_nodes/{nodes}/hot_threads"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html"}}},Symbol.toStringTag,{value:"Module"})),p3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.info":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_nodes","_nodes/{nodes}","_nodes/{metrics}","_nodes/{nodes}/{metrics}"],url_components:{nodes:null,metrics:["http","ingest","jvm","os","plugins","process","settings","thread_pool","transport"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html"}}},Symbol.toStringTag,{value:"Module"})),h3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.reload_secure_settings":{url_params:{timeout:""},methods:["POST"],patterns:["_nodes/reload_secure_settings","_nodes/{nodes}/reload_secure_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings"}}},Symbol.toStringTag,{value:"Module"})),m3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:"__flag__",level:["indices","node","shards"],types:[],timeout:"",include_segment_file_sizes:"__flag__"},methods:["GET"],patterns:["_nodes/stats","_nodes/{nodes}/stats","_nodes/stats/{metrics}","_nodes/{nodes}/stats/{metrics}","_nodes/stats/{metrics}/{index_metric}","_nodes/{nodes}/stats/{metrics}/{index_metric}"],url_components:{nodes:null,metrics:["_all","breaker","discovery","fs","http","indices","jvm","os","process","thread_pool","transport"],index_metric:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html"}}},Symbol.toStringTag,{value:"Module"})),g3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.usage":{url_params:{timeout:""},methods:["GET"],patterns:["_nodes/usage","_nodes/{nodes}/usage","_nodes/usage/{metrics}","_nodes/{nodes}/usage/{metrics}"],url_components:{nodes:null,metrics:["_all","rest_actions"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html"}}},Symbol.toStringTag,{value:"Module"})),Bx={methods:["HEAD"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},v3=Object.freeze(Object.defineProperty({__proto__:null,default:{ping:Bx},ping:Bx},Symbol.toStringTag,{value:"Module"})),zx={url_params:{timeout:"",master_timeout:"",context:""},methods:["PUT","POST"],patterns:["_scripts/{id}","_scripts/{id}/{context}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},_3=Object.freeze(Object.defineProperty({__proto__:null,default:{put_script:zx},put_script:zx},Symbol.toStringTag,{value:"Module"})),qx={url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],search_type:["query_then_fetch","dfs_query_then_fetch"]},methods:["GET","POST"],patterns:["_rank_eval","{indices}/_rank_eval"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html"},y3=Object.freeze(Object.defineProperty({__proto__:null,default:{rank_eval:qx},rank_eval:qx},Symbol.toStringTag,{value:"Module"})),Vx={url_params:{refresh:"__flag__",timeout:"",wait_for_active_shards:"",wait_for_completion:"__flag__",requests_per_second:"",scroll:"",slices:"",max_docs:"all documents"},methods:["POST"],patterns:["_reindex"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},b3=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex:Vx},reindex:Vx},Symbol.toStringTag,{value:"Module"})),Hx={url_params:{requests_per_second:""},methods:["POST"],patterns:["_reindex/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},w3=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex_rethrottle:Hx},reindex_rethrottle:Hx},Symbol.toStringTag,{value:"Module"})),Wx={methods:["GET","POST"],patterns:["_render/template","_render/template/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"},x3=Object.freeze(Object.defineProperty({__proto__:null,default:{render_search_template:Wx},render_search_template:Wx},Symbol.toStringTag,{value:"Module"})),Ux={methods:["GET","POST"],patterns:["_scripts/painless/_execute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"},S3=Object.freeze(Object.defineProperty({__proto__:null,default:{scripts_painless_execute:Ux},scripts_painless_execute:Ux},Symbol.toStringTag,{value:"Module"})),Gx={url_params:{scroll:"",scroll_id:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll"},C3=Object.freeze(Object.defineProperty({__proto__:null,default:{scroll:Gx},scroll:Gx},Symbol.toStringTag,{value:"Module"})),Kx={url_params:{analyzer:"",analyze_wildcard:"__flag__",ccs_minimize_roundtrips:"__flag__",default_operator:["AND","OR"],df:"",explain:"__flag__",stored_fields:[],docvalue_fields:[],from:"0",ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],size:"10",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],suggest_field:"",suggest_mode:["missing","popular","always"],suggest_size:"",suggest_text:"",timeout:"",track_scores:"__flag__",track_total_hits:"__flag__",allow_partial_search_results:"__flag__",typed_keys:"__flag__",version:"__flag__",seq_no_primary_term:"__flag__",request_cache:"__flag__",batched_reduce_size:"",max_concurrent_shard_requests:"",pre_filter_shard_size:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search","{indices}/_search"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html"},E3=Object.freeze(Object.defineProperty({__proto__:null,default:{search:Kx},search:Kx},Symbol.toStringTag,{value:"Module"})),Xx={url_params:{preference:"random",routing:"",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET","POST"],patterns:["_search_shards","{indices}/_search_shards"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html"},O3=Object.freeze(Object.defineProperty({__proto__:null,default:{search_shards:Xx},search_shards:Xx},Symbol.toStringTag,{value:"Module"})),Yx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],preference:"random",routing:[],scroll:"",search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],explain:"__flag__",profile:"__flag__",typed_keys:"__flag__",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_search/template","{indices}/_search/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html"},$3=Object.freeze(Object.defineProperty({__proto__:null,default:{search_template:Yx},search_template:Yx},Symbol.toStringTag,{value:"Module"})),T3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.cleanup_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_cleanup"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),P3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),R3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{url_params:{master_timeout:"",timeout:"",verify:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),j3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete":{url_params:{master_timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),M3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete_repository":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),I3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",verbose:"__flag__"},methods:["GET"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),A3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get_repository":{url_params:{master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_snapshot","_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),N3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["POST"],patterns:["_snapshot/{repository}/{snapshot}/_restore"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),k3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.status":{url_params:{master_timeout:"",ignore_unavailable:"__flag__"},methods:["GET"],patterns:["_snapshot/_status","_snapshot/{repository}/_status","_snapshot/{repository}/{snapshot}/_status"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),L3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.verify_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_verify"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),F3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.cancel":{url_params:{nodes:[],actions:[],parent_task_id:""},methods:["POST"],patterns:["_tasks/_cancel","_tasks/{task_id}/_cancel"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),D3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.get":{url_params:{wait_for_completion:"__flag__",timeout:""},methods:["GET"],patterns:["_tasks/{task_id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),B3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.list":{url_params:{nodes:[],actions:[],detailed:"__flag__",parent_task_id:"",wait_for_completion:"__flag__",group_by:["nodes","parents","none"],timeout:""},methods:["GET"],patterns:["_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),Jx={url_params:{term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["{indices}/_termvectors/{id}","{indices}/_termvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html"},z3=Object.freeze(Object.defineProperty({__proto__:null,default:{termvectors:Jx},termvectors:Jx},Symbol.toStringTag,{value:"Module"})),Qx={url_params:{wait_for_active_shards:"",_source:[],_source_excludes:[],_source_includes:[],lang:"painless",refresh:["true","false","wait_for"],retry_on_conflict:"0",routing:"",timeout:"",if_seq_no:"",if_primary_term:""},methods:["POST"],patterns:["{indices}/_update/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html"},q3=Object.freeze(Object.defineProperty({__proto__:null,default:{update:Qx},update:Qx},Symbol.toStringTag,{value:"Module"})),Zx={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",pipeline:"none",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",version_type:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_update_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html"},V3=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:Zx},update_by_query:Zx},Symbol.toStringTag,{value:"Module"})),eS={url_params:{requests_per_second:""},methods:["POST"],patterns:["_update_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html"},H3=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query_rethrottle:eS},update_by_query_rethrottle:eS},Symbol.toStringTag,{value:"Module"})),tS={data_autocomplete_rules:{scroll_id:""}},W3=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:tS,default:{clear_scroll:tS}},Symbol.toStringTag,{value:"Module"})),U3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]}}}},Symbol.toStringTag,{value:"Module"})),G3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{data_autocomplete_rules:{template:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}},mappings:{__scope_link:"put_mapping"}},_meta:{},version:0,allow_auto_create:!1}}}},Symbol.toStringTag,{value:"Module"})),K3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{data_autocomplete_rules:{persistent:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}},transient:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}}}}}},Symbol.toStringTag,{value:"Module"})),X3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{data_autocomplete_rules:{commands:[{move:{__template:{index:"",shard:0,from_node:"",to_node:""},index:"{index}",shard:0,from_node:"{node}",to_node:"{node}"},cancel:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}},allocate:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}}}],dry_run:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),nS={priority:10,data_autocomplete_rules:{query:{}}},Y3=Object.freeze(Object.defineProperty({__proto__:null,count:nS,default:{count:nS}},Symbol.toStringTag,{value:"Module"})),J3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{data_autocomplete_rules:{text:[],field:"{field}",analyzer:"",tokenizer:"",char_filter:[],filter:[],explain:{__one_of:[!1,!0]},attributes:[]}}}},Symbol.toStringTag,{value:"Module"})),Q3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{data_autocomplete_rules:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),Z3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{data_autocomplete_rules:{mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),e6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),t6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),n6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),r6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),o6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{patterns:["_template","_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),i6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{data_autocomplete_rules:{filter:{},routing:"1",search_routing:"1,2",index_routing:"1"}}}},Symbol.toStringTag,{value:"Module"})),a6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{data_autocomplete_rules:{__scope_link:"put_settings"}}}},Symbol.toStringTag,{value:"Module"})),s6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{data_autocomplete_rules:{index_patterns:[],mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},version:0,order:0,aliases:{__template:{NAME:{}}}},patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),l6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{data_autocomplete_rules:{conditions:{max_age:"7d",max_docs:1e3,max_size:"5gb"},settings:{__scope_link:"put_settings"},mappings:{__scope_link:"put_mapping"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),c6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{data_autocomplete_rules:{actions:{__template:[{add:{index:"test1",alias:"alias1"}}],__any_of:[{add:{index:"{index}",alias:"",filter:{},routing:"1",search_routing:"1,2",index_routing:"1"},remove:{index:"",alias:""}}]}}}}},Symbol.toStringTag,{value:"Module"})),u6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{data_autocomplete_rules:{query:{}}}}},Symbol.toStringTag,{value:"Module"})),d6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:{__one_of:[!0,!1]},partial:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),f6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{data_autocomplete_rules:{__template:{type:""},type:{__one_of:["fs","url","s3","hdfs","azure"]},settings:{__one_of:[{__condition:{lines_regex:`type["']\\s*:\\s*["']fs\``},__template:{location:"path"},location:"path",compress:{__one_of:[!0,!1]},concurrent_streams:5,chunk_size:"10m",max_restore_bytes_per_sec:"20mb",max_snapshot_bytes_per_sec:"20mb"},{__condition:{lines_regex:`type["']\\s*:\\s*["']url`},__template:{url:""},url:"",concurrent_streams:5},{__condition:{lines_regex:`type["']\\s*:\\s*["']s3`},__template:{bucket:""},bucket:"",region:"",base_path:"",concurrent_streams:5,chunk_size:"10m",compress:{__one_of:[!0,!1]}},{__condition:{lines_regex:`type["']\\s*:\\s*["']hdfs`},__template:{path:""},uri:"",path:"some/path",load_defaults:{__one_of:[!0,!1]},conf_location:"cfg.xml",concurrent_streams:5,compress:{__one_of:[!0,!1]},chunk_size:"10m"},{__condition:{lines_regex:`type["']\\s*:\\s*["']azure`},__template:{path:""},container:"",base_path:"",client:"default",location_mode:{__one_of:["primary_only","secondary_only"]},readonly:{__one_of:[!0,!1]},compress:{__one_of:[!0,!1]},chunk_size:"10m"}]}}}}},Symbol.toStringTag,{value:"Module"})),p6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:!1,rename_pattern:"index_(.+)",rename_replacement:"restored_index_$1"}}}},Symbol.toStringTag,{value:"Module"})),rS={data_autocomplete_rules:{conflicts:"",query:{__scope_link:"GLOBAL.query"},script:{__template:{source:"",lang:"painless"},__scope_link:"GLOBAL.script"}}},h6=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:rS},update_by_query:rS},Symbol.toStringTag,{value:"Module"}));var Ve={exports:{}};(function(e){function t(n,r){for(let o=n,i="";o;){let a=r[o];if(typeof a=="string")return a+i;if(a)return a.location.replace(/\/*$/,"/")+(i||a.main||a.name);if(a===!1)return"";let l=o.lastIndexOf("/");if(l===-1)break;i=o.substr(l)+i,o=o.slice(0,l)}return n}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){let o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){let l=i.split("!");return e.normalizeModule(o,l[0])+"!"+e.normalizeModule(o,l[1])}if(i.charAt(0)=="."){let l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&a!=i;){var a=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);let l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);let s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);let l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){let s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(let i in o)acequire.tlns[i]=o[i]},e.initSender=function(){let o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};let n=e.main=null,r=e.sender=null;e.onmessage=function(o){let i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();let a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(let o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){let n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){let i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){let i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){let a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){let i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){let o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{let u=[o,1].concat(r.lines);n.splice.apply(n,u),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var s=r.end.column,c=r.end.row;o===c?n[o]=a.substring(0,i)+a.substring(s):n.splice(o,c-o+1,a.substring(0,i)+n[c].substring(s))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){let n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});let l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(let c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){let l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(let s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){let l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){let s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);let u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l){let s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){let c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};let s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};let l=this._eventRegistry[i];if(l){let s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){let n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){let u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){let u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),y=l.start,x=u?y:l.end;return i(s,y,c)?{row:s.row,column:s.column}:i(x,s,!c)?{row:s.row+f,column:s.column+(s.row==x.row?d:0)}:{row:y.row,column:y.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){let s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){let u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){let f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){let c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t){let n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){let c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
|
|
304
|
+
`).split(`
|
|
305
|
+
`)}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){let c=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
|
|
306
|
+
`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
307
|
+
`;case"unix":return`
|
|
308
|
+
`;default:return this.$autoNewLine||`
|
|
309
|
+
`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(s){return s==`\r
|
|
310
|
+
`||s=="\r"||s==`
|
|
311
|
+
`},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,c){return this.$lines.slice(s,c+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){let c;if(s.start.row===s.end.row)c=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{c=this.getLines(s.start.row,s.end.row),c[0]=(c[0]||"").substring(s.start.column);let u=c.length-1;s.end.row-s.start.row==u&&(c[u]=c[u].substring(0,s.end.column))}return c},this.insertLines=function(s,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,c)},this.removeLines=function(s,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,c)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,c){return 1>=this.getLength()&&this.$detectNewLine(c),this.insertMergedLines(s,this.$split(c))},this.insertInLine=function(s,c){let u=this.clippedPos(s.row,s.column),f=this.pos(s.row,s.column+c.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},this.clippedPos=function(s,c){let u=this.getLength();s===void 0?s=u:0>s?s=0:s>=u&&(s=u-1,c=void 0);let f=this.getLine(s);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:s,column:c}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,c){return{row:s,column:c}},this.$clipPosition=function(s){let c=this.getLength();return s.row>=c?(s.row=Math.max(0,c-1),s.column=this.getLine(c-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,c){s=Math.min(Math.max(s,0),this.getLength());let u=0;this.getLength()>s?(c=c.concat([""]),u=0):(c=[""].concat(c),s--,u=this.$lines[s].length),this.insertMergedLines({row:s,column:u},c)},this.insertMergedLines=function(s,c){let u=this.clippedPos(s.row,s.column),f={row:u.row+c.length-1,column:(c.length==1?u.column:0)+c[c.length-1].length};return this.applyDelta({start:u,end:f,action:"insert",lines:c}),this.clonePos(f)},this.remove=function(s){let c=this.clippedPos(s.start.row,s.start.column),u=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:c,end:u,action:"remove",lines:this.getLinesForRange({start:c,end:u})}),this.clonePos(c)},this.removeInLine=function(s,c,u){let f=this.clippedPos(s,c),d=this.clippedPos(s,u);return this.applyDelta({start:f,end:d,action:"remove",lines:this.getLinesForRange({start:f,end:d})},!0),this.clonePos(f)},this.removeFullLines=function(s,c){s=Math.min(Math.max(0,s),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);let u=c==this.getLength()-1&&s>0,f=this.getLength()-1>c,d=u?s-1:s,y=u?this.getLine(d).length:0,x=f?c+1:c,E=f?0:this.getLine(x).length,h=new i(d,y,x,E),_=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),_},this.removeNewLine=function(s){this.getLength()-1>s&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,c){return s instanceof i||(s=i.fromPoints(s.start,s.end)),c.length===0&&s.isEmpty()?s.start:c==this.getTextRange(s)?s.end:(this.remove(s),c?this.insert(s.start,c):s.start)},this.applyDeltas=function(s){for(let c=0;s.length>c;c++)this.applyDelta(s[c])},this.revertDeltas=function(s){for(let c=s.length-1;c>=0;c--)this.revertDelta(s[c])},this.applyDelta=function(s,c){let u=s.action=="insert";(u?1>=s.lines.length&&!s.lines[0]:!i.comparePoints(s.start,s.end))||(u&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),r(this.$lines,s,c),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,c){for(let u=s.lines,f=u.length,d=s.start.row,y=s.start.column,x=0,E=0;;){x=E,E+=c-1;let h=u.slice(x,E);if(E>f){s.lines=h,s.start.row=d+x,s.start.column=y;break}h.push(""),this.applyDelta({start:this.pos(d+x,y),end:this.pos(d+E,y=0),action:s.action,lines:h},!0)}},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=c||0,y=u.length;y>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:y-1,column:u[y-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,y=Math.min(s.row,u.length),x=c||0;y>x;++x)d+=u[x].length+f;return d+s.column}}).call(l.prototype),t.Document=l}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t){t.last=function(o){return o[o.length-1]},t.stringReverse=function(o){return o.split("").reverse().join("")},t.stringRepeat=function(o,i){for(var a="";i>0;)1&i&&(a+=o),(i>>=1)&&(o+=o);return a};let n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(o){return o.replace(n,"")},t.stringTrimRight=function(o){return o.replace(r,"")},t.copyObject=function(o){let i={};for(let a in o)i[a]=o[a];return i},t.copyArray=function(o){for(var i=[],a=0,l=o.length;l>a;a++)i[a]=o[a]&&typeof o[a]=="object"?this.copyObject(o[a]):o[a];return i},t.deepCopy=function o(i){if(typeof i!="object"||!i)return i;let a;if(Array.isArray(i)){a=[];for(var l=0;i.length>l;l++)a[l]=o(i[l]);return a}if(Object.prototype.toString.call(i)!=="[object Object]")return i;a={};for(var l in i)a[l]=o(i[l]);return a},t.arrayToMap=function(o){for(var i={},a=0;o.length>a;a++)i[o[a]]=1;return i},t.createMap=function(o){let i=Object.create(null);for(let a in o)i[a]=o[a];return i},t.arrayRemove=function(o,i){for(let a=0;o.length>=a;a++)i===o[a]&&o.splice(a,1)},t.escapeRegExp=function(o){return o.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(o){return o.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},t.getMatchOffsets=function(o,i){let a=[];return o.replace(i,function(l){a.push({offset:arguments[arguments.length-2],length:l.length})}),a},t.deferredCall=function(o){var i=null,a=function(){i=null,o()},l=function(s){return l.cancel(),i=setTimeout(a,s||0),l};return l.schedule=l,l.call=function(){return this.cancel(),o(),l},l.cancel=function(){return clearTimeout(i),i=null,l},l.isPending=function(){return i},l},t.delayedCall=function(o,i){let a=null,l=function(){a=null,o()},s=function(c){a==null&&(a=setTimeout(l,c||i))};return s.delay=function(c){a&&clearTimeout(a),a=setTimeout(l,c||i)},s.schedule=s,s.call=function(){this.cancel(),o()},s.cancel=function(){a&&clearTimeout(a),a=null},s.isPending=function(){return a},s}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(e,t){e("../range").Range;let n=e("../document").Document,r=e("../lib/lang"),o=t.Mirror=function(i){this.sender=i;let a=this.doc=new n(""),l=this.deferredUpdate=r.delayedCall(this.onUpdate.bind(this)),s=this;i.on("change",function(c){let u=c.data;if(u[0].start)a.applyDeltas(u);else for(var f=0;u.length>f;f+=2){if(Array.isArray(u[f+1]))var d={action:"insert",start:u[f],lines:u[f+1]};else var d={action:"remove",start:u[f],end:u[f+1]};a.applyDelta(d,!0)}return s.$timeout?l.schedule(s.$timeout):(s.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(i){this.$timeout=i},this.setValue=function(i){this.doc.setValue(i),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(i){this.sender.callback(this.doc.getValue(),i)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function e(){}function t(g){try{return Object.defineProperty(g,"sentinel",{}),"sentinel"in g}catch{}}function n(g){return g=+g,g!==g?g=0:g!==0&&g!==1/0&&g!==-1/0&&(g=(g>0||-1)*Math.floor(Math.abs(g))),g}Function.prototype.bind||(Function.prototype.bind=function(g){let b=this;if(typeof b!="function")throw new TypeError("Function.prototype.bind called on incompatible "+b);var C=f.call(arguments,1),S=function(){if(this instanceof S){let w=b.apply(this,C.concat(f.call(arguments)));return Object(w)===w?w:this}return b.apply(g,C.concat(f.call(arguments)))};return b.prototype&&(e.prototype=b.prototype,S.prototype=new e,e.prototype=null),S});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),y=s.bind(u.hasOwnProperty);if((l=y(u,"__defineGetter__"))&&(r=s.bind(u.__defineGetter__),o=s.bind(u.__defineSetter__),i=s.bind(u.__lookupGetter__),a=s.bind(u.__lookupSetter__)),[1,2].splice(0).length!=2)if(function(){function g(S){var w=Array(S+2);return w[0]=w[1]=0,w}var b,C=[];return C.splice.apply(C,g(20)),C.splice.apply(C,g(26)),b=C.length,C.splice(5,0,"XXX"),b+1==C.length?!0:void 0}()){var x=Array.prototype.splice;Array.prototype.splice=function(g,b){return arguments.length?x.apply(this,[g===void 0?0:g,b===void 0?this.length-g:b].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(g,b){var C=this.length;g>0?g>C&&(g=C):g==null?g=0:0>g&&(g=Math.max(C+g,0)),C>g+b||(b=C-g);var S=this.slice(g,g+b),w=f.call(arguments,2),O=w.length;if(g===C)O&&this.push.apply(this,w);else{var R=Math.min(b,C-g),N=g+R,P=N+O-R,L=C-N,z=C-R;if(N>P)for(var J=0;L>J;++J)this[P+J]=this[N+J];else if(P>N)for(J=L;J--;)this[P+J]=this[N+J];if(O&&g===z)this.length=z,this.push.apply(this,w);else for(this.length=z+O,J=0;O>J;++J)this[g+J]=w[J]}return S};Array.isArray||(Array.isArray=function(g){return d(g)=="[object Array]"});let E=Object("a"),h=E[0]!="a"||!(0 in E);if(Array.prototype.forEach||(Array.prototype.forEach=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=arguments[1],w=-1,O=C.length>>>0;if(d(g)!="[object Function]")throw new TypeError;for(;O>++w;)w in C&&g.call(S,C[w],w,b)}),Array.prototype.map||(Array.prototype.map=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=C.length>>>0,w=Array(S),O=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let R=0;S>R;R++)R in C&&(w[R]=g.call(O,C[R],R,b));return w}),Array.prototype.filter||(Array.prototype.filter=function(g){let b,C=m(this),S=h&&d(this)=="[object String]"?this.split(""):C,w=S.length>>>0,O=[],R=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let N=0;w>N;N++)N in S&&(b=S[N],g.call(R,b,N,C)&&O.push(b));return O}),Array.prototype.every||(Array.prototype.every=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=C.length>>>0,w=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let O=0;S>O;O++)if(O in C&&!g.call(w,C[O],O,b))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=C.length>>>0,w=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let O=0;S>O;O++)if(O in C&&g.call(w,C[O],O,b))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=C.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!S&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");let w,O=0;if(arguments.length>=2)w=arguments[1];else for(;;){if(O in C){w=C[O++];break}if(++O>=S)throw new TypeError("reduce of empty array with no initial value")}for(;S>O;O++)O in C&&(w=g.call(void 0,w,C[O],O,b));return w}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(g){let b=m(this),C=h&&d(this)=="[object String]"?this.split(""):b,S=C.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!S&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");let w,O=S-1;if(arguments.length>=2)w=arguments[1];else for(;;){if(O in C){w=C[O--];break}if(0>--O)throw new TypeError("reduceRight of empty array with no initial value")}do O in this&&(w=g.call(void 0,w,C[O],O,b));while(O--);return w}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(g){let b=h&&d(this)=="[object String]"?this.split(""):m(this),C=b.length>>>0;if(!C)return-1;let S=0;for(arguments.length>1&&(S=n(arguments[1])),S=S>=0?S:Math.max(0,C+S);C>S;S++)if(S in b&&b[S]===g)return S;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(g){let b=h&&d(this)=="[object String]"?this.split(""):m(this),C=b.length>>>0;if(!C)return-1;let S=C-1;for(arguments.length>1&&(S=Math.min(S,n(arguments[1]))),S=S>=0?S:C-Math.abs(S);S>=0;S--)if(S in b&&g===b[S])return S;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(g){return g.__proto__||(g.constructor?g.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){let g="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(b,C){if(typeof b!="object"&&typeof b!="function"||b===null)throw new TypeError(g+b);if(y(b,C)){var S,w,O;if(S={enumerable:!0,configurable:!0},l){let R=b.__proto__;b.__proto__=u;var w=i(b,C),O=a(b,C);if(b.__proto__=R,w||O)return w&&(S.get=w),O&&(S.set=O),S}return S.value=b[C],S}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(g){return Object.keys(g)}),!Object.create){let g;g=Object.prototype.__proto__===null?function(){return{__proto__:null}}:function(){let b={};for(let C in b)b[C]=null;return b.constructor=b.hasOwnProperty=b.propertyIsEnumerable=b.isPrototypeOf=b.toLocaleString=b.toString=b.valueOf=b.__proto__=null,b},Object.create=function(b,C){let S;if(b===null)S=g();else{if(typeof b!="object")throw new TypeError("typeof prototype["+typeof b+"] != 'object'");let w=function(){};w.prototype=b,S=new w,S.__proto__=b}return C!==void 0&&Object.defineProperties(S,C),S}}if(Object.defineProperty){let g=t({}),b=typeof document>"u"||t(document.createElement("div"));if(!g||!b)var _=Object.defineProperty}if(!Object.defineProperty||_){let g="Property description must be an object: ",b="Object.defineProperty called on non-object: ",C="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(S,w,O){if(typeof S!="object"&&typeof S!="function"||S===null)throw new TypeError(b+S);if(typeof O!="object"&&typeof O!="function"||O===null)throw new TypeError(g+O);if(_)try{return _.call(Object,S,w,O)}catch{}if(y(O,"value"))if(l&&(i(S,w)||a(S,w))){var R=S.__proto__;S.__proto__=u,delete S[w],S[w]=O.value,S.__proto__=R}else S[w]=O.value;else{if(!l)throw new TypeError(C);y(O,"get")&&r(S,w,O.get),y(O,"set")&&o(S,w,O.set)}return S}}Object.defineProperties||(Object.defineProperties=function(g,b){for(let C in b)y(b,C)&&Object.defineProperty(g,C,b[C]);return g}),Object.seal||(Object.seal=function(g){return g}),Object.freeze||(Object.freeze=function(g){return g});try{Object.freeze(function(){})}catch{Object.freeze=function(b){return function(C){return typeof C=="function"?C:b(C)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(g){return g}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(g){if(Object(g)===g)throw new TypeError;for(var b="";y(g,b);)b+="?";g[b]=!0;let C=y(g,b);return delete g[b],C}),!Object.keys){let g=!0,b=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],C=b.length;for(let S in{toString:null})g=!1;Object.keys=function(S){if(typeof S!="object"&&typeof S!="function"||S===null)throw new TypeError("Object.keys called on a non-object");let w=[];for(let P in S)y(S,P)&&w.push(P);if(g)for(var O=0,R=C;R>O;O++){var N=b[O];y(S,N)&&w.push(N)}return w}}Date.now||(Date.now=function(){return new Date().getTime()});let p=`
|
|
312
|
+
v\f\r \u2028\u2029\uFEFF`;if(!String.prototype.trim||p.trim()){p="["+p+"]";let g=RegExp("^"+p+p+"*"),b=RegExp(p+p+"*$");String.prototype.trim=function(){return(this+"").replace(g,"").replace(b,"")}}var m=function(g){if(g==null)throw new TypeError("can't convert "+g+" to object");return Object(g)}});const m6=(Ve.exports==null?{}:Ve.exports).default||Ve.exports,g6=(Ve.exports==null?{}:Ve.exports).inherits,v6=(Ve.exports==null?{}:Ve.exports).mixin,_6=(Ve.exports==null?{}:Ve.exports).implement,y6=(Ve.exports==null?{}:Ve.exports).Range,b6=(Ve.exports==null?{}:Ve.exports).applyDelta,w6=(Ve.exports==null?{}:Ve.exports).EventEmitter,x6=(Ve.exports==null?{}:Ve.exports).Anchor,S6=(Ve.exports==null?{}:Ve.exports).Document,C6=(Ve.exports==null?{}:Ve.exports).last,E6=(Ve.exports==null?{}:Ve.exports).stringReverse,O6=(Ve.exports==null?{}:Ve.exports).stringRepeat,$6=(Ve.exports==null?{}:Ve.exports).stringTrimLeft,T6=(Ve.exports==null?{}:Ve.exports).stringTrimRight,P6=(Ve.exports==null?{}:Ve.exports).copyObject,R6=(Ve.exports==null?{}:Ve.exports).copyArray,j6=(Ve.exports==null?{}:Ve.exports).deepCopy,M6=(Ve.exports==null?{}:Ve.exports).arrayToMap,I6=(Ve.exports==null?{}:Ve.exports).createMap,A6=(Ve.exports==null?{}:Ve.exports).arrayRemove,N6=(Ve.exports==null?{}:Ve.exports).escapeRegExp,k6=(Ve.exports==null?{}:Ve.exports).escapeHTML,L6=(Ve.exports==null?{}:Ve.exports).getMatchOffsets,F6=(Ve.exports==null?{}:Ve.exports).deferredCall,D6=(Ve.exports==null?{}:Ve.exports).delayedCall,B6=(Ve.exports==null?{}:Ve.exports).Mirror,z6=Object.freeze(Object.defineProperty({__proto__:null,Anchor:x6,Document:S6,EventEmitter:w6,Mirror:B6,Range:y6,applyDelta:b6,arrayRemove:A6,arrayToMap:M6,copyArray:R6,copyObject:P6,createMap:I6,deepCopy:j6,default:m6,deferredCall:F6,delayedCall:D6,escapeHTML:k6,escapeRegExp:N6,getMatchOffsets:L6,implement:_6,inherits:g6,last:C6,mixin:v6,stringRepeat:O6,stringReverse:E6,stringTrimLeft:$6,stringTrimRight:T6},Symbol.toStringTag,{value:"Module"}));var ze={exports:{}};(function(e){function t(o,i){for(var a=o,l="";a;){var s=i[a];if(typeof s=="string")return s+l;if(s)return s.location.replace(/\/*$/,"/")+(l||s.main||s.name);if(s===!1)return"";var c=a.lastIndexOf("/");if(c===-1)break;l=a.substr(c)+l,a=a.slice(0,c)}return o}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){var o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){var a=i.split("!");return e.normalizeModule(o,a[0])+"!"+e.normalizeModule(o,a[1])}if(i.charAt(0)=="."){var l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&s!=i;){var s=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);var l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);var s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);var l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){var s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(var i in o)acequire.tlns[i]=o[i]},e.initSender=function(){var o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};var n=e.main=null,r=e.sender=null;e.onmessage=function(o){var i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();var a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(var o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){var n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){var i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){var i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){var a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){var i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){var o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{var s=[o,1].concat(r.lines);n.splice.apply(n,s),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var c=r.end.column,u=r.end.row;o===u?n[o]=a.substring(0,i)+a.substring(c):n.splice(o,u-o+1,a.substring(0,i)+n[u].substring(c))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){var n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(var c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){var l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(var s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){var l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){var s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);var u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l){var s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){var c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[i];if(l){var s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){var n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){var u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){var u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),y=l.start,x=u?y:l.end;return i(s,y,c)?{row:s.row,column:s.column}:i(x,s,!c)?{row:s.row+f,column:s.column+(s.row==x.row?d:0)}:{row:y.row,column:y.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){var s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){var u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){var f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t){var n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){var c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
|
|
313
|
+
`).split(`
|
|
314
|
+
`)}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){var c=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
|
|
315
|
+
`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
316
|
+
`;case"unix":return`
|
|
317
|
+
`;default:return this.$autoNewLine||`
|
|
318
|
+
`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(s){return s==`\r
|
|
319
|
+
`||s=="\r"||s==`
|
|
320
|
+
`},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,c){return this.$lines.slice(s,c+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){var c;if(s.start.row===s.end.row)c=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{c=this.getLines(s.start.row,s.end.row),c[0]=(c[0]||"").substring(s.start.column);var u=c.length-1;s.end.row-s.start.row==u&&(c[u]=c[u].substring(0,s.end.column))}return c},this.insertLines=function(s,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,c)},this.removeLines=function(s,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,c)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,c){return 1>=this.getLength()&&this.$detectNewLine(c),this.insertMergedLines(s,this.$split(c))},this.insertInLine=function(s,c){var u=this.clippedPos(s.row,s.column),f=this.pos(s.row,s.column+c.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},this.clippedPos=function(s,c){var u=this.getLength();s===void 0?s=u:0>s?s=0:s>=u&&(s=u-1,c=void 0);var f=this.getLine(s);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:s,column:c}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,c){return{row:s,column:c}},this.$clipPosition=function(s){var c=this.getLength();return s.row>=c?(s.row=Math.max(0,c-1),s.column=this.getLine(c-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,c){s=Math.min(Math.max(s,0),this.getLength());var u=0;this.getLength()>s?(c=c.concat([""]),u=0):(c=[""].concat(c),s--,u=this.$lines[s].length),this.insertMergedLines({row:s,column:u},c)},this.insertMergedLines=function(s,c){var u=this.clippedPos(s.row,s.column),f={row:u.row+c.length-1,column:(c.length==1?u.column:0)+c[c.length-1].length};return this.applyDelta({start:u,end:f,action:"insert",lines:c}),this.clonePos(f)},this.remove=function(s){var c=this.clippedPos(s.start.row,s.start.column),u=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:c,end:u,action:"remove",lines:this.getLinesForRange({start:c,end:u})}),this.clonePos(c)},this.removeInLine=function(s,c,u){var f=this.clippedPos(s,c),d=this.clippedPos(s,u);return this.applyDelta({start:f,end:d,action:"remove",lines:this.getLinesForRange({start:f,end:d})},!0),this.clonePos(f)},this.removeFullLines=function(s,c){s=Math.min(Math.max(0,s),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var u=c==this.getLength()-1&&s>0,f=this.getLength()-1>c,d=u?s-1:s,y=u?this.getLine(d).length:0,x=f?c+1:c,E=f?0:this.getLine(x).length,h=new i(d,y,x,E),_=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),_},this.removeNewLine=function(s){this.getLength()-1>s&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,c){return s instanceof i||(s=i.fromPoints(s.start,s.end)),c.length===0&&s.isEmpty()?s.start:c==this.getTextRange(s)?s.end:(this.remove(s),c?this.insert(s.start,c):s.start)},this.applyDeltas=function(s){for(var c=0;s.length>c;c++)this.applyDelta(s[c])},this.revertDeltas=function(s){for(var c=s.length-1;c>=0;c--)this.revertDelta(s[c])},this.applyDelta=function(s,c){var u=s.action=="insert";(u?1>=s.lines.length&&!s.lines[0]:!i.comparePoints(s.start,s.end))||(u&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),r(this.$lines,s,c),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,c){for(var u=s.lines,f=u.length,d=s.start.row,y=s.start.column,x=0,E=0;;){x=E,E+=c-1;var h=u.slice(x,E);if(E>f){s.lines=h,s.start.row=d+x,s.start.column=y;break}h.push(""),this.applyDelta({start:this.pos(d+x,y),end:this.pos(d+E,y=0),action:s.action,lines:h},!0)}},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=c||0,y=u.length;y>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:y-1,column:u[y-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,y=Math.min(s.row,u.length),x=c||0;y>x;++x)d+=u[x].length+f;return d+s.column}}).call(l.prototype),t.Document=l}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t){t.last=function(o){return o[o.length-1]},t.stringReverse=function(o){return o.split("").reverse().join("")},t.stringRepeat=function(o,i){for(var a="";i>0;)1&i&&(a+=o),(i>>=1)&&(o+=o);return a};var n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(o){return o.replace(n,"")},t.stringTrimRight=function(o){return o.replace(r,"")},t.copyObject=function(o){var i={};for(var a in o)i[a]=o[a];return i},t.copyArray=function(o){for(var i=[],a=0,l=o.length;l>a;a++)i[a]=o[a]&&typeof o[a]=="object"?this.copyObject(o[a]):o[a];return i},t.deepCopy=function o(i){if(typeof i!="object"||!i)return i;var a;if(Array.isArray(i)){a=[];for(var l=0;i.length>l;l++)a[l]=o(i[l]);return a}if(Object.prototype.toString.call(i)!=="[object Object]")return i;a={};for(var l in i)a[l]=o(i[l]);return a},t.arrayToMap=function(o){for(var i={},a=0;o.length>a;a++)i[o[a]]=1;return i},t.createMap=function(o){var i=Object.create(null);for(var a in o)i[a]=o[a];return i},t.arrayRemove=function(o,i){for(var a=0;o.length>=a;a++)i===o[a]&&o.splice(a,1)},t.escapeRegExp=function(o){return o.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(o){return o.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},t.getMatchOffsets=function(o,i){var a=[];return o.replace(i,function(l){a.push({offset:arguments[arguments.length-2],length:l.length})}),a},t.deferredCall=function(o){var i=null,a=function(){i=null,o()},l=function(s){return l.cancel(),i=setTimeout(a,s||0),l};return l.schedule=l,l.call=function(){return this.cancel(),o(),l},l.cancel=function(){return clearTimeout(i),i=null,l},l.isPending=function(){return i},l},t.delayedCall=function(o,i){var a=null,l=function(){a=null,o()},s=function(c){a==null&&(a=setTimeout(l,c||i))};return s.delay=function(c){a&&clearTimeout(a),a=setTimeout(l,c||i)},s.schedule=s,s.call=function(){this.cancel(),o()},s.cancel=function(){a&&clearTimeout(a),a=null},s.isPending=function(){return a},s}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(e,t){e("../range").Range;var n=e("../document").Document,r=e("../lib/lang"),o=t.Mirror=function(i){this.sender=i;var a=this.doc=new n(""),l=this.deferredUpdate=r.delayedCall(this.onUpdate.bind(this)),s=this;i.on("change",function(c){var u=c.data;if(u[0].start)a.applyDeltas(u);else for(var f=0;u.length>f;f+=2){if(Array.isArray(u[f+1]))var d={action:"insert",start:u[f],lines:u[f+1]};else var d={action:"remove",start:u[f],end:u[f+1]};a.applyDelta(d,!0)}return s.$timeout?l.schedule(s.$timeout):(s.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(i){this.$timeout=i},this.setValue=function(i){this.doc.setValue(i),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(i){this.sender.callback(this.doc.getValue(),i)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){var e,t,n,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
321
|
+
`,r:"\r",t:" "},i=function(h){throw{name:"SyntaxError",message:h,at:e,text:n}},a=function(h){t=n.charAt(h),e=h+1},l=function(h){return h&&h!==t&&i("Expected '"+h+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(h,_){let p=e,m=n.indexOf(h,p);return m<0&&i(_),a(m+h.length),n.substring(p,m)},c=function(h){return n.substr(e,h.length)===h},u=function(){var h,_="";for(t==="-"&&(_="-",l("-"));t>="0"&&"9">=t;)_+=t,l();if(t===".")for(_+=".";l()&&t>="0"&&"9">=t;)_+=t;if(t==="e"||t==="E")for(_+=t,l(),(t==="-"||t==="+")&&(_+=t,l());t>="0"&&"9">=t;)_+=t,l();return h=+_,isNaN(h)?(i("Bad number"),void 0):h},f=function(){var h,_,p,m="";if(t==='"'){if(c('""'))return l('"'),l('"'),s('"""',`failed to find closing '"""'`);for(;l();){if(t==='"')return l(),m;if(t==="\\")if(l(),t==="u"){for(p=0,_=0;4>_&&(h=parseInt(l(),16),isFinite(h));_+=1)p=16*p+h;m+=String.fromCharCode(p)}else{if(typeof o[t]!="string")break;m+=o[t]}else m+=t}}i("Bad string")},d=function(){for(;t&&" ">=t;)l()},y=function(){switch(t){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}i("Unexpected '"+t+"'")},x=function(){var h=[];if(t==="["){if(l("["),d(),t==="]")return l("]"),h;for(;t;){if(h.push(r()),d(),t==="]")return l("]"),h;l(","),d()}}i("Bad array")},E=function(){var h,_={};if(t==="{"){if(l("{"),d(),t==="}")return l("}"),_;for(;t;){if(h=f(),d(),l(":"),Object.hasOwnProperty.call(_,h)&&i('Duplicate key "'+h+'"'),_[h]=r(),d(),t==="}")return l("}"),_;l(","),d()}}i("Bad object")};return r=function(){switch(d(),t){case"{":return E();case"[":return x();case'"':return f();case"-":return u();default:return t>="0"&&"9">=t?u():y()}},function(h,_){var p;return n=h,e=0,t=" ",p=r(),d(),t&&i("Syntax error"),typeof _=="function"?function m(g,b){var C,S,w=g[b];if(w&&typeof w=="object")for(C in w)Object.hasOwnProperty.call(w,C)&&(S=m(w,C),S!==void 0?w[C]=S:delete w[C]);return _.call(g,b,w)}({"":p},""):p}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(e,t){var n=e("../lib/oop"),r=e("../worker/mirror").Mirror,o=e("./json/json_parse"),i=t.JsonWorker=function(a){r.call(this,a),this.setTimeout(200)};n.inherits(i,r),(function(){this.onUpdate=function(){var a=this.doc.getValue(),l=[];try{a&&o(a)}catch(c){var s=this.doc.indexToPosition(c.at-1);l.push({row:s.row,column:s.column,text:c.message,type:"error"})}this.sender.emit("annotate",l)}}).call(i.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function e(){}function t(j){try{return Object.defineProperty(j,"sentinel",{}),"sentinel"in j}catch{}}function n(j){return j=+j,j!==j?j=0:j!==0&&j!==1/0&&j!==-1/0&&(j=(j>0||-1)*Math.floor(Math.abs(j))),j}Function.prototype.bind||(Function.prototype.bind=function(j){var H=this;if(typeof H!="function")throw new TypeError("Function.prototype.bind called on incompatible "+H);var U=f.call(arguments,1),D=function(){if(this instanceof D){var W=H.apply(this,U.concat(f.call(arguments)));return Object(W)===W?W:this}return H.apply(j,U.concat(f.call(arguments)))};return H.prototype&&(e.prototype=H.prototype,D.prototype=new e,e.prototype=null),D});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),y=s.bind(u.hasOwnProperty);if((l=y(u,"__defineGetter__"))&&(r=s.bind(u.__defineGetter__),o=s.bind(u.__defineSetter__),i=s.bind(u.__lookupGetter__),a=s.bind(u.__lookupSetter__)),[1,2].splice(0).length!=2)if(function(){function j(D){var W=Array(D+2);return W[0]=W[1]=0,W}var H,U=[];return U.splice.apply(U,j(20)),U.splice.apply(U,j(26)),H=U.length,U.splice(5,0,"XXX"),H+1==U.length?!0:void 0}()){var x=Array.prototype.splice;Array.prototype.splice=function(j,H){return arguments.length?x.apply(this,[j===void 0?0:j,H===void 0?this.length-j:H].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(j,H){var U=this.length;j>0?j>U&&(j=U):j==null?j=0:0>j&&(j=Math.max(U+j,0)),U>j+H||(H=U-j);var D=this.slice(j,j+H),W=f.call(arguments,2),A=W.length;if(j===U)A&&this.push.apply(this,W);else{var k=Math.min(H,U-j),G=j+k,Z=G+A-k,q=U-G,V=U-k;if(G>Z)for(var Y=0;q>Y;++Y)this[Z+Y]=this[G+Y];else if(Z>G)for(Y=q;Y--;)this[Z+Y]=this[G+Y];if(A&&j===V)this.length=V,this.push.apply(this,W);else for(this.length=V+A,Y=0;A>Y;++Y)this[j+Y]=W[Y]}return D};Array.isArray||(Array.isArray=function(j){return d(j)=="[object Array]"});var E=Object("a"),h=E[0]!="a"||!(0 in E);if(Array.prototype.forEach||(Array.prototype.forEach=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=arguments[1],W=-1,A=U.length>>>0;if(d(j)!="[object Function]")throw new TypeError;for(;A>++W;)W in U&&j.call(D,U[W],W,H)}),Array.prototype.map||(Array.prototype.map=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0,W=Array(D),A=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var k=0;D>k;k++)k in U&&(W[k]=j.call(A,U[k],k,H));return W}),Array.prototype.filter||(Array.prototype.filter=function(j){var H,U=X(this),D=h&&d(this)=="[object String]"?this.split(""):U,W=D.length>>>0,A=[],k=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var G=0;W>G;G++)G in D&&(H=D[G],j.call(k,H,G,U)&&A.push(H));return A}),Array.prototype.every||(Array.prototype.every=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0,W=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var A=0;D>A;A++)if(A in U&&!j.call(W,U[A],A,H))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0,W=arguments[1];if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");for(var A=0;D>A;A++)if(A in U&&j.call(W,U[A],A,H))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0;if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");if(!D&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var W,A=0;if(arguments.length>=2)W=arguments[1];else for(;;){if(A in U){W=U[A++];break}if(++A>=D)throw new TypeError("reduce of empty array with no initial value")}for(;D>A;A++)A in U&&(W=j.call(void 0,W,U[A],A,H));return W}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(j){var H=X(this),U=h&&d(this)=="[object String]"?this.split(""):H,D=U.length>>>0;if(d(j)!="[object Function]")throw new TypeError(j+" is not a function");if(!D&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var W,A=D-1;if(arguments.length>=2)W=arguments[1];else for(;;){if(A in U){W=U[A--];break}if(0>--A)throw new TypeError("reduceRight of empty array with no initial value")}do A in this&&(W=j.call(void 0,W,U[A],A,H));while(A--);return W}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(j){var H=h&&d(this)=="[object String]"?this.split(""):X(this),U=H.length>>>0;if(!U)return-1;var D=0;for(arguments.length>1&&(D=n(arguments[1])),D=D>=0?D:Math.max(0,U+D);U>D;D++)if(D in H&&H[D]===j)return D;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(j){var H=h&&d(this)=="[object String]"?this.split(""):X(this),U=H.length>>>0;if(!U)return-1;var D=U-1;for(arguments.length>1&&(D=Math.min(D,n(arguments[1]))),D=D>=0?D:U-Math.abs(D);D>=0;D--)if(D in H&&j===H[D])return D;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(j){return j.__proto__||(j.constructor?j.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){var _="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(j,H){if(typeof j!="object"&&typeof j!="function"||j===null)throw new TypeError(_+j);if(y(j,H)){var U,D,W;if(U={enumerable:!0,configurable:!0},l){var A=j.__proto__;j.__proto__=u;var D=i(j,H),W=a(j,H);if(j.__proto__=A,D||W)return D&&(U.get=D),W&&(U.set=W),U}return U.value=j[H],U}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(j){return Object.keys(j)}),!Object.create){var p;p=Object.prototype.__proto__===null?function(){return{__proto__:null}}:function(){var j={};for(var H in j)j[H]=null;return j.constructor=j.hasOwnProperty=j.propertyIsEnumerable=j.isPrototypeOf=j.toLocaleString=j.toString=j.valueOf=j.__proto__=null,j},Object.create=function(j,H){var U;if(j===null)U=p();else{if(typeof j!="object")throw new TypeError("typeof prototype["+typeof j+"] != 'object'");var D=function(){};D.prototype=j,U=new D,U.__proto__=j}return H!==void 0&&Object.defineProperties(U,H),U}}if(Object.defineProperty){var m=t({}),g=typeof document>"u"||t(document.createElement("div"));if(!m||!g)var b=Object.defineProperty}if(!Object.defineProperty||b){var C="Property description must be an object: ",S="Object.defineProperty called on non-object: ",w="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(j,H,U){if(typeof j!="object"&&typeof j!="function"||j===null)throw new TypeError(S+j);if(typeof U!="object"&&typeof U!="function"||U===null)throw new TypeError(C+U);if(b)try{return b.call(Object,j,H,U)}catch{}if(y(U,"value"))if(l&&(i(j,H)||a(j,H))){var D=j.__proto__;j.__proto__=u,delete j[H],j[H]=U.value,j.__proto__=D}else j[H]=U.value;else{if(!l)throw new TypeError(w);y(U,"get")&&r(j,H,U.get),y(U,"set")&&o(j,H,U.set)}return j}}Object.defineProperties||(Object.defineProperties=function(j,H){for(var U in H)y(H,U)&&Object.defineProperty(j,U,H[U]);return j}),Object.seal||(Object.seal=function(j){return j}),Object.freeze||(Object.freeze=function(j){return j});try{Object.freeze(function(){})}catch{Object.freeze=function(H){return function(U){return typeof U=="function"?U:H(U)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(j){return j}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(j){if(Object(j)===j)throw new TypeError;for(var H="";y(j,H);)H+="?";j[H]=!0;var U=y(j,H);return delete j[H],U}),!Object.keys){var O=!0,R=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],N=R.length;for(var P in{toString:null})O=!1;Object.keys=function(j){if(typeof j!="object"&&typeof j!="function"||j===null)throw new TypeError("Object.keys called on a non-object");var H=[];for(var U in j)y(j,U)&&H.push(U);if(O)for(var D=0,W=N;W>D;D++){var A=R[D];y(j,A)&&H.push(A)}return H}}Date.now||(Date.now=function(){return new Date().getTime()});var L=`
|
|
322
|
+
\v\f\r \u2028\u2029\uFEFF`;if(!String.prototype.trim||L.trim()){L="["+L+"]";var z=RegExp("^"+L+L+"*"),J=RegExp(L+L+"*$");String.prototype.trim=function(){return(this+"").replace(z,"").replace(J,"")}}var X=function(j){if(j==null)throw new TypeError("can't convert "+j+" to object");return Object(j)}});const q6=(ze.exports==null?{}:ze.exports).default||ze.exports,V6=(ze.exports==null?{}:ze.exports).inherits,H6=(ze.exports==null?{}:ze.exports).mixin,W6=(ze.exports==null?{}:ze.exports).implement,U6=(ze.exports==null?{}:ze.exports).Range,G6=(ze.exports==null?{}:ze.exports).applyDelta,K6=(ze.exports==null?{}:ze.exports).EventEmitter,X6=(ze.exports==null?{}:ze.exports).Anchor,Y6=(ze.exports==null?{}:ze.exports).Document,J6=(ze.exports==null?{}:ze.exports).last,Q6=(ze.exports==null?{}:ze.exports).stringReverse,Z6=(ze.exports==null?{}:ze.exports).stringRepeat,eq=(ze.exports==null?{}:ze.exports).stringTrimLeft,tq=(ze.exports==null?{}:ze.exports).stringTrimRight,nq=(ze.exports==null?{}:ze.exports).copyObject,rq=(ze.exports==null?{}:ze.exports).copyArray,oq=(ze.exports==null?{}:ze.exports).deepCopy,iq=(ze.exports==null?{}:ze.exports).arrayToMap,aq=(ze.exports==null?{}:ze.exports).createMap,sq=(ze.exports==null?{}:ze.exports).arrayRemove,lq=(ze.exports==null?{}:ze.exports).escapeRegExp,cq=(ze.exports==null?{}:ze.exports).escapeHTML,uq=(ze.exports==null?{}:ze.exports).getMatchOffsets,dq=(ze.exports==null?{}:ze.exports).deferredCall,fq=(ze.exports==null?{}:ze.exports).delayedCall,pq=(ze.exports==null?{}:ze.exports).Mirror,hq=(ze.exports==null?{}:ze.exports).JsonWorker,mq=Object.freeze(Object.defineProperty({__proto__:null,Anchor:X6,Document:Y6,EventEmitter:K6,JsonWorker:hq,Mirror:pq,Range:U6,applyDelta:G6,arrayRemove:sq,arrayToMap:iq,copyArray:rq,copyObject:nq,createMap:aq,deepCopy:oq,default:q6,deferredCall:dq,delayedCall:fq,escapeHTML:cq,escapeRegExp:lq,getMatchOffsets:uq,implement:W6,inherits:V6,last:J6,mixin:H6,stringRepeat:Z6,stringReverse:Q6,stringTrimLeft:eq,stringTrimRight:tq},Symbol.toStringTag,{value:"Module"}));return b4});
|