@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.
Files changed (163) hide show
  1. package/dist/_common-CMOqKs8V.cjs +1 -0
  2. package/dist/bulk-5mm3LC-n.cjs +1 -0
  3. package/dist/cat.aliases-DnMoMbH3.cjs +1 -0
  4. package/dist/cat.allocation-BM_YASyK.cjs +1 -0
  5. package/dist/cat.count-DtahJB4e.cjs +1 -0
  6. package/dist/cat.fielddata-Bf4DFcNn.cjs +1 -0
  7. package/dist/cat.health-B8rSXJl5.cjs +1 -0
  8. package/dist/cat.help-BBfM7V--.cjs +1 -0
  9. package/dist/cat.indices-B7dGCeWZ.cjs +1 -0
  10. package/dist/cat.master-BO1xbYN-.cjs +1 -0
  11. package/dist/cat.nodeattrs-CDPi2wGi.cjs +1 -0
  12. package/dist/cat.nodes-XNPR1TfD.cjs +1 -0
  13. package/dist/cat.pending_tasks-C3LGOdj_.cjs +1 -0
  14. package/dist/cat.plugins-BtvSUMfZ.cjs +1 -0
  15. package/dist/cat.recovery-DYY_mQze.cjs +1 -0
  16. package/dist/cat.repositories-DHM-neKo.cjs +1 -0
  17. package/dist/cat.segments-B7AYrkZs.cjs +1 -0
  18. package/dist/cat.shards-BFohEeDv.cjs +1 -0
  19. package/dist/cat.snapshots-B79mLWvF.cjs +1 -0
  20. package/dist/cat.tasks-DzXoXAP3.cjs +1 -0
  21. package/dist/cat.templates--VBAJ79z.cjs +1 -0
  22. package/dist/cat.thread_pool-Dve3vc7H.cjs +1 -0
  23. package/dist/clear_scroll-CGgyOrmQ.cjs +1 -0
  24. package/dist/clear_scroll-CoeqJJM6.cjs +1 -0
  25. package/dist/cluster.allocation_explain-5uMsnyRu.cjs +1 -0
  26. package/dist/cluster.delete_component_template-WYaVdav2.cjs +1 -0
  27. package/dist/cluster.get_component_template-uPK7ZXdY.cjs +1 -0
  28. package/dist/cluster.get_settings-C5WGvBat.cjs +1 -0
  29. package/dist/cluster.health-BIY-QH5E.cjs +1 -0
  30. package/dist/cluster.health-C9RtOTFZ.cjs +1 -0
  31. package/dist/cluster.pending_tasks-BByEdB17.cjs +1 -0
  32. package/dist/cluster.put_component_template-Bs8kvYYz.cjs +1 -0
  33. package/dist/cluster.put_component_template-Dpp0iPob.cjs +1 -0
  34. package/dist/cluster.put_settings-BufMweSm.cjs +1 -0
  35. package/dist/cluster.put_settings-CmVNw-la.cjs +1 -0
  36. package/dist/cluster.remote_info-D2lcZ1Ym.cjs +1 -0
  37. package/dist/cluster.reroute-CVmCu_5D.cjs +1 -0
  38. package/dist/cluster.reroute-Ca7B3s4P.cjs +1 -0
  39. package/dist/cluster.state-BZZfYTNi.cjs +1 -0
  40. package/dist/cluster.stats-Da5JRRh6.cjs +1 -0
  41. package/dist/count-C4MIuAZw.cjs +1 -0
  42. package/dist/count-XFzlrndY.cjs +1 -0
  43. package/dist/create-BNeLmmv4.cjs +1 -0
  44. package/dist/delete-DfL1cQ5-.cjs +1 -0
  45. package/dist/delete_by_query-CFDMiFmM.cjs +1 -0
  46. package/dist/delete_by_query_rethrottle-BykCpP0w.cjs +1 -0
  47. package/dist/delete_script-CV-JzzD3.cjs +1 -0
  48. package/dist/exists-3-a1BjWn.cjs +1 -0
  49. package/dist/exists_source-CZgoQsbu.cjs +1 -0
  50. package/dist/explain-CUI_flx7.cjs +1 -0
  51. package/dist/field_caps-Cun8gqi4.cjs +1 -0
  52. package/dist/get-DaALtELy.cjs +1 -0
  53. package/dist/get_script-DTHXjUfG.cjs +1 -0
  54. package/dist/get_script_context-oiMyBvK1.cjs +1 -0
  55. package/dist/get_script_languages-CLmFVKlG.cjs +1 -0
  56. package/dist/get_source-CPfBrc6C.cjs +1 -0
  57. package/dist/index-CsL0mn-5.cjs +1 -0
  58. package/dist/indices.analyze-ByoFggw9.cjs +1 -0
  59. package/dist/indices.analyze-Ca_LdrpG.cjs +1 -0
  60. package/dist/indices.clear_cache-_YwdaEs0.cjs +1 -0
  61. package/dist/indices.clone-8RL66eeg.cjs +1 -0
  62. package/dist/indices.clone-BUxFyBRc.cjs +1 -0
  63. package/dist/indices.close-DTa6uPUz.cjs +1 -0
  64. package/dist/indices.create-BiWtozmw.cjs +1 -0
  65. package/dist/indices.create-BxbZU62B.cjs +1 -0
  66. package/dist/indices.delete-CE2lZntY.cjs +1 -0
  67. package/dist/indices.delete_alias-DQYnlM2Z.cjs +1 -0
  68. package/dist/indices.delete_template-DkYccHYX.cjs +1 -0
  69. package/dist/indices.delete_template-KcMvxl6n.cjs +1 -0
  70. package/dist/indices.exists-Dwhj4QKp.cjs +1 -0
  71. package/dist/indices.exists_alias-7t7EFwPH.cjs +1 -0
  72. package/dist/indices.exists_template-CF_8-Wny.cjs +1 -0
  73. package/dist/indices.exists_template-CRpLrsu7.cjs +1 -0
  74. package/dist/indices.exists_type-wQ9DvIxA.cjs +1 -0
  75. package/dist/indices.flush-NSDkNUwg.cjs +1 -0
  76. package/dist/indices.flush_synced-Dl6Y4gsT.cjs +1 -0
  77. package/dist/indices.forcemerge-BySPCum-.cjs +1 -0
  78. package/dist/indices.get-BdIK83rw.cjs +1 -0
  79. package/dist/indices.get_alias-BnSvYNtw.cjs +1 -0
  80. package/dist/indices.get_field_mapping-CYG2wNHO.cjs +1 -0
  81. package/dist/indices.get_field_mapping-DXlWi4h4.cjs +1 -0
  82. package/dist/indices.get_mapping-CICPJLBi.cjs +1 -0
  83. package/dist/indices.get_mapping-CrtmSCvN.cjs +1 -0
  84. package/dist/indices.get_settings-DI3-Xphq.cjs +1 -0
  85. package/dist/indices.get_template-DGkghljU.cjs +1 -0
  86. package/dist/indices.get_template-DzPfsFeU.cjs +1 -0
  87. package/dist/indices.get_upgrade-Cwepj_3S.cjs +1 -0
  88. package/dist/indices.open-BPqJqVIp.cjs +1 -0
  89. package/dist/indices.put_alias-Cf6m-sUg.cjs +1 -0
  90. package/dist/indices.put_alias-Dl0nLnFj.cjs +1 -0
  91. package/dist/indices.put_mapping-CubbpiC5.cjs +1 -0
  92. package/dist/indices.put_settings-ApYmb-G6.cjs +1 -0
  93. package/dist/indices.put_settings-DlaEA2qI.cjs +1 -0
  94. package/dist/indices.put_template-CkmLUYRN.cjs +1 -0
  95. package/dist/indices.put_template-Y2qnGcJL.cjs +1 -0
  96. package/dist/indices.recovery-wXwYhDT0.cjs +1 -0
  97. package/dist/indices.refresh-D-1MhdaQ.cjs +1 -0
  98. package/dist/indices.rollover-CwmmlQz1.cjs +1 -0
  99. package/dist/indices.rollover-D8QUsaTN.cjs +1 -0
  100. package/dist/indices.segments-BNJbwGhI.cjs +1 -0
  101. package/dist/indices.shard_stores-D6RBlJlX.cjs +1 -0
  102. package/dist/indices.shrink-BskJk9Va.cjs +1 -0
  103. package/dist/indices.split-C031jsQI.cjs +1 -0
  104. package/dist/indices.stats-B2GKe51V.cjs +1 -0
  105. package/dist/indices.update_aliases-BSOeXVyL.cjs +1 -0
  106. package/dist/indices.update_aliases-DEi6eajk.cjs +1 -0
  107. package/dist/indices.upgrade-pZP_rCzh.cjs +1 -0
  108. package/dist/indices.validate_query-BmgN43C3.cjs +1 -0
  109. package/dist/indices.validate_query-DilTwlSI.cjs +1 -0
  110. package/dist/info-Bihl3ycX.cjs +1 -0
  111. package/dist/ingest.delete_pipeline-8sqPIBEw.cjs +1 -0
  112. package/dist/ingest.get_pipeline-CoyMO45r.cjs +1 -0
  113. package/dist/ingest.processor_grok-B-R3mNZz.cjs +1 -0
  114. package/dist/ingest.put_pipeline-C48N8VLb.cjs +1 -0
  115. package/dist/ingest.simulate-xTiA-ntV.cjs +1 -0
  116. package/dist/mget-CTm-_LOH.cjs +1 -0
  117. package/dist/msearch-D2RYRdg9.cjs +1 -0
  118. package/dist/msearch_template-D-5waRCZ.cjs +1 -0
  119. package/dist/mtermvectors-Iob1EyZq.cjs +1 -0
  120. package/dist/nodes.hot_threads-DtdspLBs.cjs +1 -0
  121. package/dist/nodes.info-B5qBn4bJ.cjs +1 -0
  122. package/dist/nodes.reload_secure_settings-IT7wkb4F.cjs +1 -0
  123. package/dist/nodes.stats-ByRup3kp.cjs +1 -0
  124. package/dist/nodes.usage-BOB6uZgC.cjs +1 -0
  125. package/dist/ping-BQ2zs_iF.cjs +1 -0
  126. package/dist/put_script-Wtk-J1KT.cjs +1 -0
  127. package/dist/rank_eval-XW5Sepg2.cjs +1 -0
  128. package/dist/reindex-BIG_sxiH.cjs +1 -0
  129. package/dist/reindex_rethrottle-CRN0zTwg.cjs +1 -0
  130. package/dist/render_search_template-ot0hZ0W8.cjs +1 -0
  131. package/dist/scripts_painless_execute-BZJwr2WZ.cjs +1 -0
  132. package/dist/scroll-Dl5sjO9s.cjs +1 -0
  133. package/dist/search-Bsayi2Z7.cjs +1 -0
  134. package/dist/search_shards-CQHOad6m.cjs +1 -0
  135. package/dist/search_template-BjlH72xD.cjs +1 -0
  136. package/dist/snapshot.cleanup_repository-DhLuWH_4.cjs +1 -0
  137. package/dist/snapshot.create-Cikcfjas.cjs +1 -0
  138. package/dist/snapshot.create-D305SikA.cjs +1 -0
  139. package/dist/snapshot.create_repository-CJ-t7HOq.cjs +1 -0
  140. package/dist/snapshot.create_repository-DSfPE9Re.cjs +1 -0
  141. package/dist/snapshot.delete-LRvaQDyl.cjs +1 -0
  142. package/dist/snapshot.delete_repository-BaNhSl9L.cjs +1 -0
  143. package/dist/snapshot.get-RH1NvbXk.cjs +1 -0
  144. package/dist/snapshot.get_repository-BUSeINoE.cjs +1 -0
  145. package/dist/snapshot.restore-D11iTuaW.cjs +1 -0
  146. package/dist/snapshot.restore-DTrdiduA.cjs +1 -0
  147. package/dist/snapshot.status-BJ3wLJ-6.cjs +1 -0
  148. package/dist/snapshot.verify_repository-BAovUJEf.cjs +1 -0
  149. package/dist/tasks.cancel-uev3HNwn.cjs +1 -0
  150. package/dist/tasks.get-Dx5AatEN.cjs +1 -0
  151. package/dist/tasks.list-DF8jKoLv.cjs +1 -0
  152. package/dist/termvectors-CCD0RzNB.cjs +1 -0
  153. package/dist/update-Df56o2sS.cjs +1 -0
  154. package/dist/update_by_query-C99J5V_Y.cjs +1 -0
  155. package/dist/update_by_query-Cg4ruhuj.cjs +1 -0
  156. package/dist/update_by_query_rethrottle-SiTIU_2D.cjs +1 -0
  157. package/dist/webCli.cjs +303 -0
  158. package/dist/webCli.iife.js +322 -0
  159. package/dist/webCli.js +32016 -75970
  160. package/dist/webCli.umd.cjs +322 -0
  161. package/dist/worker-COMjIpIG.cjs +10 -0
  162. package/dist/x_json.ace.worker-ClEhbr73.cjs +11 -0
  163. package/package.json +3 -3
@@ -0,0 +1,303 @@
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
+ "use strict";var vC=Object.defineProperty;var yC=(e,t,n)=>t in e?vC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ep=(e,t,n)=>yC(e,typeof t!="symbol"?t+"":t,n);const I=require("react"),Cr=require("@ant-design/icons"),bC=require("re-resizable"),iu=require("react-dnd"),_C=require("react-dnd-html5-backend"),de=require("classnames"),_o=require("react-dom"),pv=require("resize-observer-polyfill"),Ze=require("brace"),tn=require("react-intl"),be=require("lodash"),Rt=require("jquery"),wC=require("query-string");require("minimatch");require("@hapi/boom");const hl=require("immer"),CC=require("rxjs"),xC=require("uuid");function Vf(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 h=Vf(I),SC=Vf(_o),EC=Vf(xC);function RC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hv={exports:{}},Vt=hv.exports={},rr,or;function au(){throw new Error("setTimeout has not been defined")}function su(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?rr=setTimeout:rr=au}catch{rr=au}try{typeof clearTimeout=="function"?or=clearTimeout:or=su}catch{or=su}})();function mv(e){if(rr===setTimeout)return setTimeout(e,0);if((rr===au||!rr)&&setTimeout)return rr=setTimeout,setTimeout(e,0);try{return rr(e,0)}catch{try{return rr.call(null,e,0)}catch{return rr.call(this,e,0)}}}function OC(e){if(or===clearTimeout)return clearTimeout(e);if((or===su||!or)&&clearTimeout)return or=clearTimeout,clearTimeout(e);try{return or(e)}catch{try{return or.call(null,e)}catch{return or.call(this,e)}}}var _r=[],ai=!1,co,_s=-1;function $C(){!ai||!co||(ai=!1,co.length?_r=co.concat(_r):_s=-1,_r.length&&gv())}function gv(){if(!ai){var e=mv($C);ai=!0;for(var t=_r.length;t;){for(co=_r,_r=[];++_s<t;)co&&co[_s].run();_s=-1,t=_r.length}co=null,ai=!1,OC(e)}}Vt.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];_r.push(new vv(e,t)),_r.length===1&&!ai&&mv(gv)};function vv(e,t){this.fun=e,this.array=t}vv.prototype.run=function(){this.fun.apply(null,this.array)};Vt.title="browser";Vt.browser=!0;Vt.env={};Vt.argv=[];Vt.version="";Vt.versions={};function Tr(){}Vt.on=Tr;Vt.addListener=Tr;Vt.once=Tr;Vt.off=Tr;Vt.removeListener=Tr;Vt.removeAllListeners=Tr;Vt.emit=Tr;Vt.prependListener=Tr;Vt.prependOnceListener=Tr;Vt.listeners=function(e){return[]};Vt.binding=function(e){throw new Error("process.binding is not supported")};Vt.cwd=function(){return"/"};Vt.chdir=function(e){throw new Error("process.chdir is not supported")};Vt.umask=function(){return 0};var TC=hv.exports;const ne=RC(TC);var bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yv(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 lu={exports:{}},Ai={};/**
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 Rp;function PC(){if(Rp)return Ai;Rp=1;var e=I,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(s,l,c){var u,p={},d=null,y=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(y=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(p[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)p[u]===void 0&&(p[u]=l[u]);return{$$typeof:t,type:s,key:d,ref:y,props:p,_owner:o.current}}return Ai.Fragment=n,Ai.jsx=a,Ai.jsxs=a,Ai}var Mi={},Op;function NC(){return Op||(Op=1,ne.env.NODE_ENV!=="production"&&function(){var e=I,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"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),_=Symbol.iterator,x="@@iterator";function g(X){if(X===null||typeof X!="object")return null;var ue=_&&X[_]||X[x];return typeof ue=="function"?ue:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(X){{for(var ue=arguments.length,ye=new Array(ue>1?ue-1:0),Re=1;Re<ue;Re++)ye[Re-1]=arguments[Re];m("error",X,ye)}}function m(X,ue,ye){{var Re=v.ReactDebugCurrentFrame,Le=Re.getStackAddendum();Le!==""&&(ue+="%s",ye=ye.concat([Le]));var je=ye.map(function(De){return String(De)});je.unshift("Warning: "+ue),Function.prototype.apply.call(console[X],console,je)}}var b=!1,C=!1,E=!1,S=!1,w=!1,O;O=Symbol.for("react.module.reference");function P(X){return!!(typeof X=="string"||typeof X=="function"||X===r||X===i||w||X===o||X===c||X===u||S||X===y||b||C||E||typeof X=="object"&&X!==null&&(X.$$typeof===d||X.$$typeof===p||X.$$typeof===a||X.$$typeof===s||X.$$typeof===l||X.$$typeof===O||X.getModuleId!==void 0))}function A(X,ue,ye){var Re=X.displayName;if(Re)return Re;var Le=ue.displayName||ue.name||"";return Le!==""?ye+"("+Le+")":ye}function T(X){return X.displayName||"Context"}function L(X){if(X==null)return null;if(typeof X.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof X=="function")return X.displayName||X.name||null;if(typeof X=="string")return X;switch(X){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 X=="object")switch(X.$$typeof){case s:var ue=X;return T(ue)+".Consumer";case a:var ye=X;return T(ye._context)+".Provider";case l:return A(X,X.render,"ForwardRef");case p:var Re=X.displayName||null;return Re!==null?Re:L(X.type)||"Memo";case d:{var Le=X,je=Le._payload,De=Le._init;try{return L(De(je))}catch{return null}}}return null}var D=Object.assign,Q=0,G,z,Y,ee,W,U,j;function M(){}M.__reactDisabledLog=!0;function H(){{if(Q===0){G=console.log,z=console.info,Y=console.warn,ee=console.error,W=console.group,U=console.groupCollapsed,j=console.groupEnd;var X={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:X,log:X,warn:X,error:X,group:X,groupCollapsed:X,groupEnd:X})}Q++}}function J(){{if(Q--,Q===0){var X={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},X,{value:G}),info:D({},X,{value:z}),warn:D({},X,{value:Y}),error:D({},X,{value:ee}),group:D({},X,{value:W}),groupCollapsed:D({},X,{value:U}),groupEnd:D({},X,{value:j})})}Q<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=v.ReactCurrentDispatcher,q;function K(X,ue,ye){{if(q===void 0)try{throw Error()}catch(Le){var Re=Le.stack.trim().match(/\n( *(at )?)/);q=Re&&Re[1]||""}return`
11
+ `+q+X}}var re=!1,se;{var k=typeof WeakMap=="function"?WeakMap:Map;se=new k}function F(X,ue){if(!X||re)return"";{var ye=se.get(X);if(ye!==void 0)return ye}var Re;re=!0;var Le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var je;je=B.current,B.current=null,H();try{if(ue){var De=function(){throw Error()};if(Object.defineProperty(De.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(De,[])}catch(At){Re=At}Reflect.construct(X,[],De)}else{try{De.call()}catch(At){Re=At}X.call(De.prototype)}}else{try{throw Error()}catch(At){Re=At}X()}}catch(At){if(At&&Re&&typeof At.stack=="string"){for(var qe=At.stack.split(`
12
+ `),_t=Re.stack.split(`
13
+ `),dt=qe.length-1,Ke=_t.length-1;dt>=1&&Ke>=0&&qe[dt]!==_t[Ke];)Ke--;for(;dt>=1&&Ke>=0;dt--,Ke--)if(qe[dt]!==_t[Ke]){if(dt!==1||Ke!==1)do if(dt--,Ke--,Ke<0||qe[dt]!==_t[Ke]){var Mt=`
14
+ `+qe[dt].replace(" at new "," at ");return X.displayName&&Mt.includes("<anonymous>")&&(Mt=Mt.replace("<anonymous>",X.displayName)),typeof X=="function"&&se.set(X,Mt),Mt}while(dt>=1&&Ke>=0);break}}}finally{re=!1,B.current=je,J(),Error.prepareStackTrace=Le}var hn=X?X.displayName||X.name:"",Gt=hn?K(hn):"";return typeof X=="function"&&se.set(X,Gt),Gt}function ae(X,ue,ye){return F(X,!1)}function Z(X){var ue=X.prototype;return!!(ue&&ue.isReactComponent)}function me(X,ue,ye){if(X==null)return"";if(typeof X=="function")return F(X,Z(X));if(typeof X=="string")return K(X);switch(X){case c:return K("Suspense");case u:return K("SuspenseList")}if(typeof X=="object")switch(X.$$typeof){case l:return ae(X.render);case p:return me(X.type,ue,ye);case d:{var Re=X,Le=Re._payload,je=Re._init;try{return me(je(Le),ue,ye)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,Ce={},Me=v.ReactDebugCurrentFrame;function ce(X){if(X){var ue=X._owner,ye=me(X.type,X._source,ue?ue.type:null);Me.setExtraStackFrame(ye)}else Me.setExtraStackFrame(null)}function Ie(X,ue,ye,Re,Le){{var je=Function.call.bind(pe);for(var De in X)if(je(X,De)){var qe=void 0;try{if(typeof X[De]!="function"){var _t=Error((Re||"React class")+": "+ye+" type `"+De+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof X[De]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _t.name="Invariant Violation",_t}qe=X[De](ue,De,Re,ye,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(dt){qe=dt}qe&&!(qe instanceof Error)&&(ce(Le),f("%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).",Re||"React class",ye,De,typeof qe),ce(null)),qe instanceof Error&&!(qe.message in Ce)&&(Ce[qe.message]=!0,ce(Le),f("Failed %s type: %s",ye,qe.message),ce(null))}}}var Pe=Array.isArray;function Oe(X){return Pe(X)}function ve(X){{var ue=typeof Symbol=="function"&&Symbol.toStringTag,ye=ue&&X[Symbol.toStringTag]||X.constructor.name||"Object";return ye}}function we(X){try{return Se(X),!1}catch{return!0}}function Se(X){return""+X}function Ee(X){if(we(X))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ve(X)),Se(X)}var Ve=v.ReactCurrentOwner,He={key:!0,ref:!0,__self:!0,__source:!0},Xe,ft,mt;mt={};function ct(X){if(pe.call(X,"ref")){var ue=Object.getOwnPropertyDescriptor(X,"ref").get;if(ue&&ue.isReactWarning)return!1}return X.ref!==void 0}function ze(X){if(pe.call(X,"key")){var ue=Object.getOwnPropertyDescriptor(X,"key").get;if(ue&&ue.isReactWarning)return!1}return X.key!==void 0}function Ne(X,ue){if(typeof X.ref=="string"&&Ve.current&&ue&&Ve.current.stateNode!==ue){var ye=L(Ve.current.type);mt[ye]||(f('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(Ve.current.type),X.ref),mt[ye]=!0)}}function st(X,ue){{var ye=function(){Xe||(Xe=!0,f("%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)",ue))};ye.isReactWarning=!0,Object.defineProperty(X,"key",{get:ye,configurable:!0})}}function rt(X,ue){{var ye=function(){ft||(ft=!0,f("%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)",ue))};ye.isReactWarning=!0,Object.defineProperty(X,"ref",{get:ye,configurable:!0})}}var Ye=function(X,ue,ye,Re,Le,je,De){var qe={$$typeof:t,type:X,key:ue,ref:ye,props:De,_owner:je};return qe._store={},Object.defineProperty(qe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.defineProperty(qe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Le}),Object.freeze&&(Object.freeze(qe.props),Object.freeze(qe)),qe};function Ot(X,ue,ye,Re,Le){{var je,De={},qe=null,_t=null;ye!==void 0&&(Ee(ye),qe=""+ye),ze(ue)&&(Ee(ue.key),qe=""+ue.key),ct(ue)&&(_t=ue.ref,Ne(ue,Le));for(je in ue)pe.call(ue,je)&&!He.hasOwnProperty(je)&&(De[je]=ue[je]);if(X&&X.defaultProps){var dt=X.defaultProps;for(je in dt)De[je]===void 0&&(De[je]=dt[je])}if(qe||_t){var Ke=typeof X=="function"?X.displayName||X.name||"Unknown":X;qe&&st(De,Ke),_t&&rt(De,Ke)}return Ye(X,qe,_t,Le,Re,Ve.current,De)}}var Dt=v.ReactCurrentOwner,Ut=v.ReactDebugCurrentFrame;function gt(X){if(X){var ue=X._owner,ye=me(X.type,X._source,ue?ue.type:null);Ut.setExtraStackFrame(ye)}else Ut.setExtraStackFrame(null)}var $t;$t=!1;function Qe(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function lt(){{if(Dt.current){var X=L(Dt.current.type);if(X)return`
15
+
16
+ Check the render method of \``+X+"`."}return""}}function Tt(X){return""}var Ge={};function ke(X){{var ue=lt();if(!ue){var ye=typeof X=="string"?X:X.displayName||X.name;ye&&(ue=`
17
+
18
+ Check the top-level render call using <`+ye+">.")}return ue}}function N(X,ue){{if(!X._store||X._store.validated||X.key!=null)return;X._store.validated=!0;var ye=ke(ue);if(Ge[ye])return;Ge[ye]=!0;var Re="";X&&X._owner&&X._owner!==Dt.current&&(Re=" It was passed a child from "+L(X._owner.type)+"."),gt(X),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,Re),gt(null)}}function R(X,ue){{if(typeof X!="object")return;if(Oe(X))for(var ye=0;ye<X.length;ye++){var Re=X[ye];Qe(Re)&&N(Re,ue)}else if(Qe(X))X._store&&(X._store.validated=!0);else if(X){var Le=g(X);if(typeof Le=="function"&&Le!==X.entries)for(var je=Le.call(X),De;!(De=je.next()).done;)Qe(De.value)&&N(De.value,ue)}}}function $(X){{var ue=X.type;if(ue==null||typeof ue=="string")return;var ye;if(typeof ue=="function")ye=ue.propTypes;else if(typeof ue=="object"&&(ue.$$typeof===l||ue.$$typeof===p))ye=ue.propTypes;else return;if(ye){var Re=L(ue);Ie(ye,X.props,"prop",Re,X)}else if(ue.PropTypes!==void 0&&!$t){$t=!0;var Le=L(ue);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Le||"Unknown")}typeof ue.getDefaultProps=="function"&&!ue.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function V(X){{for(var ue=Object.keys(X.props),ye=0;ye<ue.length;ye++){var Re=ue[ye];if(Re!=="children"&&Re!=="key"){gt(X),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Re),gt(null);break}}X.ref!==null&&(gt(X),f("Invalid attribute `ref` supplied to `React.Fragment`."),gt(null))}}var te={};function le(X,ue,ye,Re,Le,je){{var De=P(X);if(!De){var qe="";(X===void 0||typeof X=="object"&&X!==null&&Object.keys(X).length===0)&&(qe+=" 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 _t=Tt();_t?qe+=_t:qe+=lt();var dt;X===null?dt="null":Oe(X)?dt="array":X!==void 0&&X.$$typeof===t?(dt="<"+(L(X.type)||"Unknown")+" />",qe=" Did you accidentally export a JSX literal instead of a component?"):dt=typeof X,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",dt,qe)}var Ke=Ot(X,ue,ye,Le,je);if(Ke==null)return Ke;if(De){var Mt=ue.children;if(Mt!==void 0)if(Re)if(Oe(Mt)){for(var hn=0;hn<Mt.length;hn++)R(Mt[hn],X);Object.freeze&&Object.freeze(Mt)}else f("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 R(Mt,X)}if(pe.call(ue,"key")){var Gt=L(X),At=Object.keys(ue).filter(function(Rn){return Rn!=="key"}),fr=At.length>0?"{key: someKey, "+At.join(": ..., ")+": ...}":"{key: someKey}";if(!te[Gt+fr]){var dr=At.length>0?"{"+At.join(": ..., ")+": ...}":"{}";f(`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} />`,fr,Gt,dr,Gt),te[Gt+fr]=!0}}return X===r?V(Ke):$(Ke),Ke}}function ge(X,ue,ye){return le(X,ue,ye,!0)}function Fe(X,ue,ye){return le(X,ue,ye,!1)}var Je=Fe,et=ge;Mi.Fragment=r,Mi.jsx=Je,Mi.jsxs=et}()),Mi}ne.env.NODE_ENV==="production"?lu.exports=PC():lu.exports=NC();var fe=lu.exports;function Te(){return Te=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},Te.apply(null,arguments)}var cu={exports:{}},vt={};/**
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 $p;function IC(){if($p)return vt;$p=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"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function x(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case n:case o:case r:case c:case u:return g;default:switch(g=g&&g.$$typeof,g){case s:case a:case l:case d:case p:case i:return g;default:return v}}case t:return v}}}return vt.ContextConsumer=a,vt.ContextProvider=i,vt.Element=e,vt.ForwardRef=l,vt.Fragment=n,vt.Lazy=d,vt.Memo=p,vt.Portal=t,vt.Profiler=o,vt.StrictMode=r,vt.Suspense=c,vt.SuspenseList=u,vt.isAsyncMode=function(){return!1},vt.isConcurrentMode=function(){return!1},vt.isContextConsumer=function(g){return x(g)===a},vt.isContextProvider=function(g){return x(g)===i},vt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},vt.isForwardRef=function(g){return x(g)===l},vt.isFragment=function(g){return x(g)===n},vt.isLazy=function(g){return x(g)===d},vt.isMemo=function(g){return x(g)===p},vt.isPortal=function(g){return x(g)===t},vt.isProfiler=function(g){return x(g)===o},vt.isStrictMode=function(g){return x(g)===r},vt.isSuspense=function(g){return x(g)===c},vt.isSuspenseList=function(g){return x(g)===u},vt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===u||g===y||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===p||g.$$typeof===i||g.$$typeof===a||g.$$typeof===l||g.$$typeof===_||g.getModuleId!==void 0)},vt.typeOf=x,vt}var yt={},Tp;function AC(){return Tp||(Tp=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"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),_=!1,x=!1,g=!1,v=!1,f=!1,m;m=Symbol.for("react.module.reference");function b(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===n||Z===o||f||Z===r||Z===c||Z===u||v||Z===y||_||x||g||typeof Z=="object"&&Z!==null&&(Z.$$typeof===d||Z.$$typeof===p||Z.$$typeof===i||Z.$$typeof===a||Z.$$typeof===l||Z.$$typeof===m||Z.getModuleId!==void 0))}function C(Z){if(typeof Z=="object"&&Z!==null){var me=Z.$$typeof;switch(me){case e:var pe=Z.type;switch(pe){case n:case o:case r:case c:case u:return pe;default:var Ce=pe&&pe.$$typeof;switch(Ce){case s:case a:case l:case d:case p:case i:return Ce;default:return me}}case t:return me}}}var E=a,S=i,w=e,O=l,P=n,A=d,T=p,L=t,D=o,Q=r,G=c,z=u,Y=!1,ee=!1;function W(Z){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(Z){return ee||(ee=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(Z){return C(Z)===a}function M(Z){return C(Z)===i}function H(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function J(Z){return C(Z)===l}function B(Z){return C(Z)===n}function q(Z){return C(Z)===d}function K(Z){return C(Z)===p}function re(Z){return C(Z)===t}function se(Z){return C(Z)===o}function k(Z){return C(Z)===r}function F(Z){return C(Z)===c}function ae(Z){return C(Z)===u}yt.ContextConsumer=E,yt.ContextProvider=S,yt.Element=w,yt.ForwardRef=O,yt.Fragment=P,yt.Lazy=A,yt.Memo=T,yt.Portal=L,yt.Profiler=D,yt.StrictMode=Q,yt.Suspense=G,yt.SuspenseList=z,yt.isAsyncMode=W,yt.isConcurrentMode=U,yt.isContextConsumer=j,yt.isContextProvider=M,yt.isElement=H,yt.isForwardRef=J,yt.isFragment=B,yt.isLazy=q,yt.isMemo=K,yt.isPortal=re,yt.isProfiler=se,yt.isStrictMode=k,yt.isSuspense=F,yt.isSuspenseList=ae,yt.isValidElementType=b,yt.typeOf=C}()),yt}ne.env.NODE_ENV==="production"?cu.exports=IC():cu.exports=AC();var Ui=cu.exports;function wo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return I.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(wo(r)):Ui.isFragment(r)&&r.props?n=n.concat(wo(r.props.children,t)):n.push(r))}),n}var uu={},Wf=[],MC=function(t){Wf.push(t)};function Vr(e,t){if(ne.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Wf.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function jC(e,t){if(ne.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Wf.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function bv(){uu={}}function _v(e,t,n){!t&&!uu[n]&&(e(!1,n),uu[n]=!0)}function pt(e,t){_v(Vr,e,t)}function kC(e,t){_v(jC,e,t)}pt.preMessage=MC;pt.resetWarned=bv;pt.noteOnce=kC;function Be(e){"@babel/helpers - typeof";return Be=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},Be(e)}function LC(e,t){if(Be(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Be(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wv(e){var t=LC(e,"string");return Be(t)=="symbol"?t:t+""}function oe(e,t,n){return(t=wv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pp(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?Pp(Object(n),!0).forEach(function(r){oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ra(e){return e instanceof HTMLElement||e instanceof SVGElement}function Cv(e){return e&&Be(e)==="object"&&ra(e.nativeElement)?e.nativeElement:ra(e)?e:null}function ws(e){var t=Cv(e);if(t)return t;if(e instanceof I.Component){var n;return(n=_o.findDOMNode)===null||n===void 0?void 0:n.call(_o,e)}return null}function ml(e,t,n){var r=h.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Uf=function(t,n){typeof t=="function"?t(n):Be(t)==="object"&&t&&"current"in t&&(t.current=n)},Yn=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){Uf(a,i)})}},bi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ml(function(){return Yn.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},Kr=function(t){var n,r,o=Ui.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Ui.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Ui.ForwardRef)};function Np(e){return I.isValidElement(e)&&!Ui.isFragment(e)}Number(I.version.split(".")[0])>=19;var fu=h.createContext(null);function FC(e){var t=e.children,n=e.onBatchResize,r=h.useRef(0),o=h.useRef([]),i=h.useContext(fu),a=h.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(s,l,c)},[n,i]);return h.createElement(fu.Provider,{value:a},t)}var wr=new Map;function xv(e){e.forEach(function(t){var n,r=t.target;(n=wr.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Sv=new pv(xv);ne.env.NODE_ENV;ne.env.NODE_ENV;function DC(e,t){wr.has(e)||(wr.set(e,new Set),Sv.observe(e)),wr.get(e).add(t)}function BC(e,t){wr.has(e)&&(wr.get(e).delete(t),wr.get(e).size||(Sv.unobserve(e),wr.delete(e)))}function rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ip(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,wv(r.key),r)}}function on(e,t,n){return t&&Ip(e.prototype,t),n&&Ip(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oa(e,t){return oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},oa(e,t)}function Xr(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&&oa(e,t)}function ia(e){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ia(e)}function Gf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gf=function(){return!!e})()}function tt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zC(e,t){if(t&&(Be(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tt(e)}function Yr(e){var t=Gf();return function(){var n,r=ia(e);if(t){var o=ia(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zC(this,n)}}var qC=function(e){Xr(n,e);var t=Yr(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function VC(e,t){var n=e.children,r=e.disabled,o=h.useRef(null),i=h.useRef(null),a=h.useContext(fu),s=typeof n=="function",l=s?n(o):n,c=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&h.isValidElement(l)&&Kr(l),p=u?l.ref:null,d=bi(p,o),y=function(){var v;return ws(o.current)||(o.current&&Be(o.current)==="object"?ws((v=o.current)===null||v===void 0?void 0:v.nativeElement):null)||ws(i.current)};h.useImperativeHandle(t,function(){return y()});var _=h.useRef(e);_.current=e;var x=h.useCallback(function(g){var v=_.current,f=v.onResize,m=v.data,b=g.getBoundingClientRect(),C=b.width,E=b.height,S=g.offsetWidth,w=g.offsetHeight,O=Math.floor(C),P=Math.floor(E);if(c.current.width!==O||c.current.height!==P||c.current.offsetWidth!==S||c.current.offsetHeight!==w){var A={width:O,height:P,offsetWidth:S,offsetHeight:w};c.current=A;var T=S===Math.round(C)?C:S,L=w===Math.round(E)?E:w,D=ie(ie({},A),{},{offsetWidth:T,offsetHeight:L});a==null||a(D,g,m),f&&Promise.resolve().then(function(){f(D,g)})}},[]);return h.useEffect(function(){var g=y();return g&&!r&&DC(g,x),function(){return BC(g,x)}},[o.current,r]),h.createElement(qC,{ref:i},u?h.cloneElement(l,{ref:d}):l)}var Ev=h.forwardRef(VC);ne.env.NODE_ENV!=="production"&&(Ev.displayName="SingleObserver");var HC="rc-observer-key";function WC(e,t){var n=e.children,r=typeof n=="function"?[n]:wo(n);return ne.env.NODE_ENV!=="production"&&(r.length>1?Vr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Vr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(HC,"-").concat(i);return h.createElement(Ev,Te({},e,{key:a,ref:i===0?t:void 0}),o)})}var cr=h.forwardRef(WC);ne.env.NODE_ENV!=="production"&&(cr.displayName="ResizeObserver");cr.Collection=FC;function Qn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function du(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 UC(e){if(Array.isArray(e))return du(e)}function Rv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kf(e,t){if(e){if(typeof e=="string")return du(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)?du(e,t):void 0}}function GC(){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 xe(e){return UC(e)||Rv(e)||Kf(e)||GC()}var Ov=function(t){return+setTimeout(t,16)},$v=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Ov=function(t){return window.requestAnimationFrame(t)},$v=function(t){return window.cancelAnimationFrame(t)});var Ap=0,gl=new Map;function Tv(e){gl.delete(e)}var Lt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ap+=1;var r=Ap;function o(i){if(i===0)Tv(r),t();else{var a=Ov(function(){o(i-1)});gl.set(r,a)}}return o(n),r};Lt.cancel=function(e){var t=gl.get(e);return Tv(e),$v(t)};ne.env.NODE_ENV!=="production"&&(Lt.ids=function(){return gl});function Pv(e){if(Array.isArray(e))return e}function KC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Nv(){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 Pv(e)||KC(e,t)||Kf(e,t)||Nv()}function aa(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 dn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function pu(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 Mp="data-rc-order",jp="data-rc-priority",XC="rc-util-key",hu=new Map;function Iv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):XC}function vl(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function YC(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Xf(e){return Array.from((hu.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Av(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!dn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=YC(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Mp,a),s&&i&&l.setAttribute(jp,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=vl(t),u=c.firstChild;if(r){if(s){var p=(t.styles||Xf(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(Mp)))return!1;var y=Number(d.getAttribute(jp)||0);return i>=y});if(p.length)return c.insertBefore(l,p[p.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Mv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=vl(t);return(t.styles||Xf(n)).find(function(r){return r.getAttribute(Iv(t))===e})}function sa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Mv(e,t);if(n){var r=vl(t);r.removeChild(n)}}function QC(e,t){var n=hu.get(e);if(!n||!pu(document,n)){var r=Av("",t),o=r.parentNode;hu.set(e,o),e.removeChild(r)}}function xr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=vl(n),o=Xf(r),i=ie(ie({},n),{},{styles:o});QC(r,i);var a=Mv(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.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=Av(e,i);return u.setAttribute(Iv(i),t),u}function JC(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 nt(e,t){if(e==null)return{};var n,r,o=JC(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 la(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(pt(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+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&&Be(i)==="object"&&Be(a)==="object"){var p=Object.keys(i);return p.length!==Object.keys(a).length?!1:p.every(function(d){return o(i[d],a[d],c)})}return!1}return o(e,t)}var ZC="%";function mu(e){return e.join(ZC)}var ex=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(mu(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(mu(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}(),di="data-token-hash",Un="data-css-hash",tx="data-cache-path",Dr="__cssinjs_instance__";function nx(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Un,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Dr]=o[Dr]||e,o[Dr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Un,"]"))).forEach(function(o){var i=o.getAttribute(Un);if(r[i]){if(o[Dr]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new ex(e)}var yl=h.createContext({hashPriority:"low",cache:nx(),defaultCache:!0});function rx(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 Yf=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(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(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 p=he(c,2),d=p[1];return o.internalGet(u)[1]<d?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=he(i,1),s=a[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else{var p=l.get(c);p?p.map||(p.map=new Map):l.set(c,{map:new Map}),l=l.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!rx(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();oe(Yf,"MAX_CACHE_SIZE",20);oe(Yf,"MAX_CACHE_OFFSET",5);var kp=0,jv=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=kp,t.length===0&&Vr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),kp+=1}return on(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Ql=new Yf;function gu(e){var t=Array.isArray(e)?e:[e];return Ql.has(t)||Ql.set(t,new jv(t)),Ql.get(t)}var ox=new WeakMap,Jl={};function ix(e,t){for(var n=ox,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(Jl)||n.set(Jl,e()),n.get(Jl)}var Lp=new WeakMap;function Gi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Lp.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof jv?n+=o.id:o&&Be(o)==="object"?n+=Gi(o,t):n+=o}),t&&(n=aa(n)),Lp.set(e,n)),n}function Fp(e,t){return aa("".concat(t,"_").concat(Gi(e,!0)))}var vu=dn();function _e(e){return typeof e=="number"?"".concat(e,"px"):e}function Hs(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({},di,t),Un,n)),a=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var Cs=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()},ax=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],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},kv=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=he(a,2),u=c[0],p=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])i[u]=p;else if((typeof p=="string"||typeof p=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var d,y=Cs(u,r==null?void 0:r.prefix);o[y]=typeof p=="number"&&!(r!=null&&(d=r.unitless)!==null&&d!==void 0&&d[u])?"".concat(p,"px"):String(p),i[u]="var(".concat(y,")")}}),[i,ax(o,n,{scope:r==null?void 0:r.scope})]},Dp=ne.env.NODE_ENV!=="test"&&dn()?h.useLayoutEffect:h.useEffect,Xt=function(t,n){var r=h.useRef(!0);Dp(function(){return t(r.current)},n),Dp(function(){return r.current=!1,function(){r.current=!0}},[])},yu=function(t,n){Xt(function(r){if(!r)return t()},n)},sx=ie({},h),Bp=sx.useInsertionEffect,lx=function(t,n,r){h.useMemo(t,r),Xt(function(){return n(!0)},r)},cx=Bp?function(e,t,n){return Bp(function(){return e(),t()},n)}:lx,ux=ie({},h),fx=ux.useInsertionEffect,dx=function(t){var n=[],r=!1;function o(i){if(r){ne.env.NODE_ENV!=="production"&&Vr(!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 h.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},px=function(){return function(t){t()}},hx=typeof fx<"u"?dx:px;function mx(){return!1}var bu=!1;function gx(){return bu}const vx=ne.env.NODE_ENV==="production"?mx:gx;if(ne.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Zl=window;if(typeof Zl.webpackHotUpdate=="function"){var yx=Zl.webpackHotUpdate;Zl.webpackHotUpdate=function(){return bu=!0,setTimeout(function(){bu=!1},0),yx.apply(void 0,arguments)}}}function Qf(e,t,n,r,o){var i=h.useContext(yl),a=i.cache,s=[e].concat(xe(t)),l=mu(s),c=hx([l]),u=vx(),p=function(x){a.opUpdate(l,function(g){var v=g||[void 0,void 0],f=he(v,2),m=f[0],b=m===void 0?0:m,C=f[1],E=C;ne.env.NODE_ENV!=="production"&&C&&u&&(r==null||r(E,u),E=null);var S=E||n(),w=[b,S];return x?x(w):w})};h.useMemo(function(){p()},[l]);var d=a.opGet(l);ne.env.NODE_ENV!=="production"&&!d&&(p(),d=a.opGet(l));var y=d[1];return cx(function(){o==null||o(y)},function(_){return p(function(x){var g=he(x,2),v=g[0],f=g[1];return _&&v===0&&(o==null||o(y)),[v+1,f]}),function(){a.opUpdate(l,function(x){var g=x||[],v=he(g,2),f=v[0],m=f===void 0?0:f,b=v[1],C=m-1;return C===0?(c(function(){(_||!a.opGet(l))&&(r==null||r(b,!1))}),null):[m-1,b]})}},[l]),y}var bx={},_x=ne.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",io=new Map;function wx(e){io.set(e,(io.get(e)||0)+1)}function Cx(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(di,'="').concat(e,'"]'));n.forEach(function(r){if(r[Dr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var xx=0;function Sx(e,t){io.set(e,(io.get(e)||0)-1);var n=Array.from(io.keys()),r=n.filter(function(o){var i=io.get(o)||0;return i<=0});n.length-r.length>xx&&r.forEach(function(o){Cx(o,t),io.delete(o)})}var Ex=function(t,n,r,o){var i=r.getDerivativeToken(t),a=ie(ie({},i),n);return o&&(a=o(a)),a},Lv="token";function Rx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=I.useContext(yl),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?bx:l,u=n.formatToken,p=n.getComputedToken,d=n.cssVar,y=ix(function(){return Object.assign.apply(Object,[{}].concat(xe(t)))},t),_=Gi(y),x=Gi(c),g=d?Gi(d):"",v=Qf(Lv,[s,e.id,_,x,g],function(){var f,m=p?p(y,c,e):Ex(y,c,e,u),b=ie({},m),C="";if(d){var E=kv(m,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),S=he(E,2);m=S[0],C=S[1]}var w=Fp(m,s);m._tokenKey=w,b._tokenKey=Fp(b,s);var O=(f=d==null?void 0:d.key)!==null&&f!==void 0?f:w;m._themeKey=O,wx(O);var P="".concat(_x,"-").concat(aa(w));return m._hashId=P,[m,P,b,C,(d==null?void 0:d.key)||""]},function(f){Sx(f[0]._themeKey,o)},function(f){var m=he(f,4),b=m[0],C=m[3];if(d&&C){var E=xr(C,aa("css-variables-".concat(b._themeKey)),{mark:Un,prepend:"queue",attachTo:i,priority:-999});E[Dr]=o,E.setAttribute(di,b._themeKey)}});return v}var Ox=function(t,n,r){var o=he(t,5),i=o[2],a=o[3],s=o[4],l=r||{},c=l.plain;if(!a)return null;var u=i._tokenKey,p=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},y=Hs(a,s,u,d,c);return[p,u,y]},$x={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},Fv="comm",Dv="rule",Bv="decl",Tx="@import",Px="@keyframes",Nx="@layer",zv=Math.abs,Jf=String.fromCharCode;function qv(e){return e.trim()}function xs(e,t,n){return e.replace(t,n)}function Ix(e,t,n){return e.indexOf(t,n)}function ca(e,t){return e.charCodeAt(t)|0}function pi(e,t,n){return e.slice(t,n)}function ir(e){return e.length}function Ax(e){return e.length}function Ga(e,t){return t.push(e),e}var bl=1,hi=1,Vv=0,jn=0,Wt=0,_i="";function Zf(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:bl,column:hi,length:a,return:"",siblings:s}}function Mx(){return Wt}function jx(){return Wt=jn>0?ca(_i,--jn):0,hi--,Wt===10&&(hi=1,bl--),Wt}function Gn(){return Wt=jn<Vv?ca(_i,jn++):0,hi++,Wt===10&&(hi=1,bl++),Wt}function Br(){return ca(_i,jn)}function Ss(){return jn}function _l(e,t){return pi(_i,e,t)}function ua(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 kx(e){return bl=hi=1,Vv=ir(_i=e),jn=0,[]}function Lx(e){return _i="",e}function ec(e){return qv(_l(jn-1,_u(e===91?e+2:e===40?e+1:e)))}function Fx(e){for(;(Wt=Br())&&Wt<33;)Gn();return ua(e)>2||ua(Wt)>3?"":" "}function Dx(e,t){for(;--t&&Gn()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return _l(e,Ss()+(t<6&&Br()==32&&Gn()==32))}function _u(e){for(;Gn();)switch(Wt){case e:return jn;case 34:case 39:e!==34&&e!==39&&_u(Wt);break;case 40:e===41&&_u(e);break;case 92:Gn();break}return jn}function Bx(e,t){for(;Gn()&&e+Wt!==57;)if(e+Wt===84&&Br()===47)break;return"/*"+_l(t,jn-1)+"*"+Jf(e===47?e:Gn())}function zx(e){for(;!ua(Br());)Gn();return _l(e,jn)}function qx(e){return Lx(Es("",null,null,null,[""],e=kx(e),0,[0],e))}function Es(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,p=a,d=0,y=0,_=0,x=1,g=1,v=1,f=0,m="",b=o,C=i,E=r,S=m;g;)switch(_=f,f=Gn()){case 40:if(_!=108&&ca(S,p-1)==58){Ix(S+=xs(ec(f),"&","&\f"),"&\f",zv(c?s[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:S+=ec(f);break;case 9:case 10:case 13:case 32:S+=Fx(_);break;case 92:S+=Dx(Ss()-1,7);continue;case 47:switch(Br()){case 42:case 47:Ga(Vx(Bx(Gn(),Ss()),t,n,l),l),(ua(_||1)==5||ua(Br()||1)==5)&&ir(S)&&pi(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*x:s[c++]=ir(S)*v;case 125*x:case 59:case 0:switch(f){case 0:case 125:g=0;case 59+u:v==-1&&(S=xs(S,/\f/g,"")),y>0&&(ir(S)-p||x===0&&_===47)&&Ga(y>32?qp(S+";",r,n,p-1,l):qp(xs(S," ","")+";",r,n,p-2,l),l);break;case 59:S+=";";default:if(Ga(E=zp(S,t,n,c,u,o,s,m,b=[],C=[],p,i),i),f===123)if(u===0)Es(S,t,E,E,b,i,p,s,C);else switch(d===99&&ca(S,3)===110?100:d){case 100:case 108:case 109:case 115:Es(e,E,E,r&&Ga(zp(e,E,E,0,0,o,s,m,o,b=[],p,C),C),o,C,p,s,r?b:C);break;default:Es(S,E,E,E,[""],C,0,s,C)}}c=u=y=0,x=v=1,m=S="",p=a;break;case 58:p=1+ir(S),y=_;default:if(x<1){if(f==123)--x;else if(f==125&&x++==0&&jx()==125)continue}switch(S+=Jf(f),f*x){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(ir(S)-1)*v,v=1;break;case 64:Br()===45&&(S+=ec(Gn())),d=Br(),u=p=ir(m=S+=zx(Ss())),f++;break;case 45:_===45&&ir(S)==2&&(x=0)}}return i}function zp(e,t,n,r,o,i,a,s,l,c,u,p){for(var d=o-1,y=o===0?i:[""],_=Ax(y),x=0,g=0,v=0;x<r;++x)for(var f=0,m=pi(e,d+1,d=zv(g=a[x])),b=e;f<_;++f)(b=qv(g>0?y[f]+" "+m:xs(m,/&\f/g,y[f])))&&(l[v++]=b);return Zf(e,t,n,o===0?Dv:s,l,c,u,p)}function Vx(e,t,n,r){return Zf(e,t,n,Fv,Jf(Mx()),pi(e,2,-2),0,r)}function qp(e,t,n,r,o){return Zf(e,t,n,Bv,pi(e,0,r),pi(e,r+1,-1),r,o)}function wu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Hx(e,t,n,r){switch(e.type){case Nx:if(e.children.length)break;case Tx:case Bv:return e.return=e.return||e.value;case Fv:return"";case Px:return e.return=e.value+"{"+wu(e.children,r)+"}";case Dv:if(!ir(e.value=e.props.join(",")))return""}return ir(n=wu(e.children,r))?e.return=e.value+"{"+n+"}":""}function Hv(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 Wx=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)!=="'"))&&Hv("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},Ux=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&Hv("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},Vp="data-ant-cssinjs-cache-path",Wv="_FILE_STYLE__",vo,Uv=!0;function Gx(){if(!vo&&(vo={},dn())){var e=document.createElement("div");e.className=Vp,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),s=a[0],l=a[1];vo[s]=l});var n=document.querySelector("style[".concat(Vp,"]"));if(n){var r;Uv=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function Kx(e){return Gx(),!!vo[e]}function Xx(e){var t=vo[e],n=null;if(t&&dn())if(Uv)n=Wv;else{var r=document.querySelector("style[".concat(Un,'="').concat(vo[e],'"]'));r?n=r.innerHTML:delete vo[e]}return[n,t]}var Gv="_skip_check_",Kv="_multi_value_";function Rs(e){var t=wu(qx(e),Hx);return t.replace(/\{%%%\:[^;];}/g,";")}function Yx(e){return Be(e)==="object"&&e&&(Gv in e||Kv in e)}function Hp(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 s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(xe(l.slice(1))).join(" ")});return i.join(",")}var Qx=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,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,p=n.transformers,d=p===void 0?[]:p,y=n.linters,_=y===void 0?[]:y,x="",g={};function v(b){var C=b.getName(s);if(!g[C]){var E=e(b.style,n,{root:!1,parentSelectors:a}),S=he(E,1),w=S[0];g[C]="@keyframes ".concat(b.getName(s)).concat(w)}}function f(b){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(E){Array.isArray(E)?f(E,C):E&&C.push(E)}),C}var m=f(Array.isArray(t)?t:[t]);return m.forEach(function(b){var C=typeof b=="string"&&!o?{}:b;if(typeof C=="string")x+="".concat(C,`
34
+ `);else if(C._keyframe)v(C);else{var E=d.reduce(function(S,w){var O;return(w==null||(O=w.visit)===null||O===void 0?void 0:O.call(w,S))||S},C);Object.keys(E).forEach(function(S){var w=E[S];if(Be(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!Yx(w)){var O=!1,P=S.trim(),A=!1;(o||i)&&s?P.startsWith("@")?O=!0:P==="&"?P=Hp("",s,u):P=Hp(S,s,u):o&&!s&&(P==="&"||P==="")&&(P="",A=!0);var T=e(w,n,{root:A,injectHash:O,parentSelectors:[].concat(xe(a),[P])}),L=he(T,2),D=L[0],Q=L[1];g=ie(ie({},g),Q),x+="".concat(P).concat(D)}else{let Y=function(ee,W){ne.env.NODE_ENV!=="production"&&(Be(w)!=="object"||!(w!=null&&w[Gv]))&&[Wx,Ux].concat(xe(_)).forEach(function(M){return M(ee,W,{path:c,hashId:s,parentSelectors:a})});var U=ee.replace(/[A-Z]/g,function(M){return"-".concat(M.toLowerCase())}),j=W;!$x[ee]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),ee==="animationName"&&W!==null&&W!==void 0&&W._keyframe&&(v(W),j=W.getName(s)),x+="".concat(U,":").concat(j,";")};var G,z=(G=w==null?void 0:w.value)!==null&&G!==void 0?G:w;Be(w)==="object"&&w!==null&&w!==void 0&&w[Kv]&&Array.isArray(z)?z.forEach(function(ee){Y(S,ee)}):Y(S,z)}})}}),o?l&&(x="@layer ".concat(l.name," {").concat(x,"}"),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(`
35
+ `))):x="{".concat(x,"}"),[x,g]};function Xv(e,t){return aa("".concat(e.join("%")).concat(t))}function Jx(){return null}var Yv="style";function Cu(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=h.useContext(yl),p=u.autoClear,d=u.mock,y=u.defaultCache,_=u.hashPriority,x=u.container,g=u.ssrInline,v=u.transformers,f=u.linters,m=u.cache,b=u.layer,C=n._tokenKey,E=[C];b&&E.push("layer"),E.push.apply(E,xe(r));var S=vu;ne.env.NODE_ENV!=="production"&&d!==void 0&&(S=d==="client");var w=Qf(Yv,E,function(){var L=E.join("|");if(Kx(L)){var D=Xx(L),Q=he(D,2),G=Q[0],z=Q[1];if(G)return[G,C,z,{},s,c]}var Y=t(),ee=Qx(Y,{hashId:o,hashPriority:_,layer:b?i:void 0,path:r.join("-"),transformers:v,linters:f}),W=he(ee,2),U=W[0],j=W[1],M=Rs(U),H=Xv(E,M);return[M,C,H,j,s,c]},function(L,D){var Q=he(L,3),G=Q[2];(D||p)&&vu&&sa(G,{mark:Un})},function(L){var D=he(L,4),Q=D[0];D[1];var G=D[2],z=D[3];if(S&&Q!==Wv){var Y={mark:Un,prepend:b?!1:"queue",attachTo:x,priority:c},ee=typeof a=="function"?a():a;ee&&(Y.csp={nonce:ee});var W=[],U=[];Object.keys(z).forEach(function(M){M.startsWith("@layer")?W.push(M):U.push(M)}),W.forEach(function(M){xr(Rs(z[M]),"_layer-".concat(M),ie(ie({},Y),{},{prepend:!0}))});var j=xr(Q,G,Y);j[Dr]=m.instanceId,j.setAttribute(di,C),ne.env.NODE_ENV!=="production"&&j.setAttribute(tx,E.join("|")),U.forEach(function(M){xr(Rs(z[M]),"_effect-".concat(M),Y)})}}),O=he(w,3),P=O[0],A=O[1],T=O[2];return function(L){var D;return!g||S||!y?D=h.createElement(Jx,null):D=h.createElement("style",Te({},oe(oe({},di,A),Un,T),{dangerouslySetInnerHTML:{__html:P}})),h.createElement(h.Fragment,null,D,L)}}var Zx=function(t,n,r){var o=he(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],p=r||{},d=p.plain;if(c)return null;var y=i,_={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return y=Hs(i,a,s,_,d),l&&Object.keys(l).forEach(function(x){if(!n[x]){n[x]=!0;var g=Rs(l[x]),v=Hs(g,a,"_effect-".concat(x),_,d);x.startsWith("@layer")?y=v+y:y+=v}}),[u,s,y]},Qv="cssVar",eS=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=I.useContext(yl),p=u.cache.instanceId,d=u.container,y=s._tokenKey,_=[].concat(xe(t.path),[r,c,y]),x=Qf(Qv,_,function(){var g=n(),v=kv(g,r,{prefix:o,unitless:i,ignore:a,scope:c}),f=he(v,2),m=f[0],b=f[1],C=Xv(_,b);return[m,b,C,r]},function(g){var v=he(g,3),f=v[2];vu&&sa(f,{mark:Un})},function(g){var v=he(g,3),f=v[1],m=v[2];if(f){var b=xr(f,m,{mark:Un,prepend:"queue",attachTo:d,priority:-999});b[Dr]=p,b.setAttribute(di,r)}});return x},tS=function(t,n,r){var o=he(t,4),i=o[1],a=o[2],s=o[3],l=r||{},c=l.plain;if(!i)return null;var u=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Hs(i,s,a,p,c);return[u,a,d]};oe(oe(oe({},Yv,Zx),Lv,Ox),Qv,tS);var at=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 Fo(e){return e.notSplit=!0,e}Fo(["borderTop","borderBottom"]),Fo(["borderTop"]),Fo(["borderBottom"]),Fo(["borderLeft","borderRight"]),Fo(["borderLeft"]),Fo(["borderRight"]);var ed=I.createContext({});function nS(e){return Pv(e)||Rv(e)||Kf(e)||Nv()}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 Jv(e,t,n,r){if(!t.length)return n;var o=nS(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=xe(e):s=ie({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=Jv(s[i],a,n,r),s}function qn(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:Jv(e,t,n,r)}function rS(e){return Be(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Wp(e){return Array.isArray(e)?[]:{}}var oS=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ni(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Wp(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=lr(o,a),u=Array.isArray(c);if(u||rS(c)){if(!l.has(c)){l.add(c);var p=lr(r,a);u?r=qn(r,a,[]):(!p||Be(p)!=="object")&&(r=qn(r,a,Wp(c))),oS(c).forEach(function(d){i([].concat(xe(a),[d]),l)})}}else r=qn(r,a,c)}i([])}),r}function Zv(){}let br=null;function iS(){br=null,bv()}let td=Zv;ne.env.NODE_ENV!=="production"&&(td=(e,t,n)=>{pt(e,`[antd: ${t}] ${n}`),ne.env.NODE_ENV==="test"&&iS()});const ey=h.createContext({}),Pt=ne.env.NODE_ENV!=="production"?e=>{const{strict:t}=h.useContext(ey),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=br;br||(br={}),br[e]=br[e]||[],br[e].includes(i||"")||br[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",br)}else ne.env.NODE_ENV!=="production"&&td(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=Zv,e},Oo=td,ty=I.createContext(void 0);var aS={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"},sS={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},lS=ie(ie({},sS),{},{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 ny={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Up={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"]},lS),timePickerLocale:Object.assign({},ny)},bn="${label} is not a valid ${type}",Hr={locale:"en",Pagination:aS,DatePicker:Up,TimePicker:ny,Calendar:Up,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:bn,method:bn,array:bn,object:bn,number:bn,date:bn,boolean:bn,integer:bn,float:bn,regexp:bn,email:bn,url:bn,hex:bn},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 Os=Object.assign({},Hr.Modal),$s=[];const Gp=()=>$s.reduce((e,t)=>Object.assign(Object.assign({},e),t),Hr.Modal);function cS(e){if(e){const t=Object.assign({},e);return $s.push(t),Os=Gp(),()=>{$s=$s.filter(n=>n!==t),Os=Gp()}}Os=Object.assign({},Hr.Modal)}function ry(){return Os}const nd=I.createContext(void 0),wl=(e,t)=>{const n=h.useContext(nd),r=h.useMemo(()=>{var i;const a=t||Hr[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=h.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Hr.locale:i},[n]);return[r,o]},oy="internalMark",iy=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===oy,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}h.useEffect(()=>cS(t==null?void 0:t.Modal),[t]);const o=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(nd.Provider,{value:o},n)};ne.env.NODE_ENV!=="production"&&(iy.displayName="LocaleProvider");function nn(e,t){uS(e)&&(e="100%");var n=fS(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 Ka(e){return Math.min(1,Math.max(0,e))}function uS(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fS(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ay(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Xa(e){return e<=1?"".concat(Number(e)*100,"%"):e}function uo(e){return e.length===1?"0"+e:String(e)}function dS(e,t,n){return{r:nn(e,255)*255,g:nn(t,255)*255,b:nn(n,255)*255}}function Kp(e,t,n){e=nn(e,255),t=nn(t,255),n=nn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),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:a,l:s}}function tc(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 pS(e,t,n){var r,o,i;if(e=nn(e,360),t=nn(t,100),n=nn(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=tc(s,a,e+1/3),o=tc(s,a,e),i=tc(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function xu(e,t,n){e=nn(e,255),t=nn(t,255),n=nn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(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:l,v:a}}function hS(e,t,n){e=nn(e,360)*6,t=nn(t,100),n=nn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,a,i,i,s,n][l],u=[s,n,n,a,i,i][l],p=[i,i,s,n,n,a][l];return{r:c*255,g:u*255,b:p*255}}function Su(e,t,n,r){var o=[uo(Math.round(e).toString(16)),uo(Math.round(t).toString(16)),uo(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 mS(e,t,n,r,o){var i=[uo(Math.round(e).toString(16)),uo(Math.round(t).toString(16)),uo(Math.round(n).toString(16)),uo(gS(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 gS(e){return Math.round(parseFloat(e)*255).toString(16)}function Xp(e){return wn(e)/255}function wn(e){return parseInt(e,16)}function vS(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Eu={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 Jo(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=_S(e)),typeof e=="object"&&(gr(e.r)&&gr(e.g)&&gr(e.b)?(t=dS(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gr(e.h)&&gr(e.s)&&gr(e.v)?(r=Xa(e.s),o=Xa(e.v),t=hS(e.h,r,o),a=!0,s="hsv"):gr(e.h)&&gr(e.s)&&gr(e.l)&&(r=Xa(e.s),i=Xa(e.l),t=pS(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ay(n),{ok:a,format:e.format||s,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 yS="[-\\+]?\\d+%?",bS="[-\\+]?\\d*\\.\\d+%?",zr="(?:".concat(bS,")|(?:").concat(yS,")"),nc="[\\s|\\(]+(".concat(zr,")[,|\\s]+(").concat(zr,")[,|\\s]+(").concat(zr,")\\s*\\)?"),rc="[\\s|\\(]+(".concat(zr,")[,|\\s]+(").concat(zr,")[,|\\s]+(").concat(zr,")[,|\\s]+(").concat(zr,")\\s*\\)?"),zn={CSS_UNIT:new RegExp(zr),rgb:new RegExp("rgb"+nc),rgba:new RegExp("rgba"+rc),hsl:new RegExp("hsl"+nc),hsla:new RegExp("hsla"+rc),hsv:new RegExp("hsv"+nc),hsva:new RegExp("hsva"+rc),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 _S(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Eu[e])e=Eu[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=zn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=zn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=zn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=zn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=zn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=zn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=zn.hex8.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),a:Xp(n[4]),format:t?"name":"hex8"}:(n=zn.hex6.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),format:t?"name":"hex"}:(n=zn.hex4.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),a:Xp(n[4]+n[4]),format:t?"name":"hex8"}:(n=zn.hex3.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function gr(e){return!!zn.CSS_UNIT.exec(String(e))}var gn=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=vS(t)),this.originalInput=t;var o=Jo(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,s=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),s<=.03928?o=s/12.92:o=Math.pow((s+.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=ay(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=xu(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=xu(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=Kp(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=Kp(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),Su(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),mS(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(nn(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(nn(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="#"+Su(this.r,this.g,this.b,!1),n=0,r=Object.entries(Eu);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=Ka(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=Ka(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=Ka(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=Ka(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=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%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}(),Ya=2,Yp=.16,wS=.05,CS=.05,xS=.15,sy=5,ly=4,SS=[{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 Qp(e){var t=e.r,n=e.g,r=e.b,o=xu(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Qa(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Su(t,n,r,!1))}function ES(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 Jp(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ya*t:Math.round(e.h)+Ya*t:r=n?Math.round(e.h)+Ya*t:Math.round(e.h)-Ya*t,r<0?r+=360:r>=360&&(r-=360),r}function Zp(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Yp*t:t===ly?r=e.s+Yp:r=e.s+wS*t,r>1&&(r=1),n&&t===sy&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function eh(e,t,n){var r;return n?r=e.v+CS*t:r=e.v-xS*t,r>1&&(r=1),Number(r.toFixed(2))}function fa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Jo(e),o=sy;o>0;o-=1){var i=Qp(r),a=Qa(Jo({h:Jp(i,o,!0),s:Zp(i,o,!0),v:eh(i,o,!0)}));n.push(a)}n.push(Qa(r));for(var s=1;s<=ly;s+=1){var l=Qp(r),c=Qa(Jo({h:Jp(l,s),s:Zp(l,s),v:eh(l,s)}));n.push(c)}return t.theme==="dark"?SS.map(function(u){var p=u.index,d=u.opacity,y=Qa(ES(Jo(t.backgroundColor||"#141414"),Jo(n[p]),d*100));return y}):n}var oc={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"},Ru=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ru.primary=Ru[5];var Ou=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ou.primary=Ou[5];var $u=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];$u.primary=$u[5];var Tu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Tu.primary=Tu[5];var Pu=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Pu.primary=Pu[5];var Nu=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Nu.primary=Nu[5];var Iu=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Iu.primary=Iu[5];var Au=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Au.primary=Au[5];var Ws=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ws.primary=Ws[5];var Mu=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Mu.primary=Mu[5];var ju=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ju.primary=ju[5];var ku=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ku.primary=ku[5];var Lu=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Lu.primary=Lu[5];var ic={red:Ru,volcano:Ou,orange:$u,gold:Tu,yellow:Pu,lime:Nu,green:Iu,cyan:Au,blue:Ws,geekblue:Mu,purple:ju,magenta:ku,grey:Lu};const cy={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"},da=Object.assign(Object.assign({},cy),{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 RS(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,p=n(l),d=n(o),y=n(i),_=n(a),x=n(s),g=r(c,u),v=e.colorLink||e.colorInfo,f=n(v);return Object.assign(Object.assign({},g),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[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:_[1],colorErrorBgHover:_[2],colorErrorBgActive:_[3],colorErrorBorder:_[3],colorErrorBorderHover:_[4],colorErrorHover:_[5],colorError:_[6],colorErrorActive:_[7],colorErrorTextHover:_[8],colorErrorText:_[9],colorErrorTextActive:_[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:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:f[4],colorLink:f[6],colorLinkActive:f[7],colorBgMask:new gn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const OS=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 $S(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},OS(r))}const TS=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Ts(e){return(e+8)/e}function PS(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:Ts(n)}))}const NS=e=>{const t=PS(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=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:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function IS(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 vr=(e,t)=>new gn(e).setAlpha(t).toRgbString(),ji=(e,t)=>new gn(e).darken(t).toHexString(),AS=e=>{const t=fa(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]}},MS=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:vr(r,.88),colorTextSecondary:vr(r,.65),colorTextTertiary:vr(r,.45),colorTextQuaternary:vr(r,.25),colorFill:vr(r,.15),colorFillSecondary:vr(r,.06),colorFillTertiary:vr(r,.04),colorFillQuaternary:vr(r,.02),colorBgLayout:ji(n,4),colorBgContainer:ji(n,0),colorBgElevated:ji(n,0),colorBgSpotlight:vr(r,.85),colorBgBlur:"transparent",colorBorder:ji(n,15),colorBorderSecondary:ji(n,6)}};function jS(e){oc.pink=oc.magenta,ic.pink=ic.magenta;const t=Object.keys(cy).map(n=>{const r=e[n]===oc[n]?ic[n]:fa(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),RS(e,{generateColorPalettes:AS,generateNeutralColorPalettes:MS})),NS(e.fontSize)),IS(e)),TS(e)),$S(e))}const uy=gu(jS),Fu={token:da,override:{override:da},hashed:!0},fy=I.createContext(Fu),pa="ant",rd="anticon",kS=["outlined","borderless","filled"],LS=(e,t)=>t||(e?`${pa}-${e}`:pa),Ue=h.createContext({getPrefixCls:LS,iconPrefixCls:rd}),FS=`-ant-${Date.now()}-${Math.random()}`;function DS(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new gn(a),c=fa(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new gn(t.primaryColor),s=fa(a.toRgbString());s.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 l=new gn(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,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 BS(e,t){const n=DS(e,t);dn()?xr(n,`${FS}-dynamic-theme`):ne.env.NODE_ENV!=="production"&&Oo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Wr=h.createContext(!1),od=e=>{let{children:t,disabled:n}=e;const r=h.useContext(Wr);return h.createElement(Wr.Provider,{value:n??r},t)},Co=h.createContext(void 0),zS=e=>{let{children:t,size:n}=e;const r=h.useContext(Co);return h.createElement(Co.Provider,{value:n||r},t)};function qS(){const e=I.useContext(Wr),t=I.useContext(Co);return{componentDisabled:e,componentSize:t}}var dy=on(function e(){rn(this,e)}),py="CALC_UNIT",VS=new RegExp(py,"g");function ac(e){return typeof e=="number"?"".concat(e).concat(py):e}var HS=function(e){Xr(n,e);var t=Yr(n);function n(r,o){var i;rn(this,n),i=t.call(this),oe(tt(i),"result",""),oe(tt(i),"unitlessCssVar",void 0),oe(tt(i),"lowPriority",void 0);var a=Be(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=ac(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(ac(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(ac(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||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(VS,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(dy),WS=function(e){Xr(n,e);var t=Yr(n);function n(r){var o;return rn(this,n),o=t.call(this),oe(tt(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}(dy),US=function(t,n){var r=t==="css"?HS:WS;return function(o){return new r(o,n)}},th=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=h.useRef();t.current=e;var n=h.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 xo(e){var t=h.useRef(!1),n=h.useState(e),r=he(n,2),o=r[0],i=r[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function sc(e){return e!==void 0}function Kn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=xo(function(){return sc(o)?o:sc(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=he(s,2),c=l[0],u=l[1],p=o!==void 0?o:c,d=a?a(p):p,y=Zt(i),_=xo([p]),x=he(_,2),g=x[0],v=x[1];yu(function(){var m=g[0];c!==m&&y(c,m)},[g]),yu(function(){sc(o)||u(o)},[o]);var f=Zt(function(m,b){u(m,b),v([p],b)});return[d,f]}function nh(e,t,n,r){var o=ie({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(s){var l=he(s,2),c=l[0],u=l[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 p;(p=o[u])!==null&&p!==void 0||(o[u]=o==null?void 0:o[c])}})}var a=ie(ie({},n),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var hy=ne.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Du=!0;function Ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!hy)return Object.assign.apply(Object,[{}].concat(t));Du=!1;var r={};return t.forEach(function(o){if(Be(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),Du=!0,r}var rh={};function GS(){}var KS=function(t){var n,r=t,o=GS;return hy&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,s){if(Du){var l;(l=n)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;rh[a]={global:Array.from(n),component:ie(ie({},(l=rh[a])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:o}};function oh(e,t,n){if(typeof n=="function"){var r;return n(Ft(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function XS(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 _e(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 _e(i)}).join(","),")")}}}var YS=1e3*60*10,QS=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&&Be(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(Be(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>YS&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),ih=new QS;function JS(e,t){return I.useMemo(function(){var n=ih.get(t);if(n)return n;var r=e();return ih.set(t,r),r},t)}var ZS=function(){return{}};function eE(e){var t=e.useCSP,n=t===void 0?ZS:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(d,y,_,x){var g=Array.isArray(d)?d[0]:d;function v(w){return"".concat(String(g)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var f=(x==null?void 0:x.unitless)||{},m=typeof s=="function"?s(d):{},b=ie(ie({},m),{},oe({},v("zIndexPopup"),!0));Object.keys(f).forEach(function(w){b[v(w)]=f[w]});var C=ie(ie({},x),{},{unitless:b,prefixToken:v}),E=u(d,y,_,C),S=c(g,_,C);return function(w){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,P=E(w,O),A=he(P,2),T=A[1],L=S(O),D=he(L,2),Q=D[0],G=D[1];return[Q,T,G]}}function c(d,y,_){var x=_.unitless,g=_.injectStyle,v=g===void 0?!0:g,f=_.prefixToken,m=_.ignore,b=function(S){var w=S.rootCls,O=S.cssVar,P=O===void 0?{}:O,A=r(),T=A.realToken;return eS({path:[d],prefix:P.prefix,key:P.key,unitless:x,ignore:m,token:T,scope:w},function(){var L=oh(d,T,y),D=nh(d,T,L,{deprecatedTokens:_==null?void 0:_.deprecatedTokens});return Object.keys(L).forEach(function(Q){D[f(Q)]=D[Q],delete D[Q]}),D}),null},C=function(S){var w=r(),O=w.cssVar;return[function(P){return v&&O?I.createElement(I.Fragment,null,I.createElement(b,{rootCls:S,cssVar:O,component:d}),P):P},O==null?void 0:O.key]};return C}function u(d,y,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(d)?d:[d,d],v=he(g,1),f=v[0],m=g.join("-"),b=e.layer||{name:"antd"};return function(C){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,S=r(),w=S.theme,O=S.realToken,P=S.hashId,A=S.token,T=S.cssVar,L=o(),D=L.rootPrefixCls,Q=L.iconPrefixCls,G=n(),z=T?"css":"js",Y=JS(function(){var H=new Set;return T&&Object.keys(x.unitless||{}).forEach(function(J){H.add(Cs(J,T.prefix)),H.add(Cs(J,th(f,T.prefix)))}),US(z,H)},[z,f,T==null?void 0:T.prefix]),ee=XS(z),W=ee.max,U=ee.min,j={theme:w,token:A,hashId:P,nonce:function(){return G.nonce},clientOnly:x.clientOnly,layer:b,order:x.order||-999};Cu(ie(ie({},j),{},{clientOnly:!1,path:["Shared",D]}),function(){return typeof i=="function"?i(A):[]});var M=Cu(ie(ie({},j),{},{path:[m,C,Q]}),function(){if(x.injectStyle===!1)return[];var H=KS(A),J=H.token,B=H.flush,q=oh(f,O,_),K=".".concat(C),re=nh(f,O,q,{deprecatedTokens:x.deprecatedTokens});T&&q&&Be(q)==="object"&&Object.keys(q).forEach(function(ae){q[ae]="var(".concat(Cs(ae,th(f,T.prefix)),")")});var se=Ft(J,{componentCls:K,prefixCls:C,iconCls:".".concat(Q),antCls:".".concat(D),calc:Y,max:W,min:U},T?q:re),k=y(se,{hashId:P,prefixCls:C,rootPrefixCls:D,iconPrefixCls:Q});B(f,re);var F=typeof a=="function"?a(se,C,E,x.resetFont):null;return[x.resetStyle===!1?null:F,k]});return[M,P]}}function p(d,y,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=u(d,y,_,ie({resetStyle:!1,order:-998},x)),v=function(m){var b=m.prefixCls,C=m.rootCls,E=C===void 0?b:C;return g(b,E),null};return ne.env.NODE_ENV!=="production"&&(v.displayName="SubStyle_".concat(String(Array.isArray(d)?d.join("."):d))),v}return{genStyleHooks:l,genSubStyleComponent:p,genComponentStyleHook:u}}const ha=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],tE="5.20.6";function lc(e){return e>=0&&e<=255}function Ja(e,t){const{r:n,g:r,b:o,a:i}=new gn(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new gn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),p=Math.round((r-s*(1-c))/c),d=Math.round((o-l*(1-c))/c);if(lc(u)&&lc(p)&&lc(d))return new gn({r:u,g:p,b:d,a:Math.round(c*100)/100}).toRgbString()}return new gn({r:n,g:r,b:o,a:1}).toRgbString()}var nE=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){const{override:t}=e,n=nE(e,["override"]),r=Object.assign({},t);Object.keys(da).forEach(d=>{delete r[d]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=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:Ja(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:Ja(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ja(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:Ja(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:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,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 gn("rgba(0, 0, 0, 0.16)").toRgbString()},
56
+ 0 3px 6px 0 ${new gn("rgba(0, 0, 0, 0.12)").toRgbString()},
57
+ 0 5px 12px 4px ${new gn("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 ah=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 gy={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},rE={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},oE={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},vy=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=ah(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=my(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,p=ah(c,["theme"]);let d=p;u&&(d=vy(Object.assign(Object.assign({},a),p),{override:p},u)),a[l]=d}),a};function Jn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=I.useContext(fy),i=`${tE}-${t||""}`,a=n||uy,[s,l,c]=Rx(a,[da,e],{salt:i,override:r,getComputedToken:vy,formatToken:my,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:gy,ignore:rE,preserve:oE}});return[a,c,t?l:"",s,o]}const iE={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},vn=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}},aE=()=>({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"}}),yy=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),sE=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"}}}),lE=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},cE=e=>({outline:`${_e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ea=e=>({"&:focus-visible":Object.assign({},cE(e))}),by=(e,t)=>{const[n,r]=Jn();return Cu({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({},aE()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:un,genComponentStyleHook:uE,genSubStyleComponent:wi}=eE({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=I.useContext(Ue);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Jn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=I.useContext(Ue);return by(t,e),e??{}},getResetStyles:e=>[{"&":sE(e)}],getCommonStyle:lE,getCompUnitless:()=>gy});function Cl(e,t){return ha.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const fE=Object.assign({},h),{useId:sh}=fE,dE=()=>"",pE=typeof sh>"u"?dE:sh;function hE(e,t,n){var r,o;const i=Pt("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Fu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Fu.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=pE();if(ne.env.NODE_ENV!=="production"){const c=a.cssVar||s.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||l);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 ml(()=>{var c,u;if(!e)return t;const p=Object.assign({},s.components);Object.keys(e.components||{}).forEach(_=>{p[_]=Object.assign(Object.assign({},p[_]),e.components[_])});const d=`css-var-${l.replace(/:/g,"")}`,y=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof s.cssVar=="object"?s.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({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:p,cssVar:y})},[a,s],(c,u)=>c.some((p,d)=>{const y=u[d];return!la(p,y,!0)}))}var mE=["children"],_y=h.createContext({});function gE(e){var t=e.children,n=nt(e,mE);return h.createElement(_y.Provider,{value:n},t)}var vE=function(e){Xr(n,e);var t=Yr(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function yE(e){var t=h.useReducer(function(s){return s+1},0),n=he(t,2),r=n[1],o=h.useRef(e),i=Zt(function(){return o.current}),a=Zt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var Lr="none",Za="appear",es="enter",ts="leave",lh="none",Vn="prepare",ri="start",oi="active",id="end",wy="prepared";function ch(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 bE(e,t){var n={animationend:ch("Animation","AnimationEnd"),transitionend:ch("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var _E=bE(dn(),typeof window<"u"?window:{}),Cy={};if(dn()){var wE=document.createElement("div");Cy=wE.style}var ns={};function xy(e){if(ns[e])return ns[e];var t=_E[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 Cy)return ns[e]=t[i],ns[e]}return""}var Sy=xy("animationend"),Ey=xy("transitionend"),Ry=!!(Sy&&Ey),uh=Sy||"animationend",fh=Ey||"transitionend";function dh(e,t){if(!e)return null;if(Be(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const CE=function(e){var t=I.useRef();function n(o){o&&(o.removeEventListener(fh,e),o.removeEventListener(uh,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(fh,e),o.addEventListener(uh,e),t.current=o)}return h.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var Oy=dn()?I.useLayoutEffect:I.useEffect;const xE=function(){var e=h.useRef(null);function t(){Lt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Lt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return h.useEffect(function(){return function(){t()}},[]),[n,t]};var SE=[Vn,ri,oi,id],EE=[Vn,wy],$y=!1,RE=!0;function Ty(e){return e===oi||e===id}const OE=function(e,t,n){var r=xo(lh),o=he(r,2),i=o[0],a=o[1],s=xE(),l=he(s,2),c=l[0],u=l[1];function p(){a(Vn,!0)}var d=t?EE:SE;return Oy(function(){if(i!==lh&&i!==id){var y=d.indexOf(i),_=d[y+1],x=n(i);x===$y?a(_,!0):_&&c(function(g){function v(){g.isCanceled()||a(_,!0)}x===!0?v():Promise.resolve(x).then(v)})}},[e,i]),h.useEffect(function(){return function(){u()}},[]),[p,i]};function $E(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,p=r.motionLeaveImmediately,d=r.onAppearPrepare,y=r.onEnterPrepare,_=r.onLeavePrepare,x=r.onAppearStart,g=r.onEnterStart,v=r.onLeaveStart,f=r.onAppearActive,m=r.onEnterActive,b=r.onLeaveActive,C=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,w=r.onVisibleChanged,O=xo(),P=he(O,2),A=P[0],T=P[1],L=yE(Lr),D=he(L,2),Q=D[0],G=D[1],z=xo(null),Y=he(z,2),ee=Y[0],W=Y[1],U=Q(),j=I.useRef(!1),M=I.useRef(null);function H(){return n()}var J=I.useRef(!1);function B(){G(Lr),W(null,!0)}var q=Zt(function(Ie){var Pe=Q();if(Pe!==Lr){var Oe=H();if(!(Ie&&!Ie.deadline&&Ie.target!==Oe)){var ve=J.current,we;Pe===Za&&ve?we=C==null?void 0:C(Oe,Ie):Pe===es&&ve?we=E==null?void 0:E(Oe,Ie):Pe===ts&&ve&&(we=S==null?void 0:S(Oe,Ie)),ve&&we!==!1&&B()}}}),K=CE(q),re=he(K,1),se=re[0],k=function(Pe){switch(Pe){case Za:return oe(oe(oe({},Vn,d),ri,x),oi,f);case es:return oe(oe(oe({},Vn,y),ri,g),oi,m);case ts:return oe(oe(oe({},Vn,_),ri,v),oi,b);default:return{}}},F=h.useMemo(function(){return k(U)},[U]),ae=OE(U,!e,function(Ie){if(Ie===Vn){var Pe=F[Vn];return Pe?Pe(H()):$y}if(pe in F){var Oe;W(((Oe=F[pe])===null||Oe===void 0?void 0:Oe.call(F,H(),null))||null)}return pe===oi&&U!==Lr&&(se(H()),u>0&&(clearTimeout(M.current),M.current=setTimeout(function(){q({deadline:!0})},u))),pe===wy&&B(),RE}),Z=he(ae,2),me=Z[0],pe=Z[1],Ce=Ty(pe);J.current=Ce,Oy(function(){T(t);var Ie=j.current;j.current=!0;var Pe;!Ie&&t&&s&&(Pe=Za),Ie&&t&&i&&(Pe=es),(Ie&&!t&&c||!Ie&&p&&!t&&c)&&(Pe=ts);var Oe=k(Pe);Pe&&(e||Oe[Vn])?(G(Pe),me()):G(Lr)},[t]),I.useEffect(function(){(U===Za&&!s||U===es&&!i||U===ts&&!c)&&G(Lr)},[s,i,c]),I.useEffect(function(){return function(){j.current=!1,clearTimeout(M.current)}},[]);var Me=h.useRef(!1);I.useEffect(function(){A&&(Me.current=!0),A!==void 0&&U===Lr&&((Me.current||A)&&(w==null||w(A)),Me.current=!0)},[A,U]);var ce=ee;return F[Vn]&&pe===ri&&(ce=ie({transition:"none"},ce)),[U,pe,ce,A??t]}function TE(e){var t=e;Be(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=h.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,p=o.children,d=o.motionName,y=o.leavedClassName,_=o.eventProps,x=h.useContext(_y),g=x.motion,v=n(o,g),f=I.useRef(),m=I.useRef();function b(){try{return f.current instanceof HTMLElement?f.current:ws(m.current)}catch{return null}}var C=$E(v,s,b,o),E=he(C,4),S=E[0],w=E[1],O=E[2],P=E[3],A=h.useRef(P);P&&(A.current=!0);var T=h.useCallback(function(ee){f.current=ee,Uf(i,ee)},[i]),L,D=ie(ie({},_),{},{visible:s});if(!p)L=null;else if(S===Lr)P?L=p(ie({},D),T):!c&&A.current&&y?L=p(ie(ie({},D),{},{className:y}),T):u||!c&&!y?L=p(ie(ie({},D),{},{style:{display:"none"}}),T):L=null;else{var Q;w===Vn?Q="prepare":Ty(w)?Q="active":w===ri&&(Q="start");var G=dh(d,"".concat(S,"-").concat(Q));L=p(ie(ie({},D),{},{className:de(dh(d,S),oe(oe({},G,G&&Q),d,typeof d=="string")),style:O}),T)}if(h.isValidElement(L)&&Kr(L)){var z=L,Y=z.ref;Y||(L=h.cloneElement(L,{ref:T}))}return h.createElement(vE,{ref:m},L)});return r.displayName="CSSMotion",r}const Zn=TE(Ry);var Bu="add",zu="keep",qu="remove",cc="removed";function PE(e){var t;return e&&Be(e)==="object"&&"key"in e?t=e:t={key:e},ie(ie({},t),{},{key:String(t.key)})}function Vu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(PE)}function NE(){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=Vu(e),a=Vu(t);i.forEach(function(c){for(var u=!1,p=r;p<o;p+=1){var d=a[p];if(d.key===c.key){r<p&&(n=n.concat(a.slice(r,p).map(function(y){return ie(ie({},y),{},{status:Bu})})),r=p),n.push(ie(ie({},d),{},{status:zu})),r+=1,u=!0;break}}u||n.push(ie(ie({},c),{},{status:qu}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return ie(ie({},c),{},{status:Bu})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var p=u.key,d=u.status;return p!==c||d!==qu}),n.forEach(function(u){u.key===c&&(u.status=zu)})}),n}var IE=["component","children","onVisibleChanged","onAllRemoved"],AE=["status"],ME=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function jE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zn,n=function(r){Xr(i,r);var o=Yr(i);function i(){var a;rn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),oe(tt(a),"state",{keyEntities:[]}),oe(tt(a),"removeKey",function(u){var p=a.state.keyEntities,d=p.map(function(y){return y.key!==u?y:ie(ie({},y),{},{status:cc})});return a.setState({keyEntities:d}),d.filter(function(y){var _=y.status;return _!==cc}).length}),a}return on(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,p=c.children,d=c.onVisibleChanged,y=c.onAllRemoved,_=nt(c,IE),x=u||h.Fragment,g={};return ME.forEach(function(v){g[v]=_[v],delete _[v]}),delete _.keys,h.createElement(x,_,l.map(function(v,f){var m=v.status,b=nt(v,AE),C=m===Bu||m===zu;return h.createElement(t,Te({},g,{key:b.key,visible:C,eventProps:b,onVisibleChanged:function(S){if(d==null||d(S,{key:b.key}),!S){var w=s.removeKey(b.key);w===0&&y&&y()}}}),function(E,S){return p(ie(ie({},E),{},{index:f}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,p=Vu(c),d=NE(u,p);return{keyEntities:d.filter(function(y){var _=u.find(function(x){var g=x.key;return y.key===g});return!(_&&_.status===cc&&y.status===qu)})}}}]),i}(h.Component);return oe(n,"defaultProps",{component:"div"}),n}const Py=jE(Ry);function kE(e){const{children:t}=e,[,n]=Jn(),{motion:r}=n,o=h.useRef(!1);return o.current=o.current||r===!1,o.current?h.createElement(gE,{motion:r},t):t}const Ny=h.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Pt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});ne.env.NODE_ENV!=="production"&&(Ny.displayName="PropWarning");const LE=ne.env.NODE_ENV!=="production"?Ny:()=>null;var FE=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 Hu=!1;const ad=ne.env.NODE_ENV!=="production"?e=>{ne.env.NODE_ENV!=="production"&&Oo(!Hu,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,DE=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Us,Iy,Ay,My;function Ps(){return Us||pa}function BE(){return Iy||rd}function zE(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const qE=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Us=t),n!==void 0&&(Iy=n),"holderRender"in e&&(My=o),r&&(zE(r)?(ne.env.NODE_ENV!=="production"&&Oo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),BS(Ps(),r)):Ay=r)},Ra=()=>({getPrefixCls:(e,t)=>t||(e?`${Ps()}-${e}`:Ps()),getIconPrefixCls:BE,getRootPrefixCls:()=>Us||Ps(),getTheme:()=>Ay,holderRender:My}),VE=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:p,dropdownMatchSelectWidth:d,popupMatchSelectWidth:y,popupOverflow:_,legacyLocale:x,parentContext:g,iconPrefixCls:v,theme:f,componentDisabled:m,segmented:b,statistic:C,spin:E,calendar:S,carousel:w,cascader:O,collapse:P,typography:A,checkbox:T,descriptions:L,divider:D,drawer:Q,skeleton:G,steps:z,image:Y,layout:ee,list:W,mentions:U,modal:j,progress:M,result:H,slider:J,breadcrumb:B,menu:q,pagination:K,input:re,textArea:se,empty:k,badge:F,radio:ae,rate:Z,switch:me,transfer:pe,avatar:Ce,message:Me,tag:ce,table:Ie,card:Pe,tabs:Oe,timeline:ve,timePicker:we,upload:Se,notification:Ee,tree:Ve,colorPicker:He,datePicker:Xe,rangePicker:ft,flex:mt,wave:ct,dropdown:ze,warning:Ne,tour:st,floatButtonGroup:rt,variant:Ye,inputNumber:Ot,treeSelect:Dt}=e,Ut=h.useCallback((V,te)=>{const{prefixCls:le}=e;if(te)return te;const ge=le||g.getPrefixCls("");return V?`${ge}-${V}`:ge},[g.getPrefixCls,e.prefixCls]),gt=v||g.iconPrefixCls||rd,$t=n||g.csp;by(gt,$t);const Qe=hE(f,g.theme,{prefixCls:Ut("")});ne.env.NODE_ENV!=="production"&&(Hu=Hu||!!Qe);const lt={csp:$t,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||x,direction:c,space:u,virtual:p,popupMatchSelectWidth:y??d,popupOverflow:_,getPrefixCls:Ut,iconPrefixCls:gt,theme:Qe,segmented:b,statistic:C,spin:E,calendar:S,carousel:w,cascader:O,collapse:P,typography:A,checkbox:T,descriptions:L,divider:D,drawer:Q,skeleton:G,steps:z,image:Y,input:re,textArea:se,layout:ee,list:W,mentions:U,modal:j,progress:M,result:H,slider:J,breadcrumb:B,menu:q,pagination:K,empty:k,badge:F,radio:ae,rate:Z,switch:me,transfer:pe,avatar:Ce,message:Me,tag:ce,table:Ie,card:Pe,tabs:Oe,timeline:ve,timePicker:we,upload:Se,notification:Ee,tree:Ve,colorPicker:He,datePicker:Xe,rangePicker:ft,flex:mt,wave:ct,dropdown:ze,warning:Ne,tour:st,floatButtonGroup:rt,variant:Ye,inputNumber:Ot,treeSelect:Dt};ne.env.NODE_ENV!=="production"&&Pt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Tt=Object.assign({},g);Object.keys(lt).forEach(V=>{lt[V]!==void 0&&(Tt[V]=lt[V])}),DE.forEach(V=>{const te=e[V];te&&(Tt[V]=te)}),typeof r<"u"&&(Tt.button=Object.assign({autoInsertSpace:r},Tt.button));const Ge=ml(()=>Tt,Tt,(V,te)=>{const le=Object.keys(V),ge=Object.keys(te);return le.length!==ge.length||le.some(Fe=>V[Fe]!==te[Fe])}),ke=h.useMemo(()=>({prefixCls:gt,csp:$t}),[gt,$t]);let N=h.createElement(h.Fragment,null,h.createElement(LE,{dropdownMatchSelectWidth:d}),t);const R=h.useMemo(()=>{var V,te,le,ge;return ni(((V=Hr.Form)===null||V===void 0?void 0:V.defaultValidateMessages)||{},((le=(te=Ge.locale)===null||te===void 0?void 0:te.Form)===null||le===void 0?void 0:le.defaultValidateMessages)||{},((ge=Ge.form)===null||ge===void 0?void 0:ge.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ge,a==null?void 0:a.validateMessages]);Object.keys(R).length>0&&(N=h.createElement(ty.Provider,{value:R},N)),s&&(N=h.createElement(iy,{locale:s,_ANT_MARK__:oy},N)),(gt||$t)&&(N=h.createElement(ed.Provider,{value:ke},N)),l&&(N=h.createElement(zS,{size:l},N)),N=h.createElement(kE,null,N);const $=h.useMemo(()=>{const V=Qe||{},{algorithm:te,token:le,components:ge,cssVar:Fe}=V,Je=FE(V,["algorithm","token","components","cssVar"]),et=te&&(!Array.isArray(te)||te.length>0)?gu(te):uy,X={};Object.entries(ge||{}).forEach(ye=>{let[Re,Le]=ye;const je=Object.assign({},Le);"algorithm"in je&&(je.algorithm===!0?je.theme=et:(Array.isArray(je.algorithm)||typeof je.algorithm=="function")&&(je.theme=gu(je.algorithm)),delete je.algorithm),X[Re]=je});const ue=Object.assign(Object.assign({},da),le);return Object.assign(Object.assign({},Je),{theme:et,token:ue,components:X,override:Object.assign({override:ue},X),cssVar:Fe})},[Qe]);return f&&(N=h.createElement(fy.Provider,{value:$},N)),Ge.warning&&(N=h.createElement(ey.Provider,{value:Ge.warning},N)),m!==void 0&&(N=h.createElement(od,{disabled:m},N)),h.createElement(Ue.Provider,{value:Ge},N)},er=e=>{const t=h.useContext(Ue),n=h.useContext(nd);return h.createElement(VE,Object.assign({parentContext:t,legacyLocale:n},e))};er.ConfigContext=Ue;er.SizeContext=Co;er.config=qE;er.useConfig=qS;Object.defineProperty(er,"SizeContext",{get:()=>(ne.env.NODE_ENV!=="production"&&Oo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Co)});ne.env.NODE_ENV!=="production"&&(er.displayName="ConfigProvider");var HE={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 jy(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function WE(e){return jy(e)instanceof ShadowRoot}function Gs(e){return WE(e)?jy(e):null}function UE(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function GE(e,t){pt(e,"[@ant-design/icons] ".concat(t))}function ph(e){return Be(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Be(e.icon)==="object"||typeof e.icon=="function")}function hh(){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[UE(n)]=r}return t},{})}function Wu(e,t,n){return n?I.createElement(e.tag,ie(ie({key:t},hh(e.attrs)),n),(e.children||[]).map(function(r,o){return Wu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):I.createElement(e.tag,ie({key:t},hh(e.attrs)),(e.children||[]).map(function(r,o){return Wu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function ky(e){return fa(e)[0]}function Ly(e){return e?Array.isArray(e)?e:[e]:[]}var KE=`
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
+ `,XE=function(t){var n=I.useContext(ed),r=n.csp,o=n.prefixCls,i=KE;o&&(i=i.replace(/anticon/g,o)),I.useEffect(function(){var a=t.current,s=Gs(a);xr(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},YE=["icon","className","onClick","style","primaryColor","secondaryColor"],Ki={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function QE(e){var t=e.primaryColor,n=e.secondaryColor;Ki.primaryColor=t,Ki.secondaryColor=n||ky(t),Ki.calculated=!!n}function JE(){return ie({},Ki)}var Ci=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=nt(t,YE),c=h.useRef(),u=Ki;if(a&&(u={primaryColor:a,secondaryColor:s||ky(a)}),XE(c),GE(ph(n),"icon should be icon definiton, but got ".concat(n)),!ph(n))return null;var p=n;return p&&typeof p.icon=="function"&&(p=ie(ie({},p),{},{icon:p.icon(u.primaryColor,u.secondaryColor)})),Wu(p.icon,"svg-".concat(p.name),ie(ie({className:r,onClick:o,style:i,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Ci.displayName="IconReact";Ci.getTwoToneColors=JE;Ci.setTwoToneColors=QE;function Fy(e){var t=Ly(e),n=he(t,2),r=n[0],o=n[1];return Ci.setTwoToneColors({primaryColor:r,secondaryColor:o})}function ZE(){var e=Ci.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var e1=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Fy(Ws.primary);var fn=h.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=nt(e,e1),u=h.useContext(ed),p=u.prefixCls,d=p===void 0?"anticon":p,y=u.rootClassName,_=de(y,d,oe(oe({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!o||r.name==="loading"),n),x=a;x===void 0&&s&&(x=-1);var g=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,v=Ly(l),f=he(v,2),m=f[0],b=f[1];return h.createElement("span",Te({role:"img","aria-label":r.name},c,{ref:t,tabIndex:x,onClick:s,className:_}),h.createElement(Ci,{icon:r,primaryColor:m,secondaryColor:b,style:g}))});fn.displayName="AntdIcon";fn.getTwoToneColor=ZE;fn.setTwoToneColor=Fy;var t1=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:HE}))},Oa=h.forwardRef(t1);ne.env.NODE_ENV!=="production"&&(Oa.displayName="CheckCircleFilled");var n1={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"},r1=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:n1}))},xi=h.forwardRef(r1);ne.env.NODE_ENV!=="production"&&(xi.displayName="CloseCircleFilled");var o1={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"},i1=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:o1}))},$o=h.forwardRef(i1);ne.env.NODE_ENV!=="production"&&($o.displayName="CloseOutlined");var a1={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"},s1=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:a1}))},$a=h.forwardRef(s1);ne.env.NODE_ENV!=="production"&&($a.displayName="ExclamationCircleFilled");var l1={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"},c1=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:l1}))},xl=h.forwardRef(c1);ne.env.NODE_ENV!=="production"&&(xl.displayName="InfoCircleFilled");var u1=`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`,f1=`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`,d1="".concat(u1," ").concat(f1).split(/[\s\n]+/),p1="aria-",h1="data-";function mh(e,t){return e.indexOf(t)===0}function Ta(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"||mh(o,p1))||n.data&&mh(o,h1)||n.attr&&d1.includes(o))&&(r[o]=e[o])}),r}function Dy(e){return e&&I.isValidElement(e)&&e.type===I.Fragment}const By=(e,t,n)=>I.isValidElement(e)?I.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Er(e,t){return By(e,e,t)}const gh=e=>typeof e=="object"&&e!=null&&e.nodeType===1,vh=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",uc=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return vh(n.overflowY,t)||vh(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},rs=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,m1=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},yh=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,p=typeof c=="function"?c:G=>G!==c;if(!gh(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,y=[];let _=e;for(;gh(_)&&p(_);){if(_=m1(_),_===d){y.push(_);break}_!=null&&_===document.body&&uc(_)&&!uc(document.documentElement)||_!=null&&uc(_,u)&&y.push(_)}const x=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:v,scrollY:f}=window,{height:m,width:b,top:C,right:E,bottom:S,left:w}=e.getBoundingClientRect(),{top:O,right:P,bottom:A,left:T}=(G=>{const z=window.getComputedStyle(G);return{top:parseFloat(z.scrollMarginTop)||0,right:parseFloat(z.scrollMarginRight)||0,bottom:parseFloat(z.scrollMarginBottom)||0,left:parseFloat(z.scrollMarginLeft)||0}})(e);let L=s==="start"||s==="nearest"?C-O:s==="end"?S+A:C+m/2-O+A,D=l==="center"?w+b/2-T+P:l==="end"?E+P:w-T;const Q=[];for(let G=0;G<y.length;G++){const z=y[G],{height:Y,width:ee,top:W,right:U,bottom:j,left:M}=z.getBoundingClientRect();if(a==="if-needed"&&C>=0&&w>=0&&S<=g&&E<=x&&C>=W&&S<=j&&w>=M&&E<=U)return Q;const H=getComputedStyle(z),J=parseInt(H.borderLeftWidth,10),B=parseInt(H.borderTopWidth,10),q=parseInt(H.borderRightWidth,10),K=parseInt(H.borderBottomWidth,10);let re=0,se=0;const k="offsetWidth"in z?z.offsetWidth-z.clientWidth-J-q:0,F="offsetHeight"in z?z.offsetHeight-z.clientHeight-B-K:0,ae="offsetWidth"in z?z.offsetWidth===0?0:ee/z.offsetWidth:0,Z="offsetHeight"in z?z.offsetHeight===0?0:Y/z.offsetHeight:0;if(d===z)re=s==="start"?L:s==="end"?L-g:s==="nearest"?rs(f,f+g,g,B,K,f+L,f+L+m,m):L-g/2,se=l==="start"?D:l==="center"?D-x/2:l==="end"?D-x:rs(v,v+x,x,J,q,v+D,v+D+b,b),re=Math.max(0,re+f),se=Math.max(0,se+v);else{re=s==="start"?L-W-B:s==="end"?L-j+K+F:s==="nearest"?rs(W,j,Y,B,K+F,L,L+m,m):L-(W+Y/2)+F/2,se=l==="start"?D-M-J:l==="center"?D-(M+ee/2)+k/2:l==="end"?D-U+q+k:rs(M,U,ee,J,q+k,D,D+b,b);const{scrollLeft:me,scrollTop:pe}=z;re=Z===0?0:Math.max(0,Math.min(pe+re/Z,z.scrollHeight-Y/Z+F)),se=ae===0?0:Math.max(0,Math.min(me+se/ae,z.scrollWidth-ee/ae+k)),L+=pe-re,D+=me-se}Q.push({el:z,top:re,left:se})}return Q},g1=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function v1(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(yh(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of yh(e,g1(t))){const s=i-n.top+n.bottom,l=a-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}const En=e=>{const[,,,,t]=Jn();return t?`${e}-css-var`:""};var $e={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>=$e.F1&&n<=$e.F12)return!1;switch(n){case $e.ALT:case $e.CAPS_LOCK:case $e.CONTEXT_MENU:case $e.CTRL:case $e.DOWN:case $e.END:case $e.ESC:case $e.HOME:case $e.INSERT:case $e.LEFT:case $e.MAC_FF_META:case $e.META:case $e.NUMLOCK:case $e.NUM_CENTER:case $e.PAGE_DOWN:case $e.PAGE_UP:case $e.PAUSE:case $e.PRINT_SCREEN:case $e.RIGHT:case $e.SHIFT:case $e.UP:case $e.WIN_KEY:case $e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=$e.ZERO&&t<=$e.NINE||t>=$e.NUM_ZERO&&t<=$e.NUM_MULTIPLY||t>=$e.A&&t<=$e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case $e.SPACE:case $e.QUESTION_MARK:case $e.NUM_PLUS:case $e.NUM_MINUS:case $e.NUM_PERIOD:case $e.NUM_DIVISION:case $e.SEMICOLON:case $e.DASH:case $e.EQUALS:case $e.COMMA:case $e.PERIOD:case $e.SLASH:case $e.APOSTROPHE:case $e.SINGLE_QUOTE:case $e.OPEN_SQUARE_BRACKET:case $e.BACKSLASH:case $e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},sd=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,p=e.content,d=e.closable,y=e.closeIcon,_=y===void 0?"x":y,x=e.props,g=e.onClick,v=e.onNoticeClose,f=e.times,m=e.hovering,b=h.useState(!1),C=he(b,2),E=C[0],S=C[1],w=h.useState(0),O=he(w,2),P=O[0],A=O[1],T=h.useState(0),L=he(T,2),D=L[0],Q=L[1],G=m||E,z=a>0&&s,Y=function(){v(u)},ee=function(J){(J.key==="Enter"||J.code==="Enter"||J.keyCode===$e.ENTER)&&Y()};h.useEffect(function(){if(!G&&a>0){var H=Date.now()-D,J=setTimeout(function(){Y()},a*1e3-D);return function(){c&&clearTimeout(J),Q(Date.now()-H)}}},[a,G,f]),h.useEffect(function(){if(!G&&z&&(c||D===0)){var H=performance.now(),J,B=function q(){cancelAnimationFrame(J),J=requestAnimationFrame(function(K){var re=K+D-H,se=Math.min(re/(a*1e3),1);A(se*100),se<1&&q()})};return B(),function(){c&&cancelAnimationFrame(J)}}},[a,D,G,z,f]);var W=h.useMemo(function(){return Be(d)==="object"&&d!==null?d:d?{closeIcon:_}:{}},[d,_]),U=Ta(W,!0),j=100-(!P||P<0?0:P>100?100:P),M="".concat(n,"-notice");return h.createElement("div",Te({},x,{ref:t,className:de(M,o,oe({},"".concat(M,"-closable"),d)),style:r,onMouseEnter:function(J){var B;S(!0),x==null||(B=x.onMouseEnter)===null||B===void 0||B.call(x,J)},onMouseLeave:function(J){var B;S(!1),x==null||(B=x.onMouseLeave)===null||B===void 0||B.call(x,J)},onClick:g}),h.createElement("div",{className:"".concat(M,"-content")},p),d&&h.createElement("a",Te({tabIndex:0,className:"".concat(M,"-close"),onKeyDown:ee,"aria-label":"Close"},U,{onClick:function(J){J.preventDefault(),J.stopPropagation(),Y()}}),W.closeIcon),z&&h.createElement("progress",{className:"".concat(M,"-progress"),max:"100",value:j},j+"%"))}),zy=I.createContext({}),qy=function(t){var n=t.children,r=t.classNames;return I.createElement(zy.Provider,{value:{classNames:r}},n)},bh=8,_h=3,wh=16,y1=function(t){var n={offset:bh,threshold:_h,gap:wh};if(t&&Be(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:bh,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:_h,n.gap=(i=t.gap)!==null&&i!==void 0?i:wh}return[!!t,n]},b1=["className","style","classNames","styles"],Vy=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,p=I.useContext(zy),d=p.classNames,y=I.useRef({}),_=I.useRef(null),x=I.useState([]),g=he(x,2),v=g[0],f=g[1],m=n.map(function(L){return{config:L,key:String(L.key)}}),b=y1(u),C=he(b,2),E=C[0],S=C[1],w=S.offset,O=S.threshold,P=S.gap,A=E&&(v.length>0||m.length<=O),T=typeof s=="function"?s(r):s;return I.useEffect(function(){E&&v.length>1&&f(function(L){return L.filter(function(D){return m.some(function(Q){var G=Q.key;return D===G})})})},[v,m,E]),I.useEffect(function(){var L;if(E&&y.current[(L=m[m.length-1])===null||L===void 0?void 0:L.key]){var D;_.current=y.current[(D=m[m.length-1])===null||D===void 0?void 0:D.key]}},[m,E]),I.createElement(Py,Te({key:r,className:de(o,"".concat(o,"-").concat(r),d==null?void 0:d.list,i,oe(oe({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),A)),style:a,keys:m,motionAppear:!0},T,{onAllRemoved:function(){l(r)}}),function(L,D){var Q=L.config,G=L.className,z=L.style,Y=L.index,ee=Q,W=ee.key,U=ee.times,j=String(W),M=Q,H=M.className,J=M.style,B=M.classNames,q=M.styles,K=nt(M,b1),re=m.findIndex(function(we){return we.key===j}),se={};if(E){var k=m.length-1-(re>-1?re:Y-1),F=r==="top"||r==="bottom"?"-50%":"0";if(k>0){var ae,Z,me,pe,Ce,Me;se.height=A?(ae=y.current[j])===null||ae===void 0?void 0:ae.offsetHeight:(Z=_.current)===null||Z===void 0?void 0:Z.offsetHeight;for(var ce=0,Ie=0;Ie<k;Ie++){var Pe;ce+=((Pe=y.current[m[m.length-1-Ie].key])===null||Pe===void 0?void 0:Pe.offsetHeight)+P}var Oe=(A?ce:k*w)*(r.startsWith("top")?1:-1),ve=!A&&(me=_.current)!==null&&me!==void 0&&me.offsetWidth&&(pe=y.current[j])!==null&&pe!==void 0&&pe.offsetWidth?(((Ce=_.current)===null||Ce===void 0?void 0:Ce.offsetWidth)-w*2*(k<3?k:3))/((Me=y.current[j])===null||Me===void 0?void 0:Me.offsetWidth):1;se.transform="translate3d(".concat(F,", ").concat(Oe,"px, 0) scaleX(").concat(ve,")")}else se.transform="translate3d(".concat(F,", 0, 0)")}return I.createElement("div",{ref:D,className:de("".concat(o,"-notice-wrapper"),G,B==null?void 0:B.wrapper),style:ie(ie(ie({},z),se),q==null?void 0:q.wrapper),onMouseEnter:function(){return f(function(Se){return Se.includes(j)?Se:[].concat(xe(Se),[j])})},onMouseLeave:function(){return f(function(Se){return Se.filter(function(Ee){return Ee!==j})})}},I.createElement(sd,Te({},K,{ref:function(Se){re>-1?y.current[j]=Se:delete y.current[j]},prefixCls:o,classNames:B,styles:q,className:de(H,d==null?void 0:d.notice),style:J,times:U,key:W,eventKey:W,onNoticeClose:c,hovering:E&&v.length>0})))})};ne.env.NODE_ENV!=="production"&&(Vy.displayName="NoticeList");var Hy=h.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,p=e.renderNotifications,d=h.useState([]),y=he(d,2),_=y[0],x=y[1],g=function(O){var P,A=_.find(function(T){return T.key===O});A==null||(P=A.onClose)===null||P===void 0||P.call(A),x(function(T){return T.filter(function(L){return L.key!==O})})};h.useImperativeHandle(t,function(){return{open:function(O){x(function(P){var A=xe(P),T=A.findIndex(function(Q){return Q.key===O.key}),L=ie({},O);if(T>=0){var D;L.times=(((D=P[T])===null||D===void 0?void 0:D.times)||0)+1,A[T]=L}else L.times=0,A.push(L);return a>0&&A.length>a&&(A=A.slice(-a)),A})},close:function(O){g(O)},destroy:function(){x([])}}});var v=h.useState({}),f=he(v,2),m=f[0],b=f[1];h.useEffect(function(){var w={};_.forEach(function(O){var P=O.placement,A=P===void 0?"topRight":P;A&&(w[A]=w[A]||[],w[A].push(O))}),Object.keys(m).forEach(function(O){w[O]=w[O]||[]}),b(w)},[_]);var C=function(O){b(function(P){var A=ie({},P),T=A[O]||[];return T.length||delete A[O],A})},E=h.useRef(!1);if(h.useEffect(function(){Object.keys(m).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[m]),!o)return null;var S=Object.keys(m);return _o.createPortal(h.createElement(h.Fragment,null,S.map(function(w){var O=m[w],P=h.createElement(Vy,{key:w,configList:O,placement:w,prefixCls:r,className:s==null?void 0:s(w),style:l==null?void 0:l(w),motion:i,onNoticeClose:g,onAllNoticeRemoved:C,stack:u});return p?p(P,{prefixCls:r,key:w}):P})),o)});ne.env.NODE_ENV!=="production"&&(Hy.displayName="Notifications");var _1=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],w1=function(){return document.body},Ch=0;function C1(){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 Wy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?w1:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,p=nt(e,_1),d=h.useState(),y=he(d,2),_=y[0],x=y[1],g=h.useRef(),v=h.createElement(Hy,{container:_,ref:g,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),f=h.useState([]),m=he(f,2),b=m[0],C=m[1],E=h.useMemo(function(){return{open:function(w){var O=C1(p,w);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(Ch),Ch+=1),C(function(P){return[].concat(xe(P),[{type:"open",config:O}])})},close:function(w){C(function(O){return[].concat(xe(O),[{type:"close",key:w}])})},destroy:function(){C(function(w){return[].concat(xe(w),[{type:"destroy"}])})}}},[]);return h.useEffect(function(){x(n())}),h.useEffect(function(){g.current&&b.length&&(b.forEach(function(S){switch(S.type){case"open":g.current.open(S.config);break;case"close":g.current.close(S.key);break;case"destroy":g.current.destroy();break}}),C(function(S){return S.filter(function(w){return!b.includes(w)})}))},[b]),[E,v]}var x1={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"},S1=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:x1}))},Sl=h.forwardRef(S1);ne.env.NODE_ENV!=="production"&&(Sl.displayName="LoadingOutlined");const El=I.createContext(void 0);ne.env.NODE_ENV!=="production"&&(El.displayName="zIndexContext");const oo=100,E1=10,Rl=oo*E1,Uy={Modal:oo,Drawer:oo,Popover:oo,Popconfirm:oo,Tooltip:oo,Tour:oo},R1={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function O1(e){return e in Uy}function Gy(e,t){const[,n]=Jn(),r=I.useContext(El),o=O1(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+Uy[e]:a+=R1[e],i=[r===void 0?t:a,a]}if(ne.env.NODE_ENV!=="production"){const a=Pt(e),s=n.zIndexPopupBase+Rl,l=i[0]||0;ne.env.NODE_ENV!=="production"&&a(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i}const $1=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:p,marginXS:d,paddingXS:y,borderRadiusLG:_,zIndexPopup:x,contentPadding:g,contentBg:v}=e,f=`${t}-notice`,m=new at("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),b=new at("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:y,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:c},[`${f}-content`]:{display:"inline-block",padding:g,background:v,borderRadius:_,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
147
+ ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},vn(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:x,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
148
+ ${t}-move-up-appear,
149
+ ${t}-move-up-enter
150
+ `]:{animationName:m,animationDuration:p,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:b,animationDuration:p,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${f}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},T1=e=>({zIndexPopup:e.zIndexPopupBase+Rl+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Ky=un("Message",e=>{const t=Ft(e,{height:150});return[$1(t)]},T1);var P1=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 N1={info:h.createElement(xl,null),success:h.createElement(Oa,null),error:h.createElement(xi,null),warning:h.createElement($a,null),loading:h.createElement(Sl,null)},Xy=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return h.createElement("div",{className:de(`${t}-custom-content`,`${t}-${n}`)},r||N1[n],h.createElement("span",null,o))},I1=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=P1(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=h.useContext(Ue),l=t||s("message"),c=En(l),[u,p,d]=Ky(l,c);return u(h.createElement(sd,Object.assign({},a,{prefixCls:l,className:de(n,p,`${l}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:h.createElement(Xy,{prefixCls:l,type:r,icon:o},i)})))};function A1(e,t){return{motionName:t??`${e}-move-up`}}function ld(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 M1=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 j1=8,k1=3,L1=e=>{let{children:t,prefixCls:n}=e;const r=En(n),[o,i,a]=Ky(n,r);return o(h.createElement(qy,{classNames:{list:de(i,a,r)}},t))},F1=(e,t)=>{let{prefixCls:n,key:r}=t;return h.createElement(L1,{prefixCls:n,key:r},e)},D1=h.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=k1,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:p,message:d,direction:y}=h.useContext(Ue),_=r||u("message"),x=()=>({left:"50%",transform:"translateX(-50%)",top:n??j1}),g=()=>de({[`${_}-rtl`]:s??y==="rtl"}),v=()=>A1(_,l),f=h.createElement("span",{className:`${_}-close-x`},h.createElement($o,{className:`${_}-close-icon`})),[m,b]=Wy({prefixCls:_,style:x,className:g,motion:v,closable:!1,closeIcon:f,duration:a,getContainer:()=>(o==null?void 0:o())||(p==null?void 0:p())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:F1});return h.useImperativeHandle(t,()=>Object.assign(Object.assign({},m),{prefixCls:_,message:d})),b});let xh=0;function Yy(e){const t=h.useRef(null),n=Pt("Message");return[h.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:p,message:d}=t.current,y=`${p}-notice`,{content:_,icon:x,type:g,key:v,className:f,style:m,onClose:b}=c,C=M1(c,["content","icon","type","key","className","style","onClose"]);let E=v;return E==null&&(xh+=1,E=`antd-message-${xh}`),ld(S=>(u(Object.assign(Object.assign({},C),{key:E,content:h.createElement(Xy,{prefixCls:p,type:g,icon:x},_),placement:"top",className:de(g&&`${y}-${g}`,f,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),m),onClose:()=>{b==null||b(),S()}})),()=>{o(E)}))},s={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=(p,d,y)=>{let _;p&&typeof p=="object"&&"content"in p?_=p:_={content:p};let x,g;typeof d=="function"?g=d:(x=d,g=y);const v=Object.assign(Object.assign({onClose:g,duration:x},_),{type:c});return i(v)};s[c]=u}),s},[]),h.createElement(D1,Object.assign({key:"message-holder"},e,{ref:t}))]}function B1(e){return Yy(e)}function z1(){const[e,t]=h.useState([]),n=h.useCallback(r=>(t(o=>[].concat(xe(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function pn(){pn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(G,z,Y){G[z]=Y.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(G,z,Y){return Object.defineProperty(G,z,{value:Y,enumerable:!0,configurable:!0,writable:!0}),G[z]}try{c({},"")}catch{c=function(Y,ee,W){return Y[ee]=W}}function u(G,z,Y,ee){var W=z&&z.prototype instanceof v?z:v,U=Object.create(W.prototype),j=new D(ee||[]);return o(U,"_invoke",{value:P(G,Y,j)}),U}function p(G,z,Y){try{return{type:"normal",arg:G.call(z,Y)}}catch(ee){return{type:"throw",arg:ee}}}t.wrap=u;var d="suspendedStart",y="suspendedYield",_="executing",x="completed",g={};function v(){}function f(){}function m(){}var b={};c(b,a,function(){return this});var C=Object.getPrototypeOf,E=C&&C(C(Q([])));E&&E!==n&&r.call(E,a)&&(b=E);var S=m.prototype=v.prototype=Object.create(b);function w(G){["next","throw","return"].forEach(function(z){c(G,z,function(Y){return this._invoke(z,Y)})})}function O(G,z){function Y(W,U,j,M){var H=p(G[W],G,U);if(H.type!=="throw"){var J=H.arg,B=J.value;return B&&Be(B)=="object"&&r.call(B,"__await")?z.resolve(B.__await).then(function(q){Y("next",q,j,M)},function(q){Y("throw",q,j,M)}):z.resolve(B).then(function(q){J.value=q,j(J)},function(q){return Y("throw",q,j,M)})}M(H.arg)}var ee;o(this,"_invoke",{value:function(U,j){function M(){return new z(function(H,J){Y(U,j,H,J)})}return ee=ee?ee.then(M,M):M()}})}function P(G,z,Y){var ee=d;return function(W,U){if(ee===_)throw Error("Generator is already running");if(ee===x){if(W==="throw")throw U;return{value:e,done:!0}}for(Y.method=W,Y.arg=U;;){var j=Y.delegate;if(j){var M=A(j,Y);if(M){if(M===g)continue;return M}}if(Y.method==="next")Y.sent=Y._sent=Y.arg;else if(Y.method==="throw"){if(ee===d)throw ee=x,Y.arg;Y.dispatchException(Y.arg)}else Y.method==="return"&&Y.abrupt("return",Y.arg);ee=_;var H=p(G,z,Y);if(H.type==="normal"){if(ee=Y.done?x:y,H.arg===g)continue;return{value:H.arg,done:Y.done}}H.type==="throw"&&(ee=x,Y.method="throw",Y.arg=H.arg)}}}function A(G,z){var Y=z.method,ee=G.iterator[Y];if(ee===e)return z.delegate=null,Y==="throw"&&G.iterator.return&&(z.method="return",z.arg=e,A(G,z),z.method==="throw")||Y!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+Y+"' method")),g;var W=p(ee,G.iterator,z.arg);if(W.type==="throw")return z.method="throw",z.arg=W.arg,z.delegate=null,g;var U=W.arg;return U?U.done?(z[G.resultName]=U.value,z.next=G.nextLoc,z.method!=="return"&&(z.method="next",z.arg=e),z.delegate=null,g):U:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,g)}function T(G){var z={tryLoc:G[0]};1 in G&&(z.catchLoc=G[1]),2 in G&&(z.finallyLoc=G[2],z.afterLoc=G[3]),this.tryEntries.push(z)}function L(G){var z=G.completion||{};z.type="normal",delete z.arg,G.completion=z}function D(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(T,this),this.reset(!0)}function Q(G){if(G||G===""){var z=G[a];if(z)return z.call(G);if(typeof G.next=="function")return G;if(!isNaN(G.length)){var Y=-1,ee=function W(){for(;++Y<G.length;)if(r.call(G,Y))return W.value=G[Y],W.done=!1,W;return W.value=e,W.done=!0,W};return ee.next=ee}}throw new TypeError(Be(G)+" is not iterable")}return f.prototype=m,o(S,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:f,configurable:!0}),f.displayName=c(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(G){var z=typeof G=="function"&&G.constructor;return!!z&&(z===f||(z.displayName||z.name)==="GeneratorFunction")},t.mark=function(G){return Object.setPrototypeOf?Object.setPrototypeOf(G,m):(G.__proto__=m,c(G,l,"GeneratorFunction")),G.prototype=Object.create(S),G},t.awrap=function(G){return{__await:G}},w(O.prototype),c(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(G,z,Y,ee,W){W===void 0&&(W=Promise);var U=new O(u(G,z,Y,ee),W);return t.isGeneratorFunction(z)?U:U.next().then(function(j){return j.done?j.value:U.next()})},w(S),c(S,l,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(G){var z=Object(G),Y=[];for(var ee in z)Y.push(ee);return Y.reverse(),function W(){for(;Y.length;){var U=Y.pop();if(U in z)return W.value=U,W.done=!1,W}return W.done=!0,W}},t.values=Q,D.prototype={constructor:D,reset:function(z){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),!z)for(var Y in this)Y.charAt(0)==="t"&&r.call(this,Y)&&!isNaN(+Y.slice(1))&&(this[Y]=e)},stop:function(){this.done=!0;var z=this.tryEntries[0].completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(z){if(this.done)throw z;var Y=this;function ee(J,B){return j.type="throw",j.arg=z,Y.next=J,B&&(Y.method="next",Y.arg=e),!!B}for(var W=this.tryEntries.length-1;W>=0;--W){var U=this.tryEntries[W],j=U.completion;if(U.tryLoc==="root")return ee("end");if(U.tryLoc<=this.prev){var M=r.call(U,"catchLoc"),H=r.call(U,"finallyLoc");if(M&&H){if(this.prev<U.catchLoc)return ee(U.catchLoc,!0);if(this.prev<U.finallyLoc)return ee(U.finallyLoc)}else if(M){if(this.prev<U.catchLoc)return ee(U.catchLoc,!0)}else{if(!H)throw Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return ee(U.finallyLoc)}}}},abrupt:function(z,Y){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var W=this.tryEntries[ee];if(W.tryLoc<=this.prev&&r.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var U=W;break}}U&&(z==="break"||z==="continue")&&U.tryLoc<=Y&&Y<=U.finallyLoc&&(U=null);var j=U?U.completion:{};return j.type=z,j.arg=Y,U?(this.method="next",this.next=U.finallyLoc,g):this.complete(j)},complete:function(z,Y){if(z.type==="throw")throw z.arg;return z.type==="break"||z.type==="continue"?this.next=z.arg:z.type==="return"?(this.rval=this.arg=z.arg,this.method="return",this.next="end"):z.type==="normal"&&Y&&(this.next=Y),g},finish:function(z){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ee=this.tryEntries[Y];if(ee.finallyLoc===z)return this.complete(ee.completion,ee.afterLoc),L(ee),g}},catch:function(z){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var ee=this.tryEntries[Y];if(ee.tryLoc===z){var W=ee.completion;if(W.type==="throw"){var U=W.arg;L(ee)}return U}}throw Error("illegal catch attempt")},delegateYield:function(z,Y,ee){return this.delegate={iterator:Q(z),resultName:Y,nextLoc:ee},this.method==="next"&&(this.arg=e),g}},t}function Sh(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function To(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){Sh(i,r,o,a,s,"next",l)}function s(l){Sh(i,r,o,a,s,"throw",l)}a(void 0)})}}var Pa=ie({},SC),q1=Pa.version,V1=Pa.render,H1=Pa.unmountComponentAtNode,Ol;try{var W1=Number((q1||"").split(".")[0]);W1>=18&&(Ol=Pa.createRoot)}catch{}function Eh(e){var t=Pa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Be(t)==="object"&&(t.usingClientEntryPoint=e)}var Ks="__rc_react_root__";function U1(e,t){Eh(!0);var n=t[Ks]||Ol(t);Eh(!1),n.render(e),t[Ks]=n}function G1(e,t){V1(e,t)}function $l(e,t){if(Ol){U1(e,t);return}G1(e,t)}function K1(e){return Uu.apply(this,arguments)}function Uu(){return Uu=To(pn().mark(function e(t){return pn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Ks])===null||o===void 0||o.unmount(),delete t[Ks]}));case 1:case"end":return r.stop()}},e)})),Uu.apply(this,arguments)}function X1(e){H1(e)}function Qy(e){return Gu.apply(this,arguments)}function Gu(){return Gu=To(pn().mark(function e(t){return pn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ol===void 0){r.next=2;break}return r.abrupt("return",K1(t));case 2:X1(t);case 3:case"end":return r.stop()}},e)})),Gu.apply(this,arguments)}const fc=()=>({height:0,opacity:0}),Rh=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Y1=e=>({height:e?e.offsetHeight:0}),dc=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Oh=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:pa}-motion-collapse`,onAppearStart:fc,onEnterStart:fc,onAppearActive:Rh,onEnterActive:Rh,onLeaveStart:Y1,onLeaveActive:fc,onAppearEnd:dc,onEnterEnd:dc,onLeaveEnd:dc,motionDeadline:500}},So=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Tl=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},Q1=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(",")}}}}},J1=uE("Wave",e=>[Q1(e)]),Jy=`${pa}-wave-target`;function Z1(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 pc(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Z1(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function eR(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return pc(t)?t:pc(n)?n:pc(r)?r:null}function hc(e){return Number.isNaN(e)?0:e}const tR=e=>{const{className:t,target:n,component:r}=e,o=h.useRef(null),[i,a]=h.useState(null),[s,l]=h.useState([]),[c,u]=h.useState(0),[p,d]=h.useState(0),[y,_]=h.useState(0),[x,g]=h.useState(0),[v,f]=h.useState(!1),m={left:c,top:p,width:y,height:x,borderRadius:s.map(E=>`${E}px`).join(" ")};i&&(m["--wave-color"]=i);function b(){const E=getComputedStyle(n);a(eR(n));const S=E.position==="static",{borderLeftWidth:w,borderTopWidth:O}=E;u(S?n.offsetLeft:hc(-parseFloat(w))),d(S?n.offsetTop:hc(-parseFloat(O))),_(n.offsetWidth),g(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:A,borderBottomLeftRadius:T,borderBottomRightRadius:L}=E;l([P,A,L,T].map(D=>hc(parseFloat(D))))}if(h.useEffect(()=>{if(n){const E=Lt(()=>{b(),f(!0)});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(b),S.observe(n)),()=>{Lt.cancel(E),S==null||S.disconnect()}}},[]),!v)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Jy));return h.createElement(Zn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,S)=>{var w;if(S.deadline||S.propertyName==="opacity"){const O=(w=o.current)===null||w===void 0?void 0:w.parentElement;Qy(O).then(()=>{O==null||O.remove()})}return!1}},(E,S)=>{let{className:w}=E;return h.createElement("div",{ref:Yn(o,S),className:de(t,w,{"wave-quick":C}),style:m})})},nR=(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),$l(h.createElement(tR,Object.assign({},t,{target:e})),o)},rR=(e,t,n)=>{const{wave:r}=h.useContext(Ue),[,o,i]=Jn(),a=Zt(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const p=u.querySelector(`.${Jy}`)||u,{showEffect:d}=r||{};(d||nR)(p,{className:t,token:o,component:n,event:c,hashId:i})}),s=h.useRef();return c=>{Lt.cancel(s.current),s.current=Lt(()=>{a(c)})}},cd=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=I.useContext(Ue),i=I.useRef(null),a=o("wave"),[,s]=J1(a),l=rR(i,de(a,s),r);if(I.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const p=d=>{!Tl(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(d)};return u.addEventListener("click",p,!0),()=>{u.removeEventListener("click",p,!0)}},[n]),!I.isValidElement(t))return t??null;const c=Kr(t)?Yn(t.ref,i):i;return Er(t,{ref:c})};ne.env.NODE_ENV!=="production"&&(cd.displayName="Wave");const Po=e=>{const t=I.useContext(Co);return I.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Zy=h.createContext(null),ud=(e,t)=>{const n=h.useContext(Zy),r=h.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return de(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},oR=e=>{let{children:t}=e;return h.createElement(Zy.Provider,{value:null},t)};var iR=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 eb=h.createContext(void 0),aR=e=>{const{getPrefixCls:t,direction:n}=h.useContext(Ue),{prefixCls:r,size:o,className:i}=e,a=iR(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Jn();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}if(ne.env.NODE_ENV!=="production"){const p=Pt("Button.Group");ne.env.NODE_ENV!=="production"&&p(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=de(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return h.createElement(eb.Provider,{value:o},h.createElement("div",Object.assign({},a,{className:u})))},$h=/^[\u4e00-\u9fa5]{2}$/,Ku=$h.test.bind($h);function tb(e){return e==="danger"?{danger:!0}:{type:e}}function Th(e){return typeof e=="string"}function os(e){return e==="text"||e==="link"}function sR(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Th(e.type)&&Ku(e.props.children)?Er(e,{children:e.props.children.split("").join(n)}):Th(e)?Ku(e)?I.createElement("span",null,e.split("").join(n)):I.createElement("span",null,e):Dy(e)?I.createElement("span",null,e):e}function lR(e,t){let n=!1;const r=[];return I.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=a}),I.Children.map(r,o=>sR(o,t))}const nb=I.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=de(`${i}-icon`,n);return I.createElement("span",{ref:t,className:a,style:r},o)}),Ph=I.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=de(`${n}-loading-icon`,r);return I.createElement(nb,{prefixCls:n,className:a,style:o,ref:t},I.createElement(Sl,{className:i}))}),mc=()=>({width:0,opacity:0,transform:"scale(0)"}),gc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),cR=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?I.createElement(Ph,{prefixCls:t,className:o,style:i}):I.createElement(Zn,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:mc,onAppearActive:gc,onEnterStart:mc,onEnterActive:gc,onLeaveStart:gc,onLeaveActive:mc},(s,l)=>{let{className:c,style:u}=s;return I.createElement(Ph,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},Nh=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),uR=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}},Nh(`${t}-primary`,o),Nh(`${t}-danger`,i)]}},rb=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Ft(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},ob=e=>{var t,n,r,o,i,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(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:Ts(s),p=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Ts(l),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Ts(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:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:p,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*p)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)}},fR=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:`${_e(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({},Ea(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"}}}},Rr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),dR=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),pR=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),hR=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ma=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Rr(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),fd=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},hR(e))}),ib=e=>Object.assign({},fd(e)),Xs=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ab=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ib(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Rr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ma(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},Rr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ma(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),fd(e))}),mR=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ib(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Rr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),ma(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},Rr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),ma(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),fd(e))}),gR=e=>Object.assign(Object.assign({},ab(e)),{borderStyle:"dashed"}),vR=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Rr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Xs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Rr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Xs(e))}),yR=e=>Object.assign(Object.assign(Object.assign({},Rr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Xs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Xs(e)),Rr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),bR=e=>{const{componentCls:t}=e;return{[`${t}-default`]:ab(e),[`${t}-primary`]:mR(e),[`${t}-dashed`]:gR(e),[`${t}-link`]:vR(e),[`${t}-text`]:yR(e),[`${t}-ghost`]:ma(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},dd=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:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${_e(c)} ${_e(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{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}`]:dR(e)},{[`${n}${n}-round${t}`]:pR(e)}]},_R=e=>{const t=Ft(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return dd(t,e.componentCls)},wR=e=>{const t=Ft(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 dd(t,`${e.componentCls}-sm`)},CR=e=>{const t=Ft(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return dd(t,`${e.componentCls}-lg`)},xR=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},SR=un("Button",e=>{const t=rb(e);return[fR(t),_R(t),wR(t),CR(t),xR(t),bR(t),uR(t)]},ob,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ER(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function RR(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 sb(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({},ER(e,r,t)),RR(n,r,t))}}function OR(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 $R(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 TR(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},OR(e,t)),$R(e.componentCls,t))}}const PR=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% + ${_e(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% + ${_e(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},NR=wi(["Button","compact"],e=>{const t=rb(e);return[sb(t),TR(t),PR(t)]},ob);var IR=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 AR(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 MR=I.forwardRef((e,t)=>{var n,r,o;const{loading:i=!1,prefixCls:a,type:s,danger:l=!1,shape:c="default",size:u,styles:p,disabled:d,className:y,rootClassName:_,children:x,icon:g,iconPosition:v="start",ghost:f=!1,block:m=!1,htmlType:b="button",classNames:C,style:E={},autoInsertSpace:S}=e,w=IR(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=s||"default",{getPrefixCls:P,direction:A,button:T}=I.useContext(Ue),L=(n=S??(T==null?void 0:T.autoInsertSpace))!==null&&n!==void 0?n:!0,D=P("btn",a),[Q,G,z]=SR(D),Y=I.useContext(Wr),ee=d??Y,W=I.useContext(eb),U=I.useMemo(()=>AR(i),[i]),[j,M]=I.useState(U.loading),[H,J]=I.useState(!1),q=Yn(t,I.createRef()),K=I.Children.count(x)===1&&!g&&!os(O);I.useEffect(()=>{let we=null;U.delay>0?we=setTimeout(()=>{we=null,M(!0)},U.delay):M(U.loading);function Se(){we&&(clearTimeout(we),we=null)}return Se},[U]),I.useEffect(()=>{if(!q||!q.current||!L)return;const we=q.current.textContent;K&&Ku(we)?H||J(!0):H&&J(!1)},[q]);const re=we=>{const{onClick:Se}=e;if(j||ee){we.preventDefault();return}Se==null||Se(we)};if(ne.env.NODE_ENV!=="production"){const we=Pt("Button");ne.env.NODE_ENV!=="production"&&we(!(typeof g=="string"&&g.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${g}\` at https://ant.design/components/icon`),ne.env.NODE_ENV!=="production"&&we(!(f&&os(O)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:se,compactItemClassnames:k}=ud(D,A),F={large:"lg",small:"sm",middle:void 0},ae=Po(we=>{var Se,Ee;return(Ee=(Se=u??se)!==null&&Se!==void 0?Se:W)!==null&&Ee!==void 0?Ee:we}),Z=ae&&F[ae]||"",me=j?"loading":g,pe=Qn(w,["navigate"]),Ce=de(D,G,z,{[`${D}-${c}`]:c!=="default"&&c,[`${D}-${O}`]:O,[`${D}-${Z}`]:Z,[`${D}-icon-only`]:!x&&x!==0&&!!me,[`${D}-background-ghost`]:f&&!os(O),[`${D}-loading`]:j,[`${D}-two-chinese-chars`]:H&&L&&!j,[`${D}-block`]:m,[`${D}-dangerous`]:l,[`${D}-rtl`]:A==="rtl",[`${D}-icon-end`]:v==="end"},k,y,_,T==null?void 0:T.className),Me=Object.assign(Object.assign({},T==null?void 0:T.style),E),ce=de(C==null?void 0:C.icon,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.icon),Ie=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),((o=T==null?void 0:T.styles)===null||o===void 0?void 0:o.icon)||{}),Pe=g&&!j?I.createElement(nb,{prefixCls:D,className:ce,style:Ie},g):I.createElement(cR,{existIcon:!!g,prefixCls:D,loading:j}),Oe=x||x===0?lR(x,K&&L):null;if(pe.href!==void 0)return Q(I.createElement("a",Object.assign({},pe,{className:de(Ce,{[`${D}-disabled`]:ee}),href:ee?void 0:pe.href,style:Me,onClick:re,ref:q,tabIndex:ee?-1:0}),Pe,Oe));let ve=I.createElement("button",Object.assign({},w,{type:b,className:Ce,style:Me,onClick:re,disabled:ee,ref:q}),Pe,Oe,!!k&&I.createElement(NR,{key:"compact",prefixCls:D}));return os(O)||(ve=I.createElement(cd,{component:"Button",disabled:j},ve)),Q(ve)}),ur=MR;ur.Group=aR;ur.__ANT_BUTTON=!0;ne.env.NODE_ENV!=="production"&&(ur.displayName="Button");function vc(e){return!!(e!=null&&e.then)}const lb=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,p=h.useRef(!1),d=h.useRef(null),[y,_]=xo(!1),x=function(){i==null||i.apply(void 0,arguments)};h.useEffect(()=>{let f=null;return a&&(f=setTimeout(()=>{var m;(m=d.current)===null||m===void 0||m.focus()})),()=>{f&&clearTimeout(f)}},[]);const g=f=>{vc(f)&&(_(!0),f.then(function(){_(!1,!0),x.apply(void 0,arguments),p.current=!1},m=>{if(_(!1,!0),p.current=!1,!(l!=null&&l()))return Promise.reject(m)}))},v=f=>{if(p.current)return;if(p.current=!0,!u){x();return}let m;if(s){if(m=u(f),c&&!vc(m)){p.current=!1,x(f);return}}else if(u.length)m=u(i),p.current=!1;else if(m=u(),!vc(m)){x();return}g(m)};return h.createElement(ur,Object.assign({},tb(t),{onClick:v,loading:y,prefixCls:r},o,{ref:d}),n)},Na=I.createContext({}),{Provider:cb}=Na,Ih=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=I.useContext(Na);return o?I.createElement(lb,{isSilent:r,actionFn:s,close:function(){a==null||a.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},Ah=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=I.useContext(Na);return I.createElement(lb,{isSilent:n,type:a||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var ub=h.createContext(null),Mh=[];function jR(e,t){var n=h.useState(function(){if(!dn())return null;var _=document.createElement("div");return ne.env.NODE_ENV!=="production"&&t&&_.setAttribute("data-debug",t),_}),r=he(n,1),o=r[0],i=h.useRef(!1),a=h.useContext(ub),s=h.useState(Mh),l=he(s,2),c=l[0],u=l[1],p=a||(i.current?void 0:function(_){u(function(x){var g=[_].concat(xe(x));return g})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function y(){var _;(_=o.parentElement)===null||_===void 0||_.removeChild(o),i.current=!1}return Xt(function(){return e?a?a(d):d():y(),y},[e]),Xt(function(){c.length&&(c.forEach(function(_){return _()}),u(Mh))},[c]),[o,p]}function kR(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 s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",p=c?"height: ".concat(s.height,";"):"";xr(`
154
+ #`.concat(t,`::-webkit-scrollbar {
155
+ `).concat(u,`
156
+ `).concat(p,`
157
+ }`),t)}catch(_){console.error(_),o=l,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),sa(t),{width:d,height:y}}function LR(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:kR(e)}function FR(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var DR="rc-util-locker-".concat(Date.now()),jh=0;function BR(e){var t=!!e,n=h.useState(function(){return jh+=1,"".concat(DR,"_").concat(jh)}),r=he(n,1),o=r[0];Xt(function(){if(t){var i=LR(document.body).width,a=FR();xr(`
158
+ html body {
159
+ overflow-y: hidden;
160
+ `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
161
+ }`),o)}else sa(o);return function(){sa(o)}},[t,o])}var zR=!1;function qR(e){return zR}var kh=function(t){return t===!1?!1:!dn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Pl=h.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=h.useState(n),u=he(c,2),p=u[0],d=u[1],y=p||n;ne.env.NODE_ENV!=="production"&&pt(dn()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),h.useEffect(function(){(s||n)&&d(n)},[n,s]);var _=h.useState(function(){return kh(o)}),x=he(_,2),g=x[0],v=x[1];h.useEffect(function(){var T=kh(o);v(T??null)});var f=jR(y&&!g,i),m=he(f,2),b=m[0],C=m[1],E=g??b;BR(r&&n&&dn()&&(E===b||E===document.body));var S=null;if(l&&Kr(l)&&t){var w=l;S=w.ref}var O=bi(S,t);if(!y||!dn()||g===void 0)return null;var P=E===!1||qR(),A=l;return t&&(A=h.cloneElement(l,{ref:O})),h.createElement(ub.Provider,{value:C},P?A:_o.createPortal(A,E))});ne.env.NODE_ENV!=="production"&&(Pl.displayName="Portal");var fb=h.createContext({});function VR(){var e=ie({},h);return e.useId}var Lh=0,Fh=VR();const db=Fh?function(t){var n=Fh();return t||(ne.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=h.useState("ssr-id"),r=he(n,2),o=r[0],i=r[1];return h.useEffect(function(){var a=Lh;Lh+=1,i("rc_unique_".concat(a))},[]),t||(ne.env.NODE_ENV==="test"?"test-id":o)};function Dh(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Bh(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 HR(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Bh(o),n.top+=Bh(o,!0),n}const WR=h.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var zh={width:0,height:0,overflow:"hidden",outline:"none"},UR={outline:"none"},pd=I.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,p=e.children,d=e.bodyStyle,y=e.bodyProps,_=e.modalRender,x=e.onMouseDown,g=e.onMouseUp,v=e.holderRef,f=e.visible,m=e.forceRender,b=e.width,C=e.height,E=e.classNames,S=e.styles,w=I.useContext(fb),O=w.panel,P=bi(v,O),A=I.useRef(),T=I.useRef(),L=I.useRef();I.useImperativeHandle(t,function(){return{focus:function(){var M;(M=L.current)===null||M===void 0||M.focus({preventScroll:!0})},changeActive:function(M){var H=document,J=H.activeElement;M&&J===T.current?A.current.focus({preventScroll:!0}):!M&&J===A.current&&T.current.focus({preventScroll:!0})}}});var D={};b!==void 0&&(D.width=b),C!==void 0&&(D.height=C);var Q=s?I.createElement("div",{className:de("".concat(n,"-footer"),E==null?void 0:E.footer),style:ie({},S==null?void 0:S.footer)},s):null,G=i?I.createElement("div",{className:de("".concat(n,"-header"),E==null?void 0:E.header),style:ie({},S==null?void 0:S.header)},I.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,z=I.useMemo(function(){return Be(l)==="object"&&l!==null?l:l?{closeIcon:c??I.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),Y=Ta(z,!0),ee=Be(l)==="object"&&l.disabled,W=l?I.createElement("button",Te({type:"button",onClick:u,"aria-label":"Close"},Y,{className:"".concat(n,"-close"),disabled:ee}),z.closeIcon):null,U=I.createElement("div",{className:de("".concat(n,"-content"),E==null?void 0:E.content),style:S==null?void 0:S.content},W,G,I.createElement("div",Te({className:de("".concat(n,"-body"),E==null?void 0:E.body),style:ie(ie({},d),S==null?void 0:S.body)},y),p),Q);return I.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:P,style:ie(ie({},o),D),className:de(n,r),onMouseDown:x,onMouseUp:g},I.createElement("div",{tabIndex:0,ref:A,style:zh,"aria-hidden":"true"}),I.createElement("div",{ref:L,tabIndex:-1,style:UR},I.createElement(WR,{shouldUpdate:f||m},_?_(U):U)),I.createElement("div",{tabIndex:0,ref:T,style:zh,"aria-hidden":"true"}))});ne.env.NODE_ENV!=="production"&&(pd.displayName="Panel");var pb=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,p=e.onVisibleChanged,d=e.mousePosition,y=I.useRef(),_=h.useState(),x=he(_,2),g=x[0],v=x[1],f={};g&&(f.transformOrigin=g);function m(){var b=HR(y.current);v(d&&(d.x||d.y)?"".concat(d.x-b.left,"px ").concat(d.y-b.top,"px"):"")}return h.createElement(Zn,{visible:a,onVisibleChanged:p,onAppearPrepare:m,onEnterPrepare:m,forceRender:s,motionName:c,removeOnLeave:l,ref:y},function(b,C){var E=b.className,S=b.style;return h.createElement(pd,Te({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:C,style:ie(ie(ie({},S),o),f),className:de(i,E)}))})});pb.displayName="Content";var GR=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return h.createElement(Zn,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,p=l.style;return h.createElement("div",Te({ref:c,style:ie(ie({},p),r),className:de("".concat(n,"-mask"),u,s)},i))})},KR=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,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,p=t.wrapStyle,d=t.wrapClassName,y=t.wrapProps,_=t.onClose,x=t.afterOpenChange,g=t.afterClose,v=t.transitionName,f=t.animation,m=t.closable,b=m===void 0?!0:m,C=t.mask,E=C===void 0?!0:C,S=t.maskTransitionName,w=t.maskAnimation,O=t.maskClosable,P=O===void 0?!0:O,A=t.maskStyle,T=t.maskProps,L=t.rootClassName,D=t.classNames,Q=t.styles;ne.env.NODE_ENV!=="production"&&(["wrapStyle","bodyStyle","maskStyle"].forEach(function(me){Vr(!(me in t),"".concat(me," is deprecated, please use styles instead."))}),"wrapClassName"in t&&Vr(!1,"wrapClassName is deprecated, please use classNames instead."));var G=I.useRef(),z=I.useRef(),Y=I.useRef(),ee=h.useState(a),W=he(ee,2),U=W[0],j=W[1],M=db();function H(){pu(z.current,document.activeElement)||(G.current=document.activeElement)}function J(){if(!pu(z.current,document.activeElement)){var me;(me=Y.current)===null||me===void 0||me.focus()}}function B(me){if(me)J();else{if(j(!1),E&&G.current&&u){try{G.current.focus({preventScroll:!0})}catch{}G.current=null}U&&(g==null||g())}x==null||x(me)}function q(me){_==null||_(me)}var K=I.useRef(!1),re=I.useRef(),se=function(){clearTimeout(re.current),K.current=!0},k=function(){re.current=setTimeout(function(){K.current=!1})},F=null;P&&(F=function(pe){K.current?K.current=!1:z.current===pe.target&&q(pe)});function ae(me){if(l&&me.keyCode===$e.ESC){me.stopPropagation(),q(me);return}a&&me.keyCode===$e.TAB&&Y.current.changeActive(!me.shiftKey)}I.useEffect(function(){a&&(j(!0),H())},[a]),I.useEffect(function(){return function(){clearTimeout(re.current)}},[]);var Z=ie(ie(ie({zIndex:o},p),Q==null?void 0:Q.wrapper),{},{display:U?null:"none"});return h.createElement("div",Te({className:de("".concat(r,"-root"),L)},Ta(t,{data:!0})),h.createElement(GR,{prefixCls:r,visible:E&&a,motionName:Dh(r,S,w),style:ie(ie({zIndex:o},A),Q==null?void 0:Q.mask),maskProps:T,className:D==null?void 0:D.mask}),h.createElement("div",Te({tabIndex:-1,onKeyDown:ae,className:de("".concat(r,"-wrap"),d,D==null?void 0:D.wrapper),ref:z,onClick:F,style:Z},y),h.createElement(pb,Te({},t,{onMouseDown:se,onMouseUp:k,ref:Y,closable:b,ariaId:M,prefixCls:r,visible:a&&U,onClose:q,onVisibleChanged:B,motionName:Dh(r,v,f)}))))},hb=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,c=h.useState(n),u=he(c,2),p=u[0],d=u[1],y=h.useMemo(function(){return{panel:l}},[l]);return h.useEffect(function(){n&&d(!0)},[n]),!o&&a&&!p?null:h.createElement(fb.Provider,{value:y},h.createElement(Pl,{open:n||o||p,autoDestroy:!1,getContainer:r,autoLock:n||p},h.createElement(KR,Te({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),d(!1)}}))))};hb.displayName="Dialog";var fo="RC_FORM_INTERNAL_HOOKS",Ct=function(){pt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Eo=h.createContext({getFieldValue:Ct,getFieldsValue:Ct,getFieldError:Ct,getFieldWarning:Ct,getFieldsError:Ct,isFieldsTouched:Ct,isFieldTouched:Ct,isFieldValidating:Ct,isFieldsValidating:Ct,resetFields:Ct,setFields:Ct,setFieldValue:Ct,setFieldsValue:Ct,validateFields:Ct,submit:Ct,getInternalHooks:function(){return Ct(),{dispatch:Ct,initEntityValue:Ct,registerField:Ct,useSubscribe:Ct,setInitialValues:Ct,destroyForm:Ct,setCallbacks:Ct,registerWatch:Ct,getFields:Ct,setValidateMessages:Ct,setPreserve:Ct,getInitialValue:Ct}}}),ga=h.createContext(null);function Xu(e){return e==null?[]:Array.isArray(e)?e:[e]}function XR(e){return e&&!!e._init}function Yu(){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 Qu=Yu();function YR(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function QR(e,t,n){if(Gf())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&oa(o,n.prototype),o}function Ju(e){var t=typeof Map=="function"?new Map:void 0;return Ju=function(r){if(r===null||!YR(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 QR(r,arguments,ia(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),oa(o,r)},Ju(e)}var JR=/%[sdj%]/g,mb=function(){};typeof ne<"u"&&ne.env&&ne.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(mb=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 Zu(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(JR,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){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 s}});return a}return e}function ZR(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Yt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ZR(t)&&typeof e=="string"&&!e)}function eO(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,xe(s||[])),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function qh(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function tO(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,xe(e[n]||[]))}),t}var Vh=function(e){Xr(n,e);var t=Yr(n);function n(r,o){var i;return rn(this,n),i=t.call(this,"Async Validation Error"),oe(tt(i),"errors",void 0),oe(tt(i),"fields",void 0),i.errors=r,i.fields=o,i}return on(n)}(Ju(Error));function nO(e,t,n,r,o){if(t.first){var i=new Promise(function(d,y){var _=function(v){return r(v),v.length?y(new Vh(v,Zu(v))):d(o)},x=tO(e);qh(x,n,_)});return i.catch(function(d){return d}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],p=new Promise(function(d,y){var _=function(g){if(u.push.apply(u,g),c++,c===l)return r(u),u.length?y(new Vh(u,Zu(u))):d(o)};s.length||(r(u),d(o)),s.forEach(function(x){var g=e[x];a.indexOf(x)!==-1?qh(g,n,_):eO(g,n,_)})});return p.catch(function(d){return d}),p}function rO(e){return!!(e&&e.message!==void 0)}function oO(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Hh(e,t){return function(n){var r;return e.fullFields?r=oO(t,e.fullFields):r=t[n.field||e.fullField],rO(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 Wh(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Be(r)==="object"&&Be(e[n])==="object"?e[n]=ie(ie({},e[n]),r):e[n]=r}}return e}var Do="enum",iO=function(t,n,r,o,i){t[Do]=Array.isArray(t[Do])?t[Do]:[],t[Do].indexOf(n)===-1&&o.push(Cn(i.messages[Do],t.fullField,t[Do].join(", ")))},aO=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))}}},sO=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,p=null,d=typeof n=="number",y=typeof n=="string",_=Array.isArray(n);if(d?p="number":y?p="string":_&&(p="array"),!p)return!1;_&&(u=n.length),y&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(Cn(i.messages[p].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Cn(i.messages[p].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Cn(i.messages[p].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Cn(i.messages[p].range,t.fullField,t.min,t.max))},gb=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Yt(n,a||t.type))&&o.push(Cn(i.messages.required,t.fullField))},is;const lO=function(){if(is)return is;var e="[a-fA-F\\d:]",t=function(E){return E&&E.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),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(a).concat(t(E),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(a).concat(t(C)),"g")};var p="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",y=u.v4().source,_=u.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",f="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',b="(?:".concat(p,"|www\\.)").concat(d,"(?:localhost|").concat(y,"|").concat(_,"|").concat(x).concat(g).concat(v,")").concat(f).concat(m);return is=new RegExp("(?:^".concat(b,"$)"),"i"),is};var Uh={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},Vi={integer:function(t){return Vi.number(t)&&parseInt(t,10)===t},float:function(t){return Vi.number(t)&&!Vi.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 Be(t)==="object"&&!Vi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Uh.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(lO())},hex:function(t){return typeof t=="string"&&!!t.match(Uh.hex)}},cO=function(t,n,r,o,i){if(t.required&&n===void 0){gb(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Vi[s](n)||o.push(Cn(i.messages.types[s],t.fullField,t.type)):s&&Be(n)!==t.type&&o.push(Cn(i.messages.types[s],t.fullField,t.type))},uO=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Cn(i.messages.whitespace,t.fullField))};const it={required:gb,whitespace:uO,type:cO,range:sO,enum:iO,pattern:aO};var fO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(n)&&!t.required)return r();it.required(t,n,o,a,i)}r(a)},dO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();it.required(t,n,o,a,i,"array"),n!=null&&(it.type(t,n,o,a,i),it.range(t,n,o,a,i))}r(a)},pO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(n)&&!t.required)return r();it.required(t,n,o,a,i),n!==void 0&&it.type(t,n,o,a,i)}r(a)},hO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(n,"date")&&!t.required)return r();if(it.required(t,n,o,a,i),!Yt(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),it.type(t,l,o,a,i),l&&it.range(t,l.getTime(),o,a,i)}}r(a)},mO="enum",gO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(n)&&!t.required)return r();it.required(t,n,o,a,i),n!==void 0&&it[mO](t,n,o,a,i)}r(a)},vO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(n)&&!t.required)return r();it.required(t,n,o,a,i),n!==void 0&&(it.type(t,n,o,a,i),it.range(t,n,o,a,i))}r(a)},yO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(n)&&!t.required)return r();it.required(t,n,o,a,i),n!==void 0&&(it.type(t,n,o,a,i),it.range(t,n,o,a,i))}r(a)},bO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(n)&&!t.required)return r();it.required(t,n,o,a,i),n!==void 0&&it.type(t,n,o,a,i)}r(a)},_O=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Yt(n)&&!t.required)return r();it.required(t,n,o,a,i),n!==void 0&&(it.type(t,n,o,a,i),it.range(t,n,o,a,i))}r(a)},wO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(n)&&!t.required)return r();it.required(t,n,o,a,i),n!==void 0&&it.type(t,n,o,a,i)}r(a)},CO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(n,"string")&&!t.required)return r();it.required(t,n,o,a,i),Yt(n,"string")||it.pattern(t,n,o,a,i)}r(a)},xO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(n)&&!t.required)return r();it.required(t,n,o,a,i),Yt(n)||it.type(t,n,o,a,i)}r(a)},SO=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":Be(n);it.required(t,n,o,a,i,s),r(a)},EO=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Yt(n,"string")&&!t.required)return r();it.required(t,n,o,a,i,"string"),Yt(n,"string")||(it.type(t,n,o,a,i),it.range(t,n,o,a,i),it.pattern(t,n,o,a,i),t.whitespace===!0&&it.whitespace(t,n,o,a,i))}r(a)},yc=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Yt(n,a)&&!t.required)return r();it.required(t,n,o,s,i,a),Yt(n,a)||it.type(t,n,o,s,i)}r(s)};const Xi={string:EO,method:bO,number:_O,boolean:pO,regexp:xO,integer:yO,float:vO,array:dO,object:wO,enum:gO,pattern:CO,date:hO,url:yc,hex:yc,email:yc,required:SO,any:fO};var Ia=function(){function e(t){rn(this,e),oe(this,"rules",null),oe(this,"_messages",Qu),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(Be(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=Wh(Yu(),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,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(_){var x=[],g={};function v(m){if(Array.isArray(m)){var b;x=(b=x).concat.apply(b,xe(m))}else x.push(m)}for(var f=0;f<_.length;f++)v(_[f]);x.length?(g=Zu(x),l(x,g)):l(null,a)}if(s.messages){var u=this.messages();u===Qu&&(u=Yu()),Wh(u,s.messages),s.messages=u}else s.messages=this.messages();var p={},d=s.keys||Object.keys(this.rules);d.forEach(function(_){var x=r.rules[_],g=a[_];x.forEach(function(v){var f=v;typeof f.transform=="function"&&(a===n&&(a=ie({},a)),g=a[_]=f.transform(g),g!=null&&(f.type=f.type||(Array.isArray(g)?"array":Be(g)))),typeof f=="function"?f={validator:f}:f=ie({},f),f.validator=r.getValidationMethod(f),f.validator&&(f.field=_,f.fullField=f.fullField||_,f.type=r.getType(f),p[_]=p[_]||[],p[_].push({rule:f,value:g,source:a,field:_}))})});var y={};return nO(p,s,function(_,x){var g=_.rule,v=(g.type==="object"||g.type==="array")&&(Be(g.fields)==="object"||Be(g.defaultField)==="object");v=v&&(g.required||!g.required&&_.value),g.field=_.field;function f(S,w){return ie(ie({},w),{},{fullField:"".concat(g.fullField,".").concat(S),fullFields:g.fullFields?[].concat(xe(g.fullFields),[S]):[S]})}function m(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(S)?S:[S];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&g.message!==void 0&&(w=[].concat(g.message));var O=w.map(Hh(g,a));if(s.first&&O.length)return y[g.field]=1,x(O);if(!v)x(O);else{if(g.required&&!_.value)return g.message!==void 0?O=[].concat(g.message).map(Hh(g,a)):s.error&&(O=[s.error(g,Cn(s.messages.required,g.field))]),x(O);var P={};g.defaultField&&Object.keys(_.value).map(function(L){P[L]=g.defaultField}),P=ie(ie({},P),_.rule.fields);var A={};Object.keys(P).forEach(function(L){var D=P[L],Q=Array.isArray(D)?D:[D];A[L]=Q.map(f.bind(null,L))});var T=new e(A);T.messages(s.messages),_.rule.options&&(_.rule.options.messages=s.messages,_.rule.options.error=s.error),T.validate(_.value,_.rule.options||s,function(L){var D=[];O&&O.length&&D.push.apply(D,xe(O)),L&&L.length&&D.push.apply(D,xe(L)),x(D.length?D:null)})}}var b;if(g.asyncValidator)b=g.asyncValidator(g,_.value,m,_.source,s);else if(g.validator){try{b=g.validator(g,_.value,m,_.source,s)}catch(S){var C,E;(C=(E=console).error)===null||C===void 0||C.call(E,S),s.suppressValidatorError||setTimeout(function(){throw S},0),m(S.message)}b===!0?m():b===!1?m(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):b instanceof Array?m(b):b instanceof Error&&m(b.message)}b&&b.then&&b.then(function(){return m()},function(S){return m(S)})},function(_){c(_)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Xi.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"?Xi.required:Xi[this.getType(n)]||void 0}}]),e}();oe(Ia,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Xi[t]=n});oe(Ia,"warning",mb);oe(Ia,"messages",Qu);oe(Ia,"validators",Xi);var _n="'${name}' is not a valid ${type}",vb={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:_n,method:_n,array:_n,object:_n,number:_n,date:_n,boolean:_n,integer:_n,float:_n,regexp:_n,email:_n,url:_n,hex:_n},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}"}},Gh=Ia;function RO(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 Kh="CODE_LOGIC_ERROR";function ef(e,t,n,r,o){return tf.apply(this,arguments)}function tf(){return tf=To(pn().mark(function e(t,n,r,o,i){var a,s,l,c,u,p,d,y,_;return pn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a=ie({},r),delete a.ruleIndex,Gh.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(v){return console.error(v),Promise.reject(Kh)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Gh(oe({},t,[a])),u=ni(vb,o.validateMessages),c.messages(u),p=[],g.prev=10,g.next=13,Promise.resolve(c.validate(oe({},t,n),ie({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(p=g.t0.errors.map(function(v,f){var m=v.message,b=m===Kh?u.default:m;return h.isValidElement(b)?h.cloneElement(b,{key:"error_".concat(f)}):b}));case 18:if(!(!p.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(v,f){return ef("".concat(t,".").concat(f),v,l,o,i)}));case 21:return d=g.sent,g.abrupt("return",d.reduce(function(v,f){return[].concat(xe(v),xe(f))},[]));case 23:return y=ie(ie({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),_=p.map(function(v){return typeof v=="string"?RO(v,y):v}),g.abrupt("return",_);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),tf.apply(this,arguments)}function OO(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,p){var d=u.validator,y=ie(ie({},u),{},{ruleIndex:p});return d&&(y.validator=function(_,x,g){var v=!1,f=function(){for(var C=arguments.length,E=new Array(C),S=0;S<C;S++)E[S]=arguments[S];Promise.resolve().then(function(){pt(!v,"Your validator function has already return a promise. `callback` will be ignored."),v||g.apply(void 0,E)})},m=d(_,x,f);v=m&&typeof m.then=="function"&&typeof m.catch=="function",pt(v,"`callback` is deprecated. Please return a promise instead."),v&&m.then(function(){g()}).catch(function(b){g(b||" ")})}),y}).sort(function(u,p){var d=u.warningOnly,y=u.ruleIndex,_=p.warningOnly,x=p.ruleIndex;return!!d==!!_?y-x:d?1:-1}),l;if(o===!0)l=new Promise(function(){var u=To(pn().mark(function p(d,y){var _,x,g;return pn().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:_=0;case 1:if(!(_<s.length)){f.next=12;break}return x=s[_],f.next=5,ef(a,t,x,r,i);case 5:if(g=f.sent,!g.length){f.next=9;break}return y([{errors:g,rule:x}]),f.abrupt("return");case 9:_+=1,f.next=1;break;case 12:d([]);case 13:case"end":return f.stop()}},p)}));return function(p,d){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return ef(a,t,u,r,i).then(function(p){return{errors:p,rule:u}})});l=(o?TO(c):$O(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function $O(e){return nf.apply(this,arguments)}function nf(){return nf=To(pn().mark(function e(t){return pn().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,xe(o));return a}));case 1:case"end":return r.stop()}},e)})),nf.apply(this,arguments)}function TO(e){return rf.apply(this,arguments)}function rf(){return rf=To(pn().mark(function e(t){var n;return pn().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(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),rf.apply(this,arguments)}function qt(e){return Xu(e)}function Xh(e,t){var n={};return t.forEach(function(r){var o=lr(e,r);n=qn(n,r,o)}),n}function si(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return yb(t,r,n)})}function yb(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 PO(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Be(e)!=="object"||Be(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return xe(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function NO(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Be(t.target)==="object"&&e in t.target?t.target[e]:t}function Yh(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(xe(e.slice(0,n)),[o],xe(e.slice(n,t)),xe(e.slice(t+1,r))):i<0?[].concat(xe(e.slice(0,t)),xe(e.slice(t+1,n+1)),[o],xe(e.slice(n+1,r))):e}var IO=["name"],Tn=[];function bc(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var hd=function(e){Xr(n,e);var t=Yr(n);function n(r){var o;if(rn(this,n),o=t.call(this,r),oe(tt(o),"state",{resetCount:0}),oe(tt(o),"cancelRegisterFunc",null),oe(tt(o),"mounted",!1),oe(tt(o),"touched",!1),oe(tt(o),"dirty",!1),oe(tt(o),"validatePromise",void 0),oe(tt(o),"prevValidating",void 0),oe(tt(o),"errors",Tn),oe(tt(o),"warnings",Tn),oe(tt(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,p=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,qt(p)),o.cancelRegisterFunc=null}),oe(tt(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,p=u.prefixName,d=p===void 0?[]:p;return c!==void 0?[].concat(xe(d),xe(c)):[]}),oe(tt(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,p=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(p):d})}),oe(tt(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),oe(tt(o),"metaCache",null),oe(tt(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=ie(ie({},o.getMeta()),{},{destroy:l});la(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),oe(tt(o),"onStoreChange",function(l,c,u){var p=o.props,d=p.shouldUpdate,y=p.dependencies,_=y===void 0?[]:y,x=p.onReset,g=u.store,v=o.getNamePath(),f=o.getValue(l),m=o.getValue(g),b=c&&si(c,v);switch(u.type==="valueUpdate"&&u.source==="external"&&!la(f,m)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Tn,o.warnings=Tn,o.triggerMetaEvent()),u.type){case"reset":if(!c||b){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Tn,o.warnings=Tn,o.triggerMetaEvent(),x==null||x(),o.refresh();return}break;case"remove":{if(d&&bc(d,l,g,f,m,u)){o.reRender();return}break}case"setField":{var C=u.data;if(b){"touched"in C&&(o.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(o.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(o.errors=C.errors||Tn),"warnings"in C&&(o.warnings=C.warnings||Tn),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in C&&si(c,v,!0)){o.reRender();return}if(d&&!v.length&&bc(d,l,g,f,m,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=_.map(qt);if(E.some(function(S){return si(u.relatedFields,S)})){o.reRender();return}break}default:if(b||(!_.length||v.length||d)&&bc(d,l,g,f,m,u)){o.reRender();return}break}d===!0&&o.reRender()}),oe(tt(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),p=l||{},d=p.triggerName,y=p.validateOnly,_=y===void 0?!1:y,x=Promise.resolve().then(To(pn().mark(function g(){var v,f,m,b,C,E,S;return pn().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(v=o.props,f=v.validateFirst,m=f===void 0?!1:f,b=v.messageVariables,C=v.validateDebounce,E=o.getRules(),d&&(E=E.filter(function(P){return P}).filter(function(P){var A=P.validateTrigger;if(!A)return!0;var T=Xu(A);return T.includes(d)})),!(C&&d)){O.next=10;break}return O.next=8,new Promise(function(P){setTimeout(P,C)});case 8:if(o.validatePromise===x){O.next=10;break}return O.abrupt("return",[]);case 10:return S=OO(c,u,E,l,m,b),S.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn;if(o.validatePromise===x){var A;o.validatePromise=null;var T=[],L=[];(A=P.forEach)===null||A===void 0||A.call(P,function(D){var Q=D.rule.warningOnly,G=D.errors,z=G===void 0?Tn:G;Q?L.push.apply(L,xe(z)):T.push.apply(T,xe(z))}),o.errors=T,o.warnings=L,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",S);case 13:case"end":return O.stop()}},g)})));return _||(o.validatePromise=x,o.dirty=!0,o.errors=Tn,o.warnings=Tn,o.triggerMetaEvent(),o.reRender()),x}),oe(tt(o),"isFieldValidating",function(){return!!o.validatePromise}),oe(tt(o),"isFieldTouched",function(){return o.touched}),oe(tt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(fo),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),oe(tt(o),"getErrors",function(){return o.errors}),oe(tt(o),"getWarnings",function(){return o.warnings}),oe(tt(o),"isListField",function(){return o.props.isListField}),oe(tt(o),"isList",function(){return o.props.isList}),oe(tt(o),"isPreserve",function(){return o.props.preserve}),oe(tt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),oe(tt(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return ie(ie({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=wo(l);return u.length!==1||!h.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),oe(tt(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return lr(l||c(!0),u)}),oe(tt(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,p=c.trigger,d=c.validateTrigger,y=c.getValueFromEvent,_=c.normalize,x=c.valuePropName,g=c.getValueProps,v=c.fieldContext,f=d!==void 0?d:v.validateTrigger,m=o.getNamePath(),b=v.getInternalHooks,C=v.getFieldsValue,E=b(fo),S=E.dispatch,w=o.getValue(),O=g||function(D){return oe({},x,D)},P=l[p],A=u!==void 0?O(w):{};ne.env.NODE_ENV!=="production"&&A&&Object.keys(A).forEach(function(D){pt(typeof A[D]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(D,")"))});var T=ie(ie({},l),A);T[p]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var D,Q=arguments.length,G=new Array(Q),z=0;z<Q;z++)G[z]=arguments[z];y?D=y.apply(void 0,G):D=NO.apply(void 0,[x].concat(G)),_&&(D=_(D,w,C(!0))),S({type:"updateValue",namePath:m,value:D}),P&&P.apply(void 0,G)};var L=Xu(f||[]);return L.forEach(function(D){var Q=T[D];T[D]=function(){Q&&Q.apply(void 0,arguments);var G=o.props.rules;G&&G.length&&S({type:"validateField",namePath:m,triggerName:D})}}),T}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(fo),s=a.initEntityValue;s(tt(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 s=a.getInternalHooks,l=s(fo),c=l.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),s=a.child,l=a.isFunction,c;return l?c=s:h.isValidElement(s)?c=h.cloneElement(s,this.getControlled(s.props)):(pt(!s,"`children` of Field is not validate ReactElement."),c=s),h.createElement(h.Fragment,{key:o},c)}}]),n}(h.Component);oe(hd,"contextType",Eo);oe(hd,"defaultProps",{trigger:"onChange",valuePropName:"value"});function md(e){var t=e.name,n=nt(e,IO),r=h.useContext(Eo),o=h.useContext(ga),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."),h.createElement(hd,Te({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function bb(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=h.useContext(Eo),l=h.useContext(ga),c=h.useRef({keys:[],id:0}),u=c.current,p=h.useMemo(function(){var x=qt(s.prefixName)||[];return[].concat(xe(x),xe(qt(t)))},[s.prefixName,t]),d=h.useMemo(function(){return ie(ie({},s),{},{prefixName:p})},[s,p]),y=h.useMemo(function(){return{getKey:function(g){var v=p.length,f=g[v];return[u.keys[f],g.slice(v+1)]}}},[p]);if(typeof r!="function")return pt(!1,"Form.List only accepts function as children."),null;var _=function(g,v,f){var m=f.source;return m==="internal"?!1:g!==v};return h.createElement(ga.Provider,{value:y},h.createElement(Eo.Provider,{value:d},h.createElement(md,{name:[],shouldUpdate:_,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!l},function(x,g){var v=x.value,f=v===void 0?[]:v,m=x.onChange,b=s.getFieldValue,C=function(){var O=b(p||[]);return O||[]},E={add:function(O,P){var A=C();P>=0&&P<=A.length?(u.keys=[].concat(xe(u.keys.slice(0,P)),[u.id],xe(u.keys.slice(P))),m([].concat(xe(A.slice(0,P)),[O],xe(A.slice(P))))):(ne.env.NODE_ENV!=="production"&&(P<0||P>A.length)&&pt(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(xe(u.keys),[u.id]),m([].concat(xe(A),[O]))),u.id+=1},remove:function(O){var P=C(),A=new Set(Array.isArray(O)?O:[O]);A.size<=0||(u.keys=u.keys.filter(function(T,L){return!A.has(L)}),m(P.filter(function(T,L){return!A.has(L)})))},move:function(O,P){if(O!==P){var A=C();O<0||O>=A.length||P<0||P>=A.length||(u.keys=Yh(u.keys,O,P),m(Yh(A,O,P)))}}},S=f||[];return Array.isArray(S)||(S=[],ne.env.NODE_ENV!=="production"&&pt(!1,"Current value of '".concat(p.join(" > "),"' is not an array type."))),r(S.map(function(w,O){var P=u.keys[O];return P===void 0&&(u.keys[O]=u.id,P=u.keys[O],u.id+=1),{name:O,key:P,isListField:!0}}),E,g)})))}function AO(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var _b="__@field_split__";function _c(e){return e.map(function(t){return"".concat(Be(t),":").concat(t)}).join(_b)}var Bo=function(){function e(){rn(this,e),oe(this,"kvs",new Map)}return on(e,[{key:"set",value:function(n,r){this.kvs.set(_c(n),r)}},{key:"get",value:function(n){return this.kvs.get(_c(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(_c(n))}},{key:"map",value:function(n){return xe(this.kvs.entries()).map(function(r){var o=he(r,2),i=o[0],a=o[1],s=i.split(_b);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=he(c,3),p=u[1],d=u[2];return p==="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}(),MO=["name"],jO=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===fo?(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=ni(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=qn(a,l,lr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),oe(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Bo;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?ni(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 Bo;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,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Be(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var p,d,y="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var _,x;if((_=(x=u).isList)!==null&&_!==void 0&&_.call(x))return}else if(!i&&(p=(d=u).isListField)!==null&&p!==void 0&&p.call(d))return;if(!a)c.push(y);else{var g="getMeta"in u?u.getMeta():null;a(g)&&c.push(y)}}),Xh(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],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(qt),c=!1):(l=null,c=a):(l=a.map(qt),c=s);var u=n.getFieldEntities(!0),p=function(g){return g.isFieldTouched()};if(!l)return c?u.every(function(x){return p(x)||x.isList()}):u.some(p);var d=new Bo;l.forEach(function(x){d.set(x,[])}),u.forEach(function(x){var g=x.getNamePath();l.forEach(function(v){v.every(function(f,m){return g[m]===f})&&d.update(v,function(f){return[].concat(xe(f),[x])})})});var y=function(g){return g.some(p)},_=d.map(function(x){var g=x.value;return g});return c?_.every(y):_.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 s=a.getNamePath();return si(i,s)&&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 Bo,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var p=o.get(u)||new Set;p.add({entity:l,value:c}),o.set(u,p)}});var a=function(c){c.forEach(function(u){var p=u.props.initialValue;if(p!==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 _=o.get(d);if(_&&_.size>1)pt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(_){var x=n.getFieldValue(d),g=u.isListField();!g&&(!r.skipExist||x===void 0)&&n.updateStore(qn(n.store,d,xe(_)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,xe(xe(c).map(function(p){return p.entity})))}})):s=i,a(s)}),oe(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ni(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(qt);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(qn(n.store,a,s))}),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 s=a.name,l=nt(a,MO),c=qt(s);i.push(c),"value"in l&&n.updateStore(qn(n.store,c,l.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(),s=i.getMeta(),l=ie(ie({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});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(qn(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,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(p){return p!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(p){return!yb(p.getNamePath(),o)})){var u=n.store;n.updateStore(qn(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,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),oe(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=ie(ie({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(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(xe(i))}),i}),oe(this,"updateValue",function(r,o){var i=qt(r),a=n.store;n.updateStore(qn(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=Xh(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(xe(s)))}),oe(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=ni(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 Bo;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var p=qt(u);a.update(p,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(p){if(!o.has(p)){o.add(p);var d=p.getNamePath();p.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};return s(r),i}),oe(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new Bo;o.forEach(function(c){var u=c.name,p=c.errors;s.set(u,p)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return si(r,u)});l.length&&i(l,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 s=!!i,l=s?i.map(qt):[],c=[],u=String(Date.now()),p=new Set,d=a||{},y=d.recursive,_=d.dirty;n.getFieldEntities(!0).forEach(function(f){if(s||l.push(f.getNamePath()),!(!f.props.rules||!f.props.rules.length)&&!(_&&!f.isFieldDirty())){var m=f.getNamePath();if(p.add(m.join(u)),!s||si(l,m,y)){var b=f.validateRules(ie({validateMessages:ie(ie({},vb),n.validateMessages)},a));c.push(b.then(function(){return{name:m,errors:[],warnings:[]}}).catch(function(C){var E,S=[],w=[];return(E=C.forEach)===null||E===void 0||E.call(C,function(O){var P=O.rule.warningOnly,A=O.errors;P?w.push.apply(w,xe(A)):S.push.apply(S,xe(A))}),S.length?Promise.reject({name:m,errors:S,warnings:w}):{name:m,errors:S,warnings:w}}))}}});var x=AO(c);n.lastValidatePromise=x,x.catch(function(f){return f}).then(function(f){var m=f.map(function(b){var C=b.name;return C});n.notifyObservers(n.store,m,{type:"validateFinish"}),n.triggerOnFieldsChange(m,f)});var g=x.then(function(){return n.lastValidatePromise===x?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(f){var m=f.filter(function(b){return b&&b.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:m,outOfDate:n.lastValidatePromise!==x})});g.catch(function(f){return f});var v=l.filter(function(f){return p.has(f.join(u))});return n.triggerOnFieldsChange(v),g}),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 gd(e){var t=h.useRef(),n=h.useState({}),r=he(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new jO(i);t.current=a.getForm()}return[t.current]}var of=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),wb=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=h.useContext(of),s=h.useRef({});return h.createElement(of.Provider,{value:ie(ie({},a),{},{validateMessages:ie(ie({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=ie(ie({},s.current),{},oe({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=ie({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)},kO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],LO=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,p=t.validateMessages,d=t.validateTrigger,y=d===void 0?"onChange":d,_=t.onValuesChange,x=t.onFieldsChange,g=t.onFinish,v=t.onFinishFailed,f=t.clearOnDestroy,m=nt(t,kO),b=h.useRef(null),C=h.useContext(of),E=gd(a),S=he(E,1),w=S[0],O=w.getInternalHooks(fo),P=O.useSubscribe,A=O.setInitialValues,T=O.setCallbacks,L=O.setValidateMessages,D=O.setPreserve,Q=O.destroyForm;h.useImperativeHandle(n,function(){return ie(ie({},w),{},{nativeElement:b.current})}),h.useEffect(function(){return C.registerForm(r,w),function(){C.unregisterForm(r)}},[C,w,r]),L(ie(ie({},C.validateMessages),p)),T({onValuesChange:_,onFieldsChange:function(H){if(C.triggerFormChange(r,H),x){for(var J=arguments.length,B=new Array(J>1?J-1:0),q=1;q<J;q++)B[q-1]=arguments[q];x.apply(void 0,[H].concat(B))}},onFinish:function(H){C.triggerFormFinish(r,H),g&&g(H)},onFinishFailed:v}),D(s);var G=h.useRef(null);A(o,!G.current),G.current||(G.current=!0),h.useEffect(function(){return function(){return Q(f)}},[]);var z,Y=typeof l=="function";if(Y){var ee=w.getFieldsValue(!0);z=l(ee,w)}else z=l;P(!Y);var W=h.useRef();h.useEffect(function(){PO(W.current||[],i||[])||w.setFields(i||[]),W.current=i},[i,w]);var U=h.useMemo(function(){return ie(ie({},w),{},{validateTrigger:y})},[w,y]),j=h.createElement(ga.Provider,{value:null},h.createElement(Eo.Provider,{value:U},z));return u===!1?j:h.createElement(u,Te({},m,{ref:b,onSubmit:function(H){H.preventDefault(),H.stopPropagation(),w.submit()},onReset:function(H){var J;H.preventDefault(),w.resetFields(),(J=m.onReset)===null||J===void 0||J.call(m,H)}}),j)};function Qh(e){try{return JSON.stringify(e)}catch{return Math.random()}}var FO=ne.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=I.useRef(t);pt(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function Cb(){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=XR(i)?{form:i}:i,s=a.form,l=I.useState(),c=he(l,2),u=c[0],p=c[1],d=I.useMemo(function(){return Qh(u)},[u]),y=I.useRef(d);y.current=d;var _=I.useContext(Eo),x=s||_,g=x&&x._init;ne.env.NODE_ENV!=="production"&&pt(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var v=qt(r),f=I.useRef(v);return f.current=v,FO(v),I.useEffect(function(){if(g){var m=x.getFieldsValue,b=x.getInternalHooks,C=b(fo),E=C.registerWatch,S=function(A,T){var L=a.preserve?T:A;return typeof r=="function"?r(L):lr(L,f.current)},w=E(function(P,A){var T=S(P,A),L=Qh(T);y.current!==L&&(y.current=L,p(T))}),O=S(m(),m(!0));return u!==O&&p(O),w}},[g]),u}var DO=h.forwardRef(LO),Si=DO;Si.FormProvider=wb;Si.Field=md;Si.List=bb;Si.useForm=gd;Si.useWatch=Cb;const Or=h.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),xb=h.createContext(null),Sb=e=>{const t=Qn(e,["prefixCls"]);return h.createElement(wb,Object.assign({},t))},vd=h.createContext({prefixCls:""}),xn=h.createContext({});ne.env.NODE_ENV!=="production"&&(xn.displayName="FormItemInputContext");const BO=e=>{let{children:t,status:n,override:r}=e;const o=I.useContext(xn),i=I.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 h.createElement(xn.Provider,{value:i},t)},Eb=I.createContext(void 0),Ys=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=I.createElement(BO,{override:!0,status:!0},o)),t&&(o=I.createElement(oR,null,o)),o};function Qs(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Jh(e){const{closable:t,closeIcon:n}=e||{};return I.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 Zh(){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 zO={};function Rb(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zO;const r=Jh(e),o=Jh(t),i=I.useMemo(()=>Object.assign({closeIcon:I.createElement($o,null)},n),[n]),a=I.useMemo(()=>r===!1?!1:r?Zh(i,o,r):o===!1?!1:o?Zh(i,o):i.closable?i:!1,[r,o,i]);return I.useMemo(()=>{if(a===!1)return[!1,null];const{closeIconRender:s}=i,{closeIcon:l}=a;let c=l;if(c!=null){s&&(c=s(l));const u=Ta(a,!0);Object.keys(u).length&&(c=I.isValidElement(c)?I.cloneElement(c,u):I.createElement("span",Object.assign({},u),c))}return[!0,c]},[a,i])}const qO=()=>dn()&&window.document.documentElement,Nl=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=de({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=de({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=h.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return h.createElement("span",{className:de(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},VO=new at("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Il=e=>({height:e,lineHeight:_e(e)}),li=e=>Object.assign({width:e},Il(e)),HO=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:VO,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),wc=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Il(e)),WO=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},li(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},li(o)),[`${t}${t}-sm`]:Object.assign({},li(i))}},UO=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},wc(t,s)),[`${r}-lg`]:Object.assign({},wc(o,s)),[`${r}-sm`]:Object.assign({},wc(i,s))}},em=e=>Object.assign({width:e},Il(e)),GO=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},em(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},em(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%"}}},Cc=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},xc=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Il(e)),KO=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=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:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},xc(r,s))},Cc(e,r,n)),{[`${n}-lg`]:Object.assign({},xc(o,s))}),Cc(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},xc(i,s))}),Cc(e,i,`${n}-sm`))},XO=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:p,padding:d,marginSM:y,borderRadius:_,titleHeight:x,blockRadius:g,paragraphLiHeight:v,controlHeightXS:f,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:p},li(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},li(c)),[`${n}-sm`]:Object.assign({},li(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:x,background:p,borderRadius:g,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:p,borderRadius:g,"+ li":{marginBlockStart:f}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:_}}},[`${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"},KO(e)),WO(e)),UO(e)),GO(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
+ ${s}
168
+ `]:Object.assign({},HO(e))}}},YO=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}},Ei=un("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Ft(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[XO(r)]},YO,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),QO=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=h.useContext(Ue),l=s("skeleton",t),[c,u,p]=Ei(l),d=Qn(e,["prefixCls","className"]),y=de(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,p);return c(h.createElement("div",{className:y},h.createElement(Nl,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},d))))},JO=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=h.useContext(Ue),l=s("skeleton",t),[c,u,p]=Ei(l),d=Qn(e,["prefixCls"]),y=de(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,p);return c(h.createElement("div",{className:y},h.createElement(Nl,Object.assign({prefixCls:`${l}-button`,size:a},d))))},ZO="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",e$=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=h.useContext(Ue),s=a("skeleton",t),[l,c,u]=Ei(s),p=de(s,`${s}-element`,{[`${s}-active`]:i},n,r,c,u);return l(h.createElement("div",{className:p},h.createElement("div",{className:de(`${s}-image`,n),style:o},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},h.createElement("title",null,"Image placeholder"),h.createElement("path",{d:ZO,className:`${s}-image-path`})))))},t$=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=h.useContext(Ue),l=s("skeleton",t),[c,u,p]=Ei(l),d=Qn(e,["prefixCls"]),y=de(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,p);return c(h.createElement("div",{className:y},h.createElement(Nl,Object.assign({prefixCls:`${l}-input`,size:a},d))))};var n$={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"},r$=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:n$}))},Ob=h.forwardRef(r$);ne.env.NODE_ENV!=="production"&&(Ob.displayName="DotChartOutlined");const o$=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=h.useContext(Ue),l=s("skeleton",t),[c,u,p]=Ei(l),d=de(l,`${l}-element`,{[`${l}-active`]:i},u,n,r,p),y=a??h.createElement(Ob,null);return c(h.createElement("div",{className:d},h.createElement("div",{className:de(`${l}-image`,n),style:o},y)))},i$=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},a$=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=xe(Array(o)).map((a,s)=>h.createElement("li",{key:s,style:{width:i$(s,e)}}));return h.createElement("ul",{className:de(t,n),style:r},i)},s$=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return h.createElement("h3",{className:de(t,n),style:Object.assign({width:r},o)})};function Sc(e){return e&&typeof e=="object"?e:{}}function l$(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function c$(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function u$(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const No=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:p}=e,{getPrefixCls:d,direction:y,skeleton:_}=h.useContext(Ue),x=d("skeleton",t),[g,v,f]=Ei(x);if(n||!("loading"in e)){const m=!!s,b=!!l,C=!!c;let E;if(m){const O=Object.assign(Object.assign({prefixCls:`${x}-avatar`},l$(b,C)),Sc(s));E=h.createElement("div",{className:`${x}-header`},h.createElement(Nl,Object.assign({},O)))}let S;if(b||C){let O;if(b){const A=Object.assign(Object.assign({prefixCls:`${x}-title`},c$(m,C)),Sc(l));O=h.createElement(s$,Object.assign({},A))}let P;if(C){const A=Object.assign(Object.assign({prefixCls:`${x}-paragraph`},u$(m,b)),Sc(c));P=h.createElement(a$,Object.assign({},A))}S=h.createElement("div",{className:`${x}-content`},O,P)}const w=de(x,{[`${x}-with-avatar`]:m,[`${x}-active`]:u,[`${x}-rtl`]:y==="rtl",[`${x}-round`]:p},_==null?void 0:_.className,r,o,v,f);return g(h.createElement("div",{className:w,style:Object.assign(Object.assign({},_==null?void 0:_.style),i)},E,S))}return a??null};No.Button=JO;No.Avatar=QO;No.Input=t$;No.Image=e$;No.Node=o$;ne.env.NODE_ENV!=="production"&&(No.displayName="Skeleton");function tm(){}const f$=h.createContext({add:tm,remove:tm});function d$(e){const t=h.useContext(f$),n=h.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 nm=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=I.useContext(Na);return I.createElement(ur,Object.assign({onClick:n},e),t)},rm=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=I.useContext(Na);return I.createElement(ur,Object.assign({},tb(n),{loading:e,onClick:o},t),r)};function $b(e,t){return I.createElement("span",{className:`${e}-close-x`},t||I.createElement($o,{className:`${e}-close-icon`}))}const Tb=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=wl("Modal",ry()),p=t||(u==null?void 0:u.okText),d=r||(u==null?void 0:u.cancelText),y={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:p,cancelTextLocale:d,okType:n,onOk:i,onCancel:a},_=I.useMemo(()=>y,xe(Object.values(y)));let x;return typeof c=="function"||typeof c>"u"?(x=I.createElement(I.Fragment,null,I.createElement(nm,null),I.createElement(rm,null)),typeof c=="function"&&(x=c(x,{OkBtn:rm,CancelBtn:nm})),x=I.createElement(cb,{value:_},x)):x=c,I.createElement(od,{disabled:!1},x)},p$=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`}}}),h$=e=>({animationDuration:e,animationFillMode:"both"}),m$=e=>({animationDuration:e,animationFillMode:"both"}),yd=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({},h$(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},m$(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"}}},g$=new at("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),v$=new at("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),y$=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[yd(r,g$,v$,e.motionDurationMid,t),{[`
177
+ ${o}${r}-enter,
178
+ ${o}${r}-appear
179
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},b$=new at("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),_$=new at("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),w$=new at("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),C$=new at("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),x$=new at("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),S$=new at("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),E$=new at("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),R$=new at("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),O$={"slide-up":{inKeyframes:b$,outKeyframes:_$},"slide-down":{inKeyframes:w$,outKeyframes:C$},"slide-left":{inKeyframes:x$,outKeyframes:S$},"slide-right":{inKeyframes:E$,outKeyframes:R$}},om=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=O$[t];return[yd(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}}]},bd=new at("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$$=new at("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),im=new at("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),am=new at("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),T$=new at("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),P$=new at("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),N$=new at("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),I$=new at("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),A$=new at("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),M$=new at("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),j$=new at("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),k$=new at("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),L$={zoom:{inKeyframes:bd,outKeyframes:$$},"zoom-big":{inKeyframes:im,outKeyframes:am},"zoom-big-fast":{inKeyframes:im,outKeyframes:am},"zoom-left":{inKeyframes:N$,outKeyframes:I$},"zoom-right":{inKeyframes:A$,outKeyframes:M$},"zoom-up":{inKeyframes:T$,outKeyframes:P$},"zoom-down":{inKeyframes:j$,outKeyframes:k$}},_d=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=L$[t];return[yd(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 sm(e){return{position:e,inset:0}}const F$=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({},sm("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},sm("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:y$(e)}]},D$=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:`${_e(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},vn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${_e(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:_e(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ea(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${_e(e.borderRadiusLG)} ${_e(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:`${_e(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"}}}]},B$=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Pb=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ft(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()})},Nb=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${_e(e.padding)} ${_e(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${_e(e.paddingXS)} ${_e(e.padding)}`:0,footerBorderTop:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${_e(e.padding*2)} ${_e(e.padding*2)} ${_e(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Ib=un("Modal",e=>{const t=Pb(e);return[D$(t),B$(t),F$(t),_d(t,"zoom")]},Nb,{unitless:{titleLineHeight:!0}});var z$=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 af;const q$=e=>{af={x:e.pageX,y:e.pageY},setTimeout(()=>{af=null},100)};qO()&&document.documentElement.addEventListener("click",q$,!0);const Ab=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=h.useContext(Ue),a=j=>{const{onCancel:M}=e;M==null||M(j)},s=j=>{const{onOk:M}=e;M==null||M(j)};if(ne.env.NODE_ENV!=="production"){const j=Pt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(M=>{let[H,J]=M;j.deprecated(!(H in e),H,J)})}const{prefixCls:l,className:c,rootClassName:u,open:p,wrapClassName:d,centered:y,getContainer:_,focusTriggerAfterClose:x=!0,style:g,visible:v,width:f=520,footer:m,classNames:b,styles:C,children:E,loading:S}=e,w=z$(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),O=r("modal",l),P=r(),A=En(O),[T,L,D]=Ib(O,A),Q=de(d,{[`${O}-centered`]:!!y,[`${O}-wrap-rtl`]:o==="rtl"}),G=m!==null&&!S?h.createElement(Tb,Object.assign({},e,{onOk:s,onCancel:a})):null,[z,Y]=Rb(Qs(e),Qs(i),{closable:!0,closeIcon:h.createElement($o,{className:`${O}-close-icon`}),closeIconRender:j=>$b(O,j)}),ee=d$(`.${O}-content`),[W,U]=Gy("Modal",w.zIndex);return T(h.createElement(Ys,{form:!0,space:!0},h.createElement(El.Provider,{value:U},h.createElement(hb,Object.assign({width:f},w,{zIndex:W,getContainer:_===void 0?n:_,prefixCls:O,rootClassName:de(L,u,D,A),footer:G,visible:p??v,mousePosition:(t=w.mousePosition)!==null&&t!==void 0?t:af,onClose:a,closable:z,closeIcon:Y,focusTriggerAfterClose:x,transitionName:So(P,"zoom",e.transitionName),maskTransitionName:So(P,"fade",e.maskTransitionName),className:de(L,c,i==null?void 0:i.className),style:Object.assign(Object.assign({},i==null?void 0:i.style),g),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),b),{wrapper:de(Q,b==null?void 0:b.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),C),panelRef:ee}),S?h.createElement(No,{active:!0,title:!1,paragraph:{rows:4},className:`${O}-body-skeleton`}):E))))},V$=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},yy()),[`&${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(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${_e(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}}},H$=wi(["Modal","confirm"],e=>{const t=Pb(e);return[V$(t)]},Nb,{order:-1e3});var W$=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 Mb(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c}=e,u=W$(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 p=n;if(!n&&n!==null)switch(a){case"info":p=h.createElement(xl,null);break;case"success":p=h.createElement(Oa,null);break;case"error":p=h.createElement(xi,null);break;default:p=h.createElement($a,null)}const d=s??a==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[_]=wl("Modal"),x=c||_,g=r||(d?x==null?void 0:x.okText:x==null?void 0:x.justOkText),v=o||(x==null?void 0:x.cancelText),f=Object.assign({autoFocusButton:y,cancelTextLocale:v,okTextLocale:g,mergedOkCancel:d},u),m=h.useMemo(()=>f,xe(Object.values(f))),b=h.createElement(h.Fragment,null,h.createElement(Ih,null),h.createElement(Ah,null)),C=e.title!==void 0&&e.title!==null,E=`${i}-body`;return h.createElement("div",{className:`${i}-body-wrapper`},h.createElement("div",{className:de(E,{[`${E}-has-title`]:C})},p,h.createElement("div",{className:`${i}-paragraph`},C&&h.createElement("span",{className:`${i}-title`},e.title),h.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?h.createElement(cb,{value:m},h.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(b,{OkBtn:Ah,CancelBtn:Ih}):b)):l,h.createElement(H$,{prefixCls:t}))}const jb=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:p,rootPrefixCls:d,bodyStyle:y,closable:_=!1,closeIcon:x,modalRender:g,focusTriggerAfterClose:v,onConfirm:f,styles:m}=e;if(ne.env.NODE_ENV!=="production"){const T=Pt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(L=>{let[D,Q]=L;T.deprecated(!(D in e),D,Q)})}const b=`${u}-confirm`,C=e.width||416,E=e.style||{},S=e.mask===void 0?!0:e.mask,w=e.maskClosable===void 0?!1:e.maskClosable,O=de(b,`${b}-${e.type}`,{[`${b}-rtl`]:c==="rtl"},e.className),[,P]=Jn(),A=h.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+Rl,[n,P]);return h.createElement(Ab,{prefixCls:u,className:O,wrapClassName:de({[`${b}-centered`]:!!e.centered},p),onCancel:()=>{t==null||t({triggerCancel:!0}),f==null||f(!1)},open:o,title:"",footer:null,transitionName:So(d||"","zoom",e.transitionName),maskTransitionName:So(d||"","fade",e.maskTransitionName),mask:S,maskClosable:w,style:E,styles:Object.assign({body:y,mask:l},m),width:C,zIndex:A,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:_,closeIcon:x,modalRender:g,focusTriggerAfterClose:v},h.createElement(Mb,Object.assign({},e,{confirmPrefixCls:b})))},wd=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return h.createElement(er,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},h.createElement(jb,Object.assign({},e)))};ne.env.NODE_ENV!=="production"&&(jb.displayName="ConfirmDialog",wd.displayName="ConfirmDialogWrapper");const po=[];let kb="";function Lb(){return kb}const U$=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=ry(),s=I.useContext(Ue),l=Lb()||s.getPrefixCls(),c=r||`${l}-modal`;let u=o;return u===!1&&(u=void 0,ne.env.NODE_ENV!=="production"&&ne.env.NODE_ENV!=="production"&&Oo(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),I.createElement(wd,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function Aa(e){const t=Ra();ne.env.NODE_ENV!=="production"&&!t.holderRender&&ad("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),o;function i(){for(var c,u=arguments.length,p=new Array(u),d=0;d<u;d++)p[d]=arguments[d];if(p.some(x=>x==null?void 0:x.triggerCancel)){var _;(c=e.onCancel)===null||c===void 0||(_=c).call.apply(_,[e,()=>{}].concat(xe(p.slice(1))))}for(let x=0;x<po.length;x++)if(po[x]===s){po.splice(x,1);break}Qy(n)}function a(c){clearTimeout(o),o=setTimeout(()=>{const u=t.getPrefixCls(void 0,Lb()),p=t.getIconPrefixCls(),d=t.getTheme(),y=I.createElement(U$,Object.assign({},c));$l(I.createElement(er,{prefixCls:u,iconPrefixCls:p,theme:d},t.holderRender?t.holderRender(y):y),n)})}function s(){for(var c=arguments.length,u=new Array(c),p=0;p<c;p++)u[p]=arguments[p];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 l(c){typeof c=="function"?r=c(r):r=Object.assign(Object.assign({},r),c),a(r)}return a(r),po.push(s),{destroy:s,update:l}}function Fb(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Db(e){return Object.assign(Object.assign({},e),{type:"info"})}function Bb(e){return Object.assign(Object.assign({},e),{type:"success"})}function zb(e){return Object.assign(Object.assign({},e),{type:"error"})}function qb(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function G$(e){let{rootPrefixCls:t}=e;ne.env.NODE_ENV!=="production"&&Oo(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),kb=t}var K$=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 X$=(e,t)=>{var n,{afterClose:r,config:o}=e,i=K$(e,["afterClose","config"]);const[a,s]=h.useState(!0),[l,c]=h.useState(o),{direction:u,getPrefixCls:p}=h.useContext(Ue),d=p("modal"),y=p(),_=()=>{var f;r(),(f=l.afterClose)===null||f===void 0||f.call(l)},x=function(){var f;s(!1);for(var m=arguments.length,b=new Array(m),C=0;C<m;C++)b[C]=arguments[C];if(b.some(w=>w==null?void 0:w.triggerCancel)){var S;(f=l.onCancel)===null||f===void 0||(S=f).call.apply(S,[l,()=>{}].concat(xe(b.slice(1))))}};h.useImperativeHandle(t,()=>({destroy:x,update:f=>{c(m=>Object.assign(Object.assign({},m),f))}}));const g=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[v]=wl("Modal",Hr.Modal);return h.createElement(wd,Object.assign({prefixCls:d,rootPrefixCls:y},l,{close:x,open:a,afterClose:_,okText:l.okText||(g?v==null?void 0:v.okText:v==null?void 0:v.justOkText),direction:l.direction||u,cancelText:l.cancelText||(v==null?void 0:v.cancelText)},i))},Y$=h.forwardRef(X$);let lm=0;const Q$=h.memo(h.forwardRef((e,t)=>{const[n,r]=z1();return h.useImperativeHandle(t,()=>({patchElement:r}),[]),h.createElement(h.Fragment,null,n)}));function J$(){const e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(xe(t).forEach(a=>{a()}),n([]))},[t]);const r=h.useCallback(i=>function(s){var l;lm+=1;const c=h.createRef();let u;const p=new Promise(g=>{u=g});let d=!1,y;const _=h.createElement(Y$,{key:`modal-${lm}`,config:i(s),ref:c,afterClose:()=>{y==null||y()},isSilent:()=>d,onConfirm:g=>{u(g)}});return y=(l=e.current)===null||l===void 0?void 0:l.patchElement(_),y&&po.push(y),{destroy:()=>{function g(){var v;(v=c.current)===null||v===void 0||v.destroy()}c.current?g():n(v=>[].concat(xe(v),[g]))},update:g=>{function v(){var f;(f=c.current)===null||f===void 0||f.update(g)}c.current?v():n(f=>[].concat(xe(f),[v]))},then:g=>(d=!0,p.then(g))}},[]);return[h.useMemo(()=>({info:r(Db),success:r(Bb),error:r(zb),warning:r(Fb),confirm:r(qb)}),[]),h.createElement(Q$,{key:"modal-holder",ref:e})]}const Z$=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new at("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new at("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new at("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new at("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:s}},[`&${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:l}}}}},eT=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],tT={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},nT=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[tT[t]]:{value:0,_skip_check_:!0}}}}},rT=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)},oT=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)},iT=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},rT(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},oT(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"}}}},eT.map(n=>nT(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Vb=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:p,notificationBg:d,notificationPadding:y,notificationMarginEdge:_,notificationProgressBg:x,notificationProgressHeight:g,fontSize:v,lineHeight:f,width:m,notificationIconSize:b,colorText:C}=e,E=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[E]:{padding:y,width:m,maxWidth:`calc(100vw - ${_e(e.calc(_).mul(2).equal())})`,overflow:"hidden",lineHeight:f,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:p,fontSize:o,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:v,color:C},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:v},[`${E}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${E}-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}},Ea(e)),[`${E}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${_e(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:x},"&::-webkit-progress-value":{borderRadius:a,background:x}},[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},aT=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new at("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},vn(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:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Vb(e))}}]},Hb=e=>({zIndexPopup:e.zIndexPopupBase+Rl+50,width:384}),Wb=e=>{const t=e.paddingMD,n=e.paddingLG;return Ft(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:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Ub=un("Notification",e=>{const t=Wb(e);return[aT(t),Z$(t),iT(t)]},Hb),sT=wi(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=Wb(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Vb(n)),{width:n.width,maxWidth:`calc(100vw - ${_e(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Hb);var lT=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 Cd(e,t){return t===null||t===!1?null:t||h.createElement($o,{className:`${e}-close-icon`})}const cT={success:Oa,info:xl,error:xi,warning:$a},Gb=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=h.createElement("span",{className:`${t}-icon`},n):r&&(l=h.createElement(cT[r]||null,{className:de(`${t}-icon`,`${t}-icon-${r}`)})),h.createElement("div",{className:de({[`${t}-with-icon`]:l}),role:s},l,h.createElement("div",{className:`${t}-message`},o),h.createElement("div",{className:`${t}-description`},i),a&&h.createElement("div",{className:`${t}-btn`},a))},uT=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,closable:l=!0,closeIcon:c,className:u}=e,p=lT(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:d}=h.useContext(Ue),y=t||d("notification"),_=`${y}-notice`,x=En(y),[g,v,f]=Ub(y,x);return g(h.createElement("div",{className:de(`${_}-pure-panel`,v,n,f,x)},h.createElement(sT,{prefixCls:y}),h.createElement(sd,Object.assign({},p,{prefixCls:y,eventKey:"pure",duration:null,closable:l,className:de({notificationClassName:u}),closeIcon:Cd(y,c),content:h.createElement(Gb,{prefixCls:_,icon:r,type:o,message:i,description:a,btn:s})}))))};function fT(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 dT(e){return{motionName:`${e}-fade`}}var pT=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 cm=24,hT=4.5,mT="topRight",gT=e=>{let{children:t,prefixCls:n}=e;const r=En(n),[o,i,a]=Ub(n,r);return o(I.createElement(qy,{classNames:{list:de(i,a,r)}},t))},vT=(e,t)=>{let{prefixCls:n,key:r}=t;return I.createElement(gT,{prefixCls:n,key:r},e)},yT=I.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:p=!0,showProgress:d}=e,{getPrefixCls:y,getPopupContainer:_,notification:x,direction:g}=I.useContext(Ue),[,v]=Jn(),f=o||y("notification"),m=w=>fT(w,n??cm,r??cm),b=()=>de({[`${f}-rtl`]:s??g==="rtl"}),C=()=>dT(f),[E,S]=Wy({prefixCls:f,style:m,className:b,motion:C,closable:!0,closeIcon:Cd(f),duration:u??hT,getContainer:()=>(i==null?void 0:i())||(_==null?void 0:_())||document.body,maxCount:a,pauseOnHover:p,showProgress:d,onAllRemoved:l,renderNotifications:vT,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:v.margin}});return I.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:f,notification:x})),S});function Kb(e){const t=I.useRef(null),n=Pt("Notification");return[I.useMemo(()=>{const o=l=>{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:p,notification:d}=t.current,y=`${p}-notice`,{message:_,description:x,icon:g,type:v,btn:f,className:m,style:b,role:C="alert",closeIcon:E,closable:S}=l,w=pT(l,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),O=Cd(y,typeof E<"u"?E: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:mT},w),{content:I.createElement(Gb,{prefixCls:y,icon:g,type:v,message:_,description:x,btn:f,role:C}),className:de(v&&`${y}-${v}`,m,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),b),closeIcon:O,closable:S??!!O}))},a={open:o,destroy:l=>{var c,u;l!==void 0?(c=t.current)===null||c===void 0||c.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=c=>o(Object.assign(Object.assign({},c),{type:l}))}),a},[]),I.createElement(yT,Object.assign({key:"notification-holder"},e,{ref:t}))]}function bT(e){return Kb(e)}const Xb=I.createContext({});function _T(e){return t=>h.createElement(er,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,Object.assign({},t)))}const Yb=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 wT=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],zo=void 0;function CT(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,p=e.style,d=e.children,y=e.display,_=e.order,x=e.component,g=x===void 0?"div":x,v=nt(e,wT),f=a&&!y;function m(w){l(c,w)}h.useEffect(function(){return function(){m(null)}},[]);var b=i&&o!==zo?i(o):d,C;r||(C={opacity:f?0:1,height:f?0:zo,overflowY:f?"hidden":zo,order:a?_:zo,pointerEvents:f?"none":zo,position:f?"absolute":zo});var E={};f&&(E["aria-hidden"]=!0);var S=h.createElement(g,Te({className:de(!r&&n,u),style:ie(ie({},C),p)},E,v,{ref:t}),b);return a&&(S=h.createElement(cr,{onResize:function(O){var P=O.offsetWidth;m(P)},disabled:s},S)),S}var Yi=h.forwardRef(CT);Yi.displayName="Item";function xT(e){if(typeof MessageChannel>"u")Lt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function ST(){var e=h.useRef(null),t=function(r){e.current||(e.current=[],xT(function(){_o.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ki(e,t){var n=h.useState(t),r=he(n,2),o=r[0],i=r[1],a=Zt(function(s){e(function(){i(s)})});return[o,a]}var Js=I.createContext(null),ET=["component"],RT=["className"],OT=["className"],$T=function(t,n){var r=h.useContext(Js);if(!r){var o=t.component,i=o===void 0?"div":o,a=nt(t,ET);return h.createElement(i,Te({},a,{ref:n}))}var s=r.className,l=nt(r,RT),c=t.className,u=nt(t,OT);return h.createElement(Js.Provider,{value:null},h.createElement(Yi,Te({ref:n,className:de(s,c)},l,u)))},Qb=h.forwardRef($T);Qb.displayName="RawItem";var TT=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Jb="responsive",Zb="invalidate";function PT(e){return"+ ".concat(e.length," ...")}function NT(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,p=e.ssr,d=e.style,y=e.className,_=e.maxCount,x=e.renderRest,g=e.renderRawRest,v=e.suffix,f=e.component,m=f===void 0?"div":f,b=e.itemComponent,C=e.onVisibleChange,E=nt(e,TT),S=p==="full",w=ST(),O=ki(w,null),P=he(O,2),A=P[0],T=P[1],L=A||0,D=ki(w,new Map),Q=he(D,2),G=Q[0],z=Q[1],Y=ki(w,0),ee=he(Y,2),W=ee[0],U=ee[1],j=ki(w,0),M=he(j,2),H=M[0],J=M[1],B=ki(w,0),q=he(B,2),K=q[0],re=q[1],se=I.useState(null),k=he(se,2),F=k[0],ae=k[1],Z=I.useState(null),me=he(Z,2),pe=me[0],Ce=me[1],Me=h.useMemo(function(){return pe===null&&S?Number.MAX_SAFE_INTEGER:pe||0},[pe,A]),ce=I.useState(!1),Ie=he(ce,2),Pe=Ie[0],Oe=Ie[1],ve="".concat(r,"-item"),we=Math.max(W,H),Se=_===Jb,Ee=i.length&&Se,Ve=_===Zb,He=Ee||typeof _=="number"&&i.length>_,Xe=I.useMemo(function(){var ke=i;return Ee?A===null&&S?ke=i:ke=i.slice(0,Math.min(i.length,L/u)):typeof _=="number"&&(ke=i.slice(0,_)),ke},[i,u,A,_,Ee]),ft=I.useMemo(function(){return Ee?i.slice(Me+1):i.slice(Xe.length)},[i,Xe,Ee,Me]),mt=I.useCallback(function(ke,N){var R;return typeof l=="function"?l(ke):(R=l&&(ke==null?void 0:ke[l]))!==null&&R!==void 0?R:N},[l]),ct=I.useCallback(a||function(ke){return ke},[a]);function ze(ke,N,R){pe===ke&&(N===void 0||N===F)||(Ce(ke),R||(Oe(ke<i.length-1),C==null||C(ke)),N!==void 0&&ae(N))}function Ne(ke,N){T(N.clientWidth)}function st(ke,N){z(function(R){var $=new Map(R);return N===null?$.delete(ke):$.set(ke,N),$})}function rt(ke,N){J(N),U(H)}function Ye(ke,N){re(N)}function Ot(ke){return G.get(mt(Xe[ke],ke))}Xt(function(){if(L&&typeof we=="number"&&Xe){var ke=K,N=Xe.length,R=N-1;if(!N){ze(0,null);return}for(var $=0;$<N;$+=1){var V=Ot($);if(S&&(V=V||0),V===void 0){ze($-1,void 0,!0);break}if(ke+=V,R===0&&ke<=L||$===R-1&&ke+Ot(R)<=L){ze(R,null);break}else if(ke+we>L){ze($-1,ke-V-K+H);break}}v&&Ot(0)+K>L&&ae(null)}},[L,G,H,K,mt,Xe]);var Dt=Pe&&!!ft.length,Ut={};F!==null&&Ee&&(Ut={position:"absolute",left:F,top:0});var gt={prefixCls:ve,responsive:Ee,component:b,invalidate:Ve},$t=s?function(ke,N){var R=mt(ke,N);return h.createElement(Js.Provider,{key:R,value:ie(ie({},gt),{},{order:N,item:ke,itemKey:R,registerSize:st,display:N<=Me})},s(ke,N))}:function(ke,N){var R=mt(ke,N);return h.createElement(Yi,Te({},gt,{order:N,key:R,item:ke,renderItem:ct,itemKey:R,registerSize:st,display:N<=Me}))},Qe,lt={order:Dt?Me:Number.MAX_SAFE_INTEGER,className:"".concat(ve,"-rest"),registerSize:rt,display:Dt};if(g)g&&(Qe=h.createElement(Js.Provider,{value:ie(ie({},gt),lt)},g(ft)));else{var Tt=x||PT;Qe=h.createElement(Yi,Te({},gt,lt),typeof Tt=="function"?Tt(ft):Tt)}var Ge=h.createElement(m,Te({className:de(!Ve&&r,y),style:d,ref:t},E),Xe.map($t),He?Qe:null,v&&h.createElement(Yi,Te({},gt,{responsive:Se,responsiveDisabled:!Ee,order:Me,className:"".concat(ve,"-suffix"),registerSize:Ye,display:!0,style:Ut}),v));return Se&&(Ge=h.createElement(cr,{onResize:Ne,disabled:!Ee},Ge)),Ge}var Sr=h.forwardRef(NT);Sr.displayName="Overflow";Sr.Item=Qb;Sr.RESPONSIVE=Jb;Sr.INVALIDATE=Zb;function IT(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,p=u===void 0?0:u,d=h.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var _=n.points[0],x=n.points[1],g=_[0],v=_[1],f=x[0],m=x[1];g===f||!["t","b"].includes(g)?y.top=p:g==="t"?y.top=0:y.bottom=0,v===m||!["l","r"].includes(v)?y.left=c:v==="l"?y.left=0:y.right=0}return h.createElement("div",{ref:d,className:de("".concat(t,"-arrow"),a),style:y},s)}function AT(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(Zn,Te({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return h.createElement("div",{style:{zIndex:r},className:de("".concat(t,"-mask"),s)})}):null}var e0=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});ne.env.NODE_ENV!=="production"&&(e0.displayName="PopupContent");var t0=h.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,p=e.onClick,d=e.mask,y=e.arrow,_=e.arrowPos,x=e.align,g=e.motion,v=e.maskMotion,f=e.forceRender,m=e.getPopupContainer,b=e.autoDestroy,C=e.portal,E=e.zIndex,S=e.onMouseEnter,w=e.onMouseLeave,O=e.onPointerEnter,P=e.ready,A=e.offsetX,T=e.offsetY,L=e.offsetR,D=e.offsetB,Q=e.onAlign,G=e.onPrepare,z=e.stretch,Y=e.targetWidth,ee=e.targetHeight,W=typeof n=="function"?n():n,U=l||c,j=(m==null?void 0:m.length)>0,M=h.useState(!m||!j),H=he(M,2),J=H[0],B=H[1];if(Xt(function(){!J&&j&&a&&B(!0)},[J,j,a]),!J)return null;var q="auto",K={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(P||!l){var re,se=x.points,k=x.dynamicInset||((re=x._experimental)===null||re===void 0?void 0:re.dynamicInset),F=k&&se[0][1]==="r",ae=k&&se[0][0]==="b";F?(K.right=L,K.left=q):(K.left=A,K.right=q),ae?(K.bottom=D,K.top=q):(K.top=T,K.bottom=q)}var Z={};return z&&(z.includes("height")&&ee?Z.height=ee:z.includes("minHeight")&&ee&&(Z.minHeight=ee),z.includes("width")&&Y?Z.width=Y:z.includes("minWidth")&&Y&&(Z.minWidth=Y)),l||(Z.pointerEvents="none"),h.createElement(C,{open:f||U,getContainer:m&&function(){return m(a)},autoDestroy:b},h.createElement(AT,{prefixCls:o,open:l,zIndex:E,mask:d,motion:v}),h.createElement(cr,{onResize:Q,disabled:!l},function(me){return h.createElement(Zn,Te({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:f,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:G,onEnterPrepare:G,visible:l,onVisibleChanged:function(Ce){var Me;g==null||(Me=g.onVisibleChanged)===null||Me===void 0||Me.call(g,Ce),s(Ce)}}),function(pe,Ce){var Me=pe.className,ce=pe.style,Ie=de(o,Me,r);return h.createElement("div",{ref:Yn(me,t,Ce),className:Ie,style:ie(ie(ie(ie({"--arrow-x":"".concat(_.x||0,"px"),"--arrow-y":"".concat(_.y||0,"px")},K),Z),ce),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:S,onMouseLeave:w,onPointerEnter:O,onClick:p},y&&h.createElement(IT,{prefixCls:o,arrow:y,arrowPos:_,align:x}),h.createElement(e0,{cache:!l&&!u},W))})}))});ne.env.NODE_ENV!=="production"&&(t0.displayName="Popup");var n0=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Kr(n),i=h.useCallback(function(s){Uf(t,r?r(s):s)},[r]),a=bi(i,n.ref);return o?h.cloneElement(n,{ref:a}):n});ne.env.NODE_ENV!=="production"&&(n0.displayName="TriggerWrapper");var um=h.createContext(null);function fm(e){return e?Array.isArray(e)?e:[e]:[]}function MT(e,t,n,r){return h.useMemo(function(){var o=fm(n??t),i=fm(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function jT(){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 kT(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(jT((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function dm(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ma(e){return e.ownerDocument.defaultView}function sf(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ma(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Li(e){return va(parseFloat(e),0)}function pm(e,t){var n=ie({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ma(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,p=r.getBoundingClientRect(),d=r.offsetHeight,y=r.clientHeight,_=r.offsetWidth,x=r.clientWidth,g=Li(s),v=Li(l),f=Li(c),m=Li(u),b=va(Math.round(p.width/_*1e3)/1e3),C=va(Math.round(p.height/d*1e3)/1e3),E=(_-x-f-m)*b,S=(d-y-g-v)*C,w=g*C,O=v*C,P=f*b,A=m*b,T=0,L=0;if(i==="clip"){var D=Li(a);T=D*b,L=D*C}var Q=p.x+P-T,G=p.y+w-L,z=Q+p.width+2*T-P-A-E,Y=G+p.height+2*L-w-O-S;n.left=Math.max(n.left,Q),n.top=Math.max(n.top,G),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,Y)}}),n}function hm(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 mm(e,t){var n=t||[],r=he(n,2),o=r[0],i=r[1];return[hm(e.width,o),hm(e.height,i)]}function gm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function qo(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 jr(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 LT(e,t,n,r,o,i,a){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=he(s,2),c=l[0],u=l[1],p=h.useRef(0),d=h.useMemo(function(){return t?sf(t):[]},[t]),y=h.useRef({}),_=function(){y.current={}};e||_();var x=Zt(function(){if(t&&n&&e){let mn=function(Ii,mr){var no=arguments.length>2&&arguments[2]!==void 0?arguments[2]:we,Va=H.x+Ii,Ha=H.y+mr,Kl=Va+ae,Xl=Ha+F,Ae=Math.max(Va,no.left),We=Math.max(Ha,no.top),Nt=Math.min(Kl,no.right),Bt=Math.min(Xl,no.bottom);return Math.max(0,(Nt-Ae)*(Bt-We))},Lo=function(){Le=H.y+R,je=Le+F,De=H.x+N,qe=De+ae};var f,m,b,C,E=t,S=E.ownerDocument,w=Ma(E),O=w.getComputedStyle(E),P=O.width,A=O.height,T=O.position,L=E.style.left,D=E.style.top,Q=E.style.right,G=E.style.bottom,z=E.style.overflow,Y=ie(ie({},o[r]),i),ee=S.createElement("div");(f=E.parentElement)===null||f===void 0||f.appendChild(ee),ee.style.left="".concat(E.offsetLeft,"px"),ee.style.top="".concat(E.offsetTop,"px"),ee.style.position=T,ee.style.height="".concat(E.offsetHeight,"px"),ee.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var W;if(Array.isArray(n))W={x:n[0],y:n[1],width:0,height:0};else{var U,j,M=n.getBoundingClientRect();M.x=(U=M.x)!==null&&U!==void 0?U:M.left,M.y=(j=M.y)!==null&&j!==void 0?j:M.top,W={x:M.x,y:M.y,width:M.width,height:M.height}}var H=E.getBoundingClientRect();H.x=(m=H.x)!==null&&m!==void 0?m:H.left,H.y=(b=H.y)!==null&&b!==void 0?b:H.top;var J=S.documentElement,B=J.clientWidth,q=J.clientHeight,K=J.scrollWidth,re=J.scrollHeight,se=J.scrollTop,k=J.scrollLeft,F=H.height,ae=H.width,Z=W.height,me=W.width,pe={left:0,top:0,right:B,bottom:q},Ce={left:-k,top:-se,right:K-k,bottom:re-se},Me=Y.htmlRegion,ce="visible",Ie="visibleFirst";Me!=="scroll"&&Me!==Ie&&(Me=ce);var Pe=Me===Ie,Oe=pm(Ce,d),ve=pm(pe,d),we=Me===ce?ve:Oe,Se=Pe?ve:we;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Ee=E.getBoundingClientRect();E.style.left=L,E.style.top=D,E.style.right=Q,E.style.bottom=G,E.style.overflow=z,(C=E.parentElement)===null||C===void 0||C.removeChild(ee);var Ve=va(Math.round(ae/parseFloat(P)*1e3)/1e3),He=va(Math.round(F/parseFloat(A)*1e3)/1e3);if(Ve===0||He===0||ra(n)&&!Tl(n))return;var Xe=Y.offset,ft=Y.targetOffset,mt=mm(H,Xe),ct=he(mt,2),ze=ct[0],Ne=ct[1],st=mm(W,ft),rt=he(st,2),Ye=rt[0],Ot=rt[1];W.x-=Ye,W.y-=Ot;var Dt=Y.points||[],Ut=he(Dt,2),gt=Ut[0],$t=Ut[1],Qe=gm($t),lt=gm(gt),Tt=qo(W,Qe),Ge=qo(H,lt),ke=ie({},Y),N=Tt.x-Ge.x+ze,R=Tt.y-Ge.y+Ne,$=mn(N,R),V=mn(N,R,ve),te=qo(W,["t","l"]),le=qo(H,["t","l"]),ge=qo(W,["b","r"]),Fe=qo(H,["b","r"]),Je=Y.overflow||{},et=Je.adjustX,X=Je.adjustY,ue=Je.shiftX,ye=Je.shiftY,Re=function(mr){return typeof mr=="boolean"?mr:mr>=0},Le,je,De,qe;Lo();var _t=Re(X),dt=lt[0]===Qe[0];if(_t&&lt[0]==="t"&&(je>Se.bottom||y.current.bt)){var Ke=R;dt?Ke-=F-Z:Ke=te.y-Fe.y-Ne;var Mt=mn(N,Ke),hn=mn(N,Ke,ve);Mt>$||Mt===$&&(!Pe||hn>=V)?(y.current.bt=!0,R=Ke,Ne=-Ne,ke.points=[jr(lt,0),jr(Qe,0)]):y.current.bt=!1}if(_t&&lt[0]==="b"&&(Le<Se.top||y.current.tb)){var Gt=R;dt?Gt+=F-Z:Gt=ge.y-le.y-Ne;var At=mn(N,Gt),fr=mn(N,Gt,ve);At>$||At===$&&(!Pe||fr>=V)?(y.current.tb=!0,R=Gt,Ne=-Ne,ke.points=[jr(lt,0),jr(Qe,0)]):y.current.tb=!1}var dr=Re(et),Rn=lt[1]===Qe[1];if(dr&&lt[1]==="l"&&(qe>Se.right||y.current.rl)){var Dn=N;Rn?Dn-=ae-me:Dn=te.x-Fe.x-ze;var Mo=mn(Dn,R),Pr=mn(Dn,R,ve);Mo>$||Mo===$&&(!Pe||Pr>=V)?(y.current.rl=!0,N=Dn,ze=-ze,ke.points=[jr(lt,1),jr(Qe,1)]):y.current.rl=!1}if(dr&&lt[1]==="r"&&(De<Se.left||y.current.lr)){var Bn=N;Rn?Bn+=ae-me:Bn=ge.x-le.x-ze;var Zr=mn(Bn,R),pr=mn(Bn,R,ve);Zr>$||Zr===$&&(!Pe||pr>=V)?(y.current.lr=!0,N=Bn,ze=-ze,ke.points=[jr(lt,1),jr(Qe,1)]):y.current.lr=!1}Lo();var On=ue===!0?0:ue;typeof On=="number"&&(De<ve.left&&(N-=De-ve.left-ze,W.x+me<ve.left+On&&(N+=W.x-ve.left+me-On)),qe>ve.right&&(N-=qe-ve.right-ze,W.x>ve.right-On&&(N+=W.x-ve.right+On)));var yn=ye===!0?0:ye;typeof yn=="number"&&(Le<ve.top&&(R-=Le-ve.top-Ne,W.y+Z<ve.top+yn&&(R+=W.y-ve.top+Z-yn)),je>ve.bottom&&(R-=je-ve.bottom-Ne,W.y>ve.bottom-yn&&(R+=W.y-ve.bottom+yn)));var Nr=H.x+N,hr=Nr+ae,$n=H.y+R,Ti=$n+F,jo=W.x,Pi=jo+me,eo=W.y,St=eo+Z,ut=Math.max(Nr,jo),wt=Math.min(hr,Pi),Qt=(ut+wt)/2,en=Qt-Nr,Ir=Math.max($n,eo),Ar=Math.min(Ti,St),Ni=(Ir+Ar)/2,ko=Ni-$n;a==null||a(t,ke);var Mr=Ee.right-H.x-(N+H.width),an=Ee.bottom-H.y-(R+H.height);Ve===1&&(N=Math.round(N),Mr=Math.round(Mr)),He===1&&(R=Math.round(R),an=Math.round(an));var to={ready:!0,offsetX:N/Ve,offsetY:R/He,offsetR:Mr/Ve,offsetB:an/He,arrowX:en/Ve,arrowY:ko/He,scaleX:Ve,scaleY:He,align:ke};u(to)}}),g=function(){p.current+=1;var m=p.current;Promise.resolve().then(function(){p.current===m&&x()})},v=function(){u(function(m){return ie(ie({},m),{},{ready:!1})})};return Xt(v,[r]),Xt(function(){e||v()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function FT(e,t,n,r,o){Xt(function(){if(e&&t&&n){let p=function(){r(),o()};var i=t,a=n,s=sf(i),l=sf(a),c=Ma(a),u=new Set([c].concat(xe(s),xe(l)));return u.forEach(function(d){d.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),r(),function(){u.forEach(function(d){d.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,n])}function DT(e,t,n,r,o,i,a,s){var l=h.useRef(e);l.current=e,h.useEffect(function(){if(t&&r&&(!o||i)){var c=function(v){var f;l.current&&!a(((f=v.composedPath)===null||f===void 0||(f=f.call(v))===null||f===void 0?void 0:f[0])||v.target)&&s(!1)},u=Ma(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var p=Gs(n);if(p&&(p.addEventListener("mousedown",c,!0),p.addEventListener("contextmenu",c,!0)),ne.env.NODE_ENV!=="production"){var d,y,_=n==null||(d=n.getRootNode)===null||d===void 0?void 0:d.call(n),x=(y=r.getRootNode)===null||y===void 0?void 0:y.call(r);Vr(_===x,"trigger element and popup element should in same shadow root.")}return function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),p&&(p.removeEventListener("mousedown",c,!0),p.removeEventListener("contextmenu",c,!0))}}},[t,n,r,o,i])}var BT=["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 zT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pl,t=h.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,p=n.popupVisible,d=n.defaultPopupVisible,y=n.onPopupVisibleChange,_=n.afterPopupVisibleChange,x=n.mouseEnterDelay,g=n.mouseLeaveDelay,v=g===void 0?.1:g,f=n.focusDelay,m=n.blurDelay,b=n.mask,C=n.maskClosable,E=C===void 0?!0:C,S=n.getPopupContainer,w=n.forceRender,O=n.autoDestroy,P=n.destroyPopupOnHide,A=n.popup,T=n.popupClassName,L=n.popupStyle,D=n.popupPlacement,Q=n.builtinPlacements,G=Q===void 0?{}:Q,z=n.popupAlign,Y=n.zIndex,ee=n.stretch,W=n.getPopupClassNameFromAlign,U=n.fresh,j=n.alignPoint,M=n.onPopupClick,H=n.onPopupAlign,J=n.arrow,B=n.popupMotion,q=n.maskMotion,K=n.popupTransitionName,re=n.popupAnimation,se=n.maskTransitionName,k=n.maskAnimation,F=n.className,ae=n.getTriggerDOMNode,Z=nt(n,BT),me=O||P||!1,pe=h.useState(!1),Ce=he(pe,2),Me=Ce[0],ce=Ce[1];Xt(function(){ce(Yb())},[]);var Ie=h.useRef({}),Pe=h.useContext(um),Oe=h.useMemo(function(){return{registerSubPopup:function(We,Nt){Ie.current[We]=Nt,Pe==null||Pe.registerSubPopup(We,Nt)}}},[Pe]),ve=db(),we=h.useState(null),Se=he(we,2),Ee=Se[0],Ve=Se[1],He=h.useRef(null),Xe=Zt(function(Ae){He.current=Ae,ra(Ae)&&Ee!==Ae&&Ve(Ae),Pe==null||Pe.registerSubPopup(ve,Ae)}),ft=h.useState(null),mt=he(ft,2),ct=mt[0],ze=mt[1],Ne=h.useRef(null),st=Zt(function(Ae){ra(Ae)&&ct!==Ae&&(ze(Ae),Ne.current=Ae)}),rt=h.Children.only(a),Ye=(rt==null?void 0:rt.props)||{},Ot={},Dt=Zt(function(Ae){var We,Nt,Bt=ct;return(Bt==null?void 0:Bt.contains(Ae))||((We=Gs(Bt))===null||We===void 0?void 0:We.host)===Ae||Ae===Bt||(Ee==null?void 0:Ee.contains(Ae))||((Nt=Gs(Ee))===null||Nt===void 0?void 0:Nt.host)===Ae||Ae===Ee||Object.values(Ie.current).some(function(jt){return(jt==null?void 0:jt.contains(Ae))||Ae===jt})}),Ut=dm(i,B,re,K),gt=dm(i,q,k,se),$t=h.useState(d||!1),Qe=he($t,2),lt=Qe[0],Tt=Qe[1],Ge=p??lt,ke=Zt(function(Ae){p===void 0&&Tt(Ae)});Xt(function(){Tt(p||!1)},[p]);var N=h.useRef(Ge);N.current=Ge;var R=h.useRef([]);R.current=[];var $=Zt(function(Ae){var We;ke(Ae),((We=R.current[R.current.length-1])!==null&&We!==void 0?We:Ge)!==Ae&&(R.current.push(Ae),y==null||y(Ae))}),V=h.useRef(),te=function(){clearTimeout(V.current)},le=function(We){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;te(),Nt===0?$(We):V.current=setTimeout(function(){$(We)},Nt*1e3)};h.useEffect(function(){return te},[]);var ge=h.useState(!1),Fe=he(ge,2),Je=Fe[0],et=Fe[1];Xt(function(Ae){(!Ae||Ge)&&et(!0)},[Ge]);var X=h.useState(null),ue=he(X,2),ye=ue[0],Re=ue[1],Le=h.useState(null),je=he(Le,2),De=je[0],qe=je[1],_t=function(We){qe([We.clientX,We.clientY])},dt=LT(Ge,Ee,j&&De!==null?De:ct,D,G,z,H),Ke=he(dt,11),Mt=Ke[0],hn=Ke[1],Gt=Ke[2],At=Ke[3],fr=Ke[4],dr=Ke[5],Rn=Ke[6],Dn=Ke[7],Mo=Ke[8],Pr=Ke[9],Bn=Ke[10],Zr=MT(Me,l,c,u),pr=he(Zr,2),On=pr[0],yn=pr[1],Nr=On.has("click"),hr=yn.has("click")||yn.has("contextMenu"),$n=Zt(function(){Je||Bn()}),Ti=function(){N.current&&j&&hr&&le(!1)};FT(Ge,ct,Ee,$n,Ti),Xt(function(){$n()},[De,D]),Xt(function(){Ge&&!(G!=null&&G[D])&&$n()},[JSON.stringify(z)]);var jo=h.useMemo(function(){var Ae=kT(G,i,Pr,j);return de(Ae,W==null?void 0:W(Pr))},[Pr,W,G,i,j]);h.useImperativeHandle(r,function(){return{nativeElement:Ne.current,popupElement:He.current,forceAlign:$n}});var Pi=h.useState(0),eo=he(Pi,2),St=eo[0],ut=eo[1],wt=h.useState(0),Qt=he(wt,2),en=Qt[0],Ir=Qt[1],Ar=function(){if(ee&&ct){var We=ct.getBoundingClientRect();ut(We.width),Ir(We.height)}},Ni=function(){Ar(),$n()},ko=function(We){et(!1),Bn(),_==null||_(We)},Mr=function(){return new Promise(function(We){Ar(),Re(function(){return We})})};Xt(function(){ye&&(Bn(),ye(),Re(null))},[ye]);function an(Ae,We,Nt,Bt){Ot[Ae]=function(jt){var Wa;Bt==null||Bt(jt),le(We,Nt);for(var Yl=arguments.length,Sp=new Array(Yl>1?Yl-1:0),Ua=1;Ua<Yl;Ua++)Sp[Ua-1]=arguments[Ua];(Wa=Ye[Ae])===null||Wa===void 0||Wa.call.apply(Wa,[Ye,jt].concat(Sp))}}(Nr||hr)&&(Ot.onClick=function(Ae){var We;N.current&&hr?le(!1):!N.current&&Nr&&(_t(Ae),le(!0));for(var Nt=arguments.length,Bt=new Array(Nt>1?Nt-1:0),jt=1;jt<Nt;jt++)Bt[jt-1]=arguments[jt];(We=Ye.onClick)===null||We===void 0||We.call.apply(We,[Ye,Ae].concat(Bt))}),DT(Ge,hr,ct,Ee,b,E,Dt,le);var to=On.has("hover"),mn=yn.has("hover"),Lo,Ii;to&&(an("onMouseEnter",!0,x,function(Ae){_t(Ae)}),an("onPointerEnter",!0,x,function(Ae){_t(Ae)}),Lo=function(We){(Ge||Je)&&Ee!==null&&Ee!==void 0&&Ee.contains(We.target)&&le(!0,x)},j&&(Ot.onMouseMove=function(Ae){var We;(We=Ye.onMouseMove)===null||We===void 0||We.call(Ye,Ae)})),mn&&(an("onMouseLeave",!1,v),an("onPointerLeave",!1,v),Ii=function(){le(!1,v)}),On.has("focus")&&an("onFocus",!0,f),yn.has("focus")&&an("onBlur",!1,m),On.has("contextMenu")&&(Ot.onContextMenu=function(Ae){var We;N.current&&yn.has("contextMenu")?le(!1):(_t(Ae),le(!0)),Ae.preventDefault();for(var Nt=arguments.length,Bt=new Array(Nt>1?Nt-1:0),jt=1;jt<Nt;jt++)Bt[jt-1]=arguments[jt];(We=Ye.onContextMenu)===null||We===void 0||We.call.apply(We,[Ye,Ae].concat(Bt))}),F&&(Ot.className=de(Ye.className,F));var mr=ie(ie({},Ye),Ot),no={},Va=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Va.forEach(function(Ae){Z[Ae]&&(no[Ae]=function(){for(var We,Nt=arguments.length,Bt=new Array(Nt),jt=0;jt<Nt;jt++)Bt[jt]=arguments[jt];(We=mr[Ae])===null||We===void 0||We.call.apply(We,[mr].concat(Bt)),Z[Ae].apply(Z,Bt)})});var Ha=h.cloneElement(rt,ie(ie({},mr),no)),Kl={x:dr,y:Rn},Xl=J?ie({},J!==!0?J:{}):null;return h.createElement(h.Fragment,null,h.createElement(cr,{disabled:!Ge,ref:st,onResize:Ni},h.createElement(n0,{getTriggerDOMNode:ae},Ha)),h.createElement(um.Provider,{value:Oe},h.createElement(t0,{portal:e,ref:Xe,prefixCls:i,popup:A,className:de(T,jo),style:L,target:ct,onMouseEnter:Lo,onMouseLeave:Ii,onPointerEnter:Lo,zIndex:Y,open:Ge,keepDom:Je,fresh:U,onClick:M,mask:b,motion:Ut,maskMotion:gt,onVisibleChanged:ko,onPrepare:Mr,forceRender:w,autoDestroy:me,getPopupContainer:S,align:Pr,arrow:Xl,arrowPos:Kl,ready:Mt,offsetX:hn,offsetY:Gt,offsetR:At,offsetB:fr,onAlign:$n,stretch:ee,targetWidth:St/Dn,targetHeight:en/Mo})))});return ne.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const xd=zT(Pl);function lf(e,t,n){return de({[`${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 Sd=(e,t)=>t||e,r0=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=I.useContext(Ue),s=I.useContext(Eb),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=kS.includes(c);return[c,u]};var qT={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"},VT=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:qT}))},o0=h.forwardRef(VT);ne.env.NODE_ENV!=="production"&&(o0.displayName="SearchOutlined");const ya=["xxl","xl","lg","md","sm","xs"],HT=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)`}),WT=e=>{const t=e,n=[].concat(ya).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o<n.length-1){const l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function UT(){const[,e]=Jn(),t=HT(WT(e));return I.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],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const Zs=e=>e?typeof e=="function"?e():e:null;function Ed(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return h.createElement("div",{className:de("".concat(n,"-content"),i),style:a},h.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Vo={shiftX:64,adjustY:1},Ho={adjustX:1,shiftY:!0},Pn=[0,0],GT={left:{points:["cr","cl"],overflow:Ho,offset:[-4,0],targetOffset:Pn},right:{points:["cl","cr"],overflow:Ho,offset:[4,0],targetOffset:Pn},top:{points:["bc","tc"],overflow:Vo,offset:[0,-4],targetOffset:Pn},bottom:{points:["tc","bc"],overflow:Vo,offset:[0,4],targetOffset:Pn},topLeft:{points:["bl","tl"],overflow:Vo,offset:[0,-4],targetOffset:Pn},leftTop:{points:["tr","tl"],overflow:Ho,offset:[-4,0],targetOffset:Pn},topRight:{points:["br","tr"],overflow:Vo,offset:[0,-4],targetOffset:Pn},rightTop:{points:["tl","tr"],overflow:Ho,offset:[4,0],targetOffset:Pn},bottomRight:{points:["tr","br"],overflow:Vo,offset:[0,4],targetOffset:Pn},rightBottom:{points:["bl","br"],overflow:Ho,offset:[4,0],targetOffset:Pn},bottomLeft:{points:["tl","bl"],overflow:Vo,offset:[0,4],targetOffset:Pn},leftBottom:{points:["br","bl"],overflow:Ho,offset:[-4,0],targetOffset:Pn}},KT=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],XT=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,p=t.prefixCls,d=p===void 0?"rc-tooltip":p,y=t.children,_=t.onVisibleChange,x=t.afterVisibleChange,g=t.transitionName,v=t.animation,f=t.motion,m=t.placement,b=m===void 0?"right":m,C=t.align,E=C===void 0?{}:C,S=t.destroyTooltipOnHide,w=S===void 0?!1:S,O=t.defaultVisible,P=t.getTooltipContainer,A=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,L=t.id,D=t.showArrow,Q=D===void 0?!0:D,G=nt(t,KT),z=I.useRef(null);I.useImperativeHandle(n,function(){return z.current});var Y=ie({},G);"visible"in t&&(Y.popupVisible=t.visible);var ee=function(){return h.createElement(Ed,{key:"content",prefixCls:d,id:L,overlayInnerStyle:A},T)};return h.createElement(xd,Te({popupClassName:r,prefixCls:d,popup:ee,action:i,builtinPlacements:GT,popupPlacement:b,ref:z,popupAlign:E,getPopupContainer:P,onPopupVisibleChange:_,afterPopupVisibleChange:x,popupTransitionName:g,popupAnimation:v,popupMotion:f,defaultPopupVisible:O,autoDestroy:w,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:Q},Y),y)};const YT=I.forwardRef(XT);function i0(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,s=r*1/Math.sqrt(2),l=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)),p=2*o-c,d=u,y=2*o-s,_=l,x=2*o-i,g=a,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),f=r*(Math.sqrt(2)-1),m=`polygon(${f}px 100%, 50% ${f}px, ${2*o-f}px 100%, ${f}px 100%)`,b=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${p} ${d} L ${y} ${_} A ${r} ${r} 0 0 0 ${x} ${g} Z')`;return{arrowShadowWidth:v,arrowPath:b,arrowPolygon:m}}const QT=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(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 ${_e(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},a0=8;function Rd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?a0:r}}function as(e,t){return e?t:{}}function s0(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={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"},QT(e,t,o)),{"&:before":{background:t}})]},as(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,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% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),as(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,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% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),as(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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}})),as(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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 JT(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 vm={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"]}},ZT={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"]}},eP=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function tP(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(vm).forEach(c=>{const u=r&&ZT[c]||vm[c],p=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=p,eP.has(c)&&(p.autoArrow=!1),c){case"top":case"topLeft":case"topRight":p.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=s+o;break}const d=Rd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":p.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":p.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":p.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":p.offset[1]=d.arrowOffsetHorizontal*2-s;break}p.overflow=JT(c,d,t,n),a&&(p.htmlRegion="visibleFirst")}),l}const nP=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vn(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:s,padding:`${_e(e.calc(c).div(2).equal())} ${_e(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,a0)}},[`${t}-content`]:{position:"relative"}}),Cl(e,(p,d)=>{let{darkColor:y}=d;return{[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},s0(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},rP=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Rd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),i0(Ft(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),l0=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return un("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=Ft(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[nP(s),_d(r,"zoom-big-fast")]},rP,{resetStyle:!1,injectStyle:t})(e)},oP=ha.map(e=>`${e}-inverse`),iP=["success","processing","error","default","warning"];function Al(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(xe(oP),xe(ha)).includes(e):ha.includes(e)}function aP(e){return iP.includes(e)}function c0(e,t){const n=Al(t),r=de({[`${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 sP=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=h.useContext(Ue),l=s("tooltip",t),[c,u,p]=l0(l),d=c0(l,i),y=d.arrowStyle,_=Object.assign(Object.assign({},a),d.overlayStyle),x=de(u,p,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(h.createElement("div",{className:x,style:y},h.createElement("div",{className:`${l}-arrow`}),h.createElement(Ed,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:_}),o)))};var lP=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 cP=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:p,afterVisibleChange:d,destroyTooltipOnHide:y,arrow:_=!0,title:x,overlay:g,builtinPlacements:v,arrowPointAtCenter:f=!1,autoAdjustOverflow:m=!0}=e,b=!!_,[,C]=Jn(),{getPopupContainer:E,getPrefixCls:S,direction:w}=h.useContext(Ue),O=Pt("Tooltip"),P=h.useRef(null),A=()=>{var ve;(ve=P.current)===null||ve===void 0||ve.forceAlign()};h.useImperativeHandle(t,()=>{var ve;return{forceAlign:A,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),A()},nativeElement:(ve=P.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,Se]=ve;O.deprecated(!(we in e),we,Se)}),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(!_||typeof _=="boolean"||!("arrowPointAtCenter"in _),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[T,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}),D=!x&&!g&&x!==0,Q=ve=>{var we,Se;L(D?!1:ve),D||((we=e.onOpenChange)===null||we===void 0||we.call(e,ve),(Se=e.onVisibleChange)===null||Se===void 0||Se.call(e,ve))},G=h.useMemo(()=>{var ve,we;let Se=f;return typeof _=="object"&&(Se=(we=(ve=_.pointAtCenter)!==null&&ve!==void 0?ve:_.arrowPointAtCenter)!==null&&we!==void 0?we:f),v||tP({arrowPointAtCenter:Se,autoAdjustOverflow:m,arrowWidth:b?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[f,_,v,C]),z=h.useMemo(()=>x===0?x:g||x||"",[g,x]),Y=h.createElement(Ys,{space:!0},typeof z=="function"?z():z),{getPopupContainer:ee,placement:W="top",mouseEnterDelay:U=.1,mouseLeaveDelay:j=.1,overlayStyle:M,rootClassName:H}=e,J=lP(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),B=S("tooltip",o),q=S(),K=e["data-popover-inject"];let re=T;!("open"in e)&&!("visible"in e)&&D&&(re=!1);const se=h.isValidElement(u)&&!Dy(u)?u:h.createElement("span",null,u),k=se.props,F=!k.className||typeof k.className=="string"?de(k.className,i||`${B}-open`):k.className,[ae,Z,me]=l0(B,!K),pe=c0(B,l),Ce=pe.arrowStyle,Me=Object.assign(Object.assign({},c),pe.overlayStyle),ce=de(s,{[`${B}-rtl`]:w==="rtl"},pe.className,H,Z,me),[Ie,Pe]=Gy("Tooltip",J.zIndex),Oe=h.createElement(YT,Object.assign({},J,{zIndex:Ie,showArrow:b,placement:W,mouseEnterDelay:U,mouseLeaveDelay:j,prefixCls:B,overlayClassName:ce,overlayStyle:Object.assign(Object.assign({},Ce),M),getTooltipContainer:ee||a||E,ref:P,builtinPlacements:G,overlay:Y,visible:re,onVisibleChange:Q,afterVisibleChange:p??d,overlayInnerStyle:Me,arrowContent:h.createElement("span",{className:`${B}-arrow-content`}),motion:{motionName:So(q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),re?Er(se,{className:F}):se);return ae(h.createElement(El.Provider,{value:Pe},Oe))}),Ur=cP;ne.env.NODE_ENV!=="production"&&(Ur.displayName="Tooltip");Ur._InternalPanelDoNotUseOrYouWillBeFired=sP;const uP=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:p,popoverBg:d,titleBorderBottom:y,innerContentPadding:_,titlePadding:x}=e;return[{[t]:Object.assign(Object.assign({},vn(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":p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:y,padding:x},[`${t}-inner-content`]:{color:n,padding:_}})},s0(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},fP=e=>{const{componentCls:t}=e;return{[t]:ha.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},dP=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:p}=e,d=n-r,y=d/2,_=d/2-t,x=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},i0(e)),Rd({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${y}px ${x}px ${_}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${p}px ${x}px`:0})},u0=un("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ft(e,{popoverBg:t,popoverColor:n});return[uP(r),fP(r),_d(r,"zoom-big")]},dP,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var pP=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 f0=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:h.createElement(h.Fragment,null,t&&h.createElement("div",{className:`${r}-title`},t),n&&h.createElement("div",{className:`${r}-inner-content`},n))},hP=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e,c=Zs(a),u=Zs(s),p=de(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return h.createElement("div",{className:p,style:o},h.createElement("div",{className:`${n}-arrow`}),h.createElement(Ed,Object.assign({},e,{className:t,prefixCls:n}),l||h.createElement(f0,{prefixCls:n,title:c,content:u})))},mP=e=>{const{prefixCls:t,className:n}=e,r=pP(e,["prefixCls","className"]),{getPrefixCls:o}=h.useContext(Ue),i=o("popover",t),[a,s,l]=u0(i);return a(h.createElement(hP,Object.assign({},r,{prefixCls:i,hashId:s,className:de(n,l)})))};var gP=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 vP=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:p=.1,mouseLeaveDelay:d=.1,onOpenChange:y,overlayStyle:_={}}=e,x=gP(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:g}=h.useContext(Ue),v=g("popover",o),[f,m,b]=u0(v),C=g(),E=de(s,m,b),[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=(D,Q)=>{w(D,!0),y==null||y(D,Q)},P=D=>{D.keyCode===$e.ESC&&O(!1,D)},A=D=>{O(D)},T=Zs(i),L=Zs(a);return f(h.createElement(Ur,Object.assign({placement:l,trigger:c,mouseEnterDelay:p,mouseLeaveDelay:d,overlayStyle:_},x,{prefixCls:v,overlayClassName:E,ref:t,open:S,onOpenChange:A,overlay:T||L?h.createElement(f0,{prefixCls:v,title:T,content:L}):null,transitionName:So(C,"zoom-big",x.transitionName),"data-popover-inject":!0}),Er(u,{onKeyDown:D=>{var Q,G;h.isValidElement(u)&&((G=u==null?void 0:(Q=u.props).onKeyDown)===null||G===void 0||G.call(Q,D)),P(D)}})))}),Od=vP;Od._InternalPanelDoNotUseOrYouWillBeFired=mP;ne.env.NODE_ENV!=="production"&&(Od.displayName="Popover");const yP=new at("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),bP=new at("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),_P=new at("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),wP=new at("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),CP=new at("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),xP=new at("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),SP=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:p,marginXS:d,calc:y}=e,_=`${r}-scroll-number`,x=Cl(e,(g,v)=>{let{darkColor:f}=v;return{[`&${t} ${t}-color-${g}`]:{background:f,[`&:not(${t}-count)`]:{color:f},"a:hover &":{background:f}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vn(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:_e(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(u).div(2).equal(),boxShadow:`0 0 0 ${_e(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:p,height:p,fontSize:a,lineHeight:_e(p),borderRadius:y(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${_e(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${_e(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${_}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:xP,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,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:yP,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}}}),x),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:bP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:_P,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:wP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:CP,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${_}-custom-component, ${t}-count`]:{transform:"none"},[`${_}-custom-component, ${_}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[_]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${_}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${_}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${_}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${_}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},d0=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,s=e.colorBgContainer,l=e.colorError,c=e.colorErrorHover;return Ft(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},p0=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}},EP=un("Badge",e=>{const t=d0(e);return SP(t)},p0),RP=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Cl(e,(c,u)=>{let{darkColor:p}=u;return{[`&${a}-color-${c}`]:{background:p,color:p}}});return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},vn(e)),{position:"absolute",top:r,padding:`0 ${_e(e.paddingXS)}`,color:e.colorPrimary,lineHeight:_e(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:`${_e(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${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"}})}},OP=un(["Badge","Ribbon"],e=>{const t=d0(e);return RP(t)},p0),h0=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=h.useContext(Ue),p=c("ribbon",n),d=`${p}-wrapper`,[y,_,x]=OP(p,d),g=Al(o,!1),v=de(p,`${p}-placement-${s}`,{[`${p}-rtl`]:u==="rtl",[`${p}-color-${o}`]:g},t),f={},m={};return o&&!g&&(f.background=o,m.color=o),y(h.createElement("div",{className:de(d,l,_,x)},i,h.createElement("div",{className:de(v,_),style:Object.assign(Object.assign({},f),r)},h.createElement("span",{className:`${p}-text`},a),h.createElement("div",{className:`${p}-corner`,style:m}))))};ne.env.NODE_ENV!=="production"&&(h0.displayName="Ribbon");const ym=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),h.createElement("span",{style:i,className:de(`${t}-only-unit`,{current:r})},n)};function $P(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const TP=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=h.useState(o),[l,c]=h.useState(i),u=()=>{s(o),c(i)};h.useEffect(()=>{const y=setTimeout(u,1e3);return()=>clearTimeout(y)},[o]);let p,d;if(a===o||Number.isNaN(o)||Number.isNaN(a))p=[h.createElement(ym,Object.assign({},e,{key:o,current:!0}))],d={transition:"none"};else{p=[];const y=o+10,_=[];for(let v=o;v<=y;v+=1)_.push(v);const x=_.findIndex(v=>v%10===a);p=_.map((v,f)=>{const m=v%10;return h.createElement(ym,Object.assign({},e,{key:v,value:m,offset:f-x,current:f===x}))});const g=l<i?1:-1;d={transform:`translateY(${-$P(a,o,g)}00%)`}}return h.createElement("span",{className:`${t}-only`,style:d,onTransitionEnd:u},p)};var PP=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 NP=h.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,p=PP(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:d}=h.useContext(Ue),y=d("scroll-number",n),_=Object.assign(Object.assign({},p),{"data-show":l,style:a,className:de(y,o,i),title:s});let x=r;if(r&&Number(r)%1===0){const g=String(r).split("");x=h.createElement("bdi",null,g.map((v,f)=>h.createElement(TP,{prefixCls:y,count:Number(r),value:v,key:g.length-f})))}return a!=null&&a.borderColor&&(_.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?Er(u,g=>({className:de(`${y}-custom-component`,g==null?void 0:g.className,i)})):h.createElement(c,Object.assign({},_,{ref:t}),x)});var IP=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 AP=h.forwardRef((e,t)=>{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:p,color:d,count:y=null,overflowCount:_=99,dot:x=!1,size:g="default",title:v,offset:f,style:m,className:b,rootClassName:C,classNames:E,styles:S,showZero:w=!1}=e,O=IP(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:A,badge:T}=h.useContext(Ue),L=P("badge",s),[D,Q,G]=EP(L),z=y>_?`${_}+`:y,Y=z==="0"||z===0,ee=y===null||Y&&!w,W=(u!=null||d!=null)&&ee,U=x&&!Y,j=U?"":z,M=I.useMemo(()=>(j==null||j===""||Y&&!w)&&!U,[j,Y,w,U]),H=I.useRef(y);M||(H.current=y);const J=H.current,B=I.useRef(j);M||(B.current=j);const q=B.current,K=I.useRef(U);M||(K.current=U);const re=I.useMemo(()=>{if(!f)return Object.assign(Object.assign({},T==null?void 0:T.style),m);const Ce={marginTop:f[1]};return A==="rtl"?Ce.left=parseInt(f[0],10):Ce.right=-parseInt(f[0],10),Object.assign(Object.assign(Object.assign({},Ce),T==null?void 0:T.style),m)},[A,f,m,T==null?void 0:T.style]),se=v??(typeof J=="string"||typeof J=="number"?J:void 0),k=M||!p?null:h.createElement("span",{className:`${L}-status-text`},p),F=!J||typeof J!="object"?void 0:Er(J,Ce=>({style:Object.assign(Object.assign({},re),Ce.style)})),ae=Al(d,!1),Z=de(E==null?void 0:E.indicator,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.indicator,{[`${L}-status-dot`]:W,[`${L}-status-${u}`]:!!u,[`${L}-color-${d}`]:ae}),me={};d&&!ae&&(me.color=d,me.background=d);const pe=de(L,{[`${L}-status`]:W,[`${L}-not-a-wrapper`]:!c,[`${L}-rtl`]:A==="rtl"},b,C,T==null?void 0:T.className,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,Q,G);if(!c&&W){const Ce=re.color;return D(h.createElement("span",Object.assign({},O,{className:pe,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=T==null?void 0:T.styles)===null||o===void 0?void 0:o.root),re)}),h.createElement("span",{className:Z,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(i=T==null?void 0:T.styles)===null||i===void 0?void 0:i.indicator),me)}),p&&h.createElement("span",{style:{color:Ce},className:`${L}-status-text`},p)))}return D(h.createElement("span",Object.assign({ref:t},O,{className:pe,style:Object.assign(Object.assign({},(a=T==null?void 0:T.styles)===null||a===void 0?void 0:a.root),S==null?void 0:S.root)}),c,h.createElement(Zn,{visible:!M,motionName:`${L}-zoom`,motionAppear:!1,motionDeadline:1e3},Ce=>{let{className:Me}=Ce;var ce,Ie;const Pe=P("scroll-number",l),Oe=K.current,ve=de(E==null?void 0:E.indicator,(ce=T==null?void 0:T.classNames)===null||ce===void 0?void 0:ce.indicator,{[`${L}-dot`]:Oe,[`${L}-count`]:!Oe,[`${L}-count-sm`]:g==="small",[`${L}-multiple-words`]:!Oe&&q&&q.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),(Ie=T==null?void 0:T.styles)===null||Ie===void 0?void 0:Ie.indicator),re);return d&&!ae&&(we=we||{},we.background=d),h.createElement(NP,{prefixCls:Pe,show:!M,motionClassName:Me,className:ve,count:q,title:se,style:we,key:"scrollNumber"},F)}),k))}),ao=AP;ao.Ribbon=h0;ne.env.NODE_ENV!=="production"&&(ao.displayName="Badge");var MP=$e.ESC,jP=$e.TAB;function kP(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=h.useRef(!1),s=function(){if(t){var p,d;(p=n.current)===null||p===void 0||(d=p.focus)===null||d===void 0||d.call(p),r==null||r(!1)}},l=function(){var p;return(p=i.current)!==null&&p!==void 0&&p.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(p){switch(p.keyCode){case MP:s();break;case jP:{var d=!1;a.current||(d=l()),d?p.preventDefault():s();break}}};h.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Lt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var LP=I.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=I.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Yn(t,i==null?void 0:i.ref);return I.createElement(I.Fragment,null,r&&I.createElement("div",{className:"".concat(o,"-arrow")}),I.cloneElement(i,{ref:Kr(i)?a:void 0}))}),Wo={adjustX:1,adjustY:1},Uo=[0,0],FP={topLeft:{points:["bl","tl"],overflow:Wo,offset:[0,-4],targetOffset:Uo},top:{points:["bc","tc"],overflow:Wo,offset:[0,-4],targetOffset:Uo},topRight:{points:["br","tr"],overflow:Wo,offset:[0,-4],targetOffset:Uo},bottomLeft:{points:["tl","bl"],overflow:Wo,offset:[0,4],targetOffset:Uo},bottom:{points:["tc","bc"],overflow:Wo,offset:[0,4],targetOffset:Uo},bottomRight:{points:["tr","br"],overflow:Wo,offset:[0,4],targetOffset:Uo}},DP=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function BP(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,p=u===void 0?"bottomLeft":u,d=e.placements,y=d===void 0?FP:d,_=e.getPopupContainer,x=e.showAction,g=e.hideAction,v=e.overlayClassName,f=e.overlayStyle,m=e.visible,b=e.trigger,C=b===void 0?["hover"]:b,E=e.autoFocus,S=e.overlay,w=e.children,O=e.onVisibleChange,P=nt(e,DP),A=I.useState(),T=he(A,2),L=T[0],D=T[1],Q="visible"in e?m:L,G=I.useRef(null),z=I.useRef(null),Y=I.useRef(null);I.useImperativeHandle(t,function(){return G.current});var ee=function(K){D(K),O==null||O(K)};kP({visible:Q,triggerRef:Y,onVisibleChange:ee,autoFocus:E,overlayRef:z});var W=function(K){var re=e.onOverlayClick;D(!1),re&&re(K)},U=function(){return I.createElement(LP,{ref:z,overlay:S,prefixCls:a,arrow:o})},j=function(){return typeof S=="function"?U:U()},M=function(){var K=e.minOverlayWidthMatchTrigger,re=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?K:!re},H=function(){var K=e.openClassName;return K!==void 0?K:"".concat(a,"-open")},J=I.cloneElement(w,{className:de((n=w.props)===null||n===void 0?void 0:n.className,Q&&H()),ref:Kr(w)?Yn(Y,w.ref):void 0}),B=g;return!B&&C.indexOf("contextMenu")!==-1&&(B=["click"]),I.createElement(xd,Te({builtinPlacements:y},P,{prefixCls:a,ref:G,popupClassName:de(v,oe({},"".concat(a,"-show-arrow"),o)),popupStyle:f,action:C,showAction:x,hideAction:B,popupPlacement:p,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:Q,stretch:M()?"minWidth":"",popup:j(),onPopupVisibleChange:ee,onPopupClick:W,getPopupContainer:_}),J)}const zP=I.forwardRef(BP);var m0=h.createContext(null);function g0(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function v0(e){var t=h.useContext(m0);return g0(t,e)}var qP=["children","locked"],Xn=h.createContext(null);function VP(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 ba(e){var t=e.children,n=e.locked,r=nt(e,qP),o=h.useContext(Xn),i=ml(function(){return VP(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!la(a[1],s[1],!0))});return h.createElement(Xn.Provider,{value:i},t)}var HP=[],y0=h.createContext(null);function Ml(){return h.useContext(y0)}var b0=h.createContext(HP);function ja(e){var t=h.useContext(b0);return h.useMemo(function(){return e!==void 0?[].concat(xe(t),[e]):t},[t,e])}var _0=h.createContext(null),$d=h.createContext({});function bm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Tl(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 WP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=xe(e.querySelectorAll("*")).filter(function(r){return bm(r,t)});return bm(e,t)&&n.unshift(e),n}var cf=$e.LEFT,uf=$e.RIGHT,ff=$e.UP,Ns=$e.DOWN,Is=$e.ENTER,w0=$e.ESC,Fi=$e.HOME,Di=$e.END,_m=[ff,Ns,cf,uf];function UP(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",p="parent";if(e==="inline"&&r===Is)return{inlineTrigger:!0};var d=(o={},oe(o,ff,l),oe(o,Ns,c),o),y=(i={},oe(i,cf,n?c:l),oe(i,uf,n?l:c),oe(i,Ns,u),oe(i,Is,u),i),_=(a={},oe(a,ff,l),oe(a,Ns,c),oe(a,Is,u),oe(a,w0,p),oe(a,cf,n?u:p),oe(a,uf,n?p:u),a),x={inline:d,horizontal:y,vertical:_,inlineSub:d,horizontalSub:_,verticalSub:_},g=(s=x["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(g){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case p:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function GP(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function KP(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Td(e,t){var n=WP(e,!0);return n.filter(function(r){return t.has(r)})}function wm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Td(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var df=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(g0(n,a),"']"));s&&(r.add(s),i.set(s,a),o.set(a,s))}),{elements:r,key2element:o,element2key:i}};function XP(e,t,n,r,o,i,a,s,l,c){var u=h.useRef(),p=h.useRef();p.current=t;var d=function(){Lt.cancel(u.current)};return h.useEffect(function(){return function(){d()}},[]),function(y){var _=y.which;if([].concat(_m,[Is,w0,Fi,Di]).includes(_)){var x=i(),g=df(x,r),v=g,f=v.elements,m=v.key2element,b=v.element2key,C=m.get(t),E=KP(C,f),S=b.get(E),w=UP(e,a(S,!0).length===1,n,_);if(!w&&_!==Fi&&_!==Di)return;(_m.includes(_)||[Fi,Di].includes(_))&&y.preventDefault();var O=function(z){if(z){var Y=z,ee=z.querySelector("a");ee!=null&&ee.getAttribute("href")&&(Y=ee);var W=b.get(z);s(W),d(),u.current=Lt(function(){p.current===W&&Y.focus()})}};if([Fi,Di].includes(_)||w.sibling||!E){var P;!E||e==="inline"?P=o.current:P=GP(E);var A,T=Td(P,f);_===Fi?A=T[0]:_===Di?A=T[T.length-1]:A=wm(P,f,E,w.offset),O(A)}else if(w.inlineTrigger)l(S);else if(w.offset>0)l(S,!0),d(),u.current=Lt(function(){g=df(x,r);var G=E.getAttribute("aria-controls"),z=document.getElementById(G),Y=wm(z,g.elements);O(Y)},5);else if(w.offset<0){var L=a(S,!0),D=L[L.length-2],Q=m.get(D);l(D,!1),O(Q)}}c==null||c(y)}}function YP(e){Promise.resolve().then(e)}var Pd="__RC_UTIL_PATH_SPLIT__",Cm=function(t){return t.join(Pd)},QP=function(t){return t.split(Pd)},pf="rc-menu-more";function JP(){var e=h.useState({}),t=he(e,2),n=t[1],r=I.useRef(new Map),o=I.useRef(new Map),i=h.useState([]),a=he(i,2),s=a[0],l=a[1],c=I.useRef(0),u=I.useRef(!1),p=function(){u.current||n({})},d=I.useCallback(function(m,b){ne.env.NODE_ENV!=="production"&&pt(!r.current.has(m),"Duplicated key '".concat(m,"' used in Menu by path [").concat(b.join(" > "),"]"));var C=Cm(b);o.current.set(C,m),r.current.set(m,C),c.current+=1;var E=c.current;YP(function(){E===c.current&&p()})},[]),y=I.useCallback(function(m,b){var C=Cm(b);o.current.delete(C),r.current.delete(m)},[]),_=I.useCallback(function(m){l(m)},[]),x=I.useCallback(function(m,b){var C=r.current.get(m)||"",E=QP(C);return b&&s.includes(E[0])&&E.unshift(pf),E},[s]),g=I.useCallback(function(m,b){return m.filter(function(C){return C!==void 0}).some(function(C){var E=x(C,!0);return E.includes(b)})},[x]),v=function(){var b=xe(r.current.keys());return s.length&&b.push(pf),b},f=I.useCallback(function(m){var b="".concat(r.current.get(m)).concat(Pd),C=new Set;return xe(o.current.keys()).forEach(function(E){E.startsWith(b)&&C.add(o.current.get(E))}),C},[]);return h.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:y,refreshOverflowKeys:_,isSubPathKey:g,getKeyPath:x,getKeys:v,getSubPathKeys:f}}function Hi(e){var t=h.useRef(e);t.current=e;var n=h.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 ZP=Math.random().toFixed(5).toString().slice(2),xm=0;function eN(e){var t=Kn(e,{value:e}),n=he(t,2),r=n[0],o=n[1];return h.useEffect(function(){xm+=1;var i=ne.env.NODE_ENV==="test"?"test":"".concat(ZP,"-").concat(xm);o("rc-menu-uuid-".concat(i))},[]),r}function C0(e,t,n,r){var o=h.useContext(Xn),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e)}),l}function x0(e){var t=h.useContext(Xn),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 S0(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=h.createElement(t,ie({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var tN=["item"];function el(e){var t=e.item,n=nt(e,tN);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 nN=["title","attribute","elementRef"],rN=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],oN=["active"],iN=function(e){Xr(n,e);var t=Yr(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,s=o.elementRef,l=nt(o,nN),c=Qn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return pt(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(Sr.Item,Te({},a,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(h.Component),aN=h.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey,a=e.warnKey,s=e.disabled,l=e.itemIcon,c=e.children,u=e.role,p=e.onMouseEnter,d=e.onMouseLeave,y=e.onClick,_=e.onKeyDown,x=e.onFocus,g=nt(e,rN),v=v0(i),f=h.useContext(Xn),m=f.prefixCls,b=f.onItemClick,C=f.disabled,E=f.overflowDisabled,S=f.itemIcon,w=f.selectedKeys,O=f.onActive,P=h.useContext($d),A=P._internalRenderMenuItem,T="".concat(m,"-item"),L=h.useRef(),D=h.useRef(),Q=C||s,G=bi(t,D),z=ja(i);ne.env.NODE_ENV!=="production"&&a&&pt(!1,"MenuItem should not leave undefined `key`.");var Y=function(k){return{key:i,keyPath:xe(z).reverse(),item:L.current,domEvent:k}},ee=l||S,W=C0(i,Q,p,d),U=W.active,j=nt(W,oN),M=w.includes(i),H=x0(z.length),J=function(k){if(!Q){var F=Y(k);y==null||y(el(F)),b(F)}},B=function(k){if(_==null||_(k),k.which===$e.ENTER){var F=Y(k);y==null||y(el(F)),b(F)}},q=function(k){O(i),x==null||x(k)},K={};e.role==="option"&&(K["aria-selected"]=M);var re=h.createElement(iN,Te({ref:L,elementRef:G,role:u===null?"none":u||"menuitem",tabIndex:s?null:-1,"data-menu-id":E&&v?null:v},g,j,K,{component:"li","aria-disabled":s,style:ie(ie({},H),r),className:de(T,(n={},oe(n,"".concat(T,"-active"),U),oe(n,"".concat(T,"-selected"),M),oe(n,"".concat(T,"-disabled"),Q),n),o),onClick:J,onKeyDown:B,onFocus:q}),c,h.createElement(S0,{props:ie(ie({},e),{},{isSelected:M}),icon:ee}));return A&&(re=A(re,e,{selected:M})),re});function sN(e,t){var n=e.eventKey,r=Ml(),o=ja(n);return h.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:h.createElement(aN,Te({},e,{ref:t}))}const jl=h.forwardRef(sN);var lN=["className","children"],cN=function(t,n){var r=t.className,o=t.children,i=nt(t,lN),a=h.useContext(Xn),s=a.prefixCls,l=a.mode,c=a.rtl;return h.createElement("ul",Te({className:de(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},Nd=h.forwardRef(cN);Nd.displayName="SubMenuList";function Id(e,t){return wo(e).map(function(n,r){if(h.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(xe(t),[r]).join("-")));var c={key:s,eventKey:s};return ne.env.NODE_ENV!=="production"&&l&&(c.warnKey=!0),h.cloneElement(n,c)}return n})}var sn={adjustX:1,adjustY:1},uN={topLeft:{points:["bl","tl"],overflow:sn},topRight:{points:["br","tr"],overflow:sn},bottomLeft:{points:["tl","bl"],overflow:sn},bottomRight:{points:["tr","br"],overflow:sn},leftTop:{points:["tr","tl"],overflow:sn},leftBottom:{points:["br","bl"],overflow:sn},rightTop:{points:["tl","tr"],overflow:sn},rightBottom:{points:["bl","br"],overflow:sn}},fN={topLeft:{points:["bl","tl"],overflow:sn},topRight:{points:["br","tr"],overflow:sn},bottomLeft:{points:["tl","bl"],overflow:sn},bottomRight:{points:["tr","br"],overflow:sn},rightTop:{points:["tr","tl"],overflow:sn},rightBottom:{points:["br","bl"],overflow:sn},leftTop:{points:["tl","tr"],overflow:sn},leftBottom:{points:["bl","br"],overflow:sn}};function E0(e,t,n){if(t)return t;if(n)return n[e]||n.other}var dN={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function pN(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,p=h.useContext(Xn),d=p.getPopupContainer,y=p.rtl,_=p.subMenuOpenDelay,x=p.subMenuCloseDelay,g=p.builtinPlacements,v=p.triggerSubMenuAction,f=p.forceSubMenuRender,m=p.rootClassName,b=p.motion,C=p.defaultMotions,E=h.useState(!1),S=he(E,2),w=S[0],O=S[1],P=ie(y?ie({},fN):ie({},uN),g),A=dN[c],T=E0(c,b,C),L=h.useRef(T);c!=="inline"&&(L.current=T);var D=ie(ie({},L.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Q=h.useRef();return h.useEffect(function(){return Q.current=Lt(function(){O(n)}),function(){Lt.cancel(Q.current)}},[n]),h.createElement(xd,{prefixCls:t,popupClassName:de("".concat(t,"-popup"),oe({},"".concat(t,"-rtl"),y),a,m),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:P,popupPlacement:A,popupVisible:w,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:l?[]:[v],mouseEnterDelay:_,mouseLeaveDelay:x,onPopupVisibleChange:u,forceRender:f,popupMotion:D,fresh:!0},r)}function hN(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=h.useContext(Xn),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,p=a.mode,d=h.useRef(!1);d.current=p===i;var y=h.useState(!d.current),_=he(y,2),x=_[0],g=_[1],v=d.current?n:!1;h.useEffect(function(){d.current&&g(!1)},[p]);var f=ie({},E0(i,c,u));r.length>1&&(f.motionAppear=!1);var m=f.onVisibleChanged;return f.onVisibleChanged=function(b){return!d.current&&!b&&g(!0),m==null?void 0:m(b)},x?null:h.createElement(ba,{mode:i,locked:!d.current},h.createElement(Zn,Te({visible:v},f,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(b){var C=b.className,E=b.style;return h.createElement(Nd,{id:t,className:C,style:E},o)}))}var mN=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gN=["active"],vN=h.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.title,a=e.eventKey,s=e.warnKey,l=e.disabled,c=e.internalPopupClose,u=e.children,p=e.itemIcon,d=e.expandIcon,y=e.popupClassName,_=e.popupOffset,x=e.popupStyle,g=e.onClick,v=e.onMouseEnter,f=e.onMouseLeave,m=e.onTitleClick,b=e.onTitleMouseEnter,C=e.onTitleMouseLeave,E=nt(e,mN),S=v0(a),w=h.useContext(Xn),O=w.prefixCls,P=w.mode,A=w.openKeys,T=w.disabled,L=w.overflowDisabled,D=w.activeKey,Q=w.selectedKeys,G=w.itemIcon,z=w.expandIcon,Y=w.onItemClick,ee=w.onOpenChange,W=w.onActive,U=h.useContext($d),j=U._internalRenderSubMenuItem,M=h.useContext(_0),H=M.isSubPathKey,J=ja(),B="".concat(O,"-submenu"),q=T||l,K=h.useRef(),re=h.useRef();ne.env.NODE_ENV!=="production"&&s&&pt(!1,"SubMenu should not leave undefined `key`.");var se=p??G,k=d??z,F=A.includes(a),ae=!L&&F,Z=H(Q,a),me=C0(a,q,b,C),pe=me.active,Ce=nt(me,gN),Me=h.useState(!1),ce=he(Me,2),Ie=ce[0],Pe=ce[1],Oe=function(Ye){q||Pe(Ye)},ve=function(Ye){Oe(!0),v==null||v({key:a,domEvent:Ye})},we=function(Ye){Oe(!1),f==null||f({key:a,domEvent:Ye})},Se=h.useMemo(function(){return pe||(P!=="inline"?Ie||H([D],a):!1)},[P,pe,D,Ie,a,H]),Ee=x0(J.length),Ve=function(Ye){q||(m==null||m({key:a,domEvent:Ye}),P==="inline"&&ee(a,!F))},He=Hi(function(rt){g==null||g(el(rt)),Y(rt)}),Xe=function(Ye){P!=="inline"&&ee(a,Ye)},ft=function(){W(a)},mt=S&&"".concat(S,"-popup"),ct=h.createElement("div",Te({role:"menuitem",style:Ee,className:"".concat(B,"-title"),tabIndex:q?null:-1,ref:K,title:typeof i=="string"?i:null,"data-menu-id":L&&S?null:S,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":mt,"aria-disabled":q,onClick:Ve,onFocus:ft},Ce),i,h.createElement(S0,{icon:P!=="horizontal"?k:void 0,props:ie(ie({},e),{},{isOpen:ae,isSubMenu:!0})},h.createElement("i",{className:"".concat(B,"-arrow")}))),ze=h.useRef(P);if(P!=="inline"&&J.length>1?ze.current="vertical":ze.current=P,!L){var Ne=ze.current;ct=h.createElement(pN,{mode:Ne,prefixCls:B,visible:!c&&ae&&P!=="inline",popupClassName:y,popupOffset:_,popupStyle:x,popup:h.createElement(ba,{mode:Ne==="horizontal"?"vertical":Ne},h.createElement(Nd,{id:mt,ref:re},u)),disabled:q,onVisibleChange:Xe},ct)}var st=h.createElement(Sr.Item,Te({ref:t,role:"none"},E,{component:"li",style:r,className:de(B,"".concat(B,"-").concat(P),o,(n={},oe(n,"".concat(B,"-open"),ae),oe(n,"".concat(B,"-active"),Se),oe(n,"".concat(B,"-selected"),Z),oe(n,"".concat(B,"-disabled"),q),n)),onMouseEnter:ve,onMouseLeave:we}),ct,!L&&h.createElement(hN,{id:mt,open:ae,keyPath:J},u));return j&&(st=j(st,e,{selected:Z,active:Se,open:ae,disabled:q})),h.createElement(ba,{onItemClick:He,mode:P==="horizontal"?"vertical":P,itemIcon:se,expandIcon:k},st)}),kl=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ja(n),i=Id(r,o),a=Ml();h.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var s;return a?s=i:s=h.createElement(vN,Te({ref:t},e),i),h.createElement(b0.Provider,{value:o},s)});ne.env.NODE_ENV!=="production"&&(kl.displayName="SubMenu");function R0(e){var t=e.className,n=e.style,r=h.useContext(Xn),o=r.prefixCls,i=Ml();return i?null:h.createElement("li",{role:"separator",className:de("".concat(o,"-item-divider"),t),style:n})}var yN=["className","title","eventKey","children"],bN=h.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=nt(e,yN),a=h.useContext(Xn),s=a.prefixCls,l="".concat(s,"-item-group");return h.createElement("li",Te({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:de(l,n)}),h.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),h.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),Ad=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ja(n),i=Id(r,o),a=Ml();return a?i:h.createElement(bN,Te({ref:t},Qn(e,["warnKey"])),i)});ne.env.NODE_ENV!=="production"&&(Ad.displayName="MenuItemGroup");var _N=["label","children","key","type"];function hf(e,t){var n=t.item,r=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(a,s){if(a&&Be(a)==="object"){var l=a,c=l.label,u=l.children,p=l.key,d=l.type,y=nt(l,_N),_=p??"tmp-".concat(s);return u||d==="group"?d==="group"?h.createElement(r,Te({key:_},y,{title:c}),hf(u,t)):h.createElement(o,Te({key:_},y,{title:c}),hf(u,t)):d==="divider"?h.createElement(i,Te({key:_},y)):h.createElement(n,Te({key:_},y),c)}return null}).filter(function(a){return a})}function Sm(e,t,n,r){var o=e,i=ie({divider:R0,item:jl,group:Ad,submenu:kl},r);return t&&(o=hf(t,i)),Id(o,n)}var wN=["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"],ro=[],CN=h.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,p=u===void 0?0:u,d=o.items,y=o.children,_=o.direction,x=o.id,g=o.mode,v=g===void 0?"vertical":g,f=o.inlineCollapsed,m=o.disabled,b=o.disabledOverflow,C=o.subMenuOpenDelay,E=C===void 0?.1:C,S=o.subMenuCloseDelay,w=S===void 0?.1:S,O=o.forceSubMenuRender,P=o.defaultOpenKeys,A=o.openKeys,T=o.activeKey,L=o.defaultActiveFirst,D=o.selectable,Q=D===void 0?!0:D,G=o.multiple,z=G===void 0?!1:G,Y=o.defaultSelectedKeys,ee=o.selectedKeys,W=o.onSelect,U=o.onDeselect,j=o.inlineIndent,M=j===void 0?24:j,H=o.motion,J=o.defaultMotions,B=o.triggerSubMenuAction,q=B===void 0?"hover":B,K=o.builtinPlacements,re=o.itemIcon,se=o.expandIcon,k=o.overflowedIndicator,F=k===void 0?"...":k,ae=o.overflowedIndicatorPopupClassName,Z=o.getPopupContainer,me=o.onClick,pe=o.onOpenChange,Ce=o.onKeyDown,Me=o.openAnimation,ce=o.openTransitionName,Ie=o._internalRenderMenuItem,Pe=o._internalRenderSubMenuItem,Oe=o._internalComponents,ve=nt(o,wN),we=h.useMemo(function(){return[Sm(y,d,ro,Oe),Sm(y,d,ro,{})]},[y,d,Oe]),Se=he(we,2),Ee=Se[0],Ve=Se[1],He=h.useState(!1),Xe=he(He,2),ft=Xe[0],mt=Xe[1],ct=h.useRef(),ze=eN(x),Ne=_==="rtl";ne.env.NODE_ENV!=="production"&&pt(!Me&&!ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var st=Kn(P,{value:A,postState:function(ut){return ut||ro}}),rt=he(st,2),Ye=rt[0],Ot=rt[1],Dt=function(ut){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Qt(){Ot(ut),pe==null||pe(ut)}wt?_o.flushSync(Qt):Qt()},Ut=h.useState(Ye),gt=he(Ut,2),$t=gt[0],Qe=gt[1],lt=h.useRef(!1),Tt=h.useMemo(function(){return(v==="inline"||v==="vertical")&&f?["vertical",f]:[v,!1]},[v,f]),Ge=he(Tt,2),ke=Ge[0],N=Ge[1],R=ke==="inline",$=h.useState(ke),V=he($,2),te=V[0],le=V[1],ge=h.useState(N),Fe=he(ge,2),Je=Fe[0],et=Fe[1];h.useEffect(function(){le(ke),et(N),lt.current&&(R?Ot($t):Dt(ro))},[ke,N]);var X=h.useState(0),ue=he(X,2),ye=ue[0],Re=ue[1],Le=ye>=Ee.length-1||te!=="horizontal"||b;h.useEffect(function(){R&&Qe(Ye)},[Ye]),h.useEffect(function(){return lt.current=!0,function(){lt.current=!1}},[]);var je=JP(),De=je.registerPath,qe=je.unregisterPath,_t=je.refreshOverflowKeys,dt=je.isSubPathKey,Ke=je.getKeyPath,Mt=je.getKeys,hn=je.getSubPathKeys,Gt=h.useMemo(function(){return{registerPath:De,unregisterPath:qe}},[De,qe]),At=h.useMemo(function(){return{isSubPathKey:dt}},[dt]);h.useEffect(function(){_t(Le?ro:Ee.slice(ye+1).map(function(St){return St.key}))},[ye,Le]);var fr=Kn(T||L&&((n=Ee[0])===null||n===void 0?void 0:n.key),{value:T}),dr=he(fr,2),Rn=dr[0],Dn=dr[1],Mo=Hi(function(St){Dn(St)}),Pr=Hi(function(){Dn(void 0)});I.useImperativeHandle(t,function(){return{list:ct.current,focus:function(ut){var wt,Qt=Mt(),en=df(Qt,ze),Ir=en.elements,Ar=en.key2element,Ni=en.element2key,ko=Td(ct.current,Ir),Mr=Rn??(ko[0]?Ni.get(ko[0]):(wt=Ee.find(function(mn){return!mn.props.disabled}))===null||wt===void 0?void 0:wt.key),an=Ar.get(Mr);if(Mr&&an){var to;an==null||(to=an.focus)===null||to===void 0||to.call(an,ut)}}}});var Bn=Kn(Y||[],{value:ee,postState:function(ut){return Array.isArray(ut)?ut:ut==null?ro:[ut]}}),Zr=he(Bn,2),pr=Zr[0],On=Zr[1],yn=function(ut){if(Q){var wt=ut.key,Qt=pr.includes(wt),en;z?Qt?en=pr.filter(function(Ar){return Ar!==wt}):en=[].concat(xe(pr),[wt]):en=[wt],On(en);var Ir=ie(ie({},ut),{},{selectedKeys:en});Qt?U==null||U(Ir):W==null||W(Ir)}!z&&Ye.length&&te!=="inline"&&Dt(ro)},Nr=Hi(function(St){me==null||me(el(St)),yn(St)}),hr=Hi(function(St,ut){var wt=Ye.filter(function(en){return en!==St});if(ut)wt.push(St);else if(te!=="inline"){var Qt=hn(St);wt=wt.filter(function(en){return!Qt.has(en)})}la(Ye,wt,!0)||Dt(wt,!0)}),$n=function(ut,wt){var Qt=wt??!Ye.includes(ut);hr(ut,Qt)},Ti=XP(te,Rn,Ne,ze,ct,Mt,Ke,Dn,$n,Ce);h.useEffect(function(){mt(!0)},[]);var jo=h.useMemo(function(){return{_internalRenderMenuItem:Ie,_internalRenderSubMenuItem:Pe}},[Ie,Pe]),Pi=te!=="horizontal"||b?Ee:Ee.map(function(St,ut){return h.createElement(ba,{key:St.key,overflowDisabled:ut>ye},St)}),eo=h.createElement(Sr,Te({id:x,ref:ct,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:jl,className:de(a,"".concat(a,"-root"),"".concat(a,"-").concat(te),c,(r={},oe(r,"".concat(a,"-inline-collapsed"),Je),oe(r,"".concat(a,"-rtl"),Ne),r),s),dir:_,style:l,role:"menu",tabIndex:p,data:Pi,renderRawItem:function(ut){return ut},renderRawRest:function(ut){var wt=ut.length,Qt=wt?Ee.slice(-wt):null;return h.createElement(kl,{eventKey:pf,title:F,disabled:Le,internalPopupClose:wt===0,popupClassName:ae},Qt)},maxCount:te!=="horizontal"||b?Sr.INVALIDATE:Sr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ut){Re(ut)},onKeyDown:Ti},ve));return h.createElement($d.Provider,{value:jo},h.createElement(m0.Provider,{value:ze},h.createElement(ba,{prefixCls:a,rootClassName:s,mode:te,openKeys:Ye,rtl:Ne,disabled:m,motion:ft?H:null,defaultMotions:ft?J:null,activeKey:Rn,onActive:Mo,onInactive:Pr,selectedKeys:pr,inlineIndent:M,subMenuOpenDelay:E,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:K,triggerSubMenuAction:q,getPopupContainer:Z,itemIcon:re,expandIcon:se,onItemClick:Nr,onOpenChange:hr},h.createElement(_0.Provider,{value:At},eo),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(y0.Provider,{value:Gt},Ve)))))}),ka=CN;ka.Item=jl;ka.SubMenu=kl;ka.ItemGroup=Ad;ka.Divider=R0;var xN={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"},SN=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:xN}))},O0=h.forwardRef(SN);ne.env.NODE_ENV!=="production"&&(O0.displayName="EllipsisOutlined");function $0(e){return Ft(e,{inputAffixPadding:e.paddingXXS})}const T0=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:p,colorFillAlter:d,colorPrimaryHover:y,colorPrimary:_,controlOutlineWidth:x,controlOutline:g,colorErrorOutline:v,colorWarningOutline:f,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-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:p-o,addonBg:d,activeBorderColor:_,hoverBorderColor:y,activeShadow:`0 0 0 ${x}px ${g}`,errorActiveShadow:`0 0 0 ${x}px ${v}`,warningActiveShadow:`0 0 0 ${x}px ${f}`,hoverBg:m,activeBg:m,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},EN=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Md=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({},EN(Ft(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),P0=(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}}),Em=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},P0(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),RN=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P0(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Md(e))}),Em(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Em(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Rm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),ON=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Rm(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Rm(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Md(e))}})}),$N=(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)}},N0=(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}}),Om=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},N0(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),TN=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},N0(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Md(e))}),Om(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Om(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),$m=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),PN=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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},$m(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),$m(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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),NN=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),I0=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${_e(t)} ${_e(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},A0=e=>({padding:`${_e(e.paddingBlockSM)} ${_e(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),M0=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${_e(e.paddingBlock)} ${_e(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},NN(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({},I0(e)),"&-sm":Object.assign({},A0(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),IN=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({},I0(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},A0(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 ${_e(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${_e(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${_e(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:`${_e(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${_e(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"},yy()),{[`${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}}}})}},AN=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({},vn(e)),M0(e)),RN(e)),TN(e)),$N(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"}})}},MN=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 ${_e(e.inputAffixPadding)}`}}}},jN=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},M0(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}}}),MN(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},kN=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},vn(e)),IN(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}}},ON(e)),PN(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}}})})}},LN=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}}}}},FN=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}}}}}},DN=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},jd=un("Input",e=>{const t=Ft(e,$0(e));return[AN(t),FN(t),jN(t),kN(t),LN(t),DN(t),sb(t)]},T0,{resetFont:!1});var BN={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"},zN=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:BN}))},j0=h.forwardRef(zN);ne.env.NODE_ENV!=="production"&&(j0.displayName="PlusOutlined");const Ll=I.createContext(null);var qN=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,s=a.size,l=a.align,c=l===void 0?"center":l,u=I.useState(),p=he(u,2),d=p[0],y=p[1],_=I.useRef(),x=I.useCallback(function(v){return typeof s=="function"?s(v):typeof s=="number"?s:v},[s]);function g(){Lt.cancel(_.current)}return I.useEffect(function(){var v={};if(n)if(r){v.width=x(n.width);var f=o?"right":"left";c==="start"&&(v[f]=n[f]),c==="center"&&(v[f]=n[f]+n.width/2,v.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(v[f]=n[f]+n.width,v.transform="translateX(-100%)")}else v.height=x(n.height),c==="start"&&(v.top=n.top),c==="center"&&(v.top=n.top+n.height/2,v.transform="translateY(-50%)"),c==="end"&&(v.top=n.top+n.height,v.transform="translateY(-100%)");return g(),_.current=Lt(function(){y(v)}),g},[n,r,o,c,x]),{style:d}},Tm={width:0,height:0,left:0,top:0};function VN(e,t,n){return I.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Tm,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||Tm}var p=o.get(l)||ie({},c);p.right=a-p.left-p.width,o.set(l,p)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Pm(e,t){var n=h.useRef(e),r=h.useState({}),o=he(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({})}return[n.current,a]}var HN=.1,Nm=.01,As=20,Im=Math.pow(.995,As);function WN(e,t){var n=I.useState(),r=he(n,2),o=r[0],i=r[1],a=I.useState(0),s=he(a,2),l=s[0],c=s[1],u=I.useState(0),p=he(u,2),d=p[0],y=p[1],_=I.useState(),x=he(_,2),g=x[0],v=x[1],f=I.useRef();function m(O){var P=O.touches[0],A=P.screenX,T=P.screenY;i({x:A,y:T}),window.clearInterval(f.current)}function b(O){if(o){O.preventDefault();var P=O.touches[0],A=P.screenX,T=P.screenY;i({x:A,y:T});var L=A-o.x,D=T-o.y;t(L,D);var Q=Date.now();c(Q),y(Q-l),v({x:L,y:D})}}function C(){if(o&&(i(null),v(null),g)){var O=g.x/d,P=g.y/d,A=Math.abs(O),T=Math.abs(P);if(Math.max(A,T)<HN)return;var L=O,D=P;f.current=window.setInterval(function(){if(Math.abs(L)<Nm&&Math.abs(D)<Nm){window.clearInterval(f.current);return}L*=Im,D*=Im,t(L*As,D*As)},As)}}var E=I.useRef();function S(O){var P=O.deltaX,A=O.deltaY,T=0,L=Math.abs(P),D=Math.abs(A);L===D?T=E.current==="x"?P:A:L>D?(T=P,E.current="x"):(T=A,E.current="y"),t(-T,-T)&&O.preventDefault()}var w=I.useRef(null);w.current={onTouchStart:m,onTouchMove:b,onTouchEnd:C,onWheel:S},h.useEffect(function(){function O(L){w.current.onTouchStart(L)}function P(L){w.current.onTouchMove(L)}function A(L){w.current.onTouchEnd(L)}function T(L){w.current.onWheel(L)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",A,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",T,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",A)}},[])}function k0(e){var t=I.useState(0),n=he(t,2),r=n[0],o=n[1],i=I.useRef(0),a=I.useRef();return a.current=e,yu(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function UN(e){var t=I.useRef([]),n=I.useState({}),r=he(n,2),o=r[1],i=I.useRef(typeof e=="function"?e():e),a=k0(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,o({})});function s(l){t.current.push(l),a()}return[i.current,s]}var Am={width:0,height:0,left:0,top:0,right:0};function GN(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,p,d;return["top","bottom"].includes(l)?(u="width",p=c?"right":"left",d=Math.abs(n)):(u="height",p="top",d=-n),I.useMemo(function(){if(!s.length)return[0,0];for(var y=s.length,_=y,x=0;x<y;x+=1){var g=e.get(s[x].key)||Am;if(g[p]+g[u]>d+t){_=x-1;break}}for(var v=0,f=y-1;f>=0;f-=1){var m=e.get(s[f].key)||Am;if(m[p]<d){v=f+1;break}}return v>=_?[0,0]:[v,_]},[e,t,r,o,i,d,l,s.map(function(y){return y.key}).join("_"),c])}function Mm(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var KN="TABS_DQ";function L0(e){return String(e).replace(/"/g,KN)}function F0(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var D0=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:h.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(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),mf=h.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Be(o)==="object"&&!h.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?h.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});ne.env.NODE_ENV!=="production"&&(mf.displayName="ExtraContent");var XN=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,p=e.editable,d=e.tabBarGutter,y=e.rtl,_=e.removeAriaLabel,x=e.onTabClick,g=e.getPopupContainer,v=e.popupClassName,f=I.useState(!1),m=he(f,2),b=m[0],C=m[1],E=I.useState(null),S=he(E,2),w=S[0],O=S[1],P=l.icon,A=P===void 0?"More":P,T="".concat(r,"-more-popup"),L="".concat(n,"-dropdown"),D=w!==null?"".concat(T,"-").concat(w):null,Q=i==null?void 0:i.dropdownAriaLabel;function G(M,H){M.preventDefault(),M.stopPropagation(),p.onEdit("remove",{key:H,event:M})}var z=h.createElement(ka,{onClick:function(H){var J=H.key,B=H.domEvent;x(J,B),C(!1)},prefixCls:"".concat(L,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[w],"aria-label":Q!==void 0?Q:"expanded dropdown"},o.map(function(M){var H=M.closable,J=M.disabled,B=M.closeIcon,q=M.key,K=M.label,re=F0(H,B,p,J);return h.createElement(jl,{key:q,id:"".concat(T,"-").concat(q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(q),disabled:J},h.createElement("span",null,K),re&&h.createElement("button",{type:"button","aria-label":_||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(k){k.stopPropagation(),G(k,q)}},B||p.removeIcon||"×"))}));function Y(M){for(var H=o.filter(function(re){return!re.disabled}),J=H.findIndex(function(re){return re.key===w})||0,B=H.length,q=0;q<B;q+=1){J=(J+M+B)%B;var K=H[J];if(!K.disabled){O(K.key);return}}}function ee(M){var H=M.which;if(!b){[$e.DOWN,$e.SPACE,$e.ENTER].includes(H)&&(C(!0),M.preventDefault());return}switch(H){case $e.UP:Y(-1),M.preventDefault();break;case $e.DOWN:Y(1),M.preventDefault();break;case $e.ESC:C(!1);break;case $e.SPACE:case $e.ENTER:w!==null&&x(w,M);break}}I.useEffect(function(){var M=document.getElementById(D);M&&M.scrollIntoView&&M.scrollIntoView(!1)},[w]),I.useEffect(function(){b||O(null)},[b]);var W=oe({},y?"marginRight":"marginLeft",d);o.length||(W.visibility="hidden",W.order=1);var U=de(oe({},"".concat(L,"-rtl"),y)),j=a?null:h.createElement(zP,Te({prefixCls:L,overlay:z,visible:o.length?b:!1,onVisibleChange:C,overlayClassName:de(U,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),h.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:W,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":T,id:"".concat(r,"-more"),"aria-expanded":b,onKeyDown:ee},A));return h.createElement("div",{className:de("".concat(n,"-nav-operations"),u),style:c,ref:t},j,h.createElement(D0,{prefixCls:n,locale:i,editable:p}))});const YN=h.memo(XN,function(e,t){return t.tabMoving});var QN=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,p=t.closable,d=t.renderWrapper,y=t.removeAriaLabel,_=t.editable,x=t.onClick,g=t.onFocus,v=t.style,f="".concat(n,"-tab"),m=F0(p,c,_,l);function b(w){l||x(w)}function C(w){w.preventDefault(),w.stopPropagation(),_.onEdit("remove",{key:a,event:w})}var E=h.useMemo(function(){return u&&typeof s=="string"?h.createElement("span",null,s):s},[s,u]),S=h.createElement("div",{key:a,"data-node-key":L0(a),className:de(f,oe(oe(oe({},"".concat(f,"-with-remove"),m),"".concat(f,"-active"),o),"".concat(f,"-disabled"),l)),style:v,onClick:b},h.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(f,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(O){O.stopPropagation(),b(O)},onKeyDown:function(O){[$e.SPACE,$e.ENTER].includes(O.which)&&(O.preventDefault(),b(O))},onFocus:g},u&&h.createElement("span",{className:"".concat(f,"-icon")},u),s&&E),m&&h.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(f,"-remove"),onClick:function(O){O.stopPropagation(),C(O)}},c||_.removeIcon||"×"));return d?d(S):S},JN=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,a=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.x,p=s.y;return Math.abs(l-r)<1?[l,c,u-n.x,p-n.y]:[r,o,a,i]},Go=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 s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-o)<1)return[l,c]}return[o,a]},ss=function(t,n){return t[n?0:1]},jm=h.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,u=e.locale,p=e.tabPosition,d=e.tabBarGutter,y=e.children,_=e.onTabClick,x=e.onTabScroll,g=e.indicator,v=h.useContext(Ll),f=v.prefixCls,m=v.tabs,b=I.useRef(null),C=I.useRef(null),E=I.useRef(null),S=I.useRef(null),w=I.useRef(null),O=I.useRef(null),P=I.useRef(null),A=p==="top"||p==="bottom",T=Pm(0,function(ue,ye){A&&x&&x({direction:ue>ye?"left":"right"})}),L=he(T,2),D=L[0],Q=L[1],G=Pm(0,function(ue,ye){!A&&x&&x({direction:ue>ye?"top":"bottom"})}),z=he(G,2),Y=z[0],ee=z[1],W=I.useState([0,0]),U=he(W,2),j=U[0],M=U[1],H=I.useState([0,0]),J=he(H,2),B=J[0],q=J[1],K=I.useState([0,0]),re=he(K,2),se=re[0],k=re[1],F=I.useState([0,0]),ae=he(F,2),Z=ae[0],me=ae[1],pe=UN(new Map),Ce=he(pe,2),Me=Ce[0],ce=Ce[1],Ie=VN(m,Me,B[0]),Pe=ss(j,A),Oe=ss(B,A),ve=ss(se,A),we=ss(Z,A),Se=Pe<Oe+ve,Ee=Se?Pe-we:Pe-ve,Ve="".concat(f,"-nav-operations-hidden"),He=0,Xe=0;A&&s?(He=0,Xe=Math.max(0,Oe-Ee)):(He=Math.min(0,Ee-Oe),Xe=0);function ft(ue){return ue<He?He:ue>Xe?Xe:ue}var mt=I.useRef(null),ct=I.useState(),ze=he(ct,2),Ne=ze[0],st=ze[1];function rt(){st(Date.now())}function Ye(){mt.current&&clearTimeout(mt.current)}WN(S,function(ue,ye){function Re(Le,je){Le(function(De){var qe=ft(De+je);return qe})}return Se?(A?Re(Q,ue):Re(ee,ye),Ye(),rt(),!0):!1}),I.useEffect(function(){return Ye(),Ne&&(mt.current=setTimeout(function(){st(0)},100)),Ye},[Ne]);var Ot=GN(Ie,Ee,A?D:Y,Oe,ve,we,ie(ie({},e),{},{tabs:m})),Dt=he(Ot,2),Ut=Dt[0],gt=Dt[1],$t=Zt(function(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,ye=Ie.get(ue)||{width:0,height:0,left:0,right:0,top:0};if(A){var Re=D;s?ye.right<D?Re=ye.right:ye.right+ye.width>D+Ee&&(Re=ye.right+ye.width-Ee):ye.left<-D?Re=-ye.left:ye.left+ye.width>-D+Ee&&(Re=-(ye.left+ye.width-Ee)),ee(0),Q(ft(Re))}else{var Le=Y;ye.top<-Y?Le=-ye.top:ye.top+ye.height>-Y+Ee&&(Le=-(ye.top+ye.height-Ee)),Q(0),ee(ft(Le))}}),Qe={};p==="top"||p==="bottom"?Qe[s?"marginRight":"marginLeft"]=d:Qe.marginTop=d;var lt=m.map(function(ue,ye){var Re=ue.key;return h.createElement(QN,{id:o,prefixCls:f,key:Re,tab:ue,style:ye===0?void 0:Qe,closable:ue.closable,editable:c,active:Re===a,renderWrapper:y,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(je){_(Re,je)},onFocus:function(){$t(Re),rt(),S.current&&(s||(S.current.scrollLeft=0),S.current.scrollTop=0)}})}),Tt=function(){return ce(function(){var ye,Re=new Map,Le=(ye=w.current)===null||ye===void 0?void 0:ye.getBoundingClientRect();return m.forEach(function(je){var De,qe=je.key,_t=(De=w.current)===null||De===void 0?void 0:De.querySelector('[data-node-key="'.concat(L0(qe),'"]'));if(_t){var dt=JN(_t,Le),Ke=he(dt,4),Mt=Ke[0],hn=Ke[1],Gt=Ke[2],At=Ke[3];Re.set(qe,{width:Mt,height:hn,left:Gt,top:At})}}),Re})};I.useEffect(function(){Tt()},[m.map(function(ue){return ue.key}).join("_")]);var Ge=k0(function(){var ue=Go(b),ye=Go(C),Re=Go(E);M([ue[0]-ye[0]-Re[0],ue[1]-ye[1]-Re[1]]);var Le=Go(P);k(Le);var je=Go(O);me(je);var De=Go(w);q([De[0]-Le[0],De[1]-Le[1]]),Tt()}),ke=m.slice(0,Ut),N=m.slice(gt+1),R=[].concat(xe(ke),xe(N)),$=Ie.get(a),V=qN({activeTabOffset:$,horizontal:A,indicator:g,rtl:s}),te=V.style;I.useEffect(function(){$t()},[a,He,Xe,Mm($),Mm(Ie),A]),I.useEffect(function(){Ge()},[s]);var le=!!R.length,ge="".concat(f,"-nav-wrap"),Fe,Je,et,X;return A?s?(Je=D>0,Fe=D!==Xe):(Fe=D<0,Je=D!==He):(et=Y<0,X=Y!==He),h.createElement(cr,{onResize:Ge},h.createElement("div",{ref:bi(t,b),role:"tablist",className:de("".concat(f,"-nav"),n),style:r,onKeyDown:function(){rt()}},h.createElement(mf,{ref:C,position:"left",extra:l,prefixCls:f}),h.createElement(cr,{onResize:Ge},h.createElement("div",{className:de(ge,oe(oe(oe(oe({},"".concat(ge,"-ping-left"),Fe),"".concat(ge,"-ping-right"),Je),"".concat(ge,"-ping-top"),et),"".concat(ge,"-ping-bottom"),X)),ref:S},h.createElement(cr,{onResize:Ge},h.createElement("div",{ref:w,className:"".concat(f,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(Y,"px)"),transition:Ne?"none":void 0}},lt,h.createElement(D0,{ref:P,prefixCls:f,locale:u,editable:c,style:ie(ie({},lt.length===0?void 0:Qe),{},{visibility:le?"hidden":null})}),h.createElement("div",{className:de("".concat(f,"-ink-bar"),oe({},"".concat(f,"-ink-bar-animated"),i.inkBar)),style:te}))))),h.createElement(YN,Te({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:O,prefixCls:f,tabs:R,className:!le&&Ve,tabMoving:!!Ne})),h.createElement(mf,{ref:E,position:"right",extra:l,prefixCls:f})))}),kd=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return h.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:de(n,a&&"".concat(n,"-active"),r),ref:t},l)});ne.env.NODE_ENV!=="production"&&(kd.displayName="TabPane");var ZN=["renderTabBar"],eI=["label","key"],B0=function(t){var n=t.renderTabBar,r=nt(t,ZN),o=h.useContext(Ll),i=o.tabs;if(n){var a=ie(ie({},r),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=nt(s,eI);return h.createElement(kd,Te({tab:l,key:c,tabKey:c},u))})});return n(a,jm)}return h.createElement(jm,r)};ne.env.NODE_ENV!=="production"&&(B0.displayName="TabNavListWrapper");var tI=["key","forceRender","style","className","destroyInactiveTabPane"],nI=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=h.useContext(Ll),l=s.prefixCls,c=s.tabs,u=o.tabPane,p="".concat(l,"-tabpane");return h.createElement("div",{className:de("".concat(l,"-content-holder"))},h.createElement("div",{className:de("".concat(l,"-content"),"".concat(l,"-content-").concat(i),oe({},"".concat(l,"-content-animated"),u))},c.map(function(d){var y=d.key,_=d.forceRender,x=d.style,g=d.className,v=d.destroyInactiveTabPane,f=nt(d,tI),m=y===r;return h.createElement(Zn,Te({key:y,visible:m,forceRender:_,removeOnLeave:!!(a||v),leavedClassName:"".concat(p,"-hidden")},o.tabPaneMotion),function(b,C){var E=b.style,S=b.className;return h.createElement(kd,Te({},f,{prefixCls:p,id:n,tabKey:y,animated:u,active:m,style:ie(ie({},x),E),className:de(g,S),ref:C}))})})))};function rI(){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},Be(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 oI=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],km=0,z0=h.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,p=e.animated,d=e.tabPosition,y=d===void 0?"top":d,_=e.tabBarGutter,x=e.tabBarStyle,g=e.tabBarExtraContent,v=e.locale,f=e.more,m=e.destroyInactiveTabPane,b=e.renderTabBar,C=e.onChange,E=e.onTabClick,S=e.onTabScroll,w=e.getPopupContainer,O=e.popupClassName,P=e.indicator,A=nt(e,oI),T=h.useMemo(function(){return(a||[]).filter(function(Z){return Z&&Be(Z)==="object"&&"key"in Z})},[a]),L=s==="rtl",D=rI(p),Q=I.useState(!1),G=he(Q,2),z=G[0],Y=G[1];I.useEffect(function(){Y(Yb())},[]);var ee=Kn(function(){var Z;return(Z=T[0])===null||Z===void 0?void 0:Z.key},{value:l,defaultValue:c}),W=he(ee,2),U=W[0],j=W[1],M=I.useState(function(){return T.findIndex(function(Z){return Z.key===U})}),H=he(M,2),J=H[0],B=H[1];I.useEffect(function(){var Z=T.findIndex(function(pe){return pe.key===U});if(Z===-1){var me;Z=Math.max(0,Math.min(J,T.length-1)),j((me=T[Z])===null||me===void 0?void 0:me.key)}B(Z)},[T.map(function(Z){return Z.key}).join("_"),U,J]);var q=Kn(null,{value:n}),K=he(q,2),re=K[0],se=K[1];I.useEffect(function(){n||(se("rc-tabs-".concat(ne.env.NODE_ENV==="test"?"test":km)),km+=1)},[]);function k(Z,me){E==null||E(Z,me);var pe=Z!==U;j(Z),pe&&(C==null||C(Z))}var F={id:re,activeKey:U,animated:D,tabPosition:y,rtl:L,mobile:z},ae=ie(ie({},F),{},{editable:u,locale:v,more:f,tabBarGutter:_,onTabClick:k,onTabScroll:S,extra:g,style:x,panes:null,getPopupContainer:w,popupClassName:O,indicator:P});return h.createElement(Ll.Provider,{value:{tabs:T,prefixCls:o}},h.createElement("div",Te({ref:t,id:n,className:de(o,"".concat(o,"-").concat(y),oe(oe(oe({},"".concat(o,"-mobile"),z),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),L),i)},A),h.createElement(B0,Te({},ae,{renderTabBar:b})),h.createElement(nI,Te({destroyInactiveTabPane:m},F,{animated:D}))))});ne.env.NODE_ENV!=="production"&&(z0.displayName="Tabs");const iI={motionAppear:!1,motionEnter:!0,motionLeave:!0};function aI(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({},iI),{motionName:So(e,"switch")})),n}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 lI(e){return e.filter(t=>t)}function cI(e,t){if(ne.env.NODE_ENV!=="production"&&Pt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=wo(t).map(r=>{if(h.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=sI(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return lI(n)}const uI=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}`}}}}},[om(e,"slide-up"),om(e,"slide-down")]]},fI=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:`${_e(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:_e(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:_e(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadiusLG)} 0 0 ${_e(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 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},dI=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},vn(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:`${_e(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({},iE),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${_e(e.paddingXXS)} ${_e(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"}}})}})}},pI=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=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:`${_e(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:s(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:_e(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${_e(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},hI=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 ${_e(e.borderRadius)} ${_e(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${_e(e.borderRadius)} ${_e(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e(e.borderRadius)} ${_e(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadius)} 0 0 ${_e(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},mI=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=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:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Ea(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:s,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}}}},gI=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:_e(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:_e(e.marginXS)},marginLeft:{_skip_check_:!0,value:_e(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"}}}}},vI=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vn(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 ${_e(e.paddingXS)}`,background:"transparent",border:`${_e(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${_e(e.borderRadiusLG)} ${_e(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}},Ea(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),mI(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"}}}}}},yI=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}},bI=un("Tabs",e=>{const t=Ft(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${_e(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${_e(e.horizontalItemGutter)}`});return[hI(t),gI(t),pI(t),dI(t),fI(t),vI(t),uI(t)]},yI),q0=()=>null;ne.env.NODE_ENV!=="production"&&(q0.displayName="DeprecatedTabPane");var _I=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 _a=e=>{var t,n,r,o,i,a,s,l,c,u,p;const{type:d,className:y,rootClassName:_,size:x,onEdit:g,hideAdd:v,centered:f,addIcon:m,removeIcon:b,moreIcon:C,more:E,popupClassName:S,children:w,items:O,animated:P,style:A,indicatorSize:T,indicator:L}=e,D=_I(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Q}=D,{direction:G,tabs:z,getPrefixCls:Y,getPopupContainer:ee}=h.useContext(Ue),W=Y("tabs",Q),U=En(W),[j,M,H]=bI(W,U);let J;d==="editable-card"&&(J={onEdit:(F,ae)=>{let{key:Z,event:me}=ae;g==null||g(F==="add"?me:Z,F)},removeIcon:(t=b??(z==null?void 0:z.removeIcon))!==null&&t!==void 0?t:h.createElement($o,null),addIcon:(m??(z==null?void 0:z.addIcon))||h.createElement(j0,null),showAdd:v!==!0});const B=Y();if(ne.env.NODE_ENV!=="production"){const F=Pt("Tabs");ne.env.NODE_ENV!=="production"&&F(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),ne.env.NODE_ENV!=="production"&&F(!(T||z!=null&&z.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const q=Po(x),K=cI(O,w),re=aI(W,P),se=Object.assign(Object.assign({},z==null?void 0:z.style),A),k={align:(n=L==null?void 0:L.align)!==null&&n!==void 0?n:(r=z==null?void 0:z.indicator)===null||r===void 0?void 0:r.align,size:(s=(i=(o=L==null?void 0:L.size)!==null&&o!==void 0?o:T)!==null&&i!==void 0?i:(a=z==null?void 0:z.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:z==null?void 0:z.indicatorSize};return j(h.createElement(z0,Object.assign({direction:G,getPopupContainer:ee},D,{items:K,className:de({[`${W}-${q}`]:q,[`${W}-card`]:["card","editable-card"].includes(d),[`${W}-editable-card`]:d==="editable-card",[`${W}-centered`]:f},z==null?void 0:z.className,y,_,M,H,U),popupClassName:de(S,M,H,U),style:se,editable:J,more:Object.assign({icon:(p=(u=(c=(l=z==null?void 0:z.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:z==null?void 0:z.moreIcon)!==null&&u!==void 0?u:C)!==null&&p!==void 0?p:h.createElement(O0,null),transitionName:`${B}-slide-up`},E),prefixCls:W,animated:re,indicator:k})))};_a.TabPane=q0;ne.env.NODE_ENV!=="production"&&(_a.displayName="Tabs");const V0=I.createContext({}),wI=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"}}}},CI=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},xI=(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},gf=(e,t)=>xI(e,t),SI=(e,t,n)=>({[`@media (min-width: ${_e(t)})`]:Object.assign({},gf(e,n))}),EI=()=>({}),RI=()=>({}),OI=un("Grid",wI,EI),$I=un("Grid",e=>{const t=Ft(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[CI(t),gf(t,""),gf(t,"-xs"),Object.keys(n).map(r=>SI(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},RI);var TI=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){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const PI=["xs","sm","md","lg","xl","xxl"],Ld=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=h.useContext(Ue),{gutter:o,wrap:i}=h.useContext(V0),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:p,className:d,children:y,flex:_,style:x}=e,g=TI(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=n("col",a),[f,m,b]=$I(v),C={};let E={};PI.forEach(O=>{let P={};const A=e[O];typeof A=="number"?P.span=A:typeof A=="object"&&(P=A||{}),delete g[O],E=Object.assign(Object.assign({},E),{[`${v}-${O}-${P.span}`]:P.span!==void 0,[`${v}-${O}-order-${P.order}`]:P.order||P.order===0,[`${v}-${O}-offset-${P.offset}`]:P.offset||P.offset===0,[`${v}-${O}-push-${P.push}`]:P.push||P.push===0,[`${v}-${O}-pull-${P.pull}`]:P.pull||P.pull===0,[`${v}-rtl`]:r==="rtl"}),P.flex&&(E[`${v}-${O}-flex`]=!0,C[`--${v}-${O}-flex`]=Lm(P.flex))});const S=de(v,{[`${v}-${s}`]:s!==void 0,[`${v}-order-${l}`]:l,[`${v}-offset-${c}`]:c,[`${v}-push-${u}`]:u,[`${v}-pull-${p}`]:p},d,E,m,b),w={};if(o&&o[0]>0){const O=o[0]/2;w.paddingLeft=O,w.paddingRight=O}return _&&(w.flex=Lm(_),i===!1&&!w.minWidth&&(w.minWidth=0)),f(h.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},w),x),C),className:S,ref:t}),y))});ne.env.NODE_ENV!=="production"&&(Ld.displayName="Col");var NI=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 Fm(e,t){const[n,r]=h.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<ya.length;i++){const a=ya[i];if(!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return h.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const H0=h.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=NI(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:d}=h.useContext(Ue),[y,_]=h.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[x,g]=h.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),v=Fm(o,x),f=Fm(r,x),m=h.useRef(l),b=UT();h.useEffect(()=>{const z=b.subscribe(Y=>{g(Y);const ee=m.current||0;(!Array.isArray(ee)&&typeof ee=="object"||Array.isArray(ee)&&(typeof ee[0]=="object"||typeof ee[1]=="object"))&&_(Y)});return()=>b.unsubscribe(z)},[]);const C=()=>{const z=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((ee,W)=>{if(typeof ee=="object")for(let U=0;U<ya.length;U++){const j=ya[U];if(y[j]&&ee[j]!==void 0){z[W]=ee[j];break}}else z[W]=ee}),z},E=p("row",n),[S,w,O]=OI(E),P=C(),A=de(E,{[`${E}-no-wrap`]:c===!1,[`${E}-${f}`]:f,[`${E}-${v}`]:v,[`${E}-rtl`]:d==="rtl"},i,w,O),T={},L=P[0]!=null&&P[0]>0?P[0]/-2:void 0;L&&(T.marginLeft=L,T.marginRight=L);const[D,Q]=P;T.rowGap=Q;const G=h.useMemo(()=>({gutter:[D,Q],wrap:c}),[D,Q,c]);return S(h.createElement(V0.Provider,{value:G},h.createElement("div",Object.assign({},u,{className:A,style:Object.assign(Object.assign({},T),a),ref:t}),s)))});ne.env.NODE_ENV!=="production"&&(H0.displayName="Row");function II(e){return!!(e.addonBefore||e.addonAfter)}function AI(e){return!!(e.prefix||e.suffix||e.allowClear)}function Dm(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=Dm(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Dm(t,e,r),n(o);return}n(o)}}function MI(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 W0=I.forwardRef(function(e,t){var n,r,o=e.inputElement,i=e.children,a=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,p=e.className,d=e.style,y=e.disabled,_=e.readOnly,x=e.focused,g=e.triggerFocus,v=e.allowClear,f=e.value,m=e.handleReset,b=e.hidden,C=e.classes,E=e.classNames,S=e.dataAttrs,w=e.styles,O=e.components,P=e.onClear,A=i??o,T=(O==null?void 0:O.affixWrapper)||"span",L=(O==null?void 0:O.groupWrapper)||"span",D=(O==null?void 0:O.wrapper)||"span",Q=(O==null?void 0:O.groupAddon)||"span",G=I.useRef(null),z=function(Z){var me;(me=G.current)!==null&&me!==void 0&&me.contains(Z.target)&&(g==null||g())},Y=AI(e),ee=I.cloneElement(A,{value:f,className:de(A.props.className,!Y&&(E==null?void 0:E.variant))||null}),W=I.useRef(null);if(I.useImperativeHandle(t,function(){return{nativeElement:W.current||G.current}}),Y){var U=null;if(v){var j=!y&&!_&&f,M="".concat(a,"-clear-icon"),H=Be(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"✖";U=I.createElement("span",{onClick:function(Z){m==null||m(Z),P==null||P()},onMouseDown:function(Z){return Z.preventDefault()},className:de(M,oe(oe({},"".concat(M,"-hidden"),!j),"".concat(M,"-has-suffix"),!!l)),role:"button",tabIndex:-1},H)}var J="".concat(a,"-affix-wrapper"),B=de(J,oe(oe(oe(oe(oe({},"".concat(a,"-disabled"),y),"".concat(J,"-disabled"),y),"".concat(J,"-focused"),x),"".concat(J,"-readonly"),_),"".concat(J,"-input-with-clear-btn"),l&&v&&f),C==null?void 0:C.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),q=(l||v)&&I.createElement("span",{className:de("".concat(a,"-suffix"),E==null?void 0:E.suffix),style:w==null?void 0:w.suffix},U,l);ee=I.createElement(T,Te({className:B,style:w==null?void 0:w.affixWrapper,onClick:z},S==null?void 0:S.affixWrapper,{ref:G}),s&&I.createElement("span",{className:de("".concat(a,"-prefix"),E==null?void 0:E.prefix),style:w==null?void 0:w.prefix},s),ee,q)}if(II(e)){var K="".concat(a,"-group"),re="".concat(K,"-addon"),se="".concat(K,"-wrapper"),k=de("".concat(a,"-wrapper"),K,C==null?void 0:C.wrapper,E==null?void 0:E.wrapper),F=de(se,oe({},"".concat(se,"-disabled"),y),C==null?void 0:C.group,E==null?void 0:E.groupWrapper);ee=I.createElement(L,{className:F,ref:W},I.createElement(D,{className:k},c&&I.createElement(Q,{className:re},c),ee,u&&I.createElement(Q,{className:re},u)))}return I.cloneElement(ee,{className:de((n=ee.props)===null||n===void 0?void 0:n.className,p)||null,style:ie(ie({},(r=ee.props)===null||r===void 0?void 0:r.style),d),hidden:b})}),jI=["show"];function U0(e,t){return h.useMemo(function(){var n={};t&&(n.show=Be(t)==="object"&&t.formatter?t.formatter:!!t),n=ie(ie({},n),e);var r=n,o=r.show,i=nt(r,jI);return ie(ie({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var kI=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],LI=I.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,p=e.disabled,d=e.htmlSize,y=e.className,_=e.maxLength,x=e.suffix,g=e.showCount,v=e.count,f=e.type,m=f===void 0?"text":f,b=e.classes,C=e.classNames,E=e.styles,S=e.onCompositionStart,w=e.onCompositionEnd,O=nt(e,kI),P=I.useState(!1),A=he(P,2),T=A[0],L=A[1],D=I.useRef(!1),Q=I.useRef(!1),G=I.useRef(null),z=I.useRef(null),Y=function(we){G.current&&MI(G.current,we)},ee=Kn(e.defaultValue,{value:e.value}),W=he(ee,2),U=W[0],j=W[1],M=U==null?"":String(U),H=I.useState(null),J=he(H,2),B=J[0],q=J[1],K=U0(v,g),re=K.max||_,se=K.strategy(M),k=!!re&&se>re;I.useImperativeHandle(t,function(){var ve;return{focus:Y,blur:function(){var Se;(Se=G.current)===null||Se===void 0||Se.blur()},setSelectionRange:function(Se,Ee,Ve){var He;(He=G.current)===null||He===void 0||He.setSelectionRange(Se,Ee,Ve)},select:function(){var Se;(Se=G.current)===null||Se===void 0||Se.select()},input:G.current,nativeElement:((ve=z.current)===null||ve===void 0?void 0:ve.nativeElement)||G.current}}),I.useEffect(function(){L(function(ve){return ve&&p?!1:ve})},[p]);var F=function(we,Se,Ee){var Ve=Se;if(!D.current&&K.exceedFormatter&&K.max&&K.strategy(Se)>K.max){if(Ve=K.exceedFormatter(Se,{max:K.max}),Se!==Ve){var He,Xe;q([((He=G.current)===null||He===void 0?void 0:He.selectionStart)||0,((Xe=G.current)===null||Xe===void 0?void 0:Xe.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;j(Ve),G.current&&tl(G.current,we,r,Ve)};I.useEffect(function(){if(B){var ve;(ve=G.current)===null||ve===void 0||ve.setSelectionRange.apply(ve,xe(B))}},[B]);var ae=function(we){F(we,we.target.value,{source:"change"})},Z=function(we){D.current=!1,F(we,we.currentTarget.value,{source:"compositionEnd"}),w==null||w(we)},me=function(we){a&&we.key==="Enter"&&!Q.current&&(Q.current=!0,a(we)),s==null||s(we)},pe=function(we){we.key==="Enter"&&(Q.current=!1),l==null||l(we)},Ce=function(we){L(!0),o==null||o(we)},Me=function(we){L(!1),i==null||i(we)},ce=function(we){j(""),Y(),G.current&&tl(G.current,we,r)},Ie=k&&"".concat(u,"-out-of-range"),Pe=function(){var we=Qn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return I.createElement("input",Te({autoComplete:n},we,{onChange:ae,onFocus:Ce,onBlur:Me,onKeyDown:me,onKeyUp:pe,className:de(u,oe({},"".concat(u,"-disabled"),p),C==null?void 0:C.input),style:E==null?void 0:E.input,ref:G,size:d,type:m,onCompositionStart:function(Ee){D.current=!0,S==null||S(Ee)},onCompositionEnd:Z}))},Oe=function(){var we=Number(re)>0;if(x||K.show){var Se=K.showFormatter?K.showFormatter({value:M,count:se,maxLength:re}):"".concat(se).concat(we?" / ".concat(re):"");return I.createElement(I.Fragment,null,K.show&&I.createElement("span",{className:de("".concat(u,"-show-count-suffix"),oe({},"".concat(u,"-show-count-has-suffix"),!!x),C==null?void 0:C.count),style:ie({},E==null?void 0:E.count)},Se),x)}return null};return I.createElement(W0,Te({},O,{prefixCls:u,className:de(y,Ie),handleReset:ce,value:M,focused:T,triggerFocus:Y,suffix:Oe(),disabled:p,classes:b,classNames:C,styles:E}),Pe())});const FI=e=>{const{getPrefixCls:t,direction:n}=I.useContext(Ue),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=jd(a),c=de(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=I.useContext(xn),p=I.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return ne.env.NODE_ENV!=="production"&&Pt("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),s(h.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},h.createElement(xn.Provider,{value:p},e.children)))},G0=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:I.createElement(xi,null)}),t};function K0(e,t){const n=I.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((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"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return I.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function DI(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var BI=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 zI(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 La=I.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:p,addonAfter:d,addonBefore:y,className:_,style:x,styles:g,rootClassName:v,onChange:f,classNames:m,variant:b}=e,C=BI(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:Z}=Pt("Input");Z(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:S,input:w}=I.useContext(Ue),O=E("input",r),P=I.useRef(null),A=En(O),[T,L,D]=jd(O,A),{compactSize:Q,compactItemClassnames:G}=ud(O,S),z=Po(Z=>{var me;return(me=a??Q)!==null&&me!==void 0?me:Z}),Y=I.useContext(Wr),ee=s??Y,{status:W,hasFeedback:U,feedbackIcon:j}=I.useContext(xn),M=Sd(W,i),H=DI(e)||!!U,J=I.useRef(H);if(ne.env.NODE_ENV!=="production"){const Z=Pt("Input");I.useEffect(()=>{var me;H&&!J.current&&ne.env.NODE_ENV!=="production"&&Z(document.activeElement===((me=P.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"),J.current=H},[H])}const B=K0(P,!0),q=Z=>{B(),l==null||l(Z)},K=Z=>{B(),c==null||c(Z)},re=Z=>{B(),f==null||f(Z)},se=(U||u)&&I.createElement(I.Fragment,null,u,U&&j),k=G0(p??(w==null?void 0:w.allowClear)),[F,ae]=r0("input",b,o);return T(I.createElement(LI,Object.assign({ref:Yn(t,P),prefixCls:O,autoComplete:w==null?void 0:w.autoComplete},C,{disabled:ee,onBlur:q,onFocus:K,style:Object.assign(Object.assign({},w==null?void 0:w.style),x),styles:Object.assign(Object.assign({},w==null?void 0:w.styles),g),suffix:se,allowClear:k,className:de(_,v,D,A,G,w==null?void 0:w.className),onChange:re,addonBefore:y&&I.createElement(Ys,{form:!0,space:!0},y),addonAfter:d&&I.createElement(Ys,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},m),w==null?void 0:w.classNames),{input:de({[`${O}-sm`]:z==="small",[`${O}-lg`]:z==="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:de({[`${O}-${F}`]:ae},lf(O,M)),affixWrapper:de({[`${O}-affix-wrapper-sm`]:z==="small",[`${O}-affix-wrapper-lg`]:z==="large",[`${O}-affix-wrapper-rtl`]:S==="rtl"},L),wrapper:de({[`${O}-group-rtl`]:S==="rtl"},L),groupWrapper:de({[`${O}-group-wrapper-sm`]:z==="small",[`${O}-group-wrapper-lg`]:z==="large",[`${O}-group-wrapper-rtl`]:S==="rtl",[`${O}-group-wrapper-${F}`]:ae},lf(`${O}-group-wrapper`,M,U),L)})})))});ne.env.NODE_ENV!=="production"&&(La.displayName="Input");const qI=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}}}},VI=un(["Input","OTP"],e=>{const t=Ft(e,$0(e));return[qI(t)]},T0);var HI=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 WI=h.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,s=HI(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof a=="string"?a:n,c=_=>{r(i,_.target.value)},u=h.useRef(null);h.useImperativeHandle(t,()=>u.current);const p=()=>{Lt(()=>{var _;const x=(_=u.current)===null||_===void 0?void 0:_.input;document.activeElement===x&&x&&x.select()})},d=_=>{let{key:x}=_;x==="ArrowLeft"?o(i-1):x==="ArrowRight"&&o(i+1),p()},y=_=>{_.key==="Backspace"&&!n&&o(i-1),p()};return h.createElement(La,Object.assign({},s,{ref:u,value:l,onInput:c,onFocus:p,onKeyDown:d,onKeyUp:y,onMouseDown:p,onMouseUp:p,type:a===!0?"password":"text"}))});var UI=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 ls(e){return(e||"").split("")}const GI=h.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,variant:c,disabled:u,status:p,autoFocus:d,mask:y}=e,_=UI(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if(ne.env.NODE_ENV!=="production"){const U=Pt("Input.OTP");ne.env.NODE_ENV!=="production"&&U(!(typeof y=="string"&&y.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:x,direction:g}=h.useContext(Ue),v=x("otp",n),f=Ta(_,{aria:!0,data:!0,attr:!0}),m=En(v),[b,C,E]=VI(v,m),S=Po(U=>o??U),w=h.useContext(xn),O=Sd(w.status,p),P=h.useMemo(()=>Object.assign(Object.assign({},w),{status:O,hasFeedback:!1,feedbackIcon:null}),[w,O]),A=h.useRef(null),T=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{var U;(U=T.current[0])===null||U===void 0||U.focus()},blur:()=>{var U;for(let j=0;j<r;j+=1)(U=T.current[j])===null||U===void 0||U.blur()},nativeElement:A.current}));const L=U=>l?l(U):U,[D,Q]=h.useState(ls(L(i||"")));h.useEffect(()=>{a!==void 0&&Q(ls(a))},[a]);const G=Zt(U=>{Q(U),s&&U.length===r&&U.every(j=>j)&&U.some((j,M)=>D[M]!==j)&&s(U.join(""))}),z=Zt((U,j)=>{let M=xe(D);for(let J=0;J<U;J+=1)M[J]||(M[J]="");j.length<=1?M[U]=j:M=M.slice(0,U).concat(ls(j)),M=M.slice(0,r);for(let J=M.length-1;J>=0&&!M[J];J-=1)M.pop();const H=L(M.map(J=>J||" ").join(""));return M=ls(H).map((J,B)=>J===" "&&!M[B]?M[B]:J),M}),Y=(U,j)=>{var M;const H=z(U,j),J=Math.min(U+j.length,r-1);J!==U&&((M=T.current[J])===null||M===void 0||M.focus()),G(H)},ee=U=>{var j;(j=T.current[U])===null||j===void 0||j.focus()},W={variant:c,disabled:u,status:O,mask:y};return b(h.createElement("div",Object.assign({},f,{ref:A,className:de(v,{[`${v}-sm`]:S==="small",[`${v}-lg`]:S==="large",[`${v}-rtl`]:g==="rtl"},E,C)}),h.createElement(xn.Provider,{value:P},Array.from({length:r}).map((U,j)=>{const M=`otp-${j}`,H=D[j]||"";return h.createElement(WI,Object.assign({ref:J=>{T.current[j]=J},key:M,index:j,size:S,htmlSize:1,className:`${v}-input`,onChange:Y,value:H,onActiveChange:ee,autoFocus:j===0&&d},W))}))))});var KI={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"},XI=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:KI}))},X0=h.forwardRef(XI);ne.env.NODE_ENV!=="production"&&(X0.displayName="EyeInvisibleOutlined");var YI={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"},QI=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:YI}))},Y0=h.forwardRef(QI);ne.env.NODE_ENV!=="production"&&(Y0.displayName="EyeOutlined");var JI=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 ZI=e=>e?h.createElement(Y0,null):h.createElement(X0,null),eA={click:"onClick",hover:"onMouseOver"},Q0=h.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=ZI}=e,a=h.useContext(Wr),s=n??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=I.useState(()=>l?o.visible:!1),p=I.useRef(null);h.useEffect(()=>{l&&u(o.visible)},[l,o]);const d=K0(p),y=()=>{s||(c&&d(),u(P=>{var A;const T=!P;return typeof o=="object"&&((A=o.onVisibleChange)===null||A===void 0||A.call(o,T)),T}))},_=P=>{const A=eA[r]||"",T=i(c),L={[A]:y,className:`${P}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return h.cloneElement(h.isValidElement(T)?T:h.createElement("span",null,T),L)},{className:x,prefixCls:g,inputPrefixCls:v,size:f}=e,m=JI(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=h.useContext(Ue),C=b("input",v),E=b("input-password",g),S=o&&_(E),w=de(E,x,{[`${E}-${f}`]:!!f}),O=Object.assign(Object.assign({},Qn(m,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:w,prefixCls:C,suffix:S});return f&&(O.size=f),h.createElement(La,Object.assign({ref:Yn(t,p)},O))});ne.env.NODE_ENV!=="production"&&(Q0.displayName="Input.Password");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 J0=h.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:p,onChange:d,onCompositionStart:y,onCompositionEnd:_}=e,x=tA(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:v}=h.useContext(Ue),f=h.useRef(!1),m=g("input-search",n),b=g("input",r),{compactSize:C}=ud(m,v),E=Po(W=>{var U;return(U=i??C)!==null&&U!==void 0?U:W}),S=h.useRef(null),w=W=>{W!=null&&W.target&&W.type==="click"&&p&&p(W.target.value,W,{source:"clear"}),d==null||d(W)},O=W=>{var U;document.activeElement===((U=S.current)===null||U===void 0?void 0:U.input)&&W.preventDefault()},P=W=>{var U,j;p&&p((j=(U=S.current)===null||U===void 0?void 0:U.input)===null||j===void 0?void 0:j.value,W,{source:"input"})},A=W=>{f.current||c||P(W)},T=typeof s=="boolean"?h.createElement(o0,null):null,L=`${m}-button`;let D;const Q=s||{},G=Q.type&&Q.type.__ANT_BUTTON===!0;G||Q.type==="button"?D=Er(Q,Object.assign({onMouseDown:O,onClick:W=>{var U,j;(j=(U=Q==null?void 0:Q.props)===null||U===void 0?void 0:U.onClick)===null||j===void 0||j.call(U,W),P(W)},key:"enterButton"},G?{className:L,size:E}:{})):D=h.createElement(ur,{className:L,type:s?"primary":void 0,size:E,disabled:u,key:"enterButton",onMouseDown:O,onClick:P,loading:c,icon:T},s),l&&(D=[D,Er(l,{key:"addonAfter"})]);const z=de(m,{[`${m}-rtl`]:v==="rtl",[`${m}-${E}`]:!!E,[`${m}-with-button`]:!!s},o),Y=W=>{f.current=!0,y==null||y(W)},ee=W=>{f.current=!1,_==null||_(W)};return h.createElement(La,Object.assign({ref:Yn(S,t),onPressEnter:A},x,{size:E,onCompositionStart:Y,onCompositionEnd:ee,prefixCls:b,addonAfter:D,suffix:a,onChange:w,className:z,disabled:u}))});ne.env.NODE_ENV!=="production"&&(J0.displayName="Search");var nA=`
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
+ `,rA=["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"],Ec={},Nn;function oA(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&&Ec[n])return Ec[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")),s=rA.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Ec[n]=l),l}function iA(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;Nn||(Nn=document.createElement("textarea"),Nn.setAttribute("tab-index","-1"),Nn.setAttribute("aria-hidden","true"),document.body.appendChild(Nn)),e.getAttribute("wrap")?Nn.setAttribute("wrap",e.getAttribute("wrap")):Nn.removeAttribute("wrap");var o=oA(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Nn.setAttribute("style","".concat(l,";").concat(nA)),Nn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,p,d=Nn.scrollHeight;if(s==="border-box"?d+=a:s==="content-box"&&(d-=i),n!==null||r!==null){Nn.value=" ";var y=Nn.scrollHeight-i;n!==null&&(c=y*n,s==="border-box"&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(u=y*r,s==="border-box"&&(u=u+i+a),p=d>u?"":"hidden",d=Math.min(u,d))}var _={height:d,overflowY:p,resize:"none"};return c&&(_.minHeight=c),u&&(_.maxHeight=u),_}var aA=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Rc=0,Oc=1,$c=2,sA=h.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,p=n.onChange,d=n.onInternalAutoSize,y=nt(n,aA),_=Kn(o,{value:i,postState:function(J){return J??""}}),x=he(_,2),g=x[0],v=x[1],f=function(J){v(J.target.value),p==null||p(J)},m=h.useRef();h.useImperativeHandle(t,function(){return{textArea:m.current}});var b=h.useMemo(function(){return a&&Be(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),C=he(b,2),E=C[0],S=C[1],w=!!a,O=function(){try{if(document.activeElement===m.current){var J=m.current,B=J.selectionStart,q=J.selectionEnd,K=J.scrollTop;m.current.setSelectionRange(B,q),m.current.scrollTop=K}}catch{}},P=h.useState($c),A=he(P,2),T=A[0],L=A[1],D=h.useState(),Q=he(D,2),G=Q[0],z=Q[1],Y=function(){L(Rc),ne.env.NODE_ENV==="test"&&(d==null||d())};Xt(function(){w&&Y()},[i,E,S,w]),Xt(function(){if(T===Rc)L(Oc);else if(T===Oc){var H=iA(m.current,!1,E,S);L($c),z(H)}else O()},[T]);var ee=h.useRef(),W=function(){Lt.cancel(ee.current)},U=function(J){T===$c&&(s==null||s(J),a&&(W(),ee.current=Lt(function(){Y()})))};h.useEffect(function(){return W},[]);var j=w?G:null,M=ie(ie({},c),j);return(T===Rc||T===Oc)&&(M.overflowY="hidden",M.overflowX="hidden"),h.createElement(cr,{onResize:U,disabled:!(a||s)},h.createElement("textarea",Te({},y,{ref:m,style:M,className:de(r,l,oe({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:f})))}),lA=["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"],cA=I.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,p=e.onCompositionEnd,d=e.suffix,y=e.prefixCls,_=y===void 0?"rc-textarea":y,x=e.showCount,g=e.count,v=e.className,f=e.style,m=e.disabled,b=e.hidden,C=e.classNames,E=e.styles,S=e.onResize,w=e.onClear,O=e.onPressEnter,P=e.readOnly,A=e.autoSize,T=e.onKeyDown,L=nt(e,lA),D=Kn(r,{value:o,defaultValue:r}),Q=he(D,2),G=Q[0],z=Q[1],Y=G==null?"":String(G),ee=I.useState(!1),W=he(ee,2),U=W[0],j=W[1],M=I.useRef(!1),H=I.useState(null),J=he(H,2),B=J[0],q=J[1],K=I.useRef(null),re=I.useRef(null),se=function(){var Ne;return(Ne=re.current)===null||Ne===void 0?void 0:Ne.textArea},k=function(){se().focus()};I.useImperativeHandle(t,function(){var ze;return{resizableTextArea:re.current,focus:k,blur:function(){se().blur()},nativeElement:((ze=K.current)===null||ze===void 0?void 0:ze.nativeElement)||se()}}),I.useEffect(function(){j(function(ze){return!m&&ze})},[m]);var F=I.useState(null),ae=he(F,2),Z=ae[0],me=ae[1];I.useEffect(function(){if(Z){var ze;(ze=se()).setSelectionRange.apply(ze,xe(Z))}},[Z]);var pe=U0(g,x),Ce=(n=pe.max)!==null&&n!==void 0?n:c,Me=Number(Ce)>0,ce=pe.strategy(Y),Ie=!!Ce&&ce>Ce,Pe=function(Ne,st){var rt=st;!M.current&&pe.exceedFormatter&&pe.max&&pe.strategy(st)>pe.max&&(rt=pe.exceedFormatter(st,{max:pe.max}),st!==rt&&me([se().selectionStart||0,se().selectionEnd||0])),z(rt),tl(Ne.currentTarget,Ne,s,rt)},Oe=function(Ne){M.current=!0,u==null||u(Ne)},ve=function(Ne){M.current=!1,Pe(Ne,Ne.currentTarget.value),p==null||p(Ne)},we=function(Ne){Pe(Ne,Ne.target.value)},Se=function(Ne){Ne.key==="Enter"&&O&&O(Ne),T==null||T(Ne)},Ee=function(Ne){j(!0),i==null||i(Ne)},Ve=function(Ne){j(!1),a==null||a(Ne)},He=function(Ne){z(""),k(),tl(se(),Ne,s)},Xe=d,ft;pe.show&&(pe.showFormatter?ft=pe.showFormatter({value:Y,count:ce,maxLength:Ce}):ft="".concat(ce).concat(Me?" / ".concat(Ce):""),Xe=I.createElement(I.Fragment,null,Xe,I.createElement("span",{className:de("".concat(_,"-data-count"),C==null?void 0:C.count),style:E==null?void 0:E.count},ft)));var mt=function(Ne){var st;S==null||S(Ne),(st=se())!==null&&st!==void 0&&st.style.height&&q(!0)},ct=!A&&!x&&!l;return I.createElement(W0,{ref:K,value:Y,allowClear:l,handleReset:He,suffix:Xe,prefixCls:_,classNames:ie(ie({},C),{},{affixWrapper:de(C==null?void 0:C.affixWrapper,oe(oe({},"".concat(_,"-show-count"),x),"".concat(_,"-textarea-allow-clear"),l))}),disabled:m,focused:U,className:de(v,Ie&&"".concat(_,"-out-of-range")),style:ie(ie({},f),B&&!ct?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ft=="string"?ft:void 0}},hidden:b,readOnly:P,onClear:w},I.createElement(sA,Te({},L,{autoSize:A,maxLength:c,onKeyDown:Se,onChange:we,onFocus:Ee,onBlur:Ve,onCompositionStart:Oe,onCompositionEnd:ve,className:de(C==null?void 0:C.textarea),style:ie(ie({},E==null?void 0:E.textarea),{},{resize:f==null?void 0:f.resize}),disabled:m,prefixCls:_,onResize:mt,ref:re,readOnly:P})))}),uA=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 fA=I.forwardRef((e,t)=>{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:p,className:d,style:y,styles:_,variant:x}=e,g=uA(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(ne.env.NODE_ENV!=="production"){const{deprecated:W}=Pt("TextArea");W(!("bordered"in e),"bordered","variant")}const{getPrefixCls:v,direction:f,textArea:m}=h.useContext(Ue),b=Po(a),C=h.useContext(Wr),E=s??C,{status:S,hasFeedback:w,feedbackIcon:O}=h.useContext(xn),P=Sd(S,l),A=h.useRef(null);h.useImperativeHandle(t,()=>{var W;return{resizableTextArea:(W=A.current)===null||W===void 0?void 0:W.resizableTextArea,focus:U=>{var j,M;zI((M=(j=A.current)===null||j===void 0?void 0:j.resizableTextArea)===null||M===void 0?void 0:M.textArea,U)},blur:()=>{var U;return(U=A.current)===null||U===void 0?void 0:U.blur()}}});const T=v("input",o),L=En(T),[D,Q,G]=jd(T,L),[z,Y]=r0("textArea",x,i),ee=G0(c??(m==null?void 0:m.allowClear));return D(h.createElement(cA,Object.assign({autoComplete:m==null?void 0:m.autoComplete},g,{style:Object.assign(Object.assign({},m==null?void 0:m.style),y),styles:Object.assign(Object.assign({},m==null?void 0:m.styles),_),disabled:E,allowClear:ee,className:de(G,L,d,p,m==null?void 0:m.className),classNames:Object.assign(Object.assign(Object.assign({},u),m==null?void 0:m.classNames),{textarea:de({[`${T}-sm`]:b==="small",[`${T}-lg`]:b==="large"},Q,u==null?void 0:u.textarea,(n=m==null?void 0:m.classNames)===null||n===void 0?void 0:n.textarea),variant:de({[`${T}-${z}`]:Y},lf(T,P)),affixWrapper:de(`${T}-textarea-affix-wrapper`,{[`${T}-affix-wrapper-rtl`]:f==="rtl",[`${T}-affix-wrapper-sm`]:b==="small",[`${T}-affix-wrapper-lg`]:b==="large",[`${T}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},Q)}),prefixCls:T,suffix:w&&h.createElement("span",{className:`${T}-textarea-suffix`},O),ref:A})))}),Io=La;Io.Group=FI;Io.Search=J0;Io.TextArea=fA;Io.Password=Q0;Io.OTP=GI;function nl(e){const[t,n]=h.useState(e);return h.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const dA=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)"}}}}},pA=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${_e(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 ${_e(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Bm=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},hA=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},vn(e)),pA(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Bm(e,e.controlHeightSM)),"&-large":Object.assign({},Bm(e,e.controlHeightLG))})}},mA=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:p,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},vn(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:s,fontSize:l,[`> ${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:p},[`&${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:bd,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},zm=(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"}}}}},gA=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"}}}}},Wn=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Z0=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Wn(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},vA=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`]:Wn(e)}},[`@media (max-width: ${_e(e.screenXSMax)})`]:[Z0(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Wn(e)}}}],[`@media (max-width: ${_e(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Wn(e)}}},[`@media (max-width: ${_e(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Wn(e)}}},[`@media (max-width: ${_e(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Wn(e)}}}}},yA=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`]:Wn(e),[`@media (max-width: ${_e(e.screenXSMax)})`]:[Z0(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Wn(e)}}],[`@media (max-width: ${_e(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Wn(e)}},[`@media (max-width: ${_e(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Wn(e)}},[`@media (max-width: ${_e(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Wn(e)}}}},bA=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}),e_=(e,t)=>Ft(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Fd=un("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=e_(e,n);return[hA(r),mA(r),dA(r),zm(r,r.componentCls),zm(r,r.formItemCls),gA(r),vA(r),yA(r),p$(r),bd]},bA,{order:-1e3}),qm=[];function Tc(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 t_=e=>{let{help:t,helpStatus:n,errors:r=qm,warnings:o=qm,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=h.useContext(vd),c=`${l}-item-explain`,u=En(l),[p,d,y]=Fd(l,u),_=I.useMemo(()=>Oh(l),[l]),x=nl(r),g=nl(o),v=h.useMemo(()=>t!=null?[Tc(t,"help",n)]:[].concat(xe(x.map((m,b)=>Tc(m,"error","error",b))),xe(g.map((m,b)=>Tc(m,"warning","warning",b)))),[t,n,x,g]),f={};return a&&(f.id=`${a}_help`),p(h.createElement(Zn,{motionDeadline:_.motionDeadline,motionName:`${l}-show-help`,visible:!!v.length,onVisibleChanged:s},m=>{const{className:b,style:C}=m;return h.createElement("div",Object.assign({},f,{className:de(c,b,y,u,i,d),style:C,role:"alert"}),h.createElement(Py,Object.assign({keys:v},Oh(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:S,error:w,errorStatus:O,className:P,style:A}=E;return h.createElement("div",{key:S,className:de(P,{[`${c}-${O}`]:O}),style:A},w)}))}))},_A=["parentNode"],wA="form_item";function Qi(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function n_(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:_A.includes(n)?`${wA}_${n}`:n}function r_(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 Vm(e){return Qi(e).join("_")}function CA(e,t){const n=t.getFieldInstance(e),r=Cv(n);if(r)return r;const o=n_(Qi(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function o_(e){const[t]=gd(),n=h.useRef({}),r=h.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=Vm(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=CA(o,r);a&&v1(a,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=Vm(o);return n.current[i]}}),[e,t]);return[r]}const cs={};function xA(e){let{name:t}=e;const n=Pt("Form");I.useEffect(()=>{if(t)return cs[t]=(cs[t]||0)+1,ne.env.NODE_ENV!=="production"&&n(cs[t]<=1,"usage","There exist multiple Form with same `name`."),()=>{cs[t]-=1}},[t])}var SA=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 EA=(e,t)=>{const n=h.useContext(Wr),{getPrefixCls:r,direction:o,form:i}=h.useContext(Ue),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:p,colon:d,labelAlign:y,labelWrap:_,labelCol:x,wrapperCol:g,hideRequiredMark:v,layout:f="horizontal",scrollToFirstError:m,requiredMark:b,onFinishFailed:C,name:E,style:S,feedbackIcons:w,variant:O}=e,P=SA(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),A=Po(c),T=h.useContext(ty);ne.env.NODE_ENV!=="production"&&xA(e);const L=I.useMemo(()=>b!==void 0?b:v?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[v,b,i]),D=d??(i==null?void 0:i.colon),Q=r("form",a),G=En(Q),[z,Y,ee]=Fd(Q,G),W=de(Q,`${Q}-${f}`,{[`${Q}-hide-required-mark`]:L===!1,[`${Q}-rtl`]:o==="rtl",[`${Q}-${A}`]:A},ee,G,Y,i==null?void 0:i.className,s,l),[U]=o_(p),{__INTERNAL__:j}=U;j.name=E;const M=I.useMemo(()=>({name:E,labelAlign:y,labelCol:x,labelWrap:_,wrapperCol:g,vertical:f==="vertical",colon:D,requiredMark:L,itemRef:j.itemRef,form:U,feedbackIcons:w}),[E,y,x,g,f,D,L,U,w]),H=h.useRef(null);h.useImperativeHandle(t,()=>{var q;return Object.assign(Object.assign({},U),{nativeElement:(q=H.current)===null||q===void 0?void 0:q.nativeElement})});const J=(q,K)=>{if(q){let re={block:"nearest"};typeof q=="object"&&(re=q),U.scrollToField(K,re)}},B=q=>{if(C==null||C(q),q.errorFields.length){const K=q.errorFields[0].name;if(m!==void 0){J(m,K);return}i&&i.scrollToFirstError!==void 0&&J(i.scrollToFirstError,K)}};return z(h.createElement(Eb.Provider,{value:O},h.createElement(od,{disabled:u},h.createElement(Co.Provider,{value:A},h.createElement(Sb,{validateMessages:T},h.createElement(Or.Provider,{value:M},h.createElement(Si,Object.assign({id:E},P,{name:E,onFinishFailed:B,form:U,ref:H,style:Object.assign(Object.assign({},i==null?void 0:i.style),S),className:W}))))))))},i_=h.forwardRef(EA);ne.env.NODE_ENV!=="production"&&(i_.displayName="Form");function RA(e){if(typeof e=="function")return e;const t=wo(e);return t.length<=1?t[0]:t}const a_=()=>{const{status:e,errors:t=[],warnings:n=[]}=I.useContext(xn);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}};a_.Context=xn;function OA(e){const[t,n]=h.useState(e),r=I.useRef(null),o=I.useRef([]),i=I.useRef(!1);h.useEffect(()=>(i.current=!1,()=>{i.current=!0,Lt.cancel(r.current),r.current=null}),[]);function a(s){i.current||(r.current===null&&(o.current=[],r.current=Lt(()=>{r.current=null,n(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,a]}function $A(){const{itemRef:e}=h.useContext(Or),t=h.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=Yn(e(r),i)),t.current.ref}return n}const TA=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},PA=wi(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=e_(e,n);return[TA(r)]}),NA=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:p,onErrorVisibleChanged:d}=e,y=`${t}-item`,_=h.useContext(Or),x=r||_.wrapperCol||{},g=de(`${y}-control`,x.className),v=h.useMemo(()=>Object.assign({},_),[_]);delete v.labelCol,delete v.wrapperCol;const f=h.createElement("div",{className:`${y}-control-input`},h.createElement("div",{className:`${y}-control-input-content`},o)),m=h.useMemo(()=>({prefixCls:t,status:n}),[t,n]),b=p!==null||i.length||a.length?h.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},h.createElement(vd.Provider,{value:m},h.createElement(t_,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:d})),!!p&&h.createElement("div",{style:{width:0,height:p}})):null,C={};u&&(C.id=`${u}_extra`);const E=l?h.createElement("div",Object.assign({},C,{className:`${y}-extra`}),l):null,S=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:f,errorList:b,extra:E}):h.createElement(h.Fragment,null,f,b,E);return h.createElement(Or.Provider,{value:v},h.createElement(Ld,Object.assign({},x,{className:g}),S),h.createElement(PA,{prefixCls:t}))};var IA={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"},AA=function(t,n){return h.createElement(fn,Te({},t,{ref:n,icon:IA}))},s_=h.forwardRef(AA);ne.env.NODE_ENV!=="production"&&(s_.displayName="QuestionCircleOutlined");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 jA(e){return e?typeof e=="object"&&!h.isValidElement(e)?e:{title:e}:null}const kA=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var p;const[d]=wl("Form"),{labelAlign:y,labelCol:_,labelWrap:x,colon:g}=h.useContext(Or);if(!n)return null;const v=o||_||{},f=i||y,m=`${t}-item-label`,b=de(m,f==="left"&&`${m}-left`,v.className,{[`${m}-wrap`]:!!x});let C=n;const E=a===!0||g!==!1&&a!==!1;E&&!u&&typeof n=="string"&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const w=jA(c);if(w){const{icon:T=h.createElement(s_,null)}=w,L=MA(w,["icon"]),D=h.createElement(Ur,Object.assign({},L),h.cloneElement(T,{className:`${t}-item-tooltip`,title:"",onClick:Q=>{Q.preventDefault()},tabIndex:null}));C=h.createElement(h.Fragment,null,C,D)}const O=l==="optional",P=typeof l=="function";P?C=l(C,{required:!!s}):O&&!s&&(C=h.createElement(h.Fragment,null,C,h.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((p=Hr.Form)===null||p===void 0?void 0:p.optional))));const A=de({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:O||P,[`${t}-item-no-colon`]:!E});return h.createElement(Ld,Object.assign({},v,{className:b}),h.createElement("label",{htmlFor:r,className:A,title:typeof n=="string"?n:""},C))},LA={success:Oa,warning:$a,error:xi,validating:Sl};function l_(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=h.useContext(Or),p=r_(n,r,s,null,!!o,i),{isFormItemInput:d,status:y,hasFeedback:_,feedbackIcon:x}=h.useContext(xn),g=h.useMemo(()=>{var v;let f;if(o){const b=o!==!0&&o.icons||u,C=p&&((v=b==null?void 0:b({status:p,errors:n,warnings:r}))===null||v===void 0?void 0:v[p]),E=p&&LA[p];f=C!==!1&&E?h.createElement("span",{className:de(`${c}-feedback-icon`,`${c}-feedback-icon-${p}`)},C||h.createElement(E,null)):null}const m={status:p||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:f,isFormItemInput:!0};return l&&(m.status=(p??y)||"",m.isFormItemInput=d,m.hasFeedback=!!(o??_),m.feedbackIcon=o!==void 0?m.feedbackIcon:x),m},[p,o,l,d,y]);return h.createElement(xn.Provider,{value:g},t)}var FA=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 DA(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:p,children:d,fieldId:y,required:_,isRequired:x,onSubItemMetaChange:g,layout:v}=e,f=FA(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),m=`${t}-item`,{requiredMark:b,vertical:C}=h.useContext(Or),E=C||v==="vertical",S=h.useRef(null),w=nl(a),O=nl(s),P=i!=null,A=!!(P||a.length||s.length),T=!!S.current&&Tl(S.current),[L,D]=h.useState(null);Xt(()=>{if(A&&S.current){const ee=getComputedStyle(S.current);D(parseInt(ee.marginBottom,10))}},[A,T]);const Q=ee=>{ee||D(null)},z=function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const W=ee?w:c.errors,U=ee?O:c.warnings;return r_(W,U,c,"",!!u,l)}(),Y=de(m,n,r,{[`${m}-with-help`]:P||w.length||O.length,[`${m}-has-feedback`]:z&&u,[`${m}-has-success`]:z==="success",[`${m}-has-warning`]:z==="warning",[`${m}-has-error`]:z==="error",[`${m}-is-validating`]:z==="validating",[`${m}-hidden`]:p,[`${m}-${v}`]:v});return h.createElement("div",{className:Y,style:o,ref:S},h.createElement(H0,Object.assign({className:`${m}-row`},Qn(f,["_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"])),h.createElement(kA,Object.assign({htmlFor:y},e,{requiredMark:b,required:_??x,prefixCls:t,vertical:E})),h.createElement(NA,Object.assign({},e,c,{errors:w,warnings:O,prefixCls:t,status:z,help:i,marginBottom:L,onErrorVisibleChanged:Q}),h.createElement(xb.Provider,{value:g},h.createElement(l_,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:z},d)))),!!L&&h.createElement("div",{className:`${m}-margin-offset`,style:{marginBottom:-L}}))}const BA="__SPLIT__";function zA(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 qA=h.memo(e=>{let{children:t}=e;return t},(e,t)=>zA(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Hm(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function VA(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:p,trigger:d="onChange",validateTrigger:y,hidden:_,help:x,layout:g}=e,{getPrefixCls:v}=h.useContext(Ue),{name:f}=h.useContext(Or),m=RA(l),b=typeof m=="function",C=h.useContext(xb),{validateTrigger:E}=h.useContext(Eo),S=y!==void 0?y:E,w=t!=null,O=v("form",i),P=En(O),[A,T,L]=Fd(O,P),D=Pt("Form.Item");ne.env.NODE_ENV!=="production"&&ne.env.NODE_ENV!=="production"&&D(t!==null,"usage","`null` is passed as `name` property");const Q=h.useContext(ga),G=h.useRef(),[z,Y]=OA({}),[ee,W]=xo(()=>Hm()),U=K=>{const re=Q==null?void 0:Q.getKey(K.name);if(W(K.destroy?Hm():K,!0),n&&x!==!1&&C){let se=K.name;if(K.destroy)se=G.current||se;else if(re!==void 0){const[k,F]=re;se=[k].concat(xe(F)),G.current=se}C(K,se)}},j=(K,re)=>{Y(se=>{const k=Object.assign({},se),ae=[].concat(xe(K.name.slice(0,-1)),xe(re)).join(BA);return K.destroy?delete k[ae]:k[ae]=K,k})},[M,H]=h.useMemo(()=>{const K=xe(ee.errors),re=xe(ee.warnings);return Object.values(z).forEach(se=>{K.push.apply(K,xe(se.errors||[])),re.push.apply(re,xe(se.warnings||[]))}),[K,re]},[z,ee.errors,ee.warnings]),J=$A();function B(K,re,se){return n&&!_?h.createElement(l_,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:ee,errors:M,warnings:H,noStyle:!0},K):h.createElement(DA,Object.assign({key:"row"},e,{className:de(r,L,P,T),prefixCls:O,fieldId:re,isRequired:se,errors:M,warnings:H,meta:ee,onSubItemMetaChange:j,layout:g}),K)}if(!w&&!b&&!o)return A(B(m));let q={};return typeof u=="string"?q.label=u:t&&(q.label=String(t)),p&&(q=Object.assign(Object.assign({},q),p)),A(h.createElement(md,Object.assign({},e,{messageVariables:q,trigger:d,validateTrigger:S,onMetaChange:U}),(K,re,se)=>{const k=Qi(t).length&&re?re.name:[],F=n_(k,f),ae=c!==void 0?c:!!(s!=null&&s.some(pe=>{if(pe&&typeof pe=="object"&&pe.required&&!pe.warningOnly)return!0;if(typeof pe=="function"){const Ce=pe(se);return(Ce==null?void 0:Ce.required)&&!(Ce!=null&&Ce.warningOnly)}return!1})),Z=Object.assign({},K);let me=null;if(ne.env.NODE_ENV!=="production"&&D(!(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"&&D(!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(b&&(!(a||o)||w))ne.env.NODE_ENV!=="production"&&D(!!(a||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),ne.env.NODE_ENV!=="production"&&D(!w,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!b&&!w)ne.env.NODE_ENV!=="production"&&D(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(h.isValidElement(m)){ne.env.NODE_ENV!=="production"&&D(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),Z);if(pe.id||(pe.id=F),x||M.length>0||H.length>0||e.extra){const ce=[];(x||M.length>0)&&ce.push(`${F}_help`),e.extra&&ce.push(`${F}_extra`),pe["aria-describedby"]=ce.join(" ")}M.length>0&&(pe["aria-invalid"]="true"),ae&&(pe["aria-required"]="true"),Kr(m)&&(pe.ref=J(k,m)),new Set([].concat(xe(Qi(d)),xe(Qi(S)))).forEach(ce=>{pe[ce]=function(){for(var Ie,Pe,Oe,ve,we,Se=arguments.length,Ee=new Array(Se),Ve=0;Ve<Se;Ve++)Ee[Ve]=arguments[Ve];(Oe=Z[ce])===null||Oe===void 0||(Ie=Oe).call.apply(Ie,[Z].concat(Ee)),(we=(ve=m.props)[ce])===null||we===void 0||(Pe=we).call.apply(Pe,[ve].concat(Ee))}});const Me=[pe["aria-required"],pe["aria-invalid"],pe["aria-describedby"]];me=h.createElement(qA,{control:Z,update:m,childProps:Me},Er(m,pe))}else b&&(a||o)&&!w?me=m(se):(ne.env.NODE_ENV!=="production"&&D(!k.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 B(me,F,ae)}))}const c_=VA;c_.useStatus=a_;var HA=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 WA=e=>{var{prefixCls:t,children:n}=e,r=HA(e,["prefixCls","children"]);if(ne.env.NODE_ENV!=="production"){const s=Pt("Form.List");ne.env.NODE_ENV!=="production"&&s(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.")}const{getPrefixCls:o}=h.useContext(Ue),i=o("form",t),a=h.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return h.createElement(bb,Object.assign({},r),(s,l,c)=>h.createElement(vd.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function UA(){const{form:e}=I.useContext(Or);return e}const An=i_;An.Item=c_;An.List=WA;An.ErrorList=t_;An.useForm=o_;An.useFormInstance=UA;An.useWatch=Cb;An.Provider=Sb;An.create=()=>{ne.env.NODE_ENV!=="production"&&Oo(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};let In=null,ho=e=>e(),wa=[],Ca={};function Wm(){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 GA=I.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=I.useContext(Ue),i=Ca.prefixCls||o("message"),a=I.useContext(Xb),[s,l]=Yy(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return I.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),KA=I.forwardRef((e,t)=>{const[n,r]=I.useState(Wm),o=()=>{r(Wm)};I.useEffect(o,[]);const i=Ra(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=I.createElement(GA,{ref:t,sync:o,messageConfig:n});return I.createElement(er,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});function Fl(){if(!In){const e=document.createDocumentFragment(),t={fragment:e};In=t,ho(()=>{$l(I.createElement(KA,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Fl())})}}),e)});return}In.instance&&(wa.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ho(()=>{const r=In.instance.open(Object.assign(Object.assign({},Ca),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":ho(()=>{In==null||In.instance.destroy(e.key)});break;default:ho(()=>{var r;const o=(r=In.instance)[t].apply(r,xe(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),wa=[])}function XA(e){Ca=Object.assign(Object.assign({},Ca),e),ho(()=>{var t;(t=In==null?void 0:In.sync)===null||t===void 0||t.call(In)})}function YA(e){const t=ld(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return wa.push(o),()=>{r?ho(()=>{r()}):o.skipped=!0}});return Fl(),t}function QA(e,t){const n=Ra();ne.env.NODE_ENV!=="production"&&!n.holderRender&&ad("message");const r=ld(o=>{let i;const a={type:e,args:t,resolve:o,setCloseFn:s=>{i=s}};return wa.push(a),()=>{i?ho(()=>{i()}):a.skipped=!0}});return Fl(),r}const JA=e=>{wa.push({type:"destroy",key:e}),Fl()},ZA=["success","info","warning","error","loading"],eM={open:YA,destroy:JA,config:XA,useMessage:B1,_InternalPanelDoNotUseOrYouWillBeFired:I1},u_=eM;ZA.forEach(e=>{u_[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return QA(e,n)}});ne.env.NODE_ENV;ne.env.NODE_ENV;var tM=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 nM=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s,footer:l}=e,c=tM(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=h.useContext(Ue),p=u(),d=t||u("modal"),y=En(p),[_,x,g]=Ib(d,y),v=`${d}-confirm`;let f={};return i?f={closable:o??!1,title:"",footer:"",children:h.createElement(Mb,Object.assign({},e,{prefixCls:d,confirmPrefixCls:v,rootPrefixCls:p,content:s}))}:f={closable:o??!0,title:a,footer:l!==null&&h.createElement(Tb,Object.assign({},e)),children:s},_(h.createElement(pd,Object.assign({prefixCls:d,className:de(x,`${d}-pure-panel`,i&&v,i&&`${v}-${i}`,n,g,y)},c,{closeIcon:$b(d,r),closable:o},f)))},rM=_T(nM);function f_(e){return Aa(Fb(e))}const Ln=Ab;Ln.useModal=J$;Ln.info=function(t){return Aa(Db(t))};Ln.success=function(t){return Aa(Bb(t))};Ln.error=function(t){return Aa(zb(t))};Ln.warning=f_;Ln.warn=f_;Ln.confirm=function(t){return Aa(qb(t))};Ln.destroyAll=function(){for(;po.length;){const t=po.pop();t&&t()}};Ln.config=G$;Ln._InternalPanelDoNotUseOrYouWillBeFired=rM;ne.env.NODE_ENV!=="production"&&(Ln.displayName="Modal");let Hn=null,Ms=e=>e(),rl=[],xa={};function Um(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=xa,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const oM=I.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=I.useContext(Ue),i=xa.prefixCls||o("notification"),a=I.useContext(Xb),[s,l]=Kb(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return I.useEffect(r,[]),I.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),iM=I.forwardRef((e,t)=>{const[n,r]=I.useState(Um),o=()=>{r(Um)};I.useEffect(o,[]);const i=Ra(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=I.createElement(oM,{ref:t,sync:o,notificationConfig:n});return I.createElement(er,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});function Dd(){if(!Hn){const e=document.createDocumentFragment(),t={fragment:e};Hn=t,Ms(()=>{$l(I.createElement(iM,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Dd())})}}),e)});return}Hn.instance&&(rl.forEach(e=>{switch(e.type){case"open":{Ms(()=>{Hn.instance.open(Object.assign(Object.assign({},xa),e.config))});break}case"destroy":Ms(()=>{Hn==null||Hn.instance.destroy(e.key)});break}}),rl=[])}function aM(e){xa=Object.assign(Object.assign({},xa),e),Ms(()=>{var t;(t=Hn==null?void 0:Hn.sync)===null||t===void 0||t.call(Hn)})}function d_(e){const t=Ra();ne.env.NODE_ENV!=="production"&&!t.holderRender&&ad("notification"),rl.push({type:"open",config:e}),Dd()}const sM=e=>{rl.push({type:"destroy",key:e}),Dd()},lM=["success","info","warning","error"],cM={open:d_,destroy:sM,config:aM,useNotification:bT,_InternalPanelDoNotUseOrYouWillBeFired:uT},Wi=cM;lM.forEach(e=>{Wi[e]=t=>d_(Object.assign(Object.assign({},t),{type:e}))});ne.env.NODE_ENV;ne.env.NODE_ENV;const uM=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},vn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${_e(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:s,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}}},Bd=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Ft(e,{tagFontSize:o,tagLineHeight:_e(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},zd=e=>({defaultBg:new gn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),p_=un("Tag",e=>{const t=Bd(e);return uM(t)},zd);var fM=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 dM=h.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:s}=e,l=fM(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=h.useContext(Ue),p=v=>{a==null||a(!i),s==null||s(v)},d=c("tag",n),[y,_,x]=p_(d),g=de(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},u==null?void 0:u.className,o,_,x);return y(h.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:g,onClick:p})))}),pM=e=>Cl(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"}}}}),hM=wi(["Tag","preset"],e=>{const t=Bd(e);return pM(t)},zd);function mM(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const us=(e,t,n)=>{const r=mM(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"}}}},gM=wi(["Tag","status"],e=>{const t=Bd(e);return[us(t,"success","Success"),us(t,"processing","Info"),us(t,"error","Error"),us(t,"warning","Warning")]},zd);var vM=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 yM=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,bordered:u=!0,visible:p}=e,d=vM(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:_,tag:x}=h.useContext(Ue),[g,v]=h.useState(!0),f=Qn(d,["closeIcon","closable"]);ne.env.NODE_ENV!=="production"&&Pt("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />"),h.useEffect(()=>{p!==void 0&&v(p)},[p]);const m=Al(l),b=aP(l),C=m||b,E=Object.assign(Object.assign({backgroundColor:l&&!C?l:void 0},x==null?void 0:x.style),i),S=y("tag",n),[w,O,P]=p_(S),A=de(S,x==null?void 0:x.className,{[`${S}-${l}`]:C,[`${S}-has-color`]:l&&!C,[`${S}-hidden`]:!g,[`${S}-rtl`]:_==="rtl",[`${S}-borderless`]:!u},r,o,O,P),T=Y=>{Y.stopPropagation(),c==null||c(Y),!Y.defaultPrevented&&v(!1)},[,L]=Rb(Qs(e),Qs(x),{closable:!1,closeIconRender:Y=>{const ee=h.createElement("span",{className:`${S}-close-icon`,onClick:T},Y);return By(Y,ee,W=>({onClick:U=>{var j;(j=W==null?void 0:W.onClick)===null||j===void 0||j.call(W,U),T(U)},className:de(W==null?void 0:W.className,`${S}-close-icon`)}))}}),D=typeof d.onClick=="function"||a&&a.type==="a",Q=s||null,G=Q?h.createElement(h.Fragment,null,Q,a&&h.createElement("span",null,a)):a,z=h.createElement("span",Object.assign({},f,{ref:t,className:A,style:E}),G,L,m&&h.createElement(hM,{key:"preset",prefixCls:S}),b&&h.createElement(gM,{key:"status",prefixCls:S}));return w(D?h.createElement(cd,{component:"Tag"},z):z)}),ol=yM;ne.env.NODE_ENV!=="production"&&(ol.displayName="Tag");ol.CheckableTag=dM;const Gm=({code:e})=>{const[t,n]=I.useState(!1),r=()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)};return fe.jsxs("div",{style:{position:"relative"},children:[e?fe.jsx(Ur,{title:t?"Copied!":"Copy",children:fe.jsx(Cr.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]})},bM=":",Km='"',_M="\\",wM=e=>{let t=0,n,r=!1;const o=[];function i(){return e[t]}function a(){let l=t+1;for(;l<e.length;){const c=e[l];if(c.match(/[^\s\r\n]/))return c;++l}}function s(){++t}for(;t<e.length;){const l=i();r?l===_M?s():l===Km&&(a()!==bM&&o.push({startIndex:n,endIndex:t}),r=!1):l===Km&&(n=t,r=!0),s()}return{stringValues:o}};function h_(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 CM=5*1024*1024;function xM(e){if(e.length>CM)return e;const{stringValues:t}=wM(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 SM(e,t){return e<t.position.column?!1:e<=t.position.column+t.value.length}class EM{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=>SM(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 s=r?r.position:{column:1,lineNumber:o};return this.updatePosition({tokenIdx:a,position:s}),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 so({editor:e,position:t}){const n=e.getTokenProvider();return new EM(n,t)}function RM(e){let t=e.data;return typeof t!="string"&&(t=t.join(`
228
+ `)),e.method+" "+e.url+`
229
+ `+t}function m_(e,t){return JSON.stringify(e,null,t?2:0)}function Xm(e,t){let n=!1;const r=[];for(let o=0;o<e.length;o++){const i=e[o];try{let a=m_(JSON.parse(h_(i)),t);t&&(a=xM(a)),n=n||a!==i,r.push(a)}catch(a){console.log(a),r.push(i)}}return{changed:n,data:r}}const g_="/_search-center",OM="/elasticsearch",$M="team_id",TM="project_id",qd=()=>localStorage.getItem($M),Vd=()=>localStorage.getItem(TM);function PM(e){return"text/plain"}function NM(e,t,n,{clusterID:r}={}){const o=Rt.Deferred(),i={"X-Team-ID":qd(),"X-Project-ID":Vd()},a={url:`${OM}/${r}/_proxy?`+wC.stringify({path:t,method:e}),headers:i,data:n,contentType:PM(),cache:!1,type:"POST",dataType:"json"};return Rt.ajax(a).then((s,l,c)=>{o.resolveWith({},[s,l,c])},(s,l,c)=>{s.status===0&&(s.responseText=`
230
+
231
+ Failed to connect to Console's backend.
232
+ Please check the server is up and running`),o.rejectWith({},[s,l,c])}),o}function IM(e){const t={"content-type":"application/json","X-Team-ID":qd(),"X-Project-ID":Vd()};let n=`${g_}/elasticsearch/command?size=1000`;return fetch(n,{method:"GET",headers:t})}function AM(e,t){return e&&(e=e.replace(/\/+$/,"")),t=t.replace(/^\/+/,""),e+"/"+t}function MM(e){const t={"content-type":"application/json","X-Team-ID":qd(),"X-Project-ID":Vd()};return fetch(`${g_}/elasticsearch/command`,{method:"POST",body:JSON.stringify(e),headers:t})}class jM{constructor(t){this.coreEditor=t,this.prevRequestStart=n=>{let r;for(n==null?r=this.coreEditor.getCurrentPosition().lineNumber:be.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:be.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=be.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=Xm(r.data,o);i.changed||(o=!o,i=Xm(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=RM(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=so({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 s=(a?0:1)+i.getCurrentPosition().lineNumber,l;for(;s<n.end.lineNumber||s===n.end.lineNumber&&1<n.end.column;){l=this.nextDataDocEnd({lineNumber:s,column:1});const c={start:{lineNumber:s,column:1},end:l},u=this.coreEditor.getValueInRange(c);r.data.push(u.trim()),s=l.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 s=o.end.lineNumber;let l=o.start.lineNumber;const c=()=>{if(r){const u=this.coreEditor.getLines(a,l-1).join(`
233
+ `);u&&i.push(u)}};for(;l<=s;)if(this.parser.isStartRequestRow(l)){c();const u=await this.getRequest(l);if(u)i.push(u),a=l=u.range.end.lineNumber+1;else return i}else++l;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=be.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 be.map(o,a=>{if(typeof a=="string")return a;const s=a.url,l=a.method,c=a.data,u=AM(n,s);let p="curl -X"+l+' "'+u+'"';if(c&&c.length){p+=` -H 'Content-Type: application/json' -d'
234
+ `;const d=h_(c.join(`
235
+ `));p+=d.replace(/'/g,"'\\''"),c.length>1&&(p+=`
236
+ `),p+="'"}return p}).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,s=e("./anchor").Anchor,l=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,u=a.comparePoints,p=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,o),this.getTokenizer=function(){function g(f,m,b){return f=f.substr(1),/^\d+$/.test(f)&&!b.inFormatString?[{tabstopId:parseInt(f,10)}]:[{text:f}]}function v(f){return"(?:[^\\\\"+f+"]|\\\\.)"}return p.$tokenizer=new c({start:[{regex:/:/,onMatch:function(f,m,b){return b.length&&b[0].expectIf?(b[0].expectIf=!1,b[0].elseBranch=b[0],[b[0]]):":"}},{regex:/\\./,onMatch:function(f,m,b){var C=f[1];return C=="}"&&b.length||"`$\\".indexOf(C)!=-1?f=C:b.inFormatString&&(C=="n"||C=="t"?f=`
238
+ `:"ulULE".indexOf(C)!=-1&&(f={changeCase:C,local:C>"a"})),[f]}},{regex:/}/,onMatch:function(f,m,b){return[b.length?b.shift():f]}},{regex:/\$(?:\d+|\w+)/,onMatch:g},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(f,m,b){var C=g(f.substr(1),m,b);return b.unshift(C[0]),C},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+v("\\|")+"*\\|",onMatch:function(f,m,b){b[0].choices=f.slice(1,-1).split(",")},next:"start"},{regex:"/("+v("/")+"+)/(?:("+v("/")+"*)/)(\\w*):?",onMatch:function(f,m,b){var C=b[0];return C.fmtString=f,f=this.splitRegex.exec(f),C.guard=f[1],C.fmt=f[2],C.flag=f[3],""},next:"start"},{regex:"`"+v("`")+"*`",onMatch:function(f,m,b){return b[0].code=f.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(f,m,b){b[0]&&(b[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+v("/")+"+)/",token:"regex"},{regex:"",onMatch:function(f,m,b){b.inFormatString=!0},next:"start"}]}),p.prototype.getTokenizer=function(){return p.$tokenizer},p.$tokenizer},this.tokenizeTmSnippet=function(g,v){return this.getTokenizer().getLineTokens(g,v).tokens.map(function(f){return f.value||f})},this.$getDefaultValue=function(g,v){if(/^[A-Z]\d+$/.test(v)){var f=v.substr(1);return(this.variables[v[0]+"__"]||{})[f]}if(/^\d+$/.test(v))return(this.variables.__||{})[v];if(v=v.replace(/^TM_/,""),!!g){var m=g.session;switch(v){case"CURRENT_WORD":var b=m.getWordRange();case"SELECTION":case"SELECTED_TEXT":return m.getTextRange(b);case"CURRENT_LINE":return m.getLine(g.getCursorPosition().row);case"PREV_LINE":return m.getLine(g.getCursorPosition().row-1);case"LINE_INDEX":return g.getCursorPosition().column;case"LINE_NUMBER":return g.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(g,v){return this.variables.hasOwnProperty(v)?this.variables[v](g,v)||"":this.$getDefaultValue(g,v)||""},this.tmStrFormat=function(g,v,f){var m=v.flag||"",b=v.guard;b=new RegExp(b,m.replace(/[^gi]/,""));var C=this.tokenizeTmSnippet(v.fmt,"formatString"),E=this,S=g.replace(b,function(){E.variables.__=arguments;for(var w=E.resolveVariables(C,f),O="E",P=0;P<w.length;P++){var A=w[P];if(typeof A=="object")if(w[P]="",A.changeCase&&A.local){var T=w[P+1];T&&typeof T=="string"&&(A.changeCase=="u"?w[P]=T[0].toUpperCase():w[P]=T[0].toLowerCase(),w[P+1]=T.substr(1))}else A.changeCase&&(O=A.changeCase);else O=="U"?w[P]=A.toUpperCase():O=="L"&&(w[P]=A.toLowerCase())}return w.join("")});return this.variables.__=null,S},this.resolveVariables=function(g,v){for(var f=[],m=0;m<g.length;m++){var b=g[m];if(typeof b=="string")f.push(b);else{if(typeof b!="object")continue;if(b.skip)E(b);else{if(b.processed<m)continue;if(b.text){var C=this.getVariableValue(v,b.text);C&&b.fmtString&&(C=this.tmStrFormat(C,b)),b.processed=m,b.expectIf==null?C&&(f.push(C),E(b)):C?b.skip=b.elseBranch:E(b)}else(b.tabstopId!=null||b.changeCase!=null)&&f.push(b)}}}function E(S){var w=g.indexOf(S,m+1);w!=-1&&(m=w)}return f},this.insertSnippetForSelection=function(g,v){var f=g.getCursorPosition(),m=g.session.getLine(f.row),b=g.session.getTabString(),C=m.match(/^\s*/)[0];f.column<C.length&&(C=C.slice(0,f.column)),v=v.replace(/\r/g,"");var E=this.tokenizeTmSnippet(v);E=this.resolveVariables(E,g),E=E.map(function(M){return M==`
239
+ `?M+C:typeof M=="string"?M.replace(/\t/g,b):M});var S=[];E.forEach(function(M,H){if(typeof M=="object"){var J=M.tabstopId,B=S[J];if(B||(B=S[J]=[],B.index=J,B.value=""),B.indexOf(M)===-1){B.push(M);var q=E.indexOf(M,H+1);if(q!==-1){var K=E.slice(H+1,q),re=K.some(function(se){return typeof se=="object"});re&&!B.value?B.value=K:K.length&&(!B.value||typeof B.value!="string")&&(B.value=K.join(""))}}}}),S.forEach(function(M){M.length=0});var w={};function O(M){for(var H=[],J=0;J<M.length;J++){var B=M[J];if(typeof B=="object"){if(w[B.tabstopId])continue;var q=M.lastIndexOf(B,J-1);B=H[q]||{tabstopId:B.tabstopId}}H[J]=B}return H}for(var P=0;P<E.length;P++){var A=E[P];if(typeof A=="object"){var T=A.tabstopId,L=E.indexOf(A,P+1);if(w[T]){w[T]===A&&(w[T]=null);continue}var D=S[T],Q=typeof D.value=="string"?[D.value]:O(D.value);Q.unshift(P+1,Math.max(0,L-P)),Q.push(A),w[T]=A,E.splice.apply(E,Q),D.indexOf(A)===-1&&D.push(A)}}var G=0,z=0,Y="";E.forEach(function(M){if(typeof M=="string"){var H=M.split(`
240
+ `);H.length>1?(z=H[H.length-1].length,G+=H.length-1):z+=M.length,Y+=M}else M.start?M.end={row:G,column:z}:M.start={row:G,column:z}});var ee=g.getSelectionRange(),W=g.session.replace(ee,Y),U=new d(g),j=g.inVirtualSelectionMode&&g.selection.index;U.addTabstops(S,ee.start,W,j)},this.insertSnippet=function(g,v){var f=this;if(g.inVirtualSelectionMode)return f.insertSnippetForSelection(g,v);g.forEachSelection(function(){f.insertSnippetForSelection(g,v)},null,{keepOrder:!0}),g.tabstopManager&&g.tabstopManager.tabNext()},this.$getScope=function(g){var v=g.session.$mode.$id||"";if(v=v.split("/").pop(),v==="html"||v==="php"){v==="php"&&!g.session.$mode.inlinePhp&&(v="html");var f=g.getCursorPosition(),m=g.session.getState(f.row);typeof m=="object"&&(m=m[0]),m.substring&&(m.substring(0,3)=="js-"?v="javascript":m.substring(0,4)=="css-"?v="css":m.substring(0,4)=="php-"&&(v="php"))}return v},this.getActiveScopes=function(g){var v=this.$getScope(g),f=[v],m=this.snippetMap;return m[v]&&m[v].includeScopes&&f.push.apply(f,m[v].includeScopes),f.push("_"),f},this.expandWithTab=function(g,v){var f=this,m=g.forEachSelection(function(){return f.expandSnippetForSelection(g,v)},null,{keepOrder:!0});return m&&g.tabstopManager&&g.tabstopManager.tabNext(),m},this.expandSnippetForSelection=function(g,v){var f=g.getCursorPosition(),m=g.session.getLine(f.row),b=m.substring(0,f.column),C=m.substr(f.column),E=this.snippetMap,S;return this.getActiveScopes(g).some(function(w){var O=E[w];return O&&(S=this.findMatchingSnippet(O,b,C)),!!S},this),S?(v&&v.dryRun||(g.session.doc.removeInLine(f.row,f.column-S.replaceBefore.length,f.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(g,S.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(g,v,f){for(var m=g.length;m--;){var b=g[m];if(!(b.startRe&&!b.startRe.test(v))&&!(b.endRe&&!b.endRe.test(f))&&!(!b.startRe&&!b.endRe))return b.matchBefore=b.startRe?b.startRe.exec(v):[""],b.matchAfter=b.endRe?b.endRe.exec(f):[""],b.replaceBefore=b.triggerRe?b.triggerRe.exec(v)[0]:"",b.replaceAfter=b.endTriggerRe?b.endTriggerRe.exec(f)[0]:"",b}},this.snippetMap={},this.snippetNameMap={},this.register=function(g,v){var f=this.snippetMap,m=this.snippetNameMap,b=this;g||(g=[]);function C(w){return w&&!/^\^?\(.*\)\$?$|^\\b$/.test(w)&&(w="(?:"+w+")"),w||""}function E(w,O,P){return w=C(w),O=C(O),w=O+w,w&&w[w.length-1]!="$"&&(w=w+"$"),new RegExp(w)}function S(w){w.scope||(w.scope=v||"_"),v=w.scope,f[v]||(f[v]=[],m[v]={});var O=m[v];if(w.name){var P=O[w.name];P&&b.unregister(P),O[w.name]=w}f[v].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=E(w.trigger,w.guard),w.triggerRe=new RegExp(w.trigger,"",!0),w.endRe=E(w.endTrigger,w.endGuard),w.endTriggerRe=new RegExp(w.endTrigger,"",!0))}g&&g.content?S(g):Array.isArray(g)&&g.forEach(S),this._signal("registerSnippets",{scope:v})},this.unregister=function(g,v){var f=this.snippetMap,m=this.snippetNameMap;function b(C){var E=m[C.scope||v];if(E&&E[C.name]){delete E[C.name];var S=f[C.scope||v],w=S&&S.indexOf(C);w>=0&&S.splice(w,1)}}g.content?b(g):Array.isArray(g)&&g.forEach(b)},this.parseSnippetFile=function(g){g=g.replace(/\r/g,"");for(var v=[],f={},m=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,b;b=m.exec(g);){if(b[1])try{f=JSON.parse(b[1]),v.push(f)}catch{}if(b[4])f.content=b[4].replace(/^\t/gm,""),v.push(f),f={};else{var C=b[2],E=b[3];if(C=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;f.guard=S.exec(E)[1],f.trigger=S.exec(E)[1],f.endTrigger=S.exec(E)[1],f.endGuard=S.exec(E)[1]}else C=="snippet"?(f.tabTrigger=E.match(/^\S*/)[0],f.name||(f.name=E)):f[C]=E}}return v},this.getSnippetByName=function(g,v){var f=this.snippetNameMap,m;return this.getActiveScopes(v).some(function(b){var C=f[b];return C&&(m=C[g]),!!m},this),m}}).call(p.prototype);var d=function(g){if(g.tabstopManager)return g.tabstopManager;g.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(g)};(function(){this.attach=function(g){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=g,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(g){var v=g.action[0]=="r",f=g.start,m=g.end,b=f.row,C=m.row,E=C-b,S=m.column-f.column;if(v&&(E=-E,S=-S),!this.$inChange&&v){var w=this.selectedTabstop,O=w&&!w.some(function(L){return u(L.start,f)<=0&&u(L.end,m)>=0});if(O)return this.detach()}for(var P=this.ranges,A=0;A<P.length;A++){var T=P[A];if(!(T.end.row<f.row)){if(v&&u(f,T.start)<0&&u(m,T.end)>0){this.removeRange(T),A--;continue}T.start.row==b&&T.start.column>f.column&&(T.start.column+=S),T.end.row==b&&T.end.column>=f.column&&(T.end.column+=S),T.start.row>=b&&(T.start.row+=E),T.end.row>=b&&(T.end.row+=E),u(T.start,T.end)>0&&this.removeRange(T)}}P.length||this.detach()},this.updateLinkedFields=function(){var g=this.selectedTabstop;if(!(!g||!g.hasLinkedRanges)){this.$inChange=!0;for(var v=this.editor.session,f=v.getTextRange(g.firstNonLinked),m=g.length;m--;){var b=g[m];if(b.linked){var C=t.snippetManager.tmStrFormat(f,b.original);v.replace(b,C)}}this.$inChange=!1}},this.onAfterExec=function(g){g.command&&!g.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var g=this.editor.selection.lead,v=this.editor.selection.anchor,f=this.editor.selection.isEmpty(),m=this.ranges.length;m--;)if(!this.ranges[m].linked){var b=this.ranges[m].contains(g.row,g.column),C=f||this.ranges[m].contains(v.row,v.column);if(b&&C)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(g){var v=this.tabstops.length,f=this.index+(g||1);f=Math.min(Math.max(f,1),v),f==v&&(f=0),this.selectTabstop(f),f===0&&this.detach()},this.selectTabstop=function(g){this.$openTabstops=null;var v=this.tabstops[this.index];if(v&&this.addTabstopMarkers(v),this.index=g,v=this.tabstops[this.index],!(!v||!v.length)){if(this.selectedTabstop=v,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(v.firstNonLinked);else{var f=this.editor.multiSelect;f.toSingleRange(v.firstNonLinked.clone());for(var m=v.length;m--;)v.hasLinkedRanges&&v[m].linked||f.addRange(v[m].clone(),!0);f.ranges[0]&&f.addRange(f.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(g,v,f){if(this.$openTabstops||(this.$openTabstops=[]),!g[0]){var m=a.fromPoints(f,f);_(m.start,v),_(m.end,v),g[0]=[m],g[0].index=0}var b=this.index,C=[b+1,0],E=this.ranges;g.forEach(function(S,w){for(var O=this.$openTabstops[w]||S,P=S.length;P--;){var A=S[P],T=a.fromPoints(A.start,A.end||A.start);y(T.start,v),y(T.end,v),T.original=A,T.tabstop=O,E.push(T),O!=S?O.unshift(T):O[P]=T,A.fmtString?(T.linked=!0,O.hasLinkedRanges=!0):O.firstNonLinked||(O.firstNonLinked=T)}O.firstNonLinked||(O.hasLinkedRanges=!1),O===S&&(C.push(O),this.$openTabstops[w]=O),this.addTabstopMarkers(O)},this),C.length>2&&(this.tabstops.length&&C.push(C.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,C))},this.addTabstopMarkers=function(g){var v=this.editor.session;g.forEach(function(f){f.markerId||(f.markerId=v.addMarker(f,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(g){var v=this.editor.session;g.forEach(function(f){v.removeMarker(f.markerId),f.markerId=null})},this.removeRange=function(g){var v=g.tabstop.indexOf(g);g.tabstop.splice(v,1),v=this.ranges.indexOf(g),this.ranges.splice(v,1),this.editor.session.removeMarker(g.markerId),g.tabstop.length||(v=this.tabstops.indexOf(g.tabstop),v!=-1&&this.tabstops.splice(v,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(g){t.snippetManager&&t.snippetManager.expandWithTab(g)||g.tabstopManager.tabNext(1)},"Shift-Tab":function(g){g.tabstopManager.tabNext(-1)},Esc:function(g){g.tabstopManager.detach()},Return:function(g){return!1}})}).call(d.prototype),s.prototype.onChange;var y=function(g,v){g.row==0&&(g.column+=v.column),g.row+=v.row},_=function(g,v){g.row==v.row&&(g.column-=v.column),g.row-=v.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 p;var x=e("./editor").Editor;(function(){this.insertSnippet=function(g,v){return t.snippetManager.insertSnippet(this,g,v)},this.expandSnippet=function(g){return t.snippetManager.expandWithTab(this,g)}}).call(x.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"),s=e("../lib/lang"),l=e("../lib/dom"),c=function(p){var d=new r(p);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(p){var d=l.createElement("div"),y=new c(d);p&&p.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 _=function(){};y.focus=_,y.$isFocused=!0,y.renderer.$cursorLayer.restartTimer=_,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(C){var E=C.getDocumentPosition();y.selection.moveToPosition(E),v.start.row=v.end.row=E.row,C.stop()});var x,g=new i(-1,0,-1,1/0),v=new i(-1,0,-1,1/0);v.id=y.session.addMarker(v,"ace_active-line","fullLine"),y.setSelectOnHover=function(C){C?g.id&&(y.session.removeMarker(g.id),g.id=null):g.id=y.session.addMarker(g,"ace_line-hover","fullLine")},y.setSelectOnHover(!1),y.on("mousemove",function(C){if(!x){x=C;return}if(!(x.x==C.x&&x.y==C.y)){x=C,x.scrollTop=y.renderer.scrollTop;var E=x.getDocumentPosition().row;g.start.row!=E&&(g.id||y.setRow(E),m(E))}}),y.renderer.on("beforeRender",function(){if(x&&g.start.row!=-1){x.$pos=null;var C=x.getDocumentPosition().row;g.id||y.setRow(C),m(C,!0)}}),y.renderer.on("afterRender",function(){var C=y.getRow(),E=y.renderer.$textLayer,S=E.element.childNodes[C-E.config.firstRow];S!=E.selectedNode&&(E.selectedNode&&l.removeCssClass(E.selectedNode,"ace_selected"),E.selectedNode=S,S&&l.addCssClass(S,"ace_selected"))});var f=function(){m(-1)},m=function(C,E){C!==g.start.row&&(g.start.row=g.end.row=C,E||y.session._emit("changeBackMarker"),y._emit("changeHoverMarker"))};y.getHoveredRow=function(){return g.start.row},a.addListener(y.container,"mouseout",f),y.on("hide",f),y.on("changeSelection",f),y.session.doc.getLength=function(){return y.data.length},y.session.doc.getLine=function(C){var E=y.data[C];return typeof E=="string"?E:E&&E.value||""};var b=y.session.bgTokenizer;return b.$tokenizeRow=function(C){var E=y.data[C],S=[];if(!E)return S;typeof E=="string"&&(E={value:E}),E.caption||(E.caption=E.value||E.name);for(var w=-1,O,P,A=0;A<E.caption.length;A++)P=E.caption[A],O=E.matchMask&1<<A?1:0,w!==O?(S.push({type:E.className||(O?"completion-highlight":""),value:P}),w=O):S[S.length-1].value+=P;if(E.meta){var T=y.renderer.$size.scrollerWidth/y.renderer.layerConfig.characterWidth,L=E.meta;L.length+E.caption.length>T-2&&(L=L.substr(0,T-E.caption.length-3)+"…"),S.push({type:"rightAlignedText",value:L})}return S},b.$updateOnChange=_,b.start=_,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(C){y.setValue(s.stringRepeat(`
241
+ `,C.length),-1),y.data=C||[],y.setRow(0)},y.getData=function(C){return y.data[C]},y.getRow=function(){return v.start.row},y.setRow=function(C){C=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,C)),v.start.row!=C&&(y.selection.clearSelection(),v.start.row=v.end.row=C||0,y.session._emit("changeBackMarker"),y.moveCursorTo(C||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(C,E,S){var w=this.container,O=window.innerHeight,P=window.innerWidth,A=this.renderer,T=A.$maxLines*E*1.4,L=C.top+this.$borderSize,D=L>O/2&&!S;D&&L+E+T>O?(A.$maxPixelHeight=L-2*this.$borderSize,w.style.top="",w.style.bottom=O-L+"px",y.isTopdown=!1):(L+=E,A.$maxPixelHeight=O-L-.2*E,w.style.top=L+"px",w.style.bottom="",y.isTopdown=!0),w.style.display="",this.renderer.$textLayer.checkForSizeChanges();var Q=C.left;Q+w.offsetWidth>P&&(Q=P-w.offsetWidth),w.style.left=Q+"px",this._signal("show"),x=null,y.isOpen=!0},y.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},y.$imageSize=0,y.$borderSize=1,y};l.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 s=0,l=o.length;l===0&&a();for(var c=0;c<l;c++)i(o[c],function(u,p){s++,s===l&&a(u,p)})};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(o,i,a){a=a||r;for(var s=[],l=i-1;l>=0&&a.test(o[l]);l--)s.push(o[l]);return s.reverse().join("")},t.retrieveFollowingIdentifier=function(o,i,a){a=a||r;for(var s=[],l=i;l<o.length&&a.test(o[l]);l++)s.push(o[l]);return s},t.getCompletionPrefix=function(o){var i=o.getCursorPosition(),a=o.session.getLine(i.row),s;return o.completers.forEach((function(l){l.identifierRegexps&&l.identifierRegexps.forEach((function(c){!s&&c&&(s=this.retrievePrecedingIdentifier(a,i.column,c))}).bind(this))}).bind(this)),s||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"),s=e("./lib/dom"),l=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(p){this.insertMatch(),p.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(p,d,y){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),p.keyBinding.addKeyboardHandler(this.keyboardHandler);var _=p.renderer;if(this.popup.setRow(this.autoSelect?0:-1),y)y&&!d&&this.detach();else{this.popup.setTheme(p.getTheme()),this.popup.setFontSize(p.getFontSize());var x=_.layerConfig.lineHeight,g=_.$cursorLayer.getPixelPosition(this.base,!0);g.left-=this.popup.getTextLeftOffset();var v=p.container.getBoundingClientRect();g.top+=v.top-_.layerConfig.offset,g.left+=v.left-p.renderer.scrollLeft,g.left+=_.gutterWidth,this.popup.show(g,x)}},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(p){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(p){var d=document.activeElement,y=this.editor.textInput.getElement(),_=p.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(p.relatedTarget),x=this.popup&&this.popup.container;d!=y&&d.parentNode!=x&&!_&&d!=this.tooltipNode&&p.relatedTarget!=y&&this.detach()},this.mousedownListener=function(p){this.detach()},this.mousewheelListener=function(p){this.detach()},this.goTo=function(p){var d=this.popup.getRow(),y=this.popup.session.getLength()-1;switch(p){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(p,d){if(p||(p=this.popup.getData(this.popup.getRow())),!p)return!1;if(p.completer&&p.completer.insertMatch)p.completer.insertMatch(this.editor,p);else{if(this.completions.filterText)for(var y=this.editor.selection.getAllRanges(),_=0,x;x=y[_];_++)x.start.column-=this.completions.filterText.length,this.editor.session.remove(x);p.snippet?l.insertSnippet(this.editor,p.snippet):this.editor.execCommand("insertstring",p.value||p)}this.detach()},this.commands={Up:function(p){p.completer.goTo("up")},Down:function(p){p.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(p){p.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(p){p.completer.goTo("end")},Esc:function(p){p.completer.detach()},Return:function(p){return p.completer.insertMatch()},"Shift-Return":function(p){p.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(p){var d=p.completer.insertMatch();if(!d&&!p.tabstopManager)p.completer.goTo("down");else return d},PageUp:function(p){p.completer.popup.gotoPageUp()},PageDown:function(p){p.completer.popup.gotoPageDown()}},this.gatherCompletions=function(p,d){var y=p.getSession(),_=p.getCursorPosition(),x=i.getCompletionPrefix(p);this.base=y.doc.createAnchor(_.row,_.column-x.length),this.base.$insertRight=!0;var g=[],v=p.completers.length;return p.completers.forEach(function(f,m){f.getCompletions(p,y,_,x,function(b,C){!b&&C&&(g=g.concat(C)),d(null,{prefix:i.getCompletionPrefix(p),matches:g,finished:--v===0})})}),!0},this.showPopup=function(p){this.editor&&this.detach(),this.activated=!0,this.editor=p,p.completer!=this&&(p.completer&&p.completer.detach(),p.completer=this),p.on("changeSelection",this.changeListener),p.on("blur",this.blurListener),p.on("mousedown",this.mousedownListener),p.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(p){if(p&&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,p);return}var _=this.gatherCompletionsId;this.gatherCompletions(this.editor,(function(x,g){var v=(function(){if(g.finished)return this.detach()}).bind(this),f=g.prefix,m=g&&g.matches;if(!m||!m.length)return v();if(!(f.indexOf(g.prefix)!==0||_!=this.gatherCompletionsId)){this.completions=new u(m),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(f);var b=this.completions.filtered;if(!b.length||b.length==1&&b[0].value==f&&!b[0].snippet)return v();if(this.autoInsert&&b.length==1&&g.finished)return this.insertMatch(b[0]);this.openPopup(this.editor,f,p)}}).bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var p=this.popup,d=p.data,y=d&&(d[p.getHoveredRow()]||d[p.getRow()]),_=null;if(!y||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();if(this.editor.completers.some(function(x){return x.getDocTooltip&&(_=x.getDocTooltip(y)),_}),_||(_=y),typeof _=="string"&&(_={docText:_}),!_||!(_.docHTML||_.docText))return this.hideDocTooltip();this.showDocTooltip(_)},this.showDocTooltip=function(p){this.tooltipNode||(this.tooltipNode=s.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;p.docHTML?d.innerHTML=p.docHTML:p.docText&&(d.textContent=p.docText),d.parentNode||document.body.appendChild(d);var y=this.popup,_=y.container.getBoundingClientRect();d.style.top=y.container.style.top,d.style.bottom=y.container.style.bottom,window.innerWidth-_.right<320?(d.style.right=window.innerWidth-_.left+"px",d.style.left=""):(d.style.left=_.right+1+"px",d.style.right=""),d.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var p=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==p&&this.editor.focus(),this.tooltipNode=null,p.parentNode&&p.parentNode.removeChild(p)}},this.onTooltipClick=function(p){for(var d=p.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(p){p.completer||(p.completer=new c),p.completer.autoInsert=!1,p.completer.autoSelect=!0,p.completer.showPopup(p),p.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(p,d){this.all=p,this.filtered=p,this.filterText=d||"",this.exactMatch=!1};(function(){this.setFilter=function(p){if(p.length>this.filterText&&p.lastIndexOf(this.filterText,0)===0)var d=this.filtered;else var d=this.all;this.filterText=p,d=this.filterCompletions(d,this.filterText),d=d.sort(function(_,x){return x.exactMatch-_.exactMatch||x.score-_.score});var y=null;d=d.filter(function(_){var x=_.snippet||_.caption||_.value;return x===y?!1:(y=x,!0)}),this.filtered=d},this.filterCompletions=function(p,d){var y=[],_=d.toUpperCase(),x=d.toLowerCase();e:for(var g=0,v;v=p[g];g++){var f=v.value||v.caption||v.snippet;if(f){var m=-1,b=0,C=0,E,S;if(this.exactMatch){if(d!==f.substr(0,d.length))continue e}else for(var w=0;w<d.length;w++){var O=f.indexOf(x[w],m+1),P=f.indexOf(_[w],m+1);if(E=O>=0&&(P<0||O<P)?O:P,E<0)continue e;S=E-m-1,S>0&&(m===-1&&(C+=10),C+=S),b=b|1<<E,m=E}v.matchMask=b,v.exactMatch=C?0:1,v.score=(v.score||0)-C,y.push(v)}}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(s,l){var c=s.getTextRange(r.fromPoints({row:0,column:0},l));return c.split(o).length-1}function a(s,l){var c=i(s,l),u=s.getValue().split(o),p=Object.create(null),d=u[c];return u.forEach(function(y,_){if(!(!y||y===d)){var x=Math.abs(c-_),g=u.length-x;p[y]?p[y]=Math.max(g,p[y]):p[y]=g}}),p}t.getCompletions=function(s,l,c,u,p){var d=a(l,c),y=Object.keys(d);p(null,y.map(function(_){return{caption:_,value:_,score:d[_],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"),s=e("../autocomplete/util"),l=e("../autocomplete/text_completer"),c={getCompletions:function(f,m,b,C,E){if(m.$mode.completer)return m.$mode.completer.getCompletions(f,m,b,C,E);var S=f.session.getState(b.row),w=m.$mode.getCompletions(S,m,b,C);E(null,w)}},u={getCompletions:function(f,m,b,C,E){var S=r.snippetMap,w=[];r.getActiveScopes(f).forEach(function(O){for(var P=S[O]||[],A=P.length;A--;){var T=P[A],L=T.name||T.tabTrigger;L&&w.push({caption:L,snippet:T.content,meta:T.tabTrigger&&!T.name?T.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),E(null,w)},getDocTooltip:function(f){f.type=="snippet"&&!f.docHTML&&(f.docHTML=["<b>",a.escapeHTML(f.caption),"</b>","<hr></hr>",a.escapeHTML(f.snippet)].join(""))}},p=[u,l,c];t.setCompleters=function(f){p.length=0,f&&p.push.apply(p,f)},t.addCompleter=function(f){p.push(f)},t.textCompleter=l,t.keyWordCompleter=c,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(f){return r.expandWithTab(f)},bindKey:"Tab"},y=function(f,m){_(m.session.$mode)},_=function(f){var m=f.$id;r.files||(r.files={}),x(m),f.modes&&f.modes.forEach(_)},x=function(f){if(!(!f||r.files[f])){var m=f.replace("mode","snippets");r.files[f]={},i.loadModule(m,function(b){b&&(r.files[f]=b,!b.snippets&&b.snippetText&&(b.snippets=r.parseSnippetFile(b.snippetText)),r.register(b.snippets||[],b.scope),b.includeScopes&&(r.snippetMap[b.scope].includeScopes=b.includeScopes,b.includeScopes.forEach(function(C){x("ace/mode/"+C)})))})}},g=function(f){var m=f.editor,b=m.completer&&m.completer.activated;if(f.command.name==="backspace")b&&!s.getCompletionPrefix(m)&&m.completer.detach();else if(f.command.name==="insertstring"){var C=s.getCompletionPrefix(m);C&&!b&&(m.completer||(m.completer=new o),m.completer.autoInsert=!1,m.completer.showPopup(m))}},v=e("../editor").Editor;e("../config").defineOptions(v.prototype,"editor",{enableBasicAutocompletion:{set:function(f){f?(this.completers||(this.completers=Array.isArray(f)?f:p),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(f){f?(this.completers||(this.completers=Array.isArray(f)?f:p),this.commands.on("afterExec",g)):this.commands.removeListener("afterExec",g)},value:!1},enableSnippets:{set:function(f){f?(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;}',s=e("../keyboard/hash_handler").HashHandler,l=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,">"),p=function(d,y,_){var x=r.createElement("div");x.innerHTML=u,this.element=x.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(_){setTimeout(function(){y.activeInput.focus()},0),i.stopPropagation(_)}),i.addListener(d,"click",function(_){var x=_.target||_.srcElement,g=x.getAttribute("action");g&&y[g]?y[g]():y.$searchBarKb.commands[g]&&y.$searchBarKb.commands[g].exec(y),i.stopPropagation(_)}),i.addCommandKeyListener(d,function(_,x,g){var v=l.keyCodeToString(g),f=y.$searchBarKb.findKeyCommand(x,v);f&&f.exec&&(f.exec(y),i.stopEvent(_))}),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 s([{bindKey:"Esc",name:"closeSearchBar",exec:function(d){d.searchBox.hide()}}]),this.$searchBarKb=new s,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,_){var x=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:_,range:this.searchRange}),g=!x&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",g),this.editor._emit("findSearchBox",{match:!g}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var d=this.editor,y=d.$search.$options.re,_=0,x=0;if(y){var g=this.searchRange?d.session.getTextRange(this.searchRange):d.getValue(),v=d.session.doc.positionToIndex(d.selection.anchor);this.searchRange&&(v-=d.session.doc.positionToIndex(this.searchRange.start));for(var f=y.lastIndex=0,m;(m=y.exec(g))&&(_++,f=m.index,f<=v&&x++,!(_>c||!m[0]&&(y.lastIndex=f+=1,f>=g.length))););}this.searchCounter.textContent=x+" of "+(_>c?c+"+":_)},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(p.prototype),t.SearchBox=p,t.Search=function(d,y){var _=d.searchBox||new p(d);_.show(d.session.getTextRange(),y)}});(function(){ace.acequire(["ace/ext/searchbox"],function(){})})();var fs={},Ym;function kM(){return Ym||(Ym=1,fs.id="ace/mode/json_worker",fs.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,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},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)}});`),fs}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 s=i.getLine(a),l=s.match(/^(\s*\})/);if(!l)return 0;var c=l[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var p=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),p)},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(s){s&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+s.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+s.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(s,l,c){var u=s.getLine(c);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var p=this._getFoldWidgetBase(s,l,c);return!p&&this.startRegionRe.test(u)?"start":p},this.getFoldWidgetRange=function(s,l,c,u){var p=s.getLine(c);if(this.startRegionRe.test(p))return this.getCommentRegionBlock(s,p,c);var _=p.match(this.foldingStartMarker);if(_){var d=_.index;if(_[1])return this.openingBracketBlock(s,_[1],c,d);var y=s.getCommentFoldRange(c,d+_[0].length,1);return y&&!y.isMultiLine()&&(u?y=this.getSectionRange(s,c):l!="all"&&(y=null)),y}if(l!=="markbegin"){var _=p.match(this.foldingStopMarker);if(_){var d=_.index+_[0].length;return _[1]?this.closingBracketBlock(s,_[1],c,d):s.getCommentFoldRange(c,d,-1)}}},this.getSectionRange=function(s,l){var c=s.getLine(l),u=c.search(/\S/),p=l,d=c.length;l=l+1;for(var y=l,_=s.getLength();++l<_;){c=s.getLine(l);var x=c.search(/\S/);if(x!==-1){if(u>x)break;var g=this.getFoldWidgetRange(s,"all",l);if(g){if(g.start.row<=p)break;if(g.isMultiLine())l=g.end.row;else if(u==x)break}y=l}}return new o(p,d,y,s.getLine(y).length)},this.getCommentRegionBlock=function(s,l,c){for(var u=l.search(/\s*$/),p=s.getLength(),d=c,y=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,_=1;++c<p;){l=s.getLine(c);var x=y.exec(l);if(x&&(x[1]?_--:_++,!_))break}var g=c;if(g>d)return new o(d,u,g,l.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,s=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new s,this.foldingRules=new l};r.inherits(u,o),(function(){this.getNextLineIndent=function(p,d,y){var _=this.$getIndent(d);if(p=="start"){var x=d.match(/^.*[\{\(\[]\s*$/);x&&(_+=y)}return _},this.checkOutdent=function(p,d,y){return this.$outdent.checkOutdent(d,y)},this.autoOutdent=function(p,d,y){this.$outdent.autoOutdent(d,y)},this.createWorker=function(p){var d=new c(["ace"],kM(),"JsonWorker");return d.attachToDocument(p.getDocument()),d.on("annotate",function(y){p.setAnnotations(y.data)}),d.on("terminate",function(){p.clearAnnotations()}),d},this.$id="ace/mode/json"}).call(u.prototype),t.Mode=u});const v_=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),LM=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,v_(e,o,r)})},FM=(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 v_(e,i,o)}return null};class DM{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?[]:LM(t,r)}getTokenAt(t){const n=this.session.getTokens(t.lineNumber-1);return n?FM(t.lineNumber,t.column,n):null}}function BM(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function zM(e){if(!e)return!1;for(const t of e.split(`
243
+ `))if(BM(t))return!0;return!1}function qM(e){let t="NONE";const n=[];let r=[],o="";const i=e.trim().split(`
244
+ `);let a;const s=/^\s*$/,l=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^\s*#!/,u=/^([^']*)'/,p=/^((?:[^\\"]|\\.)*)"/,d=/^((?:[^\\"']|\\.)+)/,y=/^\s*curl\s+/,_=/-X ?(GET|HEAD|POST|PUT|DELETE)/,x=/[\s"']https?:\/\//,g=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,v=/[\s"'][^\/ ]+\/+([^\s"']+)/,f=/^.+\s(--data|-d)\s*/,m=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;i.length>0&&c.test(i[0])&&i.shift();function b(){return o.length>0?!0:i.length===0?!1:(o=i.shift().replace(/[\r\n]+/g,`
245
+ `)+`
246
+ `,!0)}function C(){const P=r.pop().replace(/\\([\\"'])/g,"$1");r.push(P)}function E(){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(P){const A=o.match(P);A?(r.push(A[1]),o=o.substr(A[0].length),E()):(r.push(o),o="")}function O(){let P="GET",A="",T;(T=o.match(_))&&(P=T[1]);const L=x.test(o)?g:v;(T=o.match(L))&&(A=T[1]),n.push(P+" /"+A+`
248
+ `),(T=o.match(f))?(o=o.substr(T[0].length),E(),s.test(o)&&(o="")):(t="NONE",o="",n.push(""))}for(;b();)t==="SINGLE_QUOTE"?w(u):t==="DOUBLE_QUOTE"?(w(p),C()):t==="UNQUOTED"?(w(d),r.length&&C(),t==="UNQUOTED"&&(S(),o="")):t==="BODY"?l.test(o)||s.test(o)?S():(r.push(o),o=""):s.test(o)?(t!=="LF"&&(n.push(`
249
+ `),t="LF"),o=""):(a=o.match(l))?(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 y_(e){const t=e.resize,n=be.throttle(()=>{t.call(e,!1);const r=be.get(n,"topRow",0);r!==0&&e.renderer.scrollToLine(r,!1,!1,()=>{})},35);return n}class VM{constructor(t){this.name=t}getTerms(){return[]}match(){return{next:this.next}}}class Sn extends VM{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([],be.values(this._nextDict))}}class Ro extends Sn{constructor(t,n,r){super(t,n),be.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=be.uniq(this.options)}match(t,n,r){return t!==this.name?null:super.match(t,n,r)}}class kn extends Sn{constructor(t,n,r,o,i){super(t,r),this.listGenerator=Array.isArray(n)?function(){return n}:n,this.multiValued=be.isUndefined(o)?!0:o,this.allowNonValidValues=be.isUndefined(i)?!1:i}getTerms(t,n){if(!this.multiValued&&t.otherTokenValues)return[];let r=t.otherTokenValues||[];be.isString(r)&&(r=[r]);let o=be.difference(this.listGenerator(t,n),r);if(this.getDefaultTermMeta()){const i=this.getDefaultTermMeta();o=be.map(o,function(a){return be.isString(a)&&(a={name:a}),be.defaults(a,{meta:i})})}return o}validateTokens(t){if(!this.multiValued&&t.length>1)return!1;const n=this.listGenerator();return!be.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 HM extends Sn{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 WM extends Sn{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 UM extends Sn{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 GM extends Sn{constructor(t,n,r){super(t),this.constants=n,this.patternsAndWildCards=r}getTerms(t,n){const r=[];return be.each(this.constants,function(o){r.push.apply(r,o.getTerms(t,n))}),be.each(this.patternsAndWildCards,function(o){r.push.apply(r,o.getTerms(t,n))}),r}match(t,n,r){const o={next:[]};be.each(this.constants,function(a){const s=a.match(t,n,r);s&&s.next&&o.next.push.apply(o.next,s.next)});const i=n.globalComponentResolver(t,!1);return i&&o.next.push.apply(o.next,i),o.next.length||be.each(this.patternsAndWildCards,function(a){const s=a.match(t,n,r);s&&s.next&&o.next.push.apply(o.next,s.next)}),o}}const vf="__url_path_end__";class KM extends Sn{constructor(t,n){super(t.id,n),this.endpoint=t}match(t,n,r){if(t!==vf||this.endpoint.methods&&be.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,be.isNumber(this.endpoint.priority)&&(o.priority=this.endpoint.priority),o}}class XM extends Ro{constructor(t,n,r){super(t,n),this.template=r,this.name=t}getTerms(){return[{name:this.name,snippet:this.template}]}}class YM{constructor(t){Ep(this,"getTopLevelComponents",function(t){const n=this[t];return n?n.rootComponent.next:[]});["HEAD","GET","PUT","POST","DELETE"].forEach(n=>{this[n]={rootComponent:new Sn("ROOT"),parametrizedComponentFactories:t||{getComponent:()=>{}}}})}addEndpoint(t,n){n.methods.forEach(r=>{let o,i=this[r].rootComponent;n.template&&new XM(t+"[body]",i,n.template);const a=n.url_components||{},s=t.split("/");be.each(s,(l,c)=>{if(l.search(/^{.+}$/)>=0){if(l=l.substr(1,l.length-2),i.getComponent(l)){i=i.getComponent(l);return}(o=a[l])?Array.isArray(o)?o=new kn(l,o,i):be.isObject(o)&&o.type==="list"?o=new kn(l,o.list,i,o.multiValued,o.allow_non_valid):(console.warn("incorrectly configured url component ",l," in endpoint",n),o=new Sn(l)):(o=this[r].parametrizedComponentFactories.getComponent(l))?o=o(l,i):o=new HM(l,i),i=o}else{let u=l,p;for(c++;c<s.length&&(p=s[c],!(p.indexOf("{")>=0));c++)u+="/"+p;i.getComponent(l)?(i=i.getComponent(l),i.addOption(u)):(o=new Ro(l,i,u),i=o)}}),new KM(n,i)})}}const QM=6e4;let yf,Dl={},Hd={},b_={},Bl=[];const JM={};let zl="";function __(e,t){const n=Hd[t]||{};if(!e)return e;typeof e=="string"&&(e=[e]),e=Rt.map(e,function(i){return n[i]?n[i]:[i]});let r=[].concat.apply([],e);r.sort();let o;return r=Rt.map(r,function(i){const a=o===i?null:i;return o=i,a}),r.length>1?r:r[0]}function ZM(e){return e=e.editor.editor.clusterID||zl,[...b_[e]||[]]}function Ji(e,t,n){n=n||zl;const r=Dl[n]||{};let o=[];if(e=__(e,n),typeof e=="string"){const i=r[e];if(!i)return[];if(typeof t=="string"){const a=i[t];o=a||[]}else Rt.each(i,function(a,s){(!t||t.length===0||Rt.inArray(a,t)!==-1)&&o.push(s)}),o=[].concat.apply([],o)}else Rt.each(r,function(i){(!e||e.length===0||Rt.inArray(i,e)!==-1)&&o.push(Ji(i,t,n))}),o=[].concat.apply([],o);return be.uniqBy(o,function(i){return i.name+":"+i.type})}function w_(e,t){const n=Dl[t]||{};let r=[];if(e=__(e,t),typeof e=="string"){const o=n[e];if(!o)return[];Rt.each(o,function(i){r.push(i)})}else Rt.each(n,function(o){(!e||Rt.inArray(o,e)!==-1)&&r.push(w_(o,t))}),r=[].concat.apply([],r);return be.uniq(r)}function Wd(e,t){var i;typeof t!="string"&&(t=((i=t==null?void 0:t.editor)==null?void 0:i.clusterID)||zl);const n=Dl[t]||{},r=Hd[t]||[],o=[];return Rt.each(n,function(a){o.push(a)}),(typeof e>"u"||e)&&Rt.each(r,function(a){o.push(a)}),o}function C_(e,t){if(t.enabled===!1)return[];let n;function r(a){return(t.path||"full")==="full"?Rt.map(a,function(l){return l.name=e+"."+l.name,l}):a}if(t.properties)return n=bf(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=Rt.map(t.fields,function(a,s){return C_(s,a)}),n=r(n),n.unshift(i),n):[i]}function bf(e={}){const t=Rt.map(e,function(n,r){return C_(r,n)});return be.uniqBy(t,function(n){return n.name+":"+n.type})}function ej(e={},t){e=Ud(e),b_[t]=Object.keys(e)}function Ud(e){return e.response_body?JSON.parse(e.response_body):e}function tj(e,t){e=Ud(e);let n={};Rt.each(e,function(r,o){const i={};o.mappings&&be.keys(o).length===1&&(o=o.mappings),Rt.each(o,function(a,s){if(a==="properties"){const l=bf(s);i[a]=l}else i[a]=bf(s.properties)}),n[r]=i}),Dl[t]=n}function nj(e,t){e=Ud(e);let n={};Rt.each(e||{},function(r,o){Rt.each(o.aliases||{},function(i){if(i===r)return;let a=n[i];a||(a=[],n[i]=a),a.push(r)})}),n._all=Wd(!1,t),Hd[t]=n}function ds(e,t,n){const r={fields:"_mapping",indices:"_aliases",templates:"_template",commands:"commands/_search"};if(t[e]===!0)return e==="commands"?IM():NM("GET",r[e],null,{clusterID:n,asSystemRequest:!0});{const o=new Rt.Deferred;return t[e]===!1?o.resolveWith(this,[[JSON.stringify({})]]):o.resolve()}}function rj(){yf&&clearTimeout(yf)}function Pc(e){return typeof e=="string"?JSON.parse(e):e}function x_(e,t,n){rj();const r=ds("fields",t,n),o=ds("indices",t,n),i=ds("templates",t,n),a=ds("commands",t,n);Rt.when(r,o,i,a).done((s,l,c,u)=>{u&&oj(u);let p;s&&(s[0].length>10485760?(console.warn(`Mapping size is larger than 10MB (${s[0].length/1024/1024} MB). Ignoring...`),p="[{}]"):p=s[0],tj(Pc(p),n)),l&&nj(Pc(l[0]),n),c&&ej(Pc(c[0]),n),s&&l&&Rt(JM).trigger("update",[p,l[0]]),yf=setTimeout(()=>{e.getPolling()&&x_(e,e.getAutocomplete(),n)},QM)})}async function oj(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=>{Bl.push(r)})}function ij(e){Bl.push(e)}function aj({editor:e}){const t=[];return Bl.forEach(n=>{t.push(n._source.title)}),t}function sj(e){const t=Bl.filter(n=>n._source.title==e);return t&&t[0]}function lj(e){zl=e}function cj(e){return!(e==="_all"||e[0]!=="_")}class il extends kn{constructor(t,n,r){super(t,Wd,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!be.find(t,cj)}getDefaultTermMeta(){return"index"}getContextKey(){return"indices"}}function uj(e){return be.map(Ji(e.indices,e.types),function(t){return{name:t.name,meta:t.type}})}class Qm extends kn{constructor(t,n,r){super(t,uj,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!be.find(t,function(n){return n.match(/[^\w.?*]/)})}getDefaultTermMeta(){return"field"}getContextKey(){return"fields"}}function fj(e){return w_(e.indices)}function dj(e){return!(e==="_all"||e[0]!=="_")}class Jm extends kn{constructor(t,n,r){super(t,fj,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!be.find(t,dj)}getDefaultTermMeta(){return"type"}getContextKey(){return"types"}}class pj extends Sn{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],be.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 hj extends kn{constructor(t,n){super(t,ZM,n,!0,!0)}getContextKey(){return"template"}}function mj(e){return e[0]==="_"}class Zm extends kn{constructor(t,n,r){super(t,Wd,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!be.find(t,mj)}getDefaultTermMeta(){return"username"}getContextKey(){return"username"}}var gj={exports:{}},S_={},Ri={};(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},n={};n.byteLength=u,n.toByteArray=d,n.fromByteArray=x;for(var r=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;o[45]=62,o[95]=63;function c(f){var m=f.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=f.indexOf("=");b===-1&&(b=m);var C=b===m?0:4-b%4;return[b,C]}function u(f){var m=c(f),b=m[0],C=m[1];return(b+C)*3/4-C}function p(f,m,b){return(m+b)*3/4-b}function d(f){var m,b=c(f),C=b[0],E=b[1],S=new i(p(f,C,E)),w=0,O=E>0?C-4:C,P;for(P=0;P<O;P+=4)m=o[f.charCodeAt(P)]<<18|o[f.charCodeAt(P+1)]<<12|o[f.charCodeAt(P+2)]<<6|o[f.charCodeAt(P+3)],S[w++]=m>>16&255,S[w++]=m>>8&255,S[w++]=m&255;return E===2&&(m=o[f.charCodeAt(P)]<<2|o[f.charCodeAt(P+1)]>>4,S[w++]=m&255),E===1&&(m=o[f.charCodeAt(P)]<<10|o[f.charCodeAt(P+1)]<<4|o[f.charCodeAt(P+2)]>>2,S[w++]=m>>8&255,S[w++]=m&255),S}function y(f){return r[f>>18&63]+r[f>>12&63]+r[f>>6&63]+r[f&63]}function _(f,m,b){for(var C,E=[],S=m;S<b;S+=3)C=(f[S]<<16&16711680)+(f[S+1]<<8&65280)+(f[S+2]&255),E.push(y(C));return E.join("")}function x(f){for(var m,b=f.length,C=b%3,E=[],S=16383,w=0,O=b-C;w<O;w+=S)E.push(_(f,w,w+S>O?O:w+S));return C===1?(m=f[b-1],E.push(r[m>>2]+r[m<<4&63]+"==")):C===2&&(m=(f[b-2]<<8)+f[b-1],E.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),E.join("")}var g={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */g.read=function(f,m,b,C,E){var S,w,O=E*8-C-1,P=(1<<O)-1,A=P>>1,T=-7,L=b?E-1:0,D=b?-1:1,Q=f[m+L];for(L+=D,S=Q&(1<<-T)-1,Q>>=-T,T+=O;T>0;S=S*256+f[m+L],L+=D,T-=8);for(w=S&(1<<-T)-1,S>>=-T,T+=C;T>0;w=w*256+f[m+L],L+=D,T-=8);if(S===0)S=1-A;else{if(S===P)return w?NaN:(Q?-1:1)*(1/0);w=w+Math.pow(2,C),S=S-A}return(Q?-1:1)*w*Math.pow(2,S-C)},g.write=function(f,m,b,C,E,S){var w,O,P,A=S*8-E-1,T=(1<<A)-1,L=T>>1,D=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,Q=C?0:S-1,G=C?1:-1,z=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=T):(w=Math.floor(Math.log(m)/Math.LN2),m*(P=Math.pow(2,-w))<1&&(w--,P*=2),w+L>=1?m+=D/P:m+=D*Math.pow(2,1-L),m*P>=2&&(w++,P/=2),w+L>=T?(O=0,w=T):w+L>=1?(O=(m*P-1)*Math.pow(2,E),w=w+L):(O=m*Math.pow(2,L-1)*Math.pow(2,E),w=0));E>=8;f[b+Q]=O&255,Q+=G,O/=256,E-=8);for(w=w<<E|O,A+=E;A>0;f[b+Q]=w&255,Q+=G,w/=256,A-=8);f[b+Q-G]|=z*128};/*!
252
+ * The buffer module from node.js, for the browser.
253
+ *
254
+ * @author Feross Aboukhadijeh <https://feross.org>
255
+ * @license MIT
256
+ */(function(f){const m=n,b=g,C=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;f.Buffer=T,f.SlowBuffer=M,f.INSPECT_MAX_BYTES=50;const E=2147483647;f.kMaxLength=E;const{Uint8Array:S,ArrayBuffer:w,SharedArrayBuffer:O}=globalThis;T.TYPED_ARRAY_SUPPORT=P(),!T.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 P(){try{const N=new S(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,S.prototype),Object.setPrototypeOf(N,R),N.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}}),Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function A(N){if(N>E)throw new RangeError('The value "'+N+'" is invalid for option "size"');const R=new S(N);return Object.setPrototypeOf(R,T.prototype),R}function T(N,R,$){if(typeof N=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(N)}return L(N,R,$)}T.poolSize=8192;function L(N,R,$){if(typeof N=="string")return z(N,R);if(w.isView(N))return ee(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(Qe(N,w)||N&&Qe(N.buffer,w)||typeof O<"u"&&(Qe(N,O)||N&&Qe(N.buffer,O)))return W(N,R,$);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const V=N.valueOf&&N.valueOf();if(V!=null&&V!==N)return T.from(V,R,$);const te=U(N);if(te)return te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return T.from(N[Symbol.toPrimitive]("string"),R,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}T.from=function(N,R,$){return L(N,R,$)},Object.setPrototypeOf(T.prototype,S.prototype),Object.setPrototypeOf(T,S);function D(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function Q(N,R,$){return D(N),N<=0?A(N):R!==void 0?typeof $=="string"?A(N).fill(R,$):A(N).fill(R):A(N)}T.alloc=function(N,R,$){return Q(N,R,$)};function G(N){return D(N),A(N<0?0:j(N)|0)}T.allocUnsafe=function(N){return G(N)},T.allocUnsafeSlow=function(N){return G(N)};function z(N,R){if((typeof R!="string"||R==="")&&(R="utf8"),!T.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const $=H(N,R)|0;let V=A($);const te=V.write(N,R);return te!==$&&(V=V.slice(0,te)),V}function Y(N){const R=N.length<0?0:j(N.length)|0,$=A(R);for(let V=0;V<R;V+=1)$[V]=N[V]&255;return $}function ee(N){if(Qe(N,S)){const R=new S(N);return W(R.buffer,R.byteOffset,R.byteLength)}return Y(N)}function W(N,R,$){if(R<0||N.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if(N.byteLength<R+($||0))throw new RangeError('"length" is outside of buffer bounds');let V;return R===void 0&&$===void 0?V=new S(N):$===void 0?V=new S(N,R):V=new S(N,R,$),Object.setPrototypeOf(V,T.prototype),V}function U(N){if(T.isBuffer(N)){const R=j(N.length)|0,$=A(R);return $.length===0||N.copy($,0,0,R),$}if(N.length!==void 0)return typeof N.length!="number"||lt(N.length)?A(0):Y(N);if(N.type==="Buffer"&&Array.isArray(N.data))return Y(N.data)}function j(N){if(N>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return N|0}function M(N){return+N!=N&&(N=0),T.alloc(+N)}T.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==T.prototype},T.compare=function(R,$){if(Qe(R,S)&&(R=T.from(R,R.offset,R.byteLength)),Qe($,S)&&($=T.from($,$.offset,$.byteLength)),!T.isBuffer(R)||!T.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===$)return 0;let V=R.length,te=$.length;for(let le=0,ge=Math.min(V,te);le<ge;++le)if(R[le]!==$[le]){V=R[le],te=$[le];break}return V<te?-1:te<V?1:0},T.isEncoding=function(R){switch(String(R).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}},T.concat=function(R,$){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return T.alloc(0);let V;if($===void 0)for($=0,V=0;V<R.length;++V)$+=R[V].length;const te=T.allocUnsafe($);let le=0;for(V=0;V<R.length;++V){let ge=R[V];if(Qe(ge,S))le+ge.length>te.length?(T.isBuffer(ge)||(ge=T.from(ge)),ge.copy(te,le)):S.prototype.set.call(te,ge,le);else if(T.isBuffer(ge))ge.copy(te,le);else throw new TypeError('"list" argument must be an Array of Buffers');le+=ge.length}return te};function H(N,R){if(T.isBuffer(N))return N.length;if(w.isView(N)||Qe(N,w))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);const $=N.length,V=arguments.length>2&&arguments[2]===!0;if(!V&&$===0)return 0;let te=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return Ot(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return gt(N).length;default:if(te)return V?-1:Ot(N).length;R=(""+R).toLowerCase(),te=!0}}T.byteLength=H;function J(N,R,$){let V=!1;if((R===void 0||R<0)&&(R=0),R>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,R>>>=0,$<=R))return"";for(N||(N="utf8");;)switch(N){case"hex":return Ie(this,R,$);case"utf8":case"utf-8":return me(this,R,$);case"ascii":return Me(this,R,$);case"latin1":case"binary":return ce(this,R,$);case"base64":return Z(this,R,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,R,$);default:if(V)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),V=!0}}T.prototype._isBuffer=!0;function B(N,R,$){const V=N[R];N[R]=N[$],N[$]=V}T.prototype.swap16=function(){const R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<R;$+=2)B(this,$,$+1);return this},T.prototype.swap32=function(){const R=this.length;if(R%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<R;$+=4)B(this,$,$+3),B(this,$+1,$+2);return this},T.prototype.swap64=function(){const R=this.length;if(R%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<R;$+=8)B(this,$,$+7),B(this,$+1,$+6),B(this,$+2,$+5),B(this,$+3,$+4);return this},T.prototype.toString=function(){const R=this.length;return R===0?"":arguments.length===0?me(this,0,R):J.apply(this,arguments)},T.prototype.toLocaleString=T.prototype.toString,T.prototype.equals=function(R){if(!T.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:T.compare(this,R)===0},T.prototype.inspect=function(){let R="";const $=f.INSPECT_MAX_BYTES;return R=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(R+=" ... "),"<Buffer "+R+">"},C&&(T.prototype[C]=T.prototype.inspect),T.prototype.compare=function(R,$,V,te,le){if(Qe(R,S)&&(R=T.from(R,R.offset,R.byteLength)),!T.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if($===void 0&&($=0),V===void 0&&(V=R?R.length:0),te===void 0&&(te=0),le===void 0&&(le=this.length),$<0||V>R.length||te<0||le>this.length)throw new RangeError("out of range index");if(te>=le&&$>=V)return 0;if(te>=le)return-1;if($>=V)return 1;if($>>>=0,V>>>=0,te>>>=0,le>>>=0,this===R)return 0;let ge=le-te,Fe=V-$;const Je=Math.min(ge,Fe),et=this.slice(te,le),X=R.slice($,V);for(let ue=0;ue<Je;++ue)if(et[ue]!==X[ue]){ge=et[ue],Fe=X[ue];break}return ge<Fe?-1:Fe<ge?1:0};function q(N,R,$,V,te){if(N.length===0)return-1;if(typeof $=="string"?(V=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,lt($)&&($=te?0:N.length-1),$<0&&($=N.length+$),$>=N.length){if(te)return-1;$=N.length-1}else if($<0)if(te)$=0;else return-1;if(typeof R=="string"&&(R=T.from(R,V)),T.isBuffer(R))return R.length===0?-1:K(N,R,$,V,te);if(typeof R=="number")return R=R&255,typeof S.prototype.indexOf=="function"?te?S.prototype.indexOf.call(N,R,$):S.prototype.lastIndexOf.call(N,R,$):K(N,[R],$,V,te);throw new TypeError("val must be string, number or Buffer")}function K(N,R,$,V,te){let le=1,ge=N.length,Fe=R.length;if(V!==void 0&&(V=String(V).toLowerCase(),V==="ucs2"||V==="ucs-2"||V==="utf16le"||V==="utf-16le")){if(N.length<2||R.length<2)return-1;le=2,ge/=2,Fe/=2,$/=2}function Je(X,ue){return le===1?X[ue]:X.readUInt16BE(ue*le)}let et;if(te){let X=-1;for(et=$;et<ge;et++)if(Je(N,et)===Je(R,X===-1?0:et-X)){if(X===-1&&(X=et),et-X+1===Fe)return X*le}else X!==-1&&(et-=et-X),X=-1}else for($+Fe>ge&&($=ge-Fe),et=$;et>=0;et--){let X=!0;for(let ue=0;ue<Fe;ue++)if(Je(N,et+ue)!==Je(R,ue)){X=!1;break}if(X)return et}return-1}T.prototype.includes=function(R,$,V){return this.indexOf(R,$,V)!==-1},T.prototype.indexOf=function(R,$,V){return q(this,R,$,V,!0)},T.prototype.lastIndexOf=function(R,$,V){return q(this,R,$,V,!1)};function re(N,R,$,V){$=Number($)||0;const te=N.length-$;V?(V=Number(V),V>te&&(V=te)):V=te;const le=R.length;V>le/2&&(V=le/2);let ge;for(ge=0;ge<V;++ge){const Fe=parseInt(R.substr(ge*2,2),16);if(lt(Fe))return ge;N[$+ge]=Fe}return ge}function se(N,R,$,V){return $t(Ot(R,N.length-$),N,$,V)}function k(N,R,$,V){return $t(Dt(R),N,$,V)}function F(N,R,$,V){return $t(gt(R),N,$,V)}function ae(N,R,$,V){return $t(Ut(R,N.length-$),N,$,V)}T.prototype.write=function(R,$,V,te){if($===void 0)te="utf8",V=this.length,$=0;else if(V===void 0&&typeof $=="string")te=$,V=this.length,$=0;else if(isFinite($))$=$>>>0,isFinite(V)?(V=V>>>0,te===void 0&&(te="utf8")):(te=V,V=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const le=this.length-$;if((V===void 0||V>le)&&(V=le),R.length>0&&(V<0||$<0)||$>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,R,$,V);case"utf8":case"utf-8":return se(this,R,$,V);case"ascii":case"latin1":case"binary":return k(this,R,$,V);case"base64":return F(this,R,$,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,R,$,V);default:if(ge)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),ge=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Z(N,R,$){return R===0&&$===N.length?m.fromByteArray(N):m.fromByteArray(N.slice(R,$))}function me(N,R,$){$=Math.min(N.length,$);const V=[];let te=R;for(;te<$;){const le=N[te];let ge=null,Fe=le>239?4:le>223?3:le>191?2:1;if(te+Fe<=$){let Je,et,X,ue;switch(Fe){case 1:le<128&&(ge=le);break;case 2:Je=N[te+1],(Je&192)===128&&(ue=(le&31)<<6|Je&63,ue>127&&(ge=ue));break;case 3:Je=N[te+1],et=N[te+2],(Je&192)===128&&(et&192)===128&&(ue=(le&15)<<12|(Je&63)<<6|et&63,ue>2047&&(ue<55296||ue>57343)&&(ge=ue));break;case 4:Je=N[te+1],et=N[te+2],X=N[te+3],(Je&192)===128&&(et&192)===128&&(X&192)===128&&(ue=(le&15)<<18|(Je&63)<<12|(et&63)<<6|X&63,ue>65535&&ue<1114112&&(ge=ue))}}ge===null?(ge=65533,Fe=1):ge>65535&&(ge-=65536,V.push(ge>>>10&1023|55296),ge=56320|ge&1023),V.push(ge),te+=Fe}return Ce(V)}const pe=4096;function Ce(N){const R=N.length;if(R<=pe)return String.fromCharCode.apply(String,N);let $="",V=0;for(;V<R;)$+=String.fromCharCode.apply(String,N.slice(V,V+=pe));return $}function Me(N,R,$){let V="";$=Math.min(N.length,$);for(let te=R;te<$;++te)V+=String.fromCharCode(N[te]&127);return V}function ce(N,R,$){let V="";$=Math.min(N.length,$);for(let te=R;te<$;++te)V+=String.fromCharCode(N[te]);return V}function Ie(N,R,$){const V=N.length;(!R||R<0)&&(R=0),(!$||$<0||$>V)&&($=V);let te="";for(let le=R;le<$;++le)te+=Tt[N[le]];return te}function Pe(N,R,$){const V=N.slice(R,$);let te="";for(let le=0;le<V.length-1;le+=2)te+=String.fromCharCode(V[le]+V[le+1]*256);return te}T.prototype.slice=function(R,$){const V=this.length;R=~~R,$=$===void 0?V:~~$,R<0?(R+=V,R<0&&(R=0)):R>V&&(R=V),$<0?($+=V,$<0&&($=0)):$>V&&($=V),$<R&&($=R);const te=this.subarray(R,$);return Object.setPrototypeOf(te,T.prototype),te};function Oe(N,R,$){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+R>$)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=this[R],le=1,ge=0;for(;++ge<$&&(le*=256);)te+=this[R+ge]*le;return te},T.prototype.readUintBE=T.prototype.readUIntBE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=this[R+--$],le=1;for(;$>0&&(le*=256);)te+=this[R+--$]*le;return te},T.prototype.readUint8=T.prototype.readUInt8=function(R,$){return R=R>>>0,$||Oe(R,1,this.length),this[R]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(R,$){return R=R>>>0,$||Oe(R,2,this.length),this[R]|this[R+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(R,$){return R=R>>>0,$||Oe(R,2,this.length),this[R]<<8|this[R+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},T.prototype.readBigUInt64LE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=$+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24,le=this[++R]+this[++R]*2**8+this[++R]*2**16+V*2**24;return BigInt(te)+(BigInt(le)<<BigInt(32))}),T.prototype.readBigUInt64BE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=$*2**24+this[++R]*2**16+this[++R]*2**8+this[++R],le=this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+V;return(BigInt(te)<<BigInt(32))+BigInt(le)}),T.prototype.readIntLE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=this[R],le=1,ge=0;for(;++ge<$&&(le*=256);)te+=this[R+ge]*le;return le*=128,te>=le&&(te-=Math.pow(2,8*$)),te},T.prototype.readIntBE=function(R,$,V){R=R>>>0,$=$>>>0,V||Oe(R,$,this.length);let te=$,le=1,ge=this[R+--te];for(;te>0&&(le*=256);)ge+=this[R+--te]*le;return le*=128,ge>=le&&(ge-=Math.pow(2,8*$)),ge},T.prototype.readInt8=function(R,$){return R=R>>>0,$||Oe(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},T.prototype.readInt16LE=function(R,$){R=R>>>0,$||Oe(R,2,this.length);const V=this[R]|this[R+1]<<8;return V&32768?V|4294901760:V},T.prototype.readInt16BE=function(R,$){R=R>>>0,$||Oe(R,2,this.length);const V=this[R+1]|this[R]<<8;return V&32768?V|4294901760:V},T.prototype.readInt32LE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},T.prototype.readInt32BE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},T.prototype.readBigInt64LE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=this[R+4]+this[R+5]*2**8+this[R+6]*2**16+(V<<24);return(BigInt(te)<<BigInt(32))+BigInt($+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24)}),T.prototype.readBigInt64BE=Ge(function(R){R=R>>>0,Ne(R,"offset");const $=this[R],V=this[R+7];($===void 0||V===void 0)&&st(R,this.length-8);const te=($<<24)+this[++R]*2**16+this[++R]*2**8+this[++R];return(BigInt(te)<<BigInt(32))+BigInt(this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+V)}),T.prototype.readFloatLE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),b.read(this,R,!0,23,4)},T.prototype.readFloatBE=function(R,$){return R=R>>>0,$||Oe(R,4,this.length),b.read(this,R,!1,23,4)},T.prototype.readDoubleLE=function(R,$){return R=R>>>0,$||Oe(R,8,this.length),b.read(this,R,!0,52,8)},T.prototype.readDoubleBE=function(R,$){return R=R>>>0,$||Oe(R,8,this.length),b.read(this,R,!1,52,8)};function ve(N,R,$,V,te,le){if(!T.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>te||R<le)throw new RangeError('"value" argument is out of bounds');if($+V>N.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(R,$,V,te){if(R=+R,$=$>>>0,V=V>>>0,!te){const Fe=Math.pow(2,8*V)-1;ve(this,R,$,V,Fe,0)}let le=1,ge=0;for(this[$]=R&255;++ge<V&&(le*=256);)this[$+ge]=R/le&255;return $+V},T.prototype.writeUintBE=T.prototype.writeUIntBE=function(R,$,V,te){if(R=+R,$=$>>>0,V=V>>>0,!te){const Fe=Math.pow(2,8*V)-1;ve(this,R,$,V,Fe,0)}let le=V-1,ge=1;for(this[$+le]=R&255;--le>=0&&(ge*=256);)this[$+le]=R/ge&255;return $+V},T.prototype.writeUint8=T.prototype.writeUInt8=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,1,255,0),this[$]=R&255,$+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,65535,0),this[$]=R&255,this[$+1]=R>>>8,$+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,65535,0),this[$]=R>>>8,this[$+1]=R&255,$+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,4294967295,0),this[$+3]=R>>>24,this[$+2]=R>>>16,this[$+1]=R>>>8,this[$]=R&255,$+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,4294967295,0),this[$]=R>>>24,this[$+1]=R>>>16,this[$+2]=R>>>8,this[$+3]=R&255,$+4};function we(N,R,$,V,te){ze(R,V,te,N,$,7);let le=Number(R&BigInt(4294967295));N[$++]=le,le=le>>8,N[$++]=le,le=le>>8,N[$++]=le,le=le>>8,N[$++]=le;let ge=Number(R>>BigInt(32)&BigInt(4294967295));return N[$++]=ge,ge=ge>>8,N[$++]=ge,ge=ge>>8,N[$++]=ge,ge=ge>>8,N[$++]=ge,$}function Se(N,R,$,V,te){ze(R,V,te,N,$,7);let le=Number(R&BigInt(4294967295));N[$+7]=le,le=le>>8,N[$+6]=le,le=le>>8,N[$+5]=le,le=le>>8,N[$+4]=le;let ge=Number(R>>BigInt(32)&BigInt(4294967295));return N[$+3]=ge,ge=ge>>8,N[$+2]=ge,ge=ge>>8,N[$+1]=ge,ge=ge>>8,N[$]=ge,$+8}T.prototype.writeBigUInt64LE=Ge(function(R,$=0){return we(this,R,$,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=Ge(function(R,$=0){return Se(this,R,$,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(R,$,V,te){if(R=+R,$=$>>>0,!te){const Je=Math.pow(2,8*V-1);ve(this,R,$,V,Je-1,-Je)}let le=0,ge=1,Fe=0;for(this[$]=R&255;++le<V&&(ge*=256);)R<0&&Fe===0&&this[$+le-1]!==0&&(Fe=1),this[$+le]=(R/ge>>0)-Fe&255;return $+V},T.prototype.writeIntBE=function(R,$,V,te){if(R=+R,$=$>>>0,!te){const Je=Math.pow(2,8*V-1);ve(this,R,$,V,Je-1,-Je)}let le=V-1,ge=1,Fe=0;for(this[$+le]=R&255;--le>=0&&(ge*=256);)R<0&&Fe===0&&this[$+le+1]!==0&&(Fe=1),this[$+le]=(R/ge>>0)-Fe&255;return $+V},T.prototype.writeInt8=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,1,127,-128),R<0&&(R=255+R+1),this[$]=R&255,$+1},T.prototype.writeInt16LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,32767,-32768),this[$]=R&255,this[$+1]=R>>>8,$+2},T.prototype.writeInt16BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,2,32767,-32768),this[$]=R>>>8,this[$+1]=R&255,$+2},T.prototype.writeInt32LE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,2147483647,-2147483648),this[$]=R&255,this[$+1]=R>>>8,this[$+2]=R>>>16,this[$+3]=R>>>24,$+4},T.prototype.writeInt32BE=function(R,$,V){return R=+R,$=$>>>0,V||ve(this,R,$,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[$]=R>>>24,this[$+1]=R>>>16,this[$+2]=R>>>8,this[$+3]=R&255,$+4},T.prototype.writeBigInt64LE=Ge(function(R,$=0){return we(this,R,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=Ge(function(R,$=0){return Se(this,R,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ee(N,R,$,V,te,le){if($+V>N.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function Ve(N,R,$,V,te){return R=+R,$=$>>>0,te||Ee(N,R,$,4),b.write(N,R,$,V,23,4),$+4}T.prototype.writeFloatLE=function(R,$,V){return Ve(this,R,$,!0,V)},T.prototype.writeFloatBE=function(R,$,V){return Ve(this,R,$,!1,V)};function He(N,R,$,V,te){return R=+R,$=$>>>0,te||Ee(N,R,$,8),b.write(N,R,$,V,52,8),$+8}T.prototype.writeDoubleLE=function(R,$,V){return He(this,R,$,!0,V)},T.prototype.writeDoubleBE=function(R,$,V){return He(this,R,$,!1,V)},T.prototype.copy=function(R,$,V,te){if(!T.isBuffer(R))throw new TypeError("argument should be a Buffer");if(V||(V=0),!te&&te!==0&&(te=this.length),$>=R.length&&($=R.length),$||($=0),te>0&&te<V&&(te=V),te===V||R.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=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),R.length-$<te-V&&(te=R.length-$+V);const le=te-V;return this===R&&typeof S.prototype.copyWithin=="function"?this.copyWithin($,V,te):S.prototype.set.call(R,this.subarray(V,te),$),le},T.prototype.fill=function(R,$,V,te){if(typeof R=="string"){if(typeof $=="string"?(te=$,$=0,V=this.length):typeof V=="string"&&(te=V,V=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!T.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if(R.length===1){const ge=R.charCodeAt(0);(te==="utf8"&&ge<128||te==="latin1")&&(R=ge)}}else typeof R=="number"?R=R&255:typeof R=="boolean"&&(R=Number(R));if($<0||this.length<$||this.length<V)throw new RangeError("Out of range index");if(V<=$)return this;$=$>>>0,V=V===void 0?this.length:V>>>0,R||(R=0);let le;if(typeof R=="number")for(le=$;le<V;++le)this[le]=R;else{const ge=T.isBuffer(R)?R:T.from(R,te),Fe=ge.length;if(Fe===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(le=0;le<V-$;++le)this[le+$]=ge[le%Fe]}return this};const Xe={};function ft(N,R,$){Xe[N]=class extends ${constructor(){super(),Object.defineProperty(this,"message",{value:R.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${N}]`,this.stack,delete this.name}get code(){return N}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${N}]: ${this.message}`}}}ft("ERR_BUFFER_OUT_OF_BOUNDS",function(N){return N?`${N} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ft("ERR_INVALID_ARG_TYPE",function(N,R){return`The "${N}" argument must be of type number. Received type ${typeof R}`},TypeError),ft("ERR_OUT_OF_RANGE",function(N,R,$){let V=`The value of "${N}" is out of range.`,te=$;return Number.isInteger($)&&Math.abs($)>2**32?te=mt(String($)):typeof $=="bigint"&&(te=String($),($>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))&&(te=mt(te)),te+="n"),V+=` It must be ${R}. Received ${te}`,V},RangeError);function mt(N){let R="",$=N.length;const V=N[0]==="-"?1:0;for(;$>=V+4;$-=3)R=`_${N.slice($-3,$)}${R}`;return`${N.slice(0,$)}${R}`}function ct(N,R,$){Ne(R,"offset"),(N[R]===void 0||N[R+$]===void 0)&&st(R,N.length-($+1))}function ze(N,R,$,V,te,le){if(N>$||N<R){const ge=typeof R=="bigint"?"n":"";let Fe;throw R===0||R===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 Xe.ERR_OUT_OF_RANGE("value",Fe,N)}ct(V,te,le)}function Ne(N,R){if(typeof N!="number")throw new Xe.ERR_INVALID_ARG_TYPE(R,"number",N)}function st(N,R,$){throw Math.floor(N)!==N?(Ne(N,$),new Xe.ERR_OUT_OF_RANGE("offset","an integer",N)):R<0?new Xe.ERR_BUFFER_OUT_OF_BOUNDS:new Xe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${R}`,N)}const rt=/[^+/0-9A-Za-z-_]/g;function Ye(N){if(N=N.split("=")[0],N=N.trim().replace(rt,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function Ot(N,R){R=R||1/0;let $;const V=N.length;let te=null;const le=[];for(let ge=0;ge<V;++ge){if($=N.charCodeAt(ge),$>55295&&$<57344){if(!te){if($>56319){(R-=3)>-1&&le.push(239,191,189);continue}else if(ge+1===V){(R-=3)>-1&&le.push(239,191,189);continue}te=$;continue}if($<56320){(R-=3)>-1&&le.push(239,191,189),te=$;continue}$=(te-55296<<10|$-56320)+65536}else te&&(R-=3)>-1&&le.push(239,191,189);if(te=null,$<128){if((R-=1)<0)break;le.push($)}else if($<2048){if((R-=2)<0)break;le.push($>>6|192,$&63|128)}else if($<65536){if((R-=3)<0)break;le.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((R-=4)<0)break;le.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return le}function Dt(N){const R=[];for(let $=0;$<N.length;++$)R.push(N.charCodeAt($)&255);return R}function Ut(N,R){let $,V,te;const le=[];for(let ge=0;ge<N.length&&!((R-=2)<0);++ge)$=N.charCodeAt(ge),V=$>>8,te=$%256,le.push(te),le.push(V);return le}function gt(N){return m.toByteArray(Ye(N))}function $t(N,R,$,V){let te;for(te=0;te<V&&!(te+$>=R.length||te>=N.length);++te)R[te+$]=N[te];return te}function Qe(N,R){return N instanceof R||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===R.name}function lt(N){return N!==N}const Tt=function(){const N="0123456789abcdef",R=new Array(256);for(let $=0;$<16;++$){const V=$*16;for(let te=0;te<16;++te)R[V+te]=N[$]+N[te]}return R}();function Ge(N){return typeof BigInt>"u"?ke:N}function ke(){throw new Error("BigInt not supported")}})(t);const v=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=v,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(Ri);const mo=Hf(Ri);var E_={exports:{}},Gd={};(function(e){e.fetch=o(bt.fetch)&&o(bt.ReadableStream),e.writableStream=o(bt.WritableStream),e.abortController=o(bt.AbortController);var t;function n(){if(t!==void 0)return t;if(bt.XMLHttpRequest){t=new bt.XMLHttpRequest;try{t.open("GET",bt.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})(Gd);var _f={exports:{}};typeof Object.create=="function"?_f.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_f.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 Qr=_f.exports,ql={},wf={exports:{}},Kd={exports:{}},ci=typeof Reflect=="object"?Reflect:null,eg=ci&&typeof ci.apply=="function"?ci.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},js;ci&&typeof ci.ownKeys=="function"?js=ci.ownKeys:Object.getOwnPropertySymbols?js=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:js=function(t){return Object.getOwnPropertyNames(t)};function vj(e){console&&console.warn&&console.warn(e)}var R_=Number.isNaN||function(t){return t!==t};function xt(){xt.init.call(this)}Kd.exports=xt;Kd.exports.once=wj;xt.EventEmitter=xt;xt.prototype._events=void 0;xt.prototype._eventsCount=0;xt.prototype._maxListeners=void 0;var tg=10;function Vl(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(xt,"defaultMaxListeners",{enumerable:!0,get:function(){return tg},set:function(e){if(typeof e!="number"||e<0||R_(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");tg=e}});xt.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};xt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||R_(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 O_(e){return e._maxListeners===void 0?xt.defaultMaxListeners:e._maxListeners}xt.prototype.getMaxListeners=function(){return O_(this)};xt.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 s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[t];if(l===void 0)return!1;if(typeof l=="function")eg(l,this,n);else for(var c=l.length,u=I_(l,c),r=0;r<c;++r)eg(u[r],this,n);return!0};function $_(e,t,n,r){var o,i,a;if(Vl(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=O_(e),o>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,vj(s)}return e}xt.prototype.addListener=function(t,n){return $_(this,t,n,!1)};xt.prototype.on=xt.prototype.addListener;xt.prototype.prependListener=function(t,n){return $_(this,t,n,!0)};function yj(){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 T_(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=yj.bind(r);return o.listener=n,r.wrapFn=o,o}xt.prototype.once=function(t,n){return Vl(n),this.on(t,T_(this,t,n)),this};xt.prototype.prependOnceListener=function(t,n){return Vl(n),this.prependListener(t,T_(this,t,n)),this};xt.prototype.removeListener=function(t,n){var r,o,i,a,s;if(Vl(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){s=r[a].listener,i=a;break}if(i<0)return this;i===0?r.shift():bj(r,i),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit("removeListener",t,s||n)}return this};xt.prototype.off=xt.prototype.removeListener;xt.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 P_(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?_j(o):I_(o,o.length)}xt.prototype.listeners=function(t){return P_(this,t,!0)};xt.prototype.rawListeners=function(t){return P_(this,t,!1)};xt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):N_.call(e,t)};xt.prototype.listenerCount=N_;function N_(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}xt.prototype.eventNames=function(){return this._eventsCount>0?js(this._events):[]};function I_(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function bj(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function _j(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function wj(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))}A_(e,t,i,{once:!0}),t!=="error"&&Cj(e,o,{once:!0})})}function Cj(e,t,n){typeof e.on=="function"&&A_(e,"error",t,n)}function A_(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 Xd=Kd.exports,M_=Xd.EventEmitter,Yd={},j_={},k_=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},xj=k_,Qd=function(){return xj()&&!!Symbol.toStringTag},Sj=Error,Ej=EvalError,Rj=RangeError,Oj=ReferenceError,L_=SyntaxError,Fa=TypeError,$j=URIError,ng=typeof Symbol<"u"&&Symbol,Tj=k_,Pj=function(){return typeof ng!="function"||typeof Symbol!="function"||typeof ng("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Tj()},Nc={__proto__:null,foo:{}},Nj=Object,Ij=function(){return{__proto__:Nc}.foo===Nc.foo&&!(Nc instanceof Nj)},Aj="Function.prototype.bind called on incompatible ",Mj=Object.prototype.toString,jj=Math.max,kj="[object Function]",rg=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},Lj=function(t,n){for(var r=[],o=n,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},Fj=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},Dj=function(t){var n=this;if(typeof n!="function"||Mj.apply(n)!==kj)throw new TypeError(Aj+n);for(var r=Lj(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,rg(r,arguments));return Object(u)===u?u:this}return n.apply(t,rg(r,arguments))},a=jj(0,n.length-r.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(o=Function("binder","return function ("+Fj(s,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,o.prototype=new c,c.prototype=null}return o},Bj=Dj,Jd=Function.prototype.bind||Bj,zj=Function.prototype.call,qj=Object.prototype.hasOwnProperty,Vj=Jd,Hj=Vj.call(zj,qj),ot,Wj=Sj,Uj=Ej,Gj=Rj,Kj=Oj,mi=L_,ui=Fa,Xj=$j,F_=Function,Ic=function(e){try{return F_('"use strict"; return ('+e+").constructor;")()}catch{}},yo=Object.getOwnPropertyDescriptor;if(yo)try{yo({},"")}catch{yo=null}var Ac=function(){throw new ui},Yj=yo?function(){try{return arguments.callee,Ac}catch{try{return yo(arguments,"callee").get}catch{return Ac}}}():Ac,Ko=Pj(),Qj=Ij(),Jt=Object.getPrototypeOf||(Qj?function(e){return e.__proto__}:null),Zo={},Jj=typeof Uint8Array>"u"||!Jt?ot:Jt(Uint8Array),bo={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ot:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ot:ArrayBuffer,"%ArrayIteratorPrototype%":Ko&&Jt?Jt([][Symbol.iterator]()):ot,"%AsyncFromSyncIteratorPrototype%":ot,"%AsyncFunction%":Zo,"%AsyncGenerator%":Zo,"%AsyncGeneratorFunction%":Zo,"%AsyncIteratorPrototype%":Zo,"%Atomics%":typeof Atomics>"u"?ot:Atomics,"%BigInt%":typeof BigInt>"u"?ot:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ot:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ot:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ot:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Wj,"%eval%":eval,"%EvalError%":Uj,"%Float32Array%":typeof Float32Array>"u"?ot:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ot:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ot:FinalizationRegistry,"%Function%":F_,"%GeneratorFunction%":Zo,"%Int8Array%":typeof Int8Array>"u"?ot:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ot:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ot:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ko&&Jt?Jt(Jt([][Symbol.iterator]())):ot,"%JSON%":typeof JSON=="object"?JSON:ot,"%Map%":typeof Map>"u"?ot:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ko||!Jt?ot:Jt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ot:Promise,"%Proxy%":typeof Proxy>"u"?ot:Proxy,"%RangeError%":Gj,"%ReferenceError%":Kj,"%Reflect%":typeof Reflect>"u"?ot:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ot:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ko||!Jt?ot:Jt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ot:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ko&&Jt?Jt(""[Symbol.iterator]()):ot,"%Symbol%":Ko?Symbol:ot,"%SyntaxError%":mi,"%ThrowTypeError%":Yj,"%TypedArray%":Jj,"%TypeError%":ui,"%Uint8Array%":typeof Uint8Array>"u"?ot:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ot:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ot:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ot:Uint32Array,"%URIError%":Xj,"%WeakMap%":typeof WeakMap>"u"?ot:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ot:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ot:WeakSet};if(Jt)try{null.error}catch(e){var Zj=Jt(Jt(e));bo["%Error.prototype%"]=Zj}var e2=function e(t){var n;if(t==="%AsyncFunction%")n=Ic("async function () {}");else if(t==="%GeneratorFunction%")n=Ic("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Ic("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Jt&&(n=Jt(o.prototype))}return bo[t]=n,n},og={__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"]},Da=Jd,al=Hj,t2=Da.call(Function.call,Array.prototype.concat),n2=Da.call(Function.apply,Array.prototype.splice),ig=Da.call(Function.call,String.prototype.replace),sl=Da.call(Function.call,String.prototype.slice),r2=Da.call(Function.call,RegExp.prototype.exec),o2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,i2=/\\(\\)?/g,a2=function(t){var n=sl(t,0,1),r=sl(t,-1);if(n==="%"&&r!=="%")throw new mi("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new mi("invalid intrinsic syntax, expected opening `%`");var o=[];return ig(t,o2,function(i,a,s,l){o[o.length]=s?ig(l,i2,"$1"):a||i}),o},s2=function(t,n){var r=t,o;if(al(og,r)&&(o=og[r],r="%"+o[0]+"%"),al(bo,r)){var i=bo[r];if(i===Zo&&(i=e2(r)),typeof i>"u"&&!n)throw new ui("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new mi("intrinsic "+t+" does not exist!")},Oi=function(t,n){if(typeof t!="string"||t.length===0)throw new ui("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new ui('"allowMissing" argument must be a boolean');if(r2(/^%?[^%]*%?$/,t)===null)throw new mi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=a2(t),o=r.length>0?r[0]:"",i=s2("%"+o+"%",n),a=i.name,s=i.value,l=!1,c=i.alias;c&&(o=c[0],n2(r,t2([0,1],c)));for(var u=1,p=!0;u<r.length;u+=1){var d=r[u],y=sl(d,0,1),_=sl(d,-1);if((y==='"'||y==="'"||y==="`"||_==='"'||_==="'"||_==="`")&&y!==_)throw new mi("property names with quotes must have matching quotes");if((d==="constructor"||!p)&&(l=!0),o+="."+d,a="%"+o+"%",al(bo,a))s=bo[a];else if(s!=null){if(!(d in s)){if(!n)throw new ui("base intrinsic for "+t+" exists, but the property is not available.");return}if(yo&&u+1>=r.length){var x=yo(s,d);p=!!x,p&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[d]}else p=al(s,d),s=s[d];p&&!l&&(bo[a]=s)}}return s},D_={exports:{}},Mc,ag;function Zd(){if(ag)return Mc;ag=1;var e=Oi,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Mc=t,Mc}var l2=Oi,ks=l2("%Object.getOwnPropertyDescriptor%",!0);if(ks)try{ks([],"length")}catch{ks=null}var ep=ks,sg=Zd(),c2=L_,Xo=Fa,lg=ep,u2=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Xo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Xo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Xo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Xo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Xo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Xo("`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,s=arguments.length>6?arguments[6]:!1,l=!!lg&&lg(t,n);if(sg)sg(t,n,{configurable:a===null&&l?l.configurable:!a,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(s||!o&&!i&&!a)t[n]=r;else throw new c2("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Cf=Zd(),B_=function(){return!!Cf};B_.hasArrayLengthDefineBug=function(){if(!Cf)return null;try{return Cf([],"length",{value:1}).length!==1}catch{return!0}};var f2=B_,d2=Oi,cg=u2,p2=f2(),ug=ep,fg=Fa,h2=d2("%Math.floor%"),m2=function(t,n){if(typeof t!="function")throw new fg("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||h2(n)!==n)throw new fg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&ug){var a=ug(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(p2?cg(t,"length",n,!0,!0):cg(t,"length",n)),t};(function(e){var t=Jd,n=Oi,r=m2,o=Fa,i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(a,i),l=Zd(),c=n("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new o("a function is required");var y=s(t,a,arguments);return r(y,1+c(0,d.length-(arguments.length-1)),!0)};var u=function(){return s(t,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u})(D_);var z_=D_.exports,q_=Oi,V_=z_,g2=V_(q_("String.prototype.indexOf")),tp=function(t,n){var r=q_(t,!!n);return typeof r=="function"&&g2(t,".prototype.")>-1?V_(r):r},v2=Qd(),y2=tp,xf=y2("Object.prototype.toString"),Hl=function(t){return v2&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:xf(t)==="[object Arguments]"},H_=function(t){return Hl(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&xf(t)!=="[object Array]"&&xf(t.callee)==="[object Function]"},b2=function(){return Hl(arguments)}();Hl.isLegacyArguments=H_;var _2=b2?Hl:H_,w2=Object.prototype.toString,C2=Function.prototype.toString,x2=/^\s*(?:function)?\*/,W_=Qd(),jc=Object.getPrototypeOf,S2=function(){if(!W_)return!1;try{return Function("return function*() {}")()}catch{}},kc,E2=function(t){if(typeof t!="function")return!1;if(x2.test(C2.call(t)))return!0;if(!W_){var n=w2.call(t);return n==="[object GeneratorFunction]"}if(!jc)return!1;if(typeof kc>"u"){var r=S2();kc=r?jc(r):!1}return jc(t)===kc},U_=Function.prototype.toString,ii=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Sf,Ls;if(typeof ii=="function"&&typeof Object.defineProperty=="function")try{Sf=Object.defineProperty({},"length",{get:function(){throw Ls}}),Ls={},ii(function(){throw 42},null,Sf)}catch(e){e!==Ls&&(ii=null)}else ii=null;var R2=/^\s*class\b/,Ef=function(t){try{var n=U_.call(t);return R2.test(n)}catch{return!1}},Lc=function(t){try{return Ef(t)?!1:(U_.call(t),!0)}catch{return!1}},Fs=Object.prototype.toString,O2="[object Object]",$2="[object Function]",T2="[object GeneratorFunction]",P2="[object HTMLAllCollection]",N2="[object HTML document.all class]",I2="[object HTMLCollection]",A2=typeof Symbol=="function"&&!!Symbol.toStringTag,M2=!(0 in[,]),Rf=function(){return!1};if(typeof document=="object"){var j2=document.all;Fs.call(j2)===Fs.call(document.all)&&(Rf=function(t){if((M2||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=Fs.call(t);return(n===P2||n===N2||n===I2||n===O2)&&t("")==null}catch{}return!1})}var k2=ii?function(t){if(Rf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ii(t,null,Sf)}catch(n){if(n!==Ls)return!1}return!Ef(t)&&Lc(t)}:function(t){if(Rf(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(A2)return Lc(t);if(Ef(t))return!1;var n=Fs.call(t);return n!==$2&&n!==T2&&!/^\[object HTML/.test(n)?!1:Lc(t)},L2=k2,F2=Object.prototype.toString,G_=Object.prototype.hasOwnProperty,D2=function(t,n,r){for(var o=0,i=t.length;o<i;o++)G_.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},B2=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)},z2=function(t,n,r){for(var o in t)G_.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},q2=function(t,n,r){if(!L2(n))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),F2.call(t)==="[object Array]"?D2(t,n,o):typeof t=="string"?B2(t,n,o):z2(t,n,o)},V2=q2,H2=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Fc=H2,W2=typeof globalThis>"u"?bt:globalThis,U2=function(){for(var t=[],n=0;n<Fc.length;n++)typeof W2[Fc[n]]=="function"&&(t[t.length]=Fc[n]);return t},ll=V2,G2=U2,dg=z_,np=tp,Ds=ep,K2=np("Object.prototype.toString"),K_=Qd(),pg=typeof globalThis>"u"?bt:globalThis,Of=G2(),rp=np("String.prototype.slice"),Dc=Object.getPrototypeOf,X2=np("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},cl={__proto__:null};K_&&Ds&&Dc?ll(Of,function(e){var t=new pg[e];if(Symbol.toStringTag in t){var n=Dc(t),r=Ds(n,Symbol.toStringTag);if(!r){var o=Dc(n);r=Ds(o,Symbol.toStringTag)}cl["$"+e]=dg(r.get)}}):ll(Of,function(e){var t=new pg[e],n=t.slice||t.set;n&&(cl["$"+e]=dg(n))});var Y2=function(t){var n=!1;return ll(cl,function(r,o){if(!n)try{"$"+r(t)===o&&(n=rp(o,1))}catch{}}),n},Q2=function(t){var n=!1;return ll(cl,function(r,o){if(!n)try{r(t),n=rp(o,1)}catch{}}),n},X_=function(t){if(!t||typeof t!="object")return!1;if(!K_){var n=rp(K2(t),8,-1);return X2(Of,n)>-1?n:n!=="Object"?!1:Q2(t)}return Ds?Y2(t):null},J2=X_,Z2=function(t){return!!J2(t)};(function(e){var t=_2,n=E2,r=X_,o=Z2;function i(ce){return ce.call.bind(ce)}var a=typeof BigInt<"u",s=typeof Symbol<"u",l=i(Object.prototype.toString),c=i(Number.prototype.valueOf),u=i(String.prototype.valueOf),p=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(s)var y=i(Symbol.prototype.valueOf);function _(ce,Ie){if(typeof ce!="object")return!1;try{return Ie(ce),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=o;function x(ce){return typeof Promise<"u"&&ce instanceof Promise||ce!==null&&typeof ce=="object"&&typeof ce.then=="function"&&typeof ce.catch=="function"}e.isPromise=x;function g(ce){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ce):o(ce)||M(ce)}e.isArrayBufferView=g;function v(ce){return r(ce)==="Uint8Array"}e.isUint8Array=v;function f(ce){return r(ce)==="Uint8ClampedArray"}e.isUint8ClampedArray=f;function m(ce){return r(ce)==="Uint16Array"}e.isUint16Array=m;function b(ce){return r(ce)==="Uint32Array"}e.isUint32Array=b;function C(ce){return r(ce)==="Int8Array"}e.isInt8Array=C;function E(ce){return r(ce)==="Int16Array"}e.isInt16Array=E;function S(ce){return r(ce)==="Int32Array"}e.isInt32Array=S;function w(ce){return r(ce)==="Float32Array"}e.isFloat32Array=w;function O(ce){return r(ce)==="Float64Array"}e.isFloat64Array=O;function P(ce){return r(ce)==="BigInt64Array"}e.isBigInt64Array=P;function A(ce){return r(ce)==="BigUint64Array"}e.isBigUint64Array=A;function T(ce){return l(ce)==="[object Map]"}T.working=typeof Map<"u"&&T(new Map);function L(ce){return typeof Map>"u"?!1:T.working?T(ce):ce instanceof Map}e.isMap=L;function D(ce){return l(ce)==="[object Set]"}D.working=typeof Set<"u"&&D(new Set);function Q(ce){return typeof Set>"u"?!1:D.working?D(ce):ce instanceof Set}e.isSet=Q;function G(ce){return l(ce)==="[object WeakMap]"}G.working=typeof WeakMap<"u"&&G(new WeakMap);function z(ce){return typeof WeakMap>"u"?!1:G.working?G(ce):ce instanceof WeakMap}e.isWeakMap=z;function Y(ce){return l(ce)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function ee(ce){return Y(ce)}e.isWeakSet=ee;function W(ce){return l(ce)==="[object ArrayBuffer]"}W.working=typeof ArrayBuffer<"u"&&W(new ArrayBuffer);function U(ce){return typeof ArrayBuffer>"u"?!1:W.working?W(ce):ce instanceof ArrayBuffer}e.isArrayBuffer=U;function j(ce){return l(ce)==="[object DataView]"}j.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&j(new DataView(new ArrayBuffer(1),0,1));function M(ce){return typeof DataView>"u"?!1:j.working?j(ce):ce instanceof DataView}e.isDataView=M;var H=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(ce){return l(ce)==="[object SharedArrayBuffer]"}function B(ce){return typeof H>"u"?!1:(typeof J.working>"u"&&(J.working=J(new H)),J.working?J(ce):ce instanceof H)}e.isSharedArrayBuffer=B;function q(ce){return l(ce)==="[object AsyncFunction]"}e.isAsyncFunction=q;function K(ce){return l(ce)==="[object Map Iterator]"}e.isMapIterator=K;function re(ce){return l(ce)==="[object Set Iterator]"}e.isSetIterator=re;function se(ce){return l(ce)==="[object Generator]"}e.isGeneratorObject=se;function k(ce){return l(ce)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=k;function F(ce){return _(ce,c)}e.isNumberObject=F;function ae(ce){return _(ce,u)}e.isStringObject=ae;function Z(ce){return _(ce,p)}e.isBooleanObject=Z;function me(ce){return a&&_(ce,d)}e.isBigIntObject=me;function pe(ce){return s&&_(ce,y)}e.isSymbolObject=pe;function Ce(ce){return F(ce)||ae(ce)||Z(ce)||me(ce)||pe(ce)}e.isBoxedPrimitive=Ce;function Me(ce){return typeof Uint8Array<"u"&&(U(ce)||B(ce))}e.isAnyArrayBuffer=Me,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ce){Object.defineProperty(e,ce,{enumerable:!1,value:function(){throw new Error(ce+" is not supported in userland")}})})})(j_);var ek=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(M){for(var H=Object.keys(M),J={},B=0;B<H.length;B++)J[H[B]]=Object.getOwnPropertyDescriptor(M,H[B]);return J},n=/%[sdj%]/g;e.format=function(j){if(!C(j)){for(var M=[],H=0;H<arguments.length;H++)M.push(a(arguments[H]));return M.join(" ")}for(var H=1,J=arguments,B=J.length,q=String(j).replace(n,function(re){if(re==="%%")return"%";if(H>=B)return re;switch(re){case"%s":return String(J[H++]);case"%d":return Number(J[H++]);case"%j":try{return JSON.stringify(J[H++])}catch{return"[Circular]"}default:return re}}),K=J[H];H<B;K=J[++H])f(K)||!O(K)?q+=" "+K:q+=" "+a(K);return q},e.deprecate=function(j,M){if(typeof ne<"u"&&ne.noDeprecation===!0)return j;if(typeof ne>"u")return function(){return e.deprecate(j,M).apply(this,arguments)};var H=!1;function J(){if(!H){if(ne.throwDeprecation)throw new Error(M);ne.traceDeprecation?console.trace(M):console.error(M),H=!0}return j.apply(this,arguments)}return J};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(j){if(j=j.toUpperCase(),!r[j])if(o.test(j)){var M=ne.pid;r[j]=function(){var H=e.format.apply(e,arguments);console.error("%s %d: %s",j,M,H)}}else r[j]=function(){};return r[j]};function a(j,M){var H={seen:[],stylize:l};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),v(M)?H.showHidden=M:M&&e._extend(H,M),S(H.showHidden)&&(H.showHidden=!1),S(H.depth)&&(H.depth=2),S(H.colors)&&(H.colors=!1),S(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=s),u(H,j,H.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 s(j,M){var H=a.styles[M];return H?"\x1B["+a.colors[H][0]+"m"+j+"\x1B["+a.colors[H][1]+"m":j}function l(j,M){return j}function c(j){var M={};return j.forEach(function(H,J){M[H]=!0}),M}function u(j,M,H){if(j.customInspect&&M&&T(M.inspect)&&M.inspect!==e.inspect&&!(M.constructor&&M.constructor.prototype===M)){var J=M.inspect(H,j);return C(J)||(J=u(j,J,H)),J}var B=p(j,M);if(B)return B;var q=Object.keys(M),K=c(q);if(j.showHidden&&(q=Object.getOwnPropertyNames(M)),A(M)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return d(M);if(q.length===0){if(T(M)){var re=M.name?": "+M.name:"";return j.stylize("[Function"+re+"]","special")}if(w(M))return j.stylize(RegExp.prototype.toString.call(M),"regexp");if(P(M))return j.stylize(Date.prototype.toString.call(M),"date");if(A(M))return d(M)}var se="",k=!1,F=["{","}"];if(g(M)&&(k=!0,F=["[","]"]),T(M)){var ae=M.name?": "+M.name:"";se=" [Function"+ae+"]"}if(w(M)&&(se=" "+RegExp.prototype.toString.call(M)),P(M)&&(se=" "+Date.prototype.toUTCString.call(M)),A(M)&&(se=" "+d(M)),q.length===0&&(!k||M.length==0))return F[0]+se+F[1];if(H<0)return w(M)?j.stylize(RegExp.prototype.toString.call(M),"regexp"):j.stylize("[Object]","special");j.seen.push(M);var Z;return k?Z=y(j,M,H,K,q):Z=q.map(function(me){return _(j,M,H,K,me,k)}),j.seen.pop(),x(Z,se,F)}function p(j,M){if(S(M))return j.stylize("undefined","undefined");if(C(M)){var H="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j.stylize(H,"string")}if(b(M))return j.stylize(""+M,"number");if(v(M))return j.stylize(""+M,"boolean");if(f(M))return j.stylize("null","null")}function d(j){return"["+Error.prototype.toString.call(j)+"]"}function y(j,M,H,J,B){for(var q=[],K=0,re=M.length;K<re;++K)Y(M,String(K))?q.push(_(j,M,H,J,String(K),!0)):q.push("");return B.forEach(function(se){se.match(/^\d+$/)||q.push(_(j,M,H,J,se,!0))}),q}function _(j,M,H,J,B,q){var K,re,se;if(se=Object.getOwnPropertyDescriptor(M,B)||{value:M[B]},se.get?se.set?re=j.stylize("[Getter/Setter]","special"):re=j.stylize("[Getter]","special"):se.set&&(re=j.stylize("[Setter]","special")),Y(J,B)||(K="["+B+"]"),re||(j.seen.indexOf(se.value)<0?(f(H)?re=u(j,se.value,null):re=u(j,se.value,H-1),re.indexOf(`
257
+ `)>-1&&(q?re=re.split(`
258
+ `).map(function(k){return" "+k}).join(`
259
+ `).slice(2):re=`
260
+ `+re.split(`
261
+ `).map(function(k){return" "+k}).join(`
262
+ `))):re=j.stylize("[Circular]","special")),S(K)){if(q&&B.match(/^\d+$/))return re;K=JSON.stringify(""+B),K.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(K=K.slice(1,-1),K=j.stylize(K,"name")):(K=K.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),K=j.stylize(K,"string"))}return K+": "+re}function x(j,M,H){var J=j.reduce(function(B,q){return q.indexOf(`
263
+ `)>=0,B+q.replace(/\u001b\[\d\d?m/g,"").length+1},0);return J>60?H[0]+(M===""?"":M+`
264
+ `)+" "+j.join(`,
265
+ `)+" "+H[1]:H[0]+M+" "+j.join(", ")+" "+H[1]}e.types=j_;function g(j){return Array.isArray(j)}e.isArray=g;function v(j){return typeof j=="boolean"}e.isBoolean=v;function f(j){return j===null}e.isNull=f;function m(j){return j==null}e.isNullOrUndefined=m;function b(j){return typeof j=="number"}e.isNumber=b;function C(j){return typeof j=="string"}e.isString=C;function E(j){return typeof j=="symbol"}e.isSymbol=E;function S(j){return j===void 0}e.isUndefined=S;function w(j){return O(j)&&D(j)==="[object RegExp]"}e.isRegExp=w,e.types.isRegExp=w;function O(j){return typeof j=="object"&&j!==null}e.isObject=O;function P(j){return O(j)&&D(j)==="[object Date]"}e.isDate=P,e.types.isDate=P;function A(j){return O(j)&&(D(j)==="[object Error]"||j instanceof Error)}e.isError=A,e.types.isNativeError=A;function T(j){return typeof j=="function"}e.isFunction=T;function L(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j>"u"}e.isPrimitive=L,e.isBuffer=ek;function D(j){return Object.prototype.toString.call(j)}function Q(j){return j<10?"0"+j.toString(10):j.toString(10)}var G=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var j=new Date,M=[Q(j.getHours()),Q(j.getMinutes()),Q(j.getSeconds())].join(":");return[j.getDate(),G[j.getMonth()],M].join(" ")}e.log=function(){console.log("%s - %s",z(),e.format.apply(e,arguments))},e.inherits=Qr,e._extend=function(j,M){if(!M||!O(M))return j;for(var H=Object.keys(M),J=H.length;J--;)j[H[J]]=M[H[J]];return j};function Y(j,M){return Object.prototype.hasOwnProperty.call(j,M)}var ee=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(M){if(typeof M!="function")throw new TypeError('The "original" argument must be of type Function');if(ee&&M[ee]){var H=M[ee];if(typeof H!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(H,ee,{value:H,enumerable:!1,writable:!1,configurable:!0}),H}function H(){for(var J,B,q=new Promise(function(se,k){J=se,B=k}),K=[],re=0;re<arguments.length;re++)K.push(arguments[re]);K.push(function(se,k){se?B(se):J(k)});try{M.apply(this,K)}catch(se){B(se)}return q}return Object.setPrototypeOf(H,Object.getPrototypeOf(M)),ee&&Object.defineProperty(H,ee,{value:H,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(H,t(M))},e.promisify.custom=ee;function W(j,M){if(!j){var H=new Error("Promise was rejected with a falsy value");H.reason=j,j=H}return M(j)}function U(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');function M(){for(var H=[],J=0;J<arguments.length;J++)H.push(arguments[J]);var B=H.pop();if(typeof B!="function")throw new TypeError("The last argument must be of type Function");var q=this,K=function(){return B.apply(q,arguments)};j.apply(this,H).then(function(re){ne.nextTick(K.bind(null,null,re))},function(re){ne.nextTick(W.bind(null,re,K))})}return Object.setPrototypeOf(M,Object.getPrototypeOf(j)),Object.defineProperties(M,t(j)),M}e.callbackify=U})(Yd);var Bc,hg;function tk(){if(hg)return Bc;hg=1;function e(_,x){var g=Object.keys(_);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(_);x&&(v=v.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),g.push.apply(g,v)}return g}function t(_){for(var x=1;x<arguments.length;x++){var g=arguments[x]!=null?arguments[x]:{};x%2?e(Object(g),!0).forEach(function(v){n(_,v,g[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(g)):e(Object(g)).forEach(function(v){Object.defineProperty(_,v,Object.getOwnPropertyDescriptor(g,v))})}return _}function n(_,x,g){return x=a(x),x in _?Object.defineProperty(_,x,{value:g,enumerable:!0,configurable:!0,writable:!0}):_[x]=g,_}function r(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}function o(_,x){for(var g=0;g<x.length;g++){var v=x[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(_,a(v.key),v)}}function i(_,x,g){return x&&o(_.prototype,x),Object.defineProperty(_,"prototype",{writable:!1}),_}function a(_){var x=s(_,"string");return typeof x=="symbol"?x:String(x)}function s(_,x){if(typeof _!="object"||_===null)return _;var g=_[Symbol.toPrimitive];if(g!==void 0){var v=g.call(_,x||"default");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(_)}var l=Ri,c=l.Buffer,u=Yd,p=u.inspect,d=p&&p.custom||"inspect";function y(_,x,g){c.prototype.copy.call(_,x,g)}return Bc=function(){function _(){r(this,_),this.head=null,this.tail=null,this.length=0}return i(_,[{key:"push",value:function(g){var v={data:g,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(g){var v={data:g,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var v=this.head,f=""+v.data;v=v.next;)f+=g+v.data;return f}},{key:"concat",value:function(g){if(this.length===0)return c.alloc(0);for(var v=c.allocUnsafe(g>>>0),f=this.head,m=0;f;)y(f.data,v,m),m+=f.data.length,f=f.next;return v}},{key:"consume",value:function(g,v){var f;return g<this.head.data.length?(f=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):g===this.head.data.length?f=this.shift():f=v?this._getString(g):this._getBuffer(g),f}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var v=this.head,f=1,m=v.data;for(g-=m.length;v=v.next;){var b=v.data,C=g>b.length?b.length:g;if(C===b.length?m+=b:m+=b.slice(0,g),g-=C,g===0){C===b.length?(++f,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(C));break}++f}return this.length-=f,m}},{key:"_getBuffer",value:function(g){var v=c.allocUnsafe(g),f=this.head,m=1;for(f.data.copy(v),g-=f.data.length;f=f.next;){var b=f.data,C=g>b.length?b.length:g;if(b.copy(v,v.length-g,0,C),g-=C,g===0){C===b.length?(++m,f.next?this.head=f.next:this.head=this.tail=null):(this.head=f,f.data=b.slice(C));break}++m}return this.length-=m,v}},{key:d,value:function(g,v){return p(this,t(t({},v),{},{depth:0,customInspect:!1}))}}]),_}(),Bc}function nk(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($f,this,e)):ne.nextTick($f,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(Bs,n):(n._writableState.errorEmitted=!0,ne.nextTick(mg,n,i)):ne.nextTick(mg,n,i):t?(ne.nextTick(Bs,n),t(i)):ne.nextTick(Bs,n)}),this)}function mg(e,t){$f(e,t),Bs(e)}function Bs(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function rk(){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 $f(e,t){e.emit("error",t)}function ok(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}var Y_={destroy:nk,undestroy:rk,errorOrDestroy:ok},Ao={};function ik(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Q_={};function Fn(e,t,n){n||(n=Error);function r(i,a,s){return typeof t=="string"?t:t(i,a,s)}var o=function(i){ik(a,i);function a(s,l,c){return i.call(this,r(s,l,c))||this}return a}(n);o.prototype.name=n.name,o.prototype.code=e,Q_[e]=o}function gg(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 ak(e,t,n){return e.substr(0,t.length)===t}function sk(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function lk(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}Fn("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Fn("ERR_INVALID_ARG_TYPE",function(e,t,n){var r;typeof t=="string"&&ak(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";var o;if(sk(e," argument"))o="The ".concat(e," ").concat(r," ").concat(gg(t,"type"));else{var i=lk(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(i," ").concat(r," ").concat(gg(t,"type"))}return o+=". Received type ".concat(typeof n),o},TypeError);Fn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Fn("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Fn("ERR_STREAM_PREMATURE_CLOSE","Premature close");Fn("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Fn("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Fn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Fn("ERR_STREAM_WRITE_AFTER_END","write after end");Fn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Fn("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Fn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Ao.codes=Q_;var ck=Ao.codes.ERR_INVALID_OPT_VALUE;function uk(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function fk(e,t,n,r){var o=uk(t,r,n);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var i=r?n:"highWaterMark";throw new ck(i,o)}return Math.floor(o)}return e.objectMode?16:16*1024}var J_={getHighWaterMark:fk},dk=pk;function pk(e,t){if(zc("noDeprecation"))return e;var n=!1;function r(){if(!n){if(zc("throwDeprecation"))throw new Error(t);zc("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return r}function zc(e){try{if(!bt.localStorage)return!1}catch{return!1}var t=bt.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var qc,vg;function Z_(){if(vg)return qc;vg=1,qc=w;function e(B){var q=this;this.next=null,this.entry=null,this.finish=function(){J(q,B)}}var t;w.WritableState=E;var n={deprecate:dk},r=M_,o=Ri.Buffer,i=(typeof bt<"u"?bt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(B){return o.from(B)}function s(B){return o.isBuffer(B)||B instanceof i}var l=Y_,c=J_,u=c.getHighWaterMark,p=Ao.codes,d=p.ERR_INVALID_ARG_TYPE,y=p.ERR_METHOD_NOT_IMPLEMENTED,_=p.ERR_MULTIPLE_CALLBACK,x=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,f=p.ERR_STREAM_WRITE_AFTER_END,m=p.ERR_UNKNOWN_ENCODING,b=l.errorOrDestroy;Qr(w,r);function C(){}function E(B,q,K){t=t||gi(),B=B||{},typeof K!="boolean"&&(K=q instanceof t),this.objectMode=!!B.objectMode,K&&(this.objectMode=this.objectMode||!!B.writableObjectMode),this.highWaterMark=u(this,B,"writableHighWaterMark",K),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var re=B.decodeStrings===!1;this.decodeStrings=!re,this.defaultEncoding=B.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){G(q,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}E.prototype.getBuffer=function(){for(var q=this.bufferedRequest,K=[];q;)K.push(q),q=q.next;return K},function(){try{Object.defineProperty(E.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(q){return S.call(this,q)?!0:this!==w?!1:q&&q._writableState instanceof E}})):S=function(q){return q instanceof this};function w(B){t=t||gi();var q=this instanceof t;if(!q&&!S.call(w,this))return new w(B);this._writableState=new E(B,this,q),this.writable=!0,B&&(typeof B.write=="function"&&(this._write=B.write),typeof B.writev=="function"&&(this._writev=B.writev),typeof B.destroy=="function"&&(this._destroy=B.destroy),typeof B.final=="function"&&(this._final=B.final)),r.call(this)}w.prototype.pipe=function(){b(this,new x)};function O(B,q){var K=new f;b(B,K),ne.nextTick(q,K)}function P(B,q,K,re){var se;return K===null?se=new v:typeof K!="string"&&!q.objectMode&&(se=new d("chunk",["string","Buffer"],K)),se?(b(B,se),ne.nextTick(re,se),!1):!0}w.prototype.write=function(B,q,K){var re=this._writableState,se=!1,k=!re.objectMode&&s(B);return k&&!o.isBuffer(B)&&(B=a(B)),typeof q=="function"&&(K=q,q=null),k?q="buffer":q||(q=re.defaultEncoding),typeof K!="function"&&(K=C),re.ending?O(this,K):(k||P(this,re,B,K))&&(re.pendingcb++,se=T(this,re,k,B,q,K)),se},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var B=this._writableState;B.corked&&(B.corked--,!B.writing&&!B.corked&&!B.bufferProcessing&&B.bufferedRequest&&ee(this,B))},w.prototype.setDefaultEncoding=function(q){if(typeof q=="string"&&(q=q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((q+"").toLowerCase())>-1))throw new m(q);return this._writableState.defaultEncoding=q,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function A(B,q,K){return!B.objectMode&&B.decodeStrings!==!1&&typeof q=="string"&&(q=o.from(q,K)),q}Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T(B,q,K,re,se,k){if(!K){var F=A(q,re,se);re!==F&&(K=!0,se="buffer",re=F)}var ae=q.objectMode?1:re.length;q.length+=ae;var Z=q.length<q.highWaterMark;if(Z||(q.needDrain=!0),q.writing||q.corked){var me=q.lastBufferedRequest;q.lastBufferedRequest={chunk:re,encoding:se,isBuf:K,callback:k,next:null},me?me.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else L(B,q,!1,ae,re,se,k);return Z}function L(B,q,K,re,se,k,F){q.writelen=re,q.writecb=F,q.writing=!0,q.sync=!0,q.destroyed?q.onwrite(new g("write")):K?B._writev(se,q.onwrite):B._write(se,k,q.onwrite),q.sync=!1}function D(B,q,K,re,se){--q.pendingcb,K?(ne.nextTick(se,re),ne.nextTick(M,B,q),B._writableState.errorEmitted=!0,b(B,re)):(se(re),B._writableState.errorEmitted=!0,b(B,re),M(B,q))}function Q(B){B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0}function G(B,q){var K=B._writableState,re=K.sync,se=K.writecb;if(typeof se!="function")throw new _;if(Q(K),q)D(B,K,re,q,se);else{var k=W(K)||B.destroyed;!k&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&ee(B,K),re?ne.nextTick(z,B,K,k,se):z(B,K,k,se)}}function z(B,q,K,re){K||Y(B,q),q.pendingcb--,re(),M(B,q)}function Y(B,q){q.length===0&&q.needDrain&&(q.needDrain=!1,B.emit("drain"))}function ee(B,q){q.bufferProcessing=!0;var K=q.bufferedRequest;if(B._writev&&K&&K.next){var re=q.bufferedRequestCount,se=new Array(re),k=q.corkedRequestsFree;k.entry=K;for(var F=0,ae=!0;K;)se[F]=K,K.isBuf||(ae=!1),K=K.next,F+=1;se.allBuffers=ae,L(B,q,!0,q.length,se,"",k.finish),q.pendingcb++,q.lastBufferedRequest=null,k.next?(q.corkedRequestsFree=k.next,k.next=null):q.corkedRequestsFree=new e(q),q.bufferedRequestCount=0}else{for(;K;){var Z=K.chunk,me=K.encoding,pe=K.callback,Ce=q.objectMode?1:Z.length;if(L(B,q,!1,Ce,Z,me,pe),K=K.next,q.bufferedRequestCount--,q.writing)break}K===null&&(q.lastBufferedRequest=null)}q.bufferedRequest=K,q.bufferProcessing=!1}w.prototype._write=function(B,q,K){K(new y("_write()"))},w.prototype._writev=null,w.prototype.end=function(B,q,K){var re=this._writableState;return typeof B=="function"?(K=B,B=null,q=null):typeof q=="function"&&(K=q,q=null),B!=null&&this.write(B,q),re.corked&&(re.corked=1,this.uncork()),re.ending||H(this,re,K),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function W(B){return B.ending&&B.length===0&&B.bufferedRequest===null&&!B.finished&&!B.writing}function U(B,q){B._final(function(K){q.pendingcb--,K&&b(B,K),q.prefinished=!0,B.emit("prefinish"),M(B,q)})}function j(B,q){!q.prefinished&&!q.finalCalled&&(typeof B._final=="function"&&!q.destroyed?(q.pendingcb++,q.finalCalled=!0,ne.nextTick(U,B,q)):(q.prefinished=!0,B.emit("prefinish")))}function M(B,q){var K=W(q);if(K&&(j(B,q),q.pendingcb===0&&(q.finished=!0,B.emit("finish"),q.autoDestroy))){var re=B._readableState;(!re||re.autoDestroy&&re.endEmitted)&&B.destroy()}return K}function H(B,q,K){q.ending=!0,M(B,q),K&&(q.finished?ne.nextTick(K):B.once("finish",K)),q.ended=!0,B.writable=!1}function J(B,q,K){var re=B.entry;for(B.entry=null;re;){var se=re.callback;q.pendingcb--,se(K),re=re.next}q.corkedRequestsFree.next=B}return Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(q){this._writableState&&(this._writableState.destroyed=q)}}),w.prototype.destroy=l.destroy,w.prototype._undestroy=l.undestroy,w.prototype._destroy=function(B,q){q(B)},qc}var Vc,yg;function gi(){if(yg)return Vc;yg=1;var e=Object.keys||function(c){var u=[];for(var p in c)u.push(p);return u};Vc=a;var t=tw(),n=Z_();Qr(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",s)))}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 s(){this._writableState.ended||ne.nextTick(l,this)}function l(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)}}),Vc}var Hc={},ps={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var bg;function hk(){return bg||(bg=1,function(e,t){var n=Ri,r=n.Buffer;function o(a,s){for(var l in a)s[l]=a[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i);function i(a,s,l){return r(a,s,l)}i.prototype=Object.create(r.prototype),o(r,i),i.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,s,l)},i.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=r(a);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):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)}}(ps,ps.exports)),ps.exports}var _g;function wg(){if(_g)return Hc;_g=1;var e=hk().Buffer,t=e.isEncoding||function(v){switch(v=""+v,v&&v.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(v){if(!v)return"utf8";for(var f;;)switch(v){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 v;default:if(f)return;v=(""+v).toLowerCase(),f=!0}}function r(v){var f=n(v);if(typeof f!="string"&&(e.isEncoding===t||!t(v)))throw new Error("Unknown encoding: "+v);return f||v}Hc.StringDecoder=o;function o(v){this.encoding=r(v);var f;switch(this.encoding){case"utf16le":this.text=p,this.end=d,f=4;break;case"utf8":this.fillLast=l,f=4;break;case"base64":this.text=y,this.end=_,f=3;break;default:this.write=x,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(f)}o.prototype.write=function(v){if(v.length===0)return"";var f,m;if(this.lastNeed){if(f=this.fillLast(v),f===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<v.length?f?f+this.text(v,m):this.text(v,m):f||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length};function i(v){return v<=127?0:v>>5===6?2:v>>4===14?3:v>>3===30?4:v>>6===2?-1:-2}function a(v,f,m){var b=f.length-1;if(b<m)return 0;var C=i(f[b]);return C>=0?(C>0&&(v.lastNeed=C-1),C):--b<m||C===-2?0:(C=i(f[b]),C>=0?(C>0&&(v.lastNeed=C-2),C):--b<m||C===-2?0:(C=i(f[b]),C>=0?(C>0&&(C===2?C=0:v.lastNeed=C-3),C):0))}function s(v,f,m){if((f[0]&192)!==128)return v.lastNeed=0,"�";if(v.lastNeed>1&&f.length>1){if((f[1]&192)!==128)return v.lastNeed=1,"�";if(v.lastNeed>2&&f.length>2&&(f[2]&192)!==128)return v.lastNeed=2,"�"}}function l(v){var f=this.lastTotal-this.lastNeed,m=s(this,v);if(m!==void 0)return m;if(this.lastNeed<=v.length)return v.copy(this.lastChar,f,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,f,0,v.length),this.lastNeed-=v.length}function c(v,f){var m=a(this,v,f);if(!this.lastNeed)return v.toString("utf8",f);this.lastTotal=m;var b=v.length-(m-this.lastNeed);return v.copy(this.lastChar,0,b),v.toString("utf8",f,b)}function u(v){var f=v&&v.length?this.write(v):"";return this.lastNeed?f+"�":f}function p(v,f){if((v.length-f)%2===0){var m=v.toString("utf16le",f);if(m){var b=m.charCodeAt(m.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",f,v.length-1)}function d(v){var f=v&&v.length?this.write(v):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return f+this.lastChar.toString("utf16le",0,m)}return f}function y(v,f){var m=(v.length-f)%3;return m===0?v.toString("base64",f):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",f,v.length-m))}function _(v){var f=v&&v.length?this.write(v):"";return this.lastNeed?f+this.lastChar.toString("base64",0,3-this.lastNeed):f}function x(v){return v.toString(this.encoding)}function g(v){return v&&v.length?this.write(v):""}return Hc}var Cg=Ao.codes.ERR_STREAM_PREMATURE_CLOSE;function mk(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 gk(){}function vk(e){return e.setHeader&&typeof e.abort=="function"}function ew(e,t,n){if(typeof t=="function")return ew(e,null,t);t||(t={}),n=mk(n||gk);var r=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,i=function(){e.writable||s()},a=e._writableState&&e._writableState.finished,s=function(){o=!1,a=!0,r||n.call(e)},l=e._readableState&&e._readableState.endEmitted,c=function(){r=!1,l=!0,o||n.call(e)},u=function(_){n.call(e,_)},p=function(){var _;if(r&&!l)return(!e._readableState||!e._readableState.ended)&&(_=new Cg),n.call(e,_);if(o&&!a)return(!e._writableState||!e._writableState.ended)&&(_=new Cg),n.call(e,_)},d=function(){e.req.on("finish",s)};return vk(e)?(e.on("complete",s),e.on("abort",p),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",s),t.error!==!1&&e.on("error",u),e.on("close",p),function(){e.removeListener("complete",s),e.removeListener("abort",p),e.removeListener("request",d),e.req&&e.req.removeListener("finish",s),e.removeListener("end",i),e.removeListener("close",i),e.removeListener("finish",s),e.removeListener("end",c),e.removeListener("error",u),e.removeListener("close",p)}}var op=ew,Wc,xg;function yk(){if(xg)return Wc;xg=1;var e;function t(m,b,C){return b=n(b),b in m?Object.defineProperty(m,b,{value:C,enumerable:!0,configurable:!0,writable:!0}):m[b]=C,m}function n(m){var b=r(m,"string");return typeof b=="symbol"?b:String(b)}function r(m,b){if(typeof m!="object"||m===null)return m;var C=m[Symbol.toPrimitive];if(C!==void 0){var E=C.call(m,b||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(m)}var o=op,i=Symbol("lastResolve"),a=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),p=Symbol("stream");function d(m,b){return{value:m,done:b}}function y(m){var b=m[i];if(b!==null){var C=m[p].read();C!==null&&(m[c]=null,m[i]=null,m[a]=null,b(d(C,!1)))}}function _(m){ne.nextTick(y,m)}function x(m,b){return function(C,E){m.then(function(){if(b[l]){C(d(void 0,!0));return}b[u](C,E)},E)}}var g=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((e={get stream(){return this[p]},next:function(){var b=this,C=this[s];if(C!==null)return Promise.reject(C);if(this[l])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(O,P){ne.nextTick(function(){b[s]?P(b[s]):O(d(void 0,!0))})});var E=this[c],S;if(E)S=new Promise(x(E,this));else{var w=this[p].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 b=this;return new Promise(function(C,E){b[p].destroy(null,function(S){if(S){E(S);return}C(d(void 0,!0))})})}),e),g),f=function(b){var C,E=Object.create(v,(C={},t(C,p,{value:b,writable:!0}),t(C,i,{value:null,writable:!0}),t(C,a,{value:null,writable:!0}),t(C,s,{value:null,writable:!0}),t(C,l,{value:b._readableState.endEmitted,writable:!0}),t(C,u,{value:function(w,O){var P=E[p].read();P?(E[c]=null,E[i]=null,E[a]=null,w(d(P,!1))):(E[i]=w,E[a]=O)},writable:!0}),C));return E[c]=null,o(b,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var w=E[a];w!==null&&(E[c]=null,E[i]=null,E[a]=null,w(S)),E[s]=S;return}var O=E[i];O!==null&&(E[c]=null,E[i]=null,E[a]=null,O(d(void 0,!0))),E[l]=!0}),b.on("readable",_.bind(null,E)),E};return Wc=f,Wc}var Uc,Sg;function bk(){return Sg||(Sg=1,Uc=function(){throw new Error("Readable.from is not available in the browser")}),Uc}var Gc,Eg;function tw(){if(Eg)return Gc;Eg=1,Gc=O;var e;O.ReadableState=w,Xd.EventEmitter;var t=function(F,ae){return F.listeners(ae).length},n=M_,r=Ri.Buffer,o=(typeof bt<"u"?bt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(k){return r.from(k)}function a(k){return r.isBuffer(k)||k instanceof o}var s=Yd,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=tk(),u=Y_,p=J_,d=p.getHighWaterMark,y=Ao.codes,_=y.ERR_INVALID_ARG_TYPE,x=y.ERR_STREAM_PUSH_AFTER_EOF,g=y.ERR_METHOD_NOT_IMPLEMENTED,v=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,f,m,b;Qr(O,n);var C=u.errorOrDestroy,E=["error","close","destroy","pause","resume"];function S(k,F,ae){if(typeof k.prependListener=="function")return k.prependListener(F,ae);!k._events||!k._events[F]?k.on(F,ae):Array.isArray(k._events[F])?k._events[F].unshift(ae):k._events[F]=[ae,k._events[F]]}function w(k,F,ae){e=e||gi(),k=k||{},typeof ae!="boolean"&&(ae=F instanceof e),this.objectMode=!!k.objectMode,ae&&(this.objectMode=this.objectMode||!!k.readableObjectMode),this.highWaterMark=d(this,k,"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=k.emitClose!==!1,this.autoDestroy=!!k.autoDestroy,this.destroyed=!1,this.defaultEncoding=k.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,k.encoding&&(f||(f=wg().StringDecoder),this.decoder=new f(k.encoding),this.encoding=k.encoding)}function O(k){if(e=e||gi(),!(this instanceof O))return new O(k);var F=this instanceof e;this._readableState=new w(k,this,F),this.readable=!0,k&&(typeof k.read=="function"&&(this._read=k.read),typeof k.destroy=="function"&&(this._destroy=k.destroy)),n.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(F){this._readableState&&(this._readableState.destroyed=F)}}),O.prototype.destroy=u.destroy,O.prototype._undestroy=u.undestroy,O.prototype._destroy=function(k,F){F(k)},O.prototype.push=function(k,F){var ae=this._readableState,Z;return ae.objectMode?Z=!0:typeof k=="string"&&(F=F||ae.defaultEncoding,F!==ae.encoding&&(k=r.from(k,F),F=""),Z=!0),P(this,k,F,!1,Z)},O.prototype.unshift=function(k){return P(this,k,null,!0,!1)};function P(k,F,ae,Z,me){l("readableAddChunk",F);var pe=k._readableState;if(F===null)pe.reading=!1,G(k,pe);else{var Ce;if(me||(Ce=T(pe,F)),Ce)C(k,Ce);else if(pe.objectMode||F&&F.length>0)if(typeof F!="string"&&!pe.objectMode&&Object.getPrototypeOf(F)!==r.prototype&&(F=i(F)),Z)pe.endEmitted?C(k,new v):A(k,pe,F,!0);else if(pe.ended)C(k,new x);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!ae?(F=pe.decoder.write(F),pe.objectMode||F.length!==0?A(k,pe,F,!1):ee(k,pe)):A(k,pe,F,!1)}else Z||(pe.reading=!1,ee(k,pe))}return!pe.ended&&(pe.length<pe.highWaterMark||pe.length===0)}function A(k,F,ae,Z){F.flowing&&F.length===0&&!F.sync?(F.awaitDrain=0,k.emit("data",ae)):(F.length+=F.objectMode?1:ae.length,Z?F.buffer.unshift(ae):F.buffer.push(ae),F.needReadable&&z(k)),ee(k,F)}function T(k,F){var ae;return!a(F)&&typeof F!="string"&&F!==void 0&&!k.objectMode&&(ae=new _("chunk",["string","Buffer","Uint8Array"],F)),ae}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(k){f||(f=wg().StringDecoder);var F=new f(k);this._readableState.decoder=F,this._readableState.encoding=this._readableState.decoder.encoding;for(var ae=this._readableState.buffer.head,Z="";ae!==null;)Z+=F.write(ae.data),ae=ae.next;return this._readableState.buffer.clear(),Z!==""&&this._readableState.buffer.push(Z),this._readableState.length=Z.length,this};var L=1073741824;function D(k){return k>=L?k=L:(k--,k|=k>>>1,k|=k>>>2,k|=k>>>4,k|=k>>>8,k|=k>>>16,k++),k}function Q(k,F){return k<=0||F.length===0&&F.ended?0:F.objectMode?1:k!==k?F.flowing&&F.length?F.buffer.head.data.length:F.length:(k>F.highWaterMark&&(F.highWaterMark=D(k)),k<=F.length?k:F.ended?F.length:(F.needReadable=!0,0))}O.prototype.read=function(k){l("read",k),k=parseInt(k,10);var F=this._readableState,ae=k;if(k!==0&&(F.emittedReadable=!1),k===0&&F.needReadable&&((F.highWaterMark!==0?F.length>=F.highWaterMark:F.length>0)||F.ended))return l("read: emitReadable",F.length,F.ended),F.length===0&&F.ended?K(this):z(this),null;if(k=Q(k,F),k===0&&F.ended)return F.length===0&&K(this),null;var Z=F.needReadable;l("need readable",Z),(F.length===0||F.length-k<F.highWaterMark)&&(Z=!0,l("length less than watermark",Z)),F.ended||F.reading?(Z=!1,l("reading or ended",Z)):Z&&(l("do read"),F.reading=!0,F.sync=!0,F.length===0&&(F.needReadable=!0),this._read(F.highWaterMark),F.sync=!1,F.reading||(k=Q(ae,F)));var me;return k>0?me=q(k,F):me=null,me===null?(F.needReadable=F.length<=F.highWaterMark,k=0):(F.length-=k,F.awaitDrain=0),F.length===0&&(F.ended||(F.needReadable=!0),ae!==k&&F.ended&&K(this)),me!==null&&this.emit("data",me),me};function G(k,F){if(l("onEofChunk"),!F.ended){if(F.decoder){var ae=F.decoder.end();ae&&ae.length&&(F.buffer.push(ae),F.length+=F.objectMode?1:ae.length)}F.ended=!0,F.sync?z(k):(F.needReadable=!1,F.emittedReadable||(F.emittedReadable=!0,Y(k)))}}function z(k){var F=k._readableState;l("emitReadable",F.needReadable,F.emittedReadable),F.needReadable=!1,F.emittedReadable||(l("emitReadable",F.flowing),F.emittedReadable=!0,ne.nextTick(Y,k))}function Y(k){var F=k._readableState;l("emitReadable_",F.destroyed,F.length,F.ended),!F.destroyed&&(F.length||F.ended)&&(k.emit("readable"),F.emittedReadable=!1),F.needReadable=!F.flowing&&!F.ended&&F.length<=F.highWaterMark,B(k)}function ee(k,F){F.readingMore||(F.readingMore=!0,ne.nextTick(W,k,F))}function W(k,F){for(;!F.reading&&!F.ended&&(F.length<F.highWaterMark||F.flowing&&F.length===0);){var ae=F.length;if(l("maybeReadMore read 0"),k.read(0),ae===F.length)break}F.readingMore=!1}O.prototype._read=function(k){C(this,new g("_read()"))},O.prototype.pipe=function(k,F){var ae=this,Z=this._readableState;switch(Z.pipesCount){case 0:Z.pipes=k;break;case 1:Z.pipes=[Z.pipes,k];break;default:Z.pipes.push(k);break}Z.pipesCount+=1,l("pipe count=%d opts=%j",Z.pipesCount,F);var me=(!F||F.end!==!1)&&k!==ne.stdout&&k!==ne.stderr,pe=me?Me:Ee;Z.endEmitted?ne.nextTick(pe):ae.once("end",pe),k.on("unpipe",Ce);function Ce(Ve,He){l("onunpipe"),Ve===ae&&He&&He.hasUnpiped===!1&&(He.hasUnpiped=!0,Pe())}function Me(){l("onend"),k.end()}var ce=U(ae);k.on("drain",ce);var Ie=!1;function Pe(){l("cleanup"),k.removeListener("close",we),k.removeListener("finish",Se),k.removeListener("drain",ce),k.removeListener("error",ve),k.removeListener("unpipe",Ce),ae.removeListener("end",Me),ae.removeListener("end",Ee),ae.removeListener("data",Oe),Ie=!0,Z.awaitDrain&&(!k._writableState||k._writableState.needDrain)&&ce()}ae.on("data",Oe);function Oe(Ve){l("ondata");var He=k.write(Ve);l("dest.write",He),He===!1&&((Z.pipesCount===1&&Z.pipes===k||Z.pipesCount>1&&se(Z.pipes,k)!==-1)&&!Ie&&(l("false write response, pause",Z.awaitDrain),Z.awaitDrain++),ae.pause())}function ve(Ve){l("onerror",Ve),Ee(),k.removeListener("error",ve),t(k,"error")===0&&C(k,Ve)}S(k,"error",ve);function we(){k.removeListener("finish",Se),Ee()}k.once("close",we);function Se(){l("onfinish"),k.removeListener("close",we),Ee()}k.once("finish",Se);function Ee(){l("unpipe"),ae.unpipe(k)}return k.emit("pipe",ae),Z.flowing||(l("pipe resume"),ae.resume()),k};function U(k){return function(){var ae=k._readableState;l("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&t(k,"data")&&(ae.flowing=!0,B(k))}}O.prototype.unpipe=function(k){var F=this._readableState,ae={hasUnpiped:!1};if(F.pipesCount===0)return this;if(F.pipesCount===1)return k&&k!==F.pipes?this:(k||(k=F.pipes),F.pipes=null,F.pipesCount=0,F.flowing=!1,k&&k.emit("unpipe",this,ae),this);if(!k){var Z=F.pipes,me=F.pipesCount;F.pipes=null,F.pipesCount=0,F.flowing=!1;for(var pe=0;pe<me;pe++)Z[pe].emit("unpipe",this,{hasUnpiped:!1});return this}var Ce=se(F.pipes,k);return Ce===-1?this:(F.pipes.splice(Ce,1),F.pipesCount-=1,F.pipesCount===1&&(F.pipes=F.pipes[0]),k.emit("unpipe",this,ae),this)},O.prototype.on=function(k,F){var ae=n.prototype.on.call(this,k,F),Z=this._readableState;return k==="data"?(Z.readableListening=this.listenerCount("readable")>0,Z.flowing!==!1&&this.resume()):k==="readable"&&!Z.endEmitted&&!Z.readableListening&&(Z.readableListening=Z.needReadable=!0,Z.flowing=!1,Z.emittedReadable=!1,l("on readable",Z.length,Z.reading),Z.length?z(this):Z.reading||ne.nextTick(M,this)),ae},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(k,F){var ae=n.prototype.removeListener.call(this,k,F);return k==="readable"&&ne.nextTick(j,this),ae},O.prototype.removeAllListeners=function(k){var F=n.prototype.removeAllListeners.apply(this,arguments);return(k==="readable"||k===void 0)&&ne.nextTick(j,this),F};function j(k){var F=k._readableState;F.readableListening=k.listenerCount("readable")>0,F.resumeScheduled&&!F.paused?F.flowing=!0:k.listenerCount("data")>0&&k.resume()}function M(k){l("readable nexttick read 0"),k.read(0)}O.prototype.resume=function(){var k=this._readableState;return k.flowing||(l("resume"),k.flowing=!k.readableListening,H(this,k)),k.paused=!1,this};function H(k,F){F.resumeScheduled||(F.resumeScheduled=!0,ne.nextTick(J,k,F))}function J(k,F){l("resume",F.reading),F.reading||k.read(0),F.resumeScheduled=!1,k.emit("resume"),B(k),F.flowing&&!F.reading&&k.read(0)}O.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function B(k){var F=k._readableState;for(l("flow",F.flowing);F.flowing&&k.read()!==null;);}O.prototype.wrap=function(k){var F=this,ae=this._readableState,Z=!1;k.on("end",function(){if(l("wrapped end"),ae.decoder&&!ae.ended){var Ce=ae.decoder.end();Ce&&Ce.length&&F.push(Ce)}F.push(null)}),k.on("data",function(Ce){if(l("wrapped data"),ae.decoder&&(Ce=ae.decoder.write(Ce)),!(ae.objectMode&&Ce==null)&&!(!ae.objectMode&&(!Ce||!Ce.length))){var Me=F.push(Ce);Me||(Z=!0,k.pause())}});for(var me in k)this[me]===void 0&&typeof k[me]=="function"&&(this[me]=function(Me){return function(){return k[Me].apply(k,arguments)}}(me));for(var pe=0;pe<E.length;pe++)k.on(E[pe],this.emit.bind(this,E[pe]));return this._read=function(Ce){l("wrapped _read",Ce),Z&&(Z=!1,k.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=yk()),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(F){this._readableState&&(this._readableState.flowing=F)}}),O._fromList=q,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function q(k,F){if(F.length===0)return null;var ae;return F.objectMode?ae=F.buffer.shift():!k||k>=F.length?(F.decoder?ae=F.buffer.join(""):F.buffer.length===1?ae=F.buffer.first():ae=F.buffer.concat(F.length),F.buffer.clear()):ae=F.buffer.consume(k,F.decoder),ae}function K(k){var F=k._readableState;l("endReadable",F.endEmitted),F.endEmitted||(F.ended=!0,ne.nextTick(re,F,k))}function re(k,F){if(l("endReadableNT",k.endEmitted,k.length),!k.endEmitted&&k.length===0&&(k.endEmitted=!0,F.readable=!1,F.emit("end"),k.autoDestroy)){var ae=F._writableState;(!ae||ae.autoDestroy&&ae.finished)&&F.destroy()}}typeof Symbol=="function"&&(O.from=function(k,F){return b===void 0&&(b=bk()),b(O,k,F)});function se(k,F){for(var ae=0,Z=k.length;ae<Z;ae++)if(k[ae]===F)return ae;return-1}return Gc}var nw=$r,Wl=Ao.codes,_k=Wl.ERR_METHOD_NOT_IMPLEMENTED,wk=Wl.ERR_MULTIPLE_CALLBACK,Ck=Wl.ERR_TRANSFORM_ALREADY_TRANSFORMING,xk=Wl.ERR_TRANSFORM_WITH_LENGTH_0,Ul=gi();Qr($r,Ul);function Sk(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit("error",new wk);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 $r(e){if(!(this instanceof $r))return new $r(e);Ul.call(this,e),this._transformState={afterTransform:Sk.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",Ek)}function Ek(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,n){Rg(e,t,n)}):Rg(this,null,null)}$r.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ul.prototype.push.call(this,e,t)};$r.prototype._transform=function(e,t,n){n(new _k("_transform()"))};$r.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)}};$r.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};$r.prototype._destroy=function(e,t){Ul.prototype._destroy.call(this,e,function(n){t(n)})};function Rg(e,t,n){if(t)return e.emit("error",t);if(n!=null&&e.push(n),e._writableState.length)throw new xk;if(e._transformState.transforming)throw new Ck;return e.push(null)}var Rk=Sa,rw=nw;Qr(Sa,rw);function Sa(e){if(!(this instanceof Sa))return new Sa(e);rw.call(this,e)}Sa.prototype._transform=function(e,t,n){n(null,e)};var Kc;function Ok(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var ow=Ao.codes,$k=ow.ERR_MISSING_ARGS,Tk=ow.ERR_STREAM_DESTROYED;function Og(e){if(e)throw e}function Pk(e){return e.setHeader&&typeof e.abort=="function"}function Nk(e,t,n,r){r=Ok(r);var o=!1;e.on("close",function(){o=!0}),Kc===void 0&&(Kc=op),Kc(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,Pk(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();r(a||new Tk("pipe"))}}}function $g(e){e()}function Ik(e,t){return e.pipe(t)}function Ak(e){return!e.length||typeof e[e.length-1]!="function"?Og:e.pop()}function Mk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Ak(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new $k("streams");var o,i=t.map(function(a,s){var l=s<t.length-1,c=s>0;return Nk(a,l,c,function(u){o||(o=u),u&&i.forEach($g),!l&&(i.forEach($g),r(o))})});return t.reduce(Ik)}var jk=Mk;(function(e,t){t=e.exports=tw(),t.Stream=t,t.Readable=t,t.Writable=Z_(),t.Duplex=gi(),t.Transform=nw,t.PassThrough=Rk,t.finished=op,t.pipeline=jk})(wf,wf.exports);var iw=wf.exports,Tg=Gd,kk=Qr,aw=iw,hs=ql.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ip=ql.IncomingMessage=function(e,t,n,r){var o=this;if(aw.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(p){if(!o._destroyed){if(r(p.done),p.done){o.push(null);return}o.push(mo.from(p.value)),u()}}).catch(function(p){r(!0),o._destroyed||o.emit("error",p)})};if(o._fetchResponse=t,o.url=t.url,o.statusCode=t.status,o.statusMessage=t.statusText,t.headers.forEach(function(p,d){o.headers[d.toLowerCase()]=p,o.rawHeaders.push(d,p)}),Tg.writableStream){var i=new WritableStream({write:function(p){return r(!1),new Promise(function(d,y){o._destroyed?y():o.push(mo.from(p))?d():o._resumeFetch=d})},close:function(){r(!0),o._destroyed||o.push(null)},abort:function(p){r(!0),o._destroyed||o.emit("error",p)}});try{t.body.pipeTo(i).catch(function(p){r(!0),o._destroyed||o.emit("error",p)});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 s=e.getAllResponseHeaders().split(/\r?\n/);if(s.forEach(function(u){var p=u.match(/^([^:]+):\s*(.*)/);if(p){var d=p[1].toLowerCase();d==="set-cookie"?(o.headers[d]===void 0&&(o.headers[d]=[]),o.headers[d].push(p[2])):o.headers[d]!==void 0?o.headers[d]+=", "+p[2]:o.headers[d]=p[2],o.rawHeaders.push(p[1],p[2])}}),o._charset="x-user-defined",!Tg.overrideMimeType){var l=o.rawHeaders["mime-type"];if(l){var c=l.match(/;\s*charset=([^;])(;|$)/);c&&(o._charset=c[1].toLowerCase())}o._charset||(o._charset="utf-8")}}};kk(ip,aw.Readable);ip.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())};ip.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=mo.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!==hs.DONE||!n.response)break;r=n.response,t.push(mo.from(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=n.response,n.readyState!==hs.LOADING||!r)break;t.push(mo.from(new Uint8Array(r)));break;case"ms-stream":if(r=n.response,n.readyState!==hs.LOADING)break;var s=new bt.MSStreamReader;s.onprogress=function(){s.result.byteLength>t._pos&&(t.push(mo.from(new Uint8Array(s.result.slice(t._pos)))),t._pos=s.result.byteLength)},s.onload=function(){e(!0),t.push(null)},s.readAsArrayBuffer(r);break}t._xhr.readyState===hs.DONE&&t._mode!=="ms-stream"&&(e(!0),t.push(null))};var go=Gd,Lk=Qr,sw=ql,ap=iw,Fk=sw.IncomingMessage,Pg=sw.readyStates;function Dk(e,t){return go.fetch&&t?"fetch":go.mozchunkedarraybuffer?"moz-chunked-arraybuffer":go.msstream?"ms-stream":go.arraybuffer&&e?"arraybuffer":"text"}var ln=E_.exports=function(e){var t=this;ap.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+mo.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&&!go.abortController)r=!1,n=!0;else if(e.mode==="prefer-streaming")n=!1;else if(e.mode==="allow-wrong-content-type")n=!go.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=Dk(n,r),t._fetchTimer=null,t._socketTimeout=null,t._socketTimer=null,t.on("finish",function(){t._onFinish()})};Lk(ln,ap.Writable);ln.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();zk.indexOf(r)===-1&&(n._headers[r]={name:e,value:t})};ln.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null};ln.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]};ln.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(l){var c=n[l].name,u=n[l].value;Array.isArray(u)?u.forEach(function(p){o.push([c,p])}):o.push([c,u])}),e._mode==="fetch"){var i=null;if(go.abortController){var a=new AbortController;i=a.signal,e._fetchAbortController=a,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=bt.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}bt.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(l){e._fetchResponse=l,e._resetTimers(!1),e._connect()},function(l){e._resetTimers(!0),e._destroyed||e.emit("error",l)})}else{var s=e._xhr=new bt.XMLHttpRequest;try{s.open(e._opts.method,e._opts.url,!0)}catch(l){ne.nextTick(function(){e.emit("error",l)});return}"responseType"in s&&(s.responseType=e._mode),"withCredentials"in s&&(s.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(s.timeout=t.requestTimeout,s.ontimeout=function(){e.emit("requestTimeout")}),o.forEach(function(l){s.setRequestHeader(l[0],l[1])}),e._response=null,s.onreadystatechange=function(){switch(s.readyState){case Pg.LOADING:case Pg.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(s.onprogress=function(){e._onXHRProgress()}),s.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{s.send(r)}catch(l){ne.nextTick(function(){e.emit("error",l)});return}}}};function Bk(e){try{var t=e.status;return t!==null&&t!==0}catch{return!1}}ln.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!Bk(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))};ln.prototype._connect=function(){var e=this;e._destroyed||(e._response=new Fk(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))};ln.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()};ln.prototype._resetTimers=function(e){var t=this;bt.clearTimeout(t._socketTimer),t._socketTimer=null,e?(bt.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=bt.setTimeout(function(){t.emit("timeout")},t._socketTimeout))};ln.prototype.abort=ln.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)};ln.prototype.end=function(e,t,n){var r=this;typeof e=="function"&&(n=e,e=void 0),ap.Writable.prototype.end.call(r,e,t,n)};ln.prototype.setTimeout=function(e,t){var n=this;t&&n.once("timeout",t),n._socketTimeout=e,n._resetTimers(!1)};ln.prototype.flushHeaders=function(){};ln.prototype.setNoDelay=function(){};ln.prototype.setSocketKeepAlive=function(){};var zk=["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"],qk=E_.exports,Vk=Wk,Hk=Object.prototype.hasOwnProperty;function Wk(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Hk.call(n,r)&&(e[r]=n[r])}return e}var Uk={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"},ul={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */ul.exports;(function(e,t){(function(n){var r=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i=typeof bt=="object"&&bt;(i.global===i||i.window===i||i.self===i)&&(n=i);var a,s=2147483647,l=36,c=1,u=26,p=38,d=700,y=72,_=128,x="-",g=/^xn--/,v=/[^\x20-\x7E]/,f=/[\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"},b=l-c,C=Math.floor,E=String.fromCharCode,S;function w(W){throw new RangeError(m[W])}function O(W,U){for(var j=W.length,M=[];j--;)M[j]=U(W[j]);return M}function P(W,U){var j=W.split("@"),M="";j.length>1&&(M=j[0]+"@",W=j[1]),W=W.replace(f,".");var H=W.split("."),J=O(H,U).join(".");return M+J}function A(W){for(var U=[],j=0,M=W.length,H,J;j<M;)H=W.charCodeAt(j++),H>=55296&&H<=56319&&j<M?(J=W.charCodeAt(j++),(J&64512)==56320?U.push(((H&1023)<<10)+(J&1023)+65536):(U.push(H),j--)):U.push(H);return U}function T(W){return O(W,function(U){var j="";return U>65535&&(U-=65536,j+=E(U>>>10&1023|55296),U=56320|U&1023),j+=E(U),j}).join("")}function L(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:l}function D(W,U){return W+22+75*(W<26)-((U!=0)<<5)}function Q(W,U,j){var M=0;for(W=j?C(W/d):W>>1,W+=C(W/U);W>b*u>>1;M+=l)W=C(W/b);return C(M+(b+1)*W/(W+p))}function G(W){var U=[],j=W.length,M,H=0,J=_,B=y,q,K,re,se,k,F,ae,Z,me;for(q=W.lastIndexOf(x),q<0&&(q=0),K=0;K<q;++K)W.charCodeAt(K)>=128&&w("not-basic"),U.push(W.charCodeAt(K));for(re=q>0?q+1:0;re<j;){for(se=H,k=1,F=l;re>=j&&w("invalid-input"),ae=L(W.charCodeAt(re++)),(ae>=l||ae>C((s-H)/k))&&w("overflow"),H+=ae*k,Z=F<=B?c:F>=B+u?u:F-B,!(ae<Z);F+=l)me=l-Z,k>C(s/me)&&w("overflow"),k*=me;M=U.length+1,B=Q(H-se,M,se==0),C(H/M)>s-J&&w("overflow"),J+=C(H/M),H%=M,U.splice(H++,0,J)}return T(U)}function z(W){var U,j,M,H,J,B,q,K,re,se,k,F=[],ae,Z,me,pe;for(W=A(W),ae=W.length,U=_,j=0,J=y,B=0;B<ae;++B)k=W[B],k<128&&F.push(E(k));for(M=H=F.length,H&&F.push(x);M<ae;){for(q=s,B=0;B<ae;++B)k=W[B],k>=U&&k<q&&(q=k);for(Z=M+1,q-U>C((s-j)/Z)&&w("overflow"),j+=(q-U)*Z,U=q,B=0;B<ae;++B)if(k=W[B],k<U&&++j>s&&w("overflow"),k==U){for(K=j,re=l;se=re<=J?c:re>=J+u?u:re-J,!(K<se);re+=l)pe=K-se,me=l-se,F.push(E(D(se+pe%me,0))),K=C(pe/me);F.push(E(D(K,0))),J=Q(j,Z,M==H),j=0,++M}++j,++U}return F.join("")}function Y(W){return P(W,function(U){return g.test(U)?G(U.slice(4).toLowerCase()):U})}function ee(W){return P(W,function(U){return v.test(U)?"xn--"+z(U):U})}if(a={version:"1.4.1",ucs2:{decode:A,encode:T},decode:G,encode:z,toASCII:ee,toUnicode:Y},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})(bt)})(ul,ul.exports);var Gk=ul.exports;const Kk=Hf(Gk),Xk={},Yk=Object.freeze(Object.defineProperty({__proto__:null,default:Xk},Symbol.toStringTag,{value:"Module"})),Qk=yv(Yk);var sp=typeof Map=="function"&&Map.prototype,Xc=Object.getOwnPropertyDescriptor&&sp?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,fl=sp&&Xc&&typeof Xc.get=="function"?Xc.get:null,Ng=sp&&Map.prototype.forEach,lp=typeof Set=="function"&&Set.prototype,Yc=Object.getOwnPropertyDescriptor&&lp?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,dl=lp&&Yc&&typeof Yc.get=="function"?Yc.get:null,Ig=lp&&Set.prototype.forEach,Jk=typeof WeakMap=="function"&&WeakMap.prototype,Zi=Jk?WeakMap.prototype.has:null,Zk=typeof WeakSet=="function"&&WeakSet.prototype,ea=Zk?WeakSet.prototype.has:null,eL=typeof WeakRef=="function"&&WeakRef.prototype,Ag=eL?WeakRef.prototype.deref:null,tL=Boolean.prototype.valueOf,nL=Object.prototype.toString,rL=Function.prototype.toString,oL=String.prototype.match,cp=String.prototype.slice,qr=String.prototype.replace,iL=String.prototype.toUpperCase,Mg=String.prototype.toLowerCase,lw=RegExp.prototype.test,jg=Array.prototype.concat,sr=Array.prototype.join,aL=Array.prototype.slice,kg=Math.floor,Tf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Qc=Object.getOwnPropertySymbols,Pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,vi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",cn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===vi||!0)?Symbol.toStringTag:null,cw=Object.prototype.propertyIsEnumerable,Lg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Fg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||lw.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-kg(-e):kg(e);if(r!==e){var o=String(r),i=cp.call(t,o.length+1);return qr.call(o,n,"$&_")+"."+qr.call(qr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return qr.call(t,n,"$&_")}var Nf=Qk,Dg=Nf.custom,Bg=fw(Dg)?Dg:null,sL=function e(t,n,r,o){var i=n||{};if(Fr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Fr(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=Fr(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(Fr(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(Fr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=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 pw(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?Fg(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?Fg(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 If(t)?"[Array]":"[Object]";var p=EL(i,r);if(typeof o>"u")o=[];else if(dw(o,t)>=0)return"[Circular]";function d(L,D,Q){if(D&&(o=aL.call(o),o.push(D)),Q){var G={depth:i.depth};return Fr(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(L,G,r+1,o)}return e(L,i,r+1,o)}if(typeof t=="function"&&!zg(t)){var y=gL(t),_=ms(t,d);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(_.length>0?" { "+sr.call(_,", ")+" }":"")}if(fw(t)){var x=vi?qr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Pf.call(t);return typeof t=="object"&&!vi?Bi(x):x}if(CL(t)){for(var g="<"+Mg.call(String(t.nodeName)),v=t.attributes||[],f=0;f<v.length;f++)g+=" "+v[f].name+"="+uw(lL(v[f].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+Mg.call(String(t.nodeName))+">",g}if(If(t)){if(t.length===0)return"[]";var m=ms(t,d);return p&&!SL(m)?"["+Af(m,p)+"]":"[ "+sr.call(m,", ")+" ]"}if(uL(t)){var b=ms(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!cw.call(t,"cause")?"{ ["+String(t)+"] "+sr.call(jg.call("[cause]: "+d(t.cause),b),", ")+" }":b.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+sr.call(b,", ")+" }"}if(typeof t=="object"&&a){if(Bg&&typeof t[Bg]=="function"&&Nf)return Nf(t,{depth:u-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(vL(t)){var C=[];return Ng&&Ng.call(t,function(L,D){C.push(d(D,t,!0)+" => "+d(L,t))}),qg("Map",fl.call(t),C,p)}if(_L(t)){var E=[];return Ig&&Ig.call(t,function(L){E.push(d(L,t))}),qg("Set",dl.call(t),E,p)}if(yL(t))return Jc("WeakMap");if(wL(t))return Jc("WeakSet");if(bL(t))return Jc("WeakRef");if(dL(t))return Bi(d(Number(t)));if(hL(t))return Bi(d(Tf.call(t)));if(pL(t))return Bi(tL.call(t));if(fL(t))return Bi(d(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof bt<"u"&&t===bt)return"{ [object globalThis] }";if(!cL(t)&&!zg(t)){var S=ms(t,d),w=Lg?Lg(t)===Object.prototype:t instanceof Object||t.constructor===Object,O=t instanceof Object?"":"null prototype",P=!w&&cn&&Object(t)===t&&cn in t?cp.call(Jr(t),8,-1):O?"Object":"",A=w||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",T=A+(P||O?"["+sr.call(jg.call([],P||[],O||[]),": ")+"] ":"");return S.length===0?T+"{}":p?T+"{"+Af(S,p)+"}":T+"{ "+sr.call(S,", ")+" }"}return String(t)};function uw(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function lL(e){return qr.call(String(e),/"/g,"&quot;")}function If(e){return Jr(e)==="[object Array]"&&(!cn||!(typeof e=="object"&&cn in e))}function cL(e){return Jr(e)==="[object Date]"&&(!cn||!(typeof e=="object"&&cn in e))}function zg(e){return Jr(e)==="[object RegExp]"&&(!cn||!(typeof e=="object"&&cn in e))}function uL(e){return Jr(e)==="[object Error]"&&(!cn||!(typeof e=="object"&&cn in e))}function fL(e){return Jr(e)==="[object String]"&&(!cn||!(typeof e=="object"&&cn in e))}function dL(e){return Jr(e)==="[object Number]"&&(!cn||!(typeof e=="object"&&cn in e))}function pL(e){return Jr(e)==="[object Boolean]"&&(!cn||!(typeof e=="object"&&cn in e))}function fw(e){if(vi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Pf)return!1;try{return Pf.call(e),!0}catch{}return!1}function hL(e){if(!e||typeof e!="object"||!Tf)return!1;try{return Tf.call(e),!0}catch{}return!1}var mL=Object.prototype.hasOwnProperty||function(e){return e in this};function Fr(e,t){return mL.call(e,t)}function Jr(e){return nL.call(e)}function gL(e){if(e.name)return e.name;var t=oL.call(rL.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function dw(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 vL(e){if(!fl||!e||typeof e!="object")return!1;try{fl.call(e);try{dl.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function yL(e){if(!Zi||!e||typeof e!="object")return!1;try{Zi.call(e,Zi);try{ea.call(e,ea)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function bL(e){if(!Ag||!e||typeof e!="object")return!1;try{return Ag.call(e),!0}catch{}return!1}function _L(e){if(!dl||!e||typeof e!="object")return!1;try{dl.call(e);try{fl.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function wL(e){if(!ea||!e||typeof e!="object")return!1;try{ea.call(e,ea);try{Zi.call(e,Zi)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function CL(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function pw(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return pw(cp.call(e,0,t.maxStringLength),t)+r}var o=qr.call(qr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,xL);return uw(o,"single",t)}function xL(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":"")+iL.call(t.toString(16))}function Bi(e){return"Object("+e+")"}function Jc(e){return e+" { ? }"}function qg(e,t,n,r){var o=r?Af(n,r):sr.call(n,", ");return e+" ("+t+") {"+o+"}"}function SL(e){for(var t=0;t<e.length;t++)if(dw(e[t],`
266
+ `)>=0)return!1;return!0}function EL(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=sr.call(Array(e.indent+1)," ");else return null;return{base:n,prev:sr.call(Array(t+1),n)}}function Af(e,t){if(e.length===0)return"";var n=`
267
+ `+t.prev+t.base;return n+sr.call(e,","+n)+`
268
+ `+t.prev}function ms(e,t){var n=If(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Fr(e,o)?t(e[o],e):""}var i=typeof Qc=="function"?Qc(e):[],a;if(vi){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var l in e)Fr(e,l)&&(n&&String(Number(l))===l&&l<e.length||vi&&a["$"+l]instanceof Symbol||(lw.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof Qc=="function")for(var c=0;c<i.length;c++)cw.call(e,i[c])&&r.push("["+t(i[c])+"]: "+t(e[i[c]],e));return r}var hw=Oi,$i=tp,RL=sL,OL=Fa,gs=hw("%WeakMap%",!0),vs=hw("%Map%",!0),$L=$i("WeakMap.prototype.get",!0),TL=$i("WeakMap.prototype.set",!0),PL=$i("WeakMap.prototype.has",!0),NL=$i("Map.prototype.get",!0),IL=$i("Map.prototype.set",!0),AL=$i("Map.prototype.has",!0),up=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},ML=function(e,t){var n=up(e,t);return n&&n.value},jL=function(e,t,n){var r=up(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},kL=function(e,t){return!!up(e,t)},LL=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new OL("Side channel does not contain "+RL(i))},get:function(i){if(gs&&i&&(typeof i=="object"||typeof i=="function")){if(t)return $L(t,i)}else if(vs){if(n)return NL(n,i)}else if(r)return ML(r,i)},has:function(i){if(gs&&i&&(typeof i=="object"||typeof i=="function")){if(t)return PL(t,i)}else if(vs){if(n)return AL(n,i)}else if(r)return kL(r,i);return!1},set:function(i,a){gs&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new gs),TL(t,i,a)):vs?(n||(n=new vs),IL(n,i,a)):(r||(r={key:{},next:null}),jL(r,i,a))}};return o},FL=String.prototype.replace,DL=/%20/g,Zc={RFC1738:"RFC1738",RFC3986:"RFC3986"},fp={default:Zc.RFC3986,formatters:{RFC1738:function(e){return FL.call(e,DL,"+")},RFC3986:function(e){return String(e)}},RFC1738:Zc.RFC1738,RFC3986:Zc.RFC3986},BL=fp,eu=Object.prototype.hasOwnProperty,lo=Array.isArray,tr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),zL=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(lo(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},mw=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},qL=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(lo(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!eu.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 lo(t)&&!lo(n)&&(o=mw(t,r)),lo(t)&&lo(n)?(n.forEach(function(i,a){if(eu.call(t,a)){var s=t[a];s&&typeof s=="object"&&i&&typeof i=="object"?t[a]=e(s,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var s=n[a];return eu.call(i,a)?i[a]=e(i[a],s,r):i[a]=s,i},o)},VL=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},HL=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}},tu=1024,WL=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 s="",l=0;l<a.length;l+=tu){for(var c=a.length>=tu?a.slice(l,l+tu):a,u=[],p=0;p<c.length;++p){var d=c.charCodeAt(p);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===BL.RFC1738&&(d===40||d===41)){u[u.length]=c.charAt(p);continue}if(d<128){u[u.length]=tr[d];continue}if(d<2048){u[u.length]=tr[192|d>>6]+tr[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=tr[224|d>>12]+tr[128|d>>6&63]+tr[128|d&63];continue}p+=1,d=65536+((d&1023)<<10|c.charCodeAt(p)&1023),u[u.length]=tr[240|d>>18]+tr[128|d>>12&63]+tr[128|d>>6&63]+tr[128|d&63]}s+=u.join("")}return s},UL=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],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(n.push({obj:a,prop:c}),r.push(u))}return zL(n),t},GL=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},KL=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},XL=function(t,n){return[].concat(t,n)},YL=function(t,n){if(lo(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},gw={arrayToObject:mw,assign:VL,combine:XL,compact:UL,decode:HL,encode:WL,isBuffer:KL,isRegExp:GL,maybeMap:YL,merge:qL},vw=LL,zs=gw,ta=fp,QL=Object.prototype.hasOwnProperty,yw={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},ar=Array.isArray,JL=Array.prototype.push,bw=function(e,t){JL.apply(e,ar(t)?t:[t])},ZL=Date.prototype.toISOString,Vg=ta.default,Kt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:zs.encode,encodeValuesOnly:!1,format:Vg,formatter:ta.formatters[Vg],indices:!1,serializeDate:function(t){return ZL.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"},nu={},tF=function e(t,n,r,o,i,a,s,l,c,u,p,d,y,_,x,g,v,f){for(var m=t,b=f,C=0,E=!1;(b=b.get(nu))!==void 0&&!E;){var S=b.get(t);if(C+=1,typeof S<"u"){if(S===C)throw new RangeError("Cyclic object value");E=!0}typeof b.get(nu)>"u"&&(C=0)}if(typeof u=="function"?m=u(n,m):m instanceof Date?m=y(m):r==="comma"&&ar(m)&&(m=zs.maybeMap(m,function(W){return W instanceof Date?y(W):W})),m===null){if(a)return c&&!g?c(n,Kt.encoder,v,"key",_):n;m=""}if(eF(m)||zs.isBuffer(m)){if(c){var w=g?n:c(n,Kt.encoder,v,"key",_);return[x(w)+"="+x(c(m,Kt.encoder,v,"value",_))]}return[x(n)+"="+x(String(m))]}var O=[];if(typeof m>"u")return O;var P;if(r==="comma"&&ar(m))g&&c&&(m=zs.maybeMap(m,c)),P=[{value:m.length>0?m.join(",")||null:void 0}];else if(ar(u))P=u;else{var A=Object.keys(m);P=p?A.sort(p):A}var T=l?n.replace(/\./g,"%2E"):n,L=o&&ar(m)&&m.length===1?T+"[]":T;if(i&&ar(m)&&m.length===0)return L+"[]";for(var D=0;D<P.length;++D){var Q=P[D],G=typeof Q=="object"&&typeof Q.value<"u"?Q.value:m[Q];if(!(s&&G===null)){var z=d&&l?Q.replace(/\./g,"%2E"):Q,Y=ar(m)?typeof r=="function"?r(L,z):L:L+(d?"."+z:"["+z+"]");f.set(t,C);var ee=vw();ee.set(nu,f),bw(O,e(G,Y,r,o,i,a,s,l,r==="comma"&&g&&ar(m)?null:c,u,p,d,y,_,x,g,v,ee))}}return O},nF=function(t){if(!t)return Kt;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||Kt.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=ta.default;if(typeof t.format<"u"){if(!QL.call(ta.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=ta.formatters[r],i=Kt.filter;(typeof t.filter=="function"||ar(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in yw?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Kt.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Kt.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Kt.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Kt.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Kt.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Kt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Kt.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Kt.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Kt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Kt.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Kt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Kt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Kt.strictNullHandling}},rF=function(e,t){var n=e,r=nF(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):ar(r.filter)&&(i=r.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var s=yw[r.arrayFormat],l=s==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=vw(),u=0;u<o.length;++u){var p=o[u];r.skipNulls&&n[p]===null||bw(a,tF(n[p],p,s,l,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:""},yi=gw,Mf=Object.prototype.hasOwnProperty,oF=Array.isArray,kt={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:yi.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},iF=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},_w=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},aF="utf8=%26%2310003%3B",sF="utf8=%E2%9C%93",lF=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),s=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===sF?c="utf-8":a[l]===aF&&(c="iso-8859-1"),s=l,l=a.length);for(l=0;l<a.length;++l)if(l!==s){var u=a[l],p=u.indexOf("]="),d=p===-1?u.indexOf("="):p+1,y,_;d===-1?(y=n.decoder(u,kt.decoder,c,"key"),_=n.strictNullHandling?null:""):(y=n.decoder(u.slice(0,d),kt.decoder,c,"key"),_=yi.maybeMap(_w(u.slice(d+1),n),function(g){return n.decoder(g,kt.decoder,c,"value")})),_&&n.interpretNumericEntities&&c==="iso-8859-1"&&(_=iF(_)),u.indexOf("[]=")>-1&&(_=oF(_)?[_]:_);var x=Mf.call(r,y);x&&n.duplicates==="combine"?r[y]=yi.combine(r[y],_):(!x||n.duplicates==="last")&&(r[y]=_)}return r},cF=function(e,t,n,r){for(var o=r?t:_w(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if(s==="[]"&&n.parseArrays)a=n.allowEmptyArrays&&(o===""||n.strictNullHandling&&o===null)?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,u=parseInt(c,10);!n.parseArrays&&c===""?a={0:o}:!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},uF=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=r.depth>0&&a.exec(i),c=l?i.slice(0,l.index):i,u=[];if(c){if(!r.plainObjects&&Mf.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var p=0;r.depth>0&&(l=s.exec(i))!==null&&p<r.depth;){if(p+=1,!r.plainObjects&&Mf.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(l[1])}if(l){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(l.index)+"]")}return cF(u,n,r,o)}},fF=function(t){if(!t)return kt;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"?kt.charset:t.charset,r=typeof t.duplicates>"u"?kt.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:kt.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:kt.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:kt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:kt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:kt.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:kt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:kt.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:kt.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:kt.decoder,delimiter:typeof t.delimiter=="string"||yi.isRegExp(t.delimiter)?t.delimiter:kt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:kt.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:kt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:kt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:kt.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:kt.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:kt.strictNullHandling}},dF=function(e,t){var n=fF(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?lF(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a<i.length;++a){var s=i[a],l=uF(s,r[s],n,typeof e=="string");o=yi.merge(o,l,n)}return n.allowSparse===!0?o:yi.compact(o)},pF=rF,hF=dF,mF=fp,gF={formats:mF,parse:hF,stringify:pF};const vF=Hf(gF);var yF=Kk;function Mn(){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 bF=/^([a-z0-9.+-]+:)/i,_F=/:[0-9]*$/,wF=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,CF=["<",">",'"',"`"," ","\r",`
269
+ `," "],xF=["{","}","|","\\","^","`"].concat(CF),jf=["'"].concat(xF),Hg=["%","/","?",";","#"].concat(jf),Wg=["/","?","#"],SF=255,Ug=/^[+a-z0-9A-Z_-]{0,63}$/,EF=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,RF={javascript:!0,"javascript:":!0},kf={javascript:!0,"javascript:":!0},fi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Lf=vF;function Ba(e,t,n){if(e&&typeof e=="object"&&e instanceof Mn)return e;var r=new Mn;return r.parse(e,t,n),r}Mn.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 s=e;if(s=s.trim(),!n&&e.split("#").length===1){var l=wF.exec(s);if(l)return this.path=s,this.href=s,this.pathname=l[1],l[2]?(this.search=l[2],t?this.query=Lf.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var c=bF.exec(s);if(c){c=c[0];var u=c.toLowerCase();this.protocol=u,s=s.substr(c.length)}if(n||c||s.match(/^\/\/[^@/]+@[^@/]+/)){var p=s.substr(0,2)==="//";p&&!(c&&kf[c])&&(s=s.substr(2),this.slashes=!0)}if(!kf[c]&&(p||c&&!fi[c])){for(var d=-1,y=0;y<Wg.length;y++){var _=s.indexOf(Wg[y]);_!==-1&&(d===-1||_<d)&&(d=_)}var x,g;d===-1?g=s.lastIndexOf("@"):g=s.lastIndexOf("@",d),g!==-1&&(x=s.slice(0,g),s=s.slice(g+1),this.auth=decodeURIComponent(x)),d=-1;for(var y=0;y<Hg.length;y++){var _=s.indexOf(Hg[y]);_!==-1&&(d===-1||_<d)&&(d=_)}d===-1&&(d=s.length),this.host=s.slice(0,d),s=s.slice(d),this.parseHost(),this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v)for(var f=this.hostname.split(/\./),y=0,m=f.length;y<m;y++){var b=f[y];if(b&&!b.match(Ug)){for(var C="",E=0,S=b.length;E<S;E++)b.charCodeAt(E)>127?C+="x":C+=b[E];if(!C.match(Ug)){var w=f.slice(0,y),O=f.slice(y+1),P=b.match(EF);P&&(w.push(P[1]),O.unshift(P[2])),O.length&&(s="/"+O.join(".")+s),this.hostname=w.join(".");break}}}this.hostname.length>SF?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=yF.toASCII(this.hostname));var A=this.port?":"+this.port:"",T=this.hostname||"";this.host=T+A,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!RF[u])for(var y=0,m=jf.length;y<m;y++){var L=jf[y];if(s.indexOf(L)!==-1){var D=encodeURIComponent(L);D===L&&(D=escape(L)),s=s.split(L).join(D)}}var Q=s.indexOf("#");Q!==-1&&(this.hash=s.substr(Q),s=s.slice(0,Q));var G=s.indexOf("?");if(G!==-1?(this.search=s.substr(G),this.query=s.substr(G+1),t&&(this.query=Lf.parse(this.query)),s=s.slice(0,G)):t&&(this.search="",this.query={}),s&&(this.pathname=s),fi[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var A=this.pathname||"",z=this.search||"";this.path=A+z}return this.href=this.format(),this};function OF(e){return typeof e=="string"&&(e=Ba(e)),e instanceof Mn?e.format():Mn.prototype.format.call(e)}Mn.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=Lf.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||fi[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(s){return encodeURIComponent(s)}),a=a.replace("#","%23"),t+o+n+a+r};function $F(e,t){return Ba(e,!1,!0).resolve(t)}Mn.prototype.resolve=function(e){return this.resolveObject(Ba(e,!1,!0)).format()};function TF(e,t){return e?Ba(e,!1,!0).resolveObject(t):t}Mn.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new Mn;t.parse(e,!1,!0),e=t}for(var n=new Mn,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),s=0;s<a.length;s++){var l=a[s];l!=="protocol"&&(n[l]=e[l])}return fi[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(!fi[e.protocol]){for(var c=Object.keys(e),u=0;u<c.length;u++){var p=c[u];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!kf[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 _=n.pathname&&n.pathname.charAt(0)==="/",x=e.host||e.pathname&&e.pathname.charAt(0)==="/",g=x||_||n.host&&e.pathname,v=g,f=n.pathname&&n.pathname.split("/")||[],m=e.pathname&&e.pathname.split("/")||[],b=n.protocol&&!fi[n.protocol];if(b&&(n.hostname="",n.port=null,n.host&&(f[0]===""?f[0]=n.host:f.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),g=g&&(m[0]===""||f[0]==="")),x)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,f=m;else if(m.length)f||(f=[]),f.pop(),f=f.concat(m),n.search=e.search,n.query=e.query;else if(e.search!=null){if(b){n.host=f.shift(),n.hostname=n.host;var C=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;C&&(n.auth=C.shift(),n.hostname=C.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(!f.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=f.slice(-1)[0],S=(n.host||e.host||f.length>1)&&(E==="."||E==="..")||E==="",w=0,O=f.length;O>=0;O--)E=f[O],E==="."?f.splice(O,1):E===".."?(f.splice(O,1),w++):w&&(f.splice(O,1),w--);if(!g&&!v)for(;w--;w)f.unshift("..");g&&f[0]!==""&&(!f[0]||f[0].charAt(0)!=="/")&&f.unshift(""),S&&f.join("/").substr(-1)!=="/"&&f.push("");var P=f[0]===""||f[0]&&f[0].charAt(0)==="/";if(b){n.hostname=P?"":f.length?f.shift():"",n.host=n.hostname;var C=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;C&&(n.auth=C.shift(),n.hostname=C.shift(),n.host=n.hostname)}return g=g||n.host&&f.length,g&&!P&&f.unshift(""),f.length>0?n.pathname=f.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};Mn.prototype.parseHost=function(){var e=this.host,t=_F.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 PF=Ba,NF=$F,ww=TF,IF=OF,AF=Mn;function MF(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 jF(){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=MF(kF(e.split("/"),function(o){return!!o}),!t).join("/"),(t?"/":"")+e||"."}function kF(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 Cw=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),LF=IF,xw=PF,Sw=NF,Ew=AF,Gr=Cw.URL,Rw=Cw.URLSearchParams,FF=/%/g,DF=/\\/g,BF=/\n/g,zF=/\r/g,qF=/\t/g,VF=47;function HF(e){var t=e??null;return!!(t!==null&&(t!=null&&t.href)&&(t!=null&&t.origin))}function WF(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 UF(e){return e.includes("%")&&(e=e.replace(FF,"%25")),e.includes("\\")&&(e=e.replace(DF,"%5C")),e.includes(`
270
+ `)&&(e=e.replace(BF,"%0A")),e.includes("\r")&&(e=e.replace(zF,"%0D")),e.includes(" ")&&(e=e.replace(qF,"%09")),e}var Ow=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Gr("http://"+t).hostname},$w=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Gr("http://"+t).hostname},Tw=function(t){var n=new Gr("file://"),r=jF(t),o=t.charCodeAt(t.length-1);return o===VF&&r[r.length-1]!=="/"&&(r+="/"),n.pathname=UF(r),n},Pw=function(t){if(!HF(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 Gr(t);if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return WF(n)},Nw=function(t,n){var r,o,i,a;if(n===void 0&&(n={}),!(t instanceof Gr))return LF(t);if(typeof n!="object"||n===null)throw new TypeError('The "options" argument must be of type object.');var s=(r=n.auth)!=null?r:!0,l=(o=n.fragment)!=null?o:!0,c=(i=n.search)!=null?i:!0;(a=n.unicode)!=null;var u=new Gr(t.toString());return s||(u.username="",u.password=""),l||(u.hash=""),c||(u.search=""),u.toString()},GF={format:Nw,parse:xw,resolve:Sw,resolveObject:ww,Url:Ew,URL:Gr,URLSearchParams:Rw,domainToASCII:Ow,domainToUnicode:$w,pathToFileURL:Tw,fileURLToPath:Pw};const KF=Object.freeze(Object.defineProperty({__proto__:null,URL:Gr,URLSearchParams:Rw,Url:Ew,default:GF,domainToASCII:Ow,domainToUnicode:$w,fileURLToPath:Pw,format:Nw,parse:xw,pathToFileURL:Tw,resolve:Sw,resolveObject:ww},Symbol.toStringTag,{value:"Module"})),Iw=yv(KF);(function(e){var t=qk,n=ql,r=Vk,o=Uk,i=Iw,a=e;a.request=function(s,l){typeof s=="string"?s=i.parse(s):s=r(s);var c=bt.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,p=s.hostname||s.host,d=s.port,y=s.path||"/";p&&p.indexOf(":")!==-1&&(p="["+p+"]"),s.url=(p?u+"//"+p:"")+(d?":"+d:"")+y,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var _=new t(s);return l&&_.on("response",l),_},a.get=function(l,c){var u=a.request(l,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"]})(S_);(function(e){var t=S_,n=Iw,r=e.exports;for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.request=function(a,s){return a=i(a),t.request.call(this,a,s)},r.get=function(a,s){return a=i(a),t.get.call(this,a,s)};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}})(gj);const Gg={__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:{}}},Yo={__template:{field:""},field:"{field}",missing:0,script:{}},XF={__template:{field:""},field:"{field}"},ei={__one_of:["skip","insert_zeros"]},kr={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:ei},Ff={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Yo,max:Yo,avg:Yo,sum:Yo,stats:Yo,extended_stats:Yo,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:XF,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:{...Gg,filter_duplicate_text:"__flag__"},significant_terms:Gg,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:kr,avg_bucket:kr,max_bucket:kr,min_bucket:kr,stats_bucket:kr,extended_stats_bucket:{...kr,sigma:""},percentiles_bucket:{...kr,percents:[]},sum_bucket:kr,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:ei,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:ei,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:ei,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:ei,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:ei},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},{terms:YF,histogram:QF,date_histogram:JF}=Ff["*"],ZF=e=>{e.addGlobalAutocompleteRules("aggregations",Ff),e.addGlobalAutocompleteRules("aggs",Ff),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:YF,histogram:QF,date_histogram:JF}})},eD=e=>{const t={filter:{},routing:"1",search_routing:"1,2",index_routing:"1"};e.addGlobalAutocompleteRules("aliases",{"*":t})},tD=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 nD=e=>{e.addGlobalAutocompleteRules("filter",It)},Kg={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:{}},rD=e=>{e.addGlobalAutocompleteRules("highlight",{...Kg,fields:{"{field}":{fragment_size:20,...Kg}}}),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:""},oD={append:{__template:{field:"",value:[]},field:"",value:[],...ht}},iD={bytes:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},aD={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}},sD={csv:{__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]},...ht}},lD={convert:{__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},cD={date:{__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH",...ht}},uD={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}},fD={dissect:{__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]},...ht}},dD={dot_expander:{__template:{field:""},field:"",path:"",...ht}},pD={drop:{__template:{},...ht}},hD={fail:{__template:{message:""},message:"",...ht}},mD={foreach:{__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"},...ht}},gD={geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},vD={grok:{__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]},...ht}},yD={gsub:{__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:"",...ht}},bD={html_strip:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},_D={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}},CD={json:{__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]},...ht}},xD={kv:{__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]},...ht}},SD={lowercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},ED={pipeline:{__template:{name:""},name:"",...ht}},RD={remove:{__template:{field:""},field:"",...ht}},OD={rename:{__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},$D={script:{__template:{},lang:"painless",file:"",id:"",source:"",params:{},...ht}},TD={set:{__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]},...ht}},PD={set_security_user:{__template:{field:""},field:"",properties:[""],...ht}},ND={split:{__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]},...ht}},ID={sort:{__template:{field:""},field:"",order:"asc",...ht}},AD={trim:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},MD={uppercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},jD={urldecode:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...ht}},kD={user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}},Aw={__one_of:[oD,iD,sD,aD,lD,cD,uD,fD,dD,pD,hD,mD,gD,vD,yD,bD,_D,wD,CD,xD,SD,ED,RD,OD,$D,TD,PD,ND,ID,AD,MD,jD,kD]},Xg={description:"",processors:[Aw],version:123},LD=e=>{e.addEndpointDescription("_processor",{data_autocomplete_rules:Aw}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:Xg}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:Xg,docs:[]}})},Et=Object.freeze({__one_of:[!0,!1]}),FD=e=>{e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:Et},_all:{enabled:Et},_field_names:{index:Et},_routing:{required:Et},_index:{enabled:Et},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:Et,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:Et,numeric_detection:Et,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:Et,index:Et,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:Et,eager_global_ordinals:Et,norms:Et,coerce:Et,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:Et,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:Et,include_in_root:Et}}}})},DD=e=>{e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":Et,"blocks.read":Et,"blocks.write":Et,"blocks.metadata":Et,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":Et,"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":Et,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":Et,shadow_replicas:Et,shared_filesystem:Et,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},Mw={FIELD:"REGEXP"},jw={FIELD:{}},kw={FIELD:{value:""}},Lw={FIELD:{gte:10,lte:20}},Fw={match:{span_term:{FIELD:"VALUE"}},end:3},Dw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},Bw={FIELD:{value:"VALUE"}},zw={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},qw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},Vw={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}}},Hw={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}}},Ww={FIELD:{value:"VALUE"}},Yg={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},Qg={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"]}},Jg={span_first:{__template:Fw,__scope_link:".span_first"},span_near:{__template:Dw,__scope_link:".span_near"},span_or:{__template:qw,__scope_link:".span_or"},span_not:{__template:zw,__scope_link:".span_not"},span_term:{__template:Bw,__scope_link:".span_term"},span_containing:{__template:Vw,__scope_link:".span_containing"},span_within:{__template:Hw,__scope_link:".span_within"}},yr={...Jg,field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:Jg,field:""}},BD={wildcard:{__template:Ww,__scope_link:".wildcard"},fuzzy:{__template:jw,__scope_link:".fuzzy"},prefix:{__template:kw,__scope_link:".prefix"},range:{__template:Lw,__scope_link:".range"},regexp:{__template:Mw,__scope_link:".regexp"}},ru={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},Zg={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:ru,exp:ru,gauss:ru,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},zD=e=>{e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":{type:{__one_of:["phrase","phrase_prefix","boolean"]},...Yg}},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:Mw,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:{__template:{query:"",fields:[]},...Yg,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:jw,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:{...Qg},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:kw,"{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:Lw,"{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:Fw,match:yr},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:BD},span_near:{__template:Dw,clauses:[yr],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:Bw,"{field}":{value:"",boost:2}},span_not:{__template:zw,include:yr,exclude:yr},span_or:{__template:qw,clauses:[yr]},span_containing:{__template:Vw,little:yr,big:yr},span_within:{__template:Hw,little:yr,big:yr},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:Ww,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:{...Qg},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:be.defaults({__template:{query:{},functions:[{}]},query:{},functions:[be.defaults({filter:{},weight:1},Zg)],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},Zg),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},qD=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"}}})},VD=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"}}})},HD=[ZF,eD,tD,nD,rD,LD,FD,DD,zD,qD,VD];class WD{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;be.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=be.assign(n.url_params||{},r.url_params),be.defaults(n.url_params,o)),be.assign(r,n),be.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(()=>require("./_common-CMOqKs8V.cjs")),"../lib/spec_definitions/json/generated/bulk.json":()=>Promise.resolve().then(()=>require("./bulk-5mm3LC-n.cjs")),"../lib/spec_definitions/json/generated/cat.aliases.json":()=>Promise.resolve().then(()=>require("./cat.aliases-DnMoMbH3.cjs")),"../lib/spec_definitions/json/generated/cat.allocation.json":()=>Promise.resolve().then(()=>require("./cat.allocation-BM_YASyK.cjs")),"../lib/spec_definitions/json/generated/cat.count.json":()=>Promise.resolve().then(()=>require("./cat.count-DtahJB4e.cjs")),"../lib/spec_definitions/json/generated/cat.fielddata.json":()=>Promise.resolve().then(()=>require("./cat.fielddata-Bf4DFcNn.cjs")),"../lib/spec_definitions/json/generated/cat.health.json":()=>Promise.resolve().then(()=>require("./cat.health-B8rSXJl5.cjs")),"../lib/spec_definitions/json/generated/cat.help.json":()=>Promise.resolve().then(()=>require("./cat.help-BBfM7V--.cjs")),"../lib/spec_definitions/json/generated/cat.indices.json":()=>Promise.resolve().then(()=>require("./cat.indices-B7dGCeWZ.cjs")),"../lib/spec_definitions/json/generated/cat.master.json":()=>Promise.resolve().then(()=>require("./cat.master-BO1xbYN-.cjs")),"../lib/spec_definitions/json/generated/cat.nodeattrs.json":()=>Promise.resolve().then(()=>require("./cat.nodeattrs-CDPi2wGi.cjs")),"../lib/spec_definitions/json/generated/cat.nodes.json":()=>Promise.resolve().then(()=>require("./cat.nodes-XNPR1TfD.cjs")),"../lib/spec_definitions/json/generated/cat.pending_tasks.json":()=>Promise.resolve().then(()=>require("./cat.pending_tasks-C3LGOdj_.cjs")),"../lib/spec_definitions/json/generated/cat.plugins.json":()=>Promise.resolve().then(()=>require("./cat.plugins-BtvSUMfZ.cjs")),"../lib/spec_definitions/json/generated/cat.recovery.json":()=>Promise.resolve().then(()=>require("./cat.recovery-DYY_mQze.cjs")),"../lib/spec_definitions/json/generated/cat.repositories.json":()=>Promise.resolve().then(()=>require("./cat.repositories-DHM-neKo.cjs")),"../lib/spec_definitions/json/generated/cat.segments.json":()=>Promise.resolve().then(()=>require("./cat.segments-B7AYrkZs.cjs")),"../lib/spec_definitions/json/generated/cat.shards.json":()=>Promise.resolve().then(()=>require("./cat.shards-BFohEeDv.cjs")),"../lib/spec_definitions/json/generated/cat.snapshots.json":()=>Promise.resolve().then(()=>require("./cat.snapshots-B79mLWvF.cjs")),"../lib/spec_definitions/json/generated/cat.tasks.json":()=>Promise.resolve().then(()=>require("./cat.tasks-DzXoXAP3.cjs")),"../lib/spec_definitions/json/generated/cat.templates.json":()=>Promise.resolve().then(()=>require("./cat.templates--VBAJ79z.cjs")),"../lib/spec_definitions/json/generated/cat.thread_pool.json":()=>Promise.resolve().then(()=>require("./cat.thread_pool-Dve3vc7H.cjs")),"../lib/spec_definitions/json/generated/clear_scroll.json":()=>Promise.resolve().then(()=>require("./clear_scroll-CoeqJJM6.cjs")),"../lib/spec_definitions/json/generated/cluster.allocation_explain.json":()=>Promise.resolve().then(()=>require("./cluster.allocation_explain-5uMsnyRu.cjs")),"../lib/spec_definitions/json/generated/cluster.delete_component_template.json":()=>Promise.resolve().then(()=>require("./cluster.delete_component_template-WYaVdav2.cjs")),"../lib/spec_definitions/json/generated/cluster.get_component_template.json":()=>Promise.resolve().then(()=>require("./cluster.get_component_template-uPK7ZXdY.cjs")),"../lib/spec_definitions/json/generated/cluster.get_settings.json":()=>Promise.resolve().then(()=>require("./cluster.get_settings-C5WGvBat.cjs")),"../lib/spec_definitions/json/generated/cluster.health.json":()=>Promise.resolve().then(()=>require("./cluster.health-BIY-QH5E.cjs")),"../lib/spec_definitions/json/generated/cluster.pending_tasks.json":()=>Promise.resolve().then(()=>require("./cluster.pending_tasks-BByEdB17.cjs")),"../lib/spec_definitions/json/generated/cluster.put_component_template.json":()=>Promise.resolve().then(()=>require("./cluster.put_component_template-Dpp0iPob.cjs")),"../lib/spec_definitions/json/generated/cluster.put_settings.json":()=>Promise.resolve().then(()=>require("./cluster.put_settings-BufMweSm.cjs")),"../lib/spec_definitions/json/generated/cluster.remote_info.json":()=>Promise.resolve().then(()=>require("./cluster.remote_info-D2lcZ1Ym.cjs")),"../lib/spec_definitions/json/generated/cluster.reroute.json":()=>Promise.resolve().then(()=>require("./cluster.reroute-CVmCu_5D.cjs")),"../lib/spec_definitions/json/generated/cluster.state.json":()=>Promise.resolve().then(()=>require("./cluster.state-BZZfYTNi.cjs")),"../lib/spec_definitions/json/generated/cluster.stats.json":()=>Promise.resolve().then(()=>require("./cluster.stats-Da5JRRh6.cjs")),"../lib/spec_definitions/json/generated/count.json":()=>Promise.resolve().then(()=>require("./count-XFzlrndY.cjs")),"../lib/spec_definitions/json/generated/create.json":()=>Promise.resolve().then(()=>require("./create-BNeLmmv4.cjs")),"../lib/spec_definitions/json/generated/delete.json":()=>Promise.resolve().then(()=>require("./delete-DfL1cQ5-.cjs")),"../lib/spec_definitions/json/generated/delete_by_query.json":()=>Promise.resolve().then(()=>require("./delete_by_query-CFDMiFmM.cjs")),"../lib/spec_definitions/json/generated/delete_by_query_rethrottle.json":()=>Promise.resolve().then(()=>require("./delete_by_query_rethrottle-BykCpP0w.cjs")),"../lib/spec_definitions/json/generated/delete_script.json":()=>Promise.resolve().then(()=>require("./delete_script-CV-JzzD3.cjs")),"../lib/spec_definitions/json/generated/exists.json":()=>Promise.resolve().then(()=>require("./exists-3-a1BjWn.cjs")),"../lib/spec_definitions/json/generated/exists_source.json":()=>Promise.resolve().then(()=>require("./exists_source-CZgoQsbu.cjs")),"../lib/spec_definitions/json/generated/explain.json":()=>Promise.resolve().then(()=>require("./explain-CUI_flx7.cjs")),"../lib/spec_definitions/json/generated/field_caps.json":()=>Promise.resolve().then(()=>require("./field_caps-Cun8gqi4.cjs")),"../lib/spec_definitions/json/generated/get.json":()=>Promise.resolve().then(()=>require("./get-DaALtELy.cjs")),"../lib/spec_definitions/json/generated/get_script.json":()=>Promise.resolve().then(()=>require("./get_script-DTHXjUfG.cjs")),"../lib/spec_definitions/json/generated/get_script_context.json":()=>Promise.resolve().then(()=>require("./get_script_context-oiMyBvK1.cjs")),"../lib/spec_definitions/json/generated/get_script_languages.json":()=>Promise.resolve().then(()=>require("./get_script_languages-CLmFVKlG.cjs")),"../lib/spec_definitions/json/generated/get_source.json":()=>Promise.resolve().then(()=>require("./get_source-CPfBrc6C.cjs")),"../lib/spec_definitions/json/generated/index.json":()=>Promise.resolve().then(()=>require("./index-CsL0mn-5.cjs")),"../lib/spec_definitions/json/generated/indices.analyze.json":()=>Promise.resolve().then(()=>require("./indices.analyze-ByoFggw9.cjs")),"../lib/spec_definitions/json/generated/indices.clear_cache.json":()=>Promise.resolve().then(()=>require("./indices.clear_cache-_YwdaEs0.cjs")),"../lib/spec_definitions/json/generated/indices.clone.json":()=>Promise.resolve().then(()=>require("./indices.clone-8RL66eeg.cjs")),"../lib/spec_definitions/json/generated/indices.close.json":()=>Promise.resolve().then(()=>require("./indices.close-DTa6uPUz.cjs")),"../lib/spec_definitions/json/generated/indices.create.json":()=>Promise.resolve().then(()=>require("./indices.create-BxbZU62B.cjs")),"../lib/spec_definitions/json/generated/indices.delete.json":()=>Promise.resolve().then(()=>require("./indices.delete-CE2lZntY.cjs")),"../lib/spec_definitions/json/generated/indices.delete_alias.json":()=>Promise.resolve().then(()=>require("./indices.delete_alias-DQYnlM2Z.cjs")),"../lib/spec_definitions/json/generated/indices.delete_template.json":()=>Promise.resolve().then(()=>require("./indices.delete_template-DkYccHYX.cjs")),"../lib/spec_definitions/json/generated/indices.exists.json":()=>Promise.resolve().then(()=>require("./indices.exists-Dwhj4QKp.cjs")),"../lib/spec_definitions/json/generated/indices.exists_alias.json":()=>Promise.resolve().then(()=>require("./indices.exists_alias-7t7EFwPH.cjs")),"../lib/spec_definitions/json/generated/indices.exists_template.json":()=>Promise.resolve().then(()=>require("./indices.exists_template-CF_8-Wny.cjs")),"../lib/spec_definitions/json/generated/indices.exists_type.json":()=>Promise.resolve().then(()=>require("./indices.exists_type-wQ9DvIxA.cjs")),"../lib/spec_definitions/json/generated/indices.flush.json":()=>Promise.resolve().then(()=>require("./indices.flush-NSDkNUwg.cjs")),"../lib/spec_definitions/json/generated/indices.flush_synced.json":()=>Promise.resolve().then(()=>require("./indices.flush_synced-Dl6Y4gsT.cjs")),"../lib/spec_definitions/json/generated/indices.forcemerge.json":()=>Promise.resolve().then(()=>require("./indices.forcemerge-BySPCum-.cjs")),"../lib/spec_definitions/json/generated/indices.get.json":()=>Promise.resolve().then(()=>require("./indices.get-BdIK83rw.cjs")),"../lib/spec_definitions/json/generated/indices.get_alias.json":()=>Promise.resolve().then(()=>require("./indices.get_alias-BnSvYNtw.cjs")),"../lib/spec_definitions/json/generated/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>require("./indices.get_field_mapping-DXlWi4h4.cjs")),"../lib/spec_definitions/json/generated/indices.get_mapping.json":()=>Promise.resolve().then(()=>require("./indices.get_mapping-CICPJLBi.cjs")),"../lib/spec_definitions/json/generated/indices.get_settings.json":()=>Promise.resolve().then(()=>require("./indices.get_settings-DI3-Xphq.cjs")),"../lib/spec_definitions/json/generated/indices.get_template.json":()=>Promise.resolve().then(()=>require("./indices.get_template-DzPfsFeU.cjs")),"../lib/spec_definitions/json/generated/indices.get_upgrade.json":()=>Promise.resolve().then(()=>require("./indices.get_upgrade-Cwepj_3S.cjs")),"../lib/spec_definitions/json/generated/indices.open.json":()=>Promise.resolve().then(()=>require("./indices.open-BPqJqVIp.cjs")),"../lib/spec_definitions/json/generated/indices.put_alias.json":()=>Promise.resolve().then(()=>require("./indices.put_alias-Dl0nLnFj.cjs")),"../lib/spec_definitions/json/generated/indices.put_mapping.json":()=>Promise.resolve().then(()=>require("./indices.put_mapping-CubbpiC5.cjs")),"../lib/spec_definitions/json/generated/indices.put_settings.json":()=>Promise.resolve().then(()=>require("./indices.put_settings-ApYmb-G6.cjs")),"../lib/spec_definitions/json/generated/indices.put_template.json":()=>Promise.resolve().then(()=>require("./indices.put_template-CkmLUYRN.cjs")),"../lib/spec_definitions/json/generated/indices.recovery.json":()=>Promise.resolve().then(()=>require("./indices.recovery-wXwYhDT0.cjs")),"../lib/spec_definitions/json/generated/indices.refresh.json":()=>Promise.resolve().then(()=>require("./indices.refresh-D-1MhdaQ.cjs")),"../lib/spec_definitions/json/generated/indices.rollover.json":()=>Promise.resolve().then(()=>require("./indices.rollover-CwmmlQz1.cjs")),"../lib/spec_definitions/json/generated/indices.segments.json":()=>Promise.resolve().then(()=>require("./indices.segments-BNJbwGhI.cjs")),"../lib/spec_definitions/json/generated/indices.shard_stores.json":()=>Promise.resolve().then(()=>require("./indices.shard_stores-D6RBlJlX.cjs")),"../lib/spec_definitions/json/generated/indices.shrink.json":()=>Promise.resolve().then(()=>require("./indices.shrink-BskJk9Va.cjs")),"../lib/spec_definitions/json/generated/indices.split.json":()=>Promise.resolve().then(()=>require("./indices.split-C031jsQI.cjs")),"../lib/spec_definitions/json/generated/indices.stats.json":()=>Promise.resolve().then(()=>require("./indices.stats-B2GKe51V.cjs")),"../lib/spec_definitions/json/generated/indices.update_aliases.json":()=>Promise.resolve().then(()=>require("./indices.update_aliases-DEi6eajk.cjs")),"../lib/spec_definitions/json/generated/indices.upgrade.json":()=>Promise.resolve().then(()=>require("./indices.upgrade-pZP_rCzh.cjs")),"../lib/spec_definitions/json/generated/indices.validate_query.json":()=>Promise.resolve().then(()=>require("./indices.validate_query-BmgN43C3.cjs")),"../lib/spec_definitions/json/generated/info.json":()=>Promise.resolve().then(()=>require("./info-Bihl3ycX.cjs")),"../lib/spec_definitions/json/generated/ingest.delete_pipeline.json":()=>Promise.resolve().then(()=>require("./ingest.delete_pipeline-8sqPIBEw.cjs")),"../lib/spec_definitions/json/generated/ingest.get_pipeline.json":()=>Promise.resolve().then(()=>require("./ingest.get_pipeline-CoyMO45r.cjs")),"../lib/spec_definitions/json/generated/ingest.processor_grok.json":()=>Promise.resolve().then(()=>require("./ingest.processor_grok-B-R3mNZz.cjs")),"../lib/spec_definitions/json/generated/ingest.put_pipeline.json":()=>Promise.resolve().then(()=>require("./ingest.put_pipeline-C48N8VLb.cjs")),"../lib/spec_definitions/json/generated/ingest.simulate.json":()=>Promise.resolve().then(()=>require("./ingest.simulate-xTiA-ntV.cjs")),"../lib/spec_definitions/json/generated/mget.json":()=>Promise.resolve().then(()=>require("./mget-CTm-_LOH.cjs")),"../lib/spec_definitions/json/generated/msearch.json":()=>Promise.resolve().then(()=>require("./msearch-D2RYRdg9.cjs")),"../lib/spec_definitions/json/generated/msearch_template.json":()=>Promise.resolve().then(()=>require("./msearch_template-D-5waRCZ.cjs")),"../lib/spec_definitions/json/generated/mtermvectors.json":()=>Promise.resolve().then(()=>require("./mtermvectors-Iob1EyZq.cjs")),"../lib/spec_definitions/json/generated/nodes.hot_threads.json":()=>Promise.resolve().then(()=>require("./nodes.hot_threads-DtdspLBs.cjs")),"../lib/spec_definitions/json/generated/nodes.info.json":()=>Promise.resolve().then(()=>require("./nodes.info-B5qBn4bJ.cjs")),"../lib/spec_definitions/json/generated/nodes.reload_secure_settings.json":()=>Promise.resolve().then(()=>require("./nodes.reload_secure_settings-IT7wkb4F.cjs")),"../lib/spec_definitions/json/generated/nodes.stats.json":()=>Promise.resolve().then(()=>require("./nodes.stats-ByRup3kp.cjs")),"../lib/spec_definitions/json/generated/nodes.usage.json":()=>Promise.resolve().then(()=>require("./nodes.usage-BOB6uZgC.cjs")),"../lib/spec_definitions/json/generated/ping.json":()=>Promise.resolve().then(()=>require("./ping-BQ2zs_iF.cjs")),"../lib/spec_definitions/json/generated/put_script.json":()=>Promise.resolve().then(()=>require("./put_script-Wtk-J1KT.cjs")),"../lib/spec_definitions/json/generated/rank_eval.json":()=>Promise.resolve().then(()=>require("./rank_eval-XW5Sepg2.cjs")),"../lib/spec_definitions/json/generated/reindex.json":()=>Promise.resolve().then(()=>require("./reindex-BIG_sxiH.cjs")),"../lib/spec_definitions/json/generated/reindex_rethrottle.json":()=>Promise.resolve().then(()=>require("./reindex_rethrottle-CRN0zTwg.cjs")),"../lib/spec_definitions/json/generated/render_search_template.json":()=>Promise.resolve().then(()=>require("./render_search_template-ot0hZ0W8.cjs")),"../lib/spec_definitions/json/generated/scripts_painless_execute.json":()=>Promise.resolve().then(()=>require("./scripts_painless_execute-BZJwr2WZ.cjs")),"../lib/spec_definitions/json/generated/scroll.json":()=>Promise.resolve().then(()=>require("./scroll-Dl5sjO9s.cjs")),"../lib/spec_definitions/json/generated/search.json":()=>Promise.resolve().then(()=>require("./search-Bsayi2Z7.cjs")),"../lib/spec_definitions/json/generated/search_shards.json":()=>Promise.resolve().then(()=>require("./search_shards-CQHOad6m.cjs")),"../lib/spec_definitions/json/generated/search_template.json":()=>Promise.resolve().then(()=>require("./search_template-BjlH72xD.cjs")),"../lib/spec_definitions/json/generated/snapshot.cleanup_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.cleanup_repository-DhLuWH_4.cjs")),"../lib/spec_definitions/json/generated/snapshot.create.json":()=>Promise.resolve().then(()=>require("./snapshot.create-Cikcfjas.cjs")),"../lib/spec_definitions/json/generated/snapshot.create_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.create_repository-CJ-t7HOq.cjs")),"../lib/spec_definitions/json/generated/snapshot.delete.json":()=>Promise.resolve().then(()=>require("./snapshot.delete-LRvaQDyl.cjs")),"../lib/spec_definitions/json/generated/snapshot.delete_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.delete_repository-BaNhSl9L.cjs")),"../lib/spec_definitions/json/generated/snapshot.get.json":()=>Promise.resolve().then(()=>require("./snapshot.get-RH1NvbXk.cjs")),"../lib/spec_definitions/json/generated/snapshot.get_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.get_repository-BUSeINoE.cjs")),"../lib/spec_definitions/json/generated/snapshot.restore.json":()=>Promise.resolve().then(()=>require("./snapshot.restore-D11iTuaW.cjs")),"../lib/spec_definitions/json/generated/snapshot.status.json":()=>Promise.resolve().then(()=>require("./snapshot.status-BJ3wLJ-6.cjs")),"../lib/spec_definitions/json/generated/snapshot.verify_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.verify_repository-BAovUJEf.cjs")),"../lib/spec_definitions/json/generated/tasks.cancel.json":()=>Promise.resolve().then(()=>require("./tasks.cancel-uev3HNwn.cjs")),"../lib/spec_definitions/json/generated/tasks.get.json":()=>Promise.resolve().then(()=>require("./tasks.get-Dx5AatEN.cjs")),"../lib/spec_definitions/json/generated/tasks.list.json":()=>Promise.resolve().then(()=>require("./tasks.list-DF8jKoLv.cjs")),"../lib/spec_definitions/json/generated/termvectors.json":()=>Promise.resolve().then(()=>require("./termvectors-CCD0RzNB.cjs")),"../lib/spec_definitions/json/generated/update.json":()=>Promise.resolve().then(()=>require("./update-Df56o2sS.cjs")),"../lib/spec_definitions/json/generated/update_by_query.json":()=>Promise.resolve().then(()=>require("./update_by_query-Cg4ruhuj.cjs")),"../lib/spec_definitions/json/generated/update_by_query_rethrottle.json":()=>Promise.resolve().then(()=>require("./update_by_query_rethrottle-SiTIU_2D.cjs"))}),n=await this.loadAllSpecFromModules(t),r=Object.assign({"../lib/spec_definitions/json/overrides/clear_scroll.json":()=>Promise.resolve().then(()=>require("./clear_scroll-CGgyOrmQ.cjs")),"../lib/spec_definitions/json/overrides/cluster.health.json":()=>Promise.resolve().then(()=>require("./cluster.health-C9RtOTFZ.cjs")),"../lib/spec_definitions/json/overrides/cluster.put_component_template.json":()=>Promise.resolve().then(()=>require("./cluster.put_component_template-Bs8kvYYz.cjs")),"../lib/spec_definitions/json/overrides/cluster.put_settings.json":()=>Promise.resolve().then(()=>require("./cluster.put_settings-CmVNw-la.cjs")),"../lib/spec_definitions/json/overrides/cluster.reroute.json":()=>Promise.resolve().then(()=>require("./cluster.reroute-Ca7B3s4P.cjs")),"../lib/spec_definitions/json/overrides/count.json":()=>Promise.resolve().then(()=>require("./count-C4MIuAZw.cjs")),"../lib/spec_definitions/json/overrides/indices.analyze.json":()=>Promise.resolve().then(()=>require("./indices.analyze-Ca_LdrpG.cjs")),"../lib/spec_definitions/json/overrides/indices.clone.json":()=>Promise.resolve().then(()=>require("./indices.clone-BUxFyBRc.cjs")),"../lib/spec_definitions/json/overrides/indices.create.json":()=>Promise.resolve().then(()=>require("./indices.create-BiWtozmw.cjs")),"../lib/spec_definitions/json/overrides/indices.delete_template.json":()=>Promise.resolve().then(()=>require("./indices.delete_template-KcMvxl6n.cjs")),"../lib/spec_definitions/json/overrides/indices.exists_template.json":()=>Promise.resolve().then(()=>require("./indices.exists_template-CRpLrsu7.cjs")),"../lib/spec_definitions/json/overrides/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>require("./indices.get_field_mapping-CYG2wNHO.cjs")),"../lib/spec_definitions/json/overrides/indices.get_mapping.json":()=>Promise.resolve().then(()=>require("./indices.get_mapping-CrtmSCvN.cjs")),"../lib/spec_definitions/json/overrides/indices.get_template.json":()=>Promise.resolve().then(()=>require("./indices.get_template-DGkghljU.cjs")),"../lib/spec_definitions/json/overrides/indices.put_alias.json":()=>Promise.resolve().then(()=>require("./indices.put_alias-Cf6m-sUg.cjs")),"../lib/spec_definitions/json/overrides/indices.put_settings.json":()=>Promise.resolve().then(()=>require("./indices.put_settings-DlaEA2qI.cjs")),"../lib/spec_definitions/json/overrides/indices.put_template.json":()=>Promise.resolve().then(()=>require("./indices.put_template-Y2qnGcJL.cjs")),"../lib/spec_definitions/json/overrides/indices.rollover.json":()=>Promise.resolve().then(()=>require("./indices.rollover-D8QUsaTN.cjs")),"../lib/spec_definitions/json/overrides/indices.update_aliases.json":()=>Promise.resolve().then(()=>require("./indices.update_aliases-BSOeXVyL.cjs")),"../lib/spec_definitions/json/overrides/indices.validate_query.json":()=>Promise.resolve().then(()=>require("./indices.validate_query-DilTwlSI.cjs")),"../lib/spec_definitions/json/overrides/snapshot.create.json":()=>Promise.resolve().then(()=>require("./snapshot.create-D305SikA.cjs")),"../lib/spec_definitions/json/overrides/snapshot.create_repository.json":()=>Promise.resolve().then(()=>require("./snapshot.create_repository-DSfPE9Re.cjs")),"../lib/spec_definitions/json/overrides/snapshot.restore.json":()=>Promise.resolve().then(()=>require("./snapshot.restore-DTrdiduA.cjs")),"../lib/spec_definitions/json/overrides/update_by_query.json":()=>Promise.resolve().then(()=>require("./update_by_query-C99J5V_Y.cjs"))}),o=await this.loadAllSpecFromModules(r);return be.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)=>be.merge(o,i),{})}loadJsonSpec(){const t=this.loadJSONSpecInDir();Object.keys(t).forEach(n=>{this.addEndpointDescription(n,t[n])})}loadJSSpec(){HD.forEach(t=>t(this))}}class UD extends Ro{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 GD{constructor(t,n){this.rootComponent=new Sn("ROOT"),be.isUndefined(n)&&(n={pretty:"__flag__",format:["json","yaml"],filter_path:""}),t=be.clone(t||{}),be.defaults(t,n),be.each(t,(r,o)=>{const i=new UD(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 KD(e,t){const n=e.getTerms;return e.getTerms=function(r,o){let i=n.call(e,r,o);return i&&(i=be.map(i,a=>(be.isObject(a)||(a={name:a}),be.defaults(a,t))),i)},e}function Uw(e,t){function n(){}n.prototype=e;const r=new n;return t&&(t.unshift(r),be.assign.apply(be,t),t.shift()),r}function pl(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function dp(e,t,n,r){if(!e||e.length===0)return t;const o=e[0],i=[];return be.each(t,function(a){const s=Uw(n,a.contextExtensionList);be.each(a.components,function(l){const c=l.match(o,s,r);if(c&&!be.isEmpty(c)){let u,p;c.next&&!Array.isArray(c.next)?u=[c.next]:u=c.next,c.context_values?(p=[],[].push.apply(p,a.contextExtensionList),p.push(c.context_values)):p=a.contextExtensionList;let d=a.priority;be.isNumber(c.priority)&&(be.isNumber(d)?d=Math.min(d,c.priority):d=c.priority),i.push(new pl(l.name,u,p,a.depth+1,d))}})}),i.length===0?be.map(t,function(a){return new pl(a.name,[],a.contextExtensionList)}):dp(e.slice(1),i,n,r)}function ti(e,t,n,r,o){let i=dp(e,[new pl("ROOT",o,[])],t,n);if(r){let a=[];be.each(i,function(s){const l=Uw(t,s.contextExtensionList);be.each(s.components,function(c){be.each(c.getTerms(l,n),function(u){be.isObject(u)||(u={name:u}),a.push(u)})})}),a=be.uniq(a),t.autoCompleteSet=a}if(i.length!==0){let a;i=be.sortBy(i,function(s){return be.isNumber(s.priority)?s.priority:Number.MAX_VALUE}),a=be.find(i,function(s){return be.isEmpty(s.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]),be.each(a.contextExtensionList,function(s){be.assign(t,s)})}}function XD(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}function YD(e,t,n,r){const o=dp(e,[new pl("ROOT",r,[])],t,n);return[].concat.apply([],be.map(o,"components"))}class QD extends Sn{constructor(t,n){super("__scope_link"),be.isString(t)&&t[0]==="."&&(t==="."?t=n.endpointId:t=n.endpointId+t),this.link=t,this.compilingContext=n}resolveLinkToComponents(t,n){if(be.isFunction(this.link)){const a=this.link(t,n);return za(a,this.compilingContext)}if(!be.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 YD(r,t,n,i)}getTerms(t,n){const r=[],o=this.resolveLinkToComponents(t,n);return be.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 be.each(i,function(a){const s=a.match(t,n,r);s&&s.next&&o.next.push.apply(o.next,s.next)}),o}}function Df(e){if(e.__template)return e.__raw&&be.isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return Df(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(e.length===1&&be.isObject(e[0])){const t=Df(e[0]);return t!=null?[t]:[]}return[]}else return be.isObject(e)?{}:(be.isString(e)&&!/^\{.*\}$/.test(e),e)}function JD(e){const t={},n=Df(e);return be.isUndefined(n)||(t.template=n),t}function za(e,t){if(Array.isArray(e))return[ev(e,t)];if(be.isObject(e)){if(e.__scope_link)return[new QD(e.__scope_link,t)];if(e.__any_of)return[ev(e.__any_of,t)];if(e.__one_of)return be.flatten(be.map(e.__one_of,function(r){return za(r,t)}));const n=ZD(e,t);return e.__condition?[eB(e.__condition,n)]:[n]}else return be.isString(e)&&/^\{.*\}$/.test(e)?[Gw(e,t)]:[new Ro(e)]}function Gw(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),be.isUndefined(n)||(r=KD(r,{template:n})),r}function ZD(e,t){const n=new Ro("{"),r=[],o=[];return be.each(e,function(i,a){if(a.indexOf("__")===0)return;const s=JD(i);let l;/^\{.*\}$/.test(a)?(l=Gw(a,t,s.template),o.push(l)):a==="*"?(l=new Sn(a),o.push(l)):(s.name=a,l=new Ro(a,null,[s]),r.push(l)),be.map(za(i,t),function(c){l.addComponent(c)})}),n.addComponent(new GM("inner",r,o)),n}function ev(e,t){const n=new Ro("[");return be.each(e,function(r){be.each(za(r,t),function(o){n.addComponent(o)})}),n}function eB(e,t){if(e.lines_regex)return new WM(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 tB(){return[new UM("__global__")]}function tv(e,t,n){return za(t,new XD(e,n))}function pp(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new YM(e),this.globalBodyComponentFactories=t,this.name=""}(function(e){e.addGlobalAutocompleteRules=function(t,n){this.globalRules[t]=tv("GLOBAL."+t,n,this.globalBodyComponentFactories)},e.getGlobalAutocompleteComponents=function(t,n){const r=this.globalRules[t];if(be.isUndefined(r)&&(n||be.isUndefined(n)))throw new Error("failed to resolve global components for ['"+t+"']");return r},e.addEndpointDescription=function(t,n){const r={};be.assign(r,n||{}),be.defaults(r,{id:t,patterns:[t],methods:["GET"]}),be.each(r.patterns,o=>{this.urlPatternMatcher.addEndpoint(o,r)}),r.paramsAutocomplete=new GD(r.url_params),r.bodyAutocompleteRootComponents=tv(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 tB()},e.clear=function(){this.endpoints={},this.globalRules={}}})(pp.prototype);let qa=new pp;const nv=e=>e[0]==="_"&&e!=="_all",zi=(e,t)=>new pj(e,t),nB={getComponent:function(e,t,n){if(this[e])return this[e];if(n)return zi},index:function(e,t){if(!nv(e))return new il(e,t,!1)},indices:function(e,t){if(!nv(e))return new il(e,t,!0)},type:function(e,t){return new Jm(e,t,!1)},types:function(e,t){return new Jm(e,t,!0)},id:function(e,t){return zi(e,t)},transform_id:function(e,t){return zi(e,t)},username:function(e,t){return new Zm(e,t)},user:function(e,t){return new Zm(e,t)},template:function(e,t){return new hj(e,t)},task_id:function(e,t){return zi(e,t)},ids:function(e,t){return zi(e,t)},fields:function(e,t){return new Qm(e,t,!0)},field:function(e,t){return new Qm(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 rB(){return qa.getUnmatchedEndpointComponents()}function oB(e){return qa.getEndpointDescriptionByEndpoint(e)}function iB(e){const t=oB(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function qs(e){return qa.getTopLevelUrlCompleteComponents(e)}function aB(e,t){return qa.getGlobalAutocompleteComponents(e,t)}function sB(e,t,n){t=t||nB,n=n||t;const r=new pp(t,n),o=[];return be.each(e,function(i,a){o.unshift(a),be.each(i.globals||{},function(s,l){r.addGlobalAutocompleteRules(l,s)}),be.each(i.endpoints||{},function(s,l){r.addEndpointDescription(l,s)})}),r.name=o.join(","),r}const Kw=new WD;Kw.start();const lB=Kw.asJson();qa=sB({es:lB});const zt={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32};class Xw{constructor(t){this.editor=t,this.MODE=zt}getRowParseMode(t=this.editor.getCurrentPosition().lineNumber){const n=this.editor.getLineCount();if(t>n||t<1)return zt.BETWEEN_REQUESTS;const r=this.editor.getLineState(t);if(!r)return zt.BETWEEN_REQUESTS;if(r!=="start"&&r!=="start-sql")return zt.IN_REQUEST;let o=(this.editor.getLineValue(t)||"").trim();return!o||o[0]==="#"?zt.BETWEEN_REQUESTS:o.indexOf("}",o.length-1)>=0?(t++,t<n+1&&(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")===0)?zt.MULTI_DOC_CUR_DOC_END|zt.IN_REQUEST:zt.REQUEST_END|zt.MULTI_DOC_CUR_DOC_END):(t++,t>=n+1||(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")!==0)?zt.REQUEST_START|zt.REQUEST_END:zt.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,zt.REQUEST_END)}isRequestEdge(t,n){const r=n||this.editor;return this.rowPredicate(t,r,zt.REQUEST_END|zt.REQUEST_START)}isStartRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,zt.REQUEST_START)}isInBetweenRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,zt.BETWEEN_REQUESTS)}isInRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,zt.IN_REQUEST)}isMultiDocDocEndRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,zt.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 cB(e){return!(e==="_all"||e[0]!=="_")}class uB extends kn{constructor(t,n,r){super(t,aj,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!be.find(t,cB)}getDefaultTermMeta(){return"command"}getContextKey(){return"command"}}function fB(){return[new uB("command",null,!0)]}let nr=null;function Bf(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 Vs(e,t,n,r){const o=so({editor:e,position:t}),i=t;let a=[];const s={};s.tokensLineCache=o.tokensLineCache;const l={looking_for_key:0,looking_for_scope_start:1,start:3};let c=l.start,u=o.getCurrentToken();s.token=u,u?i.column===1&&(u=o.stepBackward(),c=l.looking_for_scope_start):i.column===1&&(u=o.stepBackward(),c=l.start);let p=!1;for(;u&&u.type.indexOf("url")===-1&&u.type!=="method";u=o.stepBackward())switch(u.type!=="whitespace"&&(p=!0),u.type){case"variable":c===l.looking_for_key&&a.unshift(u.value.trim().replace(/"/g,"")),c=l.looking_for_scope_start;break;case"paren.lparen":a.unshift(u.value),c===l.looking_for_scope_start&&(c=l.looking_for_key);break;case"paren.rparen":c=l.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=l.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===l.start?c=l.looking_for_key:c===l.looking_for_key&&(c=l.looking_for_scope_start),a.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":c===l.start?c=l.looking_for_key:c===l.looking_for_key&&(c=l.looking_for_scope_start);break;case"punctuation.comma":c===l.start&&(c=l.looking_for_scope_start);break;case"punctuation.colon":case"whitespace":c===l.start&&(c=l.looking_for_key);break}if(p&&(!a||a.length===0)&&!r)return{};if(s.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")&&(s.urlTokenPath.push(u.value),s.urlTokenPath.push(vf)),u=o.stepBackward(),u.type==="whitespace")for(;u.type==="whitespace";)u=o.stepBackward();else for(;u.value.trim()==="";)u=o.stepBackward();a=null}s.bodyTokenPath=a,s.urlParamsTokenPath=null,s.requestStartRow=o.getCurrentPosition().lineNumber;let d;for(;u&&Bf(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":s.urlParamsTokenPath||(s.urlParamsTokenPath=[]),s.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&&(s.urlTokenPath.unshift(d),d=null);break}for(u=n.prevNonEmptyToken(o);u.value.trim()==="";)u=n.prevNonEmptyToken(o)}return d&&s.urlTokenPath.unshift(d),!s.bodyTokenPath&&!s.urlParamsTokenPath?s.urlTokenPath.length>0&&(s.otherTokenValues=s.urlTokenPath[0]):s.urlTokenPath.push(vf),u&&u.type==="method"&&(s.method=u.value),s}function rv(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function ys(e,t,n){return be.map(e,function(r){return typeof r!="object"&&(r={name:r}),be.defaults(r,{meta:t,template:n})})}function dB({coreEditor:e}){const t=new Xw(e);function n(f){const m=f.context;i(m,e.getCurrentPosition(),f.insertValue);let b;m.autoCompleteType==="body"?(b=typeof f.insertValue=="string"?'"'+f.insertValue+'"':f.insertValue+"",(f.insertValue==="["||f.insertValue==="{")&&(b="")):b=f.insertValue+"";let C=b,E=!1;if(m.addTemplate&&!be.isUndefined(f.template)&&!be.isNull(f.template)){let O;f.template.__raw&&f.template.value?O=f.template.value.split(`
272
+ `):O=m_(f.template,!0).split(`
273
+ `);let P=e.getLineValue(m.rangeToReplace.start.lineNumber);P=P.match(/^\s*/)[0];for(let A=1;A<O.length;A++)O[A]=P+O[A];C+=": "+O.join(`
274
+ `),E=!0}else E=!0,f.value==="["?C+="[]":f.value==="{"?C+="{}":E=!1;C=m.prefixToAdd+C+m.suffixToAdd,e.off("changeSelection",g),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,C):e.insert(C),e.clearSelection();let S={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+b.length+m.prefixToAdd.length+(E?0:m.suffixToAdd.length)};const w=so({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",g)}function r(f,m){const b={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:f};switch(b.autoCompleteType=o(m),b.autoCompleteType){case"path":d(b,m);break;case"url_params":y(b,m);break;case"method":p(b);break;case"body":_(b,m);break;default:return null}return b.autoCompleteSet?(i(b,m),b.createdWithToken=be.clone(b.updatedForToken),b):null}function o(f){let m=t.getRowParseMode();if(m&t.MODE.IN_REQUEST)return"body";if(m&t.MODE.REQUEST_START){const b=so({editor:e,position:f});let C=b.getCurrentToken();for(;C.type==="url.comma";)C=b.stepBackward();switch(C.type){case"method":return"method";case"whitespace":switch(C=t.prevNonEmptyToken(b),(C||{}).type){case"method":return"path";default:return rv(C)?"path":Bf(C)?"url_params":null}default:return rv(C)?"path":Bf(C)?"url_params":null}}return m&t.MODE.REQUEST_END?"body":e.getLineValue(f.lineNumber).trim()===""?(m=t.getRowParseMode(f.lineNumber-1),m&t.MODE.REQUEST_START&&m&t.MODE.REQUEST_END?"body":"method"):null}function i(f,m,b){f.updatedForToken=be.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),f.updatedForToken||(f.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let C=f.createdWithToken;switch(C||(C=f.updatedForToken),f.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":f.rangeToReplace={start:{lineNumber:m.lineNumber,column:C.position.column},end:{lineNumber:m.lineNumber,column:f.updatedForToken.position.column+f.updatedForToken.value.length}},f.replacingToken=!0;break;default:b&&f.updatedForToken.value===b?(f.rangeToReplace={start:{lineNumber:m.lineNumber,column:C.position.column},end:{lineNumber:m.lineNumber,column:f.updatedForToken.position.column+f.updatedForToken.value.length}},f.replacingToken=!0):(f.rangeToReplace={start:{lineNumber:m.lineNumber,column:m.column},end:{lineNumber:m.lineNumber,column:m.column}},f.replacingToken=!1);break}switch(f.textBoxPosition={lineNumber:f.rangeToReplace.start.lineNumber,column:f.rangeToReplace.start.column},f.autoCompleteType){case"path":c(f);break;case"url_params":s(f);break;case"method":l(f);break;case"body":a(f);break}}function a(f){f.prefixToAdd="",f.suffixToAdd="";let m=so({editor:e,position:e.getCurrentPosition()}),b=t.nextNonEmptyToken(m);switch(b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":f.addTemplate=!0;break;case"punctuation.colon":if(f.addTemplate=!1,b=t.nextNonEmptyToken(m),!(b&&b.value==="{")||(b=t.nextNonEmptyToken(m),!(b&&b.value==="}")))break;switch(f.addTemplate=!0,f.rangeToReplace.end.lineNumber=m.getCurrentTokenLineNumber(),f.rangeToReplace.end.column=m.getCurrentTokenColumn()+b.value.length,b=t.nextNonEmptyToken(m),b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:f.suffixToAdd=", "}break;default:f.addTemplate=!0,f.suffixToAdd=", ";break}m=so({editor:e,position:e.getCurrentPosition()}),b=m.getCurrentToken();let C;if(f.replacingToken)C=0;else{const E=e.getCurrentPosition();E.column===f.updatedForToken.position.column?C=-1:E.column<f.updatedForToken.position.column+f.updatedForToken.value.length?C=0:C=1}switch((t.isEmptyToken(b)||C<=0)&&(b=t.prevNonEmptyToken(m)),b?b.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:b&&b.type.indexOf("url")<0&&(f.prefixToAdd=", ")}return f}function s(f){f.prefixToAdd="",f.suffixToAdd=""}function l(f){f.prefixToAdd="",f.suffixToAdd="";const m=so({editor:e,position:e.getCurrentPosition()}),b=m.getCurrentPosition().lineNumber,C=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==b||!C)&&(f.suffixToAdd=" ")}function c(f){f.prefixToAdd="",f.suffixToAdd=""}function u(f,m){const b=[];let C=-1;return(f||[]).forEach((E,S)=>{const w=E.value.toUpperCase();if(["FROM","JOIN"].includes(w)&&f.length>S+2&&S+2!=m){let O=f[S+2].value;O.includes("(")||(O=O.replace(/^"+/,"").replace(/"+$/,""),b.push(O),C=S)}}),{indices:b.join(","),idx:C}}function p(f){f.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((m,b)=>({name:m,score:-b,meta:"method"}))}function d(f,m){var E,S;const b=Vs(e,m,t);f.method=b.method,f.token=b.token,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath;let C;if(b.method==="LOAD")C=fB();else if(b.method==="SELECT"){const w=(b.tokensLineCache||[]).findIndex(T=>T.value===b.token.value);let{indices:O,idx:P}=u(b.tokensLineCache,w);if(P>-1&&w<P){const T=Ji(O);f.autoCompleteSet=ys(T,"field");return}const A=((E=b.otherTokenValues)==null?void 0:E.length)||0;if(A>0)switch(b.otherTokenValues[A-1].toUpperCase()){case"FROM":!b.token.value.endsWith('"')&&b.token.value!='"'&&(f.otherTokenValues=null,f.urlTokenPath=[],C=[new il("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(A>1&&!b.token.value.includes("=")){O===""&&(O=b.otherTokenValues[A-2],O=O.replace(/^"+/,"").replace(/"+$/,""));const T=Ji(O);f.autoCompleteSet=ys(T,"field");return}}}else if(b.method=="FROM"){const w=(b.tokensLineCache||[]).findIndex(O=>O.value===b.token.value);if(b.tokensLineCache[w-2].value=="FROM")!b.token.value.endsWith('"')&&b.token.value!='"'&&(f.otherTokenValues=null,f.urlTokenPath=[],C=[new il("indices",null,!0)]);else{let O=b.otherTokenValues[0];O=O.replace(/^"+/,"").replace(/"+$/,"");const P=((S=b.otherTokenValues)==null?void 0:S.length)||0;let A=!0,T=null;for(let L=w-1;L>=0;L--){const D=b.tokensLineCache[L];if(T===null&&D.value.trim()!=""&&(T=D),D.type=="url.select_keyword"&&D.value.toUpperCase()!="SELECT"){A=!1;break}}switch(A&&T.value!=","&&T.value.toUpperCase()!="SELECT"&&(A=!1),b.otherTokenValues[P-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":A=!0}if(A&&!b.token.value.includes("=")){const L=Ji(O);f.autoCompleteSet=ys(L,"field");return}}}else C=qs(f.method);ti(f.urlTokenPath,f,e,!0,C),f.autoCompleteSet=ys(f.autoCompleteSet,"endpoint")}function y(f,m){const b=Vs(e,m,t);if(f.method=b.method,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath,!b.urlTokenPath||(ti(b.urlTokenPath,f,e,!1,qs(f.method)),!f.endpoint)||!b.urlParamsTokenPath)return f;let C=[];const E=b.urlParamsTokenPath.pop();return E&&(C=Object.keys(E),f.otherTokenValues=E[C[0]]),ti(C,f,e,!0,f.endpoint.paramsAutocomplete.getTopLevelComponents(f.method)),f}function _(f,m){const b=Vs(e,m,t);if(f.method=b.method,f.otherTokenValues=b.otherTokenValues,f.urlTokenPath=b.urlTokenPath,f.requestStartRow=b.requestStartRow,!b.urlTokenPath||(ti(b.urlTokenPath,f,e,!1,qs(f.method)),f.bodyTokenPath=b.bodyTokenPath,!b.bodyTokenPath))return f;f.endpointComponentResolver=iB,f.globalComponentResolver=aB;let C;return f.endpoint?C=f.endpoint.bodyAutocompleteRootComponents:C=rB(),ti(b.bodyTokenPath,f,e,!0,C),f}const x=be.debounce(function(m){let b=null;try{b=e.getTokenAt(m)}catch{}if(!b){if(m.lineNumber===1){nr=null;return}b={position:{column:0,lineNumber:0},value:"",type:""}}if(b.position.lineNumber=m.lineNumber,t.isEmptyToken(b)){const C=e.getTokenAt({...m,column:m.column+1});t.isEmptyToken(C)?(b.position.column=m.column,nr=b):(C.position.lineNumber=m.lineNumber,nr=C);return}if(!nr){nr=b;return}if(nr.position.column!==b.position.column||nr.position.lineNumber!==b.position.lineNumber||nr.value===b.value){nr=b;return}switch(b.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}nr=b,e.execCommand("startAutocomplete")},100);function g(){const f=e.getCurrentPosition();f&&!e.isCompleterActive()&&x(f)}function v(f,m,b){try{const C=r(e,f);if(!C)b(null,[]);else{const E=be.map(C.autoCompleteSet.filter(S=>!!S&&S.name!=null),function(S){typeof S!="object"?S={name:S}:S=be.clone(S);const w={value:S.name,meta:"API",score:0,context:C};return C.method==="LOAD"&&C.autoCompleteType==="path"&&(w.completer={insertMatch(){n(S),e.execCommand("exec_request")}}),C.autoCompleteType==="body"&&(w.completer={insertMatch(){return n(S)}}),be.defaults(S,w)});E.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}),b(null,be.map(E,function(S,w){return S.insertValue=S.insertValue||S.value,S.value=""+S.value,S.score=-w,S}))}}catch(C){console.error(C),b(C,null)}}return e.on("changeSelection",g),{getCompletions:v}}async function pB(){return(await Promise.resolve().then(()=>require("./worker-COMjIpIG.cjs"))).someFunction()}const hB={id:"sense_editor/mode/worker",src:pB},{TextHighlightRules:mB}=Ze.acequire("ace/mode/text_highlight_rules"),gB=Ze.acequire("ace/lib/oop"),hp=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()};gB.inherits(hp,mB);const vB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:yB}=Ze.acequire("ace/mode/text_highlight_rules"),bB="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 mp(){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:bB},{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+"}]}}vB.inherits(mp,yB);const{JsonHighlightRules:_B}=Ze.acequire("ace/mode/json_highlight_rules"),wB=Ze.acequire("ace/lib/oop"),Yw=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=Yw("start");this.$rules={...e},this.embedRules(mp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(hp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}wB.inherits(Qw,_B);function Jw(e,t){e.$rules=be.defaultsDeep(e.$rules,Yw(t)),e.embedRules(mp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(hp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}async function CB(){return(await Promise.resolve().then(()=>require("./x_json.ace.worker-ClEhbr73.cjs"))).someFunction()}const xB={id:"ace/mode/json_worker",src:CB},{WorkerClient:SB}=Ze.acequire("ace/worker/worker_client"),EB=Ze.acequire("ace/lib/oop"),{Mode:RB}=Ze.acequire("ace/mode/json"),{Tokenizer:OB}=Ze.acequire("ace/tokenizer"),{MatchingBraceOutdent:$B}=Ze.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:TB}=Ze.acequire("ace/mode/behaviour/cstyle"),{FoldMode:PB}=Ze.acequire("ace/mode/folding/cstyle"),Zw=function(){const t=new Qw;t.normalizeRules(),this.$tokenizer=new OB(t.getRules()),this.$outdent=new $B,this.$behaviour=new TB,this.foldingRules=new PB};EB.inherits(Zw,RB);Zw.prototype.createWorker=function(e){const t=new SB(["ace"],xB,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function Ht(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 Qo(){return[].concat.apply([],arguments)}const NB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:IB}=Ze.acequire("ace/mode/text_highlight_rules");function gp(){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=Ht(["url.part"],/([^?\/,\s]+)/,"start");i=i.map(a=>(a.onMatch=(s,l,c)=>o.includes(s==null?void 0:s.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:Qo([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Ht(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Qo(Ht(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Ht(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Ht(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Ht(["whitespace"],/(\s+)/,"start","url")),url:Qo(Ht(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Ht(["url.comma"],/(,)/,"start"),Ht(["url.slash"],/(\/)/,"start"),Ht(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Qo(Ht(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Ht(["url.param"],/([^&=]+)/,"start"),Ht(["url.amp"],/(&)/,"start")),"url-sql":Qo(Ht(["url.part"],/([^?\/,\s]+)/,"start-sql"),Ht(["url.comma"],/(,)/,"start-sql"),Ht(["url.slash"],/(\/)/,"start-sql"),Ht(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Qo(Ht(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Ht(["url.param"],/([^&=]+)/,"start-sql"),Ht(["url.amp"],/(&)/,"start-sql"))},Jw(this),this.constructor===gp&&this.normalizeRules()}NB.inherits(gp,IB);const AB=Ze.acequire("ace/lib/oop"),{TextHighlightRules:MB}=Ze.acequire("ace/mode/text_highlight_rules"),jB="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 eC(){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:jB},{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+"}]}}AB.inherits(eC,MB);const kB=Ze.acequire("ace/lib/oop"),LB=Ze.acequire("ace/mode/text").Mode;Ze.acequire("ace/tokenizer");function vp(){}kB.inherits(vp,LB);(function(){this.HighlightRules=eC,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(vp.prototype);const FB=Ze.acequire("ace/lib/oop"),DB=Ze.acequire("ace/mode/text").Mode,BB=Ze.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,zB=Ze.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,qB=Ze.acequire("ace/mode/folding/cstyle").FoldMode,VB=Ze.acequire("ace/worker/worker_client").WorkerClient,HB=Ze.acequire("ace/tokenizer").Tokenizer;function yp(){this.$tokenizer=new HB(new gp().getRules()),this.$outdent=new BB,this.$behaviour=new zB,this.foldingRules=new qB,this.createModeDelegates({"script-":vp})}FB.inherits(yp,DB);(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 VB(["ace","sense_editor"],hB,"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(yp.prototype);var na={exports:{}};(function(){Ze.define("ace/autocomplete/text_completer",["require","exports","module"],function(n,r){r.getCompletions=function(o,i,a,s,l){l(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,s={lineNumber:r.row+1,column:r.column+1};a.autocompleter(s,o,i)}}])})();const WB=Ze.acequire("ace/range").Range,bs=({start:e,end:t})=>new WB(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class UB{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=Rt(n),this.editor.setShowPrintMargin(!1),this.parser=new Xw(this),this.autocompleter=dB({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new yp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=y_(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(bs(t))}getTokenProvider(){return new DM(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(bs(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(bs(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(bs(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&&zM(t)){const n=qM(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=Rt(this.editor.container).offset().top,r=t.start.lineNumber,o=t.start.column,i=this.getLineValue(r),a=this.getWrapLimit()-5,s=i.length>a,l=n-(window.pageYOffset||0),c=d=>this.editor.renderer.textToScreenCoordinates(d-1,o).pageY-l,u=c(r);if(u>=0){const{bottom:d}=this.editor.container.getBoundingClientRect();if(u>d-l){this.setActionsBar(0,"bottom");return}let y=0;if(s){const _=Rt(this.editor.container.querySelector("textArea")),x=this.getLineValue(r).length<a;if(_&&x)y+=this.getLineValue(r).length*_.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()}}(na.exports==null?{}:na.exports).default||na.exports;(na.exports==null?{}:na.exports).getCompletions;const GB=Ze.acequire("ace/lib/oop"),KB=Ze.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function bp(){this.$rules={},Jw(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===bp&&this.normalizeRules()}GB.inherits(bp,KB);const XB=Ze.acequire("ace/lib/oop"),YB=Ze.acequire("ace/mode/json").Mode,QB=Ze.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,JB=Ze.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,ZB=Ze.acequire("ace/mode/folding/cstyle").FoldMode;Ze.acequire("ace/worker/worker_client");const e4=Ze.acequire("ace/tokenizer").Tokenizer;function _p(){this.$tokenizer=new e4(new bp().getRules()),this.$outdent=new QB,this.$behaviour=new JB,this.foldingRules=new ZB}XB.inherits(_p,YB);(function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}).call(_p.prototype);function t4(e){const t=Ze.acequire("ace/ace").edit(e),n=new _p;return t.$blockScrolling=1/0,t.resize=y_(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),be.isUndefined(o)&&(o=!0);const a=t.getSession(),s=a.getLength();o&&t.moveCursorTo(Math.max(0,s-1),0),a.insert({row:s,column:0},`
276
+ `+r),t.moveCursorTo(s+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 n4=({value:e=[],onChange:t})=>{const[n,r]=I.useState(!1),[o,i]=I.useState(""),a=u=>{i(u.target.value)},s=()=>{r(!0)},l=I.useCallback(u=>{if(u.target.value.length==0)return u_.warning(fe.jsx(tn.FormattedMessage,{id:"command.message.invalid.tag"}));t&&t([...e||[],u.target.value]),r(!1),i("")},[e,t]),c=I.useCallback(u=>{const p=[...e];p.splice(u,1),t&&t(p)},[e,t]);return fe.jsxs("div",{children:[e.map((u,p)=>fe.jsx(ol,{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:()=>c(p),children:u},p)),n&&fe.jsx(Io,{value:o,onChange:a,style:{width:100},onBlur:l,onPressEnter:l}),!n&&fe.jsxs(ol,{onClick:s,style:{padding:"0 5px",fontSize:14},children:[fe.jsx(Cr.PlusOutlined,{})," ",fe.jsx(tn.FormattedMessage,{id:"command.btn.newtag"})]})]})},r4=e=>{const[t]=An.useForm(),n=async()=>{try{const r=await t.validateFields();e.onConfirm(r)}catch(r){console.error(r)}};return fe.jsx(Ln,{title:fe.jsx(tn.FormattedMessage,{id:"command.manage.save.title"}),open:!0,onCancel:e.onClose,onOk:n,zIndex:1003,cancelText:fe.jsx(tn.FormattedMessage,{id:"form.button.cancel"}),okText:fe.jsx(tn.FormattedMessage,{id:"form.button.save"}),children:fe.jsxs(An,{layout:"vertical",children:[fe.jsx(An.Item,{name:"title",label:fe.jsx(tn.FormattedMessage,{id:"command.table.field.name"}),rules:[{required:!0,message:"请输入标题"}],children:fe.jsx(Io,{})}),fe.jsx(An.Item,{name:"tag",label:fe.jsx(tn.FormattedMessage,{id:"command.table.field.tag"}),children:fe.jsx(n4,{})})]})})};class o4 extends I.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,s;const r=await this.props.saveAsCommonCommand(),o={...n,requests:r},i=await((a=await MM(o))==null?void 0:a.json());i.error?Wi.error({message:((s=i.error)==null?void 0:s.reason)||i.error}):(this.handleClose(),Wi.success({message:fe.jsx(tn.FormattedMessage,{id:"app.message.save.success"})}),ij(i))},this.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1}}async copyAsCurl(){try{await this.copyText(this.state.curlCode),Wi.open({message:"Request copied as cURL",placement:"bottomRight"})}catch(t){console.error(t),Wi.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(Od,{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(ur,{type:"text",id:"ConCopyAsCurl",disabled:!((n=window.navigator)!=null&&n.clipboard),onClick:()=>{this.closePopover(),this.copyAsCurl()},children:fe.jsx(tn.FormattedMessage,{id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,fe.jsx("div",{children:fe.jsx(ur,{type:"text",onClick:this.autoIndent,children:fe.jsx(tn.FormattedMessage,{id:"console.menu.auto_indent"})},"Auto indent")}),fe.jsx("div",{children:fe.jsx(ur,{type:"text",onClick:this.saveAsCommonCommand,children:fe.jsx(tn.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(Cr.SettingOutlined,{})})}),this.state.modalVisible&&fe.jsx(r4,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})}}function i4(e,t,n){const r=e.getLineValue(t.lineNumber),o={...Vs(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)},i=qs(o.method);return ti(o.urlTokenPath,o,e,!0,i),o.endpoint}async function a4(e,t){t.preventDefault(),await e.autoIndent(),e.getCoreEditor().getContainer().focus()}function s4(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=i4(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&o.documentation.indexOf("http")!==-1?o.documentation.replace("/master/",`/${t}/`).replace("/current/",`/${t}/`):null})}const Gl=(e,t)=>()=>{const n=I.useContext(e);if(!n)throw new Error(`${t} should be used inside of ${t}Provider!`);return n};var wp={};(function(e){var t=bt&&bt.__spreadArray||function(S,w,O){if(O||arguments.length===2)for(var P=0,A=w.length,T;P<A;P++)(T||!(P in w))&&(T||(T=Array.prototype.slice.call(w,0,P)),T[P]=w[P]);return S.concat(T||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=l,e.constant=c,e.flip=u,e.flow=p,e.tuple=d,e.increment=y,e.decrement=_,e.absurd=x,e.tupled=g,e.untupled=v,e.pipe=f,e.not=b;var n=function(S){return function(){return{meet:function(w,O){return function(P){return S.meet(w(P),O(P))}},join:function(w,O){return function(P){return S.join(w(P),O(P))}},zero:function(){return S.zero},one:function(){return S.one},implies:function(w,O){return function(P){return S.implies(w(P),O(P))}},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(P){return S.concat(w(P),O(P))}}}}};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(P){return S.add(w(P),O(P))}},zero:function(){return S.zero},mul:function(w,O){return function(P){return S.mul(w(P),O(P))}},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,P){return function(A){return S.sub(O(A),P(A))}}}};e.getRing=a;var s=function(S){return function(w){return w(S)}};e.apply=s;function l(S){return S}e.unsafeCoerce=l;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(P){return S(P)(w[0])}}}function p(S,w,O,P,A,T,L,D,Q){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 P(O(w(S.apply(this,arguments))))};case 5:return function(){return A(P(O(w(S.apply(this,arguments)))))};case 6:return function(){return T(A(P(O(w(S.apply(this,arguments))))))};case 7:return function(){return L(T(A(P(O(w(S.apply(this,arguments)))))))};case 8:return function(){return D(L(T(A(P(O(w(S.apply(this,arguments))))))))};case 9:return function(){return Q(D(L(T(A(P(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 _(S){return S-1}function x(S){throw new Error("Called `absurd` function which should be uncallable")}function g(S){return function(w){return S.apply(void 0,w)}}function v(S){return function(){for(var w=[],O=0;O<arguments.length;O++)w[O]=arguments[O];return S(w)}}function f(S,w,O,P,A,T,L,D,Q){switch(arguments.length){case 1:return S;case 2:return w(S);case 3:return O(w(S));case 4:return P(O(w(S)));case 5:return A(P(O(w(S))));case 6:return T(A(P(O(w(S)))));case 7:return L(T(A(P(O(w(S))))));case 8:return D(L(T(A(P(O(w(S)))))));case 9:return Q(D(L(T(A(P(O(w(S))))))));default:{for(var G=arguments[0],z=1;z<arguments.length;z++)G=arguments[z](G);return G}}}e.hole=x;var m=function(S,w){return w};e.SK=m;function b(S){return function(w){return!S(w)}}var C=function(){return{concat:function(S,w){return p(S,w)},empty:l}};e.getEndomorphismMonoid=C;var E=function(S,w){var O=typeof S=="number"?function(P){return P.length>=S}:S;return function(){var P=Array.from(arguments);return O(arguments)?w.apply(this,P):function(A){return w.apply(void 0,t([A],P,!1))}}};e.dual=E})(wp);const zf={data:null,type:"unknown"},tC=hl.produce({requestInFlight:!1,lastResult:zf},wp.identity),l4=(e,t)=>hl.produce(e,n=>{if(t.type==="sendRequest"){n.requestInFlight=!0,n.lastResult=zf;return}if(t.type==="requestSuccess"){n.requestInFlight=!1,n.lastResult=t.payload;return}if(t.type==="requestFail"){n.requestInFlight=!1,n.lastResult={...zf,error:t.payload};return}}),nC=I.createContext(tC),rC=I.createContext(()=>{});function c4({children:e}){const[t,n]=I.useReducer(l4,tC);return fe.jsx(nC.Provider,{value:t,children:fe.jsx(rC.Provider,{value:n,children:e})})}const oC=Gl(nC,"RequestReadContext"),u4=Gl(rC,"RequestActionContext"),iC=I.createContext(null);function f4({children:e,value:t}){return fe.jsx(iC.Provider,{value:t,children:e})}const Cp=()=>{const e=I.useContext(iC);if(e==null)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},aC=hl.produce({ready:!1,currentTextObject:null,sensorEditor:null},wp.identity),d4=(e,t)=>hl.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}),sC=I.createContext(aC),lC=I.createContext(()=>{});function p4({children:e}){const[t,n]=I.useReducer(d4,aC,r=>({...r}));return fe.jsx(sC.Provider,{value:t,children:fe.jsx(lC.Provider,{value:n,children:e})})}const cC=Gl(sC,"EditorReadContext"),h4=Gl(lC,"EditorActionContext");function m4(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 uC=e=>{const t=u4(),{clusterID:n}=Cp(),{sensorEditor:r}=cC();return I.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 s=0;s<i.length;s++){const{url:l,method:c,data:u}=i[s];switch(c==null?void 0:c.toUpperCase()){case"LOAD":o="LOAD";const p=u[0]?u[0].slice(4).trim():l,d=sj(p),y=r.getCoreEditor().getCurrentPosition().lineNumber,_=await r.getRequestRange(y),x=m4(d);await r.getCoreEditor().replaceRange(_,x);continue;case"CONFIG":const g=l;let v=0;if(u&&u.length>0){const O=u[0].split(" ");if(O.length>=3&&(v=parseInt(O[2]),isNaN(v))){t({type:"requestSuccess",payload:{data:{success:!1,error:"wrong config value: "+O[2]}}});continue}}g=="MaxTokenCount"&&localStorage.setItem("editor:"+g,v+""),t({type:"requestSuccess",payload:{data:{success:!0}}});continue;case"FROM":i[s].url="_sql",i[s].method="POST",i[s].rawRequest=i[s].data[0];let f=i[s].data[0]||"";const m=f.search(/\s+(select)\s+/i);if(m==-1){const w=Error("invalid FROM request");throw w.name="FRONT_ERROR",w}const b=f.slice(0,m);f=f.slice(m);const C=f.search(/\s+(order|where|limit)\s+/i);C>-1?f=f.slice(0,C)+" "+b+f.slice(C):f=f+" "+b;let E={query:f.trim()};i[s].data[0]=JSON.stringify(E);break;case"SELECT":i[s].url="_sql",i[s].method="POST",i[s].rawRequest=i[s].data[0];let S={query:i[s].data[0]};i[s].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])},g4=()=>{const e=h4();return I.useCallback(t=>{e({type:"setInputEditor",payload:t})},[e])},v4=500,y4=()=>{const e=I.useRef(Promise.resolve()),{services:{objectStorageClient:t}}=Cp(),{currentTextObject:n}=cC();return I.useCallback(be.throttle(r=>{const{current:o}=e;n&&o.finally(()=>t.text.update({...n,text:r,updatedAt:Date.now()}))},v4,{trailing:!0}),[t,n])};function fC(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 ou(e){return[e.clientWidth,e.clientHeight]}class b4 extends Xd.EventEmitter{constructor(t,n={}){super(),this.destroyed=!1,this.expectedSize=null,this.el=t,this.observer=new pv(()=>{if(this.expectedSize){const r=be.isEqual(ou(t),this.expectedSize);if(this.expectedSize=null,r)return}this.emit("resize")}),n.disabled||this.enable()}enable(){this.destroyed||(this.expectedSize=ou(this.el),this.observer.observe(this.el))}modifySizeWithoutTriggeringResize(t){try{t()}finally{this.el&&(this.expectedSize=ou(this.el))}}destroy(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())}}function dC(e,...t){const n=new b4(e);return n.on("resize",()=>t.forEach(r=>{r.getCoreEditor?r.getCoreEditor().resize():r.resize(),r.updateActionsBar&&r.updateActionsBar()})),()=>n.destroy()}const _4={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},w4=e=>{const t=y4(),{saveCurrentTextObjectRef:n,sendRequestToES:r}=e,o=uC(r);return I.useEffect(()=>{n.current=t},[n,t]),fe.jsx(Ur,{title:fe.jsx(tn.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(Cr.PlayCircleOutlined,{})})})},C4=`GET _search
279
+ {
280
+ "query": {
281
+ "match_all": {}
282
+ }
283
+ }`,x4=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var v;const{id:i,endpoint:a}=e,s=I.useRef(null),l=I.useRef(null),c=I.useRef(null),u=g4(),p=I.useRef(null),d=I.useRef(null),y=I.useRef(()=>{}),_=I.useRef(()=>{});y.current=uC(o);const{services:{settings:x}}=Cp();I.useEffect(()=>{const f=Ze.edit(s.current);d.current=f;const m=new UB(f,l.current);f.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{y.current(),f.execCommand("iSearch")}});const b=new jM(m);c.current=b,u(b),b.paneKey=r,b.update(t||C4),fC(b.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function C(){let w;b.getCoreEditor().on("change",()=>{w&&clearTimeout(w),w=window.setTimeout(E,500)})}function E(){try{const w=b.getCoreEditor().getValue();n(w)}catch(w){console.error(w)}}const S=dC(s.current,b);return C(),()=>{S(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),I.useEffect(()=>{i&&(x_(x,x.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const g=async()=>{const f=c.current;if(f==null){console.warn("editor is null");return}const m=await f.getRequestsInRange();return m==null?void 0:m.map(C=>({method:C.method,path:C.url,body:(C.data||[]).join(`
284
+ `)}))};return fe.jsx("div",{style:{..._4,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:l,children:[fe.jsx(w4,{saveCurrentTextObjectRef:_,sendRequestToES:o}),fe.jsx(o4,{getCurl:()=>c.current.getRequestsAsCURL(a),getDocumentation:()=>s4(c.current,""),autoIndent:f=>{a4(c.current,f)},saveAsCommonCommand:g,ref:p})]}),fe.jsx("div",{ref:s,id:`Editor_${(v=c.current)==null?void 0:v.paneKey}`,className:"conApp__editorContent","data-test-subj":"request-editor",onClick:()=>{var f,m;(f=p.current)==null||f.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,s,l,c){var u=/^\s*/.exec(c)[0];return l.length<1?l.push(this.next):l[0]="mlString",l.length<2?l.push(u.length):l[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,s,l){var c=l[1];return c>=a.length?(this.next="start",l.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 s=i.getLine(a),l=s.match(/^(\s*\})/);if(!l)return 0;var c=l[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var p=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),p)},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(s,l,c){var u=this.indentationBlock(s,c);if(u)return u;var p=/\S/,d=s.getLine(c),y=d.search(p);if(!(y==-1||d[y]!="#")){for(var _=d.length,x=s.getLength(),g=c,v=c;++c<x;){d=s.getLine(c);var f=d.search(p);if(f!=-1){if(d[f]!="#")break;v=c}}if(v>g){var m=s.getLine(v).length;return new i(g,_,v,m)}}},this.getFoldWidget=function(s,l,c){var u=s.getLine(c),p=u.search(/\S/),d=s.getLine(c+1),y=s.getLine(c-1),_=y.search(/\S/),x=d.search(/\S/);if(p==-1)return s.foldWidgets[c-1]=_!=-1&&_<x?"start":"","";if(_==-1){if(p==x&&u[p]=="#"&&d[p]=="#")return s.foldWidgets[c-1]="",s.foldWidgets[c+1]="","start"}else if(_==p&&u[p]=="#"&&y[p]=="#"&&s.getLine(c-2).search(/\S/)==-1)return s.foldWidgets[c-1]="start",s.foldWidgets[c+1]="","";return _!=-1&&_<p?s.foldWidgets[c-1]="start":s.foldWidgets[c-1]="",p<x?"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,s=e("./folding/coffee").FoldMode,l=function(){this.HighlightRules=i,this.$outdent=new a,this.foldingRules=new s,this.$behaviour=this.$defaultBehaviour};r.inherits(l,o),(function(){this.lineCommentStart=["#","//"],this.getNextLineIndent=function(c,u,p){var d=this.$getIndent(u);if(c=="start"){var y=u.match(/^.*[\{\(\[]\s*$/);y&&(d+=p)}return d},this.checkOutdent=function(c,u,p){return this.$outdent.checkOutdent(u,p)},this.autoOutdent=function(c,u,p){this.$outdent.autoOutdent(u,p)},this.$id="ace/mode/yaml"}).call(l.prototype),t.Mode=l});const pC=e=>!!(e&&e.indexOf("application/json")>=0);function S4(e){return e?pC(e)?"ace/mode/json":e.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text"}function E4({clusterID:e}){const t=I.useRef(null),n=I.useRef(null),r="ConAppOutputTextarea",{lastResult:{data:o,error:i}}=oC();return I.useEffect(()=>{var a;(a=n.current)==null||a.setValue("")},[e]),I.useEffect(()=>{n.current=t4(t.current);const a=t.current.querySelector("textarea");a.setAttribute("id",r),a.setAttribute("readonly","true"),fC(n.current,{fontSize:12,wrapMode:!0});const s=dC(t.current,n.current);return()=>{s(),n.current.destroy()}},[]),I.useEffect(()=>{var s;const a=n.current;if(o){if(!o.length){a.update(JSON.stringify(o,null,2),"ace/mode/json");return}a.update(o.map(l=>{const{value:c,contentType:u}=l.response;if(pC(u)){let p="",d=c;if(d=="")return"";try{let y="";if(d[0]=="#"){const _=d.indexOf(`
285
+ `);p=d.slice(0,_),d=d.slice(_),y=p+`
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 l=S4((s=i.response)==null?void 0:s.contentType);if(l=="ace/mode/json"){a.update(JSON.stringify(JSON.parse(i.response.value),null,2),l);return}a.update(i.response.value,l)}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 xp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const hC=I.createContext({registry:new xp});function mC({children:e,registry:t}){return fe.jsx(hC.Provider,{value:{registry:t},children:e})}const R4=()=>{const e=I.useContext(hC);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function ov({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=I.useState(`${n}%`),{registry:a}=R4(),s=I.useRef(null);return I.useEffect(()=>{a.registerPanel({width:n,setWidth(l){i(l+"%"),this.width=l},getWidth(){return s.current.getBoundingClientRect().width}})},[n,a]),fe.jsx("div",{className:t,ref:s,style:{...r,width:o,display:"flex"},children:e})}function O4(e){return fe.jsx("button",{...e,children:fe.jsx(Cr.PauseOutlined,{})})}const iv={isDragging:!1,currentResizerPos:-1},av=(e,t)=>e/t*100,$4=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=I.Children.toArray(e),[i,a]=o,s=I.useRef(new xp),l=I.useRef(null),[c,u]=I.useState(iv),p=()=>l.current.getBoundingClientRect().width,d=I.useCallback(x=>{u({...c,isDragging:!0,currentResizerPos:x.clientX})},[c]),y=I.useCallback(x=>{const{key:g}=x;if(g==="ArrowLeft"||g==="ArrowRight"){x.preventDefault();const{current:v}=s,[f,m]=v.getPanels(),b=f.width-(g==="ArrowLeft"?1:-1),C=m.width-(g==="ArrowRight"?1:-1);f.setWidth(b),m.setWidth(C),n&&n([b,C])}},[n]);I.useEffect(()=>{var x;((x=ne==null?void 0:ne.env)==null?void 0:x.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const _=[i,fe.jsx(O4,{className:r,onKeyDown:y,onMouseDown:d},"resizer"),a];return fe.jsx(mC,{registry:s.current,children:fe.jsx("div",{className:t,ref:l,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:x=>{if(c.isDragging){const{clientX:g}=x,{current:v}=s,[f,m]=v.getPanels(),b=g-c.currentResizerPos,C=p(),E=av(f.getWidth()+b,C),S=av(m.getWidth()-b,C);f.setWidth(E),m.setWidth(S),n&&n([E,S]),u({...c,currentResizerPos:g})}},onMouseUp:()=>{u(iv)},children:_})})},T4=100;class P4{constructor(t){this.storage=t,this.changeEmitter=new CC.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,T4),o.forEach(s=>{this.storage.delete(s)});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 N4(e){return new P4(e.storage)}class I4{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(be.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 be.transform(be.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function A4(e){return new I4(e.engine,e.prefix)}class M4{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 j4({storage:e}){return new M4(e)}const k4="text-object";class L4{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}async create(t){const n=EC.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 F4=e=>({text:new L4(e,k4)}),qi="#00bb1b",sv="#fcca00",lv="#ff4d4f",D4="#bbbbbb",qf="#d8d8d8",gC={green:qi,yellow:sv,red:lv,available:qi,unavailable:qf,online:qi,offline:qf,active:sv,normal:qi,acknowledged:qi,error:lv,gray:D4};function B4(e){return gC[e]}const z4=({status:e,size:t=14})=>{if(e=="unavailable"||!gC[e])return fe.jsx("span",{children:fe.jsx(Cr.CloseCircleOutlined,{style:{fontSize:14,color:qf}})});const n=B4(e);return fe.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},q4=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",cv=({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(tn.FormattedMessage,{id:"console.cluster.status"}),":"]}),fe.jsx("i",{style:{position:"absolute",top:1,right:0},children:fe.jsx(z4,{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(tn.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),fe.jsx(ao,{color:"default",children:n==null?void 0:n.host})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(tn.FormattedMessage,{id:"console.cluster.version"}),":"]}),fe.jsx(ao,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=fe.jsx(ao,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:s,method:l,statusCode:c,statusText:u,timeElapsedMs:p}=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(tn.FormattedMessage,{id:"console.response.status"}),":"]}),fe.jsx(Ur,{placement:"top",title:fe.jsx("span",{children:`${l} ${s.startsWith("/")?s:"/"+s}`}),children:fe.jsx("span",{children:fe.jsxs(ao,{color:q4(c),children:[c," - ",u]})})})]}),fe.jsxs("div",{className:"info-item",children:[fe.jsxs("span",{children:[fe.jsx(tn.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),fe.jsx(Ur,{placement:"top",title:fe.jsx("span",{children:"Time Elapsed"}),children:fe.jsx("span",{children:fe.jsxs(ao,{color:"default",children:[p," ","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})})},uv=50,fv="0px",V4=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,p,d,y,_,x,g,v,f,m,b;const{requestInFlight:a,lastResult:{data:s,error:l}}=oC(),c=(s==null?void 0:s[s.length-1])??l;return fe.jsx("div",{className:"Console",style:{height:"100%"},children:fe.jsxs($4,{resizerClassName:"resizer",children:[fe.jsxs(ov,{style:{height:"calc(100%)",position:"relative",minWidth:fv,paddingBottom:26},initialWidth:uv,children:[fe.jsx(x4,{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(cv,{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:(p=c.response)==null?void 0:p.statusText,timeElapsedMs:(d=c.response)==null?void 0:d.timeMs,requestHeader:(y=c.request)==null?void 0:y.header,responseHeader:(_=c.response)==null?void 0:_.header}:void 0})})]}),fe.jsxs(ov,{style:{height:"calc(100%)",position:"relative",minWidth:fv,paddingBottom:26},initialWidth:uv,children:[fe.jsx(_a,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:fe.jsx("div",{style:{height:"100%"},children:fe.jsx(E4,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:fe.jsx(_a,{animated:!1,items:[{key:"1",label:"Request",children:fe.jsx(Gm,{code:(x=c==null?void 0:c.request)==null?void 0:x.header})},{key:"2",label:"Response",children:fe.jsx(Gm,{code:(g=c==null?void 0:c.response)==null?void 0:g.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(cv,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(v=c.response)==null?void 0:v.statusCode,statusText:(f=c.response)==null?void 0:f.statusText,timeElapsedMs:(m=c.response)==null?void 0:m.timeMs,requestHeader:c.request.header,responseHeader:(b=c.response)==null?void 0:b.header}:void 0})})]})]})})},dv=e=>{var a;const t=I.useRef(new xp),{storage:n,history:r,objectStorageClient:o,settings:i}=I.useMemo(()=>{const s=A4({engine:window.localStorage,prefix:"sense:"}),l=N4({storage:s}),c=F4(s),u=j4({storage:s});return{storage:s,history:l,objectStorageClient:c,settings:u}},[]);return fe.jsx(mC,{registry:t.current,children:fe.jsx(c4,{children:fe.jsx(p4,{children:fe.jsx(f4,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:fe.jsx(V4,{...e})})})})})},H4=({id:e,index:t,moveTabNode:n,children:r})=>{const o=I.useRef(null),[,i]=iu.useDrop({accept:"DND_NODE",hover:l=>{const c=l.index,u=t;c!==u&&(n(c,u),l.index=u)}}),[{isDragging:a},s]=iu.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:l=>({isDragging:l.isDragging()})});return s(i(o)),fe.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},W4=({id:e,index:t,moveTabNode:n,children:r})=>fe.jsx(H4,{id:e,index:t,moveTabNode:n,children:r}),U4=({children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTableData:s,sendRequestToES:l,...c})=>{const[u,p]=I.useState(n),[d,y]=I.useState(n.activeKey),[_,x]=I.useState([]),g=I.useCallback(w=>{x(O=>O.map(P=>P.key===d?{...P,content:w}:P)),p(O=>{const P={...O};return P.panes=P.panes.map(A=>A.key===d?{...A,content:w}:A),P}),s(u)},[d]);I.useEffect(()=>{var O;const w=(O=n==null?void 0:n.panes)==null?void 0:O.map(P=>({label:P.title,children:fe.jsx(dv,{height:r-35,selectedCluster:P.cluster,paneKey:P.key,saveEditorContent:g,initialText:P.content,isActive:P.key==d,sendRequestToES:l}),key:P.key,closable:P.closable,icon:i&&i(P)}));x(w)},[]);const[v,f]=I.useState(n.order||[]),m=(w,O)=>{const P=[...v];I.Children.forEach(e,L=>{P.indexOf(L.key)===-1&&P.push(L.key)});const A=P.indexOf(w),T=P.indexOf(O);P.splice(A,1),P.splice(T,0,w),f(P),typeof t=="function"&&t(P)},b=(w,O)=>fe.jsx("div",{children:fe.jsx(O,{...w,children:P=>fe.jsx(W4,{id:P.key,index:P.key,moveTabNode:m,children:P},P.key)})}),C=w=>{y(w);const O={...u,activeKey:w};p(O),s(O)};I.useEffect(()=>{var P;if(!a)return;const w=[..._];w.unshift({label:a.title,children:fe.jsx(dv,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:g,initialText:a.content,isActive:a.key==d,sendRequestToES:l}),key:a.key,closable:a.closable,icon:i&&i(a)}),x(w),y(a.key);const O={...u};(P=O.panes)==null||P.unshift(a),p(O),s(O)},[a]);const E=w=>{var L;let O=d,P=-1;_==null||_.forEach((D,Q)=>{D.key===w&&(P=Q-1)});const A=_.filter(D=>D.key!==w);A.length&&O===w&&(P>=0?O=A[P].key:O=A[0].key),x(A),y(O);let T={...u};T.panes=(L=T.panes)==null?void 0:L.filter(D=>D.key!==w),p(T),s(T)},S=(w,O)=>{O==="add"||E(w)};return fe.jsx(iu.DndProvider,{backend:_C.HTML5Backend,children:fe.jsx(_a,{...c,type:"editable-card",hideAdd:!0,renderTabBar:b,tabBarExtraContent:o,activeKey:d,items:_,onChange:C,onEdit:S})})},G4=()=>fe.jsx("div",{className:"resize-bar",children:fe.jsxs("div",{children:[fe.jsx("div",{className:"dash"}),fe.jsx("div",{className:"dash"})]})}),K4="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",X4="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",Y4=e=>{const[t,n]=I.useState(e.data||[]);I.useEffect(()=>{o(t)},[t,e.panes]);const r=s=>{const{onItemClick:l}=e;l&&typeof l=="function"&&l(s)},o=(s={})=>{var l,c,u;((l=s.data)==null?void 0:l.length)>0&&((c=e.panes)==null?void 0:c.length)===0&&r((u=s.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:s=>r(s),getClusterList:o,children:i}):null})},Q4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:K4}),J4=(e={})=>fe.jsx("img",{height:"14px",width:"14px",...e,src:X4});function Z4(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const ez=({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:s=()=>{console.warn("onMinimizeClick function is null")},newTabClick:l=()=>{console.warn("newTabClick function is null")},updateTableData:c=()=>{console.warn("updateTableData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var E;const p=I.useRef(null),[d,y]=I.useState(!1),[_,x]=I.useState(Z4(n));I.useEffect(()=>{const S=()=>{d&&x(p.current.offsetHeight)};return window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[d]);const g=()=>{p.current!=null&&(d?(p.current.className=p.current.className.replace(" fullscreen",""),C()):p.current.className=p.current.className+" fullscreen"),x(p.current.clientHeight),y(!d)},v=I.useCallback(S=>{s(S),C()},[s]);lj((E=o.activeKey)==null?void 0:E.split(":")[0]);const f={left:fe.jsxs(fe.Fragment,{children:[fe.jsx("div",{className:"tabbar-icon",onClick:v,children:fe.jsx(Cr.CodeOutlined,{})}),fe.jsx(Y4,{onItemClick:l,width:"300px",panes:o.panes,DataSourceSelector:r,children:fe.jsx("div",{className:"tabbar-icon",children:fe.jsx(Cr.PlusOutlined,{})})})]}),right:fe.jsxs(fe.Fragment,{children:[e?fe.jsx("div",{className:"tabbar-icon",onClick:v,children:fe.jsx(Cr.MinusOutlined,{})}):null,fe.jsx("div",{className:"tabbar-icon",onClick:g,children:d?fe.jsx(J4,{}):fe.jsx(Q4,{})})]})},m=I.useMemo(()=>["left","right"].reduce((S,w)=>({...S,[w]:f[w]}),{}),[]),b=()=>{document.body.style.overflow="hidden"},C=()=>{document.body.style.overflow=""};return fe.jsx(bC.Resizable,{defaultSize:{height:_},minHeight:70,maxHeight:"100vh",handleComponent:{top:fe.jsx(G4,{})},onResizeStop:(S,w,O,P)=>{x(_+P.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:b,onMouseOut:C,id:"console",ref:p,children:fe.jsx(U4,{editorHeight:_,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTableData:c,sendRequestToES:u})})})};module.exports=ez;