!(function(){var Dl=Math.pow;var gc=(En,Wt,se)=>new Promise((de,He)=>{var Be=we=>{try{ve(se.next(we))}catch(Ee){He(Ee)}},Ve=we=>{try{ve(se.throw(we))}catch(Ee){He(Ee)}},ve=we=>we.done?de(we.value):Promise.resolve(we.value).then(Be,Ve);ve((se=se.apply(En,Wt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[7189],{18299:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},84249:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},42922:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},90674:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},25877:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={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"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},63237:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={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"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},99569:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={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"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},33859:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},22751:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},24018:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"minus-circle",theme:"outlined"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},40043:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"plus-circle",theme:"outlined"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},38308:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={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"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},17663:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={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"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},91034:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},72395:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={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"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},53978:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ee}});var de=se(87462),He=se(67294),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Ve=Be,ve=se(74643),we=function(me,Ie){return He.createElement(ve.Z,(0,de.Z)({},me,{ref:Ie,icon:Ve}))},Ee=He.forwardRef(we)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(En,Wt){"use strict";Wt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var En={},Wt="5.0",se={},de=null,He=!1,Be=!1,Ve=null,ve=!1,we=null,Ee=null,xe=0;xe4?parseFloat(Ge):5};En.setHTML5Codebase=function(Ge,rt){Ee=Ge,ht(Ge,rt)},En.setJavaCodebase=En.setJavaCodebaseVersion=En.isCompiledInstalled=En.setPreCompiledScriptPath=En.setPreCompiledResourcePath=function(){},En.setHTML5CodebaseVersion=function(Ge,rt){var jt=parseFloat(Ge);if(jt!==NaN&&jt<5){console.log("The GeoGebra HTML5 codebase version "+jt+" is deprecated. Using version latest instead.");return}we=Ge,Ce(Ge,rt)},En.getHTML5CodebaseVersion=function(){return ft},En.getParameters=function(){return se},En.setFontsCSSURL=function(Ge){tt=Ge},En.setGiacJSURL=function(Ge){},En.setJNLPFile=function(Ge){Ie=Ge},En.setJNLPBaseDir=function(Ge){},En.inject=function(){function Ge(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var rt="auto",jt=se.id,_n,rn=!1,$t=0;$t=5)return!0;var Ge=En.getAppletObject();return Ge&&typeof Ge.recalculateEnvironments=="function"?(Ge.recalculateEnvironments(),!0):!1},En.startAnimation=function(){var Ge=En.getAppletObject();return Ge&&typeof Ge.startAnimation=="function"?(Ge.startAnimation(),!0):!1},En.stopAnimation=function(){var Ge=En.getAppletObject();return Ge&&typeof Ge.stopAnimation=="function"?(Ge.stopAnimation(),!0):!1},En.getAppletObject=function(){var Ge=se.id!==void 0?se.id:"ggbApplet";return window[Ge]},En.resize=function(){};var kt=function(Ge,rt,jt){var _n=document.createElement("param");_n.setAttribute("name",rt),_n.setAttribute("value",jt),Ge.appendChild(_n)},Xe=function(Ge){return Ge&&Ge!=="false"},Kt=function(Ge,rt,jt){ke(ft)<=4.2&&(jt=!0);var _n=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ft||ggbHTML5LoadedCodebaseIsWebSimple&&!Je)&&(_n=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var rn=document.createElement("div");rn.classList.add("appletParameters","notranslate");var $t=rt.width,Zt=rt.height;if(rt.disableAutoScale=rt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():rt.disableAutoScale,rt.width!==void 0)if(ke(ft)<=4.4)Xe(rt.showToolBar)&&(rt.height-=7),Xe(rt.showAlgebraInput)&&(rt.height-=37),rt.width<605&&Xe(rt.showToolBar)&&(rt.width=605,$t=605);else{var yn=100;(Xe(rt.showToolBar)||Xe(rt.showMenuBar))&&(rt.hasOwnProperty("customToolBar")&&(rt.customToolbar=rt.customToolBar),yn=Xe(rt.showMenuBar)?245:155),$t=5?(rt.appletOnLoad=function(Xt){var Hn=Ge.querySelector(".ggb_preview");Hn&&Hn.parentNode.removeChild(Hn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ue),window.GGBT_wsf_view&&$(window).trigger("resize"),Ae(Xt)},le||ue.appendChild(pe)):rn.appendChild(pe),ue.appendChild(rn),le||Ge.appendChild(ue),setTimeout(function(){En.resize()},1)}else{var he=document.createElement("div");he.className="applet_scaler",he.style.position="relative",he.style.display="block",he.appendChild(rn),Ge.appendChild(he),rt.appletOnLoad=function(Xt){En.resize(),Ae(Xt)}}function oe(Xt,Hn){Hn&&typeof Hn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Xt,Hn.appletOnLoad):renderGGBElement(Xt),Ut("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Hn)}function Te(Xt,Hn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Xt,params:Hn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Rn){oe(Rn.article,Rn.params)}),html5AppletsToProcess=null)},ke(ft)<5&&(Xt.className+=" geogebraweb")):oe(Xt,Hn)}if(_n){scriptLoadStarted=!0;for(var Ye=0;Ye0?(ln.remove(),ue.attr("id","fullscreencontent").show(),jQuery(Ae).append(ue),window.dispatchEvent(new Event("resize"))):Kt(ln,rt,!1),window.GGBT_wsf_view.launchFullScreen(Ae)}else St=_n,Kt(Ge,rt,!1);if(!window.GGBT_wsf_view)for(Zt=0;ZtGe/4*3&&(ln=Ge/4*3),Ae=ln/5.8,yn.setAttribute("src",gt),yn.setAttribute("width",ln),yn.setAttribute("height",Ae);var ue=(Ge-ln)/2,le=(rt-Ae)/2;yn.style.left=ue+"px",yn.style.top=le+"px",rn.appendChild(yn)}}return rn.appendChild(Zt),rn},or=function(Ge){return Ge=Ge.toLowerCase(),Ge==="html5"||Ge==="screenshot"?Ge:"html5"},Qe=["web","webSimple","web3d","tablet","tablet3d","phone"],Ce=function(Ge,rt){if(ft=Ge,rt){ht(ft,!0);return}var jt=!He;if(jt){var _n=ke(ft);!isNaN(_n)&&_n<4.4&&(jt=!1)}var rn,$t;window.location.protocol.substr(0,4)==="http"?rn=window.location.protocol:rn="http:";var Zt=ft.indexOf("//");Zt>0?$t=ft:Zt===0?$t=rn+ft:$t="https://www.geogebra.org/apps/5.2.814.0/";for(var yn in Qe)if(ft.slice(Qe[yn].length*-1)===Qe[yn]||ft.slice((Qe[yn].length+1)*-1)===Qe[yn]+"/"){ht($t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&jt&&!de.is3D&&!de.AV&&!de.SV&&!de.CV&&!de.EV2&&!de.CP&&!de.PC&&!de.DA&&!de.FI&&!de.PV&&!Xe(se.showToolBar)&&!Xe(se.showMenuBar)&&!Xe(se.showAlgebraInput)&&!Xe(se.enableRightClick)&&(!se.appName||se.appName=="classic")?$t+="webSimple/":$t+="web3d/",ht($t,!1)},ht=function(Ge,rt){if(Ge.requirejs){ot=Ge;return}Ge.slice(-1)!=="/"&&(Ge+="/"),ot=Ge,rt===null&&(rt=Ge.indexOf("http")===-1),Oe=rt,it="web.nocache.js",Je=!1;var jt=ot.split("/");jt.length>1&&(!rt&&jt[jt.length-2]==="webSimple"?(it="webSimple.nocache.js",Je=!0):Qe.indexOf(jt[jt.length-2])>=0&&(it=jt[jt.length-2]+".nocache.js")),jt=Ge.split("/"),ft=jt[jt.length-3],ft.substr(0,4)==="test"?ft=ft.substr(4,1)+"."+ft.substr(5,1):(ft.substr(0,3)==="war"||ft.substr(0,4)==="beta")&&(ft="5.0");var _n=parseFloat(ft);_n!==NaN&&_n<5&&Ge.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+_n+" is deprecated. Using version latest instead."),Ce("5.0",rt))},Ut=function(Ge,rt){window.console&&window.console.log&&(!rt||typeof rt.showLogging=="undefined"||rt.showLogging&&rt.showLogging!=="false")&&console.log(Ge)};se.material_id!==void 0?je(Yt):Yt();function Yt(){var Ge=Wt;we!==null?Ge=we:parseFloat(Ge)<5&&(Ge="5.0"),Ce(Ge,!1),Ee!==null&&ht(Ee,Oe),ve=!0}return En},GGBAppletUtils=function(){"use strict";function En(){return window.GGBT_wsf_edit!==void 0}function Wt(ve,we){we!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+we+","+we+")",ve.style.webkitTransform="scale("+we+","+we+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function se(ve,we,Ee,xe,me,Ie){var ot=null;if(Ie!=null&&Ie!="")for(var Oe=ve.parentNode;Oe!=null;)if((" "+Oe.className+" ").indexOf(" "+Ie+" ")>-1){ot=Oe;break}else Oe=Oe.parentNode;var St=0,ft=0,it=0,Je=0,Le=0,gt=0,qt=0;if(ot)St=ot.offsetWidth,ft=Math.max(xe?ot.offsetWidth:0,ot.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(St=Math.min(window.innerWidth,document.documentElement.clientWidth),ft=Math.min(window.innerHeight,document.documentElement.clientHeight),it=St):(St=window.innerWidth,ft=window.innerHeight,it=window.innerWidth),ve){var tt=ve.getBoundingClientRect();tt.left>0&&tt.left<=St&&(me===void 0||!me)&&(document.dir==="rtl"?(Le=St-tt.width-tt.left,gt=it<=480?10:30):(gt=tt.left,Le=it<=480?10:30),Je=gt+Le)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ct=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Je=40,qt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Je=0,qt=40)}}return ve&&((Ee===void 0||!Ee)&&we>0&&we+Je1&&(Ie=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))me=de(ve,we,Ie,Ee,ve.scaleContainerClass);else return xe;return Ie&&(!ve.hasOwnProperty("scale")||xe===1)?me:Math.min(xe,me)}function Be(ve){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),xe=ve.getBoundingClientRect(),me=(we-xe.width)/2,Ie=(Ee-xe.height)/2;Ie<0&&(Ie=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(me<40?ve.style.left="40px":ve.style.left=me+"px",ve.style.top=Ie+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie<40?ve.style.top="40px":ve.style.top=Ie+"px",ve.style.left=me+"px")}function Ve(ve,we){var Ee=ve.querySelector(".appletParameters");if(Ee){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==Ee.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(Ee.parentElement&&/fullscreen/.test(Ee.parentElement.className))return;var xe=He(we,ve);En()&&Ee.setAttribute("data-param-scale",xe);for(var me=null,Ie=0;Ie=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(En){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(En){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(En){var Wt=c[En];return Wt==null?null:Wt},r=d,webModule.__errFn=e}function B(){function En(ve){var we=ve.lastIndexOf(rb);we==-1&&(we=ve.length);var Ee=ve.indexOf(sb);Ee==-1&&(Ee=ve.length);var xe=ve.lastIndexOf(tb,Math.min(Ee,we));return xe>=O?ve.substring(O,xe+P):W}function Wt(ve){if(!ve.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=ve+vb,ve=En(we.src)}return ve}function se(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function de(){for(var ve=o.getElementsByTagName(_),we=O;weO?ve[ve.length-P].href:W}function Be(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var Ve=se();return Ve==W&&(Ve=de()),Ve==W&&(Ve=He()),Ve==W&&Be()&&(Ve=En(o.location.href)),Ve=Wt(Ve),Ve}function C(En){return En.match(/^\//)||En.match(/^[a-zA-Z]+:\/\//)?En:webModule.__moduleBase+En}function D(){var En=[],Wt=O,se=[],de=[];function He(ve){var we=de[ve](),Ee=se[ve];if(we in Ee)return we;var xe=[];for(var me in Ee)xe[Ee[me]]=me;throw r&&r(ve,xe,we),null}if(__gwt_isKnownPropertyValue=function(ve,we){return we in se[ve]},webModule.__getPropMap=function(){var ve={};for(var we in se)se.hasOwnProperty(we)&&(ve[we]=He(we));return ve},webModule.__computePropValue=He,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Be;try{Be=Cb;var Ve=Be.indexOf(Db);Ve!=-1&&(Wt=parseInt(Be.substring(Ve+P),$),Be=Be.substring(O,Ve))}catch(ve){}return webModule.__softPermutationId=Wt,C(Be+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(En,Wt,se){"use strict";se.d(Wt,{Ax:function(){return Ve},Ds:function(){return ve},KI:function(){return Ee},SI:function(){return Be},f1:function(){return He}});var de=se(11320);function He(xe){let me=!0;if(xe.length>0){for(let Ie=0;Iesn in Nt?Ie(Nt,sn,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):Nt[sn]=Cn,it=(Nt,sn)=>{for(var Cn in sn||(sn={}))Oe.call(sn,Cn)&&ft(Nt,Cn,sn[Cn]);if(ot)for(var Cn of ot(sn))St.call(sn,Cn)&&ft(Nt,Cn,sn[Cn]);return Nt},Je=(Nt,sn,Cn)=>new Promise((or,Qe)=>{var Ce=Yt=>{try{Ut(Cn.next(Yt))}catch(Ge){Qe(Ge)}},ht=Yt=>{try{Ut(Cn.throw(Yt))}catch(Ge){Qe(Ge)}},Ut=Yt=>Yt.done?or(Yt.value):Promise.resolve(Yt.value).then(Ce,ht);Ut((Cn=Cn.apply(Nt,sn)).next())});const Le=Be.default.Group,gt=({classroomList:Nt,loading:sn,user:Cn,exercise_id:or=null,homework_common_id:Qe=null,setitem:Ce,item:ht,type:Ut,rz:Yt,dispatch:Ge})=>{var rt,jt,_n,rn,$t,Zt,yn,ln;const[Ae,ue]=(0,de.useState)([]);let[le,pe]=(0,de.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const he=(0,He.useParams)(),[oe,Te]=(0,de.useState)(!1),[Ye,Lt]=(0,de.useState)(!1),[Rt]=Ee.default.useForm();(0,de.useEffect)(()=>{Yt&&(le.zydatas=Yt,pe(it({},le)),ht!=null&&ht.ec_course_id&&Ft())},[ht,Yt]);function Ft(){return Je(this,null,function*(){console.log("----",ht),yield Jt(ht==null?void 0:ht.ec_major_school_id),yield Xt(ht==null?void 0:ht.ec_year_id),yield Hn(ht==null?void 0:ht.ec_course_id),Rt.setFieldsValue({ec_course_id:ht==null?void 0:ht.ec_course_id,ec_major_school_id:ht==null?void 0:ht.ec_major_school_id,ec_point_ids:ht==null?void 0:ht.ec_point_ids,ec_year_id:ht==null?void 0:ht.ec_year_id})})}function Jt(Rn){return Je(this,null,function*(){const Tt=yield(0,we.ZP)(`/api/ec_major_schools/${Rn}/ec_years/get_year_list.json`,{method:"get"});le.jbdatas=Tt==null?void 0:Tt.data,pe(it({},le)),Rt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Xt(Rn){return Je(this,null,function*(){const Tt=yield(0,we.ZP)(`/api/ec_years/${Rn}/ec_courses/get_courses.json`,{method:"get"});le.kcdatas=Tt==null?void 0:Tt.data,pe(it({},le)),Rt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const Hn=Rn=>Je(void 0,null,function*(){const Tt=yield(0,we.ZP)(`/api/ec_courses/${Rn}/ec_points.json`,{method:"get",params:{ec_course_id:Rn}});le.zsdatas=Tt==null?void 0:Tt.data,pe(it({},le))});return de.createElement("div",{className:me.from},de.createElement(Ee.default,{form:Rt,layout:"inline",onValuesChange:Rn=>{console.log("----",Rn),Rn.ec_major_school_id&&(le.jbdatas=[],le.kcdatas=[],le.zsdatas=[],pe(it({},le)),Jt(Rn.ec_major_school_id)),Rn.ec_year_id&&(le.kcdatas=[],le.zsdatas=[],pe(it({},le)),Xt(Rn.ec_year_id)),Rn.ec_course_id&&(le.zsdatas=[],pe(it({},le)),Hn(Rn.ec_course_id))},onFinish:Rn=>Je(void 0,null,function*(){Ce(Rn)})},de.createElement(Ee.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},de.createElement(xe.default,{style:{width:150},disabled:((rt=le.zydatas)==null?void 0:rt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(jt=le==null?void 0:le.zydatas)==null?void 0:jt.map((Rn,Tt)=>de.createElement(xe.default.Option,{key:Tt,value:Rn==null?void 0:Rn.ec_major_school_id},Rn==null?void 0:Rn.name)))),de.createElement(Ee.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},de.createElement(xe.default,{style:{width:150},disabled:((_n=le.jbdatas)==null?void 0:_n.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(rn=le==null?void 0:le.jbdatas)==null?void 0:rn.map((Rn,Tt)=>de.createElement(xe.default.Option,{key:Tt,value:Rn==null?void 0:Rn.ec_year_id},Rn==null?void 0:Rn.year)))),de.createElement(Ee.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},de.createElement(xe.default,{style:{width:150},disabled:(($t=le.kcdatas)==null?void 0:$t.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(Zt=le==null?void 0:le.kcdatas)==null?void 0:Zt.map((Rn,Tt)=>de.createElement(xe.default.Option,{key:Tt,value:Rn==null?void 0:Rn.id},Rn==null?void 0:Rn.name)))),de.createElement(Ee.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},de.createElement(xe.default,{onChange:()=>{Rt.submit()},style:{width:150},mode:"multiple",disabled:((yn=le.zsdatas)==null?void 0:yn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(ln=le==null?void 0:le.zsdatas)==null?void 0:ln.map((Rn,Tt)=>de.createElement(xe.default.Option,{key:Tt,value:Rn==null?void 0:Rn.id},Rn==null?void 0:Rn.name))))))};var qt=(0,He.connect)(({classroomList:Nt,loading:sn,globalSetting:Cn,user:or})=>({classroomList:Nt,globalSetting:Cn,loading:sn.effects,user:or}))(gt),tt=Object.defineProperty,ct=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,_t=(Nt,sn,Cn)=>sn in Nt?tt(Nt,sn,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):Nt[sn]=Cn,vt=(Nt,sn)=>{for(var Cn in sn||(sn={}))Ue.call(sn,Cn)&&_t(Nt,Cn,sn[Cn]);if(Se)for(var Cn of Se(sn))je.call(sn,Cn)&&_t(Nt,Cn,sn[Cn]);return Nt},kt=(Nt,sn)=>ct(Nt,ke(sn)),Xe=(Nt,sn,Cn)=>new Promise((or,Qe)=>{var Ce=Yt=>{try{Ut(Cn.next(Yt))}catch(Ge){Qe(Ge)}},ht=Yt=>{try{Ut(Cn.throw(Yt))}catch(Ge){Qe(Ge)}},Ut=Yt=>Yt.done?or(Yt.value):Promise.resolve(Yt.value).then(Ce,ht);Ut((Cn=Cn.apply(Nt,sn)).next())});const Kt=Be.default.Group,Ot=({classroomList:Nt,loading:sn,user:Cn,exercise_id:or=null,homework_common_id:Qe=null,setitem:Ce,type:ht,dispatch:Ut})=>{var Yt,Ge;let[rt,jt]=(0,de.useState)([{}]),[_n,rn]=(0,de.useState)([]);function $t(){return Xe(this,null,function*(){var yn,ln,Ae;let ue=yield(0,we.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:or,homework_common_id:Qe}});if(((yn=ue==null?void 0:ue.data)==null?void 0:yn.length)>0){let le=[];(ln=ue==null?void 0:ue.data)==null||ln.map(pe=>{var he;(he=pe==null?void 0:pe.ec_point_ids)==null||he.map(oe=>{le.push(oe)})}),Ce(kt(vt({},(Ae=ue==null?void 0:ue.data)==null?void 0:Ae[0]),{ec_point_ids:le})),jt(ue==null?void 0:ue.data)}})}(0,de.useEffect)(()=>{var yn,ln;(ln=(yn=Cn==null?void 0:Cn.userInfo)==null?void 0:yn.course)!=null&&ln.course_school_id&&Zt()},[(Ge=(Yt=Cn==null?void 0:Cn.userInfo)==null?void 0:Yt.course)==null?void 0:Ge.course_school_id]);function Zt(){return Xe(this,null,function*(){var yn,ln;const Ae=yield(0,we.ZP)(`/api/schools/${(ln=(yn=Cn==null?void 0:Cn.userInfo)==null?void 0:yn.course)==null?void 0:ln.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});rn(Ae==null?void 0:Ae.data),(Qe||or)&&$t()})}return de.createElement("div",null,de.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),rt==null?void 0:rt.map((yn,ln)=>de.createElement("div",{key:ln,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},de.createElement(qt,{rz:_n,item:yn,type:ln,setitem:Ae=>{rt.splice(ln,1,Ae),jt([...rt]);let ue=[];rt==null||rt.map(le=>{var pe;(pe=le==null?void 0:le.ec_point_ids)==null||pe.map(he=>{ue.push(he)})}),Ce(kt(vt({},Ae),{ec_point_ids:ue}))}}),ln!=0&&de.createElement(Ve.Z,{onClick:()=>{rt.splice(ln,1),jt([...rt])},style:{marginLeft:10,fontSize:"20px"}}),de.createElement(ve.Z,{onClick:()=>{rt.push({}),jt([...rt])},style:{marginLeft:10,fontSize:"20px"}}))))};var bn=(0,He.connect)(({classroomList:Nt,loading:sn,globalSetting:Cn,user:or})=>({classroomList:Nt,globalSetting:Cn,loading:sn.effects,user:or}))(Ot)},63205:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return ot}});var de=se(67294),He={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Be=se(94184),Ve=se.n(Be),ve=se(57953),we=se(15979),Ee=se(33170),xe=se(28706),me=(Oe,St,ft)=>new Promise((it,Je)=>{var Le=tt=>{try{qt(ft.next(tt))}catch(ct){Je(ct)}},gt=tt=>{try{qt(ft.throw(tt))}catch(ct){Je(ct)}},qt=tt=>tt.done?it(tt.value):Promise.resolve(tt.value).then(Le,gt);qt((ft=ft.apply(Oe,St)).next())}),ot=({data:Oe,className:St,fullWidth:ft,style:it={},onClose:Je,onOk:Le,showFullTools:gt,noAssociationId:qt})=>{const tt=(0,de.useRef)(null),ct=(0,de.useRef)(null),ke=(0,de.useRef)(null),Se=(0,de.useRef)(null),[Ue,je]=(0,de.useState)(!1),[_t,vt]=(0,de.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,de.useEffect)(()=>{ke.current||(ke.current=document.createElement("style"),document.head.appendChild(ke.current)),Oe!=null&&Oe.visible?(document.body.setAttribute("data-custom","y-hidden"),ke.current.innerHTML=" html { overflow-y: hidden; }",Oe!=null&&Oe.src&&kt()):(document.body.removeAttribute("data-custom"),ke.current&&(document.head.removeChild(ke.current),ke.current=null))},[Oe==null?void 0:Oe.visible]);const kt=()=>me(void 0,null,function*(){je(!0),vt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Nt=yield(0,xe.ZJ)(Oe==null?void 0:Oe.src);tt.current.src="",tt.current.src=Nt,tt.current.onload=function(){bn()},je(!1),vt("")}),Xe=()=>{document.body.removeAttribute("data-custom"),ke.current.innerHTML=" ",Je()},Kt=Nt=>me(void 0,null,function*(){je(!0),vt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const sn=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Oe.title,file:Nt.dataUrl}});sn!=null&&sn.id&&!qt?(yield(0,Ee.ZP)(`/api/attachments/${Oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:sn==null?void 0:sn.id,settings:JSON.stringify(Nt.state)}})).status===0&&Le():sn!=null&&sn.id&&Le(sn),document.body.removeAttribute("data-custom"),ke.current.innerHTML=" ",je(!1),vt("")}),Ot=()=>{const Nt=document.querySelector('a[href="https://markerjs.com/"]');Nt&&Nt.parentNode&&(Nt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Cn=>{const or=document.querySelector(Cn.name);or&&or.setAttribute("title",Cn.title)})},bn=()=>{ct.current=new we.hP(tt.current),ct.current.targetRoot=Se.current,ct.current.addEventListener("render",Kt),ct.current.addEventListener("beforeclose",Xe),gt&&(ct.current.availableMarkerTypes=ct.current.ALL_MARKER_TYPES,ct.current.uiStyleSettings.redoButtonVisible=!0,ct.current.uiStyleSettings.notesButtonVisible=!0,ct.current.uiStyleSettings.zoomButtonVisible=!0,ct.current.uiStyleSettings.zoomOutButtonVisible=!0,ct.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ct.current.uiStyleSettings,ct.current.show(),Oe!=null&&Oe.snapshotData&&ct.current.restoreState(Oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ot()},300)};return de.createElement(de.Fragment,null,(Oe==null?void 0:Oe.visible)&&de.createElement(ve.Z,{spinning:Ue,tip:_t,style:{position:"absolute"}},de.createElement("div",{ref:Se,className:Ve()(He.imageDimensions,St,ft?He.fullWidth:""),style:it},de.createElement("img",{className:He.img,ref:tt}))))}},36527:function(En,Wt,se){"use strict";var de=se(67294),He=se(71230),Be=se(15746),Ve=se(66368),ve=se(71577),we=se(35598),Ee=se(71736),xe=se(84279),me=se(67294);const Ie=(0,de.forwardRef)(({callback:ot,showSaveButton:Oe,value:St=""},ft)=>{const it=(0,de.useRef)(),Je=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Le=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r \\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r \\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\left\\{\\begin{matrix} \r \\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r \\end{matrix}\\right. \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r \\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r \\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r a \\perp \\alpha \\ \r b \\perp \\alpha \r \\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r \\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r a \\parallel \\partial ,b \\parallel \\partial \r \\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r a \\perp m,a \\perp n \r \\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r \\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r a^{2}+b^{2}=c^{2} \r \\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r \\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r \\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r \\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r \\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r a,b \\in R^{+} \\ \r \\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r a,b \\in R \\ \r \\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r \\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r \\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r \\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r \\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r P \\left( \\emptyset \\right) =0 \\\\ \r P \\left( S \\right) =1 \r \\end{array}`},{value:`\\begin{array}{c} \r \\forall A \\in S \\\\ \r P \\left( A \\right) \\ge 0 \r \\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r \\end{array}`}]}]}],gt=ct=>{it.current.setValue(it.current.getValue()+" "+ct.value+" ")},qt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:me.createElement(He.Z,{className:Ee.Z.lists,gutter:[10,10]},Je.map((ct,ke)=>me.createElement(Be.Z,{flex:"110px",className:Ee.Z.item},me.createElement("div",null,me.createElement(we.Z,{value:`$$${ct.value}$$`}),ct.name),me.createElement("div",{className:Ee.Z.children},ct.children.map((Se,Ue)=>me.createElement("div",{key:Ue},me.createElement("h1",null,Se.name),me.createElement(He.Z,{gutter:[10,10]},Se.data.map((je,_t)=>me.createElement(Be.Z,{key:_t,onClick:()=>gt(je),className:Ee.Z.diamond},me.createElement(we.Z,{value:"`$$"+je.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:me.createElement(He.Z,{className:Ee.Z.lists,gutter:[10,10]},Le.map((ct,ke)=>me.createElement(Be.Z,{flex:"110px",className:Ee.Z.item},me.createElement("div",null,me.createElement(we.Z,{value:"`$$"+ct.value+"$$`"}),ct.name),me.createElement("div",{className:Ee.Z.children},ct.children.map((Se,Ue)=>me.createElement("div",{key:Ue},Se.name&&me.createElement("h1",null,Se.name),me.createElement(He.Z,{gutter:[10,10]},Se.data.map((je,_t)=>me.createElement(Be.Z,{key:_t,onClick:()=>gt(je),className:Ee.Z.diamond},me.createElement(we.Z,{value:"`$$"+je.value+"$$`"}))))))))))}],tt=()=>{var ct=document.createElement("div");ct.innerHTML=it.current.getValue();var ke=ct.innerText;return ot&&ot(ke),ke};return(0,de.useImperativeHandle)(ft,()=>({getData:tt})),me.createElement("div",{className:Ee.Z.mathWrap},me.createElement(Ve.default,{defaultActiveKey:"1",items:qt}),me.createElement("math-field",{locale:"zh_cn",className:Ee.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:it,style:{width:800,marginTop:30,fontSize:18}},St||""),Oe&&me.createElement("div",{className:Ee.Z.button},me.createElement(ve.ZP,{size:"large",onClick:tt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Wt.Z=Ie},65866:function(En,Wt,se){"use strict";se.d(Wt,{z:function(){return or},Z:function(){return Qe}});var de=se(67294),He=se(59810),Be=se(2453),Ve=se(14446),ve=se(71577),we=se(11320),Ee=se(4440),xe=Object.defineProperty,me=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Oe=(Ce,ht,Ut)=>ht in Ce?xe(Ce,ht,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Ce[ht]=Ut,St=(Ce,ht)=>{for(var Ut in ht||(ht={}))Ie.call(ht,Ut)&&Oe(Ce,Ut,ht[Ut]);if(me)for(var Ut of me(ht))ot.call(ht,Ut)&&Oe(Ce,Ut,ht[Ut]);return Ce},ft=(Ce,ht,Ut)=>new Promise((Yt,Ge)=>{var rt=rn=>{try{_n(Ut.next(rn))}catch($t){Ge($t)}},jt=rn=>{try{_n(Ut.throw(rn))}catch($t){Ge($t)}},_n=rn=>rn.done?Yt(rn.value):Promise.resolve(rn.value).then(rt,jt);_n((Ut=Ut.apply(Ce,ht)).next())});const it="\u3000\u3000";function Je(Ce){var ht=["Bytes","KB","MB","GB","TB"];if(Ce==0)return"0 Byte";var Ut=parseInt(""+Math.floor(Math.log(Ce)/Math.log(1024)),10);return(Ce/Math.pow(1024,Ut)).toFixed(1)+" "+ht[Ut]}var Le=({value:Ce=[],action:ht,onChange:Ut,className:Yt,maxSize:Ge=150,title:rt="\u6587\u4EF6\u4E0A\u4F20",accept:jt=null})=>{const _n={multiple:!1,fileList:Ce,accept:jt,withCredentials:!0,beforeUpload:$t=>$t.size/1024/1024(le.name.indexOf(it)===-1&&(le.name=`${le.name}${it}${Je(le.size)}`),St({},le))),$t.file.status==="done"&&((yn=(Zt=$t.file)==null?void 0:Zt.response)==null?void 0:yn.status)===-1){message.error((Ae=(ln=$t.file)==null?void 0:ln.response)==null?void 0:Ae.message),Ut([]);return}Ut(ue)},onRemove:$t=>ft(void 0,null,function*(){const Zt=$t.size/1024/1024;return $t.status==="uploading"?!0:Zt0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:Ce.length>0,ghost:!0},rt),React.createElement("span",{onClick:rn,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Ge,"M)"," ")))},gt=se(33859),qt=se(96486),tt=Object.defineProperty,ct=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ue=(Ce,ht,Ut)=>ht in Ce?tt(Ce,ht,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Ce[ht]=Ut,je=(Ce,ht)=>{for(var Ut in ht||(ht={}))ke.call(ht,Ut)&&Ue(Ce,Ut,ht[Ut]);if(ct)for(var Ut of ct(ht))Se.call(ht,Ut)&&Ue(Ce,Ut,ht[Ut]);return Ce};const _t=Ce=>React.createElement("svg",je({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var vt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",kt=Object.defineProperty,Xe=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,bn=(Ce,ht,Ut)=>ht in Ce?kt(Ce,ht,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Ce[ht]=Ut,Nt=(Ce,ht)=>{for(var Ut in ht||(ht={}))Kt.call(ht,Ut)&&bn(Ce,Ut,ht[Ut]);if(Xe)for(var Ut of Xe(ht))Ot.call(ht,Ut)&&bn(Ce,Ut,ht[Ut]);return Ce},sn=(Ce,ht,Ut)=>new Promise((Yt,Ge)=>{var rt=rn=>{try{_n(Ut.next(rn))}catch($t){Ge($t)}},jt=rn=>{try{_n(Ut.throw(rn))}catch($t){Ge($t)}},_n=rn=>rn.done?Yt(rn.value):Promise.resolve(rn.value).then(rt,jt);_n((Ut=Ut.apply(Ce,ht)).next())});const{Dragger:Cn}=He.default;function or(Ce){let ht=[];return Ce&&Ce.length>0&&(ht=Ce.map(Ut=>({uid:Ut.id,id:Ut.id,name:Ut.title+it+Ut.filesize,url:Ut.url,filesize:Ut.filesize,status:"done",response:{id:Ut.id}}))),ht}var Qe=({value:Ce,onChange:ht,action:Ut,data:Yt,className:Ge,maxSize:rt=150,title:jt="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:_n=!1,accept:rn="",additionalText:$t,isDragger:Zt,number:yn=1e3,aloneClear:ln=!1,realTimeRemove:Ae=!0,uploadText:ue,setFileProgress:le,showFileProgress:pe})=>{const[he,oe]=(0,de.useState)(!1);let[Te,Ye]=(0,de.useState)(Ce||[]),[Lt,Rt]=(0,de.useState)(1);(0,de.useEffect)(()=>{Ce&&(Lt===1&&Ye([...Ce]),Rt(2),yn===(Ce==null?void 0:Ce.length)&&oe(!0))},[Ce]);const Ft=()=>{setTimeout(()=>{Te.pop(),Ye([...Te])},500)};pe&&le(Te.some(Hn=>Hn.status==="uploading"));const Jt={multiple:!0,disabled:he,accept:rn,withCredentials:!0,fileList:Te,beforeUpload:(Hn,Rn)=>{const Tt=Hn.size/1024/1024;return Te.concat(Rn).length>yn?(Te.pop(),Ye([...Te]),Be.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${yn}\u4E2A\u6587\u4EF6`),ln?Promise.reject():(Ft(),!1)):Tt=yn?oe(!0):oe(!1),Ye([...Te]),Te=Te.map(Mr=>{var at,Ht;return(at=Mr==null?void 0:Mr.response)!=null&&at.id&&(Mr.url=(Ht=Mr==null?void 0:Mr.response)==null?void 0:Ht.url),Mr.name.indexOf(it)===-1&&(Mr.name=`${Mr.name}${it}${Je(Mr.size)}`),Nt({},Mr)}),console.log("info:",Hn,Te),ht(Te)},onRemove:Hn=>sn(void 0,null,function*(){if(!Ae)return!0;const Rn=()=>sn(void 0,null,function*(){if(Hn.response?Hn.response.id:Hn.id){let dn=yield(0,Ee.JZ)(Hn.response?Hn.response.id:Hn.uid);return Promise.resolve(dn)}else return!0});return _n?new Promise((Tt,dn)=>{Ve.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:de.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>sn(void 0,null,function*(){const cr=yield Rn();Be.ZP.success("\u5220\u9664\u6210\u529F"),Tt(!0)}),onCancel:()=>Tt(!1)})}):yield Rn()})};function Xt(Hn){Hn.preventDefault(),Hn.stopPropagation()}return de.createElement("div",{className:`multi-upload ${Ge||""}`},Zt&&de.createElement(Cn,Nt({},Jt),de.createElement("p",{className:"ant-upload-drag-icon"},de.createElement(gt.Z,null)),de.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",de.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",rt,"MB)"," "),$t),!Zt&&de.createElement(He.default,Nt({},Jt),de.createElement(ve.ZP,{disabled:he,className:"upload_button"},de.createElement("img",{className:"aBtn_img",src:vt}),jt),de.createElement("span",{onClick:Xt,className:"upload_text"},ue||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${rt}MB)`)))}},57444:function(En,Wt,se){"use strict";se.d(Wt,{h:function(){return ct}});var de=se(67294),He=se(11713),Be=se(22150),Ve=se(71577),ve=se(4631),we=se.n(ve),Ee=se(71749),xe=se(30483),me=Object.defineProperty,Ie=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,it=(ke,Se,Ue)=>Se in ke?me(ke,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):ke[Se]=Ue,Je=(ke,Se)=>{for(var Ue in Se||(Se={}))St.call(Se,Ue)&&it(ke,Ue,Se[Ue]);if(Oe)for(var Ue of Oe(Se))ft.call(Se,Ue)&&it(ke,Ue,Se[Ue]);return ke},Le=(ke,Se)=>Ie(ke,ot(Se));const gt=He.default.Option,qt={labelCol:{span:4},wrapperCol:{span:20}},tt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Wt.Z=({callback:ke,onCancel:Se})=>{const[Ue,je]=(0,de.useState)("python");function _t(kt){je(tt[kt][1])}function vt(kt){ke(kt)}return de.createElement(Be.default,Le(Je({},qt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:vt,style:{width:500}}),de.createElement(Be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},de.createElement(He.default,{getPopupContainer:kt=>kt.parentNode,onChange:_t},Object.keys(tt).map(kt=>de.createElement(gt,{key:kt,value:kt},tt[kt][0])))),de.createElement(Be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},de.createElement(ct,{mode:Ue})),de.createElement("div",{className:"flex-container flex-end"},de.createElement(Ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(Ve.ZP,{type:"ghost",onClick:Se},"\u53D6\u6D88")))};function ct({value:ke,onChange:Se,mode:Ue,options:je={}}){const _t=(0,de.useRef)(),[vt,kt]=(0,de.useState)();return(0,de.useEffect)(()=>{if(vt){let Xe=function(Kt){const Ot=Kt.getValue();Se&&Se(Ot)};return vt.on("change",Xe),()=>{vt.off("change",Xe)}}},[vt,Se]),(0,de.useEffect)(()=>{vt&&vt.setOption("mode",Ue)},[vt,Ue]),(0,de.useEffect)(()=>{vt&&(ke!==vt.getValue()||ke==="")&&setTimeout(()=>{vt.setValue(ke||"")},300)},[vt,ke]),(0,de.useEffect)(()=>{if(_t.current&&!vt){const Xe=we().fromTextArea(_t.current,Je({mode:Ue,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},je));kt(Xe)}},[_t.current,vt]),de.createElement("div",{className:"my-codemirror-container"},de.createElement("textarea",{ref:_t}))}},91304:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return pr}});var de=se(67294),He=se(4631),Be=se.n(He),Ve=se(91033),ve=se(71749),we=se(57341),Ee=se(82801),xe=se(88386),me=se(49047),Ie=se(80785),ot=se(35598),Oe=({value:$n="",className:qe,showTextOnly:ut,showLines:Dt,style:Vt={}})=>{const We=(0,de.useMemo)(()=>"",[$n]);return de.createElement(de.Fragment,null,de.createElement("div",{dangerouslySetInnerHTML:{__html:We}}))},St=se(67294),ft=Object.defineProperty,it=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,tt=($n,qe,ut)=>qe in $n?ft($n,qe,{enumerable:!0,configurable:!0,writable:!0,value:ut}):$n[qe]=ut,ct=($n,qe)=>{for(var ut in qe||(qe={}))gt.call(qe,ut)&&tt($n,ut,qe[ut]);if(Le)for(var ut of Le(qe))qt.call(qe,ut)&&tt($n,ut,qe[ut]);return $n},ke=($n,qe)=>it($n,Je(qe));let Se=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ue({onActionCallback:$n,title:qe,icon:ut,actionName:Dt,className:Vt="",children:We}){function pt(){$n(Dt)}return St.createElement("a",{title:qe,className:Vt,onClick:pt},St.createElement("i",{className:`${ut}`}),We)}var je=({watch:$n,showNullButton:qe,showNullProgramButton:ut,onActionCallback:Dt,fullScreen:Vt,insertTemp:We,hidetoolBar:pt,extraUse:zt})=>{const Bt=[...Se,{title:`${$n?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${$n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return St.createElement("ul",{className:"markdown-toolbar-container"},!pt&&Bt.map((en,nn)=>St.createElement("li",{key:nn},en.actionName?St.createElement(Ue,ke(ct({},en),{onActionCallback:Dt})):St.createElement("span",{className:"v-line"}))),qe?St.createElement("li",null,St.createElement(Ue,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Dt},St.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,ut?St.createElement(St.Fragment,null,St.createElement("li",null,St.createElement(Ue,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Dt},St.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),St.createElement("li",null,St.createElement(Ue,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Dt},St.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,We&&St.createElement("li",null,St.createElement(Ue,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${We}`,onActionCallback:Dt},St.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),zt&&St.createElement("li",null,zt),St.createElement("li",{className:"btn-full-screen"},St.createElement(Ue,{icon:`${Vt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Vt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Dt})))},_t=se(76621),vt=se(22150),kt=se(69677),Xe=se(71577),Kt=Object.defineProperty,Ot=Object.defineProperties,bn=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,or=($n,qe,ut)=>qe in $n?Kt($n,qe,{enumerable:!0,configurable:!0,writable:!0,value:ut}):$n[qe]=ut,Qe=($n,qe)=>{for(var ut in qe||(qe={}))sn.call(qe,ut)&&or($n,ut,qe[ut]);if(Nt)for(var ut of Nt(qe))Cn.call(qe,ut)&&or($n,ut,qe[ut]);return $n},Ce=($n,qe)=>Ot($n,bn(qe));const ht={labelCol:{span:4},wrapperCol:{span:20}};var Ut=({callback:$n,onCancel:qe})=>{function ut(Dt){$n(Dt)}return de.createElement(vt.default,Ce(Qe({},ht),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ut,style:{width:500}}),de.createElement(vt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},de.createElement(kt.default,null)),de.createElement(vt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},de.createElement(kt.default,null)),de.createElement("div",{className:"flex-container flex-end"},de.createElement(Xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(Xe.ZP,{type:"ghost",onClick:qe},"\u53D6\u6D88")))},Yt=se(57444),Ge=se(70859),rt=se(14446),jt=se(71230),_n=se(63205),rn=se(67294),$t=({callback:$n,onCancel:qe})=>{const ut=document.createElement("canvas"),Dt=ut.getContext("2d");ut.width=1e3,ut.height=800,Dt.fillStyle="#ffffff",Dt.fillRect(0,0,ut.width,ut.height);const Vt=ut.toDataURL("image/png");return rn.createElement(rt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},rn.createElement(jt.Z,{style:{height:"100vh"}},rn.createElement(_n.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Vt,visible:!0,title:String(Date.now())},onOk:We=>{$n({src:We.url})},onClose:qe})))},Zt=se(72565),yn=se(15746),ln=se(2453),Ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ue=se(67294),pe=(0,de.forwardRef)(({onCancel:$n,editImgId:qe,callback:ut},Dt)=>{let Vt=(0,de.useRef)(),We=(0,de.useRef)(),pt=(0,de.useRef)(),zt=(0,de.useRef)(!1);const Bt=(0,de.useRef)(!1);console.log("ref:",Dt);const[en,nn]=(0,de.useState)(0),[jn,Lr]=(0,de.useState)("100vh");return(0,de.useEffect)(()=>{nn(1);try{indexedDB.databases().then(rr=>{rr.forEach(tr=>indexedDB.deleteDatabase(tr.name))})}catch(rr){}},[]),(0,de.useImperativeHandle)(Dt,()=>({setHeight:Lr})),ue.createElement("div",{ref:Bt,className:"body-overflow-initial"},ue.createElement(Zt.Z,{width:"100vw",height:jn,footer:null,closable:!0,placement:"bottom",open:!!en,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Ae.drawerWrap}`,onClose:()=>{window.saveDrawData(rr=>{ut({src:`/api/attachments/${rr}`,id:rr})})},title:ue.createElement(jt.Z,{align:"middle"},ue.createElement(yn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ue.createElement(yn.Z,{onClick:()=>{Lr(jn==="60px"?"100vh":"60px")}},ue.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ue.createElement(yn.Z,{onClick:()=>{window.saveDrawData(rr=>{if(rr===null){ln.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}ln.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),ut({src:`/api/attachments/${rr}`,id:rr,disabledClose:!0})})}},ue.createElement(Xe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ue.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${qe||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:We})))}),he=se(11320),oe=se(78045),Te=se(31795);const Ye=oe.ZP.Group,Lt={margin:"0 8px"};var Rt=({callback:$n,onCancel:qe})=>{function ut(Dt){$n(Dt)}return de.createElement(vt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ut},de.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},de.createElement("span",{style:Lt},"\u5355\u5143\u683C\u6570\uFF1A"),de.createElement("span",{style:Lt},"\u884C\u6570"),de.createElement(vt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},de.createElement(Te.Z,null)),de.createElement("span",{style:Lt},"\u5217\u6570"),de.createElement(vt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},de.createElement(Te.Z,null))),de.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},de.createElement("span",{style:Lt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),de.createElement(vt.default.Item,{name:"align"},de.createElement(Ye,null,de.createElement(oe.ZP,{value:"default"},de.createElement("i",{className:"fa fa-align-justify"})),de.createElement(oe.ZP,{value:"left"},de.createElement("i",{className:"fa fa-align-left"})),de.createElement(oe.ZP,{value:"center"},de.createElement("i",{className:"fa fa-align-center"})),de.createElement(oe.ZP,{value:"right"},de.createElement("i",{className:"fa fa-align-right"}))))),de.createElement("div",{className:"flex-container flex-end"},de.createElement(Xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(Xe.ZP,{type:"ghost",onClick:qe},"\u53D6\u6D88")))},Ft=se(47897),Jt=se(61016),Xt=se.n(Jt),Rn=(0,de.forwardRef)(({use3d:$n,width:qe,height:ut,callback:Dt,showSaveButton:Vt},We)=>{const pt=(0,de.useRef)(),zt=(0,de.useRef)(),[Bt,en]=(0,de.useState)(!1),nn=(0,de.useRef)({id:pt,appName:"graphing",width:qe||1e3,height:ut||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,de.useEffect)(()=>{zt.current=new(Xt())(nn.current,!0),window.onload=function(){zt.current.inject("applet_container")}},[]);const jn=()=>{var Lr=window.ggbApplet.getPNGBase64(1,!0,72);return Dt&&Dt(Lr),Lr};return(0,de.useEffect)(()=>{nn.current.appName=Bt?"3D":"graphing",zt.current.inject("applet_container")},[Bt]),(0,de.useEffect)(()=>{en($n)},[$n]),(0,de.useImperativeHandle)(We,()=>({getImgData:jn})),de.createElement(de.Fragment,null,de.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:pt}),de.createElement(jt.Z,{align:"middle"},de.createElement(yn.Z,{flex:1},de.createElement(Ft.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Bt,onChange:Lr=>en(Lr)})),de.createElement(yn.Z,null,de.createElement(Xe.ZP,{size:"large",onClick:jn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Tt=se(36527),dn=se(25934);const cr="link",Mr="upload-image",at="add-flowchart",Ht="draw-image",Fn="add-flowchart",er="code-block",nr="add-table",Sr="------------",Tr={default:Sr,left:`:${Sr}`,center:`:${Sr}:`,right:`${Sr}:`};var Er=se(99914),Or=($n,qe,ut)=>new Promise((Dt,Vt)=>{var We=Bt=>{try{zt(ut.next(Bt))}catch(en){Vt(en)}},pt=Bt=>{try{zt(ut.throw(Bt))}catch(en){Vt(en)}},zt=Bt=>Bt.done?Dt(Bt.value):Promise.resolve(Bt.value).then(We,pt);zt((ut=ut.apply($n,qe)).next())});function Vr(){}let ur=0;const si=1e4,Li="\u2581",Bi="@\u2581\u2581@",Hi="@\u2581@",ri=` **\u6A21\u677F\u6807\u9898** \u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,yt=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Mn($n){return/^\d+$/.test($n)?`${$n}px`:$n}const Dn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",lr={[Dn+"-B"]:"bold",[Dn+"-I"]:"italic"},qn={[cr]:"\u6DFB\u52A0\u94FE\u63A5",[er]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Mr]:"\u6DFB\u52A0\u56FE\u7247",[Ht]:"\u6DFB\u52A0\u753B\u56FE",[at]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[nr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var pr=({defaultValue:$n="",onChange:qe,width:ut="100%",height:Dt=400,miniToolbar:Vt=!1,isFocus:We=!1,watch:pt,insertTemp:zt,mode:Bt="markdown",id:en="markdown-editor-id",showResizeBar:nn=!1,noStorage:jn=!1,showNullButton:Lr=!1,showNullProgramButton:rr=!1,hidetoolBar:tr=!1,fullScreen:dr=!1,onBlur:fr,onCMBeforeChange:mt,onFullScreen:st,className:Ct="",disablePaste:fn=!1,disabled:Bn=!1,disabledFill:hn=!1,placeholder:vn="",values:xn="",extraUse:Nn,onAddBlank:hr})=>{const[tn,Qr]=(0,de.useState)(null),[Ur,$i]=(0,de.useState)($n),[Ai,gi]=(0,de.useState)(pt),[qi,xi]=(0,de.useState)(dr),[li,Ni]=(0,de.useState)(""),[Gi,qr]=(0,de.useState)(0),[vi,Zi]=(0,de.useState)(Dt),[la,ta]=(0,de.useState)(!1),ii=(0,de.useRef)((0,dn.Z)()),Et=(0,de.useRef)(!1),wt=(0,de.useRef)(),[Qt,mn]=(0,de.useState)(0),[On,vr]=(0,de.useState)(0),Ir=(0,de.useRef)(),Wr=(0,de.useRef)(),Gr=(0,de.useRef)(),Hr=(0,de.useRef)(),ni=(0,de.useRef)(),yi=(0,de.useRef)(),Ar=()=>Or(void 0,null,function*(){var kn;const wn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ii.current}});(kn=wn==null?void 0:wn.attachments)!=null&&kn.length&&(console.log("cm:",tn,Ir),wn.attachments.map(Pn=>{Pn.content_type.indexOf("image")>-1?tn.replaceSelection(`![,](/api/attachments/${Pn.id}?type=${Pn.content_type})`):Pn.content_type.indexOf("video")>-1?tn.replaceSelection(``):Pn.content_type.indexOf("pdf")>-1?tn.replaceSelection(`${Pn.name}`):tn.replaceSelection(`[${Pn.name}](${he.Z.API_SERVER}/api/attachments/${Pn.id}?type=${Pn.content_type})`)}))});(0,de.useEffect)(()=>{const kn=window.scrollY||window.pageYOffset;$i(xn),tn==null||tn.setValue(xn),window.scrollTo(0,kn)},[xn]),(0,de.useEffect)(()=>{st==null||st(qi)},[qi]),(0,de.useEffect)(()=>{if(Ir.current){let kn=function(Pn,zn){var gr;if(fn){zn.preventDefault();return}const Yn=zn.clipboardData;if(Yn){const Xn=Yn.types.toString(),ir=Yn.items;if(Xn==="Files"||Yn.types.indexOf("Files")>-1){if(zn.preventDefault(),Bt=="stex")return;try{let ar=ir[1];((gr=ir[0])==null?void 0:gr.kind)==="file"&&(ar=ir[0]);const xr=ar.getAsFile(),Re=xr.name.split(".").pop();(0,Ge.I)(xr,Ke=>{var At,dt,Gt;Ke.id?((At=xr==null?void 0:xr.type)==null?void 0:At.indexOf("image"))>-1?wn.replaceSelection(``):((dt=xr==null?void 0:xr.type)==null?void 0:dt.indexOf("video"))>-1?wn.replaceSelection(``):((Gt=xr==null?void 0:xr.type)==null?void 0:Gt.indexOf("pdf"))>-1?wn.replaceSelection(`${xr.name}`):yt.includes(Re)?wn.replaceSelection(`${xr.name}`):wn.replaceSelection(`[${xr.name}](/api/attachments/${Ke.id}?type=${Ke.content_type})`):(Ke==null?void 0:Ke.status)===401&&(ln.ZP.warning((Ke==null?void 0:Ke.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(ar){ln.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const wn=Be().fromTextArea(Ir.current,{mode:Bt,lineNumbers:!Vt,lineWrapping:!0,value:$n,autoCloseTags:!rr,autoCloseBrackets:!0});return wn.on("keyup",function(Pn,zn){zn.keyCode===8&&(Pn.getValue()==""?wn.setOption("placeholder",vn):wn.setOption("placeholder",null))}),wn.on("keydown",function(Pn,zn){if(zn.keyCode===8){var gr=Ti(Pn);gr&&zn.preventDefault()}}),We&&wn.focus(),wn.on("paste",kn),wn.on("dragleave",function(Pn,zn){Wr.current.classList.remove("mouse-hover-md")}),Bn&&wn.on("beforeChange",function(Pn,zn){(zn.origin==="paste"||zn.origin==="+input")&&zn.cancel()}),Qr(wn),()=>{wn.off("paste",kn)}}},[]);const pi=(0,de.useCallback)(()=>{if(Wr.current)try{}catch(kn){console.log(kn,"---- to set md editor body height")}},[vi,Wr,qi]);(0,de.useEffect)(()=>{function kn(){let wn=new Ve.Z(Pn=>{for(let zn of Pn)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&(pi(),tn.setSize("100%","100%"),tn.refresh())});return wn.observe(Ir.current.parentElement),wn}if(tn){const wn=kn();return()=>{var Pn,zn;(Pn=Ir.current)!=null&&Pn.parentElement&&wn.unobserve((zn=Ir.current)==null?void 0:zn.parentElement)}}},[tn,pi]),(0,de.useEffect)(()=>{if(tn){let kn=[];for(const[wn,Pn]of Object.entries(lr)){let zn={[wn]:()=>{Ei(Pn)}};kn.push(zn),tn.addKeyMap(zn)}return wt.current=setInterval(()=>{Et.current&&Ar()},4e3),()=>{clearInterval(wt.current);for(let wn of kn)tn.removeKeyMap(wn)}}},[tn]),(0,de.useEffect)(()=>{dr!==qi&&xi(dr)},[dr]),(0,Er.Z)(()=>{if(!jn&&Gi>0){let kn=new Date().getTime(),wn=window.sessionStorage.getItem(en);kn>=Gi+si&&(!wn||wn!==Ur)&&(window.sessionStorage.setItem(en,Ur),ta(!0))}},si),(0,de.useEffect)(()=>{gi(pt)},[tn,pt]),(0,de.useEffect)(()=>{tn&&We&&tn.focus()},[tn,We]),(0,de.useEffect)(()=>{if(Ai&&tn){let kn=function(Pn){let zn=Pn.target;if(Hr.current){let gr=zn.scrollTop/zn.scrollHeight;Hr.current.scrollTop=Hr.current.scrollHeight*gr}};const wn=tn.getScrollerElement();return wn.addEventListener("scroll",kn),()=>{wn.removeEventListener("scroll",kn)}}},[tn,Ai]),(0,de.useEffect)(()=>{if(tn&&mt){let kn=function(wn,Pn){mt(wn,Pn)};return tn.on("beforeChange",kn),()=>{tn.off("beforeChange",kn)}}},[tn,mt]),(0,de.useEffect)(()=>{if(tn&&fr){let kn=function(){fr(tn.getValue())};return tn.on("blur",kn),()=>{tn.off("blur",kn)}}},[tn,fr]);function Ti(kn,wn){var Pn=kn.getDoc(),zn=Pn.getCursor(),gr=Pn.getLine(zn.line),Yn=gr.charAt(zn.ch-1),Xn=gr.lastIndexOf("@\u2581@",zn.ch),ir=gr.lastIndexOf("@\u2581\u2581@",zn.ch),ar=Xn>ir?Xn:ir,xr=Xn>ir?3:4;if(Bi.indexOf(Yn)===-1)return null;if(console.log("change1:",wn,kn,gr,zn,ar,Xn,ir,Yn),ar>=0&&zn.ch-ar<5){var Re=ar+xr;return Pn.replaceRange("",{line:zn.line,ch:ar},{line:zn.line,ch:Re}),{line:zn.line,ch:Re}}return null}(0,de.useEffect)(()=>{if(tn){let kn=function(wn,Pn){const zn=wn.getValue();$i(zn),qr(new Date().getTime()),wn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),qe&&(rr?qe(zn,an(zn)):qe(zn))};return tn.on("change",kn),()=>{tn.off("change",kn)}}},[tn,qe]),(0,de.useEffect)(()=>{if(tn)if($n==null)tn.setValue(""),$i("");else{const kn=window.scrollY||window.pageYOffset;$n!==tn.getValue()&&(tn.setValue($n),$i($n),tn.setCursor(Bn?1:tn.lineCount(),0),window.scrollTo(0,kn))}},[tn,$n]);const Ei=(0,de.useCallback)(kn=>{const wn=tn.getCursor(),Pn=tn.getSelection();let zn=Pn.split(` `);switch(kn){case"bold":return tn.replaceSelection("**"+Pn+"**"),Pn===""&&tn.setCursor(wn.line,wn.ch+2),tn.focus();case"italic":return tn.replaceSelection("*"+Pn+"*"),Pn===""&&tn.setCursor(wn.line,wn.ch+1),tn.focus();case"code":return tn.replaceSelection("`"+Pn+"`"),Pn===""&&tn.setCursor(wn.line,wn.ch+1),tn.focus();case"inline-latex":return Ni("inline-latex"),tn.focus();case"latex":return tn.replaceSelection("```latex\n"+Pn+"\n```"),tn.setCursor(wn.line+1,Pn.length+1),tn.focus();case"line-break":return tn.replaceSelection(`
`),tn.focus();case"list-ul":return Pn===""?tn.replaceSelection("- "+Pn):tn.replaceSelection(zn.map(gr=>gr===""?"":`- ${gr}`).join(` `)),tn.focus();case"list-ol":return Pn===""?tn.replaceSelection("1. "+Pn):tn.replaceSelection(zn.map((gr,Yn)=>gr===""?"":`${Yn+1}. ${gr}`).join(` `)),tn.focus();case"add-null-ch":hr==null||hr();return;case"add-signal":return Pn===""&&tn.setCursor(wn.line,wn.ch),tn.replaceSelection(Hi),tn.focus();case"add-multiple":return Pn===""&&tn.setCursor(wn.line,wn.ch),tn.replaceSelection(Bi),tn.focus();case"inster-template-1":return Pn===""&&tn.setCursor(wn.line,wn.ch),tn.replaceSelection(ri),tn.focus();case"eraser":return tn.setValue(""),tn.focus();case"trigger-watch":return gi(!Ai),tn.focus();case"trigger-full-screen":return xi(!qi),tn.focus();case cr:Ni(cr);return;case er:Ni(er);return;case Mr:Ni(Mr);return;case Ht:Ni(Ht);return;case"maths-latex":Ni("maths-latex");return;case at:ni.current="",sessionStorage.removeItem("file_id"),Ni(at);return;case nr:Ni(nr);return;default:throw new Error}},[tn,Ai,qi]),De=(0,de.useCallback)((kn,wn)=>{var Pn,zn,gr,Yn,Xn,ir;Ni("");const{src:ar,alt:xr,id:Re}=kn||{};switch(li){case cr:const{title:pn,link:Sn}=kn;return tn.replaceSelection(`[${pn}](${Sn})`),tn.focus();case er:const{language:Kn,content:Tn}=kn;return tn.replaceSelection(["```"+Kn,Tn,"```"].join(` `)),tn.focus();case"maths-latex":for(var Ke=atob(kn),At=new Uint8Array(Ke.length),dt=0;dt{Yr.id?tn.replaceSelection(`![,](/api/attachments/${Yr.id}?type=${Yr.content_type})`):(Yr==null?void 0:Yr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":tn.replaceSelection("`$$"+kn+"$$`");break;case Fn:if(!Re)return;tn.focus(),tn.getValue().indexOf(ar)===-1?tn.replaceSelection(`
${xr||
`):document.getElementById(Re).src=he.Z.API_SERVER+ar+"?t="+Date.now();try{setTimeout(()=>{fr(tn.getValue())},100)}catch(Yr){}break;case Mr:case Ht:const cn=wn,Wn=(gr=(zn=(Pn=cn==null?void 0:cn.name)==null?void 0:Pn.split("."))==null?void 0:zn.pop)==null?void 0:gr.call(zn);return((Yn=cn==null?void 0:cn.type)==null?void 0:Yn.indexOf("image"))>-1||!(cn!=null&&cn.type)?cn!=null&&cn.align||cn!=null&&cn.width?tn.replaceSelection(`

${xr||

`):tn.replaceSelection(`${xr||`):((Xn=cn==null?void 0:cn.type)==null?void 0:Xn.indexOf("video"))>-1?tn.replaceSelection(``):((ir=cn==null?void 0:cn.type)==null?void 0:ir.indexOf("pdf"))>-1?tn.replaceSelection(`${cn.name}`):yt.includes(Wn)?tn.replaceSelection(`${cn.name}`):tn.replaceSelection(`[${cn.name}](${ar})`),tn.focus();case nr:const{row:Zn,col:wr,align:Un}=kn;let Rr=` `;for(let Yr=0;Yr{switch(li){case cr:return de.createElement(Ut,{callback:De,onCancel:ze});case er:return de.createElement(Yt.Z,{callback:De,onCancel:ze});case Mr:return de.createElement(Ge.Z,{callback:De,onCancel:ze});case at:return de.createElement(pe,{editImgId:ni.current,callback:De,onCancel:ze});case nr:return de.createElement(Rt,{callback:De,onCancel:ze});case"maths-latex":return de.createElement(Rn,{showSaveButton:!0,callback:De});case"inline-latex":return de.createElement(Tt.Z,{showSaveButton:!0,callback:De});default:return null}},[li]);function ze(){Ni("")}(0,de.useEffect)(()=>{if(Gr.current){let kn=function(Xn){gr=!0,Yn=Xn.pageY},wn=function(){gr=!1},Pn=function(Xn){if(gr){let ir=Xn.pageY-Yn;ir<0&&(ir=0),ir>300&&(ir=300);let ar=Dt+ir+"px";Zi(ar)}},zn=Gr.current,gr=!1,Yn=0;return zn.addEventListener("mousedown",kn),document.addEventListener("mousemove",Pn),document.addEventListener("mouseup",wn),()=>{zn.removeEventListener("mousedown",kn),document.removeEventListener("mousemove",Pn),document.removeEventListener("mouseup",wn)}}},[tn,Gr]),(0,de.useEffect)(()=>{Zi(Dt)},[Dt]);const Ze=Mn(ut),nt=Mn(vi),lt={width:Ze,height:nt},Mt=(0,de.useMemo)(()=>{if(Gi){let kn=new Date(Gi),wn=kn.getHours(),Pn=kn.getMinutes(),zn=kn.getSeconds();return wn=wn<10?"0"+wn:wn,Pn=Pn<10?"0"+Pn:Pn,zn=zn<10?"0"+zn:zn,`${wn}:${Pn}:${zn}`}return 0},[Gi]),an=kn=>{const wn=[];if(rr){let Pn=-1;kn=kn.replace(/(@▁▁@|@▁@)/g,function(zn,gr,Yn){wn.push({multiLine:zn!==Hi})})}return wn};function un(){window.sessionStorage.removeItem(en),ta(!1),qr(0)}function Jn(){ta(!1),qr(0),tn.setValue(window.sessionStorage.getItem(en))}(0,de.useEffect)(()=>{qn[li]&&li!==Ht&&li!==at&&setTimeout(()=>{const kn=document.getElementsByClassName("markdown-popup-form")[0],wn=window.innerWidth/2-kn.offsetWidth/2,Pn=window.innerHeight/2-kn.offsetHeight/2;mn(wn),vr(Pn)},0)},[li]);const br=kn=>{kn.preventDefault();const wn=kn.clientX-Qt,Pn=kn.clientY-On;document.body.onmousemove=zn=>{let gr=zn.clientX-wn,Yn=zn.clientY-Pn;const Xn=document.getElementsByClassName("markdown-popup-form")[0],ir=window.innerWidth-Xn.offsetWidth,ar=window.innerHeight-Xn.offsetHeight;gr=Math.max(0,Math.min(gr,ir)),Yn=Math.max(0,Math.min(Yn,ar)),Vn(zn.clientX,zn.clientY,wn,Pn)&&(mn(gr),vr(Yn))},document.body.onmouseup=function(){document.body.onmousemove=null}},Vn=(kn,wn,Pn,zn)=>{const gr=document.body.clientHeight,Yn=document.body.clientWidth;return kn<20&&Pn>kn||kn>Yn-20&&Pnwn||wn>gr-20&&zn{var wn;ni.current=kn,(wn=yi.current)==null||wn.setHeight("100vh"),setTimeout(()=>{Ni("add-flowchart")},150)}})):null))),nn?de.createElement("a",{ref:Gr,className:"editor-resize"}):null,li===Ht&&de.createElement($t,{callback:De,onCancel:ze}),li===at&&de.createElement(pe,{ref:yi,editImgId:ni.current,callback:De,onCancel:ze}),de.createElement(_t.Z,null,qn[li]&&li!==Ht&&li!==at?de.createElement(rt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Qt,top:On},title:de.createElement("div",{style:{cursor:"move"},onMouseDown:br},qn[li]),open:!0,onCancel:ze,footer:null,destroyOnClose:!0,width:li===at?"1200px":null,height:li===at?"80vh":null,className:"markdown-popup-form"},Fe):null))}},70859:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Ue},I:function(){return _t}});var de=se(22150),He=se(2453),Be=se(69677),Ve=se(93421),ve=se(31795),we=se(78045),Ee=se(71577),xe=se(15476),me=se(67294),Ie=se(52262),ot=se(67294),Oe=Object.defineProperty,St=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,gt=(vt,kt,Xe)=>kt in vt?Oe(vt,kt,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):vt[kt]=Xe,qt=(vt,kt)=>{for(var Xe in kt||(kt={}))Je.call(kt,Xe)&>(vt,Xe,kt[Xe]);if(it)for(var Xe of it(kt))Le.call(kt,Xe)&>(vt,Xe,kt[Xe]);return vt},tt=(vt,kt)=>St(vt,ft(kt));const{useForm:ct}=de.default,ke={width:280,marginRight:10},Se={labelCol:{span:5},wrapperCol:{span:19}};var Ue=({callback:vt,onCancel:kt})=>{const[Xe]=ct();let Kt=(0,me.useRef)();function Ot(sn){Kt.current.width=Xe.getFieldValue("width"),Kt.current.align=Xe.getFieldValue("align"),vt(sn,Kt.current)}function bn(sn,Cn){if(sn.status===-1){He.ZP.error(sn.message);return}Xe.setFieldsValue({src:`/api/attachments/${sn.id}`,type:Cn.type})}function Nt(sn){let Cn=sn.target.files[0];Kt.current=Cn,_t(Cn,bn)}return ot.createElement(de.default,tt(qt({form:Xe},Se),{className:"upload-image-panel",onFinish:Ot,style:{width:470,overflow:"hidden"}}),ot.createElement(de.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ot.createElement("div",{className:"flex-container"},ot.createElement(de.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ot.createElement(Be.default,{style:ke})),ot.createElement(je,{onFileChange:Nt}))),ot.createElement(de.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ot.createElement(Be.default,{style:{width:264}})),ot.createElement(de.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ot.createElement(Ve.Z,null,ot.createElement(de.default.Item,{name:"width",style:{margin:0}},ot.createElement(ve.Z,{style:{width:264}})),ot.createElement("span",{className:"ml8"},"%"))),ot.createElement(de.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ot.createElement(we.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ot.createElement("aside",null,ot.createElement(de.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ot.createElement(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ot.createElement(Ee.ZP,{type:"default",onClick:kt},"\u53D6\u6D88"))))};function je({onFileChange:vt}){return ot.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ot.createElement("input",{type:"file",onChange:vt}))}function _t(vt,kt){if(!vt)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ie.bg)())throw He.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Xe=new FormData;Xe.append("editormd-image-file",vt),Xe.append("file_param_name","editormd-image-file"),Xe.append("byxhr","true");var Kt=new window.XMLHttpRequest;Kt.withCredentials=!0,Kt.addEventListener("load",function(Ot){kt(JSON.parse(Ot.target.responseText),vt)},!1),Kt.addEventListener("error",function(Ot){console.error(Ot)},!1),Kt.open("POST",`${xe.KI}/api/attachments.json`),Kt.send(Xe)}},76621:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Be}});var de=se(67294),He=se(73935);class Be extends de.Component{constructor(ve){super(ve);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,He.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return He}});var de=se(67294);function He(Be,Ve){const ve=(0,de.useRef)();(0,de.useEffect)(()=>{ve.current=Be}),(0,de.useEffect)(()=>{function we(){ve.current()}if(Ve!==null){let Ee=setInterval(we,Ve);return()=>clearInterval(Ee)}},[Ve])}},4440:function(En,Wt,se){"use strict";se.d(Wt,{$J:function(){return Be},JZ:function(){return ve},bN:function(){return Ee},jP:function(){return we},rO:function(){return Ve}});var de=se(33170),He=(xe,me,Ie)=>new Promise((ot,Oe)=>{var St=Je=>{try{it(Ie.next(Je))}catch(Le){Oe(Le)}},ft=Je=>{try{it(Ie.throw(Je))}catch(Le){Oe(Le)}},it=Je=>Je.done?ot(Je.value):Promise.resolve(Je.value).then(St,ft);it((Ie=Ie.apply(xe,me)).next())});function Be(xe){return(0,de.U2)(`libraries/${xe}.json`)}function Ve(xe){return(0,de.U2)("library_tags.json",xe)}function ve(xe){return He(this,null,function*(){return(yield(0,de.IV)(`attachments/${xe}.json`)).status===0})}function we(xe){return(0,de.v_)("libraries.json",xe)}function Ee(xe,me){return(0,de.gz)(`libraries/${xe}.json`,me)}},57838:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return He}});var de=se(67294);function He(){const[,Be]=de.useReducer(Ve=>Ve+1,0);return Be}},9708:function(En,Wt,se){"use strict";se.d(Wt,{F:function(){return ve},Z:function(){return Ve}});var de=se(94184),He=se.n(de);const Be=null;function Ve(we,Ee,xe){return He()({[`${we}-status-success`]:Ee==="success",[`${we}-status-warning`]:Ee==="warning",[`${we}-status-error`]:Ee==="error",[`${we}-status-validating`]:Ee==="validating",[`${we}-has-feedback`]:xe})}const ve=(we,Ee)=>Ee||we},84567:function(En,Wt,se){"use strict";se.d(Wt,{default:function(){return Ue}});var de=se(94184),He=se.n(de),Be=se(95860),Ve=se(67294),ve=se(53124),we=se(98866),Ee=se(65223),me=Ve.createContext(null),Ie=se(63185),ot=se(45353),Oe=se(92429),St=function(je,_t){var vt={};for(var kt in je)Object.prototype.hasOwnProperty.call(je,kt)&&_t.indexOf(kt)<0&&(vt[kt]=je[kt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,kt=Object.getOwnPropertySymbols(je);Xe{var vt;const{prefixCls:kt,className:Xe,rootClassName:Kt,children:Ot,indeterminate:bn=!1,style:Nt,onMouseEnter:sn,onMouseLeave:Cn,skipGroup:or=!1,disabled:Qe}=je,Ce=St(je,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ht,direction:Ut,checkbox:Yt}=Ve.useContext(ve.E_),Ge=Ve.useContext(me),{isFormItemInput:rt}=Ve.useContext(Ee.aM),jt=Ve.useContext(we.Z),_n=(vt=(Ge==null?void 0:Ge.disabled)||Qe)!==null&&vt!==void 0?vt:jt,rn=Ve.useRef(Ce.value);Ve.useEffect(()=>{Ge==null||Ge.registerValue(Ce.value)},[]),Ve.useEffect(()=>{if(!or)return Ce.value!==rn.current&&(Ge==null||Ge.cancelValue(rn.current),Ge==null||Ge.registerValue(Ce.value),rn.current=Ce.value),()=>Ge==null?void 0:Ge.cancelValue(Ce.value)},[Ce.value]);const $t=ht("checkbox",kt),[Zt,yn]=(0,Ie.ZP)($t),ln=Object.assign({},Ce);Ge&&!or&&(ln.onChange=function(){Ce.onChange&&Ce.onChange.apply(Ce,arguments),Ge.toggleOption&&Ge.toggleOption({label:Ot,value:Ce.value})},ln.name=Ge.name,ln.checked=Ge.value.includes(Ce.value));const Ae=He()(`${$t}-wrapper`,{[`${$t}-rtl`]:Ut==="rtl",[`${$t}-wrapper-checked`]:ln.checked,[`${$t}-wrapper-disabled`]:_n,[`${$t}-wrapper-in-form-item`]:rt},Yt==null?void 0:Yt.className,Xe,Kt,yn),ue=He()({[`${$t}-indeterminate`]:bn},Oe.A,yn),le=bn?"mixed":void 0;return Zt(Ve.createElement(ot.Z,{component:"Checkbox",disabled:_n},Ve.createElement("label",{className:Ae,style:Object.assign(Object.assign({},Yt==null?void 0:Yt.style),Nt),onMouseEnter:sn,onMouseLeave:Cn},Ve.createElement(Be.Z,Object.assign({"aria-checked":le},ln,{prefixCls:$t,className:ue,disabled:_n,ref:_t})),Ot!==void 0&&Ve.createElement("span",null,Ot))))};var Je=Ve.forwardRef(ft),Le=se(74902),gt=se(10366),qt=function(je,_t){var vt={};for(var kt in je)Object.prototype.hasOwnProperty.call(je,kt)&&_t.indexOf(kt)<0&&(vt[kt]=je[kt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,kt=Object.getOwnPropertySymbols(je);Xe{const{defaultValue:vt,children:kt,options:Xe=[],prefixCls:Kt,className:Ot,rootClassName:bn,style:Nt,onChange:sn}=je,Cn=qt(je,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:or,direction:Qe}=Ve.useContext(ve.E_),[Ce,ht]=Ve.useState(Cn.value||vt||[]),[Ut,Yt]=Ve.useState([]);Ve.useEffect(()=>{"value"in Cn&&ht(Cn.value||[])},[Cn.value]);const Ge=Ve.useMemo(()=>Xe.map(pe=>typeof pe=="string"||typeof pe=="number"?{label:pe,value:pe}:pe),[Xe]),rt=pe=>{Yt(he=>he.filter(oe=>oe!==pe))},jt=pe=>{Yt(he=>[].concat((0,Le.Z)(he),[pe]))},_n=pe=>{const he=Ce.indexOf(pe.value),oe=(0,Le.Z)(Ce);he===-1?oe.push(pe.value):oe.splice(he,1),"value"in Cn||ht(oe),sn==null||sn(oe.filter(Te=>Ut.includes(Te)).sort((Te,Ye)=>{const Lt=Ge.findIndex(Ft=>Ft.value===Te),Rt=Ge.findIndex(Ft=>Ft.value===Ye);return Lt-Rt}))},rn=or("checkbox",Kt),$t=`${rn}-group`,[Zt,yn]=(0,Ie.ZP)(rn),ln=(0,gt.Z)(Cn,["value","disabled"]),Ae=Xe.length?Ge.map(pe=>Ve.createElement(Je,{prefixCls:rn,key:pe.value.toString(),disabled:"disabled"in pe?pe.disabled:Cn.disabled,value:pe.value,checked:Ce.includes(pe.value),onChange:pe.onChange,className:`${$t}-item`,style:pe.style,title:pe.title},pe.label)):kt,ue={toggleOption:_n,value:Ce,disabled:Cn.disabled,name:Cn.name,registerValue:jt,cancelValue:rt},le=He()($t,{[`${$t}-rtl`]:Qe==="rtl"},Ot,bn,yn);return Zt(Ve.createElement("div",Object.assign({className:le,style:Nt},ln,{ref:_t}),Ve.createElement(me.Provider,{value:ue},Ae)))},ct=Ve.forwardRef(tt);var ke=Ve.memo(ct);const Se=Je;Se.Group=ke,Se.__ANT_CHECKBOX=!0;var Ue=Se},63185:function(En,Wt,se){"use strict";se.d(Wt,{C2:function(){return ve}});var de=se(14747),He=se(45503),Be=se(67968);const Ve=we=>{const{checkboxCls:Ee}=we,xe=`${Ee}-wrapper`;return[{[`${Ee}-group`]:Object.assign(Object.assign({},(0,de.Wf)(we)),{display:"inline-flex",flexWrap:"wrap",columnGap:we.marginXS,[`> ${we.antCls}-row`]:{flex:1}}),[xe]:Object.assign(Object.assign({},(0,de.Wf)(we)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${xe}`]:{marginInlineStart:0},[`&${xe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ee]:Object.assign(Object.assign({},(0,de.Wf)(we)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:we.borderRadiusSM,alignSelf:"center",[`${Ee}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ee}-inner`]:Object.assign({},(0,de.oN)(we))},[`${Ee}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:we.checkboxSize,height:we.checkboxSize,direction:"ltr",backgroundColor:we.colorBgContainer,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,borderCollapse:"separate",transition:`all ${we.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:we.checkboxSize/14*5,height:we.checkboxSize/14*8,border:`${we.lineWidthBold}px solid ${we.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${we.motionDurationFast} ${we.motionEaseInBack}, opacity ${we.motionDurationFast}`}},"& + span":{paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS}})},{[` ${xe}:not(${xe}-disabled), ${Ee}:not(${Ee}-disabled) `]:{[`&:hover ${Ee}-inner`]:{borderColor:we.colorPrimary}},[`${xe}:not(${xe}-disabled)`]:{[`&:hover ${Ee}-checked:not(${Ee}-disabled) ${Ee}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ee}-checked:not(${Ee}-disabled):after`]:{borderColor:we.colorPrimaryHover}}},{[`${Ee}-checked`]:{[`${Ee}-inner`]:{backgroundColor:we.colorPrimary,borderColor:we.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${we.motionDurationMid} ${we.motionEaseOutBack} ${we.motionDurationFast}`}}},[` ${xe}-checked:not(${xe}-disabled), ${Ee}-checked:not(${Ee}-disabled) `]:{[`&:hover ${Ee}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"}}},{[Ee]:{"&-indeterminate":{[`${Ee}-inner`]:{backgroundColor:we.colorBgContainer,borderColor:we.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:we.fontSizeLG/2,height:we.fontSizeLG/2,backgroundColor:we.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${xe}-disabled`]:{cursor:"not-allowed"},[`${Ee}-disabled`]:{[`&, ${Ee}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ee}-inner`]:{background:we.colorBgContainerDisabled,borderColor:we.colorBorder,"&:after":{borderColor:we.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:we.colorTextDisabled},[`&${Ee}-indeterminate ${Ee}-inner::after`]:{background:we.colorTextDisabled}}}]};function ve(we,Ee){const xe=(0,He.TS)(Ee,{checkboxCls:`.${we}`,checkboxSize:Ee.controlInteractiveSize});return[Ve(xe)]}Wt.ZP=(0,Be.Z)("Checkbox",(we,Ee)=>{let{prefixCls:xe}=Ee;return[ve(xe,we)]})},88258:function(En,Wt,se){"use strict";var de=se(67294),He=se(53124),Be=se(32983);const Ve=ve=>{const{componentName:we}=ve,{getPrefixCls:Ee}=(0,de.useContext)(He.E_),xe=Ee("empty");switch(we){case"Table":case"List":return de.createElement(Be.Z,{image:Be.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return de.createElement(Be.Z,{image:Be.Z.PRESENTED_IMAGE_SIMPLE,className:`${xe}-small`});default:return de.createElement(Be.Z,null)}};Wt.Z=Ve},72565:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return ii}});var de=se(94184),He=se.n(de),Be=se(1413),Ve=se(97685),ve=se(67294),we=se(73935);function Ee(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var xe={};function me(Et,wt){}function Ie(Et,wt){}function ot(){xe={}}function Oe(Et,wt,Qt){!wt&&!xe[Qt]&&(Et(!1,Qt),xe[Qt]=!0)}function St(Et,wt){Oe(me,Et,wt)}function ft(Et,wt){Oe(Ie,Et,wt)}var it=null,Je=se(71002),Le=se(18459);function gt(Et,wt,Qt){var mn=ve.useRef({});return(!("value"in mn.current)||Qt(mn.current.condition,wt))&&(mn.current.value=Et(),mn.current.condition=wt),mn.current.value}function qt(Et,wt){typeof Et=="function"?Et(wt):(0,Je.Z)(Et)==="object"&&Et&&"current"in Et&&(Et.current=wt)}function tt(){for(var Et=arguments.length,wt=new Array(Et),Qt=0;Qt0&&arguments[0]!==void 0?arguments[0]:{},wt=Et.mark;return wt?wt.startsWith("data-")?wt:"data-".concat(wt):Nt}function or(Et){if(Et.attachTo)return Et.attachTo;var wt=document.querySelector("head");return wt||document.body}function Qe(Et){return Et==="queue"?"prependQueue":Et?"prepend":"append"}function Ce(Et){return Array.from((sn.get(Et)||Et).children).filter(function(wt){return wt.tagName==="STYLE"})}function ht(Et){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ee())return null;var Qt=wt.csp,mn=wt.prepend,On=document.createElement("style");On.setAttribute(bn,Qe(mn)),Qt!=null&&Qt.nonce&&(On.nonce=Qt==null?void 0:Qt.nonce),On.innerHTML=Et;var vr=or(wt),Ir=vr.firstChild;if(mn){if(mn==="queue"){var Wr=Ce(vr).filter(function(Gr){return["prepend","prependQueue"].includes(Gr.getAttribute(bn))});if(Wr.length)return vr.insertBefore(On,Wr[Wr.length-1].nextSibling),On}vr.insertBefore(On,Ir)}else vr.appendChild(On);return On}function Ut(Et){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qt=or(wt);return Ce(Qt).find(function(mn){return mn.getAttribute(Cn(wt))===Et})}function Yt(Et){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qt=Ut(Et,wt);if(Qt){var mn=or(wt);mn.removeChild(Qt)}}function Ge(Et,wt){var Qt=sn.get(Et);if(!Qt||!Ot(document,Qt)){var mn=ht("",wt),On=mn.parentNode;sn.set(Et,On),Et.removeChild(mn)}}function rt(){sn.clear()}function jt(Et,wt){var Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mn=or(Qt);Ge(mn,Qt);var On=Ut(wt,Qt);if(On){var vr,Ir;if((vr=Qt.csp)!==null&&vr!==void 0&&vr.nonce&&On.nonce!==((Ir=Qt.csp)===null||Ir===void 0?void 0:Ir.nonce)){var Wr;On.nonce=(Wr=Qt.csp)===null||Wr===void 0?void 0:Wr.nonce}return On.innerHTML!==Et&&(On.innerHTML=Et),On}var Gr=ht(Et,Qt);return Gr.setAttribute(Cn(Qt),wt),Gr}var _n;function rn(Et){if(typeof document=="undefined")return 0;if(Et||_n===void 0){var wt=document.createElement("div");wt.style.width="100%",wt.style.height="200px";var Qt=document.createElement("div"),mn=Qt.style;mn.position="absolute",mn.top="0",mn.left="0",mn.pointerEvents="none",mn.visibility="hidden",mn.width="200px",mn.height="150px",mn.overflow="hidden",Qt.appendChild(wt),document.body.appendChild(Qt);var On=wt.offsetWidth;Qt.style.overflow="scroll";var vr=wt.offsetWidth;On===vr&&(vr=Qt.clientWidth),document.body.removeChild(Qt),_n=On-vr}return _n}function $t(Et){var wt=Et.match(/^(.*)px$/),Qt=Number(wt==null?void 0:wt[1]);return Number.isNaN(Qt)?rn():Qt}function Zt(Et){if(typeof document=="undefined"||!Et||!(Et instanceof Element))return{width:0,height:0};var wt=getComputedStyle(Et,"::-webkit-scrollbar"),Qt=wt.width,mn=wt.height;return{width:$t(Qt),height:$t(mn)}}function yn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ln="rc-util-locker-".concat(Date.now()),Ae=0;function ue(Et){var wt=!!Et,Qt=ve.useState(function(){return Ae+=1,"".concat(ln,"_").concat(Ae)}),mn=(0,Ve.Z)(Qt,1),On=mn[0];vt(function(){if(wt){var vr=Zt(document.body).width,Ir=yn();jt(` html body { overflow-y: hidden; `.concat(Ir?"width: calc(100% - ".concat(vr,"px);"):"",` }`),On)}else Yt(On);return function(){Yt(On)}},[wt,On])}var le=!1;function pe(Et){return typeof Et=="boolean"&&(le=Et),le}var he=function(wt){return wt===!1?!1:!Ee()||!wt?null:typeof wt=="string"?document.querySelector(wt):typeof wt=="function"?wt():wt},oe=ve.forwardRef(function(Et,wt){var Qt=Et.open,mn=Et.autoLock,On=Et.getContainer,vr=Et.debug,Ir=Et.autoDestroy,Wr=Ir===void 0?!0:Ir,Gr=Et.children,Hr=ve.useState(Qt),ni=(0,Ve.Z)(Hr,2),yi=ni[0],Ar=ni[1],pi=yi||Qt;ve.useEffect(function(){(Wr||Qt)&&Ar(Qt)},[Qt,Wr]);var Ti=ve.useState(function(){return he(On)}),Ei=(0,Ve.Z)(Ti,2),De=Ei[0],Fe=Ei[1];ve.useEffect(function(){var kn=he(On);Fe(kn!=null?kn:null)});var ze=Kt(pi&&!De,vr),Ze=(0,Ve.Z)(ze,2),nt=Ze[0],lt=Ze[1],Mt=De!=null?De:nt;ue(mn&&Qt&&Ee()&&(Mt===nt||Mt===document.body));var an=null;if(Gr&&ke(Gr)&&wt){var un=Gr;an=un.ref}var Jn=ct(an,wt);if(!pi||!Ee()||De===void 0)return null;var br=Mt===!1||pe(),Vn=Gr;return wt&&(Vn=ve.cloneElement(Gr,{ref:Jn})),ve.createElement(Ue.Provider,{value:lt},br?Vn:(0,we.createPortal)(Vn,Mt))}),Te=oe,Ye=Te;function Lt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Rt=Lt()?ve.useLayoutEffect:ve.useEffect,Ft=function(wt,Qt){var mn=ve.useRef(!0);Rt(function(){return wt(mn.current)},Qt),Rt(function(){return mn.current=!1,function(){mn.current=!0}},[])},Jt=function(wt,Qt){Ft(function(mn){if(!mn)return wt()},Qt)},Xt=Ft,Hn=ve.createContext(null),Rn=ve.createContext({}),Tt=Hn,dn=se(4942),cr=se(87462),Mr=se(62874),at={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(wt){var Qt=wt.keyCode;if(wt.altKey&&!wt.ctrlKey||wt.metaKey||Qt>=at.F1&&Qt<=at.F12)return!1;switch(Qt){case at.ALT:case at.CAPS_LOCK:case at.CONTEXT_MENU:case at.CTRL:case at.DOWN:case at.END:case at.ESC:case at.HOME:case at.INSERT:case at.LEFT:case at.MAC_FF_META:case at.META:case at.NUMLOCK:case at.NUM_CENTER:case at.PAGE_DOWN:case at.PAGE_UP:case at.PAUSE:case at.PRINT_SCREEN:case at.RIGHT:case at.SHIFT:case at.UP:case at.WIN_KEY:case at.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(wt){if(wt>=at.ZERO&&wt<=at.NINE||wt>=at.NUM_ZERO&&wt<=at.NUM_MULTIPLY||wt>=at.A&&wt<=at.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&wt===0)return!0;switch(wt){case at.SPACE:case at.QUESTION_MARK:case at.NUM_PLUS:case at.NUM_MINUS:case at.NUM_PERIOD:case at.NUM_DIVISION:case at.SEMICOLON:case at.DASH:case at.EQUALS:case at.COMMA:case at.PERIOD:case at.SLASH:case at.APOSTROPHE:case at.SINGLE_QUOTE:case at.OPEN_SQUARE_BRACKET:case at.BACKSLASH:case at.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ht=at,Fn=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,er=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,nr="".concat(Fn," ").concat(er).split(/[\s\n]+/),Sr="aria-",Tr="data-";function Er(Et,wt){return Et.indexOf(wt)===0}function Or(Et){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qt;wt===!1?Qt={aria:!0,data:!0,attr:!0}:wt===!0?Qt={aria:!0}:Qt=(0,Be.Z)({},wt);var mn={};return Object.keys(Et).forEach(function(On){(Qt.aria&&(On==="role"||Er(On,Sr))||Qt.data&&Er(On,Tr)||Qt.attr&&nr.includes(On))&&(mn[On]=Et[On])}),mn}function Vr(Et){var wt=React.useRef();wt.current=Et;var Qt=React.useCallback(function(){for(var mn,On=arguments.length,vr=new Array(On),Ir=0;Ir3&&arguments[3]!==void 0?arguments[3]:!1;return wt.length&&mn&&Qt===void 0&&!get(Et,wt.slice(0,-1))?Et:lr(Et,wt,Qt,mn)}function pr(Et){return _typeof(Et)==="object"&&Et!==null&&Object.getPrototypeOf(Et)===Object.prototype}function $n(Et){return Array.isArray(Et)?[]:{}}var qe=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ut(){for(var Et=arguments.length,wt=new Array(Et),Qt=0;Qt{const{prefixCls:wt,title:Qt,footer:mn,extra:On,closeIcon:vr,closable:Ir,onClose:Wr,headerStyle:Gr,drawerStyle:Hr,bodyStyle:ni,footerStyle:yi,children:Ar}=Et,pi=ve.useCallback(ze=>ve.createElement("button",{type:"button",onClick:Wr,"aria-label":"Close",className:`${wt}-close`},ze),[Wr]),[Ti,Ei]=(0,tn.Z)(Ir,vr,pi,void 0,!0),De=ve.useMemo(()=>!Qt&&!Ti?null:ve.createElement("div",{style:Gr,className:He()(`${wt}-header`,{[`${wt}-header-close-only`]:Ti&&!Qt&&!On})},ve.createElement("div",{className:`${wt}-header-title`},Ei,Qt&&ve.createElement("div",{className:`${wt}-title`},Qt)),On&&ve.createElement("div",{className:`${wt}-extra`},On)),[Ti,Ei,On,Gr,wt,Qt]),Fe=ve.useMemo(()=>{if(!mn)return null;const ze=`${wt}-footer`;return ve.createElement("div",{className:ze,style:yi},mn)},[mn,yi,wt]);return ve.createElement("div",{className:`${wt}-wrapper-body`,style:Hr},De,ve.createElement("div",{className:`${wt}-body`,style:ni},Ar),Fe)},$i=se(4173),Ai=se(67968),gi=se(45503),xi=Et=>{const{componentCls:wt,motionDurationSlow:Qt}=Et,mn={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Qt}`}}};return{[wt]:{[`${wt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Qt}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${wt}-panel-motion`]:{"&-left":[mn,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[mn,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[mn,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[mn,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const li=Et=>{const{componentCls:wt,zIndexPopup:Qt,colorBgMask:mn,colorBgElevated:On,motionDurationSlow:vr,motionDurationMid:Ir,padding:Wr,paddingLG:Gr,fontSizeLG:Hr,lineHeightLG:ni,lineWidth:yi,lineType:Ar,colorSplit:pi,marginSM:Ti,colorIcon:Ei,colorIconHover:De,colorText:Fe,fontWeightStrong:ze,footerPaddingBlock:Ze,footerPaddingInline:nt}=Et,lt=`${wt}-content-wrapper`;return{[wt]:{position:"fixed",inset:0,zIndex:Qt,pointerEvents:"none","&-pure":{position:"relative",background:On,[`&${wt}-left`]:{boxShadow:Et.boxShadowDrawerLeft},[`&${wt}-right`]:{boxShadow:Et.boxShadowDrawerRight},[`&${wt}-top`]:{boxShadow:Et.boxShadowDrawerUp},[`&${wt}-bottom`]:{boxShadow:Et.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${wt}-mask`]:{position:"absolute",inset:0,zIndex:Qt,background:mn,pointerEvents:"auto"},[lt]:{position:"absolute",zIndex:Qt,maxWidth:"100vw",transition:`all ${vr}`,"&-hidden":{display:"none"}},[`&-left > ${lt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Et.boxShadowDrawerLeft},[`&-right > ${lt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Et.boxShadowDrawerRight},[`&-top > ${lt}`]:{top:0,insetInline:0,boxShadow:Et.boxShadowDrawerUp},[`&-bottom > ${lt}`]:{bottom:0,insetInline:0,boxShadow:Et.boxShadowDrawerDown},[`${wt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:On,pointerEvents:"auto"},[`${wt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${wt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Wr}px ${Gr}px`,fontSize:Hr,lineHeight:ni,borderBottom:`${yi}px ${Ar} ${pi}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${wt}-extra`]:{flex:"none"},[`${wt}-close`]:{display:"inline-block",marginInlineEnd:Ti,color:Ei,fontWeight:ze,fontSize:Hr,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ir}`,textRendering:"auto","&:focus, &:hover":{color:De,textDecoration:"none"}},[`${wt}-title`]:{flex:1,margin:0,color:Fe,fontWeight:Et.fontWeightStrong,fontSize:Hr,lineHeight:ni},[`${wt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Gr,overflow:"auto"},[`${wt}-footer`]:{flexShrink:0,padding:`${Ze}px ${nt}px`,borderTop:`${yi}px ${Ar} ${pi}`},"&-rtl":{direction:"rtl"}}}};var Ni=(0,Ai.Z)("Drawer",Et=>{const wt=(0,gi.TS)(Et,{});return[li(wt),xi(wt)]},Et=>({zIndexPopup:Et.zIndexPopupBase,footerPaddingBlock:Et.paddingXS,footerPaddingInline:Et.padding})),Gi=se(16569),qr=function(Et,wt){var Qt={};for(var mn in Et)Object.prototype.hasOwnProperty.call(Et,mn)&&wt.indexOf(mn)<0&&(Qt[mn]=Et[mn]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var On=0,mn=Object.getOwnPropertySymbols(Et);On{var wt;const{rootClassName:Qt,width:mn,height:On,size:vr="default",mask:Ir=!0,push:Wr=Zi,open:Gr,afterOpenChange:Hr,onClose:ni,prefixCls:yi,getContainer:Ar,style:pi,className:Ti,visible:Ei,afterVisibleChange:De}=Et,Fe=qr(Et,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:ze,getPrefixCls:Ze,direction:nt,drawer:lt}=ve.useContext(Nn.E_),Mt=Ze("drawer",yi),[an,un]=Ni(Mt),Jn=Ar===void 0&&ze?()=>ze(document.body):Ar,br=He()({"no-mask":!Ir,[`${Mt}-rtl`]:nt==="rtl"},Qt,un),Vn=ve.useMemo(()=>mn!=null?mn:vr==="large"?736:378,[mn,vr]),kn=ve.useMemo(()=>On!=null?On:vr==="large"?736:378,[On,vr]),wn={motionName:(0,xn.m)(Mt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Pn=gr=>({motionName:(0,xn.m)(Mt,`panel-motion-${gr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),zn=(0,Gi.H)();return an(ve.createElement($i.BR,null,ve.createElement(hr.Ux,{status:!0,override:!0},ve.createElement(vn,Object.assign({prefixCls:Mt,onClose:ni,maskMotion:wn,motion:Pn},Fe,{open:Gr!=null?Gr:Ei,mask:Ir,push:Wr,width:Vn,height:kn,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),pi),className:He()(lt==null?void 0:lt.className,Ti),rootClassName:br,getContainer:Jn,afterOpenChange:Hr!=null?Hr:De,panelRef:zn}),ve.createElement(Ur,Object.assign({prefixCls:Mt},Fe,{onClose:ni}))))))},ta=Et=>{const{prefixCls:wt,style:Qt,className:mn,placement:On="right"}=Et,vr=qr(Et,["prefixCls","style","className","placement"]),{getPrefixCls:Ir}=ve.useContext(Nn.E_),Wr=Ir("drawer",wt),[Gr,Hr]=Ni(Wr),ni=He()(Wr,`${Wr}-pure`,`${Wr}-${On}`,Hr,mn);return Gr(ve.createElement("div",{className:ni,style:Qt},ve.createElement(Ur,Object.assign({prefixCls:Wr},vr))))};la._InternalPanelDoNotUseOrYouWillBeFired=ta;var ii=la},35874:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return he}});var de=se(67294),He=se(91034),Be=se(94184),Ve=se.n(Be),ve=se(87462),we=se(4942),Ee=se(97685),xe=se(45987),me=se(62709),Ie=se(71002),ot=se(12060);function Oe(oe,Te,Ye){var Lt=React.useRef({});return(!("value"in Lt.current)||Ye(Lt.current.condition,Te))&&(Lt.current.value=oe(),Lt.current.condition=Te),Lt.current.value}function St(oe,Te){typeof oe=="function"?oe(Te):(0,Ie.Z)(oe)==="object"&&oe&&"current"in oe&&(oe.current=Te)}function ft(){for(var oe=arguments.length,Te=new Array(oe),Ye=0;Ye=Le.F1&&Ye<=Le.F12)return!1;switch(Ye){case Le.ALT:case Le.CAPS_LOCK:case Le.CONTEXT_MENU:case Le.CTRL:case Le.DOWN:case Le.END:case Le.ESC:case Le.HOME:case Le.INSERT:case Le.LEFT:case Le.MAC_FF_META:case Le.META:case Le.NUMLOCK:case Le.NUM_CENTER:case Le.PAGE_DOWN:case Le.PAGE_UP:case Le.PAUSE:case Le.PRINT_SCREEN:case Le.RIGHT:case Le.SHIFT:case Le.UP:case Le.WIN_KEY:case Le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Te){if(Te>=Le.ZERO&&Te<=Le.NINE||Te>=Le.NUM_ZERO&&Te<=Le.NUM_MULTIPLY||Te>=Le.A&&Te<=Le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Te===0)return!0;switch(Te){case Le.SPACE:case Le.QUESTION_MARK:case Le.NUM_PLUS:case Le.NUM_MINUS:case Le.NUM_PERIOD:case Le.NUM_DIVISION:case Le.SEMICOLON:case Le.DASH:case Le.EQUALS:case Le.COMMA:case Le.PERIOD:case Le.SLASH:case Le.APOSTROPHE:case Le.SINGLE_QUOTE:case Le.OPEN_SQUARE_BRACKET:case Le.BACKSLASH:case Le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},gt=Le,qt=function(Te){return+setTimeout(Te,16)},tt=function(Te){return clearTimeout(Te)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(qt=function(Te){return window.requestAnimationFrame(Te)},tt=function(Te){return window.cancelAnimationFrame(Te)});var ct=0,ke=new Map;function Se(oe){ke.delete(oe)}var Ue=function(Te){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ct+=1;var Lt=ct;function Rt(Ft){if(Ft===0)Se(Lt),Te();else{var Jt=qt(function(){Rt(Ft-1)});ke.set(Lt,Jt)}}return Rt(Ye),Lt};Ue.cancel=function(oe){var Te=ke.get(oe);return Se(Te),tt(Te)};var je=Ue,_t=gt.ESC,vt=gt.TAB;function kt(oe){var Te=oe.visible,Ye=oe.triggerRef,Lt=oe.onVisibleChange,Rt=oe.autoFocus,Ft=oe.overlayRef,Jt=de.useRef(!1),Xt=function(){if(Te){var dn,cr;(dn=Ye.current)===null||dn===void 0||(cr=dn.focus)===null||cr===void 0||cr.call(dn),Lt==null||Lt(!1)}},Hn=function(){var dn;return(dn=Ft.current)!==null&&dn!==void 0&&dn.focus?(Ft.current.focus(),Jt.current=!0,!0):!1},Rn=function(dn){switch(dn.keyCode){case _t:Xt();break;case vt:{var cr=!1;Jt.current||(cr=Hn()),cr?dn.preventDefault():Xt();break}}};de.useEffect(function(){return Te?(window.addEventListener("keydown",Rn),Rt&&je(Hn,3),function(){window.removeEventListener("keydown",Rn),Jt.current=!1}):function(){Jt.current=!1}},[Te])}var Xe=(0,de.forwardRef)(function(oe,Te){var Ye=oe.overlay,Lt=oe.arrow,Rt=oe.prefixCls,Ft=(0,de.useMemo)(function(){var Xt;return typeof Ye=="function"?Xt=Ye():Xt=Ye,Xt},[Ye]),Jt=ft(Te,Ft==null?void 0:Ft.ref);return de.createElement(de.Fragment,null,Lt&&de.createElement("div",{className:"".concat(Rt,"-arrow")}),de.cloneElement(Ft,{ref:Je(Ft)?Jt:void 0}))}),Kt=Xe,Ot={adjustX:1,adjustY:1},bn=[0,0],Nt={topLeft:{points:["bl","tl"],overflow:Ot,offset:[0,-4],targetOffset:bn},top:{points:["bc","tc"],overflow:Ot,offset:[0,-4],targetOffset:bn},topRight:{points:["br","tr"],overflow:Ot,offset:[0,-4],targetOffset:bn},bottomLeft:{points:["tl","bl"],overflow:Ot,offset:[0,4],targetOffset:bn},bottom:{points:["tc","bc"],overflow:Ot,offset:[0,4],targetOffset:bn},bottomRight:{points:["tr","br"],overflow:Ot,offset:[0,4],targetOffset:bn}},sn=Nt,Cn=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function or(oe,Te){var Ye,Lt=oe.arrow,Rt=Lt===void 0?!1:Lt,Ft=oe.prefixCls,Jt=Ft===void 0?"rc-dropdown":Ft,Xt=oe.transitionName,Hn=oe.animation,Rn=oe.align,Tt=oe.placement,dn=Tt===void 0?"bottomLeft":Tt,cr=oe.placements,Mr=cr===void 0?sn:cr,at=oe.getPopupContainer,Ht=oe.showAction,Fn=oe.hideAction,er=oe.overlayClassName,nr=oe.overlayStyle,Sr=oe.visible,Tr=oe.trigger,Er=Tr===void 0?["hover"]:Tr,Or=oe.autoFocus,Vr=oe.overlay,ur=oe.children,si=oe.onVisibleChange,Li=(0,xe.Z)(oe,Cn),Bi=de.useState(),Hi=(0,Ee.Z)(Bi,2),ri=Hi[0],yt=Hi[1],Mn="visible"in oe?Sr:ri,An=de.useRef(null),Dn=de.useRef(null),lr=de.useRef(null);de.useImperativeHandle(Te,function(){return An.current});var qn=function(zt){yt(zt),si==null||si(zt)};kt({visible:Mn,triggerRef:lr,onVisibleChange:qn,autoFocus:Or,overlayRef:Dn});var pr=function(zt){var Bt=oe.onOverlayClick;yt(!1),Bt&&Bt(zt)},$n=function(){return de.createElement(Kt,{ref:Dn,overlay:Vr,prefixCls:Jt,arrow:Rt})},qe=function(){return typeof Vr=="function"?$n:$n()},ut=function(){var zt=oe.minOverlayWidthMatchTrigger,Bt=oe.alignPoint;return"minOverlayWidthMatchTrigger"in oe?zt:!Bt},Dt=function(){var zt=oe.openClassName;return zt!==void 0?zt:"".concat(Jt,"-open")},Vt=de.cloneElement(ur,{className:Ve()((Ye=ur.props)===null||Ye===void 0?void 0:Ye.className,Mn&&Dt()),ref:Je(ur)?ft(lr,ur.ref):void 0}),We=Fn;return!We&&Er.indexOf("contextMenu")!==-1&&(We=["click"]),de.createElement(me.Z,(0,ve.Z)({builtinPlacements:Mr},Li,{prefixCls:Jt,ref:An,popupClassName:Ve()(er,(0,we.Z)({},"".concat(Jt,"-show-arrow"),Rt)),popupStyle:nr,action:Er,showAction:Ht,hideAction:We,popupPlacement:dn,popupAlign:Rn,popupTransitionName:Xt,popupAnimation:Hn,popupVisible:Mn,stretch:ut()?"minWidth":"",popup:qe(),onPopupVisibleChange:qn,onPopupClick:pr,getPopupContainer:at}),Vt)}var Qe=de.forwardRef(or),Ce=Qe,ht=se(60276),Ut=se(5663),Yt=se(10366),Ge=se(80636),rt=se(8745),jt=se(96159),_n=se(53124),rn=se(68508),$t=se(76529),Zt=se(46605),yn=se(66748);const ln=null,Ae=oe=>{const{menu:Te,arrow:Ye,prefixCls:Lt,children:Rt,trigger:Ft,disabled:Jt,dropdownRender:Xt,getPopupContainer:Hn,overlayClassName:Rn,rootClassName:Tt,open:dn,onOpenChange:cr,visible:Mr,onVisibleChange:at,mouseEnterDelay:Ht=.15,mouseLeaveDelay:Fn=.1,autoAdjustOverflow:er=!0,placement:nr="",overlay:Sr,transitionName:Tr}=oe,{getPopupContainer:Er,getPrefixCls:Or,direction:Vr}=de.useContext(_n.E_),ur=de.useMemo(()=>{const Vt=Or();return Tr!==void 0?Tr:nr.includes("top")?`${Vt}-slide-down`:`${Vt}-slide-up`},[Or,nr,Tr]),si=de.useMemo(()=>nr?nr.includes("Center")?nr.slice(0,nr.indexOf("Center")):nr:Vr==="rtl"?"bottomRight":"bottomLeft",[nr,Vr]),Li=Or("dropdown",Lt),[Bi,Hi]=(0,yn.Z)(Li),[,ri]=(0,Zt.Z)(),yt=de.Children.only(Rt),Mn=(0,jt.Tm)(yt,{className:Ve()(`${Li}-trigger`,{[`${Li}-rtl`]:Vr==="rtl"},yt.props.className),disabled:Jt}),An=Jt?[]:Ft;let Dn;An&&An.includes("contextMenu")&&(Dn=!0);const[lr,qn]=(0,Ut.Z)(!1,{value:dn!=null?dn:Mr}),pr=(0,ht.useEvent)(Vt=>{cr==null||cr(Vt),at==null||at(Vt),qn(Vt)}),$n=Ve()(Rn,Tt,Hi,{[`${Li}-rtl`]:Vr==="rtl"}),qe=(0,Ge.Z)({arrowPointAtCenter:typeof Ye=="object"&&Ye.pointAtCenter,autoAdjustOverflow:er,offset:ri.marginXXS,arrowWidth:Ye?ri.sizePopupArrow:0,borderRadius:ri.borderRadius}),ut=de.useCallback(()=>{qn(!1)},[]),Dt=()=>{let Vt;return Te!=null&&Te.items?Vt=de.createElement(rn.default,Object.assign({},Te)):typeof Sr=="function"?Vt=Sr():Vt=Sr,Xt&&(Vt=Xt(Vt)),Vt=de.Children.only(typeof Vt=="string"?de.createElement("span",null,Vt):Vt),de.createElement($t.J,{prefixCls:`${Li}-menu`,expandIcon:de.createElement("span",{className:`${Li}-menu-submenu-arrow`},de.createElement(He.Z,{className:`${Li}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ut,validator:We=>{let{mode:pt}=We}},Vt)};return Bi(de.createElement(Ce,Object.assign({alignPoint:Dn},(0,Yt.Z)(oe,["rootClassName"]),{mouseEnterDelay:Ht,mouseLeaveDelay:Fn,visible:lr,builtinPlacements:qe,arrow:!!Ye,overlayClassName:$n,prefixCls:Li,getPopupContainer:Hn||Er,transitionName:ur,trigger:An,overlay:Dt,placement:si,onVisibleChange:pr}),Mn))};function ue(oe){return Object.assign(Object.assign({},oe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const le=(0,rt.Z)(Ae,"dropdown",oe=>oe,ue),pe=oe=>de.createElement(le,Object.assign({},oe),de.createElement("span",null));Ae._InternalPanelDoNotUseOrYouWillBeFired=pe;var he=Ae},66748:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return ot}});var de=se(14747),He=se(67771),Be=se(33297),Ve=se(50438),ve=se(97414),we=se(67968),Ee=se(45503),me=Oe=>{const{componentCls:St,menuCls:ft,colorError:it,colorTextLightSolid:Je}=Oe,Le=`${ft}-item`;return{[`${St}, ${St}-menu-submenu`]:{[`${ft} ${Le}`]:{[`&${Le}-danger:not(${Le}-disabled)`]:{color:it,"&:hover":{color:Je,backgroundColor:it}}}}}};const Ie=Oe=>{const{componentCls:St,menuCls:ft,zIndexPopup:it,dropdownArrowDistance:Je,sizePopupArrow:Le,antCls:gt,iconCls:qt,motionDurationMid:tt,dropdownPaddingVertical:ct,fontSize:ke,dropdownEdgeChildPadding:Se,colorTextDisabled:Ue,fontSizeIcon:je,controlPaddingHorizontal:_t,colorBgElevated:vt}=Oe;return[{[St]:Object.assign(Object.assign({},(0,de.Wf)(Oe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:it,display:"block","&::before":{position:"absolute",insetBlock:-Je+Le/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${gt}-btn`]:{[`& > ${qt}-down, & > ${gt}-btn-icon > ${qt}-down`]:{fontSize:je}},[`${St}-wrap`]:{position:"relative",[`${gt}-btn > ${qt}-down`]:{fontSize:je},[`${qt}-down::before`]:{transition:`transform ${tt}`}},[`${St}-wrap-open`]:{[`${qt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${gt}-slide-down-enter${gt}-slide-down-enter-active${St}-placement-bottomLeft, &${gt}-slide-down-appear${gt}-slide-down-appear-active${St}-placement-bottomLeft, &${gt}-slide-down-enter${gt}-slide-down-enter-active${St}-placement-bottom, &${gt}-slide-down-appear${gt}-slide-down-appear-active${St}-placement-bottom, &${gt}-slide-down-enter${gt}-slide-down-enter-active${St}-placement-bottomRight, &${gt}-slide-down-appear${gt}-slide-down-appear-active${St}-placement-bottomRight`]:{animationName:He.fJ},[`&${gt}-slide-up-enter${gt}-slide-up-enter-active${St}-placement-topLeft, &${gt}-slide-up-appear${gt}-slide-up-appear-active${St}-placement-topLeft, &${gt}-slide-up-enter${gt}-slide-up-enter-active${St}-placement-top, &${gt}-slide-up-appear${gt}-slide-up-appear-active${St}-placement-top, &${gt}-slide-up-enter${gt}-slide-up-enter-active${St}-placement-topRight, &${gt}-slide-up-appear${gt}-slide-up-appear-active${St}-placement-topRight`]:{animationName:He.Qt},[`&${gt}-slide-down-leave${gt}-slide-down-leave-active${St}-placement-bottomLeft, &${gt}-slide-down-leave${gt}-slide-down-leave-active${St}-placement-bottom, &${gt}-slide-down-leave${gt}-slide-down-leave-active${St}-placement-bottomRight`]:{animationName:He.Uw},[`&${gt}-slide-up-leave${gt}-slide-up-leave-active${St}-placement-topLeft, &${gt}-slide-up-leave${gt}-slide-up-leave-active${St}-placement-top, &${gt}-slide-up-leave${gt}-slide-up-leave-active${St}-placement-topRight`]:{animationName:He.ly}})},(0,ve.ZP)(Oe,{colorBg:vt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${St} ${ft}`]:{position:"relative",margin:0},[`${ft}-submenu-popup`]:{position:"absolute",zIndex:it,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${St}, ${St}-menu-submenu`]:{[ft]:Object.assign(Object.assign({padding:Se,listStyleType:"none",backgroundColor:vt,backgroundClip:"padding-box",borderRadius:Oe.borderRadiusLG,outline:"none",boxShadow:Oe.boxShadowSecondary},(0,de.Qy)(Oe)),{[`${ft}-item-group-title`]:{padding:`${ct}px ${_t}px`,color:Oe.colorTextDescription,transition:`all ${tt}`},[`${ft}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ft}-item-icon`]:{minWidth:ke,marginInlineEnd:Oe.marginXS,fontSize:Oe.fontSizeSM},[`${ft}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${tt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ft}-item, ${ft}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ct}px ${_t}px`,color:Oe.colorText,fontWeight:"normal",fontSize:ke,lineHeight:Oe.lineHeight,cursor:"pointer",transition:`all ${tt}`,borderRadius:Oe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Oe.controlItemBgHover}},(0,de.Qy)(Oe)),{"&-selected":{color:Oe.colorPrimary,backgroundColor:Oe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Oe.controlItemBgActiveHover}},"&-disabled":{color:Ue,cursor:"not-allowed","&:hover":{color:Ue,backgroundColor:vt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Oe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Oe.colorSplit},[`${St}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Oe.paddingXS,[`${St}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Oe.colorTextDescription,fontSize:je,fontStyle:"normal"}}}),[`${ft}-item-group-list`]:{margin:`0 ${Oe.marginXS}px`,padding:0,listStyle:"none"},[`${ft}-submenu-title`]:{paddingInlineEnd:_t+Oe.fontSizeSM},[`${ft}-submenu-vertical`]:{position:"relative"},[`${ft}-submenu${ft}-submenu-disabled ${St}-menu-submenu-title`]:{[`&, ${St}-menu-submenu-arrow-icon`]:{color:Ue,backgroundColor:vt,cursor:"not-allowed"}},[`${ft}-submenu-selected ${St}-menu-submenu-title`]:{color:Oe.colorPrimary}})}},[(0,He.oN)(Oe,"slide-up"),(0,He.oN)(Oe,"slide-down"),(0,Be.Fm)(Oe,"move-up"),(0,Be.Fm)(Oe,"move-down"),(0,Ve._y)(Oe,"zoom-big")]]};var ot=(0,we.Z)("Dropdown",(Oe,St)=>{let{rootPrefixCls:ft}=St;const{marginXXS:it,sizePopupArrow:Je,controlHeight:Le,fontSize:gt,lineHeight:qt,paddingXXS:tt,componentCls:ct,borderRadiusLG:ke}=Oe,Se=(Le-gt*qt)/2,{dropdownArrowOffset:Ue}=(0,ve.fS)({contentRadius:ke}),je=(0,Ee.TS)(Oe,{menuCls:`${ct}-menu`,rootPrefixCls:ft,dropdownArrowDistance:Je/2+it,dropdownArrowOffset:Ue,dropdownPaddingVertical:Se,dropdownEdgeChildPadding:tt});return[Ie(je),me(je)]},Oe=>({zIndexPopup:Oe.zIndexPopupBase+50}))},32983:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return tt}});var de=se(94184),He=se.n(de),Be=se(67294),Ve=se(53124),ve=se(10110),we=se(84780),Ee=se(46605),me=()=>{const[,ct]=(0,Ee.Z)(),Se=new we.C(ct.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Be.createElement("svg",{style:Se,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Be.createElement("g",{fill:"none",fillRule:"evenodd"},Be.createElement("g",{transform:"translate(24 31.67)"},Be.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Be.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),Be.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),Be.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),Be.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),Be.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),Be.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Be.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Be.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ot=()=>{const[,ct]=(0,Ee.Z)(),{colorFill:ke,colorFillTertiary:Se,colorFillQuaternary:Ue,colorBgContainer:je}=ct,{borderColor:_t,shadowColor:vt,contentColor:kt}=(0,Be.useMemo)(()=>({borderColor:new we.C(ke).onBackground(je).toHexShortString(),shadowColor:new we.C(Se).onBackground(je).toHexShortString(),contentColor:new we.C(Ue).onBackground(je).toHexShortString()}),[ke,Se,Ue,je]);return Be.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Be.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Be.createElement("ellipse",{fill:vt,cx:"32",cy:"33",rx:"32",ry:"7"}),Be.createElement("g",{fillRule:"nonzero",stroke:_t},Be.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),Be.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:kt}))))},Oe=se(67968),St=se(45503);const ft=ct=>{const{componentCls:ke,margin:Se,marginXS:Ue,marginXL:je,fontSize:_t,lineHeight:vt}=ct;return{[ke]:{marginInline:Ue,fontSize:_t,lineHeight:vt,textAlign:"center",[`${ke}-image`]:{height:ct.emptyImgHeight,marginBottom:Ue,opacity:ct.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ke}-description`]:{color:ct.colorText},[`${ke}-footer`]:{marginTop:Se},"&-normal":{marginBlock:je,color:ct.colorTextDisabled,[`${ke}-description`]:{color:ct.colorTextDisabled},[`${ke}-image`]:{height:ct.emptyImgHeightMD}},"&-small":{marginBlock:Ue,color:ct.colorTextDisabled,[`${ke}-image`]:{height:ct.emptyImgHeightSM}}}}};var it=(0,Oe.Z)("Empty",ct=>{const{componentCls:ke,controlHeightLG:Se}=ct,Ue=(0,St.TS)(ct,{emptyImgCls:`${ke}-img`,emptyImgHeight:Se*2.5,emptyImgHeightMD:Se,emptyImgHeightSM:Se*.875});return[ft(Ue)]}),Je=function(ct,ke){var Se={};for(var Ue in ct)Object.prototype.hasOwnProperty.call(ct,Ue)&&ke.indexOf(Ue)<0&&(Se[Ue]=ct[Ue]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ue=Object.getOwnPropertySymbols(ct);je{var{className:ke,rootClassName:Se,prefixCls:Ue,image:je=Le,description:_t,children:vt,imageStyle:kt,style:Xe}=ct,Kt=Je(ct,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Ot,direction:bn,empty:Nt}=Be.useContext(Ve.E_),sn=Ot("empty",Ue),[Cn,or]=it(sn),[Qe]=(0,ve.Z)("Empty"),Ce=typeof _t!="undefined"?_t:Qe==null?void 0:Qe.description,ht=typeof Ce=="string"?Ce:"empty";let Ut=null;return typeof je=="string"?Ut=Be.createElement("img",{alt:ht,src:je}):Ut=je,Cn(Be.createElement("div",Object.assign({className:He()(or,sn,Nt==null?void 0:Nt.className,{[`${sn}-normal`]:je===gt,[`${sn}-rtl`]:bn==="rtl"},ke,Se),style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),Xe)},Kt),Be.createElement("div",{className:`${sn}-image`,style:kt},Ut),Ce&&Be.createElement("div",{className:`${sn}-description`},Ce),vt&&Be.createElement("div",{className:`${sn}-footer`},vt)))};qt.PRESENTED_IMAGE_DEFAULT=Le,qt.PRESENTED_IMAGE_SIMPLE=gt;var tt=qt},22150:function(En,Wt,se){"use strict";se.d(Wt,{default:function(){return Vt}});var de=se(74902),He=se(94184),Be=se.n(He),Ve=se(38379),ve=se(67294),we=se(33603),Ee=se(65223);function xe(We){const[pt,zt]=ve.useState(We);return ve.useEffect(()=>{const Bt=setTimeout(()=>{zt(We)},We.length?0:10);return()=>{clearTimeout(Bt)}},[We]),pt}var me=se(14747),Ie=se(50438),ot=se(33507),Oe=se(45503),St=se(67968),it=We=>{const{componentCls:pt}=We,zt=`${pt}-show-help`,Bt=`${pt}-show-help-item`;return{[zt]:{transition:`opacity ${We.motionDurationSlow} ${We.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Bt]:{overflow:"hidden",transition:`height ${We.motionDurationSlow} ${We.motionEaseInOut}, opacity ${We.motionDurationSlow} ${We.motionEaseInOut}, transform ${We.motionDurationSlow} ${We.motionEaseInOut} !important`,[`&${Bt}-appear, &${Bt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Bt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Je=We=>({legend:{display:"block",width:"100%",marginBottom:We.marginLG,padding:0,color:We.colorTextDescription,fontSize:We.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${We.lineWidth}px ${We.lineType} ${We.colorBorder}`},label:{fontSize:We.fontSize},'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 ${We.controlOutlineWidth}px ${We.controlOutline}`},output:{display:"block",paddingTop:15,color:We.colorText,fontSize:We.fontSize,lineHeight:We.lineHeight}}),Le=(We,pt)=>{const{formItemCls:zt}=We;return{[zt]:{[`${zt}-label > label`]:{height:pt},[`${zt}-control-input`]:{minHeight:pt}}}},gt=We=>{const{componentCls:pt}=We;return{[We.componentCls]:Object.assign(Object.assign(Object.assign({},(0,me.Wf)(We)),Je(We)),{[`${pt}-text`]:{display:"inline-block",paddingInlineEnd:We.paddingSM},"&-small":Object.assign({},Le(We,We.controlHeightSM)),"&-large":Object.assign({},Le(We,We.controlHeightLG))})}},qt=We=>{const{formItemCls:pt,iconCls:zt,componentCls:Bt,rootPrefixCls:en,labelRequiredMarkColor:nn,labelColor:jn,labelFontSize:Lr,labelHeight:rr,labelColonMarginInlineStart:tr,labelColonMarginInlineEnd:dr,itemMarginBottom:fr}=We;return{[pt]:Object.assign(Object.assign({},(0,me.Wf)(We)),{marginBottom:fr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${en}-row`]:{display:"none"},"&-has-warning":{[`${pt}-split`]:{color:We.colorError}},"&-has-error":{[`${pt}-split`]:{color:We.colorWarning}},[`${pt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${We.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:rr,color:jn,fontSize:Lr,[`> ${zt}`]:{fontSize:We.fontSize,verticalAlign:"top"},[`&${pt}-required:not(${pt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:We.marginXXS,color:nn,fontSize:We.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Bt}-hide-required-mark &`]:{display:"none"}},[`${pt}-optional`]:{display:"inline-block",marginInlineStart:We.marginXXS,color:We.colorTextDescription,[`${Bt}-hide-required-mark &`]:{display:"none"}},[`${pt}-tooltip`]:{color:We.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:We.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:tr,marginInlineEnd:dr},[`&${pt}-no-colon::after`]:{content:'"\\a0"'}}},[`${pt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${en}-col-'"]):not([class*="' ${en}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:We.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[pt]:{"&-explain, &-extra":{clear:"both",color:We.colorTextDescription,fontSize:We.fontSize,lineHeight:We.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:We.controlHeightSM,transition:`color ${We.motionDurationMid} ${We.motionEaseOut}`},"&-explain":{"&-error":{color:We.colorError},"&-warning":{color:We.colorWarning}}},[`&-with-help ${pt}-explain`]:{height:"auto",opacity:1},[`${pt}-feedback-icon`]:{fontSize:We.fontSize,textAlign:"center",visibility:"visible",animationName:Ie.kr,animationDuration:We.motionDurationMid,animationTimingFunction:We.motionEaseOutBack,pointerEvents:"none","&-success":{color:We.colorSuccess},"&-error":{color:We.colorError},"&-warning":{color:We.colorWarning},"&-validating":{color:We.colorPrimary}}})}},tt=We=>{const{componentCls:pt,formItemCls:zt}=We;return{[`${pt}-horizontal`]:{[`${zt}-label`]:{flexGrow:0},[`${zt}-control`]:{flex:"1 1 0",minWidth:0},[`${zt}-label[class$='-24'], ${zt}-label[class*='-24 ']`]:{[`& + ${zt}-control`]:{minWidth:"unset"}}}}},ct=We=>{const{componentCls:pt,formItemCls:zt}=We;return{[`${pt}-inline`]:{display:"flex",flexWrap:"wrap",[zt]:{flex:"none",marginInlineEnd:We.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${zt}-label, > ${zt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${zt}-label`]:{flex:"none"},[`${pt}-text`]:{display:"inline-block"},[`${zt}-has-feedback`]:{display:"inline-block"}}}}},ke=We=>({padding:We.verticalLabelPadding,margin:We.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Se=We=>{const{componentCls:pt,formItemCls:zt,rootPrefixCls:Bt}=We;return{[`${zt} ${zt}-label`]:ke(We),[pt]:{[zt]:{flexWrap:"wrap",[`${zt}-label, ${zt}-control`]:{[`&:not([class*=" ${Bt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ue=We=>{const{componentCls:pt,formItemCls:zt,rootPrefixCls:Bt}=We;return{[`${pt}-vertical`]:{[zt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${pt}-item-control`]:{width:"100%"}}},[`${pt}-vertical ${zt}-label, .${Bt}-col-24${zt}-label, .${Bt}-col-xl-24${zt}-label`]:ke(We),[`@media (max-width: ${We.screenXSMax}px)`]:[Se(We),{[pt]:{[`.${Bt}-col-xs-24${zt}-label`]:ke(We)}}],[`@media (max-width: ${We.screenSMMax}px)`]:{[pt]:{[`.${Bt}-col-sm-24${zt}-label`]:ke(We)}},[`@media (max-width: ${We.screenMDMax}px)`]:{[pt]:{[`.${Bt}-col-md-24${zt}-label`]:ke(We)}},[`@media (max-width: ${We.screenLGMax}px)`]:{[pt]:{[`.${Bt}-col-lg-24${zt}-label`]:ke(We)}}}},je=(We,pt)=>(0,Oe.TS)(We,{formItemCls:`${We.componentCls}-item`,rootPrefixCls:pt});var _t=(0,St.Z)("Form",(We,pt)=>{let{rootPrefixCls:zt}=pt;const Bt=je(We,zt);return[gt(Bt),qt(Bt),it(Bt),tt(Bt),ct(Bt),Ue(Bt),(0,ot.Z)(Bt),Ie.kr]},We=>({labelRequiredMarkColor:We.colorError,labelColor:We.colorTextHeading,labelFontSize:We.fontSize,labelHeight:We.controlHeight,labelColonMarginInlineStart:We.marginXXS/2,labelColonMarginInlineEnd:We.marginXS,itemMarginBottom:We.marginLG,verticalLabelPadding:`0 0 ${We.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const vt=[];function kt(We,pt,zt){let Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof We=="string"?We:`${pt}-${Bt}`,error:We,errorStatus:zt}}var Kt=We=>{let{help:pt,helpStatus:zt,errors:Bt=vt,warnings:en=vt,className:nn,fieldId:jn,onVisibleChanged:Lr}=We;const{prefixCls:rr}=ve.useContext(Ee.Rk),tr=`${rr}-item-explain`,[,dr]=_t(rr),fr=(0,ve.useMemo)(()=>(0,we.Z)(rr),[rr]),mt=xe(Bt),st=xe(en),Ct=ve.useMemo(()=>pt!=null?[kt(pt,"help",zt)]:[].concat((0,de.Z)(mt.map((Bn,hn)=>kt(Bn,"error","error",hn))),(0,de.Z)(st.map((Bn,hn)=>kt(Bn,"warning","warning",hn)))),[pt,zt,mt,st]),fn={};return jn&&(fn.id=`${jn}_help`),ve.createElement(Ve.default,{motionDeadline:fr.motionDeadline,motionName:`${rr}-show-help`,visible:!!Ct.length,onVisibleChanged:Lr},Bn=>{const{className:hn,style:vn}=Bn;return ve.createElement("div",Object.assign({},fn,{className:Be()(tr,hn,nn,dr),style:vn,role:"alert"}),ve.createElement(Ve.CSSMotionList,Object.assign({keys:Ct},(0,we.Z)(rr),{motionName:`${rr}-show-help-item`,component:!1}),xn=>{const{key:Nn,error:hr,errorStatus:tn,className:Qr,style:Ur}=xn;return ve.createElement("div",{key:Nn,className:Be()(Qr,{[`${tr}-${tn}`]:tn}),style:Ur},hr)}))})},Ot=se(58083),bn=se(53124),Nt=se(98866),sn=se(97647),Cn=se(98675),or=se(17423);const Qe=["parentNode"],Ce="form_item";function ht(We){return We===void 0||We===!1?[]:Array.isArray(We)?We:[We]}function Ut(We,pt){if(!We.length)return;const zt=We.join("_");return pt?`${pt}_${zt}`:Qe.includes(zt)?`${Ce}_${zt}`:zt}function Yt(We,pt,zt,Bt,en,nn){let jn=Bt;return nn!==void 0?jn=nn:zt.validating?jn="validating":We.length?jn="error":pt.length?jn="warning":(zt.touched||en&&zt.validated)&&(jn="success"),jn}function Ge(We){return ht(We).join("_")}function rt(We){const[pt]=(0,Ot.useForm)(),zt=ve.useRef({}),Bt=ve.useMemo(()=>We!=null?We:Object.assign(Object.assign({},pt),{__INTERNAL__:{itemRef:en=>nn=>{const jn=Ge(en);nn?zt.current[jn]=nn:delete zt.current[jn]}},scrollToField:function(en){let nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const jn=ht(en),Lr=Ut(jn,Bt.__INTERNAL__.name),rr=Lr?document.getElementById(Lr):null;rr&&(0,or.Z)(rr,Object.assign({scrollMode:"if-needed",block:"nearest"},nn))},getFieldInstance:en=>{const nn=Ge(en);return zt.current[nn]}}),[We,pt]);return[Bt]}var jt=se(37920),_n=function(We,pt){var zt={};for(var Bt in We)Object.prototype.hasOwnProperty.call(We,Bt)&&pt.indexOf(Bt)<0&&(zt[Bt]=We[Bt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,Bt=Object.getOwnPropertySymbols(We);en{const zt=ve.useContext(Nt.Z),{getPrefixCls:Bt,direction:en,form:nn}=ve.useContext(bn.E_),{prefixCls:jn,className:Lr,rootClassName:rr,size:tr,disabled:dr=zt,form:fr,colon:mt,labelAlign:st,labelWrap:Ct,labelCol:fn,wrapperCol:Bn,hideRequiredMark:hn,layout:vn="horizontal",scrollToFirstError:xn,requiredMark:Nn,onFinishFailed:hr,name:tn,style:Qr,feedbackIcons:Ur}=We,$i=_n(We,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Ai=(0,Cn.Z)(tr),gi=ve.useContext(jt.Z),qi=(0,ve.useMemo)(()=>Nn!==void 0?Nn:nn&&nn.requiredMark!==void 0?nn.requiredMark:!hn,[hn,Nn,nn]),xi=mt!=null?mt:nn==null?void 0:nn.colon,li=Bt("form",jn),[Ni,Gi]=_t(li),qr=Be()(li,`${li}-${vn}`,{[`${li}-hide-required-mark`]:qi===!1,[`${li}-rtl`]:en==="rtl",[`${li}-${Ai}`]:Ai},Gi,nn==null?void 0:nn.className,Lr,rr),[vi]=rt(fr),{__INTERNAL__:Zi}=vi;Zi.name=tn;const la=(0,ve.useMemo)(()=>({name:tn,labelAlign:st,labelCol:fn,labelWrap:Ct,wrapperCol:Bn,vertical:vn==="vertical",colon:xi,requiredMark:qi,itemRef:Zi.itemRef,form:vi,feedbackIcons:Ur}),[tn,st,fn,Bn,vn,xi,qi,vi,Ur]);ve.useImperativeHandle(pt,()=>vi);const ta=(Et,wt)=>{if(Et){let Qt={block:"nearest"};typeof Et=="object"&&(Qt=Et),vi.scrollToField(wt,Qt)}},ii=Et=>{if(hr==null||hr(Et),Et.errorFields.length){const wt=Et.errorFields[0].name;if(xn!==void 0){ta(xn,wt);return}nn&&nn.scrollToFirstError!==void 0&&ta(nn.scrollToFirstError,wt)}};return Ni(ve.createElement(Nt.n,{disabled:dr},ve.createElement(sn.q,{size:Ai},ve.createElement(Ee.RV,Object.assign({},{validateMessages:gi}),ve.createElement(Ee.q3.Provider,{value:la},ve.createElement(Ot.default,Object.assign({id:tn},$i,{name:tn,onFinishFailed:ii,form:vi,style:Object.assign(Object.assign({},nn==null?void 0:nn.style),Qr),className:qr})))))))};var Zt=ve.forwardRef(rn),yn=se(9475),ln=se(17799),Ae=se(96159),ue=se(37419);function le(We){if(typeof We=="function")return We;const pt=(0,ue.Z)(We);return pt.length<=1?pt[0]:pt}const pe=()=>{const{status:We,errors:pt=[],warnings:zt=[]}=(0,ve.useContext)(Ee.aM);return{status:We,errors:pt,warnings:zt}};pe.Context=Ee.aM;var he=pe,oe=se(96523);function Te(We){const[pt,zt]=ve.useState(We),Bt=(0,ve.useRef)(null),en=(0,ve.useRef)([]),nn=(0,ve.useRef)(!1);ve.useEffect(()=>(nn.current=!1,()=>{nn.current=!0,oe.Z.cancel(Bt.current),Bt.current=null}),[]);function jn(Lr){nn.current||(Bt.current===null&&(en.current=[],Bt.current=(0,oe.Z)(()=>{Bt.current=null,zt(rr=>{let tr=rr;return en.current.forEach(dr=>{tr=dr(tr)}),tr})})),en.current.push(Lr))}return[pt,jn]}function Ye(){const{itemRef:We}=ve.useContext(Ee.q3),pt=ve.useRef({});function zt(Bt,en){const nn=en&&typeof en=="object"&&en.ref,jn=Bt.join("_");return(pt.current.name!==jn||pt.current.originRef!==nn)&&(pt.current.name=jn,pt.current.originRef=nn,pt.current.ref=(0,ln.sQ)(We(Bt),nn)),pt.current.ref}return zt}var Lt=se(48130),Rt=se(14075),Ft=se(10366),Jt=se(92820),Xt=se(21584);const Hn=We=>{const{formItemCls:pt}=We;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${pt}-control`]:{display:"flex"}}}};var Rn=(0,St.b)(["Form","item-item"],(We,pt)=>{let{rootPrefixCls:zt}=pt;const Bt=je(We,zt);return[Hn(Bt)]}),dn=We=>{const{prefixCls:pt,status:zt,wrapperCol:Bt,children:en,errors:nn,warnings:jn,_internalItemRender:Lr,extra:rr,help:tr,fieldId:dr,marginBottom:fr,onErrorVisibleChanged:mt}=We,st=`${pt}-item`,Ct=ve.useContext(Ee.q3),fn=Bt||Ct.wrapperCol||{},Bn=Be()(`${st}-control`,fn.className),hn=ve.useMemo(()=>Object.assign({},Ct),[Ct]);delete hn.labelCol,delete hn.wrapperCol;const vn=ve.createElement("div",{className:`${st}-control-input`},ve.createElement("div",{className:`${st}-control-input-content`},en)),xn=ve.useMemo(()=>({prefixCls:pt,status:zt}),[pt,zt]),Nn=fr!==null||nn.length||jn.length?ve.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ve.createElement(Ee.Rk.Provider,{value:xn},ve.createElement(Kt,{fieldId:dr,errors:nn,warnings:jn,help:tr,helpStatus:zt,className:`${st}-explain-connected`,onVisibleChanged:mt})),!!fr&&ve.createElement("div",{style:{width:0,height:fr}})):null,hr={};dr&&(hr.id=`${dr}_extra`);const tn=rr?ve.createElement("div",Object.assign({},hr,{className:`${st}-extra`}),rr):null,Qr=Lr&&Lr.mark==="pro_table_render"&&Lr.render?Lr.render(We,{input:vn,errorList:Nn,extra:tn}):ve.createElement(ve.Fragment,null,vn,Nn,tn);return ve.createElement(Ee.q3.Provider,{value:hn},ve.createElement(Xt.Z,Object.assign({},fn,{className:Bn}),Qr),ve.createElement(Rn,{prefixCls:pt}))},cr=se(17663),Mr=se(24457),at=se(10110),Ht=se(83062),Fn=function(We,pt){var zt={};for(var Bt in We)Object.prototype.hasOwnProperty.call(We,Bt)&&pt.indexOf(Bt)<0&&(zt[Bt]=We[Bt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,Bt=Object.getOwnPropertySymbols(We);en{let{prefixCls:pt,label:zt,htmlFor:Bt,labelCol:en,labelAlign:nn,colon:jn,required:Lr,requiredMark:rr,tooltip:tr}=We;var dr;const[fr]=(0,at.Z)("Form"),{vertical:mt,labelAlign:st,labelCol:Ct,labelWrap:fn,colon:Bn}=ve.useContext(Ee.q3);if(!zt)return null;const hn=en||Ct||{},vn=nn||st,xn=`${pt}-item-label`,Nn=Be()(xn,vn==="left"&&`${xn}-left`,hn.className,{[`${xn}-wrap`]:!!fn});let hr=zt;const tn=jn===!0||Bn!==!1&&jn!==!1;tn&&!mt&&typeof zt=="string"&&zt.trim()!==""&&(hr=zt.replace(/[:|:]\s*$/,""));const Ur=er(tr);if(Ur){const{icon:qi=ve.createElement(cr.Z,null)}=Ur,xi=Fn(Ur,["icon"]),li=ve.createElement(Ht.Z,Object.assign({},xi),ve.cloneElement(qi,{className:`${pt}-item-tooltip`,title:""}));hr=ve.createElement(ve.Fragment,null,hr,li)}const $i=rr==="optional",Ai=typeof rr=="function";Ai?hr=rr(hr,{required:!!Lr}):$i&&!Lr&&(hr=ve.createElement(ve.Fragment,null,hr,ve.createElement("span",{className:`${pt}-item-optional`,title:""},(fr==null?void 0:fr.optional)||((dr=Mr.Z.Form)===null||dr===void 0?void 0:dr.optional))));const gi=Be()({[`${pt}-item-required`]:Lr,[`${pt}-item-required-mark-optional`]:$i||Ai,[`${pt}-item-no-colon`]:!tn});return ve.createElement(Xt.Z,Object.assign({},hn,{className:Nn}),ve.createElement("label",{htmlFor:Bt,className:gi,title:typeof zt=="string"?zt:""},hr))},Tr=se(87725),Er=se(16646),Or=se(87995),Vr=se(3407);const ur={success:Tr.Z,warning:Or.Z,error:Er.Z,validating:Vr.Z};function si(We){let{children:pt,errors:zt,warnings:Bt,hasFeedback:en,validateStatus:nn,prefixCls:jn,meta:Lr,noStyle:rr}=We;const tr=`${jn}-item`,{feedbackIcons:dr}=ve.useContext(Ee.q3),fr=Yt(zt,Bt,Lr,null,!!en,nn),{isFormItemInput:mt,status:st}=ve.useContext(Ee.aM),Ct=ve.useMemo(()=>{var fn;let Bn;if(en){const xn=en!==!0&&en.icons||dr,Nn=fr&&((fn=xn==null?void 0:xn({status:fr,errors:zt,warnings:Bt}))===null||fn===void 0?void 0:fn[fr]),hr=fr&&ur[fr];Bn=Nn!==!1&&hr?ve.createElement("span",{className:Be()(`${tr}-feedback-icon`,`${tr}-feedback-icon-${fr}`)},Nn||ve.createElement(hr,null)):null}let hn=!0,vn=fr||"";return rr&&(hn=mt,vn=(fr!=null?fr:st)||""),{status:vn,errors:zt,warnings:Bt,hasFeedback:!!en,feedbackIcon:Bn,isFormItemInput:hn}},[fr,en,rr,mt,st]);return ve.createElement(Ee.aM.Provider,{value:Ct},pt)}var Li=function(We,pt){var zt={};for(var Bt in We)Object.prototype.hasOwnProperty.call(We,Bt)&&pt.indexOf(Bt)<0&&(zt[Bt]=We[Bt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,Bt=Object.getOwnPropertySymbols(We);en{if(Ur&&Nn.current){const Gi=getComputedStyle(Nn.current);gi(parseInt(Gi.marginBottom,10))}},[Ur,$i]);const qi=Gi=>{Gi||gi(null)},li=function(){let Gi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const qr=Gi?hr:tr.errors,vi=Gi?tn:tr.warnings;return Yt(qr,vi,tr,"",!!dr,rr)}(),Ni=Be()(vn,zt,Bt,{[`${vn}-with-help`]:Qr||hr.length||tn.length,[`${vn}-has-feedback`]:li&&dr,[`${vn}-has-success`]:li==="success",[`${vn}-has-warning`]:li==="warning",[`${vn}-has-error`]:li==="error",[`${vn}-is-validating`]:li==="validating",[`${vn}-hidden`]:fr});return ve.createElement("div",{className:Ni,style:en,ref:Nn},ve.createElement(Jt.Z,Object.assign({className:`${vn}-row`},(0,Ft.Z)(hn,["_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"])),ve.createElement(Sr,Object.assign({htmlFor:st},We,{requiredMark:xn,required:Ct!=null?Ct:fn,prefixCls:pt})),ve.createElement(dn,Object.assign({},We,tr,{errors:hr,warnings:tn,prefixCls:pt,status:li,help:nn,marginBottom:Ai,onErrorVisibleChanged:qi}),ve.createElement(Ee.qI.Provider,{value:Bn},ve.createElement(si,{prefixCls:pt,meta:tr,errors:tr.errors,warnings:tr.warnings,hasFeedback:dr,validateStatus:li},mt)))),!!Ai&&ve.createElement("div",{className:`${vn}-margin-offset`,style:{marginBottom:-Ai}}))}const Hi="__SPLIT__",ri=null,yt=ve.memo(We=>{let{children:pt}=We;return pt},(We,pt)=>We.value===pt.value&&We.update===pt.update&&We.childProps.length===pt.childProps.length&&We.childProps.every((zt,Bt)=>zt===pt.childProps[Bt]));function Mn(We){return We!=null}function An(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Dn(We){const{name:pt,noStyle:zt,className:Bt,dependencies:en,prefixCls:nn,shouldUpdate:jn,rules:Lr,children:rr,required:tr,label:dr,messageVariables:fr,trigger:mt="onChange",validateTrigger:st,hidden:Ct,help:fn}=We,{getPrefixCls:Bn}=ve.useContext(bn.E_),{name:hn}=ve.useContext(Ee.q3),vn=le(rr),xn=typeof vn=="function",Nn=ve.useContext(Ee.qI),{validateTrigger:hr}=ve.useContext(Ot.FieldContext),tn=st!==void 0?st:hr,Qr=Mn(pt),Ur=Bn("form",nn),[$i,Ai]=_t(Ur),gi=ve.useContext(Ot.ListContext),qi=ve.useRef(),[xi,li]=Te({}),[Ni,Gi]=(0,yn.Z)(()=>An()),qr=wt=>{const Qt=gi==null?void 0:gi.getKey(wt.name);if(Gi(wt.destroy?An():wt,!0),zt&&fn!==!1&&Nn){let mn=wt.name;if(wt.destroy)mn=qi.current||mn;else if(Qt!==void 0){const[On,vr]=Qt;mn=[On].concat((0,de.Z)(vr)),qi.current=mn}Nn(wt,mn)}},vi=(wt,Qt)=>{li(mn=>{const On=Object.assign({},mn),Ir=[].concat((0,de.Z)(wt.name.slice(0,-1)),(0,de.Z)(Qt)).join(Hi);return wt.destroy?delete On[Ir]:On[Ir]=wt,On})},[Zi,la]=ve.useMemo(()=>{const wt=(0,de.Z)(Ni.errors),Qt=(0,de.Z)(Ni.warnings);return Object.values(xi).forEach(mn=>{wt.push.apply(wt,(0,de.Z)(mn.errors||[])),Qt.push.apply(Qt,(0,de.Z)(mn.warnings||[]))}),[wt,Qt]},[xi,Ni.errors,Ni.warnings]),ta=Ye();function ii(wt,Qt,mn){return zt&&!Ct?ve.createElement(si,{prefixCls:Ur,hasFeedback:We.hasFeedback,validateStatus:We.validateStatus,meta:Ni,errors:Zi,warnings:la,noStyle:!0},wt):ve.createElement(Bi,Object.assign({key:"row"},We,{className:Be()(Bt,Ai),prefixCls:Ur,fieldId:Qt,isRequired:mn,errors:Zi,warnings:la,meta:Ni,onSubItemMetaChange:vi}),wt)}if(!Qr&&!xn&&!en)return $i(ii(vn));let Et={};return typeof dr=="string"?Et.label=dr:pt&&(Et.label=String(pt)),fr&&(Et=Object.assign(Object.assign({},Et),fr)),$i(ve.createElement(Ot.Field,Object.assign({},We,{messageVariables:Et,trigger:mt,validateTrigger:tn,onMetaChange:qr}),(wt,Qt,mn)=>{const On=ht(pt).length&&Qt?Qt.name:[],vr=Ut(On,hn),Ir=tr!==void 0?tr:!!(Lr&&Lr.some(Hr=>{if(Hr&&typeof Hr=="object"&&Hr.required&&!Hr.warningOnly)return!0;if(typeof Hr=="function"){const ni=Hr(mn);return ni&&ni.required&&!ni.warningOnly}return!1})),Wr=Object.assign({},wt);let Gr=null;if(Array.isArray(vn)&&Qr)Gr=vn;else if(!(xn&&(!(jn||en)||Qr))){if(!(en&&!xn&&!Qr))if((0,Ae.l$)(vn)){const Hr=Object.assign(Object.assign({},vn.props),Wr);if(Hr.id||(Hr.id=vr),fn||Zi.length>0||la.length>0||We.extra){const Ar=[];(fn||Zi.length>0)&&Ar.push(`${vr}_help`),We.extra&&Ar.push(`${vr}_extra`),Hr["aria-describedby"]=Ar.join(" ")}Zi.length>0&&(Hr["aria-invalid"]="true"),Ir&&(Hr["aria-required"]="true"),(0,ln.Yr)(vn)&&(Hr.ref=ta(On,vn)),new Set([].concat((0,de.Z)(ht(mt)),(0,de.Z)(ht(tn)))).forEach(Ar=>{Hr[Ar]=function(){for(var pi,Ti,Ei,De,Fe,ze=arguments.length,Ze=new Array(ze),nt=0;nt{var{prefixCls:pt,children:zt}=We,Bt=pr(We,["prefixCls","children"]);const{getPrefixCls:en}=ve.useContext(bn.E_),nn=en("form",pt),jn=ve.useMemo(()=>({prefixCls:nn,status:"error"}),[nn]);return ve.createElement(Ot.List,Object.assign({},Bt),(Lr,rr,tr)=>ve.createElement(Ee.Rk.Provider,{value:jn},zt(Lr.map(dr=>Object.assign(Object.assign({},dr),{fieldKey:dr.key})),rr,{errors:tr.errors,warnings:tr.warnings})))};function ut(){const{form:We}=(0,ve.useContext)(Ee.q3);return We}const Dt=Zt;Dt.Item=qn,Dt.List=qe,Dt.ErrorList=Kt,Dt.useForm=rt,Dt.useFormInstance=ut,Dt.useWatch=Ot.useWatch,Dt.Provider=Ee.RV,Dt.create=()=>{};var Vt=Dt},31795:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return $n}});var de=se(42922),He=se(53978),Be=se(94184),Ve=se.n(Be),ve=se(87462),we=se(4942),Ee=se(71002),xe=se(97685),me=se(45987),Ie=se(15671),ot=se(43144);function Oe(){return typeof BigInt=="function"}function St(qe){return!qe&&qe!==0&&!Number.isNaN(qe)||!String(qe).trim()}function ft(qe){var ut=qe.trim(),Dt=ut.startsWith("-");Dt&&(ut=ut.slice(1)),ut=ut.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ut.startsWith(".")&&(ut="0".concat(ut));var Vt=ut||"0",We=Vt.split("."),pt=We[0]||"0",zt=We[1]||"0";pt==="0"&&zt==="0"&&(Dt=!1);var Bt=Dt?"-":"";return{negative:Dt,negativeStr:Bt,trimStr:Vt,integerStr:pt,decimalStr:zt,fullStr:"".concat(Bt).concat(Vt)}}function it(qe){var ut=String(qe);return!Number.isNaN(Number(ut))&&ut.includes("e")}function Je(qe){var ut=String(qe);if(it(qe)){var Dt=Number(ut.slice(ut.indexOf("e-")+2)),Vt=ut.match(/\.(\d+)/);return Vt!=null&&Vt[1]&&(Dt+=Vt[1].length),Dt}return ut.includes(".")&>(ut)?ut.length-ut.indexOf(".")-1:0}function Le(qe){var ut=String(qe);if(it(qe)){if(qe>Number.MAX_SAFE_INTEGER)return String(Oe()?BigInt(qe).toString():Number.MAX_SAFE_INTEGER);if(qe0&&arguments[0]!==void 0?arguments[0]:!0;return Dt?this.isInvalidate()?"":ft("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),qe}(),tt=function(){function qe(ut){if((0,Ie.Z)(this,qe),(0,we.Z)(this,"origin",""),(0,we.Z)(this,"number",void 0),(0,we.Z)(this,"empty",void 0),St(ut)){this.empty=!0;return}this.origin=String(ut),this.number=Number(ut)}return(0,ot.Z)(qe,[{key:"negate",value:function(){return new qe(-this.toNumber())}},{key:"add",value:function(Dt){if(this.isInvalidate())return new qe(Dt);var Vt=Number(Dt);if(Number.isNaN(Vt))return this;var We=this.number+Vt;if(We>Number.MAX_SAFE_INTEGER)return new qe(Number.MAX_SAFE_INTEGER);if(WeNumber.MAX_SAFE_INTEGER)return new qe(Number.MAX_SAFE_INTEGER);if(We0&&arguments[0]!==void 0?arguments[0]:!0;return Dt?this.isInvalidate()?"":Le(this.number):this.origin}}]),qe}();function ct(qe){return Oe()?new qt(qe):new tt(qe)}function ke(qe,ut,Dt){var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(qe==="")return"";var We=ft(qe),pt=We.negativeStr,zt=We.integerStr,Bt=We.decimalStr,en="".concat(ut).concat(Bt),nn="".concat(pt).concat(zt);if(Dt>=0){var jn=Number(Bt[Dt]);if(jn>=5&&!Vt){var Lr=ct(qe).add("".concat(pt,"0.").concat("0".repeat(Dt)).concat(10-jn));return ke(Lr.toString(),ut,Dt,Vt)}return Dt===0?nn:"".concat(nn).concat(ut).concat(Bt.padEnd(Dt,"0").slice(0,Dt))}return en===".0"?nn:"".concat(nn).concat(en)}var Se=ct,Ue=se(67656),je=se(67294);function _t(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var vt=_t()?je.useLayoutEffect:je.useEffect,kt=function(ut,Dt){var Vt=je.useRef(!0);vt(function(){return ut(Vt.current)},Dt),vt(function(){return Vt.current=!1,function(){Vt.current=!0}},[])},Xe=function(ut,Dt){kt(function(Vt){if(!Vt)return ut()},Dt)},Kt=kt,Ot=se(27183);function bn(qe,ut,Dt){var Vt=React.useRef({});return(!("value"in Vt.current)||Dt(Vt.current.condition,ut))&&(Vt.current.value=qe(),Vt.current.condition=ut),Vt.current.value}function Nt(qe,ut){typeof qe=="function"?qe(ut):(0,Ee.Z)(qe)==="object"&&qe&&"current"in qe&&(qe.current=ut)}function sn(){for(var qe=arguments.length,ut=new Array(qe),Dt=0;Dt1&&arguments[1]!==void 0?arguments[1]:1;pe+=1;var Vt=pe;function We(pt){if(pt===0)oe(Vt),ut();else{var zt=ue(function(){We(pt-1)});he.set(Vt,zt)}}return We(Dt),Vt};Te.cancel=function(qe){var ut=he.get(qe);return oe(ut),le(ut)};var Ye=Te,Lt=200,Rt=600;function Ft(qe){var ut=qe.prefixCls,Dt=qe.upNode,Vt=qe.downNode,We=qe.upDisabled,pt=qe.downDisabled,zt=qe.onStep,Bt=je.useRef(),en=je.useRef([]),nn=je.useRef();nn.current=zt;var jn=function(){clearTimeout(Bt.current)},Lr=function(fn,Bn){fn.preventDefault(),jn(),nn.current(Bn);function hn(){nn.current(Bn),Bt.current=setTimeout(hn,Lt)}Bt.current=setTimeout(hn,Rt)};je.useEffect(function(){return function(){jn(),en.current.forEach(function(Ct){return Ye.cancel(Ct)})}},[]);var rr=Ae();if(rr)return null;var tr="".concat(ut,"-handler"),dr=Ve()(tr,"".concat(tr,"-up"),(0,we.Z)({},"".concat(tr,"-up-disabled"),We)),fr=Ve()(tr,"".concat(tr,"-down"),(0,we.Z)({},"".concat(tr,"-down-disabled"),pt)),mt=function(){return en.current.push(Ye(jn))},st={unselectable:"on",role:"button",onMouseUp:mt,onMouseLeave:mt};return je.createElement("div",{className:"".concat(tr,"-wrap")},je.createElement("span",(0,ve.Z)({},st,{onMouseDown:function(fn){Lr(fn,!0)},"aria-label":"Increase Value","aria-disabled":We,className:dr}),Dt||je.createElement("span",{unselectable:"on",className:"".concat(ut,"-handler-up-inner")})),je.createElement("span",(0,ve.Z)({},st,{onMouseDown:function(fn){Lr(fn,!1)},"aria-label":"Decrease Value","aria-disabled":pt,className:fr}),Vt||je.createElement("span",{unselectable:"on",className:"".concat(ut,"-handler-down-inner")})))}function Jt(qe){var ut=typeof qe=="number"?Le(qe):ft(qe).fullStr,Dt=ut.includes(".");return Dt?ft(ut.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:qe+"0"}var Xt=se(87887),Hn=function(){var qe=(0,je.useRef)(0),ut=function(){Ye.cancel(qe.current)};return(0,je.useEffect)(function(){return ut},[]),function(Dt){ut(),qe.current=Ye(function(){Dt()})}},Rn=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Tt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],dn=function(ut,Dt){return ut||Dt.isEmpty()?Dt.toString():Dt.toNumber()},cr=function(ut){var Dt=Se(ut);return Dt.isInvalidate()?null:Dt},Mr=je.forwardRef(function(qe,ut){var Dt,Vt=qe.prefixCls,We=Vt===void 0?"rc-input-number":Vt,pt=qe.className,zt=qe.style,Bt=qe.min,en=qe.max,nn=qe.step,jn=nn===void 0?1:nn,Lr=qe.defaultValue,rr=qe.value,tr=qe.disabled,dr=qe.readOnly,fr=qe.upHandler,mt=qe.downHandler,st=qe.keyboard,Ct=qe.controls,fn=Ct===void 0?!0:Ct,Bn=qe.classNames,hn=qe.stringMode,vn=qe.parser,xn=qe.formatter,Nn=qe.precision,hr=qe.decimalSeparator,tn=qe.onChange,Qr=qe.onInput,Ur=qe.onPressEnter,$i=qe.onStep,Ai=(0,me.Z)(qe,Rn),gi="".concat(We,"-input"),qi=je.useRef(null),xi=je.useState(!1),li=(0,xe.Z)(xi,2),Ni=li[0],Gi=li[1],qr=je.useRef(!1),vi=je.useRef(!1),Zi=je.useRef(!1),la=je.useState(function(){return Se(rr!=null?rr:Lr)}),ta=(0,xe.Z)(la,2),ii=ta[0],Et=ta[1];function wt(Yn){rr===void 0&&Et(Yn)}var Qt=je.useCallback(function(Yn,Xn){if(!Xn)return Nn>=0?Nn:Math.max(Je(Yn),Je(jn))},[Nn,jn]),mn=je.useCallback(function(Yn){var Xn=String(Yn);if(vn)return vn(Xn);var ir=Xn;return hr&&(ir=ir.replace(hr,".")),ir.replace(/[^\w.-]+/g,"")},[vn,hr]),On=je.useRef(""),vr=je.useCallback(function(Yn,Xn){if(xn)return xn(Yn,{userTyping:Xn,input:String(On.current)});var ir=typeof Yn=="number"?Le(Yn):Yn;if(!Xn){var ar=Qt(ir,Xn);if(gt(ir)&&(hr||ar>=0)){var xr=hr||".";ir=ke(ir,xr,ar)}}return ir},[xn,Qt,hr]),Ir=je.useState(function(){var Yn=Lr!=null?Lr:rr;return ii.isInvalidate()&&["string","number"].includes((0,Ee.Z)(Yn))?Number.isNaN(Yn)?"":Yn:vr(ii.toString(),!1)}),Wr=(0,xe.Z)(Ir,2),Gr=Wr[0],Hr=Wr[1];On.current=Gr;function ni(Yn,Xn){Hr(vr(Yn.isInvalidate()?Yn.toString(!1):Yn.toString(!Xn),Xn))}var yi=je.useMemo(function(){return cr(en)},[en,Nn]),Ar=je.useMemo(function(){return cr(Bt)},[Bt,Nn]),pi=je.useMemo(function(){return!yi||!ii||ii.isInvalidate()?!1:yi.lessEquals(ii)},[yi,ii]),Ti=je.useMemo(function(){return!Ar||!ii||ii.isInvalidate()?!1:ii.lessEquals(Ar)},[Ar,ii]),Ei=Zt(qi.current,Ni),De=(0,xe.Z)(Ei,2),Fe=De[0],ze=De[1],Ze=function(Xn){return yi&&!Xn.lessEquals(yi)?yi:Ar&&!Ar.lessEquals(Xn)?Ar:null},nt=function(Xn){return!Ze(Xn)},lt=function(Xn,ir){var ar=Xn,xr=nt(ar)||ar.isEmpty();if(!ar.isEmpty()&&!ir&&(ar=Ze(ar)||ar,xr=!0),!dr&&!tr&&xr){var Re=ar.toString(),Ke=Qt(Re,ir);return Ke>=0&&(ar=Se(ke(Re,".",Ke)),nt(ar)||(ar=Se(ke(Re,".",Ke,!0)))),ar.equals(ii)||(wt(ar),tn==null||tn(ar.isEmpty()?null:dn(hn,ar)),rr===void 0&&ni(ar,ir)),ar}return ii},Mt=Hn(),an=function Yn(Xn){if(Fe(),On.current=Xn,Hr(Xn),!vi.current){var ir=mn(Xn),ar=Se(ir);ar.isNaN()||lt(ar,!0)}Qr==null||Qr(Xn),Mt(function(){var xr=Xn;vn||(xr=Xn.replace(/。/g,".")),xr!==Xn&&Yn(xr)})},un=function(){vi.current=!0},Jn=function(){vi.current=!1,an(qi.current.value)},br=function(Xn){an(Xn.target.value)},Vn=function(Xn){var ir;if(!(Xn&&pi||!Xn&&Ti)){qr.current=!1;var ar=Se(Zi.current?Jt(jn):jn);Xn||(ar=ar.negate());var xr=(ii||Se(0)).add(ar.toString()),Re=lt(xr,!1);$i==null||$i(dn(hn,Re),{offset:Zi.current?Jt(jn):jn,type:Xn?"up":"down"}),(ir=qi.current)===null||ir===void 0||ir.focus()}},kn=function(Xn){var ir=Se(mn(Gr)),ar=ir;ir.isNaN()?ar=lt(ii,Xn):ar=lt(ir,Xn),rr!==void 0?ni(ii,!1):ar.isNaN()||ni(ar,!1)},wn=function(){qr.current=!0},Pn=function(Xn){var ir=Xn.key,ar=Xn.shiftKey;qr.current=!0,Zi.current=ar,ir==="Enter"&&(vi.current||(qr.current=!1),kn(!1),Ur==null||Ur(Xn)),st!==!1&&!vi.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ir)&&(Vn(ir==="Up"||ir==="ArrowUp"),Xn.preventDefault())},zn=function(){qr.current=!1,Zi.current=!1},gr=function(){kn(!1),Gi(!1),qr.current=!1};return Xe(function(){ii.isInvalidate()||ni(ii,!1)},[Nn]),Xe(function(){var Yn=Se(rr);Et(Yn);var Xn=Se(mn(Gr));(!Yn.equals(Xn)||!qr.current||xn)&&ni(Yn,qr.current)},[rr]),Xe(function(){xn&&ze()},[Gr]),je.createElement("div",{className:Ve()(We,Bn==null?void 0:Bn.input,pt,(Dt={},(0,we.Z)(Dt,"".concat(We,"-focused"),Ni),(0,we.Z)(Dt,"".concat(We,"-disabled"),tr),(0,we.Z)(Dt,"".concat(We,"-readonly"),dr),(0,we.Z)(Dt,"".concat(We,"-not-a-number"),ii.isNaN()),(0,we.Z)(Dt,"".concat(We,"-out-of-range"),!ii.isInvalidate()&&!nt(ii)),Dt)),style:zt,onFocus:function(){Gi(!0)},onBlur:gr,onKeyDown:Pn,onKeyUp:zn,onCompositionStart:un,onCompositionEnd:Jn,onBeforeInput:wn},fn&&je.createElement(Ft,{prefixCls:We,upNode:fr,downNode:mt,upDisabled:pi,downDisabled:Ti,onStep:Vn}),je.createElement("div",{className:"".concat(gi,"-wrap")},je.createElement("input",(0,ve.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Bt,"aria-valuemax":en,"aria-valuenow":ii.isInvalidate()?null:ii.toString(),step:jn},Ai,{ref:sn(qi,ut),className:gi,value:Gr,onChange:br,disabled:tr,readOnly:dr}))))}),at=je.forwardRef(function(qe,ut){var Dt=qe.disabled,Vt=qe.style,We=qe.prefixCls,pt=qe.value,zt=qe.prefix,Bt=qe.suffix,en=qe.addonBefore,nn=qe.addonAfter,jn=qe.classes,Lr=qe.className,rr=qe.classNames,tr=(0,me.Z)(qe,Tt),dr=je.useRef(null),fr=function(st){dr.current&&(0,Xt.nH)(dr.current,st)};return je.createElement(Ue.BaseInput,{inputElement:je.createElement(Mr,(0,ve.Z)({prefixCls:We,disabled:Dt,classNames:rr,ref:sn(dr,ut)},tr)),className:Lr,triggerFocus:fr,prefixCls:We,value:pt,disabled:Dt,style:Vt,prefix:zt,suffix:Bt,addonAfter:nn,addonBefore:en,classes:jn,classNames:rr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});at.displayName="InputNumber";var Ht=at,Fn=Ht,er=se(9708),nr=se(53124),Sr=se(46735),Tr=se(98866),Er=se(98675),Or=se(65223),Vr=se(4173),ur=se(47673),si=se(14747),Li=se(80110),Bi=se(67968),Hi=se(45503);const ri=(qe,ut)=>{let{componentCls:Dt,borderRadiusSM:Vt,borderRadiusLG:We}=qe;const pt=ut==="lg"?We:Vt;return{[`&-${ut}`]:{[`${Dt}-handler-wrap`]:{borderStartEndRadius:pt,borderEndEndRadius:pt},[`${Dt}-handler-up`]:{borderStartEndRadius:pt},[`${Dt}-handler-down`]:{borderEndEndRadius:pt}}}},yt=qe=>{const{componentCls:ut,lineWidth:Dt,lineType:Vt,colorBorder:We,borderRadius:pt,fontSizeLG:zt,controlHeightLG:Bt,controlHeightSM:en,colorError:nn,paddingInlineSM:jn,colorTextDescription:Lr,motionDurationMid:rr,handleHoverColor:tr,paddingInline:dr,paddingBlock:fr,handleBg:mt,handleActiveBg:st,colorTextDisabled:Ct,borderRadiusSM:fn,borderRadiusLG:Bn,controlWidth:hn,handleVisible:vn,handleBorderColor:xn}=qe;return[{[ut]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,si.Wf)(qe)),(0,ur.ik)(qe)),(0,ur.bi)(qe,ut)),{display:"inline-block",width:hn,margin:0,padding:0,border:`${Dt}px ${Vt} ${We}`,borderRadius:pt,"&-rtl":{direction:"rtl",[`${ut}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:zt,borderRadius:Bn,[`input${ut}-input`]:{height:Bt-2*Dt}},"&-sm":{padding:0,borderRadius:fn,[`input${ut}-input`]:{height:en-2*Dt,padding:`0 ${jn}px`}},"&:hover":Object.assign({},(0,ur.pU)(qe)),"&-focused":Object.assign({},(0,ur.M1)(qe)),"&-out-of-range":{[`${ut}-input-wrap`]:{input:{color:nn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,si.Wf)(qe)),(0,ur.s7)(qe)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ut}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ut}-group-addon`]:{borderRadius:Bn,fontSize:qe.fontSizeLG}},"&-sm":{[`${ut}-group-addon`]:{borderRadius:fn}},[`${ut}-wrapper-disabled > ${ut}-group-addon`]:Object.assign({},(0,ur.Xy)(qe))}}),[`&-disabled ${ut}-input`]:{cursor:"not-allowed"},[ut]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,si.Wf)(qe)),{width:"100%",padding:`${fr}px ${dr}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:pt,outline:0,transition:`all ${rr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,ur.nz)(qe.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[ut]:Object.assign(Object.assign(Object.assign({[`&:hover ${ut}-handler-wrap, &-focused ${ut}-handler-wrap`]:{opacity:1},[`${ut}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:qe.handleWidth,height:"100%",background:mt,borderStartStartRadius:0,borderStartEndRadius:pt,borderEndEndRadius:pt,borderEndStartRadius:0,opacity:vn===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${rr} linear ${rr}`,[`${ut}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${ut}-handler-up-inner, ${ut}-handler-down-inner `]:{marginInlineEnd:0,fontSize:qe.handleFontSize}}},[`${ut}-handler`]:{height:"50%",overflow:"hidden",color:Lr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Dt}px ${Vt} ${xn}`,transition:`all ${rr} linear`,"&:active":{background:st},"&:hover":{height:"60%",[` ${ut}-handler-up-inner, ${ut}-handler-down-inner `]:{color:tr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,si.Ro)()),{color:Lr,transition:`all ${rr} linear`,userSelect:"none"})},[`${ut}-handler-up`]:{borderStartEndRadius:pt},[`${ut}-handler-down`]:{borderBlockStart:`${Dt}px ${Vt} ${xn}`,borderEndEndRadius:pt}},ri(qe,"lg")),ri(qe,"sm")),{"&-disabled, &-readonly":{[`${ut}-handler-wrap`]:{display:"none"},[`${ut}-input`]:{color:"inherit"}},[` ${ut}-handler-up-disabled, ${ut}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${ut}-handler-up-disabled:hover &-handler-up-inner, ${ut}-handler-down-disabled:hover &-handler-down-inner `]:{color:Ct}})},{[`${ut}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${ut}-handler-down`]:{borderBlockStartWidth:0}}}]},Mn=qe=>{const{componentCls:ut,paddingBlock:Dt,paddingInline:Vt,inputAffixPadding:We,controlWidth:pt,borderRadiusLG:zt,borderRadiusSM:Bt}=qe;return{[`${ut}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,ur.ik)(qe)),(0,ur.bi)(qe,`${ut}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:pt,padding:0,paddingInlineStart:Vt,"&-lg":{borderRadius:zt},"&-sm":{borderRadius:Bt},[`&:not(${ut}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,ur.pU)(qe)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ut}-disabled`]:{background:"transparent"},[`> div${ut}`]:{width:"100%",border:"none",outline:"none",[`&${ut}-focused`]:{boxShadow:"none !important"}},[`input${ut}-input`]:{padding:`${Dt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ut}-handler-wrap`]:{zIndex:2},[ut]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:We},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Vt,marginInlineStart:We}}})}};var An=(0,Bi.Z)("InputNumber",qe=>{const ut=(0,Hi.TS)(qe,(0,ur.e5)(qe));return[yt(ut),Mn(ut),(0,Li.c)(ut)]},qe=>Object.assign(Object.assign({},(0,ur.TM)(qe)),{controlWidth:90,handleWidth:qe.controlHeightSM-qe.lineWidth*2,handleFontSize:qe.fontSize/2,handleVisible:"auto",handleActiveBg:qe.colorFillAlter,handleBg:qe.colorBgContainer,handleHoverColor:qe.colorPrimary,handleBorderColor:qe.colorBorder})),Dn=function(qe,ut){var Dt={};for(var Vt in qe)Object.prototype.hasOwnProperty.call(qe,Vt)&&ut.indexOf(Vt)<0&&(Dt[Vt]=qe[Vt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Vt=Object.getOwnPropertySymbols(qe);We{const{getPrefixCls:Dt,direction:Vt}=je.useContext(nr.E_),We=je.useRef(null);je.useImperativeHandle(ut,()=>We.current);const{className:pt,rootClassName:zt,size:Bt,disabled:en,prefixCls:nn,addonBefore:jn,addonAfter:Lr,prefix:rr,bordered:tr=!0,readOnly:dr,status:fr,controls:mt}=qe,st=Dn(qe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Ct=Dt("input-number",nn),[fn,Bn]=An(Ct),{compactSize:hn,compactItemClassnames:vn}=(0,Vr.ri)(Ct,Vt);let xn=je.createElement(He.Z,{className:`${Ct}-handler-up-inner`}),Nn=je.createElement(de.Z,{className:`${Ct}-handler-down-inner`});const hr=typeof mt=="boolean"?mt:void 0;typeof mt=="object"&&(xn=typeof mt.upIcon=="undefined"?xn:je.createElement("span",{className:`${Ct}-handler-up-inner`},mt.upIcon),Nn=typeof mt.downIcon=="undefined"?Nn:je.createElement("span",{className:`${Ct}-handler-down-inner`},mt.downIcon));const{hasFeedback:tn,status:Qr,isFormItemInput:Ur,feedbackIcon:$i}=je.useContext(Or.aM),Ai=(0,er.F)(Qr,fr),gi=(0,Er.Z)(qr=>{var vi;return(vi=Bt!=null?Bt:hn)!==null&&vi!==void 0?vi:qr}),qi=je.useContext(Tr.Z),xi=en!=null?en:qi,li=Ve()({[`${Ct}-lg`]:gi==="large",[`${Ct}-sm`]:gi==="small",[`${Ct}-rtl`]:Vt==="rtl",[`${Ct}-borderless`]:!tr,[`${Ct}-in-form-item`]:Ur},(0,er.Z)(Ct,Ai),vn,Bn),Ni=`${Ct}-group`,Gi=je.createElement(Fn,Object.assign({ref:We,disabled:xi,className:Ve()(pt,zt),upHandler:xn,downHandler:Nn,prefixCls:Ct,readOnly:dr,controls:hr,prefix:rr,suffix:tn&&$i,addonAfter:Lr&&je.createElement(Vr.BR,null,je.createElement(Or.Ux,{override:!0,status:!0},Lr)),addonBefore:jn&&je.createElement(Vr.BR,null,je.createElement(Or.Ux,{override:!0,status:!0},jn)),classNames:{input:li},classes:{affixWrapper:Ve()((0,er.Z)(`${Ct}-affix-wrapper`,Ai,tn),{[`${Ct}-affix-wrapper-sm`]:gi==="small",[`${Ct}-affix-wrapper-lg`]:gi==="large",[`${Ct}-affix-wrapper-rtl`]:Vt==="rtl",[`${Ct}-affix-wrapper-borderless`]:!tr},Bn),wrapper:Ve()({[`${Ni}-rtl`]:Vt==="rtl",[`${Ct}-wrapper-disabled`]:xi},Bn),group:Ve()({[`${Ct}-group-wrapper-sm`]:gi==="small",[`${Ct}-group-wrapper-lg`]:gi==="large",[`${Ct}-group-wrapper-rtl`]:Vt==="rtl"},(0,er.Z)(`${Ct}-group-wrapper`,Ai,tn),Bn)}},st));return fn(Gi)}),qn=lr,pr=qe=>je.createElement(Sr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},je.createElement(lr,Object.assign({},qe)));qn._InternalPanelDoNotUseOrYouWillBeFired=pr;var $n=qn},82586:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return qt},n:function(){return Le}});var de=se(16646),He=se(94184),Be=se.n(He),Ve=se(67656),ve=se(17799),we=se(67294),Ee=se(9708),xe=se(53124),me=se(98866),Ie=se(98675),ot=se(65223),Oe=se(4173),St=se(72922),ft=se(47673);function it(tt){return!!(tt.prefix||tt.suffix||tt.allowClear)}var Je=function(tt,ct){var ke={};for(var Se in tt)Object.prototype.hasOwnProperty.call(tt,Se)&&ct.indexOf(Se)<0&&(ke[Se]=tt[Se]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Se=Object.getOwnPropertySymbols(tt);Ue{var ke;const{prefixCls:Se,bordered:Ue=!0,status:je,size:_t,disabled:vt,onBlur:kt,onFocus:Xe,suffix:Kt,allowClear:Ot,addonAfter:bn,addonBefore:Nt,className:sn,style:Cn,styles:or,rootClassName:Qe,onChange:Ce,classNames:ht}=tt,Ut=Je(tt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Yt,direction:Ge,input:rt}=we.useContext(xe.E_),jt=Yt("input",Se),_n=(0,we.useRef)(null),[rn,$t]=(0,ft.ZP)(jt),{compactSize:Zt,compactItemClassnames:yn}=(0,Oe.ri)(jt,Ge),ln=(0,Ie.Z)(Rn=>{var Tt;return(Tt=_t!=null?_t:Zt)!==null&&Tt!==void 0?Tt:Rn}),Ae=we.useContext(me.Z),ue=vt!=null?vt:Ae,{status:le,hasFeedback:pe,feedbackIcon:he}=(0,we.useContext)(ot.aM),oe=(0,Ee.F)(le,je),Te=it(tt)||!!pe,Ye=(0,we.useRef)(Te);(0,we.useEffect)(()=>{var Rn;Te&&Ye.current,Ye.current=Te},[Te]);const Lt=(0,St.Z)(_n,!0),Rt=Rn=>{Lt(),kt==null||kt(Rn)},Ft=Rn=>{Lt(),Xe==null||Xe(Rn)},Jt=Rn=>{Lt(),Ce==null||Ce(Rn)},Xt=(pe||Kt)&&we.createElement(we.Fragment,null,Kt,pe&&he);let Hn;return typeof Ot=="object"&&(Ot!=null&&Ot.clearIcon)?Hn=Ot:Ot&&(Hn={clearIcon:we.createElement(de.Z,null)}),rn(we.createElement(Ve.default,Object.assign({ref:(0,ve.sQ)(ct,_n),prefixCls:jt,autoComplete:rt==null?void 0:rt.autoComplete},Ut,{disabled:ue,onBlur:Rt,onFocus:Ft,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),Cn),styles:Object.assign(Object.assign({},rt==null?void 0:rt.styles),or),suffix:Xt,allowClear:Hn,className:Be()(sn,Qe,yn,rt==null?void 0:rt.className),onChange:Jt,addonAfter:bn&&we.createElement(Oe.BR,null,we.createElement(ot.Ux,{override:!0,status:!0},bn)),addonBefore:Nt&&we.createElement(Oe.BR,null,we.createElement(ot.Ux,{override:!0,status:!0},Nt)),classNames:Object.assign(Object.assign(Object.assign({},ht),rt==null?void 0:rt.classNames),{input:Be()({[`${jt}-sm`]:ln==="small",[`${jt}-lg`]:ln==="large",[`${jt}-rtl`]:Ge==="rtl",[`${jt}-borderless`]:!Ue},!Te&&(0,Ee.Z)(jt,oe),ht==null?void 0:ht.input,(ke=rt==null?void 0:rt.classNames)===null||ke===void 0?void 0:ke.input,$t)}),classes:{affixWrapper:Be()({[`${jt}-affix-wrapper-sm`]:ln==="small",[`${jt}-affix-wrapper-lg`]:ln==="large",[`${jt}-affix-wrapper-rtl`]:Ge==="rtl",[`${jt}-affix-wrapper-borderless`]:!Ue},(0,Ee.Z)(`${jt}-affix-wrapper`,oe,pe),$t),wrapper:Be()({[`${jt}-group-rtl`]:Ge==="rtl"},$t),group:Be()({[`${jt}-group-wrapper-sm`]:ln==="small",[`${jt}-group-wrapper-lg`]:ln==="large",[`${jt}-group-wrapper-rtl`]:Ge==="rtl",[`${jt}-group-wrapper-disabled`]:ue},(0,Ee.Z)(`${jt}-group-wrapper`,oe,pe),$t)}})))})},96330:function(En,Wt,se){"use strict";var de=se(16646),He=se(94184),Be=se.n(He),Ve=se(64701),ve=se(67294),we=se(9708),Ee=se(53124),xe=se(98866),me=se(98675),Ie=se(65223),ot=se(82586),Oe=se(47673),St=function(it,Je){var Le={};for(var gt in it)Object.prototype.hasOwnProperty.call(it,gt)&&Je.indexOf(gt)<0&&(Le[gt]=it[gt]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,gt=Object.getOwnPropertySymbols(it);qt{const{prefixCls:Le,bordered:gt=!0,size:qt,disabled:tt,status:ct,allowClear:ke,showCount:Se,classNames:Ue,rootClassName:je,className:_t}=it,vt=St(it,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:kt,direction:Xe}=ve.useContext(Ee.E_),Kt=(0,me.Z)(qt),Ot=ve.useContext(xe.Z),bn=tt!=null?tt:Ot,{status:Nt,hasFeedback:sn,feedbackIcon:Cn}=ve.useContext(Ie.aM),or=(0,we.F)(Nt,ct),Qe=ve.useRef(null);ve.useImperativeHandle(Je,()=>{var Ge;return{resizableTextArea:(Ge=Qe.current)===null||Ge===void 0?void 0:Ge.resizableTextArea,focus:rt=>{var jt,_n;(0,ot.n)((_n=(jt=Qe.current)===null||jt===void 0?void 0:jt.resizableTextArea)===null||_n===void 0?void 0:_n.textArea,rt)},blur:()=>{var rt;return(rt=Qe.current)===null||rt===void 0?void 0:rt.blur()}}});const Ce=kt("input",Le);let ht;typeof ke=="object"&&(ke!=null&&ke.clearIcon)?ht=ke:ke&&(ht={clearIcon:ve.createElement(de.Z,null)});const[Ut,Yt]=(0,Oe.ZP)(Ce);return Ut(ve.createElement(Ve.default,Object.assign({},vt,{disabled:bn,allowClear:ht,className:Be()(_t,je),classes:{affixWrapper:Be()(`${Ce}-textarea-affix-wrapper`,{[`${Ce}-affix-wrapper-rtl`]:Xe==="rtl",[`${Ce}-affix-wrapper-borderless`]:!gt,[`${Ce}-affix-wrapper-sm`]:Kt==="small",[`${Ce}-affix-wrapper-lg`]:Kt==="large",[`${Ce}-textarea-show-count`]:Se},(0,we.Z)(`${Ce}-affix-wrapper`,or),Yt)},classNames:Object.assign(Object.assign({},Ue),{textarea:Be()({[`${Ce}-borderless`]:!gt,[`${Ce}-sm`]:Kt==="small",[`${Ce}-lg`]:Kt==="large"},(0,we.Z)(Ce,or),Yt,Ue==null?void 0:Ue.textarea)}),prefixCls:Ce,suffix:sn&&ve.createElement("span",{className:`${Ce}-textarea-suffix`},Cn),showCount:Se,ref:Qe})))});Wt.Z=ft},72922:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return He}});var de=se(67294);function He(Be,Ve){const ve=(0,de.useRef)([]),we=()=>{ve.current.push(setTimeout(()=>{var Ee,xe,me,Ie;!((Ee=Be.current)===null||Ee===void 0)&&Ee.input&&((xe=Be.current)===null||xe===void 0?void 0:xe.input.getAttribute("type"))==="password"&&(!((me=Be.current)===null||me===void 0)&&me.input.hasAttribute("value"))&&((Ie=Be.current)===null||Ie===void 0||Ie.input.removeAttribute("value"))}))};return(0,de.useEffect)(()=>(Ve&&we(),()=>ve.current.forEach(Ee=>{Ee&&clearTimeout(Ee)})),[]),we}},69677:function(En,Wt,se){"use strict";se.d(Wt,{default:function(){return Kt}});var de=se(94184),He=se.n(de),Be=se(67294),Ve=se(53124),ve=se(65223),we=se(47673),xe=Ot=>{const{getPrefixCls:bn,direction:Nt}=(0,Be.useContext)(Ve.E_),{prefixCls:sn,className:Cn}=Ot,or=bn("input-group",sn),Qe=bn("input"),[Ce,ht]=(0,we.ZP)(Qe),Ut=He()(or,{[`${or}-lg`]:Ot.size==="large",[`${or}-sm`]:Ot.size==="small",[`${or}-compact`]:Ot.compact,[`${or}-rtl`]:Nt==="rtl"},ht,Cn),Yt=(0,Be.useContext)(ve.aM),Ge=(0,Be.useMemo)(()=>Object.assign(Object.assign({},Yt),{isFormItemInput:!1}),[Yt]);return Ce(Be.createElement("span",{className:Ut,style:Ot.style,onMouseEnter:Ot.onMouseEnter,onMouseLeave:Ot.onMouseLeave,onFocus:Ot.onFocus,onBlur:Ot.onBlur},Be.createElement(ve.aM.Provider,{value:Ge},Ot.children)))},me=se(82586),Ie=se(63237),ot=se(99569),Oe=se(10366),St=se(17799),ft=se(72922),it=function(Ot,bn){var Nt={};for(var sn in Ot)Object.prototype.hasOwnProperty.call(Ot,sn)&&bn.indexOf(sn)<0&&(Nt[sn]=Ot[sn]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Cn=0,sn=Object.getOwnPropertySymbols(Ot);CnOt?Be.createElement(ot.Z,null):Be.createElement(Ie.Z,null),Le={click:"onClick",hover:"onMouseOver"};var qt=Be.forwardRef((Ot,bn)=>{const{visibilityToggle:Nt=!0}=Ot,sn=typeof Nt=="object"&&Nt.visible!==void 0,[Cn,or]=(0,Be.useState)(()=>sn?Nt.visible:!1),Qe=(0,Be.useRef)(null);Be.useEffect(()=>{sn&&or(Nt.visible)},[sn,Nt]);const Ce=(0,ft.Z)(Qe),ht=()=>{const{disabled:ue}=Ot;ue||(Cn&&Ce(),or(le=>{var pe;const he=!le;return typeof Nt=="object"&&((pe=Nt.onVisibleChange)===null||pe===void 0||pe.call(Nt,he)),he}))},Ut=ue=>{const{action:le="click",iconRender:pe=Je}=Ot,he=Le[le]||"",oe=pe(Cn),Te={[he]:ht,className:`${ue}-icon`,key:"passwordIcon",onMouseDown:Ye=>{Ye.preventDefault()},onMouseUp:Ye=>{Ye.preventDefault()}};return Be.cloneElement(Be.isValidElement(oe)?oe:Be.createElement("span",null,oe),Te)},{className:Yt,prefixCls:Ge,inputPrefixCls:rt,size:jt}=Ot,_n=it(Ot,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:rn}=Be.useContext(Ve.E_),$t=rn("input",rt),Zt=rn("input-password",Ge),yn=Nt&&Ut(Zt),ln=He()(Zt,Yt,{[`${Zt}-${jt}`]:!!jt}),Ae=Object.assign(Object.assign({},(0,Oe.Z)(_n,["suffix","iconRender","visibilityToggle"])),{type:Cn?"text":"password",className:ln,prefixCls:$t,suffix:yn});return jt&&(Ae.size=jt),Be.createElement(me.Z,Object.assign({ref:(0,St.sQ)(bn,Qe)},Ae))}),tt=se(72395),ct=se(96159),ke=se(71577),Se=se(98675),Ue=se(4173),je=function(Ot,bn){var Nt={};for(var sn in Ot)Object.prototype.hasOwnProperty.call(Ot,sn)&&bn.indexOf(sn)<0&&(Nt[sn]=Ot[sn]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Cn=0,sn=Object.getOwnPropertySymbols(Ot);Cn{const{prefixCls:Nt,inputPrefixCls:sn,className:Cn,size:or,suffix:Qe,enterButton:Ce=!1,addonAfter:ht,loading:Ut,disabled:Yt,onSearch:Ge,onChange:rt,onCompositionStart:jt,onCompositionEnd:_n}=Ot,rn=je(Ot,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:$t,direction:Zt}=Be.useContext(Ve.E_),yn=Be.useRef(!1),ln=$t("input-search",Nt),Ae=$t("input",sn),{compactSize:ue}=(0,Ue.ri)(ln,Zt),le=(0,Se.Z)(dn=>{var cr;return(cr=or!=null?or:ue)!==null&&cr!==void 0?cr:dn}),pe=Be.useRef(null),he=dn=>{dn&&dn.target&&dn.type==="click"&&Ge&&Ge(dn.target.value,dn,{source:"clear"}),rt&&rt(dn)},oe=dn=>{var cr;document.activeElement===((cr=pe.current)===null||cr===void 0?void 0:cr.input)&&dn.preventDefault()},Te=dn=>{var cr,Mr;Ge&&Ge((Mr=(cr=pe.current)===null||cr===void 0?void 0:cr.input)===null||Mr===void 0?void 0:Mr.value,dn,{source:"input"})},Ye=dn=>{yn.current||Ut||Te(dn)},Lt=typeof Ce=="boolean"?Be.createElement(tt.Z,null):null,Rt=`${ln}-button`;let Ft;const Jt=Ce||{},Xt=Jt.type&&Jt.type.__ANT_BUTTON===!0;Xt||Jt.type==="button"?Ft=(0,ct.Tm)(Jt,Object.assign({onMouseDown:oe,onClick:dn=>{var cr,Mr;(Mr=(cr=Jt==null?void 0:Jt.props)===null||cr===void 0?void 0:cr.onClick)===null||Mr===void 0||Mr.call(cr,dn),Te(dn)},key:"enterButton"},Xt?{className:Rt,size:le}:{})):Ft=Be.createElement(ke.ZP,{className:Rt,type:Ce?"primary":void 0,size:le,disabled:Yt,key:"enterButton",onMouseDown:oe,onClick:Te,loading:Ut,icon:Lt},Ce),ht&&(Ft=[Ft,(0,ct.Tm)(ht,{key:"addonAfter"})]);const Hn=He()(ln,{[`${ln}-rtl`]:Zt==="rtl",[`${ln}-${le}`]:!!le,[`${ln}-with-button`]:!!Ce},Cn),Rn=dn=>{yn.current=!0,jt==null||jt(dn)},Tt=dn=>{yn.current=!1,_n==null||_n(dn)};return Be.createElement(me.Z,Object.assign({ref:(0,St.sQ)(pe,bn),onPressEnter:Ye},rn,{size:le,onCompositionStart:Rn,onCompositionEnd:Tt,prefixCls:Ae,addonAfter:Ft,suffix:Qe,onChange:he,className:Hn,disabled:Yt}))}),kt=se(96330);const Xe=me.Z;Xe.Group=xe,Xe.Search=vt,Xe.TextArea=kt.Z,Xe.Password=qt;var Kt=Xe},47673:function(En,Wt,se){"use strict";se.d(Wt,{M1:function(){return Ee},TM:function(){return ct},Xy:function(){return xe},bi:function(){return ot},e5:function(){return tt},ik:function(){return Oe},nz:function(){return ve},pU:function(){return we},s7:function(){return St},x0:function(){return Ie}});var de=se(14747),He=se(80110),Be=se(45503),Ve=se(67968);const ve=ke=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:ke,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),we=ke=>({borderColor:ke.hoverBorderColor}),Ee=ke=>({borderColor:ke.activeBorderColor,boxShadow:ke.activeShadow,outline:0}),xe=ke=>({color:ke.colorTextDisabled,backgroundColor:ke.colorBgContainerDisabled,borderColor:ke.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},we((0,Be.TS)(ke,{hoverBorderColor:ke.colorBorder})))}),me=ke=>{const{paddingBlockLG:Se,fontSizeLG:Ue,lineHeightLG:je,borderRadiusLG:_t,paddingInlineLG:vt}=ke;return{padding:`${Se}px ${vt}px`,fontSize:Ue,lineHeight:je,borderRadius:_t}},Ie=ke=>({padding:`${ke.paddingBlockSM}px ${ke.paddingInlineSM}px`,borderRadius:ke.borderRadiusSM}),ot=(ke,Se)=>{const{componentCls:Ue,colorError:je,colorWarning:_t,errorActiveShadow:vt,warningActiveShadow:kt,colorErrorBorderHover:Xe,colorWarningBorderHover:Kt}=ke;return{[`&-status-error:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:je,"&:hover":{borderColor:Xe},"&:focus, &-focused":Object.assign({},Ee((0,Be.TS)(ke,{activeBorderColor:je,activeShadow:vt}))),[`${Ue}-prefix, ${Ue}-suffix`]:{color:je}},[`&-status-warning:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:_t,"&:hover":{borderColor:Kt},"&:focus, &-focused":Object.assign({},Ee((0,Be.TS)(ke,{activeBorderColor:_t,activeShadow:kt}))),[`${Ue}-prefix, ${Ue}-suffix`]:{color:_t}}}},Oe=ke=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ke.paddingBlock}px ${ke.paddingInline}px`,color:ke.colorText,fontSize:ke.fontSize,lineHeight:ke.lineHeight,backgroundColor:ke.colorBgContainer,backgroundImage:"none",borderWidth:ke.lineWidth,borderStyle:ke.lineType,borderColor:ke.colorBorder,borderRadius:ke.borderRadius,transition:`all ${ke.motionDurationMid}`},ve(ke.colorTextPlaceholder)),{"&:hover":Object.assign({},we(ke)),"&:focus, &-focused":Object.assign({},Ee(ke)),"&-disabled, &[disabled]":Object.assign({},xe(ke)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:ke.controlHeight,lineHeight:ke.lineHeight,verticalAlign:"bottom",transition:`all ${ke.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},me(ke)),"&-sm":Object.assign({},Ie(ke)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),St=ke=>{const{componentCls:Se,antCls:Ue}=ke;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:ke.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Se}, &-lg > ${Se}-group-addon`]:Object.assign({},me(ke)),[`&-sm ${Se}, &-sm > ${Se}-group-addon`]:Object.assign({},Ie(ke)),[`&-lg ${Ue}-select-single ${Ue}-select-selector`]:{height:ke.controlHeightLG},[`&-sm ${Ue}-select-single ${Ue}-select-selector`]:{height:ke.controlHeightSM},[`> ${Se}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Se}-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 ${ke.paddingInline}px`,color:ke.colorText,fontWeight:"normal",fontSize:ke.fontSize,textAlign:"center",backgroundColor:ke.colorFillAlter,border:`${ke.lineWidth}px ${ke.lineType} ${ke.colorBorder}`,borderRadius:ke.borderRadius,transition:`all ${ke.motionDurationSlow}`,lineHeight:1,[`${Ue}-select`]:{margin:`-${ke.paddingBlock+1}px -${ke.paddingInline}px`,[`&${Ue}-select-single:not(${Ue}-select-customize-input)`]:{[`${Ue}-select-selector`]:{backgroundColor:"inherit",border:`${ke.lineWidth}px ${ke.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ue}-select-selector`]:{color:ke.colorPrimary}}},[`${Ue}-cascader-picker`]:{margin:`-9px -${ke.paddingInline}px`,backgroundColor:"transparent",[`${Ue}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Se}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Se}-search-with-button &`]:{zIndex:0}}},[`> ${Se}:first-child, ${Se}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ue}-select ${Ue}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Se}-affix-wrapper`]:{[`&:not(:first-child) ${Se}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Se}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Se}:last-child, ${Se}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ue}-select ${Ue}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Se}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Se}-search &`]:{borderStartStartRadius:ke.borderRadius,borderEndStartRadius:ke.borderRadius}},[`&:not(:first-child), ${Se}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Se}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,de.dF)()),{[`${Se}-group-addon, ${Se}-group-wrap, > ${Se}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:ke.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${Se}-affix-wrapper, & > ${Se}-number-affix-wrapper, & > ${Ue}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-ke.lineWidth,borderInlineEndWidth:ke.lineWidth},[`${Se}`]:{float:"none"},[`& > ${Ue}-select > ${Ue}-select-selector, & > ${Ue}-select-auto-complete ${Se}, & > ${Ue}-cascader-picker ${Se}, & > ${Se}-group-wrapper ${Se}`]:{borderInlineEndWidth:ke.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ue}-select-focused`]:{zIndex:1},[`& > ${Ue}-select > ${Ue}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${Ue}-select:first-child > ${Ue}-select-selector, & > ${Ue}-select-auto-complete:first-child ${Se}, & > ${Ue}-cascader-picker:first-child ${Se}`]:{borderStartStartRadius:ke.borderRadius,borderEndStartRadius:ke.borderRadius},[`& > *:last-child, & > ${Ue}-select:last-child > ${Ue}-select-selector, & > ${Ue}-cascader-picker:last-child ${Se}, & > ${Ue}-cascader-picker-focused:last-child ${Se}`]:{borderInlineEndWidth:ke.lineWidth,borderStartEndRadius:ke.borderRadius,borderEndEndRadius:ke.borderRadius},[`& > ${Ue}-select-auto-complete ${Se}`]:{verticalAlign:"top"},[`${Se}-group-wrapper + ${Se}-group-wrapper`]:{marginInlineStart:-ke.lineWidth,[`${Se}-affix-wrapper`]:{borderRadius:0}},[`${Se}-group-wrapper:not(:last-child)`]:{[`&${Se}-search > ${Se}-group`]:{[`& > ${Se}-group-addon > ${Se}-search-button`]:{borderRadius:0},[`& > ${Se}`]:{borderStartStartRadius:ke.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ke.borderRadius}}}})}},ft=ke=>{const{componentCls:Se,controlHeightSM:Ue,lineWidth:je}=ke,vt=(Ue-je*2-16)/2;return{[Se]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(ke)),Oe(ke)),ot(ke,Se)),{'&[type="color"]':{height:ke.controlHeight,[`&${Se}-lg`]:{height:ke.controlHeightLG},[`&${Se}-sm`]:{height:Ue,paddingTop:vt,paddingBottom:vt}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},it=ke=>{const{componentCls:Se}=ke;return{[`${Se}-clear-icon`]:{margin:0,color:ke.colorTextQuaternary,fontSize:ke.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${ke.motionDurationSlow}`,"&:hover":{color:ke.colorTextTertiary},"&:active":{color:ke.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ke.inputAffixPadding}px`}}}},Je=ke=>{const{componentCls:Se,inputAffixPadding:Ue,colorTextDescription:je,motionDurationSlow:_t,colorIcon:vt,colorIconHover:kt,iconCls:Xe}=ke;return{[`${Se}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oe(ke)),{display:"inline-flex",[`&:not(${Se}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},we(ke)),{zIndex:1,[`${Se}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Se}[disabled]`]:{background:"transparent"}},[`> input${Se}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Se}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:ke.paddingXS}},"&-show-count-suffix":{color:je},"&-show-count-has-suffix":{marginInlineEnd:ke.paddingXXS},"&-prefix":{marginInlineEnd:Ue},"&-suffix":{marginInlineStart:Ue}}}),it(ke)),{[`${Xe}${Se}-password-icon`]:{color:vt,cursor:"pointer",transition:`all ${_t}`,"&:hover":{color:kt}}}),ot(ke,`${Se}-affix-wrapper`))}},Le=ke=>{const{componentCls:Se,colorError:Ue,colorWarning:je,borderRadiusLG:_t,borderRadiusSM:vt}=ke;return{[`${Se}-group`]:Object.assign(Object.assign(Object.assign({},(0,de.Wf)(ke)),St(ke)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Se}-group-addon`]:{borderRadius:_t,fontSize:ke.fontSizeLG}},"&-sm":{[`${Se}-group-addon`]:{borderRadius:vt}},"&-status-error":{[`${Se}-group-addon`]:{color:Ue,borderColor:Ue}},"&-status-warning":{[`${Se}-group-addon`]:{color:je,borderColor:je}},"&-disabled":{[`${Se}-group-addon`]:Object.assign({},xe(ke))},[`&:not(${Se}-compact-first-item):not(${Se}-compact-last-item)${Se}-compact-item`]:{[`${Se}, ${Se}-group-addon`]:{borderRadius:0}},[`&:not(${Se}-compact-last-item)${Se}-compact-first-item`]:{[`${Se}, ${Se}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Se}-compact-first-item)${Se}-compact-last-item`]:{[`${Se}, ${Se}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},gt=ke=>{const{componentCls:Se,antCls:Ue}=ke,je=`${Se}-search`;return{[je]:{[`${Se}`]:{"&:hover, &:focus":{borderColor:ke.colorPrimaryHover,[`+ ${Se}-group-addon ${je}-button:not(${Ue}-btn-primary)`]:{borderInlineStartColor:ke.colorPrimaryHover}}},[`${Se}-affix-wrapper`]:{borderRadius:0},[`${Se}-lg`]:{lineHeight:ke.lineHeightLG-2e-4},[`> ${Se}-group`]:{[`> ${Se}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${je}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:ke.borderRadius,borderEndEndRadius:ke.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${je}-button:not(${Ue}-btn-primary)`]:{color:ke.colorTextDescription,"&:hover":{color:ke.colorPrimaryHover},"&:active":{color:ke.colorPrimaryActive},[`&${Ue}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${je}-button`]:{height:ke.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${je}-button`]:{height:ke.controlHeightLG},[`&-small ${je}-button`]:{height:ke.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Se}-compact-item`]:{[`&:not(${Se}-compact-last-item)`]:{[`${Se}-group-addon`]:{[`${Se}-search-button`]:{marginInlineEnd:-ke.lineWidth,borderRadius:0}}},[`&:not(${Se}-compact-first-item)`]:{[`${Se},${Se}-affix-wrapper`]:{borderRadius:0}},[`> ${Se}-group-addon ${Se}-search-button, > ${Se}, ${Se}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Se}-affix-wrapper-focused`]:{zIndex:2}}}}},qt=ke=>{const{componentCls:Se,paddingLG:Ue}=ke,je=`${Se}-textarea`;return{[je]:{position:"relative","&-show-count":{[`> ${Se}`]:{height:"100%"},[`${Se}-data-count`]:{position:"absolute",bottom:-ke.fontSize*ke.lineHeight,insetInlineEnd:0,color:ke.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Se}`]:{paddingInlineEnd:Ue}},[`&-affix-wrapper${je}-has-feedback`]:{[`${Se}`]:{paddingInlineEnd:Ue}},[`&-affix-wrapper${Se}-affix-wrapper`]:{padding:0,[`> textarea${Se}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Se}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Se}-clear-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,insetBlockStart:ke.paddingXS},[`${je}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ke.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function tt(ke){return(0,Be.TS)(ke,{inputAffixPadding:ke.paddingXXS})}const ct=ke=>{const{controlHeight:Se,fontSize:Ue,lineHeight:je,lineWidth:_t,controlHeightSM:vt,controlHeightLG:kt,fontSizeLG:Xe,lineHeightLG:Kt,paddingSM:Ot,controlPaddingHorizontalSM:bn,controlPaddingHorizontal:Nt,colorFillAlter:sn,colorPrimaryHover:Cn,controlOutlineWidth:or,controlOutline:Qe,colorErrorOutline:Ce,colorWarningOutline:ht}=ke;return{paddingBlock:Math.max(Math.round((Se-Ue*je)/2*10)/10-_t,3),paddingBlockSM:Math.max(Math.round((vt-Ue*je)/2*10)/10-_t,0),paddingBlockLG:Math.ceil((kt-Xe*Kt)/2*10)/10-_t,paddingInline:Ot-_t,paddingInlineSM:bn-_t,paddingInlineLG:Nt-_t,addonBg:sn,activeBorderColor:Cn,hoverBorderColor:Cn,activeShadow:`0 0 0 ${or}px ${Qe}`,errorActiveShadow:`0 0 0 ${or}px ${Ce}`,warningActiveShadow:`0 0 0 ${or}px ${ht}`}};Wt.ZP=(0,Ve.Z)("Input",ke=>{const Se=(0,Be.TS)(ke,tt(ke));return[ft(Se),qt(Se),Je(Se),Le(Se),gt(Se),(0,He.c)(Se)]},ct)},71322:function(En,Wt,se){"use strict";se.d(Wt,{D:function(){return qt},Z:function(){return ke}});var de=se(87462),He=se(67294),Be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ve=Be,ve=se(74643),we=function(Ue,je){return He.createElement(ve.Z,(0,de.Z)({},Ue,{ref:je,icon:Ve}))},Ee=He.forwardRef(we),xe=se(22751),me=se(91034),Ie=se(94184),ot=se.n(Ie),Oe=se(10366),ft=Se=>!isNaN(parseFloat(Se))&&isFinite(Se),it=se(53124),Je=se(84321),Le=function(Se,Ue){var je={};for(var _t in Se)Object.prototype.hasOwnProperty.call(Se,_t)&&Ue.indexOf(_t)<0&&(je[_t]=Se[_t]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,_t=Object.getOwnPropertySymbols(Se);vt<_t.length;vt++)Ue.indexOf(_t[vt])<0&&Object.prototype.propertyIsEnumerable.call(Se,_t[vt])&&(je[_t[vt]]=Se[_t[vt]]);return je};const gt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},qt=He.createContext({}),tt=(()=>{let Se=0;return function(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Se+=1,`${Ue}${Se}`}})();var ke=He.forwardRef((Se,Ue)=>{const{prefixCls:je,className:_t,trigger:vt,children:kt,defaultCollapsed:Xe=!1,theme:Kt="dark",style:Ot={},collapsible:bn=!1,reverseArrow:Nt=!1,width:sn=200,collapsedWidth:Cn=80,zeroWidthTriggerStyle:or,breakpoint:Qe,onCollapse:Ce,onBreakpoint:ht}=Se,Ut=Le(Se,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Yt}=(0,He.useContext)(Je.Gs),[Ge,rt]=(0,He.useState)("collapsed"in Se?Se.collapsed:Xe),[jt,_n]=(0,He.useState)(!1);(0,He.useEffect)(()=>{"collapsed"in Se&&rt(Se.collapsed)},[Se.collapsed]);const rn=(ue,le)=>{"collapsed"in Se||rt(ue),Ce==null||Ce(ue,le)},$t=(0,He.useRef)();$t.current=ue=>{_n(ue.matches),ht==null||ht(ue.matches),Ge!==ue.matches&&rn(ue.matches,"responsive")},(0,He.useEffect)(()=>{function ue(pe){return $t.current(pe)}let le;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&Qe&&Qe in gt){le=pe(`(max-width: ${gt[Qe]})`);try{le.addEventListener("change",ue)}catch(he){le.addListener(ue)}ue(le)}}return()=>{try{le==null||le.removeEventListener("change",ue)}catch(pe){le==null||le.removeListener(ue)}}},[Qe]),(0,He.useEffect)(()=>{const ue=tt("ant-sider-");return Yt.addSider(ue),()=>Yt.removeSider(ue)},[]);const Zt=()=>{rn(!Ge,"clickTrigger")},{getPrefixCls:yn}=(0,He.useContext)(it.E_),ln=()=>{const ue=yn("layout-sider",je),le=(0,Oe.Z)(Ut,["collapsed"]),pe=Ge?Cn:sn,he=ft(pe)?`${pe}px`:String(pe),oe=parseFloat(String(Cn||0))===0?He.createElement("span",{onClick:Zt,className:ot()(`${ue}-zero-width-trigger`,`${ue}-zero-width-trigger-${Nt?"right":"left"}`),style:or},vt||He.createElement(Ee,null)):null,Lt={expanded:Nt?He.createElement(me.Z,null):He.createElement(xe.Z,null),collapsed:Nt?He.createElement(xe.Z,null):He.createElement(me.Z,null)}[Ge?"collapsed":"expanded"],Rt=vt!==null?oe||He.createElement("div",{className:`${ue}-trigger`,onClick:Zt,style:{width:he}},vt||Lt):null,Ft=Object.assign(Object.assign({},Ot),{flex:`0 0 ${he}`,maxWidth:he,minWidth:he,width:he}),Jt=ot()(ue,`${ue}-${Kt}`,{[`${ue}-collapsed`]:!!Ge,[`${ue}-has-trigger`]:bn&&vt!==null&&!oe,[`${ue}-below`]:!!jt,[`${ue}-zero-width`]:parseFloat(he)===0},_t);return He.createElement("aside",Object.assign({className:Jt},le,{style:Ft,ref:Ue}),He.createElement("div",{className:`${ue}-children`},kt),bn||jt&&oe?Rt:null)},Ae=He.useMemo(()=>({siderCollapsed:Ge}),[Ge]);return He.createElement(qt.Provider,{value:Ae},ln())})},84321:function(En,Wt,se){"use strict";se.d(Wt,{VY:function(){return tt},$_:function(){return qt},h4:function(){return gt},Gs:function(){return St},ZP:function(){return ct}});var de=se(74902),He=se(94184),Be=se.n(He),Ve=se(10366),ve=se(67294),we=se(53124),Ee=se(67968),me=ke=>{const{componentCls:Se,bodyBg:Ue,lightSiderBg:je,lightTriggerBg:_t,lightTriggerColor:vt}=ke;return{[`${Se}-sider-light`]:{background:je,[`${Se}-sider-trigger`]:{color:vt,background:_t},[`${Se}-sider-zero-width-trigger`]:{color:vt,background:_t,border:`1px solid ${Ue}`,borderInlineStart:0}}}};const Ie=ke=>{const{antCls:Se,componentCls:Ue,colorText:je,triggerColor:_t,footerBg:vt,triggerBg:kt,headerHeight:Xe,headerPadding:Kt,headerColor:Ot,footerPadding:bn,triggerHeight:Nt,zeroTriggerHeight:sn,zeroTriggerWidth:Cn,motionDurationMid:or,motionDurationSlow:Qe,fontSize:Ce,borderRadius:ht,bodyBg:Ut,headerBg:Yt,siderBg:Ge}=ke;return{[Ue]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ut,"&, *":{boxSizing:"border-box"},[`&${Ue}-has-sider`]:{flexDirection:"row",[`> ${Ue}, > ${Ue}-content`]:{width:0}},[`${Ue}-header, &${Ue}-footer`]:{flex:"0 0 auto"},[`${Ue}-sider`]:{position:"relative",minWidth:0,background:Ge,transition:`all ${or}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Se}-menu${Se}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Nt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Nt,color:_t,lineHeight:`${Nt}px`,textAlign:"center",background:kt,cursor:"pointer",transition:`all ${or}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Xe,insetInlineEnd:-Cn,zIndex:1,width:Cn,height:sn,color:_t,fontSize:ke.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ge,borderStartStartRadius:0,borderStartEndRadius:ht,borderEndEndRadius:ht,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Qe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Qe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Cn,borderStartStartRadius:ht,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ht}}}}},me(ke)),{"&-rtl":{direction:"rtl"}}),[`${Ue}-header`]:{height:Xe,padding:Kt,color:Ot,lineHeight:`${Xe}px`,background:Yt,[`${Se}-menu`]:{lineHeight:"inherit"}},[`${Ue}-footer`]:{padding:bn,color:je,fontSize:Ce,background:vt},[`${Ue}-content`]:{flex:"auto",minHeight:0}}};var ot=(0,Ee.Z)("Layout",ke=>[Ie(ke)],ke=>{const{colorBgLayout:Se,controlHeight:Ue,controlHeightLG:je,colorText:_t,controlHeightSM:vt,marginXXS:kt,colorTextLightSolid:Xe,colorBgContainer:Kt}=ke,Ot=je*1.25;return{colorBgHeader:"#001529",colorBgBody:Se,colorBgTrigger:"#002140",bodyBg:Se,headerBg:"#001529",headerHeight:Ue*2,headerPadding:`0 ${Ot}px`,headerColor:_t,footerPadding:`${vt}px ${Ot}px`,footerBg:Se,siderBg:"#001529",triggerHeight:je+kt*2,triggerBg:"#002140",triggerColor:Xe,zeroTriggerWidth:je,zeroTriggerHeight:je,lightSiderBg:Kt,lightTriggerBg:Kt,lightTriggerColor:_t}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Oe=function(ke,Se){var Ue={};for(var je in ke)Object.prototype.hasOwnProperty.call(ke,je)&&Se.indexOf(je)<0&&(Ue[je]=ke[je]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,je=Object.getOwnPropertySymbols(ke);_tnull,removeSider:()=>null}});function ft(ke){let{suffixCls:Se,tagName:Ue,displayName:je}=ke;return _t=>ve.forwardRef((kt,Xe)=>ve.createElement(_t,Object.assign({ref:Xe,suffixCls:Se,tagName:Ue},kt)))}const it=ve.forwardRef((ke,Se)=>{const{prefixCls:Ue,suffixCls:je,className:_t,tagName:vt}=ke,kt=Oe(ke,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Xe}=ve.useContext(we.E_),Kt=Xe("layout",Ue),[Ot,bn]=ot(Kt),Nt=je?`${Kt}-${je}`:Kt;return Ot(ve.createElement(vt,Object.assign({className:Be()(Ue||Nt,_t,bn),ref:Se},kt)))}),Je=ve.forwardRef((ke,Se)=>{const{direction:Ue}=ve.useContext(we.E_),[je,_t]=ve.useState([]),{prefixCls:vt,className:kt,rootClassName:Xe,children:Kt,hasSider:Ot,tagName:bn,style:Nt}=ke,sn=Oe(ke,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Cn=(0,Ve.Z)(sn,["suffixCls"]),{getPrefixCls:or,layout:Qe}=ve.useContext(we.E_),Ce=or("layout",vt),[ht,Ut]=ot(Ce),Yt=Be()(Ce,{[`${Ce}-has-sider`]:typeof Ot=="boolean"?Ot:je.length>0,[`${Ce}-rtl`]:Ue==="rtl"},Qe==null?void 0:Qe.className,kt,Xe,Ut),Ge=ve.useMemo(()=>({siderHook:{addSider:rt=>{_t(jt=>[].concat((0,de.Z)(jt),[rt]))},removeSider:rt=>{_t(jt=>jt.filter(_n=>_n!==rt))}}}),[]);return ht(ve.createElement(St.Provider,{value:Ge},ve.createElement(bn,Object.assign({ref:Se,className:Yt,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Nt)},Cn),Kt)))}),Le=ft({tagName:"div",displayName:"Layout"})(Je),gt=ft({suffixCls:"header",tagName:"header",displayName:"Header"})(it),qt=ft({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(it),tt=ft({suffixCls:"content",tagName:"main",displayName:"Content"})(it);var ct=Le},76529:function(En,Wt,se){"use strict";se.d(Wt,{J:function(){return we}});var de=se(67294),He=se(4173),Be=se(60276),Ve=function(Ee,xe){var me={};for(var Ie in Ee)Object.prototype.hasOwnProperty.call(Ee,Ie)&&xe.indexOf(Ie)<0&&(me[Ie]=Ee[Ie]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ie=Object.getOwnPropertySymbols(Ee);ot{const{children:me}=Ee,Ie=Ve(Ee,["children"]),ot=de.useContext(ve),Oe=de.useMemo(()=>Object.assign(Object.assign({},ot),Ie),[ot,Ie.prefixCls,Ie.mode,Ie.selectable]);return de.createElement(ve.Provider,{value:Oe},de.createElement(He.BR,null,(0,Be.supportNodeRef)(me)?de.cloneElement(me,{ref:xe}):me))});Wt.Z=ve},68508:function(En,Wt,se){"use strict";se.d(Wt,{default:function(){return ue}});var de=se(78595),He=se(67294),Be=se(71322),Ve=se(94184),ve=se.n(Ve),we=se(53124),Ee=function(le,pe){var he={};for(var oe in le)Object.prototype.hasOwnProperty.call(le,oe)&&pe.indexOf(oe)<0&&(he[oe]=le[oe]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,oe=Object.getOwnPropertySymbols(le);Te{const{prefixCls:pe,className:he,dashed:oe}=le,Te=Ee(le,["prefixCls","className","dashed"]),{getPrefixCls:Ye}=He.useContext(we.E_),Lt=Ye("menu",pe),Rt=ve()({[`${Lt}-item-divider-dashed`]:!!oe},he);return He.createElement(de.iz,Object.assign({className:Rt},Te))},Ie=se(37419),ot=se(10366),Oe=se(83062),St=se(96159),it=(0,He.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Le=le=>{var pe;const{className:he,children:oe,icon:Te,title:Ye,danger:Lt}=le,{prefixCls:Rt,firstLevel:Ft,direction:Jt,disableMenuItemTitleTooltip:Xt,inlineCollapsed:Hn}=He.useContext(it),Rn=Ht=>{const Fn=He.createElement("span",{className:`${Rt}-title-content`},oe);return(!Te||(0,St.l$)(oe)&&oe.type==="span")&&oe&&Ht&&Ft&&typeof oe=="string"?He.createElement("div",{className:`${Rt}-inline-collapsed-noicon`},oe.charAt(0)):Fn},{siderCollapsed:Tt}=He.useContext(Be.D);let dn=Ye;typeof Ye=="undefined"?dn=Ft?oe:"":Ye===!1&&(dn="");const cr={title:dn};!Tt&&!Hn&&(cr.title=null,cr.open=!1);const Mr=(0,Ie.Z)(oe).length;let at=He.createElement(de.ck,Object.assign({},(0,ot.Z)(le,["title","icon","danger"]),{className:ve()({[`${Rt}-item-danger`]:Lt,[`${Rt}-item-only-child`]:(Te?Mr+1:Mr)===1},he),title:typeof Ye=="string"?Ye:void 0}),(0,St.Tm)(Te,{className:ve()((0,St.l$)(Te)?(pe=Te.props)===null||pe===void 0?void 0:pe.className:"",`${Rt}-item-icon`)}),Rn(Hn));return Xt||(at=He.createElement(Oe.Z,Object.assign({},cr,{placement:Jt==="rtl"?"left":"right",overlayClassName:`${Rt}-inline-collapsed-tooltip`}),at)),at},qt=le=>{var pe;const{popupClassName:he,icon:oe,title:Te,theme:Ye}=le,Lt=He.useContext(it),{prefixCls:Rt,inlineCollapsed:Ft,theme:Jt}=Lt,Xt=(0,de.Xl)();let Hn;if(!oe)Hn=Ft&&!Xt.length&&Te&&typeof Te=="string"?He.createElement("div",{className:`${Rt}-inline-collapsed-noicon`},Te.charAt(0)):He.createElement("span",{className:`${Rt}-title-content`},Te);else{const Tt=(0,St.l$)(Te)&&Te.type==="span";Hn=He.createElement(He.Fragment,null,(0,St.Tm)(oe,{className:ve()((0,St.l$)(oe)?(pe=oe.props)===null||pe===void 0?void 0:pe.className:"",`${Rt}-item-icon`)}),Tt?Te:He.createElement("span",{className:`${Rt}-title-content`},Te))}const Rn=He.useMemo(()=>Object.assign(Object.assign({},Lt),{firstLevel:!1}),[Lt]);return He.createElement(it.Provider,{value:Rn},He.createElement(de.Wd,Object.assign({},(0,ot.Z)(le,["icon"]),{title:Hn,popupClassName:ve()(Rt,he,`${Rt}-${Ye||Jt}`)})))},tt=se(25877),ct=se(60276),ke=se(33603),Se=se(76529),Ue=function(le,pe){var he={};for(var oe in le)Object.prototype.hasOwnProperty.call(le,oe)&&pe.indexOf(oe)<0&&(he[oe]=le[oe]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,oe=Object.getOwnPropertySymbols(le);Te{if(pe&&typeof pe=="object"){const oe=pe,{label:Te,children:Ye,key:Lt,type:Rt}=oe,Ft=Ue(oe,["label","children","key","type"]),Jt=Lt!=null?Lt:`tmp-${he}`;return Ye||Rt==="group"?Rt==="group"?He.createElement(de.BW,Object.assign({key:Jt},Ft,{title:Te}),je(Ye)):He.createElement(qt,Object.assign({key:Jt},Ft,{title:Te}),je(Ye)):Rt==="divider"?He.createElement(me,Object.assign({key:Jt},Ft)):He.createElement(Le,Object.assign({key:Jt},Ft),Te)}return null}).filter(pe=>pe)}function _t(le){return He.useMemo(()=>le&&je(le),[le])}var vt=se(84780),kt=se(14747),Xe=se(33507),Kt=se(67771),Ot=se(50438),bn=se(67968),Nt=se(45503),Cn=le=>{const{componentCls:pe,motionDurationSlow:he,horizontalLineHeight:oe,colorSplit:Te,lineWidth:Ye,lineType:Lt,itemPaddingInline:Rt}=le;return{[`${pe}-horizontal`]:{lineHeight:oe,border:0,borderBottom:`${Ye}px ${Lt} ${Te}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Rt},[`> ${pe}-item:hover, > ${pe}-item-active, > ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${he}`,`background ${he}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},Qe=le=>{let{componentCls:pe,menuArrowOffset:he}=le;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical, ${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${he})`},"&::after":{transform:`rotate(45deg) translateY(${he})`}}}}};const Ce=le=>Object.assign({},(0,kt.oN)(le));var Ut=(le,pe)=>{const{componentCls:he,itemColor:oe,itemSelectedColor:Te,groupTitleColor:Ye,itemBg:Lt,subMenuItemBg:Rt,itemSelectedBg:Ft,activeBarHeight:Jt,activeBarWidth:Xt,activeBarBorderWidth:Hn,motionDurationSlow:Rn,motionEaseInOut:Tt,motionEaseOut:dn,itemPaddingInline:cr,motionDurationMid:Mr,itemHoverColor:at,lineType:Ht,colorSplit:Fn,itemDisabledColor:er,dangerItemColor:nr,dangerItemHoverColor:Sr,dangerItemSelectedColor:Tr,dangerItemActiveBg:Er,dangerItemSelectedBg:Or,itemHoverBg:Vr,itemActiveBg:ur,menuSubMenuBg:si,horizontalItemSelectedColor:Li,horizontalItemSelectedBg:Bi,horizontalItemBorderRadius:Hi,horizontalItemHoverBg:ri,popupBg:yt}=le;return{[`${he}-${pe}, ${he}-${pe} > ${he}`]:{color:oe,background:Lt,[`&${he}-root:focus-visible`]:Object.assign({},Ce(le)),[`${he}-item-group-title`]:{color:Ye},[`${he}-submenu-selected`]:{[`> ${he}-submenu-title`]:{color:Te}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{color:`${er} !important`},[`${he}-item:not(${he}-item-selected):not(${he}-submenu-selected)`]:{[`&:hover, > ${he}-submenu-title:hover`]:{color:at}},[`&:not(${he}-horizontal)`]:{[`${he}-item:not(${he}-item-selected)`]:{"&:hover":{backgroundColor:Vr},"&:active":{backgroundColor:ur}},[`${he}-submenu-title`]:{"&:hover":{backgroundColor:Vr},"&:active":{backgroundColor:ur}}},[`${he}-item-danger`]:{color:nr,[`&${he}-item:hover`]:{[`&:not(${he}-item-selected):not(${he}-submenu-selected)`]:{color:Sr}},[`&${he}-item:active`]:{background:Er}},[`${he}-item a`]:{"&, &:hover":{color:"inherit"}},[`${he}-item-selected`]:{color:Te,[`&${he}-item-danger`]:{color:Tr},"a, a:hover":{color:"inherit"}},[`& ${he}-item-selected`]:{backgroundColor:Ft,[`&${he}-item-danger`]:{backgroundColor:Or}},[`${he}-item, ${he}-submenu-title`]:{[`&:not(${he}-item-disabled):focus-visible`]:Object.assign({},Ce(le))},[`&${he}-submenu > ${he}`]:{backgroundColor:si},[`&${he}-popup > ${he}`]:{backgroundColor:yt},[`&${he}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${he}-item, > ${he}-submenu`]:{top:Hn,marginTop:-Hn,marginBottom:0,borderRadius:Hi,"&::after":{position:"absolute",insetInline:cr,bottom:0,borderBottom:`${Jt}px solid transparent`,transition:`border-color ${Rn} ${Tt}`,content:'""'},"&:hover, &-active, &-open":{background:ri,"&::after":{borderBottomWidth:Jt,borderBottomColor:Li}},"&-selected":{color:Li,backgroundColor:Bi,"&:hover":{backgroundColor:Bi},"&::after":{borderBottomWidth:Jt,borderBottomColor:Li}}}}),[`&${he}-root`]:{[`&${he}-inline, &${he}-vertical`]:{borderInlineEnd:`${Hn}px ${Ht} ${Fn}`}},[`&${he}-inline`]:{[`${he}-sub${he}-inline`]:{background:Rt},[`${he}-item, ${he}-submenu-title`]:Hn&&Xt?{width:`calc(100% + ${Hn}px)`}:{},[`${he}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Xt}px solid ${Te}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Mr} ${dn}`,`opacity ${Mr} ${dn}`].join(","),content:'""'},[`&${he}-item-danger`]:{"&::after":{borderInlineEndColor:Tr}}},[`${he}-selected, ${he}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Mr} ${Tt}`,`opacity ${Mr} ${Tt}`].join(",")}}}}}};const Yt=le=>{const{componentCls:pe,itemHeight:he,itemMarginInline:oe,padding:Te,menuArrowSize:Ye,marginXS:Lt,itemMarginBlock:Rt}=le,Ft=Te+Ye+Lt;return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:he,lineHeight:`${he}px`,paddingInline:Te,overflow:"hidden",textOverflow:"ellipsis",marginInline:oe,marginBlock:Rt,width:`calc(100% - ${oe*2}px)`},[`> ${pe}-item, > ${pe}-submenu > ${pe}-submenu-title`]:{height:he,lineHeight:`${he}px`},[`${pe}-item-group-list ${pe}-submenu-title, ${pe}-submenu-title`]:{paddingInlineEnd:Ft}}};var rt=le=>{const{componentCls:pe,iconCls:he,itemHeight:oe,colorTextLightSolid:Te,dropdownWidth:Ye,controlHeightLG:Lt,motionDurationMid:Rt,motionEaseOut:Ft,paddingXL:Jt,itemMarginInline:Xt,fontSizeLG:Hn,motionDurationSlow:Rn,paddingXS:Tt,boxShadowSecondary:dn,collapsedWidth:cr,collapsedIconSize:Mr}=le,at={height:oe,lineHeight:`${oe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},Yt(le))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},Yt(le)),{boxShadow:dn})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:Ye,maxHeight:`calc(100vh - ${Lt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Rn}`,`background ${Rn}`,`padding ${Rt} ${Ft}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:at,[`& ${pe}-item-group-title`]:{paddingInlineStart:Jt}},[`${pe}-item`]:at}},{[`${pe}-inline-collapsed`]:{width:cr,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Hn,textAlign:"center"}}},[`> ${pe}-item, > ${pe}-item-group > ${pe}-item-group-list > ${pe}-item, > ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title, > ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Hn/2}px - ${Xt}px)`,textOverflow:"clip",[` ${pe}-submenu-arrow, ${pe}-submenu-expand-icon `]:{opacity:0},[`${pe}-item-icon, ${he}`]:{margin:0,fontSize:Mr,lineHeight:`${oe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${he}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${he}`]:{display:"none"},"a, a:hover":{color:Te}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},kt.vS),{paddingInline:Tt})}}]};const jt=le=>{const{componentCls:pe,motionDurationSlow:he,motionDurationMid:oe,motionEaseInOut:Te,motionEaseOut:Ye,iconCls:Lt,iconSize:Rt,iconMarginInlineEnd:Ft}=le;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${he}`,`background ${he}`,`padding ${he} ${Te}`].join(","),[`${pe}-item-icon, ${Lt}`]:{minWidth:Rt,fontSize:Rt,transition:[`font-size ${oe} ${Ye}`,`margin ${he} ${Te}`,`color ${he}`].join(","),"+ span":{marginInlineStart:Ft,opacity:1,transition:[`opacity ${he} ${Te}`,`margin ${he}`,`color ${he}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,kt.Ro)()),[`&${pe}-item-only-child`]:{[`> ${Lt}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},_n=le=>{const{componentCls:pe,motionDurationSlow:he,motionEaseInOut:oe,borderRadius:Te,menuArrowSize:Ye,menuArrowOffset:Lt}=le;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:le.margin,width:Ye,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${he} ${oe}, opacity ${he}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ye*.6,height:Ye*.15,backgroundColor:"currentcolor",borderRadius:Te,transition:[`background ${he} ${oe}`,`transform ${he} ${oe}`,`top ${he} ${oe}`,`color ${he} ${oe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Lt})`},"&::after":{transform:`rotate(-45deg) translateY(${Lt})`}}}}},rn=le=>{const{antCls:pe,componentCls:he,fontSize:oe,motionDurationSlow:Te,motionDurationMid:Ye,motionEaseInOut:Lt,paddingXS:Rt,padding:Ft,colorSplit:Jt,lineWidth:Xt,zIndexPopup:Hn,borderRadiusLG:Rn,subMenuItemBorderRadius:Tt,menuArrowSize:dn,menuArrowOffset:cr,lineType:Mr,menuPanelMaskInset:at,groupTitleLineHeight:Ht,groupTitleFontSize:Fn}=le;return[{"":{[`${he}`]:Object.assign(Object.assign({},(0,kt.dF)()),{"&-hidden":{display:"none"}})},[`${he}-submenu-hidden`]:{display:"none"}},{[he]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(le)),(0,kt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:oe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Te} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${he}-item`]:{flex:"none"}},[`${he}-item, ${he}-submenu, ${he}-submenu-title`]:{borderRadius:le.itemBorderRadius},[`${he}-item-group-title`]:{padding:`${Rt}px ${Ft}px`,fontSize:Fn,lineHeight:Ht,transition:`all ${Te}`},[`&-horizontal ${he}-submenu`]:{transition:[`border-color ${Te} ${Lt}`,`background ${Te} ${Lt}`].join(",")},[`${he}-submenu, ${he}-submenu-inline`]:{transition:[`border-color ${Te} ${Lt}`,`background ${Te} ${Lt}`,`padding ${Ye} ${Lt}`].join(",")},[`${he}-submenu ${he}-sub`]:{cursor:"initial",transition:[`background ${Te} ${Lt}`,`padding ${Te} ${Lt}`].join(",")},[`${he}-title-content`]:{transition:`color ${Te}`},[`${he}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${he}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Jt,borderStyle:Mr,borderWidth:0,borderTopWidth:Xt,marginBlock:Xt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),jt(le)),{[`${he}-item-group`]:{[`${he}-item-group-list`]:{margin:0,padding:0,[`${he}-item, ${he}-submenu-title`]:{paddingInline:`${oe*2}px ${Ft}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Hn,borderRadius:Rn,boxShadow:"none",transformOrigin:"0 0",[`&${he}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${at}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:at},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:le.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:le.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:le.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:le.paddingXS},[`> ${he}`]:Object.assign(Object.assign(Object.assign({borderRadius:Rn},jt(le)),_n(le)),{[`${he}-item, ${he}-submenu > ${he}-submenu-title`]:{borderRadius:Tt},[`${he}-submenu-title::after`]:{transition:`transform ${Te} ${Lt}`}})}}),_n(le)),{[`&-inline-collapsed ${he}-submenu-arrow, &-inline ${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${cr})`},"&::after":{transform:`rotate(45deg) translateX(-${cr})`}},[`${he}-submenu-open${he}-submenu-inline > ${he}-submenu-title > ${he}-submenu-arrow`]:{transform:`translateY(-${dn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${cr})`},"&::before":{transform:`rotate(45deg) translateX(${cr})`}}})},{[`${pe}-layout-header`]:{[he]:{lineHeight:"inherit"}}}]};var $t=(le,pe)=>(0,bn.Z)("Menu",oe=>{if(pe===!1)return[];const{colorBgElevated:Te,colorPrimary:Ye,colorTextLightSolid:Lt,controlHeightLG:Rt,fontSize:Ft,darkItemColor:Jt,darkDangerItemColor:Xt,darkItemBg:Hn,darkSubMenuItemBg:Rn,darkItemSelectedColor:Tt,darkItemSelectedBg:dn,darkDangerItemSelectedBg:cr,darkItemHoverBg:Mr,darkGroupTitleColor:at,darkItemHoverColor:Ht,darkItemDisabledColor:Fn,darkDangerItemHoverColor:er,darkDangerItemSelectedColor:nr,darkDangerItemActiveBg:Sr}=oe,Tr=Ft/7*5,Er=(0,Nt.TS)(oe,{menuArrowSize:Tr,menuHorizontalHeight:Rt*1.15,menuArrowOffset:`${Tr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Te}),Or=(0,Nt.TS)(Er,{itemColor:Jt,itemHoverColor:Ht,groupTitleColor:at,itemSelectedColor:Tt,itemBg:Hn,popupBg:Hn,subMenuItemBg:Rn,itemActiveBg:"transparent",itemSelectedBg:dn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Mr,itemDisabledColor:Fn,dangerItemColor:Xt,dangerItemHoverColor:er,dangerItemSelectedColor:nr,dangerItemActiveBg:Sr,dangerItemSelectedBg:cr,menuSubMenuBg:Rn,horizontalItemSelectedColor:Lt,horizontalItemSelectedBg:Ye});return[rn(Er),Cn(Er),rt(Er),Ut(Er,"light"),Ut(Or,"dark"),Qe(Er),(0,Xe.Z)(Er),(0,Kt.oN)(Er,"slide-up"),(0,Kt.oN)(Er,"slide-down"),(0,Ot._y)(Er,"zoom-big")]},oe=>{const{colorPrimary:Te,colorError:Ye,colorTextDisabled:Lt,colorErrorBg:Rt,colorText:Ft,colorTextDescription:Jt,colorBgContainer:Xt,colorFillAlter:Hn,colorFillContent:Rn,lineWidth:Tt,lineWidthBold:dn,controlItemBgActive:cr,colorBgTextHover:Mr,controlHeightLG:at,lineHeight:Ht,colorBgElevated:Fn,marginXXS:er,padding:nr,fontSize:Sr,controlHeightSM:Tr,fontSizeLG:Er,colorTextLightSolid:Or,colorErrorHover:Vr}=oe,ur=new vt.C(Or).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:oe.zIndexPopupBase+50,radiusItem:oe.borderRadiusLG,itemBorderRadius:oe.borderRadiusLG,radiusSubMenuItem:oe.borderRadiusSM,subMenuItemBorderRadius:oe.borderRadiusSM,colorItemText:Ft,itemColor:Ft,colorItemTextHover:Ft,itemHoverColor:Ft,colorItemTextHoverHorizontal:Te,horizontalItemHoverColor:Te,colorGroupTitle:Jt,groupTitleColor:Jt,colorItemTextSelected:Te,itemSelectedColor:Te,colorItemTextSelectedHorizontal:Te,horizontalItemSelectedColor:Te,colorItemBg:Xt,itemBg:Xt,colorItemBgHover:Mr,itemHoverBg:Mr,colorItemBgActive:Rn,itemActiveBg:cr,colorSubItemBg:Hn,subMenuItemBg:Hn,colorItemBgSelected:cr,itemSelectedBg:cr,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:dn,activeBarHeight:dn,colorActiveBarBorderSize:Tt,activeBarBorderWidth:Tt,colorItemTextDisabled:Lt,itemDisabledColor:Lt,colorDangerItemText:Ye,dangerItemColor:Ye,colorDangerItemTextHover:Ye,dangerItemHoverColor:Ye,colorDangerItemTextSelected:Ye,dangerItemSelectedColor:Ye,colorDangerItemBgActive:Rt,dangerItemActiveBg:Rt,colorDangerItemBgSelected:Rt,dangerItemSelectedBg:Rt,itemMarginInline:oe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:at,groupTitleLineHeight:Ht,collapsedWidth:at*2,popupBg:Fn,itemMarginBlock:er,itemPaddingInline:nr,horizontalLineHeight:`${at*1.15}px`,iconSize:Sr,iconMarginInlineEnd:Tr-Sr,collapsedIconSize:Er,groupTitleFontSize:Sr,darkItemDisabledColor:new vt.C(Or).setAlpha(.25).toRgbString(),darkItemColor:ur,darkDangerItemColor:Ye,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Or,darkItemSelectedBg:Te,darkDangerItemSelectedBg:Ye,darkItemHoverBg:"transparent",darkGroupTitleColor:ur,darkItemHoverColor:Or,darkDangerItemHoverColor:Vr,darkDangerItemSelectedColor:Or,darkDangerItemActiveBg:Ye}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(le),Zt=function(le,pe){var he={};for(var oe in le)Object.prototype.hasOwnProperty.call(le,oe)&&pe.indexOf(oe)<0&&(he[oe]=le[oe]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,oe=Object.getOwnPropertySymbols(le);Te{var he,oe;const Te=He.useContext(Se.Z),Ye=Te||{},{getPrefixCls:Lt,getPopupContainer:Rt,direction:Ft,menu:Jt}=He.useContext(we.E_),Xt=Lt(),{prefixCls:Hn,className:Rn,style:Tt,theme:dn="light",expandIcon:cr,_internalDisableMenuItemTitleTooltip:Mr,inlineCollapsed:at,siderCollapsed:Ht,items:Fn,children:er,rootClassName:nr,mode:Sr,selectable:Tr,onClick:Er,overflowedIndicatorPopupClassName:Or}=le,Vr=Zt(le,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ur=(0,ot.Z)(Vr,["collapsedWidth"]),si=_t(Fn)||er;(he=Ye.validator)===null||he===void 0||he.call(Ye,{mode:Sr});const Li=(0,ct.useEvent)(function(){var $n;Er==null||Er.apply(void 0,arguments),($n=Ye.onClick)===null||$n===void 0||$n.call(Ye)}),Bi=Ye.mode||Sr,Hi=Tr!=null?Tr:Ye.selectable,ri=He.useMemo(()=>Ht!==void 0?Ht:at,[at,Ht]),yt={horizontal:{motionName:`${Xt}-slide-up`},inline:(0,ke.Z)(Xt),other:{motionName:`${Xt}-zoom-big`}},Mn=Lt("menu",Hn||Ye.prefixCls),[An,Dn]=$t(Mn,!Te),lr=ve()(`${Mn}-${dn}`,Jt==null?void 0:Jt.className,Rn);let qn;if(typeof cr=="function")qn=cr;else if(cr===null||cr===!1)qn=null;else if(Ye.expandIcon===null||Ye.expandIcon===!1)qn=null;else{const $n=cr!=null?cr:Ye.expandIcon;qn=(0,St.Tm)($n,{className:ve()(`${Mn}-submenu-expand-icon`,(0,St.l$)($n)?(oe=$n.props)===null||oe===void 0?void 0:oe.className:"")})}const pr=He.useMemo(()=>({prefixCls:Mn,inlineCollapsed:ri||!1,direction:Ft,firstLevel:!0,theme:dn,mode:Bi,disableMenuItemTitleTooltip:Mr}),[Mn,ri,Ft,Mr,dn]);return An(He.createElement(Se.Z.Provider,{value:null},He.createElement(it.Provider,{value:pr},He.createElement(de.ZP,Object.assign({getPopupContainer:Rt,overflowedIndicator:He.createElement(tt.Z,null),overflowedIndicatorPopupClassName:ve()(Mn,`${Mn}-${dn}`,Or),mode:Bi,selectable:Hi,onClick:Li},ur,{inlineCollapsed:ri,style:Object.assign(Object.assign({},Jt==null?void 0:Jt.style),Tt),className:lr,prefixCls:Mn,direction:Ft,defaultMotions:yt,expandIcon:qn,ref:pe,rootClassName:ve()(nr,Dn)}),si))))});const Ae=(0,He.forwardRef)((le,pe)=>{const he=(0,He.useRef)(null),oe=He.useContext(Be.D);return(0,He.useImperativeHandle)(pe,()=>({menu:he.current,focus:Te=>{var Ye;(Ye=he.current)===null||Ye===void 0||Ye.focus(Te)}})),He.createElement(ln,Object.assign({ref:he},le,oe))});Ae.Item=Le,Ae.SubMenu=qt,Ae.Divider=me,Ae.ItemGroup=de.BW;var ue=Ae},38703:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return Mr}});var de=se(67294),He=se(87725),Be=se(18299),Ve=se(16646),ve=se(73475),we=se(94184),Ee=se.n(we),xe=se(10366),me=se(53124),Ie=se(87462),ot=se(1413),Oe=se(45987),St={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ft=function(){var Ht=(0,de.useRef)([]),Fn=(0,de.useRef)(null);return(0,de.useEffect)(function(){var er=Date.now(),nr=!1;Ht.current.forEach(function(Sr){if(Sr){nr=!0;var Tr=Sr.style;Tr.transitionDuration=".3s, .3s, .3s, .06s",Fn.current&&er-Fn.current<100&&(Tr.transitionDuration="0s, 0s")}}),nr&&(Fn.current=Date.now())}),Ht.current},it=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Je=function(Ht){var Fn=(0,ot.Z)((0,ot.Z)({},St),Ht),er=Fn.className,nr=Fn.percent,Sr=Fn.prefixCls,Tr=Fn.strokeColor,Er=Fn.strokeLinecap,Or=Fn.strokeWidth,Vr=Fn.style,ur=Fn.trailColor,si=Fn.trailWidth,Li=Fn.transition,Bi=(0,Oe.Z)(Fn,it);delete Bi.gapPosition;var Hi=Array.isArray(nr)?nr:[nr],ri=Array.isArray(Tr)?Tr:[Tr],yt=ft(),Mn=Or/2,An=100-Or/2,Dn="M ".concat(Er==="round"?Mn:0,",").concat(Mn,` L `).concat(Er==="round"?An:100,",").concat(Mn),lr="0 0 100 ".concat(Or),qn=0;return de.createElement("svg",(0,Ie.Z)({className:Ee()("".concat(Sr,"-line"),er),viewBox:lr,preserveAspectRatio:"none",style:Vr},Bi),de.createElement("path",{className:"".concat(Sr,"-line-trail"),d:Dn,strokeLinecap:Er,stroke:ur,strokeWidth:si||Or,fillOpacity:"0"}),Hi.map(function(pr,$n){var qe=1;switch(Er){case"round":qe=1-Or/100;break;case"square":qe=1-Or/2/100;break;default:qe=1;break}var ut={strokeDasharray:"".concat(pr*qe,"px, 100px"),strokeDashoffset:"-".concat(qn,"px"),transition:Li||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Dt=ri[$n]||ri[ri.length-1];return qn+=pr,de.createElement("path",{key:$n,className:"".concat(Sr,"-line-path"),d:Dn,strokeLinecap:Er,stroke:Dt,strokeWidth:Or,fillOpacity:"0",ref:function(We){yt[$n]=We},style:ut})}))},Le=Je,gt=se(71002),qt=se(97685),tt=se(98924),ct=0,ke=(0,tt.Z)();function Se(){var at;return ke?(at=ct,ct+=1):at="TEST_OR_SSR",at}var Ue=function(at){var Ht=de.useState(),Fn=(0,qt.Z)(Ht,2),er=Fn[0],nr=Fn[1];return de.useEffect(function(){nr("rc_progress_".concat(Se()))},[]),at||er},je=function(Ht){var Fn=Ht.bg,er=Ht.children;return de.createElement("div",{style:{width:"100%",height:"100%",background:Fn}},er)};function _t(at,Ht){return Object.keys(at).map(function(Fn){var er=parseFloat(Fn),nr="".concat(Math.floor(er*Ht),"%");return"".concat(at[Fn]," ").concat(nr)})}var vt=de.forwardRef(function(at,Ht){var Fn=at.prefixCls,er=at.color,nr=at.gradientId,Sr=at.radius,Tr=at.style,Er=at.ptg,Or=at.strokeLinecap,Vr=at.strokeWidth,ur=at.size,si=at.gapDegree,Li=er&&(0,gt.Z)(er)==="object",Bi=Li?"#FFF":void 0,Hi=ur/2,ri=de.createElement("circle",{className:"".concat(Fn,"-circle-path"),r:Sr,cx:Hi,cy:Hi,stroke:Bi,strokeLinecap:Or,strokeWidth:Vr,opacity:Er===0?0:1,style:Tr,ref:Ht});if(!Li)return ri;var yt="".concat(nr,"-conic"),Mn=si?"".concat(180+si/2,"deg"):"0deg",An=_t(er,(360-si)/360),Dn=_t(er,1),lr="conic-gradient(from ".concat(Mn,", ").concat(An.join(", "),")"),qn="linear-gradient(to ".concat(si?"bottom":"top",", ").concat(Dn.join(", "),")");return de.createElement(de.Fragment,null,de.createElement("mask",{id:yt},ri),de.createElement("foreignObject",{x:0,y:0,width:ur,height:ur,mask:"url(#".concat(yt,")")},de.createElement(je,{bg:qn},de.createElement(je,{bg:lr}))))}),kt=vt,Xe=100,Kt=function(Ht,Fn,er,nr,Sr,Tr,Er,Or,Vr,ur){var si=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Li=er/100*360*((360-Tr)/360),Bi=Tr===0?0:{bottom:0,top:180,left:90,right:-90}[Er],Hi=(100-nr)/100*Fn;Vr==="round"&&nr!==100&&(Hi+=ur/2,Hi>=Fn&&(Hi=Fn-.01));var ri=Xe/2;return{stroke:typeof Or=="string"?Or:void 0,strokeDasharray:"".concat(Fn,"px ").concat(Ht),strokeDashoffset:Hi+si,transform:"rotate(".concat(Sr+Li+Bi,"deg)"),transformOrigin:"".concat(ri,"px ").concat(ri,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Ot=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function bn(at){var Ht=at!=null?at:[];return Array.isArray(Ht)?Ht:[Ht]}var Nt=function(Ht){var Fn=(0,ot.Z)((0,ot.Z)({},St),Ht),er=Fn.id,nr=Fn.prefixCls,Sr=Fn.steps,Tr=Fn.strokeWidth,Er=Fn.trailWidth,Or=Fn.gapDegree,Vr=Or===void 0?0:Or,ur=Fn.gapPosition,si=Fn.trailColor,Li=Fn.strokeLinecap,Bi=Fn.style,Hi=Fn.className,ri=Fn.strokeColor,yt=Fn.percent,Mn=(0,Oe.Z)(Fn,Ot),An=Xe/2,Dn=Ue(er),lr="".concat(Dn,"-gradient"),qn=An-Tr/2,pr=Math.PI*2*qn,$n=Vr>0?90+Vr/2:-90,qe=pr*((360-Vr)/360),ut=(0,gt.Z)(Sr)==="object"?Sr:{count:Sr,space:2},Dt=ut.count,Vt=ut.space,We=bn(yt),pt=bn(ri),zt=pt.find(function(tr){return tr&&(0,gt.Z)(tr)==="object"}),Bt=zt&&(0,gt.Z)(zt)==="object",en=Bt?"butt":Li,nn=Kt(pr,qe,0,100,$n,Vr,ur,si,en,Tr),jn=ft(),Lr=function(){var dr=0;return We.map(function(fr,mt){var st=pt[mt]||pt[pt.length-1],Ct=Kt(pr,qe,dr,fr,$n,Vr,ur,st,en,Tr);return dr+=fr,de.createElement(kt,{key:mt,color:st,ptg:fr,radius:qn,prefixCls:nr,gradientId:lr,style:Ct,strokeLinecap:en,strokeWidth:Tr,gapDegree:Vr,ref:function(Bn){jn[mt]=Bn},size:Xe})}).reverse()},rr=function(){var dr=Math.round(Dt*(We[0]/100)),fr=100/Dt,mt=0;return new Array(Dt).fill(null).map(function(st,Ct){var fn=Ct<=dr-1?pt[0]:si,Bn=fn&&(0,gt.Z)(fn)==="object"?"url(#".concat(lr,")"):void 0,hn=Kt(pr,qe,mt,fr,$n,Vr,ur,fn,"butt",Tr,Vt);return mt+=(qe-hn.strokeDashoffset+Vt)*100/qe,de.createElement("circle",{key:Ct,className:"".concat(nr,"-circle-path"),r:qn,cx:An,cy:An,stroke:Bn,strokeWidth:Tr,opacity:1,style:hn,ref:function(xn){jn[Ct]=xn}})})};return de.createElement("svg",(0,Ie.Z)({className:Ee()("".concat(nr,"-circle"),Hi),viewBox:"0 0 ".concat(Xe," ").concat(Xe),style:Bi,id:er,role:"presentation"},Mn),!Dt&&de.createElement("circle",{className:"".concat(nr,"-circle-trail"),r:qn,cx:An,cy:An,stroke:si,strokeLinecap:en,strokeWidth:Er||Tr,style:nn}),Dt?rr():Lr())},sn=Nt,Cn={Line:Le,Circle:sn},or=se(83062),Qe=se(47448);function Ce(at){return!at||at<0?0:at>100?100:at}function ht(at){let{success:Ht,successPercent:Fn}=at,er=Fn;return Ht&&"progress"in Ht&&(er=Ht.progress),Ht&&"percent"in Ht&&(er=Ht.percent),er}const Ut=at=>{let{percent:Ht,success:Fn,successPercent:er}=at;const nr=Ce(ht({success:Fn,successPercent:er}));return[nr,Ce(Ce(Ht)-nr)]},Yt=at=>{let{success:Ht={},strokeColor:Fn}=at;const{strokeColor:er}=Ht;return[er||Qe.presetPrimaryColors.green,Fn||null]},Ge=(at,Ht,Fn)=>{var er,nr,Sr,Tr;let Er=-1,Or=-1;if(Ht==="step"){const Vr=Fn.steps,ur=Fn.strokeWidth;typeof at=="string"||typeof at=="undefined"?(Er=at==="small"?2:14,Or=ur!=null?ur:8):typeof at=="number"?[Er,Or]=[at,at]:[Er=14,Or=8]=at,Er*=Vr}else if(Ht==="line"){const Vr=Fn==null?void 0:Fn.strokeWidth;typeof at=="string"||typeof at=="undefined"?Or=Vr||(at==="small"?6:8):typeof at=="number"?[Er,Or]=[at,at]:[Er=-1,Or=8]=at}else(Ht==="circle"||Ht==="dashboard")&&(typeof at=="string"||typeof at=="undefined"?[Er,Or]=at==="small"?[60,60]:[120,120]:typeof at=="number"?[Er,Or]=[at,at]:(Er=(nr=(er=at[0])!==null&&er!==void 0?er:at[1])!==null&&nr!==void 0?nr:120,Or=(Tr=(Sr=at[0])!==null&&Sr!==void 0?Sr:at[1])!==null&&Tr!==void 0?Tr:120));return[Er,Or]},rt=3,jt=at=>rt/at*100;var rn=at=>{const{prefixCls:Ht,trailColor:Fn=null,strokeLinecap:er="round",gapPosition:nr,gapDegree:Sr,width:Tr=120,type:Er,children:Or,success:Vr,size:ur=Tr}=at,[si,Li]=Ge(ur,"circle");let{strokeWidth:Bi}=at;Bi===void 0&&(Bi=Math.max(jt(si),6));const Hi={width:si,height:Li,fontSize:si*.15+6},ri=de.useMemo(()=>{if(Sr||Sr===0)return Sr;if(Er==="dashboard")return 75},[Sr,Er]),yt=nr||Er==="dashboard"&&"bottom"||void 0,Mn=Object.prototype.toString.call(at.strokeColor)==="[object Object]",An=Yt({success:Vr,strokeColor:at.strokeColor}),Dn=Ee()(`${Ht}-inner`,{[`${Ht}-circle-gradient`]:Mn}),lr=de.createElement(sn,{percent:Ut(at),strokeWidth:Bi,trailWidth:Bi,strokeColor:An,strokeLinecap:er,trailColor:Fn,prefixCls:Ht,gapDegree:ri,gapPosition:yt});return de.createElement("div",{className:Dn,style:Hi},si<=20?de.createElement(or.Z,{title:Or},de.createElement("span",null,lr)):de.createElement(de.Fragment,null,lr,Or))},$t=function(at,Ht){var Fn={};for(var er in at)Object.prototype.hasOwnProperty.call(at,er)&&Ht.indexOf(er)<0&&(Fn[er]=at[er]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nr=0,er=Object.getOwnPropertySymbols(at);nr{let Ht=[];return Object.keys(at).forEach(Fn=>{const er=parseFloat(Fn.replace(/%/g,""));isNaN(er)||Ht.push({key:er,value:at[Fn]})}),Ht=Ht.sort((Fn,er)=>Fn.key-er.key),Ht.map(Fn=>{let{key:er,value:nr}=Fn;return`${nr} ${er}%`}).join(", ")},yn=(at,Ht)=>{const{from:Fn=Qe.presetPrimaryColors.blue,to:er=Qe.presetPrimaryColors.blue,direction:nr=Ht==="rtl"?"to left":"to right"}=at,Sr=$t(at,["from","to","direction"]);if(Object.keys(Sr).length!==0){const Tr=Zt(Sr);return{backgroundImage:`linear-gradient(${nr}, ${Tr})`}}return{backgroundImage:`linear-gradient(${nr}, ${Fn}, ${er})`}};var Ae=at=>{const{prefixCls:Ht,direction:Fn,percent:er,size:nr,strokeWidth:Sr,strokeColor:Tr,strokeLinecap:Er="round",children:Or,trailColor:Vr=null,success:ur}=at,si=Tr&&typeof Tr!="string"?yn(Tr,Fn):{backgroundColor:Tr},Li=Er==="square"||Er==="butt"?0:void 0,Bi={backgroundColor:Vr||void 0,borderRadius:Li},Hi=nr!=null?nr:[-1,Sr||(nr==="small"?6:8)],[ri,yt]=Ge(Hi,"line",{strokeWidth:Sr}),Mn=Object.assign({width:`${Ce(er)}%`,height:yt,borderRadius:Li},si),An=ht(at),Dn={width:`${Ce(An)}%`,height:yt,borderRadius:Li,backgroundColor:ur==null?void 0:ur.strokeColor},lr={width:ri<0?"100%":ri,height:yt};return de.createElement(de.Fragment,null,de.createElement("div",{className:`${Ht}-outer`,style:lr},de.createElement("div",{className:`${Ht}-inner`,style:Bi},de.createElement("div",{className:`${Ht}-bg`,style:Mn}),An!==void 0?de.createElement("div",{className:`${Ht}-success-bg`,style:Dn}):null)),Or)},le=at=>{const{size:Ht,steps:Fn,percent:er=0,strokeWidth:nr=8,strokeColor:Sr,trailColor:Tr=null,prefixCls:Er,children:Or}=at,Vr=Math.round(Fn*(er/100)),ur=Ht==="small"?2:14,si=Ht!=null?Ht:[ur,nr],[Li,Bi]=Ge(si,"step",{steps:Fn,strokeWidth:nr}),Hi=Li/Fn,ri=new Array(Fn);for(let yt=0;yt{const Ht=at?"100%":"-100%";return new pe.Keyframes(`antProgress${at?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ht}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ht}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Lt=at=>{const{componentCls:Ht,iconCls:Fn}=at;return{[Ht]:Object.assign(Object.assign({},(0,he.Wf)(at)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:at.fontSize,marginInlineEnd:at.marginXS,marginBottom:at.marginXS},[`${Ht}-outer`]:{display:"inline-block",width:"100%"},[`&${Ht}-show-info`]:{[`${Ht}-outer`]:{marginInlineEnd:`calc(-2em - ${at.marginXS}px)`,paddingInlineEnd:`calc(2em + ${at.paddingXS}px)`}},[`${Ht}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:at.remainingColor,borderRadius:at.lineBorderRadius},[`${Ht}-inner:not(${Ht}-circle-gradient)`]:{[`${Ht}-circle-path`]:{stroke:at.defaultColor}},[`${Ht}-success-bg, ${Ht}-bg`]:{position:"relative",backgroundColor:at.defaultColor,borderRadius:at.lineBorderRadius,transition:`all ${at.motionDurationSlow} ${at.motionEaseInOutCirc}`},[`${Ht}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:at.colorSuccess},[`${Ht}-text`]:{display:"inline-block",width:"2em",marginInlineStart:at.marginXS,color:at.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Fn]:{fontSize:at.fontSize}},[`&${Ht}-status-active`]:{[`${Ht}-bg::before`]:{position:"absolute",inset:0,backgroundColor:at.colorBgContainer,borderRadius:at.lineBorderRadius,opacity:0,animationName:Ye(),animationDuration:at.progressActiveMotionDuration,animationTimingFunction:at.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ht}-rtl${Ht}-status-active`]:{[`${Ht}-bg::before`]:{animationName:Ye(!0)}},[`&${Ht}-status-exception`]:{[`${Ht}-bg`]:{backgroundColor:at.colorError},[`${Ht}-text`]:{color:at.colorError}},[`&${Ht}-status-exception ${Ht}-inner:not(${Ht}-circle-gradient)`]:{[`${Ht}-circle-path`]:{stroke:at.colorError}},[`&${Ht}-status-success`]:{[`${Ht}-bg`]:{backgroundColor:at.colorSuccess},[`${Ht}-text`]:{color:at.colorSuccess}},[`&${Ht}-status-success ${Ht}-inner:not(${Ht}-circle-gradient)`]:{[`${Ht}-circle-path`]:{stroke:at.colorSuccess}}})}},Rt=at=>{const{componentCls:Ht,iconCls:Fn}=at;return{[Ht]:{[`${Ht}-circle-trail`]:{stroke:at.remainingColor},[`&${Ht}-circle ${Ht}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ht}-circle ${Ht}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:at.circleTextColor,fontSize:at.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Fn]:{fontSize:`${at.fontSize/at.fontSizeSM}em`}},[`${Ht}-circle&-status-exception`]:{[`${Ht}-text`]:{color:at.colorError}},[`${Ht}-circle&-status-success`]:{[`${Ht}-text`]:{color:at.colorSuccess}}},[`${Ht}-inline-circle`]:{lineHeight:1,[`${Ht}-inner`]:{verticalAlign:"bottom"}}}},Ft=at=>{const{componentCls:Ht}=at;return{[Ht]:{[`${Ht}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:at.progressStepMinWidth,marginInlineEnd:at.progressStepMarginInlineEnd,backgroundColor:at.remainingColor,transition:`all ${at.motionDurationSlow}`,"&-active":{backgroundColor:at.defaultColor}}}}}},Jt=at=>{const{componentCls:Ht,iconCls:Fn}=at;return{[Ht]:{[`${Ht}-small&-line, ${Ht}-small&-line ${Ht}-text ${Fn}`]:{fontSize:at.fontSizeSM}}}};var Xt=(0,oe.Z)("Progress",at=>{const Ht=at.marginXXS/2,Fn=(0,Te.TS)(at,{progressStepMarginInlineEnd:Ht,progressStepMinWidth:Ht,progressActiveMotionDuration:"2.4s"});return[Lt(Fn),Rt(Fn),Ft(Fn),Jt(Fn)]},at=>({circleTextColor:at.colorText,defaultColor:at.colorInfo,remainingColor:at.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Hn=function(at,Ht){var Fn={};for(var er in at)Object.prototype.hasOwnProperty.call(at,er)&&Ht.indexOf(er)<0&&(Fn[er]=at[er]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nr=0,er=Object.getOwnPropertySymbols(at);nr{const{prefixCls:Fn,className:er,rootClassName:nr,steps:Sr,strokeColor:Tr,percent:Er=0,size:Or="default",showInfo:Vr=!0,type:ur="line",status:si,format:Li,style:Bi}=at,Hi=Hn(at,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),ri=de.useMemo(()=>{var We,pt;const zt=ht(at);return parseInt(zt!==void 0?(We=zt!=null?zt:0)===null||We===void 0?void 0:We.toString():(pt=Er!=null?Er:0)===null||pt===void 0?void 0:pt.toString(),10)},[Er,at.success,at.successPercent]),yt=de.useMemo(()=>!Tt.includes(si)&&ri>=100?"success":si||"normal",[si,ri]),{getPrefixCls:Mn,direction:An,progress:Dn}=de.useContext(me.E_),lr=Mn("progress",Fn),[qn,pr]=Xt(lr),$n=de.useMemo(()=>{if(!Vr)return null;const We=ht(at);let pt;const zt=Li||(en=>`${en}%`),Bt=ur==="line";return Li||yt!=="exception"&&yt!=="success"?pt=zt(Ce(Er),Ce(We)):yt==="exception"?pt=Bt?de.createElement(Ve.Z,null):de.createElement(ve.Z,null):yt==="success"&&(pt=Bt?de.createElement(He.Z,null):de.createElement(Be.Z,null)),de.createElement("span",{className:`${lr}-text`,title:typeof pt=="string"?pt:void 0},pt)},[Vr,Er,ri,yt,ur,lr,Li]),qe=Array.isArray(Tr)?Tr[0]:Tr,ut=typeof Tr=="string"||Array.isArray(Tr)?Tr:void 0;let Dt;ur==="line"?Dt=Sr?de.createElement(le,Object.assign({},at,{strokeColor:ut,prefixCls:lr,steps:Sr}),$n):de.createElement(Ae,Object.assign({},at,{strokeColor:qe,prefixCls:lr,direction:An}),$n):(ur==="circle"||ur==="dashboard")&&(Dt=de.createElement(rn,Object.assign({},at,{strokeColor:qe,prefixCls:lr,progressStatus:yt}),$n));const Vt=Ee()(lr,`${lr}-status-${yt}`,`${lr}-${ur==="dashboard"&&"circle"||Sr&&"steps"||ur}`,{[`${lr}-inline-circle`]:ur==="circle"&&Ge(Or,"circle")[0]<=20,[`${lr}-show-info`]:Vr,[`${lr}-${Or}`]:typeof Or=="string",[`${lr}-rtl`]:An==="rtl"},Dn==null?void 0:Dn.className,er,nr,pr);return qn(de.createElement("div",Object.assign({ref:Ht,style:Object.assign(Object.assign({},Dn==null?void 0:Dn.style),Bi),className:Vt,role:"progressbar","aria-valuenow":ri},(0,xe.Z)(Hi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Dt))}),Mr=cr},78045:function(En,Wt,se){"use strict";se.d(Wt,{ZP:function(){return Qe}});var de=se(94184),He=se.n(de),Be=se(5663),Ve=se(1337),ve=se(67294),we=se(53124),Ee=se(98675);const xe=ve.createContext(null),me=xe.Provider;var Ie=xe;const ot=ve.createContext(null),Oe=ot.Provider;var St=se(95860),ft=se(17799),it=se(98866),Je=se(65223),Le=se(14747),gt=se(67968),qt=se(45503);const tt=Ce=>{const{componentCls:ht,antCls:Ut}=Ce,Yt=`${ht}-group`;return{[Yt]:Object.assign(Object.assign({},(0,Le.Wf)(Ce)),{display:"inline-block",fontSize:0,[`&${Yt}-rtl`]:{direction:"rtl"},[`${Ut}-badge ${Ut}-badge-count`]:{zIndex:1},[`> ${Ut}-badge:not(:first-child) > ${Ut}-button-wrapper`]:{borderInlineStart:"none"}})}},ct=Ce=>{const{componentCls:ht,wrapperMarginInlineEnd:Ut,colorPrimary:Yt,radioSize:Ge,motionDurationSlow:rt,motionDurationMid:jt,motionEaseInOutCirc:_n,colorBgContainer:rn,colorBorder:$t,lineWidth:Zt,dotSize:yn,colorBgContainerDisabled:ln,colorTextDisabled:Ae,paddingXS:ue,dotColorDisabled:le,lineType:pe,radioDotDisabledSize:he,wireframe:oe,colorWhite:Te}=Ce,Ye=`${ht}-inner`;return{[`${ht}-wrapper`]:Object.assign(Object.assign({},(0,Le.Wf)(Ce)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Ut,cursor:"pointer",[`&${ht}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Ce.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${ht}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Zt}px ${pe} ${Yt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[ht]:Object.assign(Object.assign({},(0,Le.Wf)(Ce)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${ht}-wrapper:hover &, &:hover ${Ye}`]:{borderColor:Yt},[`${ht}-input:focus-visible + ${Ye}`]:Object.assign({},(0,Le.oN)(Ce)),[`${ht}:hover::after, ${ht}-wrapper:hover &::after`]:{visibility:"visible"},[`${ht}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Ge,height:Ge,marginBlockStart:Ge/-2,marginInlineStart:Ge/-2,backgroundColor:oe?Yt:Te,borderBlockStart:0,borderInlineStart:0,borderRadius:Ge,transform:"scale(0)",opacity:0,transition:`all ${rt} ${_n}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Ge,height:Ge,backgroundColor:rn,borderColor:$t,borderStyle:"solid",borderWidth:Zt,borderRadius:"50%",transition:`all ${jt}`},[`${ht}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${ht}-checked`]:{[Ye]:{borderColor:Yt,backgroundColor:oe?rn:Yt,"&::after":{transform:`scale(${yn/Ge})`,opacity:1,transition:`all ${rt} ${_n}`}}},[`${ht}-disabled`]:{cursor:"not-allowed",[Ye]:{backgroundColor:ln,borderColor:$t,cursor:"not-allowed","&::after":{backgroundColor:le}},[`${ht}-input`]:{cursor:"not-allowed"},[`${ht}-disabled + span`]:{color:Ae,cursor:"not-allowed"},[`&${ht}-checked`]:{[Ye]:{"&::after":{transform:`scale(${he/Ge})`}}}},[`span${ht} + *`]:{paddingInlineStart:ue,paddingInlineEnd:ue}})}},ke=Ce=>{const{buttonColor:ht,controlHeight:Ut,componentCls:Yt,lineWidth:Ge,lineType:rt,colorBorder:jt,motionDurationSlow:_n,motionDurationMid:rn,buttonPaddingInline:$t,fontSize:Zt,buttonBg:yn,fontSizeLG:ln,controlHeightLG:Ae,controlHeightSM:ue,paddingXS:le,borderRadius:pe,borderRadiusSM:he,borderRadiusLG:oe,buttonCheckedBg:Te,buttonSolidCheckedColor:Ye,colorTextDisabled:Lt,colorBgContainerDisabled:Rt,buttonCheckedBgDisabled:Ft,buttonCheckedColorDisabled:Jt,colorPrimary:Xt,colorPrimaryHover:Hn,colorPrimaryActive:Rn,buttonSolidCheckedBg:Tt,buttonSolidCheckedHoverBg:dn,buttonSolidCheckedActiveBg:cr}=Ce;return{[`${Yt}-button-wrapper`]:{position:"relative",display:"inline-block",height:Ut,margin:0,paddingInline:$t,paddingBlock:0,color:ht,fontSize:Zt,lineHeight:`${Ut-Ge*2}px`,background:yn,border:`${Ge}px ${rt} ${jt}`,borderBlockStartWidth:Ge+.02,borderInlineStartWidth:0,borderInlineEndWidth:Ge,cursor:"pointer",transition:[`color ${rn}`,`background ${rn}`,`box-shadow ${rn}`].join(","),a:{color:ht},[`> ${Yt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Ge,insetInlineStart:-Ge,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Ge,paddingInline:0,backgroundColor:jt,transition:`background-color ${_n}`,content:'""'}},"&:first-child":{borderInlineStart:`${Ge}px ${rt} ${jt}`,borderStartStartRadius:pe,borderEndStartRadius:pe},"&:last-child":{borderStartEndRadius:pe,borderEndEndRadius:pe},"&:first-child:last-child":{borderRadius:pe},[`${Yt}-group-large &`]:{height:Ae,fontSize:ln,lineHeight:`${Ae-Ge*2}px`,"&:first-child":{borderStartStartRadius:oe,borderEndStartRadius:oe},"&:last-child":{borderStartEndRadius:oe,borderEndEndRadius:oe}},[`${Yt}-group-small &`]:{height:ue,paddingInline:le-Ge,paddingBlock:0,lineHeight:`${ue-Ge*2}px`,"&:first-child":{borderStartStartRadius:he,borderEndStartRadius:he},"&:last-child":{borderStartEndRadius:he,borderEndEndRadius:he}},"&:hover":{position:"relative",color:Xt},"&:has(:focus-visible)":Object.assign({},(0,Le.oN)(Ce)),[`${Yt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Yt}-button-wrapper-disabled)`]:{zIndex:1,color:Xt,background:Te,borderColor:Xt,"&::before":{backgroundColor:Xt},"&:first-child":{borderColor:Xt},"&:hover":{color:Hn,borderColor:Hn,"&::before":{backgroundColor:Hn}},"&:active":{color:Rn,borderColor:Rn,"&::before":{backgroundColor:Rn}}},[`${Yt}-group-solid &-checked:not(${Yt}-button-wrapper-disabled)`]:{color:Ye,background:Tt,borderColor:Tt,"&:hover":{color:Ye,background:dn,borderColor:dn},"&:active":{color:Ye,background:cr,borderColor:cr}},"&-disabled":{color:Lt,backgroundColor:Rt,borderColor:jt,cursor:"not-allowed","&:first-child, &:hover":{color:Lt,backgroundColor:Rt,borderColor:jt}},[`&-disabled${Yt}-button-wrapper-checked`]:{color:Jt,backgroundColor:Ft,borderColor:jt,boxShadow:"none"}}}},Se=Ce=>Ce-4*2;var Ue=(0,gt.Z)("Radio",Ce=>{const{controlOutline:ht,controlOutlineWidth:Ut,radioSize:Yt}=Ce,Ge=`0 0 0 ${Ut}px ${ht}`,rt=Ge,jt=Se(Yt),_n=(0,qt.TS)(Ce,{radioDotDisabledSize:jt,radioFocusShadow:Ge,radioButtonFocusShadow:rt});return[tt(_n),ct(_n),ke(_n)]},Ce=>{const{wireframe:ht,padding:Ut,marginXS:Yt,lineWidth:Ge,fontSizeLG:rt,colorText:jt,colorBgContainer:_n,colorTextDisabled:rn,controlItemBgActiveDisabled:$t,colorTextLightSolid:Zt,colorPrimary:yn,colorPrimaryHover:ln,colorPrimaryActive:Ae}=Ce,ue=4,le=rt,pe=ht?Se(le):le-(ue+Ge)*2;return{radioSize:le,dotSize:pe,dotColorDisabled:rn,buttonSolidCheckedColor:Zt,buttonSolidCheckedBg:yn,buttonSolidCheckedHoverBg:ln,buttonSolidCheckedActiveBg:Ae,buttonBg:_n,buttonCheckedBg:_n,buttonColor:jt,buttonCheckedBgDisabled:$t,buttonCheckedColorDisabled:rn,buttonPaddingInline:Ut-Ge,wrapperMarginInlineEnd:Yt}}),je=se(45353),_t=se(92429),vt=function(Ce,ht){var Ut={};for(var Yt in Ce)Object.prototype.hasOwnProperty.call(Ce,Yt)&&ht.indexOf(Yt)<0&&(Ut[Yt]=Ce[Yt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Yt=Object.getOwnPropertySymbols(Ce);Ge{var Ut,Yt;const Ge=ve.useContext(Ie),rt=ve.useContext(ot),{getPrefixCls:jt,direction:_n,radio:rn}=ve.useContext(we.E_),$t=ve.useRef(null),Zt=(0,ft.sQ)(ht,$t),{isFormItemInput:yn}=ve.useContext(Je.aM),ln=Rn=>{var Tt,dn;(Tt=Ce.onChange)===null||Tt===void 0||Tt.call(Ce,Rn),(dn=Ge==null?void 0:Ge.onChange)===null||dn===void 0||dn.call(Ge,Rn)},{prefixCls:Ae,className:ue,rootClassName:le,children:pe,style:he}=Ce,oe=vt(Ce,["prefixCls","className","rootClassName","children","style"]),Te=jt("radio",Ae),Ye=((Ge==null?void 0:Ge.optionType)||rt)==="button",Lt=Ye?`${Te}-button`:Te,[Rt,Ft]=Ue(Te),Jt=Object.assign({},oe),Xt=ve.useContext(it.Z);Ge&&(Jt.name=Ge.name,Jt.onChange=ln,Jt.checked=Ce.value===Ge.value,Jt.disabled=(Ut=Jt.disabled)!==null&&Ut!==void 0?Ut:Ge.disabled),Jt.disabled=(Yt=Jt.disabled)!==null&&Yt!==void 0?Yt:Xt;const Hn=He()(`${Lt}-wrapper`,{[`${Lt}-wrapper-checked`]:Jt.checked,[`${Lt}-wrapper-disabled`]:Jt.disabled,[`${Lt}-wrapper-rtl`]:_n==="rtl",[`${Lt}-wrapper-in-form-item`]:yn},rn==null?void 0:rn.className,ue,le,Ft);return Rt(ve.createElement(je.Z,{component:"Radio",disabled:Jt.disabled},ve.createElement("label",{className:Hn,style:Object.assign(Object.assign({},rn==null?void 0:rn.style),he),onMouseEnter:Ce.onMouseEnter,onMouseLeave:Ce.onMouseLeave},ve.createElement(St.Z,Object.assign({},Jt,{className:He()(Jt.className,!Ye&&_t.A),type:"radio",prefixCls:Lt,ref:Zt})),pe!==void 0?ve.createElement("span",null,pe):null)))};var Kt=ve.forwardRef(kt);const Ot=ve.forwardRef((Ce,ht)=>{const{getPrefixCls:Ut,direction:Yt}=ve.useContext(we.E_),[Ge,rt]=(0,Be.Z)(Ce.defaultValue,{value:Ce.value}),jt=Tt=>{const dn=Ge,cr=Tt.target.value;"value"in Ce||rt(cr);const{onChange:Mr}=Ce;Mr&&cr!==dn&&Mr(Tt)},{prefixCls:_n,className:rn,rootClassName:$t,options:Zt,buttonStyle:yn="outline",disabled:ln,children:Ae,size:ue,style:le,id:pe,onMouseEnter:he,onMouseLeave:oe,onFocus:Te,onBlur:Ye}=Ce,Lt=Ut("radio",_n),Rt=`${Lt}-group`,[Ft,Jt]=Ue(Lt);let Xt=Ae;Zt&&Zt.length>0&&(Xt=Zt.map(Tt=>typeof Tt=="string"||typeof Tt=="number"?ve.createElement(Kt,{key:Tt.toString(),prefixCls:Lt,disabled:ln,value:Tt,checked:Ge===Tt},Tt):ve.createElement(Kt,{key:`radio-group-value-options-${Tt.value}`,prefixCls:Lt,disabled:Tt.disabled||ln,value:Tt.value,checked:Ge===Tt.value,title:Tt.title,style:Tt.style},Tt.label)));const Hn=(0,Ee.Z)(ue),Rn=He()(Rt,`${Rt}-${yn}`,{[`${Rt}-${Hn}`]:Hn,[`${Rt}-rtl`]:Yt==="rtl"},rn,$t,Jt);return Ft(ve.createElement("div",Object.assign({},(0,Ve.Z)(Ce,{aria:!0,data:!0}),{className:Rn,style:le,onMouseEnter:he,onMouseLeave:oe,onFocus:Te,onBlur:Ye,id:pe,ref:ht}),ve.createElement(me,{value:{onChange:jt,value:Ge,disabled:Ce.disabled,name:Ce.name,optionType:Ce.optionType}},Xt)))});var bn=ve.memo(Ot),Nt=function(Ce,ht){var Ut={};for(var Yt in Ce)Object.prototype.hasOwnProperty.call(Ce,Yt)&&ht.indexOf(Yt)<0&&(Ut[Yt]=Ce[Yt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Yt=Object.getOwnPropertySymbols(Ce);Ge{const{getPrefixCls:Ut}=ve.useContext(we.E_),{prefixCls:Yt}=Ce,Ge=Nt(Ce,["prefixCls"]),rt=Ut("radio",Yt);return ve.createElement(Oe,{value:"button"},ve.createElement(Kt,Object.assign({prefixCls:rt},Ge,{type:"radio",ref:ht})))};var Cn=ve.forwardRef(sn);const or=Kt;or.Button=Cn,or.Group=bn,or.__ANT_RADIO=!0;var Qe=or},11713:function(En,Wt,se){"use strict";se.d(Wt,{default:function(){return xr}});var de=se(94184),He=se.n(de),Be=se(87462),Ve=se(74902),ve=se(4942),we=se(1413),Ee=se(97685),xe=se(45987),me=se(71002),Ie=se(67294);function ot(Re){var Ke=Ie.useRef();Ke.current=Re;var At=Ie.useCallback(function(){for(var dt,Gt=arguments.length,pn=new Array(Gt),Sn=0;Sn=kt.F1&&At<=kt.F12)return!1;switch(At){case kt.ALT:case kt.CAPS_LOCK:case kt.CONTEXT_MENU:case kt.CTRL:case kt.DOWN:case kt.END:case kt.ESC:case kt.HOME:case kt.INSERT:case kt.LEFT:case kt.MAC_FF_META:case kt.META:case kt.NUMLOCK:case kt.NUM_CENTER:case kt.PAGE_DOWN:case kt.PAGE_UP:case kt.PAUSE:case kt.PRINT_SCREEN:case kt.RIGHT:case kt.SHIFT:case kt.UP:case kt.WIN_KEY:case kt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ke){if(Ke>=kt.ZERO&&Ke<=kt.NINE||Ke>=kt.NUM_ZERO&&Ke<=kt.NUM_MULTIPLY||Ke>=kt.A&&Ke<=kt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ke===0)return!0;switch(Ke){case kt.SPACE:case kt.QUESTION_MARK:case kt.NUM_PLUS:case kt.NUM_MINUS:case kt.NUM_PERIOD:case kt.NUM_DIVISION:case kt.SEMICOLON:case kt.DASH:case kt.EQUALS:case kt.COMMA:case kt.PERIOD:case kt.SLASH:case kt.APOSTROPHE:case kt.SINGLE_QUOTE:case kt.OPEN_SQUARE_BRACKET:case kt.BACKSLASH:case kt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Xe=kt,Kt=se(47655);function Ot(Re,Ke,At){var dt=Ie.useRef({});return(!("value"in dt.current)||At(dt.current.condition,Ke))&&(dt.current.value=Re(),dt.current.condition=Ke),dt.current.value}function bn(Re,Ke){typeof Re=="function"?Re(Ke):(0,me.Z)(Re)==="object"&&Re&&"current"in Re&&(Re.current=Ke)}function Nt(){for(var Re=arguments.length,Ke=new Array(Re),At=0;At5&&arguments[5]!==void 0?arguments[5]:!1,Sn=arguments.length>6?arguments[6]:void 0,Kn=arguments.length>7?arguments[7]:void 0,Tn=Ie.useMemo(function(){if((0,me.Z)(dt)==="object")return dt.clearIcon;if(Gt)return Gt},[dt,Gt]),cn=Ie.useMemo(function(){return!!(!pn&&dt&&(At.length||Sn)&&!(Kn==="combobox"&&Sn===""))},[dt,pn,At.length,Sn,Kn]);return{allowClear:cn,clearIcon:Ie.createElement(Qe,{className:"".concat(Re,"-clear"),onMouseDown:Ke,customizeIcon:Tn},"\xD7")}}var ht=Ie.createContext(null);function Ut(){return Ie.useContext(ht)}function Yt(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ke=Ie.useState(!1),At=(0,Ee.Z)(Ke,2),dt=At[0],Gt=At[1],pn=Ie.useRef(null),Sn=function(){window.clearTimeout(pn.current)};Ie.useEffect(function(){return Sn},[]);var Kn=function(cn,Wn){Sn(),pn.current=window.setTimeout(function(){Gt(cn),Wn&&Wn()},Re)};return[dt,Kn,Sn]}function Ge(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ke=Ie.useRef(null),At=Ie.useRef(null);Ie.useEffect(function(){return function(){window.clearTimeout(At.current)}},[]);function dt(Gt){(Gt||Ke.current===null)&&(Ke.current=Gt),window.clearTimeout(At.current),At.current=window.setTimeout(function(){Ke.current=null},Re)}return[function(){return Ke.current},dt]}function rt(Re,Ke,At,dt){var Gt=Ie.useRef(null);Gt.current={open:Ke,triggerOpen:At,customizedTrigger:dt},Ie.useEffect(function(){function pn(Sn){var Kn;if(!((Kn=Gt.current)!==null&&Kn!==void 0&&Kn.customizedTrigger)){var Tn=Sn.target;Tn.shadowRoot&&Sn.composed&&(Tn=Sn.composedPath()[0]||Tn),Gt.current.open&&Re().filter(function(cn){return cn}).every(function(cn){return!cn.contains(Tn)&&cn!==Tn})&&Gt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",pn),function(){return window.removeEventListener("mousedown",pn)}},[])}var jt=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,_n=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,rn="".concat(jt," ").concat(_n).split(/[\s\n]+/),$t="aria-",Zt="data-";function yn(Re,Ke){return Re.indexOf(Ke)===0}function ln(Re){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At;Ke===!1?At={aria:!0,data:!0,attr:!0}:Ke===!0?At={aria:!0}:At=(0,we.Z)({},Ke);var dt={};return Object.keys(Re).forEach(function(Gt){(At.aria&&(Gt==="role"||yn(Gt,$t))||At.data&&yn(Gt,Zt)||At.attr&&rn.includes(Gt))&&(dt[Gt]=Re[Gt])}),dt}var Ae=se(48555),ue=se(14075),le=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],pe=void 0;function he(Re,Ke){var At=Re.prefixCls,dt=Re.invalidate,Gt=Re.item,pn=Re.renderItem,Sn=Re.responsive,Kn=Re.responsiveDisabled,Tn=Re.registerSize,cn=Re.itemKey,Wn=Re.className,Zn=Re.style,wr=Re.children,Un=Re.display,Rr=Re.order,Yr=Re.component,Nr=Yr===void 0?"div":Yr,jr=(0,xe.Z)(Re,le),kr=Sn&&!Un;function zr(Oi){Tn(cn,Oi)}Ie.useEffect(function(){return function(){zr(null)}},[]);var ei=pn&&Gt!==pe?pn(Gt):wr,ci;dt||(ci={opacity:kr?0:1,height:kr?0:pe,overflowY:kr?"hidden":pe,order:Sn?Rr:pe,pointerEvents:kr?"none":pe,position:kr?"absolute":pe});var Fr={};kr&&(Fr["aria-hidden"]=!0);var fi=Ie.createElement(Nr,(0,Be.Z)({className:He()(!dt&&At,Wn),style:(0,we.Z)((0,we.Z)({},ci),Zn)},Fr,jr,{ref:Ke}),ei);return Sn&&(fi=Ie.createElement(Ae.Z,{onResize:function(na){var Xi=na.offsetWidth;zr(Xi)},disabled:Kn},fi)),fi}var oe=Ie.forwardRef(he);oe.displayName="Item";var Te=oe,Ye=se(77527),Lt=se(73935),Rt=se(96523);function Ft(Re){if(typeof MessageChannel=="undefined")(0,Rt.Z)(Re);else{var Ke=new MessageChannel;Ke.port1.onmessage=function(){return Re()},Ke.port2.postMessage(void 0)}}function Jt(){var Re=Ie.useRef(null),Ke=function(dt){Re.current||(Re.current=[],Ft(function(){(0,Lt.unstable_batchedUpdates)(function(){Re.current.forEach(function(Gt){Gt()}),Re.current=null})})),Re.current.push(dt)};return Ke}function Xt(Re,Ke){var At=Ie.useState(Ke),dt=(0,Ee.Z)(At,2),Gt=dt[0],pn=dt[1],Sn=(0,Ye.Z)(function(Kn){Re(function(){pn(Kn)})});return[Gt,Sn]}var Hn=Ie.createContext(null),Rn=["component"],Tt=["className"],dn=["className"],cr=function(Ke,At){var dt=Ie.useContext(Hn);if(!dt){var Gt=Ke.component,pn=Gt===void 0?"div":Gt,Sn=(0,xe.Z)(Ke,Rn);return Ie.createElement(pn,(0,Be.Z)({},Sn,{ref:At}))}var Kn=dt.className,Tn=(0,xe.Z)(dt,Tt),cn=Ke.className,Wn=(0,xe.Z)(Ke,dn);return Ie.createElement(Hn.Provider,{value:null},Ie.createElement(Te,(0,Be.Z)({ref:At,className:He()(Kn,cn)},Tn,Wn)))},Mr=Ie.forwardRef(cr);Mr.displayName="RawItem";var at=Mr,Ht=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fn="responsive",er="invalidate";function nr(Re){return"+ ".concat(Re.length," ...")}function Sr(Re,Ke){var At=Re.prefixCls,dt=At===void 0?"rc-overflow":At,Gt=Re.data,pn=Gt===void 0?[]:Gt,Sn=Re.renderItem,Kn=Re.renderRawItem,Tn=Re.itemKey,cn=Re.itemWidth,Wn=cn===void 0?10:cn,Zn=Re.ssr,wr=Re.style,Un=Re.className,Rr=Re.maxCount,Yr=Re.renderRest,Nr=Re.renderRawRest,jr=Re.suffix,kr=Re.component,zr=kr===void 0?"div":kr,ei=Re.itemComponent,ci=Re.onVisibleChange,Fr=(0,xe.Z)(Re,Ht),fi=Zn==="full",Oi=Jt(),na=Xt(Oi,null),Xi=(0,Ee.Z)(na,2),Fi=Xi[0],Ji=Xi[1],Qi=Fi||0,wi=Xt(Oi,new Map),zi=(0,Ee.Z)(wi,2),Jr=zi[0],hi=zi[1],Ii=Xt(Oi,0),Yi=(0,Ee.Z)(Ii,2),$a=Yi[0],Na=Yi[1],Aa=Xt(Oi,0),ca=(0,Ee.Z)(Aa,2),ea=ca[0],Mi=ca[1],Oa=Xt(Oi,0),ki=(0,Ee.Z)(Oa,2),ti=ki[0],Wi=ki[1],ua=(0,Ie.useState)(null),Vi=(0,Ee.Z)(ua,2),aa=Vi[0],mi=Vi[1],pa=(0,Ie.useState)(null),xa=(0,Ee.Z)(pa,2),fa=xa[0],wa=xa[1],Ma=Ie.useMemo(function(){return fa===null&&fi?Number.MAX_SAFE_INTEGER:fa||0},[fa,Fi]),Za=(0,Ie.useState)(!1),ha=(0,Ee.Z)(Za,2),ka=ha[0],Ja=ha[1],Ga="".concat(dt,"-item"),so=Math.max($a,ea),Fa=Rr===Fn,Ca=pn.length&&Fa,_i=Rr===er,Ui=Ca||typeof Rr=="number"&&pn.length>Rr,da=(0,Ie.useMemo)(function(){var oa=pn;return Ca?Fi===null&&fi?oa=pn:oa=pn.slice(0,Math.min(pn.length,Qi/Wn)):typeof Rr=="number"&&(oa=pn.slice(0,Rr)),oa},[pn,Wn,Fi,Rr,Ca]),Sa=(0,Ie.useMemo)(function(){return Ca?pn.slice(Ma+1):pn.slice(da.length)},[pn,da,Ca,Ma]),Ka=(0,Ie.useCallback)(function(oa,Br){var Si;return typeof Tn=="function"?Tn(oa):(Si=Tn&&(oa==null?void 0:oa[Tn]))!==null&&Si!==void 0?Si:Br},[Tn]),io=(0,Ie.useCallback)(Sn||function(oa){return oa},[Sn]);function ho(oa,Br,Si){fa===oa&&(Br===void 0||Br===aa)||(wa(oa),Si||(Ja(oaQi){ho(Ci-1,oa-Di-ti+ea);break}}jr&&ra(0)+ti>Qi&&mi(null)}},[Qi,Jr,ea,ti,Ka,da]);var Ri=ka&&!!Sa.length,Ta={};aa!==null&&Ca&&(Ta={position:"absolute",left:aa,top:0});var _a={prefixCls:Ga,responsive:Ca,component:ei,invalidate:_i},co=Kn?function(oa,Br){var Si=Ka(oa,Br);return Ie.createElement(Hn.Provider,{key:Si,value:(0,we.Z)((0,we.Z)({},_a),{},{order:Br,item:oa,itemKey:Si,registerSize:Ro,display:Br<=Ma})},Kn(oa,Br))}:function(oa,Br){var Si=Ka(oa,Br);return Ie.createElement(Te,(0,Be.Z)({},_a,{order:Br,key:Si,item:oa,renderItem:io,itemKey:Si,registerSize:Ro,display:Br<=Ma}))},ao,hs={order:Ri?Ma:Number.MAX_SAFE_INTEGER,className:"".concat(Ga,"-rest"),registerSize:lo,display:Ri};if(Nr)Nr&&(ao=Ie.createElement(Hn.Provider,{value:(0,we.Z)((0,we.Z)({},_a),hs)},Nr(Sa)));else{var Qo=Yr||nr;ao=Ie.createElement(Te,(0,Be.Z)({},_a,hs),typeof Qo=="function"?Qo(Sa):Qo)}var ps=Ie.createElement(zr,(0,Be.Z)({className:He()(!_i&&dt,Un),style:wr,ref:Ke},Fr),da.map(co),Ui?ao:null,jr&&Ie.createElement(Te,(0,Be.Z)({},_a,{responsive:Fa,responsiveDisabled:!Ca,order:Ma,className:"".concat(Ga,"-suffix"),registerSize:Ao,display:!0,style:Ta}),jr));return Fa&&(ps=Ie.createElement(Ae.Z,{onResize:Oo,disabled:!Ca},ps)),ps}var Tr=Ie.forwardRef(Sr);Tr.displayName="Overflow",Tr.Item=at,Tr.RESPONSIVE=Fn,Tr.INVALIDATE=er;var Er=Tr,Or=Er,Vr=function(Ke,At){var dt,Gt,pn=Ke.prefixCls,Sn=Ke.id,Kn=Ke.inputElement,Tn=Ke.disabled,cn=Ke.tabIndex,Wn=Ke.autoFocus,Zn=Ke.autoComplete,wr=Ke.editable,Un=Ke.activeDescendantId,Rr=Ke.value,Yr=Ke.maxLength,Nr=Ke.onKeyDown,jr=Ke.onMouseDown,kr=Ke.onChange,zr=Ke.onPaste,ei=Ke.onCompositionStart,ci=Ke.onCompositionEnd,Fr=Ke.open,fi=Ke.attrs,Oi=Kn||Ie.createElement("input",null),na=Oi,Xi=na.ref,Fi=na.props,Ji=Fi.onKeyDown,Qi=Fi.onChange,wi=Fi.onMouseDown,zi=Fi.onCompositionStart,Jr=Fi.onCompositionEnd,hi=Fi.style;return"maxLength"in Oi.props,Oi=Ie.cloneElement(Oi,(0,we.Z)((0,we.Z)((0,we.Z)({type:"search"},Fi),{},{id:Sn,ref:Nt(At,Xi),disabled:Tn,tabIndex:cn,autoComplete:Zn||"off",autoFocus:Wn,className:He()("".concat(pn,"-selection-search-input"),(dt=Oi)===null||dt===void 0||(Gt=dt.props)===null||Gt===void 0?void 0:Gt.className),role:"combobox","aria-label":"Search","aria-expanded":Fr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Sn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Sn,"_list"),"aria-activedescendant":Fr?Un:void 0},fi),{},{value:wr?Rr:"",maxLength:Yr,readOnly:!wr,unselectable:wr?null:"on",style:(0,we.Z)((0,we.Z)({},hi),{},{opacity:wr?null:0}),onKeyDown:function(Yi){Nr(Yi),Ji&&Ji(Yi)},onMouseDown:function(Yi){jr(Yi),wi&&wi(Yi)},onChange:function(Yi){kr(Yi),Qi&&Qi(Yi)},onCompositionStart:function(Yi){ei(Yi),zi&&zi(Yi)},onCompositionEnd:function(Yi){ci(Yi),Jr&&Jr(Yi)},onPaste:zr})),Oi},ur=Ie.forwardRef(Vr);ur.displayName="Input";var si=ur;function Li(Re){return Array.isArray(Re)?Re:Re!==void 0?[Re]:[]}var Bi=typeof window!="undefined"&&window.document&&window.document.documentElement,Hi=Bi;function ri(Re){return Re!=null}function yt(Re){return!Re&&Re!==0}function Mn(Re){return["string","number"].includes((0,me.Z)(Re))}function An(Re){var Ke=void 0;return Re&&(Mn(Re.title)?Ke=Re.title.toString():Mn(Re.label)&&(Ke=Re.label.toString())),Ke}function Dn(Re,Ke){Hi?Ie.useLayoutEffect(Re,Ke):Ie.useEffect(Re,Ke)}function lr(Re){var Ke;return(Ke=Re.key)!==null&&Ke!==void 0?Ke:Re.value}var qn=function(Ke){Ke.preventDefault(),Ke.stopPropagation()},pr=function(Ke){var At=Ke.id,dt=Ke.prefixCls,Gt=Ke.values,pn=Ke.open,Sn=Ke.searchValue,Kn=Ke.autoClearSearchValue,Tn=Ke.inputRef,cn=Ke.placeholder,Wn=Ke.disabled,Zn=Ke.mode,wr=Ke.showSearch,Un=Ke.autoFocus,Rr=Ke.autoComplete,Yr=Ke.activeDescendantId,Nr=Ke.tabIndex,jr=Ke.removeIcon,kr=Ke.maxTagCount,zr=Ke.maxTagTextLength,ei=Ke.maxTagPlaceholder,ci=ei===void 0?function(mi){return"+ ".concat(mi.length," ...")}:ei,Fr=Ke.tagRender,fi=Ke.onToggleOpen,Oi=Ke.onRemove,na=Ke.onInputChange,Xi=Ke.onInputPaste,Fi=Ke.onInputKeyDown,Ji=Ke.onInputMouseDown,Qi=Ke.onInputCompositionStart,wi=Ke.onInputCompositionEnd,zi=Ie.useRef(null),Jr=(0,Ie.useState)(0),hi=(0,Ee.Z)(Jr,2),Ii=hi[0],Yi=hi[1],$a=(0,Ie.useState)(!1),Na=(0,Ee.Z)($a,2),Aa=Na[0],ca=Na[1],ea="".concat(dt,"-selection"),Mi=pn||Zn==="multiple"&&Kn===!1||Zn==="tags"?Sn:"",Oa=Zn==="tags"||Zn==="multiple"&&Kn===!1||wr&&(pn||Aa);Dn(function(){Yi(zi.current.scrollWidth)},[Mi]);function ki(mi,pa,xa,fa,wa){return Ie.createElement("span",{className:He()("".concat(ea,"-item"),(0,ve.Z)({},"".concat(ea,"-item-disabled"),xa)),title:An(mi)},Ie.createElement("span",{className:"".concat(ea,"-item-content")},pa),fa&&Ie.createElement(Qe,{className:"".concat(ea,"-item-remove"),onMouseDown:qn,onClick:wa,customizeIcon:jr},"\xD7"))}function ti(mi,pa,xa,fa,wa){var Ma=function(ha){qn(ha),fi(!pn)};return Ie.createElement("span",{onMouseDown:Ma},Fr({label:pa,value:mi,disabled:xa,closable:fa,onClose:wa}))}function Wi(mi){var pa=mi.disabled,xa=mi.label,fa=mi.value,wa=!Wn&&!pa,Ma=xa;if(typeof zr=="number"&&(typeof xa=="string"||typeof xa=="number")){var Za=String(Ma);Za.length>zr&&(Ma="".concat(Za.slice(0,zr),"..."))}var ha=function(Ja){Ja&&Ja.stopPropagation(),Oi(mi)};return typeof Fr=="function"?ti(fa,Ma,pa,wa,ha):ki(mi,Ma,pa,wa,ha)}function ua(mi){var pa=typeof ci=="function"?ci(mi):ci;return ki({title:pa},pa,!1)}var Vi=Ie.createElement("div",{className:"".concat(ea,"-search"),style:{width:Ii},onFocus:function(){ca(!0)},onBlur:function(){ca(!1)}},Ie.createElement(si,{ref:Tn,open:pn,prefixCls:dt,id:At,inputElement:null,disabled:Wn,autoFocus:Un,autoComplete:Rr,editable:Oa,activeDescendantId:Yr,value:Mi,onKeyDown:Fi,onMouseDown:Ji,onChange:na,onPaste:Xi,onCompositionStart:Qi,onCompositionEnd:wi,tabIndex:Nr,attrs:ln(Ke,!0)}),Ie.createElement("span",{ref:zi,className:"".concat(ea,"-search-mirror"),"aria-hidden":!0},Mi,"\xA0")),aa=Ie.createElement(Or,{prefixCls:"".concat(ea,"-overflow"),data:Gt,renderItem:Wi,renderRest:ua,suffix:Vi,itemKey:lr,maxCount:kr});return Ie.createElement(Ie.Fragment,null,aa,!Gt.length&&!Mi&&Ie.createElement("span",{className:"".concat(ea,"-placeholder")},cn))},$n=pr,qe=function(Ke){var At=Ke.inputElement,dt=Ke.prefixCls,Gt=Ke.id,pn=Ke.inputRef,Sn=Ke.disabled,Kn=Ke.autoFocus,Tn=Ke.autoComplete,cn=Ke.activeDescendantId,Wn=Ke.mode,Zn=Ke.open,wr=Ke.values,Un=Ke.placeholder,Rr=Ke.tabIndex,Yr=Ke.showSearch,Nr=Ke.searchValue,jr=Ke.activeValue,kr=Ke.maxLength,zr=Ke.onInputKeyDown,ei=Ke.onInputMouseDown,ci=Ke.onInputChange,Fr=Ke.onInputPaste,fi=Ke.onInputCompositionStart,Oi=Ke.onInputCompositionEnd,na=Ke.title,Xi=Ie.useState(!1),Fi=(0,Ee.Z)(Xi,2),Ji=Fi[0],Qi=Fi[1],wi=Wn==="combobox",zi=wi||Yr,Jr=wr[0],hi=Nr||"";wi&&jr&&!Ji&&(hi=jr),Ie.useEffect(function(){wi&&Qi(!1)},[wi,jr]);var Ii=Wn!=="combobox"&&!Zn&&!Yr?!1:!!hi,Yi=na===void 0?An(Jr):na,$a=function(){if(Jr)return null;var Aa=Ii?{visibility:"hidden"}:void 0;return Ie.createElement("span",{className:"".concat(dt,"-selection-placeholder"),style:Aa},Un)};return Ie.createElement(Ie.Fragment,null,Ie.createElement("span",{className:"".concat(dt,"-selection-search")},Ie.createElement(si,{ref:pn,prefixCls:dt,id:Gt,open:Zn,inputElement:At,disabled:Sn,autoFocus:Kn,autoComplete:Tn,editable:zi,activeDescendantId:cn,value:hi,onKeyDown:zr,onMouseDown:ei,onChange:function(Aa){Qi(!0),ci(Aa)},onPaste:Fr,onCompositionStart:fi,onCompositionEnd:Oi,tabIndex:Rr,attrs:ln(Ke,!0),maxLength:wi?kr:void 0})),!wi&&Jr?Ie.createElement("span",{className:"".concat(dt,"-selection-item"),title:Yi,style:Ii?{visibility:"hidden"}:void 0},Jr.label):null,$a())},ut=qe;function Dt(Re){return![Xe.ESC,Xe.SHIFT,Xe.BACKSPACE,Xe.TAB,Xe.WIN_KEY,Xe.ALT,Xe.META,Xe.WIN_KEY_RIGHT,Xe.CTRL,Xe.SEMICOLON,Xe.EQUALS,Xe.CAPS_LOCK,Xe.CONTEXT_MENU,Xe.F1,Xe.F2,Xe.F3,Xe.F4,Xe.F5,Xe.F6,Xe.F7,Xe.F8,Xe.F9,Xe.F10,Xe.F11,Xe.F12].includes(Re)}var Vt=function(Ke,At){var dt=(0,Ie.useRef)(null),Gt=(0,Ie.useRef)(!1),pn=Ke.prefixCls,Sn=Ke.open,Kn=Ke.mode,Tn=Ke.showSearch,cn=Ke.tokenWithEnter,Wn=Ke.autoClearSearchValue,Zn=Ke.onSearch,wr=Ke.onSearchSubmit,Un=Ke.onToggleOpen,Rr=Ke.onInputKeyDown,Yr=Ke.domRef;Ie.useImperativeHandle(At,function(){return{focus:function(){dt.current.focus()},blur:function(){dt.current.blur()}}});var Nr=Ge(0),jr=(0,Ee.Z)(Nr,2),kr=jr[0],zr=jr[1],ei=function(hi){var Ii=hi.which;(Ii===Xe.UP||Ii===Xe.DOWN)&&hi.preventDefault(),Rr&&Rr(hi),Ii===Xe.ENTER&&Kn==="tags"&&!Gt.current&&!Sn&&(wr==null||wr(hi.target.value)),Dt(Ii)&&Un(!0)},ci=function(){zr(!0)},Fr=(0,Ie.useRef)(null),fi=function(hi){Zn(hi,!0,Gt.current)!==!1&&Un(!0)},Oi=function(){Gt.current=!0},na=function(hi){Gt.current=!1,Kn!=="combobox"&&fi(hi.target.value)},Xi=function(hi){var Ii=hi.target.value;if(cn&&Fr.current&&/[\r\n]/.test(Fr.current)){var Yi=Fr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ii=Ii.replace(Yi,Fr.current)}Fr.current=null,fi(Ii)},Fi=function(hi){var Ii=hi.clipboardData,Yi=Ii.getData("text");Fr.current=Yi},Ji=function(hi){var Ii=hi.target;if(Ii!==dt.current){var Yi=document.body.style.msTouchAction!==void 0;Yi?setTimeout(function(){dt.current.focus()}):dt.current.focus()}},Qi=function(hi){var Ii=kr();hi.target!==dt.current&&!Ii&&Kn!=="combobox"&&hi.preventDefault(),(Kn!=="combobox"&&(!Tn||!Ii)||!Sn)&&(Sn&&Wn!==!1&&Zn("",!0,!1),Un())},wi={inputRef:dt,onInputKeyDown:ei,onInputMouseDown:ci,onInputChange:Xi,onInputPaste:Fi,onInputCompositionStart:Oi,onInputCompositionEnd:na},zi=Kn==="multiple"||Kn==="tags"?Ie.createElement($n,(0,Be.Z)({},Ke,wi)):Ie.createElement(ut,(0,Be.Z)({},Ke,wi));return Ie.createElement("div",{ref:Yr,className:"".concat(pn,"-selector"),onClick:Ji,onMouseDown:Qi},zi)},We=Ie.forwardRef(Vt);We.displayName="Selector";var pt=We,zt=se(62709),Bt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],en=function(Ke){var At=Ke===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:At,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:At,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:At,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:At,adjustY:1},htmlRegion:"scroll"}}},nn=function(Ke,At){var dt=Ke.prefixCls,Gt=Ke.disabled,pn=Ke.visible,Sn=Ke.children,Kn=Ke.popupElement,Tn=Ke.animation,cn=Ke.transitionName,Wn=Ke.dropdownStyle,Zn=Ke.dropdownClassName,wr=Ke.direction,Un=wr===void 0?"ltr":wr,Rr=Ke.placement,Yr=Ke.builtinPlacements,Nr=Ke.dropdownMatchSelectWidth,jr=Ke.dropdownRender,kr=Ke.dropdownAlign,zr=Ke.getPopupContainer,ei=Ke.empty,ci=Ke.getTriggerDOMNode,Fr=Ke.onPopupVisibleChange,fi=Ke.onPopupMouseEnter,Oi=(0,xe.Z)(Ke,Bt),na="".concat(dt,"-dropdown"),Xi=Kn;jr&&(Xi=jr(Kn));var Fi=Ie.useMemo(function(){return Yr||en(Nr)},[Yr,Nr]),Ji=Tn?"".concat(na,"-").concat(Tn):cn,Qi=typeof Nr=="number",wi=Ie.useMemo(function(){return Qi?null:Nr===!1?"minWidth":"width"},[Nr,Qi]),zi=Wn;Qi&&(zi=(0,we.Z)((0,we.Z)({},zi),{},{width:Nr}));var Jr=Ie.useRef(null);return Ie.useImperativeHandle(At,function(){return{getPopupElement:function(){return Jr.current}}}),Ie.createElement(zt.Z,(0,Be.Z)({},Oi,{showAction:Fr?["click"]:[],hideAction:Fr?["click"]:[],popupPlacement:Rr||(Un==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Fi,prefixCls:na,popupTransitionName:Ji,popup:Ie.createElement("div",{ref:Jr,onMouseEnter:fi},Xi),stretch:wi,popupAlign:kr,popupVisible:pn,getPopupContainer:zr,popupClassName:He()(Zn,(0,ve.Z)({},"".concat(na,"-empty"),ei)),popupStyle:zi,getTriggerDOMNode:ci,onPopupVisibleChange:Fr}),Sn)},jn=Ie.forwardRef(nn);jn.displayName="SelectTrigger";var Lr=jn,rr=se(84506);function tr(Re,Ke){var At=Re.key,dt;return"value"in Re&&(dt=Re.value),At!=null?At:dt!==void 0?dt:"rc-index-key-".concat(Ke)}function dr(Re,Ke){var At=Re||{},dt=At.label,Gt=At.value,pn=At.options,Sn=At.groupLabel,Kn=dt||(Ke?"children":"label");return{label:Kn,value:Gt||"value",options:pn||"options",groupLabel:Sn||Kn}}function fr(Re){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},At=Ke.fieldNames,dt=Ke.childrenAsData,Gt=[],pn=dr(At,!1),Sn=pn.label,Kn=pn.value,Tn=pn.options,cn=pn.groupLabel;function Wn(Zn,wr){Zn.forEach(function(Un){if(wr||!(Tn in Un)){var Rr=Un[Kn];Gt.push({key:tr(Un,Gt.length),groupOption:wr,data:Un,label:Un[Sn],value:Rr})}else{var Yr=Un[cn];Yr===void 0&&dt&&(Yr=Un.label),Gt.push({key:tr(Un,Gt.length),group:!0,data:Un,label:Yr}),Wn(Un[Tn],!0)}})}return Wn(Re,!1),Gt}function mt(Re){var Ke=(0,we.Z)({},Re);return"props"in Ke||Object.defineProperty(Ke,"props",{get:function(){return _t(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ke}}),Ke}function st(Re,Ke){if(!Ke||!Ke.length)return null;var At=!1;function dt(pn,Sn){var Kn=(0,rr.Z)(Sn),Tn=Kn[0],cn=Kn.slice(1);if(!Tn)return[pn];var Wn=pn.split(Tn);return At=At||Wn.length>1,Wn.reduce(function(Zn,wr){return[].concat((0,Ve.Z)(Zn),(0,Ve.Z)(dt(wr,cn)))},[]).filter(function(Zn){return Zn})}var Gt=dt(Re,Ke);return At?Gt:null}var Ct=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],fn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Bn(Re){return Re==="tags"||Re==="multiple"}var hn=Ie.forwardRef(function(Re,Ke){var At,dt,Gt=Re.id,pn=Re.prefixCls,Sn=Re.className,Kn=Re.showSearch,Tn=Re.tagRender,cn=Re.direction,Wn=Re.omitDomProps,Zn=Re.displayValues,wr=Re.onDisplayValuesChange,Un=Re.emptyOptions,Rr=Re.notFoundContent,Yr=Rr===void 0?"Not Found":Rr,Nr=Re.onClear,jr=Re.mode,kr=Re.disabled,zr=Re.loading,ei=Re.getInputElement,ci=Re.getRawInputElement,Fr=Re.open,fi=Re.defaultOpen,Oi=Re.onDropdownVisibleChange,na=Re.activeValue,Xi=Re.onActiveValueChange,Fi=Re.activeDescendantId,Ji=Re.searchValue,Qi=Re.autoClearSearchValue,wi=Re.onSearch,zi=Re.onSearchSplit,Jr=Re.tokenSeparators,hi=Re.allowClear,Ii=Re.suffixIcon,Yi=Re.clearIcon,$a=Re.OptionList,Na=Re.animation,Aa=Re.transitionName,ca=Re.dropdownStyle,ea=Re.dropdownClassName,Mi=Re.dropdownMatchSelectWidth,Oa=Re.dropdownRender,ki=Re.dropdownAlign,ti=Re.placement,Wi=Re.builtinPlacements,ua=Re.getPopupContainer,Vi=Re.showAction,aa=Vi===void 0?[]:Vi,mi=Re.onFocus,pa=Re.onBlur,xa=Re.onKeyUp,fa=Re.onKeyDown,wa=Re.onMouseDown,Ma=(0,xe.Z)(Re,Ct),Za=Bn(jr),ha=(Kn!==void 0?Kn:Za)||jr==="combobox",ka=(0,we.Z)({},Ma);fn.forEach(function(Da){delete ka[Da]}),Wn==null||Wn.forEach(function(Da){delete ka[Da]});var Ja=Ie.useState(!1),Ga=(0,Ee.Z)(Ja,2),so=Ga[0],Fa=Ga[1];Ie.useEffect(function(){Fa(vt())},[]);var Ca=Ie.useRef(null),_i=Ie.useRef(null),Ui=Ie.useRef(null),da=Ie.useRef(null),Sa=Ie.useRef(null),Ka=Yt(),io=(0,Ee.Z)(Ka,3),ho=io[0],Oo=io[1],Ro=io[2];Ie.useImperativeHandle(Ke,function(){var Da,ma;return{focus:(Da=da.current)===null||Da===void 0?void 0:Da.focus,blur:(ma=da.current)===null||ma===void 0?void 0:ma.blur,scrollTo:function(es){var ga;return(ga=Sa.current)===null||ga===void 0?void 0:ga.scrollTo(es)}}});var lo=Ie.useMemo(function(){var Da;if(jr!=="combobox")return Ji;var ma=(Da=Zn[0])===null||Da===void 0?void 0:Da.value;return typeof ma=="string"||typeof ma=="number"?String(ma):""},[Ji,jr,Zn]),Ao=jr==="combobox"&&typeof ei=="function"&&ei()||null,ra=typeof ci=="function"&&ci(),Ri=sn(_i,ra==null||(At=ra.props)===null||At===void 0?void 0:At.ref),Ta=Ie.useState(!1),_a=(0,Ee.Z)(Ta,2),co=_a[0],ao=_a[1];ft(function(){ao(!0)},[]);var hs=gt(!1,{defaultValue:fi,value:Fr}),Qo=(0,Ee.Z)(hs,2),ps=Qo[0],oa=Qo[1],Br=co?ps:!1,Si=!Yr&&Un;(kr||Si&&Br&&jr==="combobox")&&(Br=!1);var Ci=Si?!1:Br,Di=Ie.useCallback(function(Da){var ma=Da!==void 0?Da:!Br;kr||(oa(ma),Br!==ma&&(Oi==null||Oi(ma)))},[kr,Br,oa,Oi]),Ha=Ie.useMemo(function(){return(Jr||[]).some(function(Da){return[` `,`\r `].includes(Da)})},[Jr]),Va=function(ma,Ho,es){var ga=!0,za=ma;Xi==null||Xi(null);var Ra=es?null:st(ma,Jr);return jr!=="combobox"&&Ra&&(za="",zi==null||zi(Ra),Di(!1),ga=!1),wi&&lo!==za&&wi(za,{source:Ho?"typing":"effect"}),ga},Fo=function(ma){!ma||!ma.trim()||wi(ma,{source:"submit"})};Ie.useEffect(function(){!Br&&!Za&&jr!=="combobox"&&Va("",!1,!1)},[Br]),Ie.useEffect(function(){ps&&kr&&oa(!1),kr&&Oo(!1)},[kr]);var Uo=Ge(),ls=(0,Ee.Z)(Uo,2),va=ls[0],Bo=ls[1],cs=function(ma){var Ho=va(),es=ma.which;if(es===Xe.ENTER&&(jr!=="combobox"&&ma.preventDefault(),Br||Di(!0)),Bo(!!lo),es===Xe.BACKSPACE&&!Ho&&Za&&!lo&&Zn.length){for(var ga=(0,Ve.Z)(Zn),za=null,Ra=ga.length-1;Ra>=0;Ra-=1){var po=ga[Ra];if(!po.disabled){ga.splice(Ra,1),za=po;break}}za&&wr(ga,{type:"remove",values:[za]})}for(var is=arguments.length,Hs=new Array(is>1?is-1:0),gs=1;gs1?Ho-1:0),ga=1;ga1?Ra-1:0),is=1;is1&&arguments[1]!==void 0?arguments[1]:{},At=[];return Ie.Children.forEach(Re,function(dt){dt==null&&!Ke.keepEmpty||(Array.isArray(dt)?At=At.concat(Ai(dt)):(0,Kt.isFragment)(dt)&&dt.props?At=At.concat(Ai(dt.props.children,Ke)):At.push(dt))}),At}var gi=["children","value"],qi=["children"];function xi(Re){var Ke=Re,At=Ke.key,dt=Ke.props,Gt=dt.children,pn=dt.value,Sn=(0,xe.Z)(dt,gi);return(0,we.Z)({key:At,value:pn!==void 0?pn:At,children:Gt},Sn)}function li(Re){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ai(Re).map(function(At,dt){if(!Ie.isValidElement(At)||!At.type)return null;var Gt=At,pn=Gt.type.isSelectOptGroup,Sn=Gt.key,Kn=Gt.props,Tn=Kn.children,cn=(0,xe.Z)(Kn,qi);return Ke||!pn?xi(At):(0,we.Z)((0,we.Z)({key:"__RC_SELECT_GRP__".concat(Sn===null?dt:Sn,"__"),label:Sn},cn),{},{options:li(Tn)})}).filter(function(At){return At})}function Ni(Re,Ke,At,dt,Gt){return Ie.useMemo(function(){var pn=Re,Sn=!Re;Sn&&(pn=li(Ke));var Kn=new Map,Tn=new Map,cn=function(wr,Un,Rr){Rr&&typeof Rr=="string"&&wr.set(Un[Rr],Un)};function Wn(Zn){for(var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Un=0;Un1&&arguments[1]!==void 0?arguments[1]:1,ua=Xi.length,Vi=0;Vi1&&arguments[1]!==void 0?arguments[1]:!1;Ii(ti);var ua={source:Wi?"keyboard":"mouse"},Vi=Xi[ti];if(!Vi){Yr(null,-1,ua);return}Yr(Vi.value,ti,ua)};(0,Ie.useEffect)(function(){Yi(Nr!==!1?wi(0):-1)},[Xi.length,cn]);var $a=Ie.useCallback(function(ki){return zr.has(ki)&&Tn!=="combobox"},[Tn,(0,Ve.Z)(zr).toString(),zr.size]);(0,Ie.useEffect)(function(){var ki=setTimeout(function(){if(!Kn&&Sn&&zr.size===1){var Wi=Array.from(zr)[0],ua=Xi.findIndex(function(Vi){var aa=Vi.data;return aa.value===Wi});ua!==-1&&(Yi(ua),Qi(ua))}});if(Sn){var ti;(ti=Fi.current)===null||ti===void 0||ti.scrollTo(void 0)}return function(){return clearTimeout(ki)}},[Sn,cn,Rr.length]);var Na=function(ti){ti!==void 0&&jr(ti,{selected:!zr.has(ti)}),Kn||Wn(!1)};if(Ie.useImperativeHandle(At,function(){return{onKeyDown:function(ti){var Wi=ti.which,ua=ti.ctrlKey;switch(Wi){case Xe.N:case Xe.P:case Xe.UP:case Xe.DOWN:{var Vi=0;if(Wi===Xe.UP?Vi=-1:Wi===Xe.DOWN?Vi=1:Qt()&&ua&&(Wi===Xe.N?Vi=1:Wi===Xe.P&&(Vi=-1)),Vi!==0){var aa=wi(hi+Vi,Vi);Qi(aa),Yi(aa,!0)}break}case Xe.ENTER:{var mi=Xi[hi];mi&&!mi.data.disabled?Na(mi.value):Na(void 0),Sn&&ti.preventDefault();break}case Xe.ESC:Wn(!1),Sn&&ti.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ti){Qi(ti)}}}),Xi.length===0)return Ie.createElement("div",{role:"listbox",id:"".concat(pn,"_list"),className:"".concat(na,"-empty"),onMouseDown:Ji},Zn);var Aa=Object.keys(ei).map(function(ki){return ei[ki]}),ca=function(ti){return ti.label};function ea(ki,ti){var Wi=ki.group;return{role:Wi?"presentation":"option",id:"".concat(pn,"_list_").concat(ti)}}var Mi=function(ti){var Wi=Xi[ti];if(!Wi)return null;var ua=Wi.data||{},Vi=ua.value,aa=Wi.group,mi=ln(ua,!0),pa=ca(Wi);return Wi?Ie.createElement("div",(0,Be.Z)({"aria-label":typeof pa=="string"&&!aa?pa:null},mi,{key:ti},ea(Wi,ti),{"aria-selected":$a(Vi)}),Vi):null},Oa={role:"listbox",id:"".concat(pn,"_list")};return Ie.createElement(Ie.Fragment,null,ci&&Ie.createElement("div",(0,Be.Z)({},Oa,{style:{height:0,width:0,overflow:"hidden"}}),Mi(hi-1),Mi(hi),Mi(hi+1)),Ie.createElement(ii.Z,{itemKey:"key",ref:Fi,data:Xi,height:fi,itemHeight:Oi,fullHeight:!1,onMouseDown:Ji,onScroll:wr,virtual:ci,direction:Fr,innerProps:ci?null:Oa},function(ki,ti){var Wi,ua=ki.group,Vi=ki.groupOption,aa=ki.data,mi=ki.label,pa=ki.value,xa=aa.key;if(ua){var fa,wa=(fa=aa.title)!==null&&fa!==void 0?fa:On(mi)?mi.toString():void 0;return Ie.createElement("div",{className:He()(na,"".concat(na,"-group")),title:wa},mi!==void 0?mi:xa)}var Ma=aa.disabled,Za=aa.title,ha=aa.children,ka=aa.style,Ja=aa.className,Ga=(0,xe.Z)(aa,mn),so=ta(Ga,Aa),Fa=$a(pa),Ca="".concat(na,"-option"),_i=He()(na,Ca,Ja,(Wi={},(0,ve.Z)(Wi,"".concat(Ca,"-grouped"),Vi),(0,ve.Z)(Wi,"".concat(Ca,"-active"),hi===ti&&!Ma),(0,ve.Z)(Wi,"".concat(Ca,"-disabled"),Ma),(0,ve.Z)(Wi,"".concat(Ca,"-selected"),Fa),Wi)),Ui=ca(ki),da=!kr||typeof kr=="function"||Fa,Sa=typeof Ui=="number"?Ui:Ui||pa,Ka=On(Sa)?Sa.toString():void 0;return Za!==void 0&&(Ka=Za),Ie.createElement("div",(0,Be.Z)({},ln(so),ci?{}:ea(ki,ti),{"aria-selected":Fa,className:_i,title:Ka,onMouseMove:function(){hi===ti||Ma||Yi(ti)},onClick:function(){Ma||Na(pa)},style:ka}),Ie.createElement("div",{className:"".concat(Ca,"-content")},Sa),Ie.isValidElement(kr)||Fa,da&&Ie.createElement(Qe,{className:"".concat(na,"-option-state"),customizeIcon:kr,customizeIconProps:{isSelected:Fa}},Fa?"\u2713":null))}))},Ir=Ie.forwardRef(vr);Ir.displayName="OptionList";var Wr=Ir;function Gr(Re){var Ke=Re.mode,At=Re.options,dt=Re.children,Gt=Re.backfill,pn=Re.allowClear,Sn=Re.placeholder,Kn=Re.getInputElement,Tn=Re.showSearch,cn=Re.onSearch,Wn=Re.defaultOpen,Zn=Re.autoFocus,wr=Re.labelInValue,Un=Re.value,Rr=Re.inputValue,Yr=Re.optionLabelProp,Nr=isMultiple(Ke),jr=Tn!==void 0?Tn:Nr||Ke==="combobox",kr=At||convertChildrenToData(dt);if(warning(Ke!=="tags"||kr.every(function(Fr){return!Fr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ke==="tags"||Ke==="combobox"){var zr=kr.some(function(Fr){return Fr.options?Fr.options.some(function(fi){return typeof("value"in fi?fi.value:fi.key)=="number"}):typeof("value"in Fr?Fr.value:Fr.key)=="number"});warning(!zr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ke!=="combobox"||!Yr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ke==="combobox"||!Gt,"`backfill` only works with `combobox` mode."),warning(Ke==="combobox"||!Kn,"`getInputElement` only work with `combobox` mode."),noteOnce(Ke!=="combobox"||!Kn||!pn||!Sn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),cn&&!jr&&Ke!=="combobox"&&Ke!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Wn||Zn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Un!=null){var ei=toArray(Un);warning(!wr||ei.every(function(Fr){return _typeof(Fr)==="object"&&("key"in Fr||"value"in Fr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Nr||Array.isArray(Un),"`value` should be array when `mode` is `multiple` or `tags`")}if(dt){var ci=null;toNodeArray(dt).some(function(Fr){if(!React.isValidElement(Fr)||!Fr.type)return!1;var fi=Fr,Oi=fi.type;if(Oi.isSelectOption)return!1;if(Oi.isSelectOptGroup){var na=toNodeArray(Fr.props.children).every(function(Xi){return!React.isValidElement(Xi)||!Fr.type||Xi.type.isSelectOption?!0:(ci=Xi.type,!1)});return!na}return ci=Oi,!0}),ci&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ci.displayName||ci.name||ci,"`.")),warning(Rr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Hr(Re,Ke){if(Re){var At=function dt(Gt){for(var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Sn=0;Sn2&&arguments[2]!==void 0?arguments[2]:{},Di=Ci.source,Ha=Di===void 0?"keyboard":Di;Ri(Si),Sn&&dt==="combobox"&&Br!==null&&Ha==="keyboard"&&Ro(String(Br))},[Sn,dt]),co=function(Si,Ci,Di){var Ha=function(){var ms,zo=Ja(Si);return[hi?{label:zo==null?void 0:zo[ea.label],value:Si,key:(ms=zo==null?void 0:zo.key)!==null&&ms!==void 0?ms:Si}:Si,mt(zo)]};if(Ci&&Un){var Va=Ha(),Fo=(0,Ee.Z)(Va,2),Uo=Fo[0],ls=Fo[1];Un(Uo,ls)}else if(!Ci&&Rr&&Di!=="clear"){var va=Ha(),Bo=(0,Ee.Z)(va,2),cs=Bo[0],ul=Bo[1];Rr(cs,ul)}},ao=Gi(function(Br,Si){var Ci,Di=Na?Si.selected:!0;Di?Ci=Na?[].concat((0,Ve.Z)(ka),[Br]):[Br]:Ci=ka.filter(function(Ha){return Ha.value!==Br}),Ka(Ci),co(Br,Di),dt==="combobox"?Ro(""):(!Bn||wr)&&(ti(""),Ro(""))}),hs=function(Si,Ci){Ka(Si);var Di=Ci.type,Ha=Ci.values;(Di==="remove"||Di==="clear")&&Ha.forEach(function(Va){co(Va.value,!1,Di)})},Qo=function(Si,Ci){if(ti(Si),Ro(null),Ci.source==="submit"){var Di=(Si||"").trim();if(Di){var Ha=Array.from(new Set([].concat((0,Ve.Z)(so),[Di])));Ka(Ha),co(Di,!0),ti("")}return}Ci.source!=="blur"&&(dt==="combobox"&&Ka(Si),Wn==null||Wn(Si))},ps=function(Si){var Ci=Si;dt!=="tags"&&(Ci=Si.map(function(Ha){var Va=Vi.get(Ha);return Va==null?void 0:Va.value}).filter(function(Ha){return Ha!==void 0}));var Di=Array.from(new Set([].concat((0,Ve.Z)(so),(0,Ve.Z)(Ci))));Ka(Di),Di.forEach(function(Ha){co(Ha,!0)})},oa=Ie.useMemo(function(){var Br=na!==!1&&Nr!==!1;return(0,we.Z)((0,we.Z)({},Wi),{},{flattenOptions:Sa,onActiveValue:_a,defaultActiveFirstOption:Ta,onSelect:ao,menuItemSelectedIcon:Oi,rawValues:so,fieldNames:ea,virtual:Br,direction:Xi,listHeight:Ji,listItemHeight:wi,childrenAsData:Aa})},[Wi,Sa,_a,Ta,ao,Oi,so,ea,na,Nr,Ji,wi,Aa]);return Ie.createElement(wt.Provider,{value:oa},Ie.createElement(vn,(0,Be.Z)({},Yi,{id:$a,prefixCls:pn,ref:Ke,omitDomProps:Ar,mode:dt,displayValues:Ga,onDisplayValuesChange:hs,direction:Xi,searchValue:ki,onSearch:Qo,autoClearSearchValue:wr,onSearchSplit:ps,dropdownMatchSelectWidth:Nr,OptionList:Wr,emptyOptions:!Sa.length,activeValue:Oo,activeDescendantId:"".concat($a,"_list_").concat(ra)})))}),Ei=Ti;Ei.Option=la,Ei.OptGroup=vi;var De=Ei,Fe=De,ze=se(10366),Ze=se(8745),nt=se(33603),lt=se(9708),Mt=se(53124),an=se(98866),un=se(88258),Jn=se(98675),br=se(65223),Vn=se(4173),kn=se(87244),wn=se(13458),Pn=se(78642),zn=se(46163),gr=function(Re,Ke){var At={};for(var dt in Re)Object.prototype.hasOwnProperty.call(Re,dt)&&Ke.indexOf(dt)<0&&(At[dt]=Re[dt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,dt=Object.getOwnPropertySymbols(Re);Gt{var At,{prefixCls:dt,bordered:Gt=!0,className:pn,rootClassName:Sn,getPopupContainer:Kn,popupClassName:Tn,dropdownClassName:cn,listHeight:Wn=256,placement:Zn,listItemHeight:wr=24,size:Un,disabled:Rr,notFoundContent:Yr,status:Nr,builtinPlacements:jr,dropdownMatchSelectWidth:kr,popupMatchSelectWidth:zr,direction:ei,style:ci,allowClear:Fr}=Re,fi=gr(Re,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Oi,getPrefixCls:na,renderEmpty:Xi,direction:Fi,virtual:Ji,popupMatchSelectWidth:Qi,popupOverflow:wi,select:zi}=Ie.useContext(Mt.E_),Jr=na("select",dt),hi=na(),Ii=ei!=null?ei:Fi,{compactSize:Yi,compactItemClassnames:$a}=(0,Vn.ri)(Jr,Ii),[Na,Aa]=(0,kn.Z)(Jr),ca=Ie.useMemo(()=>{const{mode:Ca}=fi;if(Ca!=="combobox")return Ca===Yn?"combobox":Ca},[fi.mode]),ea=ca==="multiple"||ca==="tags",Mi=(0,Pn.Z)(fi.suffixIcon,fi.showArrow),Oa=(At=zr!=null?zr:kr)!==null&&At!==void 0?At:Qi,{status:ki,hasFeedback:ti,isFormItemInput:Wi,feedbackIcon:ua}=Ie.useContext(br.aM),Vi=(0,lt.F)(ki,Nr);let aa;Yr!==void 0?aa=Yr:ca==="combobox"?aa=null:aa=(Xi==null?void 0:Xi("Select"))||Ie.createElement(un.Z,{componentName:"Select"});const{suffixIcon:mi,itemIcon:pa,removeIcon:xa,clearIcon:fa}=(0,zn.Z)(Object.assign(Object.assign({},fi),{multiple:ea,hasFeedback:ti,feedbackIcon:ua,showSuffixIcon:Mi,prefixCls:Jr,showArrow:fi.showArrow,componentName:"Select"})),wa=Fr===!0?{clearIcon:fa}:Fr,Ma=(0,ze.Z)(fi,["suffixIcon","itemIcon"]),Za=He()(Tn||cn,{[`${Jr}-dropdown-${Ii}`]:Ii==="rtl"},Sn,Aa),ha=(0,Jn.Z)(Ca=>{var _i;return(_i=Un!=null?Un:Yi)!==null&&_i!==void 0?_i:Ca}),ka=Ie.useContext(an.Z),Ja=Rr!=null?Rr:ka,Ga=He()({[`${Jr}-lg`]:ha==="large",[`${Jr}-sm`]:ha==="small",[`${Jr}-rtl`]:Ii==="rtl",[`${Jr}-borderless`]:!Gt,[`${Jr}-in-form-item`]:Wi},(0,lt.Z)(Jr,Vi,ti),$a,zi==null?void 0:zi.className,pn,Sn,Aa),so=Ie.useMemo(()=>Zn!==void 0?Zn:Ii==="rtl"?"bottomRight":"bottomLeft",[Zn,Ii]),Fa=(0,wn.Z)(jr,wi);return Na(Ie.createElement(Fe,Object.assign({ref:Ke,virtual:Ji,showSearch:zi==null?void 0:zi.showSearch},Ma,{style:Object.assign(Object.assign({},zi==null?void 0:zi.style),ci),dropdownMatchSelectWidth:Oa,builtinPlacements:Fa,transitionName:(0,nt.m)(hi,"slide-up",fi.transitionName),listHeight:Wn,listItemHeight:wr,mode:ca,prefixCls:Jr,placement:so,direction:Ii,suffixIcon:mi,menuItemSelectedIcon:pa,removeIcon:xa,allowClear:wa,notFoundContent:aa,className:Ga,getPopupContainer:Kn||Oi,dropdownClassName:Za,disabled:Ja})))},ir=Ie.forwardRef(Xn),ar=(0,Ze.Z)(ir);ir.SECRET_COMBOBOX_MODE_DO_NOT_USE=Yn,ir.Option=la,ir.OptGroup=vi,ir._InternalPanelDoNotUseOrYouWillBeFired=ar;var xr=ir},87244:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return ke}});var de=se(14747),He=se(80110),Be=se(45503),Ve=se(67968),ve=se(67771),we=se(33297);const Ee=Se=>{const{optionHeight:Ue,optionFontSize:je,optionLineHeight:_t,optionPadding:vt}=Se;return{position:"relative",display:"block",minHeight:Ue,padding:vt,color:Se.colorText,fontWeight:"normal",fontSize:je,lineHeight:_t,boxSizing:"border-box"}};var me=Se=>{const{antCls:Ue,componentCls:je}=Se,_t=`${je}-item`,vt=`&${Ue}-slide-up-enter${Ue}-slide-up-enter-active`,kt=`&${Ue}-slide-up-appear${Ue}-slide-up-appear-active`,Xe=`&${Ue}-slide-up-leave${Ue}-slide-up-leave-active`,Kt=`${je}-dropdown-placement-`;return[{[`${je}-dropdown`]:Object.assign(Object.assign({},(0,de.Wf)(Se)),{position:"absolute",top:-9999,zIndex:Se.zIndexPopup,boxSizing:"border-box",padding:Se.paddingXXS,overflow:"hidden",fontSize:Se.fontSize,fontVariant:"initial",backgroundColor:Se.colorBgElevated,borderRadius:Se.borderRadiusLG,outline:"none",boxShadow:Se.boxShadowSecondary,[` ${vt}${Kt}bottomLeft, ${kt}${Kt}bottomLeft `]:{animationName:ve.fJ},[` ${vt}${Kt}topLeft, ${kt}${Kt}topLeft, ${vt}${Kt}topRight, ${kt}${Kt}topRight `]:{animationName:ve.Qt},[`${Xe}${Kt}bottomLeft`]:{animationName:ve.Uw},[` ${Xe}${Kt}topLeft, ${Xe}${Kt}topRight `]:{animationName:ve.ly},"&-hidden":{display:"none"},[`${_t}`]:Object.assign(Object.assign({},Ee(Se)),{cursor:"pointer",transition:`background ${Se.motionDurationSlow} ease`,borderRadius:Se.borderRadiusSM,"&-group":{color:Se.colorTextDescription,fontSize:Se.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},de.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${_t}-option-disabled)`]:{backgroundColor:Se.optionActiveBg},[`&-selected:not(${_t}-option-disabled)`]:{color:Se.optionSelectedColor,fontWeight:Se.optionSelectedFontWeight,backgroundColor:Se.optionSelectedBg,[`${_t}-option-state`]:{color:Se.colorPrimary}},"&-disabled":{[`&${_t}-option-selected`]:{backgroundColor:Se.colorBgContainerDisabled},color:Se.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Se.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ve.oN)(Se,"slide-up"),(0,ve.oN)(Se,"slide-down"),(0,we.Fm)(Se,"move-up"),(0,we.Fm)(Se,"move-down")]};const Ie=2,ot=Se=>{let{controlHeightSM:Ue,controlHeight:je,lineWidth:_t}=Se;const vt=(je-Ue)/2-_t,kt=Math.ceil(vt/2);return[vt,kt]};function Oe(Se,Ue){const{componentCls:je,iconCls:_t}=Se,vt=`${je}-selection-overflow`,kt=Se.multipleSelectItemHeight,[Xe]=ot(Se),Kt=Ue?`${je}-${Ue}`:"";return{[`${je}-multiple${Kt}`]:{fontSize:Se.fontSize,[vt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${je}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Xe-Ie}px ${Ie*2}px`,borderRadius:Se.borderRadius,[`${je}-show-search&`]:{cursor:"text"},[`${je}-disabled&`]:{background:Se.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ie}px 0`,lineHeight:`${kt}px`,visibility:"hidden",content:'"\\a0"'}},[` &${je}-show-arrow ${je}-selector, &${je}-allow-clear ${je}-selector `]:{paddingInlineEnd:Se.fontSizeIcon+Se.controlPaddingHorizontal},[`${je}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:kt,marginTop:Ie,marginBottom:Ie,lineHeight:`${kt-Se.lineWidth*2}px`,background:Se.multipleItemBg,border:`${Se.lineWidth}px ${Se.lineType} ${Se.multipleItemBorderColor}`,borderRadius:Se.borderRadiusSM,cursor:"default",transition:`font-size ${Se.motionDurationSlow}, line-height ${Se.motionDurationSlow}, height ${Se.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ie*2,paddingInlineStart:Se.paddingXS,paddingInlineEnd:Se.paddingXS/2,[`${je}-disabled&`]:{color:Se.multipleItemColorDisabled,borderColor:Se.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Se.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,de.Ro)()),{display:"inline-flex",alignItems:"center",color:Se.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${_t}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Se.colorIconHover}})},[`${vt}-item + ${vt}-item`]:{[`${je}-selection-search`]:{marginInlineStart:0}},[`${je}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Se.inputPaddingHorizontalBase-Xe,"\n &-input,\n &-mirror\n ":{height:kt,fontFamily:Se.fontFamily,lineHeight:`${kt}px`,transition:`all ${Se.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${je}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Se.inputPaddingHorizontalBase,insetInlineEnd:Se.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Se.motionDurationSlow}`}}}}var ft=Se=>{const{componentCls:Ue}=Se,je=(0,Be.TS)(Se,{controlHeight:Se.controlHeightSM,multipleSelectItemHeight:Se.controlHeightXS,borderRadius:Se.borderRadiusSM,borderRadiusSM:Se.borderRadiusXS}),_t=(0,Be.TS)(Se,{fontSize:Se.fontSizeLG,controlHeight:Se.controlHeightLG,multipleSelectItemHeight:Se.multipleItemHeightLG,borderRadius:Se.borderRadiusLG,borderRadiusSM:Se.borderRadius}),[,vt]=ot(Se);return[Oe(Se),Oe(je,"sm"),{[`${Ue}-multiple${Ue}-sm`]:{[`${Ue}-selection-placeholder`]:{insetInline:Se.controlPaddingHorizontalSM-Se.lineWidth},[`${Ue}-selection-search`]:{marginInlineStart:vt}}},Oe(_t,"lg")]};function it(Se,Ue){const{componentCls:je,inputPaddingHorizontalBase:_t,borderRadius:vt}=Se,kt=Se.controlHeight-Se.lineWidth*2,Xe=Math.ceil(Se.fontSize*1.25),Kt=Ue?`${je}-${Ue}`:"";return{[`${je}-single${Kt}`]:{fontSize:Se.fontSize,[`${je}-selector`]:Object.assign(Object.assign({},(0,de.Wf)(Se)),{display:"flex",borderRadius:vt,[`${je}-selection-search`]:{position:"absolute",top:0,insetInlineStart:_t,insetInlineEnd:_t,bottom:0,"&-input":{width:"100%"}},[` ${je}-selection-item, ${je}-selection-placeholder `]:{padding:0,lineHeight:`${kt}px`,transition:`all ${Se.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${kt}px`}},[`${je}-selection-item`]:{position:"relative",userSelect:"none"},[`${je}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${je}-selection-item:after`,`${je}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${je}-show-arrow ${je}-selection-item, &${je}-show-arrow ${je}-selection-placeholder `]:{paddingInlineEnd:Xe},[`&${je}-open ${je}-selection-item`]:{color:Se.colorTextPlaceholder},[`&:not(${je}-customize-input)`]:{[`${je}-selector`]:{width:"100%",height:Se.controlHeight,padding:`0 ${_t}px`,[`${je}-selection-search-input`]:{height:kt},"&:after":{lineHeight:`${kt}px`}}},[`&${je}-customize-input`]:{[`${je}-selector`]:{"&:after":{display:"none"},[`${je}-selection-search`]:{position:"static",width:"100%"},[`${je}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${_t}px`,"&:after":{display:"none"}}}}}}}function Je(Se){const{componentCls:Ue}=Se,je=Se.controlPaddingHorizontalSM-Se.lineWidth;return[it(Se),it((0,Be.TS)(Se,{controlHeight:Se.controlHeightSM,borderRadius:Se.borderRadiusSM}),"sm"),{[`${Ue}-single${Ue}-sm`]:{[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selection-search`]:{insetInlineStart:je,insetInlineEnd:je},[`${Ue}-selector`]:{padding:`0 ${je}px`},[`&${Ue}-show-arrow ${Ue}-selection-search`]:{insetInlineEnd:je+Se.fontSize*1.5},[` &${Ue}-show-arrow ${Ue}-selection-item, &${Ue}-show-arrow ${Ue}-selection-placeholder `]:{paddingInlineEnd:Se.fontSize*1.5}}}},it((0,Be.TS)(Se,{controlHeight:Se.singleItemHeightLG,fontSize:Se.fontSizeLG,borderRadius:Se.borderRadiusLG}),"lg")]}const Le=Se=>{const{componentCls:Ue,selectorBg:je}=Se;return{position:"relative",backgroundColor:je,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,transition:`all ${Se.motionDurationMid} ${Se.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ue}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ue}-disabled&`]:{color:Se.colorTextDisabled,background:Se.colorBgContainerDisabled,cursor:"not-allowed",[`${Ue}-multiple&`]:{background:Se.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},gt=function(Se,Ue){let je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:_t,borderHoverColor:vt,outlineColor:kt,antCls:Xe}=Ue,Kt=je?{[`${_t}-selector`]:{borderColor:vt}}:{};return{[Se]:{[`&:not(${_t}-disabled):not(${_t}-customize-input):not(${Xe}-pagination-size-changer)`]:Object.assign(Object.assign({},Kt),{[`${_t}-focused& ${_t}-selector`]:{borderColor:vt,boxShadow:`0 0 0 ${Ue.controlOutlineWidth}px ${kt}`,outline:0},[`&:hover ${_t}-selector`]:{borderColor:vt}})}}},qt=Se=>{const{componentCls:Ue}=Se;return{[`${Ue}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},tt=Se=>{const{componentCls:Ue,inputPaddingHorizontalBase:je,iconCls:_t}=Se;return{[Ue]:Object.assign(Object.assign({},(0,de.Wf)(Se)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ue}-customize-input) ${Ue}-selector`]:Object.assign(Object.assign({},Le(Se)),qt(Se)),[`${Ue}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},de.vS),[`${Ue}-selection-placeholder`]:Object.assign(Object.assign({},de.vS),{flex:1,color:Se.colorTextPlaceholder,pointerEvents:"none"}),[`${Ue}-arrow`]:Object.assign(Object.assign({},(0,de.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,height:Se.fontSizeIcon,marginTop:-Se.fontSizeIcon/2,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[_t]:{verticalAlign:"top",transition:`transform ${Se.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ue}-suffix)`]:{pointerEvents:"auto"}},[`${Ue}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ue}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,zIndex:1,display:"inline-block",width:Se.fontSizeIcon,height:Se.fontSizeIcon,marginTop:-Se.fontSizeIcon/2,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Se.clearBg,cursor:"pointer",opacity:0,transition:`color ${Se.motionDurationMid} ease, opacity ${Se.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Se.colorTextTertiary}},"&:hover":{[`${Ue}-clear`]:{opacity:1}}}),[`${Ue}-has-feedback`]:{[`${Ue}-clear`]:{insetInlineEnd:je+Se.fontSize+Se.paddingXS}}}},ct=Se=>{const{componentCls:Ue}=Se;return[{[Ue]:{[`&-borderless ${Ue}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ue}-in-form-item`]:{width:"100%"}}},tt(Se),Je(Se),ft(Se),me(Se),{[`${Ue}-rtl`]:{direction:"rtl"}},gt(Ue,(0,Be.TS)(Se,{borderHoverColor:Se.colorPrimaryHover,outlineColor:Se.controlOutline})),gt(`${Ue}-status-error`,(0,Be.TS)(Se,{borderHoverColor:Se.colorErrorHover,outlineColor:Se.colorErrorOutline}),!0),gt(`${Ue}-status-warning`,(0,Be.TS)(Se,{borderHoverColor:Se.colorWarningHover,outlineColor:Se.colorWarningOutline}),!0),(0,He.c)(Se,{borderElCls:`${Ue}-selector`,focusElCls:`${Ue}-focused`})]};var ke=(0,Ve.Z)("Select",(Se,Ue)=>{let{rootPrefixCls:je}=Ue;const _t=(0,Be.TS)(Se,{rootPrefixCls:je,inputPaddingHorizontalBase:Se.paddingSM-1,multipleSelectItemHeight:Se.multipleItemHeight});return[ct(_t)]},Se=>{const{fontSize:Ue,lineHeight:je,controlHeight:_t,controlPaddingHorizontal:vt,zIndexPopupBase:kt,colorText:Xe,fontWeightStrong:Kt,controlItemBgActive:Ot,controlItemBgHover:bn,colorBgContainer:Nt,colorFillSecondary:sn,controlHeightLG:Cn,controlHeightSM:or,colorBgContainerDisabled:Qe,colorTextDisabled:Ce}=Se;return{zIndexPopup:kt+50,optionSelectedColor:Xe,optionSelectedFontWeight:Kt,optionSelectedBg:Ot,optionActiveBg:bn,optionPadding:`${(_t-Ue*je)/2}px ${vt}px`,optionFontSize:Ue,optionLineHeight:je,optionHeight:_t,selectorBg:Nt,clearBg:Nt,singleItemHeightLG:Cn,multipleItemBg:sn,multipleItemBorderColor:"transparent",multipleItemHeight:or,multipleItemHeightLG:_t,multipleSelectorBgDisabled:Qe,multipleItemColorDisabled:Ce,multipleItemBorderColorDisabled:"transparent"}})},13458:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return He}});const de=Be=>{const ve={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Be==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ve),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ve),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ve),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ve),{points:["br","tr"],offset:[0,-4]})}};function He(Be,Ve){return Be||de(Ve)}},78642:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return de}});function de(He,Be){return Be!==void 0?Be:He!==null}},46163:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return xe}});var de=se(18299),He=se(16646),Be=se(73475),Ve=se(42922),ve=se(3407),we=se(72395),Ee=se(67294);function xe(me){let{suffixIcon:Ie,clearIcon:ot,menuItemSelectedIcon:Oe,removeIcon:St,loading:ft,multiple:it,hasFeedback:Je,prefixCls:Le,showSuffixIcon:gt,feedbackIcon:qt,showArrow:tt,componentName:ct}=me;const ke=ot!=null?ot:Ee.createElement(He.Z,null),Se=vt=>Ie===null&&!Je&&!tt?null:Ee.createElement(Ee.Fragment,null,gt!==!1&&vt,Je&&qt);let Ue=null;if(Ie!==void 0)Ue=Se(Ie);else if(ft)Ue=Se(Ee.createElement(ve.Z,{spin:!0}));else{const vt=`${Le}-suffix`;Ue=kt=>{let{open:Xe,showSearch:Kt}=kt;return Se(Xe&&Kt?Ee.createElement(we.Z,{className:vt}):Ee.createElement(Ve.Z,{className:vt}))}}let je=null;Oe!==void 0?je=Oe:it?je=Ee.createElement(de.Z,null):je=null;let _t=null;return St!==void 0?_t=St:_t=Ee.createElement(Be.Z,null),{clearIcon:ke,suffixIcon:Ue,itemIcon:je,removeIcon:_t}}},33507:function(En,Wt){"use strict";const se=de=>({[de.componentCls]:{[`${de.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${de.motionDurationMid} ${de.motionEaseInOut}, opacity ${de.motionDurationMid} ${de.motionEaseInOut} !important`}},[`${de.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${de.motionDurationMid} ${de.motionEaseInOut}, opacity ${de.motionDurationMid} ${de.motionEaseInOut} !important`}}});Wt.Z=se},33297:function(En,Wt,se){"use strict";se.d(Wt,{Fm:function(){return Oe}});var de=se(45930),He=se(93590);const Be=new de.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ve=new de.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ve=new de.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),we=new de.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ee=new de.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xe=new de.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),me=new de.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ie=new de.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ot={"move-up":{inKeyframes:me,outKeyframes:Ie},"move-down":{inKeyframes:Be,outKeyframes:Ve},"move-left":{inKeyframes:ve,outKeyframes:we},"move-right":{inKeyframes:Ee,outKeyframes:xe}},Oe=(St,ft)=>{const{antCls:it}=St,Je=`${it}-${ft}`,{inKeyframes:Le,outKeyframes:gt}=ot[ft];return[(0,He.R)(Je,Le,gt,St.motionDurationMid),{[` ${Je}-enter, ${Je}-appear `]:{opacity:0,animationTimingFunction:St.motionEaseOutCirc},[`${Je}-leave`]:{animationTimingFunction:St.motionEaseInOutCirc}}]}},67771:function(En,Wt,se){"use strict";se.d(Wt,{Qt:function(){return ve},Uw:function(){return Ve},fJ:function(){return Be},ly:function(){return we},oN:function(){return Oe}});var de=se(45930),He=se(93590);const Be=new de.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ve=new de.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ve=new de.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),we=new de.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Ee=new de.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xe=new de.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),me=new de.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ie=new de.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ot={"slide-up":{inKeyframes:Be,outKeyframes:Ve},"slide-down":{inKeyframes:ve,outKeyframes:we},"slide-left":{inKeyframes:Ee,outKeyframes:xe},"slide-right":{inKeyframes:me,outKeyframes:Ie}},Oe=(St,ft)=>{const{antCls:it}=St,Je=`${it}-${ft}`,{inKeyframes:Le,outKeyframes:gt}=ot[ft];return[(0,He.R)(Je,Le,gt,St.motionDurationMid),{[` ${Je}-enter, ${Je}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:St.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Je}-leave`]:{animationTimingFunction:St.motionEaseInQuint}}]}},47897:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return pe}});var de=se(3407),He=se(94184),Be=se.n(He);function Ve(){return Ve=Object.assign?Object.assign.bind():function(he){for(var oe=1;oehe.length)&&(oe=he.length);for(var Te=0,Ye=new Array(oe);Te=0)&&(Te[Lt]=he[Lt]);return Te}function Je(he,oe){if(he==null)return{};var Te=it(he,oe),Ye,Lt;if(Object.getOwnPropertySymbols){var Rt=Object.getOwnPropertySymbols(he);for(Lt=0;Lt=0)&&Object.prototype.propertyIsEnumerable.call(he,Ye)&&(Te[Ye]=he[Ye])}return Te}var Le=se(67294);function gt(he){if(Array.isArray(he))return he}function qt(he,oe){var Te=he==null?null:typeof Symbol!="undefined"&&he[Symbol.iterator]||he["@@iterator"];if(Te!=null){var Ye,Lt,Rt,Ft,Jt=[],Xt=!0,Hn=!1;try{if(Rt=(Te=Te.call(he)).next,oe===0){if(Object(Te)!==Te)return;Xt=!1}else for(;!(Xt=(Ye=Rt.call(Te)).done)&&(Jt.push(Ye.value),Jt.length!==oe);Xt=!0);}catch(Rn){Hn=!0,Lt=Rn}finally{try{if(!Xt&&Te.return!=null&&(Ft=Te.return(),Object(Ft)!==Ft))return}finally{if(Hn)throw Lt}}return Jt}}function tt(he,oe){(oe==null||oe>he.length)&&(oe=he.length);for(var Te=0,Ye=new Array(oe);Te=Nt.F1&&Te<=Nt.F12)return!1;switch(Te){case Nt.ALT:case Nt.CAPS_LOCK:case Nt.CONTEXT_MENU:case Nt.CTRL:case Nt.DOWN:case Nt.END:case Nt.ESC:case Nt.HOME:case Nt.INSERT:case Nt.LEFT:case Nt.MAC_FF_META:case Nt.META:case Nt.NUMLOCK:case Nt.NUM_CENTER:case Nt.PAGE_DOWN:case Nt.PAGE_UP:case Nt.PAUSE:case Nt.PRINT_SCREEN:case Nt.RIGHT:case Nt.SHIFT:case Nt.UP:case Nt.WIN_KEY:case Nt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(oe){if(oe>=Nt.ZERO&&oe<=Nt.NINE||oe>=Nt.NUM_ZERO&&oe<=Nt.NUM_MULTIPLY||oe>=Nt.A&&oe<=Nt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&oe===0)return!0;switch(oe){case Nt.SPACE:case Nt.QUESTION_MARK:case Nt.NUM_PLUS:case Nt.NUM_MINUS:case Nt.NUM_PERIOD:case Nt.NUM_DIVISION:case Nt.SEMICOLON:case Nt.DASH:case Nt.EQUALS:case Nt.COMMA:case Nt.PERIOD:case Nt.SLASH:case Nt.APOSTROPHE:case Nt.SINGLE_QUOTE:case Nt.OPEN_SQUARE_BRACKET:case Nt.BACKSLASH:case Nt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},sn=Nt,Cn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],or=Le.forwardRef(function(he,oe){var Te,Ye=he.prefixCls,Lt=Ye===void 0?"rc-switch":Ye,Rt=he.className,Ft=he.checked,Jt=he.defaultChecked,Xt=he.disabled,Hn=he.loadingIcon,Rn=he.checkedChildren,Tt=he.unCheckedChildren,dn=he.onClick,cr=he.onChange,Mr=he.onKeyDown,at=Je(he,Cn),Ht=bn(!1,{value:Ft,defaultValue:Jt}),Fn=ft(Ht,2),er=Fn[0],nr=Fn[1];function Sr(Vr,ur){var si=er;return Xt||(si=Vr,nr(si),cr==null||cr(si,ur)),si}function Tr(Vr){Vr.which===sn.LEFT?Sr(!1,Vr):Vr.which===sn.RIGHT&&Sr(!0,Vr),Mr==null||Mr(Vr)}function Er(Vr){var ur=Sr(!er,Vr);dn==null||dn(ur,Vr)}var Or=Be()(Lt,Rt,(Te={},xe(Te,"".concat(Lt,"-checked"),er),xe(Te,"".concat(Lt,"-disabled"),Xt),Te));return Le.createElement("button",Ve({},at,{type:"button",role:"switch","aria-checked":er,disabled:Xt,className:Or,ref:oe,onKeyDown:Tr,onClick:Er}),Hn,Le.createElement("span",{className:"".concat(Lt,"-inner")},Le.createElement("span",{className:"".concat(Lt,"-inner-checked")},Rn),Le.createElement("span",{className:"".concat(Lt,"-inner-unchecked")},Tt)))});or.displayName="Switch";var Qe=or,Ce=se(45353),ht=se(53124),Ut=se(98866),Yt=se(98675),Ge=se(84780),rt=se(14747),jt=se(67968),_n=se(45503);const rn=he=>{const{componentCls:oe,trackHeightSM:Te,trackPadding:Ye,trackMinWidthSM:Lt,innerMinMarginSM:Rt,innerMaxMarginSM:Ft,handleSizeSM:Jt}=he,Xt=`${oe}-inner`;return{[oe]:{[`&${oe}-small`]:{minWidth:Lt,height:Te,lineHeight:`${Te}px`,[`${oe}-inner`]:{paddingInlineStart:Ft,paddingInlineEnd:Rt,[`${Xt}-checked`]:{marginInlineStart:`calc(-100% + ${Jt+Ye*2}px - ${Ft*2}px)`,marginInlineEnd:`calc(100% - ${Jt+Ye*2}px + ${Ft*2}px)`},[`${Xt}-unchecked`]:{marginTop:-Te,marginInlineStart:0,marginInlineEnd:0}},[`${oe}-handle`]:{width:Jt,height:Jt},[`${oe}-loading-icon`]:{top:(Jt-he.switchLoadingIconSize)/2,fontSize:he.switchLoadingIconSize},[`&${oe}-checked`]:{[`${oe}-inner`]:{paddingInlineStart:Rt,paddingInlineEnd:Ft,[`${Xt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Xt}-unchecked`]:{marginInlineStart:`calc(100% - ${Jt+Ye*2}px + ${Ft*2}px)`,marginInlineEnd:`calc(-100% + ${Jt+Ye*2}px - ${Ft*2}px)`}},[`${oe}-handle`]:{insetInlineStart:`calc(100% - ${Jt+Ye}px)`}},[`&:not(${oe}-disabled):active`]:{[`&:not(${oe}-checked) ${Xt}`]:{[`${Xt}-unchecked`]:{marginInlineStart:he.marginXXS/2,marginInlineEnd:-he.marginXXS/2}},[`&${oe}-checked ${Xt}`]:{[`${Xt}-checked`]:{marginInlineStart:-he.marginXXS/2,marginInlineEnd:he.marginXXS/2}}}}}}},$t=he=>{const{componentCls:oe,handleSize:Te}=he;return{[oe]:{[`${oe}-loading-icon${he.iconCls}`]:{position:"relative",top:(Te-he.fontSize)/2,color:he.switchLoadingIconColor,verticalAlign:"top"},[`&${oe}-checked ${oe}-loading-icon`]:{color:he.switchColor}}}},Zt=he=>{const{componentCls:oe,motion:Te,trackPadding:Ye,handleBg:Lt,handleShadow:Rt,handleSize:Ft}=he,Jt=`${oe}-handle`;return{[oe]:{[Jt]:{position:"absolute",top:Ye,insetInlineStart:Ye,width:Ft,height:Ft,transition:`all ${he.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Lt,borderRadius:Ft/2,boxShadow:Rt,transition:`all ${he.switchDuration} ease-in-out`,content:'""'}},[`&${oe}-checked ${Jt}`]:{insetInlineStart:`calc(100% - ${Ft+Ye}px)`},[`&:not(${oe}-disabled):active`]:Te?{[`${Jt}::before`]:{insetInlineEnd:he.switchHandleActiveInset,insetInlineStart:0},[`&${oe}-checked ${Jt}::before`]:{insetInlineEnd:0,insetInlineStart:he.switchHandleActiveInset}}:{}}}},yn=he=>{const{componentCls:oe,trackHeight:Te,trackPadding:Ye,innerMinMargin:Lt,innerMaxMargin:Rt,handleSize:Ft}=he,Jt=`${oe}-inner`;return{[oe]:{[Jt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Rt,paddingInlineEnd:Lt,transition:`padding-inline-start ${he.switchDuration} ease-in-out, padding-inline-end ${he.switchDuration} ease-in-out`,[`${Jt}-checked, ${Jt}-unchecked`]:{display:"block",color:he.colorTextLightSolid,fontSize:he.fontSizeSM,transition:`margin-inline-start ${he.switchDuration} ease-in-out, margin-inline-end ${he.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Jt}-checked`]:{marginInlineStart:`calc(-100% + ${Ft+Ye*2}px - ${Rt*2}px)`,marginInlineEnd:`calc(100% - ${Ft+Ye*2}px + ${Rt*2}px)`},[`${Jt}-unchecked`]:{marginTop:-Te,marginInlineStart:0,marginInlineEnd:0}},[`&${oe}-checked ${Jt}`]:{paddingInlineStart:Lt,paddingInlineEnd:Rt,[`${Jt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Jt}-unchecked`]:{marginInlineStart:`calc(100% - ${Ft+Ye*2}px + ${Rt*2}px)`,marginInlineEnd:`calc(-100% + ${Ft+Ye*2}px - ${Rt*2}px)`}},[`&:not(${oe}-disabled):active`]:{[`&:not(${oe}-checked) ${Jt}`]:{[`${Jt}-unchecked`]:{marginInlineStart:Ye*2,marginInlineEnd:-Ye*2}},[`&${oe}-checked ${Jt}`]:{[`${Jt}-checked`]:{marginInlineStart:-Ye*2,marginInlineEnd:Ye*2}}}}}},ln=he=>{const{componentCls:oe,trackHeight:Te,trackMinWidth:Ye}=he;return{[oe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,rt.Wf)(he)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ye,height:Te,lineHeight:`${Te}px`,verticalAlign:"middle",background:he.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${he.motionDurationMid}`,userSelect:"none",[`&:hover:not(${oe}-disabled)`]:{background:he.colorTextTertiary}}),(0,rt.Qy)(he)),{[`&${oe}-checked`]:{background:he.switchColor,[`&:hover:not(${oe}-disabled)`]:{background:he.colorPrimaryHover}},[`&${oe}-loading, &${oe}-disabled`]:{cursor:"not-allowed",opacity:he.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${oe}-rtl`]:{direction:"rtl"}})}};var Ae=(0,jt.Z)("Switch",he=>{const oe=(0,_n.TS)(he,{switchDuration:he.motionDurationMid,switchColor:he.colorPrimary,switchDisabledOpacity:he.opacityLoading,switchLoadingIconSize:he.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${he.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ln(oe),yn(oe),Zt(oe),$t(oe),rn(oe)]},he=>{const{fontSize:oe,lineHeight:Te,controlHeight:Ye,colorWhite:Lt}=he,Rt=oe*Te,Ft=Ye/2,Jt=2,Xt=Rt-Jt*2,Hn=Ft-Jt*2;return{trackHeight:Rt,trackHeightSM:Ft,trackMinWidth:Xt*2+Jt*4,trackMinWidthSM:Hn*2+Jt*2,trackPadding:Jt,handleBg:Lt,handleSize:Xt,handleSizeSM:Hn,handleShadow:`0 2px 4px 0 ${new Ge.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Xt/2,innerMaxMargin:Xt+Jt+Jt*2,innerMinMarginSM:Hn/2,innerMaxMarginSM:Hn+Jt+Jt*2}}),ue=function(he,oe){var Te={};for(var Ye in he)Object.prototype.hasOwnProperty.call(he,Ye)&&oe.indexOf(Ye)<0&&(Te[Ye]=he[Ye]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Ye=Object.getOwnPropertySymbols(he);Lt{const{prefixCls:Te,size:Ye,disabled:Lt,loading:Rt,className:Ft,rootClassName:Jt,style:Xt}=he,Hn=ue(he,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Rn,direction:Tt,switch:dn}=Le.useContext(ht.E_),cr=Le.useContext(Ut.Z),Mr=(Lt!=null?Lt:cr)||Rt,at=Rn("switch",Te),Ht=Le.createElement("div",{className:`${at}-handle`},Rt&&Le.createElement(de.Z,{className:`${at}-loading-icon`})),[Fn,er]=Ae(at),nr=(0,Yt.Z)(Ye),Sr=Be()(dn==null?void 0:dn.className,{[`${at}-small`]:nr==="small",[`${at}-loading`]:Rt,[`${at}-rtl`]:Tt==="rtl"},Ft,Jt,er),Tr=Object.assign(Object.assign({},dn==null?void 0:dn.style),Xt);return Fn(Le.createElement(Ce.Z,{component:"Switch"},Le.createElement(Qe,Object.assign({},Hn,{prefixCls:at,className:Sr,style:Tr,disabled:Mr,ref:oe,loadingIcon:Ht}))))});le.__ANT_SWITCH=!0;var pe=le},66368:function(En,Wt,se){"use strict";se.d(Wt,{default:function(){return Ei}});var de=se(73475),He=se(25877),Be=se(38308),Ve=se(94184),ve=se.n(Ve),we=se(87462),Ee=se(4942),xe=se(1413),me=se(97685),Ie=se(71002),ot=se(45987),Oe=se(67294),St=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var De=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(De)||/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(De==null?void 0:De.substr(0,4))};function ft(De){var Fe=Oe.useRef();Fe.current=De;var ze=Oe.useCallback(function(){for(var Ze,nt=arguments.length,lt=new Array(nt),Mt=0;MtTn?(Sn=Gt,Re.current="x"):(Sn=pn,Re.current="y"),Fe(-Sn,-Sn)&&dt.preventDefault()}var At=(0,Oe.useRef)(null);At.current={onTouchStart:ir,onTouchMove:ar,onTouchEnd:xr,onWheel:Ke},Oe.useEffect(function(){function dt(Kn){At.current.onTouchStart(Kn)}function Gt(Kn){At.current.onTouchMove(Kn)}function pn(Kn){At.current.onTouchEnd(Kn)}function Sn(Kn){At.current.onWheel(Kn)}return document.addEventListener("touchmove",Gt,{passive:!1}),document.addEventListener("touchend",pn,{passive:!1}),De.current.addEventListener("touchstart",dt,{passive:!1}),De.current.addEventListener("wheel",Sn),function(){document.removeEventListener("touchmove",Gt),document.removeEventListener("touchend",pn)}},[])}function _n(De){var Fe=(0,Oe.useState)(0),ze=(0,me.Z)(Fe,2),Ze=ze[0],nt=ze[1],lt=(0,Oe.useRef)(0),Mt=(0,Oe.useRef)();return Mt.current=De,gt(function(){var an;(an=Mt.current)===null||an===void 0||an.call(Mt)},[Ze]),function(){lt.current===Ze&&(lt.current+=1,nt(lt.current))}}function rn(De){var Fe=(0,Oe.useRef)([]),ze=(0,Oe.useState)({}),Ze=(0,me.Z)(ze,2),nt=Ze[1],lt=(0,Oe.useRef)(typeof De=="function"?De():De),Mt=_n(function(){var un=lt.current;Fe.current.forEach(function(Jn){un=Jn(un)}),Fe.current=[],lt.current=un,nt({})});function an(un){Fe.current.push(un),Mt()}return[lt.current,an]}var $t={width:0,height:0,left:0,top:0,right:0};function Zt(De,Fe,ze,Ze,nt,lt,Mt){var an=Mt.tabs,un=Mt.tabPosition,Jn=Mt.rtl,br,Vn,kn;return["top","bottom"].includes(un)?(br="width",Vn=Jn?"right":"left",kn=Math.abs(ze)):(br="height",Vn="top",kn=-ze),(0,Oe.useMemo)(function(){if(!an.length)return[0,0];for(var wn=an.length,Pn=wn,zn=0;znkn+Fe){Pn=zn-1;break}}for(var Yn=0,Xn=wn-1;Xn>=0;Xn-=1){var ir=De.get(an[Xn].key)||$t;if(ir[Vn]=Pn?[0,0]:[Yn,Pn]},[De,Fe,Ze,nt,lt,kn,un,an.map(function(wn){return wn.key}).join("_"),Jn])}function yn(De){var Fe;return De instanceof Map?(Fe={},De.forEach(function(ze,Ze){Fe[Ze]=ze})):Fe=De,JSON.stringify(Fe)}var ln="TABS_DQ";function Ae(De){return String(De).replace(/"/g,ln)}function ue(De,Fe,ze,Ze){return!(!ze||Ze||De===!1||De===void 0&&(Fe===!1||Fe===null))}function le(De,Fe){var ze=De.prefixCls,Ze=De.editable,nt=De.locale,lt=De.style;return!Ze||Ze.showAdd===!1?null:Oe.createElement("button",{ref:Fe,type:"button",className:"".concat(ze,"-nav-add"),style:lt,"aria-label":(nt==null?void 0:nt.addAriaLabel)||"Add tab",onClick:function(an){Ze.onEdit("add",{event:an})}},Ze.addIcon||"+")}var pe=Oe.forwardRef(le),he=Oe.forwardRef(function(De,Fe){var ze=De.position,Ze=De.prefixCls,nt=De.extra;if(!nt)return null;var lt,Mt={};return(0,Ie.Z)(nt)==="object"&&!Oe.isValidElement(nt)?Mt=nt:Mt.right=nt,ze==="right"&&(lt=Mt.right),ze==="left"&&(lt=Mt.left),lt?Oe.createElement("div",{className:"".concat(Ze,"-extra-content"),ref:Fe},lt):null}),oe=he,Te=se(62709);function Ye(De,Fe,ze){var Ze=React.useRef({});return(!("value"in Ze.current)||ze(Ze.current.condition,Fe))&&(Ze.current.value=De(),Ze.current.condition=Fe),Ze.current.value}function Lt(De,Fe){typeof De=="function"?De(Fe):(0,Ie.Z)(De)==="object"&&De&&"current"in De&&(De.current=Fe)}function Rt(){for(var De=arguments.length,Fe=new Array(De),ze=0;ze=Xt.F1&&ze<=Xt.F12)return!1;switch(ze){case Xt.ALT:case Xt.CAPS_LOCK:case Xt.CONTEXT_MENU:case Xt.CTRL:case Xt.DOWN:case Xt.END:case Xt.ESC:case Xt.HOME:case Xt.INSERT:case Xt.LEFT:case Xt.MAC_FF_META:case Xt.META:case Xt.NUMLOCK:case Xt.NUM_CENTER:case Xt.PAGE_DOWN:case Xt.PAGE_UP:case Xt.PAUSE:case Xt.PRINT_SCREEN:case Xt.RIGHT:case Xt.SHIFT:case Xt.UP:case Xt.WIN_KEY:case Xt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=Xt.ZERO&&Fe<=Xt.NINE||Fe>=Xt.NUM_ZERO&&Fe<=Xt.NUM_MULTIPLY||Fe>=Xt.A&&Fe<=Xt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case Xt.SPACE:case Xt.QUESTION_MARK:case Xt.NUM_PLUS:case Xt.NUM_MINUS:case Xt.NUM_PERIOD:case Xt.NUM_DIVISION:case Xt.SEMICOLON:case Xt.DASH:case Xt.EQUALS:case Xt.COMMA:case Xt.PERIOD:case Xt.SLASH:case Xt.APOSTROPHE:case Xt.SINGLE_QUOTE:case Xt.OPEN_SQUARE_BRACKET:case Xt.BACKSLASH:case Xt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Hn=Xt,Rn=function(Fe){return+setTimeout(Fe,16)},Tt=function(Fe){return clearTimeout(Fe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Rn=function(Fe){return window.requestAnimationFrame(Fe)},Tt=function(Fe){return window.cancelAnimationFrame(Fe)});var dn=0,cr=new Map;function Mr(De){cr.delete(De)}var at=function(Fe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;dn+=1;var Ze=dn;function nt(lt){if(lt===0)Mr(Ze),Fe();else{var Mt=Rn(function(){nt(lt-1)});cr.set(Ze,Mt)}}return nt(ze),Ze};at.cancel=function(De){var Fe=cr.get(De);return Mr(Fe),Tt(Fe)};var Ht=at,Fn=Hn.ESC,er=Hn.TAB;function nr(De){var Fe=De.visible,ze=De.triggerRef,Ze=De.onVisibleChange,nt=De.autoFocus,lt=De.overlayRef,Mt=Oe.useRef(!1),an=function(){if(Fe){var Vn,kn;(Vn=ze.current)===null||Vn===void 0||(kn=Vn.focus)===null||kn===void 0||kn.call(Vn),Ze==null||Ze(!1)}},un=function(){var Vn;return(Vn=lt.current)!==null&&Vn!==void 0&&Vn.focus?(lt.current.focus(),Mt.current=!0,!0):!1},Jn=function(Vn){switch(Vn.keyCode){case Fn:an();break;case er:{var kn=!1;Mt.current||(kn=un()),kn?Vn.preventDefault():an();break}}};Oe.useEffect(function(){return Fe?(window.addEventListener("keydown",Jn),nt&&Ht(un,3),function(){window.removeEventListener("keydown",Jn),Mt.current=!1}):function(){Mt.current=!1}},[Fe])}var Sr=(0,Oe.forwardRef)(function(De,Fe){var ze=De.overlay,Ze=De.arrow,nt=De.prefixCls,lt=(0,Oe.useMemo)(function(){var an;return typeof ze=="function"?an=ze():an=ze,an},[ze]),Mt=Rt(Fe,lt==null?void 0:lt.ref);return Oe.createElement(Oe.Fragment,null,Ze&&Oe.createElement("div",{className:"".concat(nt,"-arrow")}),Oe.cloneElement(lt,{ref:Jt(lt)?Mt:void 0}))}),Tr=Sr,Er={adjustX:1,adjustY:1},Or=[0,0],Vr={topLeft:{points:["bl","tl"],overflow:Er,offset:[0,-4],targetOffset:Or},top:{points:["bc","tc"],overflow:Er,offset:[0,-4],targetOffset:Or},topRight:{points:["br","tr"],overflow:Er,offset:[0,-4],targetOffset:Or},bottomLeft:{points:["tl","bl"],overflow:Er,offset:[0,4],targetOffset:Or},bottom:{points:["tc","bc"],overflow:Er,offset:[0,4],targetOffset:Or},bottomRight:{points:["tr","br"],overflow:Er,offset:[0,4],targetOffset:Or}},ur=Vr,si=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Li(De,Fe){var ze,Ze=De.arrow,nt=Ze===void 0?!1:Ze,lt=De.prefixCls,Mt=lt===void 0?"rc-dropdown":lt,an=De.transitionName,un=De.animation,Jn=De.align,br=De.placement,Vn=br===void 0?"bottomLeft":br,kn=De.placements,wn=kn===void 0?ur:kn,Pn=De.getPopupContainer,zn=De.showAction,gr=De.hideAction,Yn=De.overlayClassName,Xn=De.overlayStyle,ir=De.visible,ar=De.trigger,xr=ar===void 0?["hover"]:ar,Re=De.autoFocus,Ke=De.overlay,At=De.children,dt=De.onVisibleChange,Gt=(0,ot.Z)(De,si),pn=Oe.useState(),Sn=(0,me.Z)(pn,2),Kn=Sn[0],Tn=Sn[1],cn="visible"in De?ir:Kn,Wn=Oe.useRef(null),Zn=Oe.useRef(null),wr=Oe.useRef(null);Oe.useImperativeHandle(Fe,function(){return Wn.current});var Un=function(Fr){Tn(Fr),dt==null||dt(Fr)};nr({visible:cn,triggerRef:wr,onVisibleChange:Un,autoFocus:Re,overlayRef:Zn});var Rr=function(Fr){var fi=De.onOverlayClick;Tn(!1),fi&&fi(Fr)},Yr=function(){return Oe.createElement(Tr,{ref:Zn,overlay:Ke,prefixCls:Mt,arrow:nt})},Nr=function(){return typeof Ke=="function"?Yr:Yr()},jr=function(){var Fr=De.minOverlayWidthMatchTrigger,fi=De.alignPoint;return"minOverlayWidthMatchTrigger"in De?Fr:!fi},kr=function(){var Fr=De.openClassName;return Fr!==void 0?Fr:"".concat(Mt,"-open")},zr=Oe.cloneElement(At,{className:ve()((ze=At.props)===null||ze===void 0?void 0:ze.className,cn&&kr()),ref:Jt(At)?Rt(wr,At.ref):void 0}),ei=gr;return!ei&&xr.indexOf("contextMenu")!==-1&&(ei=["click"]),Oe.createElement(Te.Z,(0,we.Z)({builtinPlacements:wn},Gt,{prefixCls:Mt,ref:Wn,popupClassName:ve()(Yn,(0,Ee.Z)({},"".concat(Mt,"-show-arrow"),nt)),popupStyle:Xn,action:xr,showAction:zn,hideAction:ei,popupPlacement:Vn,popupAlign:Jn,popupTransitionName:an,popupAnimation:un,popupVisible:cn,stretch:jr()?"minWidth":"",popup:Nr(),onPopupVisibleChange:Un,onPopupClick:Rr,getPopupContainer:Pn}),zr)}var Bi=Oe.forwardRef(Li),Hi=Bi,ri=se(78595),yt={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(Fe){var ze=Fe.keyCode;if(Fe.altKey&&!Fe.ctrlKey||Fe.metaKey||ze>=yt.F1&&ze<=yt.F12)return!1;switch(ze){case yt.ALT:case yt.CAPS_LOCK:case yt.CONTEXT_MENU:case yt.CTRL:case yt.DOWN:case yt.END:case yt.ESC:case yt.HOME:case yt.INSERT:case yt.LEFT:case yt.MAC_FF_META:case yt.META:case yt.NUMLOCK:case yt.NUM_CENTER:case yt.PAGE_DOWN:case yt.PAGE_UP:case yt.PAUSE:case yt.PRINT_SCREEN:case yt.RIGHT:case yt.SHIFT:case yt.UP:case yt.WIN_KEY:case yt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=yt.ZERO&&Fe<=yt.NINE||Fe>=yt.NUM_ZERO&&Fe<=yt.NUM_MULTIPLY||Fe>=yt.A&&Fe<=yt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case yt.SPACE:case yt.QUESTION_MARK:case yt.NUM_PLUS:case yt.NUM_MINUS:case yt.NUM_PERIOD:case yt.NUM_DIVISION:case yt.SEMICOLON:case yt.DASH:case yt.EQUALS:case yt.COMMA:case yt.PERIOD:case yt.SLASH:case yt.APOSTROPHE:case yt.SINGLE_QUOTE:case yt.OPEN_SQUARE_BRACKET:case yt.BACKSLASH:case yt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Mn=yt;function An(De,Fe){var ze=De.prefixCls,Ze=De.id,nt=De.tabs,lt=De.locale,Mt=De.mobile,an=De.moreIcon,un=an===void 0?"More":an,Jn=De.moreTransitionName,br=De.style,Vn=De.className,kn=De.editable,wn=De.tabBarGutter,Pn=De.rtl,zn=De.removeAriaLabel,gr=De.onTabClick,Yn=De.getPopupContainer,Xn=De.popupClassName,ir=(0,Oe.useState)(!1),ar=(0,me.Z)(ir,2),xr=ar[0],Re=ar[1],Ke=(0,Oe.useState)(null),At=(0,me.Z)(Ke,2),dt=At[0],Gt=At[1],pn="".concat(Ze,"-more-popup"),Sn="".concat(ze,"-dropdown"),Kn=dt!==null?"".concat(pn,"-").concat(dt):null,Tn=lt==null?void 0:lt.dropdownAriaLabel;function cn(Nr,jr){Nr.preventDefault(),Nr.stopPropagation(),kn.onEdit("remove",{key:jr,event:Nr})}var Wn=Oe.createElement(ri.ZP,{onClick:function(jr){var kr=jr.key,zr=jr.domEvent;gr(kr,zr),Re(!1)},prefixCls:"".concat(Sn,"-menu"),id:pn,tabIndex:-1,role:"listbox","aria-activedescendant":Kn,selectedKeys:[dt],"aria-label":Tn!==void 0?Tn:"expanded dropdown"},nt.map(function(Nr){var jr=Nr.closable,kr=Nr.disabled,zr=Nr.closeIcon,ei=Nr.key,ci=Nr.label,Fr=ue(jr,zr,kn,kr);return Oe.createElement(ri.sN,{key:ei,id:"".concat(pn,"-").concat(ei),role:"option","aria-controls":Ze&&"".concat(Ze,"-panel-").concat(ei),disabled:kr},Oe.createElement("span",null,ci),Fr&&Oe.createElement("button",{type:"button","aria-label":zn||"remove",tabIndex:0,className:"".concat(Sn,"-menu-item-remove"),onClick:function(Oi){Oi.stopPropagation(),cn(Oi,ei)}},zr||kn.removeIcon||"\xD7"))}));function Zn(Nr){for(var jr=nt.filter(function(Fr){return!Fr.disabled}),kr=jr.findIndex(function(Fr){return Fr.key===dt})||0,zr=jr.length,ei=0;ei1&&arguments[1]!==void 0?arguments[1]:1;qe+=1;var Ze=qe;function nt(lt){if(lt===0)Dt(Ze),Fe();else{var Mt=pr(function(){nt(lt-1)});ut.set(Ze,Mt)}}return nt(ze),Ze};Vt.cancel=function(De){var Fe=ut.get(De);return Dt(Fe),$n(Fe)};var We=Vt,pt=function(Fe){var ze=Fe.activeTabOffset,Ze=Fe.horizontal,nt=Fe.rtl,lt=Fe.indicatorSize,Mt=(0,Oe.useState)(),an=(0,me.Z)(Mt,2),un=an[0],Jn=an[1],br=(0,Oe.useRef)(),Vn=function(Pn){return typeof lt=="function"?lt(Pn):typeof lt=="number"?lt:Pn};function kn(){We.cancel(br.current)}return(0,Oe.useEffect)(function(){var wn={};return ze&&(Ze?(nt?(wn.right=ze.right+ze.width/2,wn.transform="translateX(50%)"):(wn.left=ze.left+ze.width/2,wn.transform="translateX(-50%)"),wn.width=Vn(ze.width)):(wn.top=ze.top+ze.height/2,wn.transform="translateY(-50%)",wn.height=Vn(ze.height))),kn(),br.current=We(function(){Jn(wn)}),kn},[ze,Ze,nt,lt]),{style:un}},zt=pt,Bt=function(Fe){var ze=Fe.current||{},Ze=ze.offsetWidth,nt=Ze===void 0?0:Ze,lt=ze.offsetHeight,Mt=lt===void 0?0:lt;return[nt,Mt]},en=function(Fe,ze){return Fe[ze?0:1]};function nn(De,Fe){var ze,Ze=Oe.useContext(Ue),nt=Ze.prefixCls,lt=Ze.tabs,Mt=De.className,an=De.style,un=De.id,Jn=De.animated,br=De.activeKey,Vn=De.rtl,kn=De.extra,wn=De.editable,Pn=De.locale,zn=De.tabPosition,gr=De.tabBarGutter,Yn=De.children,Xn=De.onTabClick,ir=De.onTabScroll,ar=De.indicatorSize,xr=(0,Oe.useRef)(),Re=(0,Oe.useRef)(),Ke=(0,Oe.useRef)(),At=(0,Oe.useRef)(),dt=(0,Oe.useRef)(),Gt=(0,Oe.useRef)(),pn=(0,Oe.useRef)(),Sn=zn==="top"||zn==="bottom",Kn=ht(0,function(ra,Ri){Sn&&ir&&ir({direction:ra>Ri?"left":"right"})}),Tn=(0,me.Z)(Kn,2),cn=Tn[0],Wn=Tn[1],Zn=ht(0,function(ra,Ri){!Sn&&ir&&ir({direction:ra>Ri?"top":"bottom"})}),wr=(0,me.Z)(Zn,2),Un=wr[0],Rr=wr[1],Yr=(0,Oe.useState)([0,0]),Nr=(0,me.Z)(Yr,2),jr=Nr[0],kr=Nr[1],zr=(0,Oe.useState)([0,0]),ei=(0,me.Z)(zr,2),ci=ei[0],Fr=ei[1],fi=(0,Oe.useState)([0,0]),Oi=(0,me.Z)(fi,2),na=Oi[0],Xi=Oi[1],Fi=(0,Oe.useState)([0,0]),Ji=(0,me.Z)(Fi,2),Qi=Ji[0],wi=Ji[1],zi=rn(new Map),Jr=(0,me.Z)(zi,2),hi=Jr[0],Ii=Jr[1],Yi=Ce(lt,hi,ci[0]),$a=en(jr,Sn),Na=en(ci,Sn),Aa=en(na,Sn),ca=en(Qi,Sn),ea=$ati?ti:ra}var ua=(0,Oe.useRef)(),Vi=(0,Oe.useState)(),aa=(0,me.Z)(Vi,2),mi=aa[0],pa=aa[1];function xa(){pa(Date.now())}function fa(){window.clearTimeout(ua.current)}jt(At,function(ra,Ri){function Ta(_a,co){_a(function(ao){var hs=Wi(ao+co);return hs})}return ea?(Sn?Ta(Wn,ra):Ta(Rr,Ri),fa(),xa(),!0):!1}),(0,Oe.useEffect)(function(){return fa(),mi&&(ua.current=window.setTimeout(function(){pa(0)},100)),fa},[mi]);var wa=Zt(Yi,Mi,Sn?cn:Un,Na,Aa,ca,(0,xe.Z)((0,xe.Z)({},De),{},{tabs:lt})),Ma=(0,me.Z)(wa,2),Za=Ma[0],ha=Ma[1],ka=ft(function(){var ra=arguments.length>0&&arguments[0]!==void 0?arguments[0]:br,Ri=Yi.get(ra)||{width:0,height:0,left:0,right:0,top:0};if(Sn){var Ta=cn;Vn?Ri.rightcn+Mi&&(Ta=Ri.right+Ri.width-Mi):Ri.left<-cn?Ta=-Ri.left:Ri.left+Ri.width>-cn+Mi&&(Ta=-(Ri.left+Ri.width-Mi)),Rr(0),Wn(Wi(Ta))}else{var _a=Un;Ri.top<-Un?_a=-Ri.top:Ri.top+Ri.height>-Un+Mi&&(_a=-(Ri.top+Ri.height-Mi)),Wn(0),Rr(Wi(_a))}}),Ja={};zn==="top"||zn==="bottom"?Ja[Vn?"marginRight":"marginLeft"]=gr:Ja.marginTop=gr;var Ga=lt.map(function(ra,Ri){var Ta=ra.key;return Oe.createElement(qn,{id:un,prefixCls:nt,key:Ta,tab:ra,style:Ri===0?void 0:Ja,closable:ra.closable,editable:wn,active:Ta===br,renderWrapper:Yn,removeAriaLabel:Pn==null?void 0:Pn.removeAriaLabel,onClick:function(co){Xn(Ta,co)},onFocus:function(){ka(Ta),xa(),At.current&&(Vn||(At.current.scrollLeft=0),At.current.scrollTop=0)}})}),so=function(){return Ii(function(){var Ri=new Map;return lt.forEach(function(Ta){var _a,co=Ta.key,ao=(_a=dt.current)===null||_a===void 0?void 0:_a.querySelector('[data-node-key="'.concat(Ae(co),'"]'));ao&&Ri.set(co,{width:ao.offsetWidth,height:ao.offsetHeight,left:ao.offsetLeft,top:ao.offsetTop})}),Ri})};(0,Oe.useEffect)(function(){so()},[lt.map(function(ra){return ra.key}).join("_")]);var Fa=_n(function(){var ra=Bt(xr),Ri=Bt(Re),Ta=Bt(Ke);kr([ra[0]-Ri[0]-Ta[0],ra[1]-Ri[1]-Ta[1]]);var _a=Bt(pn);Xi(_a);var co=Bt(Gt);wi(co);var ao=Bt(dt);Fr([ao[0]-_a[0],ao[1]-_a[1]]),so()}),Ca=lt.slice(0,Za),_i=lt.slice(ha+1),Ui=[].concat((0,Xe.Z)(Ca),(0,Xe.Z)(_i)),da=Yi.get(br),Sa=zt({activeTabOffset:da,horizontal:Sn,rtl:Vn,indicatorSize:ar}),Ka=Sa.style;(0,Oe.useEffect)(function(){ka()},[br,ki,ti,yn(da),yn(Yi),Sn]),(0,Oe.useEffect)(function(){Fa()},[Vn]);var io=!!Ui.length,ho="".concat(nt,"-nav-wrap"),Oo,Ro,lo,Ao;return Sn?Vn?(Ro=cn>0,Oo=cn!==ti):(Oo=cn<0,Ro=cn!==ki):(lo=Un<0,Ao=Un!==ki),Oe.createElement(Kt.Z,{onResize:Fa},Oe.createElement("div",{ref:Cn(Fe,xr),role:"tablist",className:ve()("".concat(nt,"-nav"),Mt),style:an,onKeyDown:function(){xa()}},Oe.createElement(oe,{ref:Re,position:"left",extra:kn,prefixCls:nt}),Oe.createElement(Kt.Z,{onResize:Fa},Oe.createElement("div",{className:ve()(ho,(ze={},(0,Ee.Z)(ze,"".concat(ho,"-ping-left"),Oo),(0,Ee.Z)(ze,"".concat(ho,"-ping-right"),Ro),(0,Ee.Z)(ze,"".concat(ho,"-ping-top"),lo),(0,Ee.Z)(ze,"".concat(ho,"-ping-bottom"),Ao),ze)),ref:At},Oe.createElement(Kt.Z,{onResize:Fa},Oe.createElement("div",{ref:dt,className:"".concat(nt,"-nav-list"),style:{transform:"translate(".concat(cn,"px, ").concat(Un,"px)"),transition:mi?"none":void 0}},Ga,Oe.createElement(pe,{ref:pn,prefixCls:nt,locale:Pn,editable:wn,style:(0,xe.Z)((0,xe.Z)({},Ga.length===0?void 0:Ja),{},{visibility:io?"hidden":null})}),Oe.createElement("div",{className:ve()("".concat(nt,"-ink-bar"),(0,Ee.Z)({},"".concat(nt,"-ink-bar-animated"),Jn.inkBar)),style:Ka}))))),Oe.createElement(Dn,(0,we.Z)({},De,{removeAriaLabel:Pn==null?void 0:Pn.removeAriaLabel,ref:Gt,prefixCls:nt,tabs:Ui,className:!io&&Oa,tabMoving:!!mi})),Oe.createElement(oe,{ref:Ke,position:"right",extra:kn,prefixCls:nt})))}var jn=Oe.forwardRef(nn),Lr=["renderTabBar"],rr=["label","key"];function tr(De){var Fe=De.renderTabBar,ze=(0,ot.Z)(De,Lr),Ze=Oe.useContext(Ue),nt=Ze.tabs;if(Fe){var lt=(0,xe.Z)((0,xe.Z)({},ze),{},{panes:nt.map(function(Mt){var an=Mt.label,un=Mt.key,Jn=(0,ot.Z)(Mt,rr);return Oe.createElement(_t,(0,we.Z)({tab:an,key:un,tabKey:un},Jn))})});return Fe(lt,jn)}return Oe.createElement(jn,ze)}var dr={},fr=[],mt=function(Fe){fr.push(Fe)};function st(De,Fe){if(0)var ze}function Ct(De,Fe){if(0)var ze}function fn(){dr={}}function Bn(De,Fe,ze){!Fe&&!dr[ze]&&(De(!1,ze),dr[ze]=!0)}function hn(De,Fe){Bn(st,De,Fe)}function vn(De,Fe){Bn(Ct,De,Fe)}hn.preMessage=mt,hn.resetWarned=fn,hn.noteOnce=vn;var xn=null;function Nn(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Fe;return De===!1?Fe={inkBar:!1,tabPane:!1}:De===!0?Fe={inkBar:!0,tabPane:!1}:Fe=(0,xe.Z)({inkBar:!0},(0,Ie.Z)(De)==="object"?De:{}),Fe.tabPaneMotion&&Fe.tabPane===void 0&&(Fe.tabPane=!0),!Fe.tabPaneMotion&&Fe.tabPane&&(Fe.tabPane=!1),Fe}var hr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],tn=0;function Qr(De,Fe){var ze,Ze=De.id,nt=De.prefixCls,lt=nt===void 0?"rc-tabs":nt,Mt=De.className,an=De.items,un=De.direction,Jn=De.activeKey,br=De.defaultActiveKey,Vn=De.editable,kn=De.animated,wn=De.tabPosition,Pn=wn===void 0?"top":wn,zn=De.tabBarGutter,gr=De.tabBarStyle,Yn=De.tabBarExtraContent,Xn=De.locale,ir=De.moreIcon,ar=De.moreTransitionName,xr=De.destroyInactiveTabPane,Re=De.renderTabBar,Ke=De.onChange,At=De.onTabClick,dt=De.onTabScroll,Gt=De.getPopupContainer,pn=De.popupClassName,Sn=De.indicatorSize,Kn=(0,ot.Z)(De,hr),Tn=Oe.useMemo(function(){return(an||[]).filter(function(wi){return wi&&(0,Ie.Z)(wi)==="object"&&"key"in wi})},[an]),cn=un==="rtl",Wn=Nn(kn),Zn=(0,Oe.useState)(!1),wr=(0,me.Z)(Zn,2),Un=wr[0],Rr=wr[1];(0,Oe.useEffect)(function(){Rr(St())},[]);var Yr=ke(function(){var wi;return(wi=Tn[0])===null||wi===void 0?void 0:wi.key},{value:Jn,defaultValue:br}),Nr=(0,me.Z)(Yr,2),jr=Nr[0],kr=Nr[1],zr=(0,Oe.useState)(function(){return Tn.findIndex(function(wi){return wi.key===jr})}),ei=(0,me.Z)(zr,2),ci=ei[0],Fr=ei[1];(0,Oe.useEffect)(function(){var wi=Tn.findIndex(function(Jr){return Jr.key===jr});if(wi===-1){var zi;wi=Math.max(0,Math.min(ci,Tn.length-1)),kr((zi=Tn[wi])===null||zi===void 0?void 0:zi.key)}Fr(wi)},[Tn.map(function(wi){return wi.key}).join("_"),jr,ci]);var fi=ke(null,{value:Ze}),Oi=(0,me.Z)(fi,2),na=Oi[0],Xi=Oi[1];(0,Oe.useEffect)(function(){Ze||(Xi("rc-tabs-".concat(tn)),tn+=1)},[]);function Fi(wi,zi){At==null||At(wi,zi);var Jr=wi!==jr;kr(wi),Jr&&(Ke==null||Ke(wi))}var Ji={id:na,activeKey:jr,animated:Wn,tabPosition:Pn,rtl:cn,mobile:Un},Qi=(0,xe.Z)((0,xe.Z)({},Ji),{},{editable:Vn,locale:Xn,moreIcon:ir,moreTransitionName:ar,tabBarGutter:zn,onTabClick:Fi,onTabScroll:dt,extra:Yn,style:gr,panes:null,getPopupContainer:Gt,popupClassName:pn,indicatorSize:Sn});return Oe.createElement(Ue.Provider,{value:{tabs:Tn,prefixCls:lt}},Oe.createElement("div",(0,we.Z)({ref:Fe,id:Ze,className:ve()(lt,"".concat(lt,"-").concat(Pn),(ze={},(0,Ee.Z)(ze,"".concat(lt,"-mobile"),Un),(0,Ee.Z)(ze,"".concat(lt,"-editable"),Vn),(0,Ee.Z)(ze,"".concat(lt,"-rtl"),cn),ze),Mt)},Kn),Oe.createElement(tr,(0,we.Z)({},Qi,{renderTabBar:Re})),Oe.createElement(kt,(0,we.Z)({destroyInactiveTabPane:xr},Ji,{animated:Wn}))))}var Ur=Oe.forwardRef(Qr),$i=Ur,Ai=$i,gi=se(53124),qi=se(98675),li=()=>null,Ni=se(33603);const Gi={motionAppear:!1,motionEnter:!0,motionLeave:!0};function qr(De){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},ze;return Fe===!1?ze={inkBar:!1,tabPane:!1}:Fe===!0?ze={inkBar:!0,tabPane:!0}:ze=Object.assign({inkBar:!0},typeof Fe=="object"?Fe:{}),ze.tabPane&&(ze.tabPaneMotion=Object.assign(Object.assign({},Gi),{motionName:(0,Ni.m)(De,"switch")})),ze}var vi=se(37419),Zi=function(De,Fe){var ze={};for(var Ze in De)Object.prototype.hasOwnProperty.call(De,Ze)&&Fe.indexOf(Ze)<0&&(ze[Ze]=De[Ze]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ze=Object.getOwnPropertySymbols(De);ntFe)}function ta(De,Fe){if(De)return De;const ze=(0,vi.Z)(Fe).map(Ze=>{if(Oe.isValidElement(Ze)){const{key:nt,props:lt}=Ze,Mt=lt||{},{tab:an}=Mt,un=Zi(Mt,["tab"]);return Object.assign(Object.assign({key:String(nt)},un),{label:an})}return null});return la(ze)}var ii=se(14747),Et=se(67968),wt=se(45503),Qt=se(67771),On=De=>{const{componentCls:Fe,motionDurationSlow:ze}=De;return[{[Fe]:{[`${Fe}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${ze}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${ze}`}}}}},[(0,Qt.oN)(De,"slide-up"),(0,Qt.oN)(De,"slide-down")]]};const vr=De=>{const{componentCls:Fe,tabsCardPadding:ze,cardBg:Ze,cardGutter:nt,colorBorderSecondary:lt,itemSelectedColor:Mt}=De;return{[`${Fe}-card`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{[`${Fe}-tab`]:{margin:0,padding:ze,background:Ze,border:`${De.lineWidth}px ${De.lineType} ${lt}`,transition:`all ${De.motionDurationSlow} ${De.motionEaseInOut}`},[`${Fe}-tab-active`]:{color:Mt,background:De.colorBgContainer},[`${Fe}-ink-bar`]:{visibility:"hidden"}},[`&${Fe}-top, &${Fe}-bottom`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{[`${Fe}-tab + ${Fe}-tab`]:{marginLeft:{_skip_check_:!0,value:`${nt}px`}}}},[`&${Fe}-top`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{[`${Fe}-tab`]:{borderRadius:`${De.borderRadiusLG}px ${De.borderRadiusLG}px 0 0`},[`${Fe}-tab-active`]:{borderBottomColor:De.colorBgContainer}}},[`&${Fe}-bottom`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{[`${Fe}-tab`]:{borderRadius:`0 0 ${De.borderRadiusLG}px ${De.borderRadiusLG}px`},[`${Fe}-tab-active`]:{borderTopColor:De.colorBgContainer}}},[`&${Fe}-left, &${Fe}-right`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{[`${Fe}-tab + ${Fe}-tab`]:{marginTop:`${nt}px`}}},[`&${Fe}-left`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{[`${Fe}-tab`]:{borderRadius:{_skip_check_:!0,value:`${De.borderRadiusLG}px 0 0 ${De.borderRadiusLG}px`}},[`${Fe}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:De.colorBgContainer}}}},[`&${Fe}-right`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{[`${Fe}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${De.borderRadiusLG}px ${De.borderRadiusLG}px 0`}},[`${Fe}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:De.colorBgContainer}}}}}}},Ir=De=>{const{componentCls:Fe,itemHoverColor:ze,dropdownEdgeChildVerticalPadding:Ze}=De;return{[`${Fe}-dropdown`]:Object.assign(Object.assign({},(0,ii.Wf)(De)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:De.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Fe}-dropdown-menu`]:{maxHeight:De.tabsDropdownHeight,margin:0,padding:`${Ze}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:De.colorBgContainer,backgroundClip:"padding-box",borderRadius:De.borderRadiusLG,outline:"none",boxShadow:De.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ii.vS),{display:"flex",alignItems:"center",minWidth:De.tabsDropdownWidth,margin:0,padding:`${De.paddingXXS}px ${De.paddingSM}px`,color:De.colorText,fontWeight:"normal",fontSize:De.fontSize,lineHeight:De.lineHeight,cursor:"pointer",transition:`all ${De.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:De.marginSM},color:De.colorTextDescription,fontSize:De.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:ze}},"&:hover":{background:De.controlItemBgHover},"&-disabled":{"&, &:hover":{color:De.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Wr=De=>{const{componentCls:Fe,margin:ze,colorBorderSecondary:Ze,horizontalMargin:nt,verticalItemPadding:lt,verticalItemMargin:Mt}=De;return{[`${Fe}-top, ${Fe}-bottom`]:{flexDirection:"column",[`> ${Fe}-nav, > div > ${Fe}-nav`]:{margin:nt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${De.lineWidth}px ${De.lineType} ${Ze}`,content:"''"},[`${Fe}-ink-bar`]:{height:De.lineWidthBold,"&-animated":{transition:`width ${De.motionDurationSlow}, left ${De.motionDurationSlow}, right ${De.motionDurationSlow}`}},[`${Fe}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:De.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:De.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:De.boxShadowTabsOverflowRight},[`&${Fe}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Fe}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Fe}-top`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{"&::before":{bottom:0},[`${Fe}-ink-bar`]:{bottom:0}}},[`${Fe}-bottom`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{order:1,marginTop:`${ze}px`,marginBottom:0,"&::before":{top:0},[`${Fe}-ink-bar`]:{top:0}},[`> ${Fe}-content-holder, > div > ${Fe}-content-holder`]:{order:0}},[`${Fe}-left, ${Fe}-right`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{flexDirection:"column",minWidth:De.controlHeight*1.25,[`${Fe}-tab`]:{padding:lt,textAlign:"center"},[`${Fe}-tab + ${Fe}-tab`]:{margin:Mt},[`${Fe}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:De.controlHeight},"&::before":{top:0,boxShadow:De.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:De.boxShadowTabsOverflowBottom},[`&${Fe}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Fe}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Fe}-ink-bar`]:{width:De.lineWidthBold,"&-animated":{transition:`height ${De.motionDurationSlow}, top ${De.motionDurationSlow}`}},[`${Fe}-nav-list, ${Fe}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Fe}-left`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{[`${Fe}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Fe}-content-holder, > div > ${Fe}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${De.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${De.lineWidth}px ${De.lineType} ${De.colorBorder}`},[`> ${Fe}-content > ${Fe}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:De.paddingLG}}}},[`${Fe}-right`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{order:1,[`${Fe}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Fe}-content-holder, > div > ${Fe}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-De.lineWidth},borderRight:{_skip_check_:!0,value:`${De.lineWidth}px ${De.lineType} ${De.colorBorder}`},[`> ${Fe}-content > ${Fe}-tabpane`]:{paddingRight:{_skip_check_:!0,value:De.paddingLG}}}}}},Gr=De=>{const{componentCls:Fe,cardPaddingSM:ze,cardPaddingLG:Ze,horizontalItemPaddingSM:nt,horizontalItemPaddingLG:lt}=De;return{[Fe]:{"&-small":{[`> ${Fe}-nav`]:{[`${Fe}-tab`]:{padding:nt,fontSize:De.titleFontSizeSM}}},"&-large":{[`> ${Fe}-nav`]:{[`${Fe}-tab`]:{padding:lt,fontSize:De.titleFontSizeLG}}}},[`${Fe}-card`]:{[`&${Fe}-small`]:{[`> ${Fe}-nav`]:{[`${Fe}-tab`]:{padding:ze}},[`&${Fe}-bottom`]:{[`> ${Fe}-nav ${Fe}-tab`]:{borderRadius:`0 0 ${De.borderRadius}px ${De.borderRadius}px`}},[`&${Fe}-top`]:{[`> ${Fe}-nav ${Fe}-tab`]:{borderRadius:`${De.borderRadius}px ${De.borderRadius}px 0 0`}},[`&${Fe}-right`]:{[`> ${Fe}-nav ${Fe}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${De.borderRadius}px ${De.borderRadius}px 0`}}},[`&${Fe}-left`]:{[`> ${Fe}-nav ${Fe}-tab`]:{borderRadius:{_skip_check_:!0,value:`${De.borderRadius}px 0 0 ${De.borderRadius}px`}}}},[`&${Fe}-large`]:{[`> ${Fe}-nav`]:{[`${Fe}-tab`]:{padding:Ze}}}}}},Hr=De=>{const{componentCls:Fe,itemActiveColor:ze,itemHoverColor:Ze,iconCls:nt,tabsHorizontalItemMargin:lt,horizontalItemPadding:Mt,itemSelectedColor:an,itemColor:un}=De,Jn=`${Fe}-tab`;return{[Jn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Mt,fontSize:De.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:un,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:ze}},(0,ii.Qy)(De)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-De.marginXXS},marginLeft:{_skip_check_:!0,value:De.marginXS},color:De.colorTextDescription,fontSize:De.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${De.motionDurationSlow}`,"&:hover":{color:De.colorTextHeading}},"&:hover":{color:Ze},[`&${Jn}-active ${Jn}-btn`]:{color:an,textShadow:De.tabsActiveTextShadow},[`&${Jn}-disabled`]:{color:De.colorTextDisabled,cursor:"not-allowed"},[`&${Jn}-disabled ${Jn}-btn, &${Jn}-disabled ${Fe}-remove`]:{"&:focus, &:active":{color:De.colorTextDisabled}},[`& ${Jn}-remove ${nt}`]:{margin:0},[nt]:{marginRight:{_skip_check_:!0,value:De.marginSM}}},[`${Jn} + ${Jn}`]:{margin:{_skip_check_:!0,value:lt}}}},ni=De=>{const{componentCls:Fe,tabsHorizontalItemMarginRTL:ze,iconCls:Ze,cardGutter:nt}=De;return{[`${Fe}-rtl`]:{direction:"rtl",[`${Fe}-nav`]:{[`${Fe}-tab`]:{margin:{_skip_check_:!0,value:ze},[`${Fe}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ze]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${De.marginSM}px`}},[`${Fe}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${De.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${De.marginXXS}px`},[Ze]:{margin:0}}}},[`&${Fe}-left`]:{[`> ${Fe}-nav`]:{order:1},[`> ${Fe}-content-holder`]:{order:0}},[`&${Fe}-right`]:{[`> ${Fe}-nav`]:{order:0},[`> ${Fe}-content-holder`]:{order:1}},[`&${Fe}-card${Fe}-top, &${Fe}-card${Fe}-bottom`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{[`${Fe}-tab + ${Fe}-tab`]:{marginRight:{_skip_check_:!0,value:nt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Fe}-dropdown-rtl`]:{direction:"rtl"},[`${Fe}-menu-item`]:{[`${Fe}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},yi=De=>{const{componentCls:Fe,tabsCardPadding:ze,cardHeight:Ze,cardGutter:nt,itemHoverColor:lt,itemActiveColor:Mt,colorBorderSecondary:an}=De;return{[Fe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ii.Wf)(De)),{display:"flex",[`> ${Fe}-nav, > div > ${Fe}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Fe}-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 ${De.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Fe}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${De.motionDurationSlow}`},[`${Fe}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Fe}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Fe}-nav-more`]:{position:"relative",padding:ze,background:"transparent",border:0,color:De.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:De.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Fe}-nav-add`]:Object.assign({minWidth:Ze,marginLeft:{_skip_check_:!0,value:nt},padding:`0 ${De.paddingXS}px`,background:"transparent",border:`${De.lineWidth}px ${De.lineType} ${an}`,borderRadius:`${De.borderRadiusLG}px ${De.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:De.colorText,transition:`all ${De.motionDurationSlow} ${De.motionEaseInOut}`,"&:hover":{color:lt},"&:active, &:focus:not(:focus-visible)":{color:Mt}},(0,ii.Qy)(De))},[`${Fe}-extra-content`]:{flex:"none"},[`${Fe}-ink-bar`]:{position:"absolute",background:De.inkBarColor,pointerEvents:"none"}}),Hr(De)),{[`${Fe}-content`]:{position:"relative",width:"100%"},[`${Fe}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Fe}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Fe}-centered`]:{[`> ${Fe}-nav, > div > ${Fe}-nav`]:{[`${Fe}-nav-wrap`]:{[`&:not([class*='${Fe}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Ar=(0,Et.Z)("Tabs",De=>{const Fe=(0,wt.TS)(De,{tabsCardPadding:De.cardPadding||`${(De.cardHeight-Math.round(De.fontSize*De.lineHeight))/2-De.lineWidth}px ${De.padding}px`,dropdownEdgeChildVerticalPadding:De.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${De.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${De.horizontalItemGutter}px`});return[Gr(Fe),ni(Fe),Wr(Fe),Ir(Fe),vr(Fe),yi(Fe),On(Fe)]},De=>{const Fe=De.controlHeightLG;return{zIndexPopup:De.zIndexPopupBase+50,cardBg:De.colorFillAlter,cardHeight:Fe,cardPadding:"",cardPaddingSM:`${De.paddingXXS*1.5}px ${De.padding}px`,cardPaddingLG:`${De.paddingXS}px ${De.padding}px ${De.paddingXXS*1.5}px`,titleFontSize:De.fontSize,titleFontSizeLG:De.fontSizeLG,titleFontSizeSM:De.fontSize,inkBarColor:De.colorPrimary,horizontalMargin:`0 0 ${De.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${De.paddingSM}px 0`,horizontalItemPaddingSM:`${De.paddingXS}px 0`,horizontalItemPaddingLG:`${De.padding}px 0`,verticalItemPadding:`${De.paddingXS}px ${De.paddingLG}px`,verticalItemMargin:`${De.margin}px 0 0 0`,itemColor:De.colorText,itemSelectedColor:De.colorPrimary,itemHoverColor:De.colorPrimaryHover,itemActiveColor:De.colorPrimaryActive,cardGutter:De.marginXXS/2}}),pi=function(De,Fe){var ze={};for(var Ze in De)Object.prototype.hasOwnProperty.call(De,Ze)&&Fe.indexOf(Ze)<0&&(ze[Ze]=De[Ze]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ze=Object.getOwnPropertySymbols(De);nt{const{type:Fe,className:ze,rootClassName:Ze,size:nt,onEdit:lt,hideAdd:Mt,centered:an,addIcon:un,popupClassName:Jn,children:br,items:Vn,animated:kn,style:wn,indicatorSize:Pn}=De,zn=pi(De,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:gr,moreIcon:Yn=Oe.createElement(He.Z,null)}=zn,{direction:Xn,tabs:ir,getPrefixCls:ar,getPopupContainer:xr}=Oe.useContext(gi.E_),Re=ar("tabs",gr),[Ke,At]=Ar(Re);let dt;Fe==="editable-card"&&(dt={onEdit:(cn,Wn)=>{let{key:Zn,event:wr}=Wn;lt==null||lt(cn==="add"?wr:Zn,cn)},removeIcon:Oe.createElement(de.Z,null),addIcon:un||Oe.createElement(Be.Z,null),showAdd:Mt!==!0});const Gt=ar(),pn=ta(Vn,br),Sn=qr(Re,kn),Kn=(0,qi.Z)(nt),Tn=Object.assign(Object.assign({},ir==null?void 0:ir.style),wn);return Ke(Oe.createElement(Ai,Object.assign({direction:Xn,getPopupContainer:xr,moreTransitionName:`${Gt}-slide-up`},zn,{items:pn,className:ve()({[`${Re}-${Kn}`]:Kn,[`${Re}-card`]:["card","editable-card"].includes(Fe),[`${Re}-editable-card`]:Fe==="editable-card",[`${Re}-centered`]:an},ir==null?void 0:ir.className,ze,Ze,At),popupClassName:ve()(Jn,At),style:Tn,editable:dt,moreIcon:Yn,prefixCls:Re,animated:Sn,indicatorSize:Pn!=null?Pn:ir==null?void 0:ir.indicatorSize})))};Ti.TabPane=li;var Ei=Ti},59810:function(En,Wt,se){"use strict";se.d(Wt,{default:function(){return fr}});var de=se(67294),He=se(74902),Be=se(94184),Ve=se.n(Be),ve=se(87462),we=se(15671),Ee=se(43144),xe=se(60136),me=se(51630),Ie=se(4942),ot=se(45987),Oe=se(74165),St=se(71002),ft=se(15861),it=se(64217);function Je(mt,st){var Ct="cannot ".concat(mt.method," ").concat(mt.action," ").concat(st.status,"'"),fn=new Error(Ct);return fn.status=st.status,fn.method=mt.method,fn.url=mt.action,fn}function Le(mt){var st=mt.responseText||mt.response;if(!st)return st;try{return JSON.parse(st)}catch(Ct){return st}}function gt(mt){var st=new XMLHttpRequest;mt.onProgress&&st.upload&&(st.upload.onprogress=function(hn){hn.total>0&&(hn.percent=hn.loaded/hn.total*100),mt.onProgress(hn)});var Ct=new FormData;mt.data&&Object.keys(mt.data).forEach(function(Bn){var hn=mt.data[Bn];if(Array.isArray(hn)){hn.forEach(function(vn){Ct.append("".concat(Bn,"[]"),vn)});return}Ct.append(Bn,hn)}),mt.file instanceof Blob?Ct.append(mt.filename,mt.file,mt.file.name):Ct.append(mt.filename,mt.file),st.onerror=function(hn){mt.onError(hn)},st.onload=function(){return st.status<200||st.status>=300?mt.onError(Je(mt,st),Le(st)):mt.onSuccess(Le(st),st)},st.open(mt.method,mt.action,!0),mt.withCredentials&&"withCredentials"in st&&(st.withCredentials=!0);var fn=mt.headers||{};return fn["X-Requested-With"]!==null&&st.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(fn).forEach(function(Bn){fn[Bn]!==null&&st.setRequestHeader(Bn,fn[Bn])}),st.send(Ct),{abort:function(){st.abort()}}}var qt=+new Date,tt=0;function ct(){return"rc-upload-".concat(qt,"-").concat(++tt)}var ke=se(80334),Se=function(mt,st){if(mt&&st){var Ct=Array.isArray(st)?st:st.split(","),fn=mt.name||"",Bn=mt.type||"",hn=Bn.replace(/\/.*$/,"");return Ct.some(function(vn){var xn=vn.trim();if(/^\*(\/\*)?$/.test(vn))return!0;if(xn.charAt(0)==="."){var Nn=fn.toLowerCase(),hr=xn.toLowerCase(),tn=[hr];return(hr===".jpg"||hr===".jpeg")&&(tn=[".jpg",".jpeg"]),tn.some(function(Qr){return Nn.endsWith(Qr)})}return/\/\*$/.test(xn)?hn===xn.replace(/\/.*$/,""):Bn===xn?!0:/^\w+$/.test(xn)?((0,ke.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(xn,"'.Skip for check.")),!0):!1})}return!0};function Ue(mt,st){var Ct=mt.createReader(),fn=[];function Bn(){Ct.readEntries(function(hn){var vn=Array.prototype.slice.apply(hn);fn=fn.concat(vn);var xn=!vn.length;xn?st(fn):Bn()})}Bn()}var je=function(st,Ct,fn){var Bn=function hn(vn,xn){vn&&(vn.path=xn||"",vn.isFile?vn.file(function(Nn){fn(Nn)&&(vn.fullPath&&!Nn.webkitRelativePath&&(Object.defineProperties(Nn,{webkitRelativePath:{writable:!0}}),Nn.webkitRelativePath=vn.fullPath.replace(/^\//,""),Object.defineProperties(Nn,{webkitRelativePath:{writable:!1}})),Ct([Nn]))}):vn.isDirectory&&Ue(vn,function(Nn){Nn.forEach(function(hr){hn(hr,"".concat(xn).concat(vn.name,"/"))})}))};st.forEach(function(hn){Bn(hn.webkitGetAsEntry())})},_t=je,vt=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],kt=function(mt){(0,xe.Z)(Ct,mt);var st=(0,me.Z)(Ct);function Ct(){var fn;(0,we.Z)(this,Ct);for(var Bn=arguments.length,hn=new Array(Bn),vn=0;vn{let{uid:hn}=Bn;return hn===mt.uid});return fn===-1?Ct.push(mt):Ct[fn]=mt,Ct}function Ft(mt,st){const Ct=mt.uid!==void 0?"uid":"name";return st.filter(fn=>fn[Ct]===mt[Ct])[0]}function Jt(mt,st){const Ct=mt.uid!==void 0?"uid":"name",fn=st.filter(Bn=>Bn[Ct]!==mt[Ct]);return fn.length===st.length?null:fn}const Xt=function(){const st=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),fn=st[st.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(fn)||[""])[0]},Hn=mt=>mt.indexOf("image/")===0,Rn=mt=>{if(mt.type&&!mt.thumbUrl)return Hn(mt.type);const st=mt.thumbUrl||mt.url||"",Ct=Xt(st);return/^data:image\//.test(st)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ct)?!0:!(/^data:/.test(st)||Ct)},Tt=200;function dn(mt){return new Promise(st=>{if(!mt.type||!Hn(mt.type)){st("");return}const Ct=document.createElement("canvas");Ct.width=Tt,Ct.height=Tt,Ct.style.cssText=`position: fixed; left: 0; top: 0; width: ${Tt}px; height: ${Tt}px; z-index: 9999; display: none;`,document.body.appendChild(Ct);const fn=Ct.getContext("2d"),Bn=new Image;if(Bn.onload=()=>{const{width:hn,height:vn}=Bn;let xn=Tt,Nn=Tt,hr=0,tn=0;hn>vn?(Nn=vn*(Tt/hn),tn=-(Nn-xn)/2):(xn=hn*(Tt/vn),hr=-(xn-Nn)/2),fn.drawImage(Bn,hr,tn,xn,Nn);const Qr=Ct.toDataURL();document.body.removeChild(Ct),window.URL.revokeObjectURL(Bn.src),st(Qr)},Bn.crossOrigin="anonymous",mt.type.startsWith("image/svg+xml")){const hn=new FileReader;hn.onload=()=>{hn.result&&(Bn.src=hn.result)},hn.readAsDataURL(mt)}else if(mt.type.startsWith("image/gif")){const hn=new FileReader;hn.onload=()=>{hn.result&&st(hn.result)},hn.readAsDataURL(mt)}else Bn.src=window.URL.createObjectURL(mt)})}var cr=se(84249),Mr=se(90674),at=se(99569),Ht=se(38703),Fn=se(83062),nr=de.forwardRef((mt,st)=>{let{prefixCls:Ct,className:fn,style:Bn,locale:hn,listType:vn,file:xn,items:Nn,progress:hr,iconRender:tn,actionIconRender:Qr,itemRender:Ur,isImgUrl:$i,showPreviewIcon:Ai,showRemoveIcon:gi,showDownloadIcon:qi,previewIcon:xi,removeIcon:li,downloadIcon:Ni,onPreview:Gi,onDownload:qr,onClose:vi}=mt;var Zi,la;const{status:ta}=xn,[ii,Et]=de.useState(ta);de.useEffect(()=>{ta!=="removed"&&Et(ta)},[ta]);const[wt,Qt]=de.useState(!1);de.useEffect(()=>{const nt=setTimeout(()=>{Qt(!0)},300);return()=>{clearTimeout(nt)}},[]);const mn=tn(xn);let On=de.createElement("div",{className:`${Ct}-icon`},mn);if(vn==="picture"||vn==="picture-card"||vn==="picture-circle")if(ii==="uploading"||!xn.thumbUrl&&!xn.url){const nt=Ve()(`${Ct}-list-item-thumbnail`,{[`${Ct}-list-item-file`]:ii!=="uploading"});On=de.createElement("div",{className:nt},mn)}else{const nt=$i!=null&&$i(xn)?de.createElement("img",{src:xn.thumbUrl||xn.url,alt:xn.name,className:`${Ct}-list-item-image`,crossOrigin:xn.crossOrigin}):mn,lt=Ve()(`${Ct}-list-item-thumbnail`,{[`${Ct}-list-item-file`]:$i&&!$i(xn)});On=de.createElement("a",{className:lt,onClick:Mt=>Gi(xn,Mt),href:xn.url||xn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},nt)}const vr=Ve()(`${Ct}-list-item`,`${Ct}-list-item-${ii}`),Ir=typeof xn.linkProps=="string"?JSON.parse(xn.linkProps):xn.linkProps,Wr=gi?Qr((typeof li=="function"?li(xn):li)||de.createElement(cr.Z,null),()=>vi(xn),Ct,hn.removeFile):null,Gr=qi&&ii==="done"?Qr((typeof Ni=="function"?Ni(xn):Ni)||de.createElement(Mr.Z,null),()=>qr(xn),Ct,hn.downloadFile):null,Hr=vn!=="picture-card"&&vn!=="picture-circle"&&de.createElement("span",{key:"download-delete",className:Ve()(`${Ct}-list-item-actions`,{picture:vn==="picture"})},Gr,Wr),ni=Ve()(`${Ct}-list-item-name`),yi=xn.url?[de.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ni,title:xn.name},Ir,{href:xn.url,onClick:nt=>Gi(xn,nt)}),xn.name),Hr]:[de.createElement("span",{key:"view",className:ni,onClick:nt=>Gi(xn,nt),title:xn.name},xn.name),Hr],Ar={pointerEvents:"none",opacity:.5},pi=Ai?de.createElement("a",{href:xn.url||xn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:xn.url||xn.thumbUrl?void 0:Ar,onClick:nt=>Gi(xn,nt),title:hn.previewFile},typeof xi=="function"?xi(xn):xi||de.createElement(at.Z,null)):null,Ti=(vn==="picture-card"||vn==="picture-circle")&&ii!=="uploading"&&de.createElement("span",{className:`${Ct}-list-item-actions`},pi,ii==="done"&&Gr,Wr),{getPrefixCls:Ei}=de.useContext(or.E_),De=Ei(),Fe=de.createElement("div",{className:vr},On,yi,Ti,wt&&de.createElement(pe.default,{motionName:`${De}-fade`,visible:ii==="uploading",motionDeadline:2e3},nt=>{let{className:lt}=nt;const Mt="percent"in xn?de.createElement(Ht.Z,Object.assign({},hr,{type:"line",percent:xn.percent,"aria-label":xn["aria-label"],"aria-labelledby":xn["aria-labelledby"]})):null;return de.createElement("div",{className:Ve()(`${Ct}-list-item-progress`,lt)},Mt)})),ze=xn.response&&typeof xn.response=="string"?xn.response:((Zi=xn.error)===null||Zi===void 0?void 0:Zi.statusText)||((la=xn.error)===null||la===void 0?void 0:la.message)||hn.uploadError,Ze=ii==="error"?de.createElement(Fn.Z,{title:ze,getPopupContainer:nt=>nt.parentNode},Fe):Fe;return de.createElement("div",{className:Ve()(`${Ct}-list-item-container`,fn),style:Bn,ref:st},Ur?Ur(Ze,xn,Nn,{download:qr.bind(null,xn),preview:Gi.bind(null,xn),remove:vi.bind(null,xn)}):Ze)});const Sr=(mt,st)=>{const{listType:Ct="text",previewFile:fn=dn,onPreview:Bn,onDownload:hn,onRemove:vn,locale:xn,iconRender:Nn,isImageUrl:hr=Rn,prefixCls:tn,items:Qr=[],showPreviewIcon:Ur=!0,showRemoveIcon:$i=!0,showDownloadIcon:Ai=!1,removeIcon:gi,previewIcon:qi,downloadIcon:xi,progress:li={size:[-1,2],showInfo:!1},appendAction:Ni,appendActionVisible:Gi=!0,itemRender:qr,disabled:vi}=mt,Zi=(0,he.Z)(),[la,ta]=de.useState(!1);de.useEffect(()=>{Ct!=="picture"&&Ct!=="picture-card"&&Ct!=="picture-circle"||(Qr||[]).forEach(Ar=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ar.originFileObj instanceof File||Ar.originFileObj instanceof Blob)||Ar.thumbUrl!==void 0||(Ar.thumbUrl="",fn&&fn(Ar.originFileObj).then(pi=>{Ar.thumbUrl=pi||"",Zi()}))})},[Ct,Qr,fn]),de.useEffect(()=>{ta(!0)},[]);const ii=(Ar,pi)=>{if(Bn)return pi==null||pi.preventDefault(),Bn(Ar)},Et=Ar=>{typeof hn=="function"?hn(Ar):Ar.url&&window.open(Ar.url)},wt=Ar=>{vn==null||vn(Ar)},Qt=Ar=>{if(Nn)return Nn(Ar,Ct);const pi=Ar.status==="uploading",Ti=hr&&hr(Ar)?de.createElement(le,null):de.createElement(jt,null);let Ei=pi?de.createElement(_n.Z,null):de.createElement(yn,null);return Ct==="picture"?Ei=pi?de.createElement(_n.Z,null):Ti:(Ct==="picture-card"||Ct==="picture-circle")&&(Ei=pi?xn.uploading:Ti),Ei},mn=(Ar,pi,Ti,Ei)=>{const De={type:"text",size:"small",title:Ei,onClick:Fe=>{pi(),(0,Te.l$)(Ar)&&Ar.props.onClick&&Ar.props.onClick(Fe)},className:`${Ti}-list-item-action`,disabled:vi};if((0,Te.l$)(Ar)){const Fe=(0,Te.Tm)(Ar,Object.assign(Object.assign({},Ar.props),{onClick:()=>{}}));return de.createElement(Ye.ZP,Object.assign({},De,{icon:Fe}))}return de.createElement(Ye.ZP,Object.assign({},De),de.createElement("span",null,Ar))};de.useImperativeHandle(st,()=>({handlePreview:ii,handleDownload:Et}));const{getPrefixCls:On}=de.useContext(or.E_),vr=On("upload",tn),Ir=On(),Wr=Ve()(`${vr}-list`,`${vr}-list-${Ct}`),Gr=(0,He.Z)(Qr.map(Ar=>({key:Ar.uid,file:Ar})));let ni={motionDeadline:2e3,motionName:`${vr}-${Ct==="picture-card"||Ct==="picture-circle"?"animate-inline":"animate"}`,keys:Gr,motionAppear:la};const yi=de.useMemo(()=>{const Ar=Object.assign({},(0,oe.Z)(Ir));return delete Ar.onAppearEnd,delete Ar.onEnterEnd,delete Ar.onLeaveEnd,Ar},[Ir]);return Ct!=="picture-card"&&Ct!=="picture-circle"&&(ni=Object.assign(Object.assign({},yi),ni)),de.createElement("div",{className:Wr},de.createElement(pe.CSSMotionList,Object.assign({},ni,{component:!1}),Ar=>{let{key:pi,file:Ti,className:Ei,style:De}=Ar;return de.createElement(nr,{key:pi,locale:xn,prefixCls:vr,className:Ei,style:De,file:Ti,items:Qr,progress:li,listType:Ct,isImgUrl:hr,showPreviewIcon:Ur,showRemoveIcon:$i,showDownloadIcon:Ai,removeIcon:gi,previewIcon:qi,downloadIcon:xi,iconRender:Qt,actionIconRender:mn,itemRender:qr,onPreview:ii,onDownload:Et,onClose:wt})}),Ni&&de.createElement(pe.default,Object.assign({},ni,{visible:Gi,forceRender:!0}),Ar=>{let{className:pi,style:Ti}=Ar;return(0,Te.Tm)(Ni,Ei=>({className:Ve()(Ei.className,pi),style:Object.assign(Object.assign(Object.assign({},Ti),{pointerEvents:pi?"none":void 0}),Ei.style)}))}))};var Er=de.forwardRef(Sr),Or=se(14747),Vr=se(33507),ur=se(67968),si=se(45503),Bi=mt=>{const{componentCls:st,iconCls:Ct}=mt;return{[`${st}-wrapper`]:{[`${st}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:mt.colorFillAlter,border:`${mt.lineWidth}px dashed ${mt.colorBorder}`,borderRadius:mt.borderRadiusLG,cursor:"pointer",transition:`border-color ${mt.motionDurationSlow}`,[st]:{padding:`${mt.padding}px 0`},[`${st}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${st}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${st}-disabled):hover`]:{borderColor:mt.colorPrimaryHover},[`p${st}-drag-icon`]:{marginBottom:mt.margin,[Ct]:{color:mt.colorPrimary,fontSize:mt.uploadThumbnailSize}},[`p${st}-text`]:{margin:`0 0 ${mt.marginXXS}px`,color:mt.colorTextHeading,fontSize:mt.fontSizeLG},[`p${st}-hint`]:{color:mt.colorTextDescription,fontSize:mt.fontSize},[`&${st}-disabled`]:{cursor:"not-allowed",[`p${st}-drag-icon ${Ct}, p${st}-text, p${st}-hint `]:{color:mt.colorTextDisabled}}}}}},ri=mt=>{const{componentCls:st,antCls:Ct,iconCls:fn,fontSize:Bn,lineHeight:hn}=mt,vn=`${st}-list-item`,xn=`${vn}-actions`,Nn=`${vn}-action`,hr=Math.round(Bn*hn);return{[`${st}-wrapper`]:{[`${st}-list`]:Object.assign(Object.assign({},(0,Or.dF)()),{lineHeight:mt.lineHeight,[vn]:{position:"relative",height:mt.lineHeight*Bn,marginTop:mt.marginXS,fontSize:Bn,display:"flex",alignItems:"center",transition:`background-color ${mt.motionDurationSlow}`,"&:hover":{backgroundColor:mt.controlItemBgHover},[`${vn}-name`]:Object.assign(Object.assign({},Or.vS),{padding:`0 ${mt.paddingXS}px`,lineHeight:hn,flex:"auto",transition:`all ${mt.motionDurationSlow}`}),[xn]:{[Nn]:{opacity:0},[`${Nn}${Ct}-btn-sm`]:{height:hr,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${Nn}:focus-visible, &.picture ${Nn} `]:{opacity:1},[fn]:{color:mt.actionsColor,transition:`all ${mt.motionDurationSlow}`},[`&:hover ${fn}`]:{color:mt.colorText}},[`${st}-icon ${fn}`]:{color:mt.colorTextDescription,fontSize:Bn},[`${vn}-progress`]:{position:"absolute",bottom:-mt.uploadProgressOffset,width:"100%",paddingInlineStart:Bn+mt.paddingXS,fontSize:Bn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${vn}:hover ${Nn}`]:{opacity:1,color:mt.colorText},[`${vn}-error`]:{color:mt.colorError,[`${vn}-name, ${st}-icon ${fn}`]:{color:mt.colorError},[xn]:{[`${fn}, ${fn}:hover`]:{color:mt.colorError},[Nn]:{opacity:1}}},[`${st}-list-item-container`]:{transition:`opacity ${mt.motionDurationSlow}, height ${mt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},yt=se(45930),Mn=se(16932);const An=new yt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Dn=new yt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var qn=mt=>{const{componentCls:st}=mt,Ct=`${st}-animate-inline`;return[{[`${st}-wrapper`]:{[`${Ct}-appear, ${Ct}-enter, ${Ct}-leave`]:{animationDuration:mt.motionDurationSlow,animationTimingFunction:mt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ct}-appear, ${Ct}-enter`]:{animationName:An},[`${Ct}-leave`]:{animationName:Dn}}},{[`${st}-wrapper`]:(0,Mn.J$)(mt)},An,Dn]},pr=se(47448),$n=se(84780);const qe=mt=>{const{componentCls:st,iconCls:Ct,uploadThumbnailSize:fn,uploadProgressOffset:Bn}=mt,hn=`${st}-list`,vn=`${hn}-item`;return{[`${st}-wrapper`]:{[` ${hn}${hn}-picture, ${hn}${hn}-picture-card, ${hn}${hn}-picture-circle `]:{[vn]:{position:"relative",height:fn+mt.lineWidth*2+mt.paddingXS*2,padding:mt.paddingXS,border:`${mt.lineWidth}px ${mt.lineType} ${mt.colorBorder}`,borderRadius:mt.borderRadiusLG,"&:hover":{background:"transparent"},[`${vn}-thumbnail`]:Object.assign(Object.assign({},Or.vS),{width:fn,height:fn,lineHeight:`${fn+mt.paddingSM}px`,textAlign:"center",flex:"none",[Ct]:{fontSize:mt.fontSizeHeading2,color:mt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${vn}-progress`]:{bottom:Bn,width:`calc(100% - ${mt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:fn+mt.paddingXS}},[`${vn}-error`]:{borderColor:mt.colorError,[`${vn}-thumbnail ${Ct}`]:{[`svg path[fill='${pr.blue[0]}']`]:{fill:mt.colorErrorBg},[`svg path[fill='${pr.blue.primary}']`]:{fill:mt.colorError}}},[`${vn}-uploading`]:{borderStyle:"dashed",[`${vn}-name`]:{marginBottom:Bn}}},[`${hn}${hn}-picture-circle ${vn}`]:{[`&, &::before, ${vn}-thumbnail`]:{borderRadius:"50%"}}}}},ut=mt=>{const{componentCls:st,iconCls:Ct,fontSizeLG:fn,colorTextLightSolid:Bn}=mt,hn=`${st}-list`,vn=`${hn}-item`,xn=mt.uploadPicCardSize;return{[` ${st}-wrapper${st}-picture-card-wrapper, ${st}-wrapper${st}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,Or.dF)()),{display:"inline-block",width:"100%",[`${st}${st}-select`]:{width:xn,height:xn,marginInlineEnd:mt.marginXS,marginBottom:mt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:mt.colorFillAlter,border:`${mt.lineWidth}px dashed ${mt.colorBorder}`,borderRadius:mt.borderRadiusLG,cursor:"pointer",transition:`border-color ${mt.motionDurationSlow}`,[`> ${st}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${st}-disabled):hover`]:{borderColor:mt.colorPrimary}},[`${hn}${hn}-picture-card, ${hn}${hn}-picture-circle`]:{[`${hn}-item-container`]:{display:"inline-block",width:xn,height:xn,marginBlock:`0 ${mt.marginXS}px`,marginInline:`0 ${mt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[vn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${mt.paddingXS*2}px)`,height:`calc(100% - ${mt.paddingXS*2}px)`,backgroundColor:mt.colorBgMask,opacity:0,transition:`all ${mt.motionDurationSlow}`,content:'" "'}},[`${vn}:hover`]:{[`&::before, ${vn}-actions`]:{opacity:1}},[`${vn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${mt.motionDurationSlow}`,[`${Ct}-eye, ${Ct}-download, ${Ct}-delete`]:{zIndex:10,width:fn,margin:`0 ${mt.marginXXS}px`,fontSize:fn,cursor:"pointer",transition:`all ${mt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${vn}-actions, ${vn}-actions:hover`]:{[`${Ct}-eye, ${Ct}-download, ${Ct}-delete`]:{color:new $n.C(Bn).setAlpha(.65).toRgbString(),"&:hover":{color:Bn}}},[`${vn}-thumbnail, ${vn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${vn}-name`]:{display:"none",textAlign:"center"},[`${vn}-file + ${vn}-name`]:{position:"absolute",bottom:mt.margin,display:"block",width:`calc(100% - ${mt.paddingXS*2}px)`},[`${vn}-uploading`]:{[`&${vn}`]:{backgroundColor:mt.colorFillAlter},[`&::before, ${Ct}-eye, ${Ct}-download, ${Ct}-delete`]:{display:"none"}},[`${vn}-progress`]:{bottom:mt.marginXL,width:`calc(100% - ${mt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${st}-wrapper${st}-picture-circle-wrapper`]:{[`${st}${st}-select`]:{borderRadius:"50%"}}}};var Vt=mt=>{const{componentCls:st}=mt;return{[`${st}-rtl`]:{direction:"rtl"}}};const We=mt=>{const{componentCls:st,colorTextDisabled:Ct}=mt;return{[`${st}-wrapper`]:Object.assign(Object.assign({},(0,Or.Wf)(mt)),{[st]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${st}-select`]:{display:"inline-block"},[`${st}-disabled`]:{color:Ct,cursor:"not-allowed"}})}};var pt=(0,ur.Z)("Upload",mt=>{const{fontSizeHeading3:st,fontSize:Ct,lineHeight:fn,lineWidth:Bn,controlHeightLG:hn}=mt,vn=Math.round(Ct*fn),xn=(0,si.TS)(mt,{uploadThumbnailSize:st*2,uploadProgressOffset:vn/2+Bn,uploadPicCardSize:hn*2.55});return[We(xn),Bi(xn),qe(xn),ut(xn),ri(xn),qn(xn),Vt(xn),(0,Vr.Z)(xn)]},mt=>({actionsColor:mt.colorTextDescription})),zt=function(mt,st,Ct,fn){function Bn(hn){return hn instanceof Ct?hn:new Ct(function(vn){vn(hn)})}return new(Ct||(Ct=Promise))(function(hn,vn){function xn(tn){try{hr(fn.next(tn))}catch(Qr){vn(Qr)}}function Nn(tn){try{hr(fn.throw(tn))}catch(Qr){vn(Qr)}}function hr(tn){tn.done?hn(tn.value):Bn(tn.value).then(xn,Nn)}hr((fn=fn.apply(mt,st||[])).next())})};const Bt=`__LIST_IGNORE_${Date.now()}__`,en=(mt,st)=>{const{fileList:Ct,defaultFileList:fn,onRemove:Bn,showUploadList:hn=!0,listType:vn="text",onPreview:xn,onDownload:Nn,onChange:hr,onDrop:tn,previewFile:Qr,disabled:Ur,locale:$i,iconRender:Ai,isImageUrl:gi,progress:qi,prefixCls:xi,className:li,type:Ni="select",children:Gi,style:qr,itemRender:vi,maxCount:Zi,data:la={},multiple:ta=!1,action:ii="",accept:Et="",supportServerRender:wt=!0,rootClassName:Qt}=mt,mn=de.useContext(Qe.Z),On=Ur!=null?Ur:mn,[vr,Ir]=(0,sn.Z)(fn||[],{value:Ct,postState:Re=>Re!=null?Re:[]}),[Wr,Gr]=de.useState("drop"),Hr=de.useRef(null);de.useMemo(()=>{const Re=Date.now();(Ct||[]).forEach((Ke,At)=>{!Ke.uid&&!Object.isFrozen(Ke)&&(Ke.uid=`__AUTO__${Re}_${At}__`)})},[Ct]);const ni=(Re,Ke,At)=>{let dt=(0,He.Z)(Ke),Gt=!1;Zi===1?dt=dt.slice(-1):Zi&&(Gt=dt.length>Zi,dt=dt.slice(0,Zi)),(0,Cn.flushSync)(()=>{Ir(dt)});const pn={file:Re,fileList:dt};At&&(pn.event=At),(!Gt||dt.some(Sn=>Sn.uid===Re.uid))&&(0,Cn.flushSync)(()=>{hr==null||hr(pn)})},yi=(Re,Ke)=>zt(void 0,void 0,void 0,function*(){const{beforeUpload:At,transformFile:dt}=mt;let Gt=Re;if(At){const pn=yield At(Re,Ke);if(pn===!1)return!1;if(delete Re[Bt],pn===Bt)return Object.defineProperty(Re,Bt,{value:!0,configurable:!0}),!1;typeof pn=="object"&&pn&&(Gt=pn)}return dt&&(Gt=yield dt(Gt)),Gt}),Ar=Re=>{const Ke=Re.filter(Gt=>!Gt.file[Bt]);if(!Ke.length)return;const At=Ke.map(Gt=>Lt(Gt.file));let dt=(0,He.Z)(vr);At.forEach(Gt=>{dt=Rt(Gt,dt)}),At.forEach((Gt,pn)=>{let Sn=Gt;if(Ke[pn].parsedFile)Gt.status="uploading";else{const{originFileObj:Kn}=Gt;let Tn;try{Tn=new File([Kn],Kn.name,{type:Kn.type})}catch(cn){Tn=new Blob([Kn],{type:Kn.type}),Tn.name=Kn.name,Tn.lastModifiedDate=new Date,Tn.lastModified=new Date().getTime()}Tn.uid=Gt.uid,Sn=Tn}ni(Sn,dt)})},pi=(Re,Ke,At)=>{try{typeof Re=="string"&&(Re=JSON.parse(Re))}catch(pn){}if(!Ft(Ke,vr))return;const dt=Lt(Ke);dt.status="done",dt.percent=100,dt.response=Re,dt.xhr=At;const Gt=Rt(dt,vr);ni(dt,Gt)},Ti=(Re,Ke)=>{if(!Ft(Ke,vr))return;const At=Lt(Ke);At.status="uploading",At.percent=Re.percent;const dt=Rt(At,vr);ni(At,dt,Re)},Ei=(Re,Ke,At)=>{if(!Ft(At,vr))return;const dt=Lt(At);dt.error=Re,dt.response=Ke,dt.status="error";const Gt=Rt(dt,vr);ni(dt,Gt)},De=Re=>{let Ke;Promise.resolve(typeof Bn=="function"?Bn(Re):Bn).then(At=>{var dt;if(At===!1)return;const Gt=Jt(Re,vr);Gt&&(Ke=Object.assign(Object.assign({},Re),{status:"removed"}),vr==null||vr.forEach(pn=>{const Sn=Ke.uid!==void 0?"uid":"name";pn[Sn]===Ke[Sn]&&!Object.isFrozen(pn)&&(pn.status="removed")}),(dt=Hr.current)===null||dt===void 0||dt.abort(Ke),ni(Ke,Gt))})},Fe=Re=>{Gr(Re.type),Re.type==="drop"&&(tn==null||tn(Re))};de.useImperativeHandle(st,()=>({onBatchStart:Ar,onSuccess:pi,onProgress:Ti,onError:Ei,fileList:vr,upload:Hr.current}));const{getPrefixCls:ze,direction:Ze,upload:nt}=de.useContext(or.E_),lt=ze("upload",xi),Mt=Object.assign(Object.assign({onBatchStart:Ar,onError:Ei,onProgress:Ti,onSuccess:pi},mt),{data:la,multiple:ta,action:ii,accept:Et,supportServerRender:wt,prefixCls:lt,disabled:On,beforeUpload:yi,onChange:void 0});delete Mt.className,delete Mt.style,(!Gi||On)&&delete Mt.id;const[an,un]=pt(lt),[Jn]=(0,Ce.Z)("Upload",ht.Z.Upload),{showRemoveIcon:br,showPreviewIcon:Vn,showDownloadIcon:kn,removeIcon:wn,previewIcon:Pn,downloadIcon:zn}=typeof hn=="boolean"?{}:hn,gr=(Re,Ke)=>hn?de.createElement(Er,{prefixCls:lt,listType:vn,items:vr,previewFile:Qr,onPreview:xn,onDownload:Nn,onRemove:De,showRemoveIcon:!On&&br,showPreviewIcon:Vn,showDownloadIcon:kn,removeIcon:wn,previewIcon:Pn,downloadIcon:zn,iconRender:Ai,locale:Object.assign(Object.assign({},Jn),$i),isImageUrl:gi,progress:qi,appendAction:Re,appendActionVisible:Ke,itemRender:vi,disabled:On}):Re,Yn=Ve()(`${lt}-wrapper`,li,Qt,un,nt==null?void 0:nt.className,{[`${lt}-rtl`]:Ze==="rtl",[`${lt}-picture-card-wrapper`]:vn==="picture-card",[`${lt}-picture-circle-wrapper`]:vn==="picture-circle"}),Xn=Object.assign(Object.assign({},nt==null?void 0:nt.style),qr);if(Ni==="drag"){const Re=Ve()(un,lt,`${lt}-drag`,{[`${lt}-drag-uploading`]:vr.some(Ke=>Ke.status==="uploading"),[`${lt}-drag-hover`]:Wr==="dragover",[`${lt}-disabled`]:On,[`${lt}-rtl`]:Ze==="rtl"});return an(de.createElement("span",{className:Yn},de.createElement("div",{className:Re,style:Xn,onDrop:Fe,onDragOver:Fe,onDragLeave:Fe},de.createElement(Nt,Object.assign({},Mt,{ref:Hr,className:`${lt}-btn`}),de.createElement("div",{className:`${lt}-drag-container`},Gi))),gr()))}const ir=Ve()(lt,`${lt}-select`,{[`${lt}-disabled`]:On}),xr=(Re=>de.createElement("div",{className:ir,style:Re},de.createElement(Nt,Object.assign({},Mt,{ref:Hr}))))(Gi?void 0:{display:"none"});return an(vn==="picture-card"||vn==="picture-circle"?de.createElement("span",{className:Yn},gr(xr,!!Gi)):de.createElement("span",{className:Yn},xr,gr()))};var jn=de.forwardRef(en),Lr=function(mt,st){var Ct={};for(var fn in mt)Object.prototype.hasOwnProperty.call(mt,fn)&&st.indexOf(fn)<0&&(Ct[fn]=mt[fn]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,fn=Object.getOwnPropertySymbols(mt);Bn{var{style:Ct,height:fn}=mt,Bn=Lr(mt,["style","height"]);return de.createElement(jn,Object.assign({ref:st},Bn,{type:"drag",style:Object.assign(Object.assign({},Ct),{height:fn})}))});const dr=jn;dr.Dragger=tr,dr.LIST_IGNORE=Bt;var fr=dr},72665:function(En,Wt){"use strict";var se;var de=typeof Symbol=="function"&&Symbol.for,He=de?Symbol.for("react.element"):60103,Be=de?Symbol.for("react.portal"):60106,Ve=de?Symbol.for("react.fragment"):60107,ve=de?Symbol.for("react.strict_mode"):60108,we=de?Symbol.for("react.profiler"):60114,Ee=de?Symbol.for("react.provider"):60109,xe=de?Symbol.for("react.context"):60110,me=de?Symbol.for("react.async_mode"):60111,Ie=de?Symbol.for("react.concurrent_mode"):60111,ot=de?Symbol.for("react.forward_ref"):60112,Oe=de?Symbol.for("react.suspense"):60113,St=de?Symbol.for("react.suspense_list"):60120,ft=de?Symbol.for("react.memo"):60115,it=de?Symbol.for("react.lazy"):60116,Je=de?Symbol.for("react.block"):60121,Le=de?Symbol.for("react.fundamental"):60117,gt=de?Symbol.for("react.responder"):60118,qt=de?Symbol.for("react.scope"):60119;function tt(ke){if(typeof ke=="object"&&ke!==null){var Se=ke.$$typeof;switch(Se){case He:switch(ke=ke.type,ke){case me:case Ie:case Ve:case we:case ve:case Oe:return ke;default:switch(ke=ke&&ke.$$typeof,ke){case xe:case ot:case it:case ft:case Ee:return ke;default:return Se}}case Be:return Se}}}function ct(ke){return tt(ke)===Ie}se=me,se=Ie,se=xe,se=Ee,se=He,se=ot,se=Ve,se=it,se=ft,se=Be,se=we,se=ve,se=Oe,se=function(ke){return ct(ke)||tt(ke)===me},se=ct,se=function(ke){return tt(ke)===xe},se=function(ke){return tt(ke)===Ee},se=function(ke){return typeof ke=="object"&&ke!==null&&ke.$$typeof===He},se=function(ke){return tt(ke)===ot},se=function(ke){return tt(ke)===Ve},se=function(ke){return tt(ke)===it},Wt.isMemo=function(ke){return tt(ke)===ft},se=function(ke){return tt(ke)===Be},se=function(ke){return tt(ke)===we},se=function(ke){return tt(ke)===ve},se=function(ke){return tt(ke)===Oe},se=function(ke){return typeof ke=="string"||typeof ke=="function"||ke===Ve||ke===Ie||ke===we||ke===ve||ke===Oe||ke===St||typeof ke=="object"&&ke!==null&&(ke.$$typeof===it||ke.$$typeof===ft||ke.$$typeof===Ee||ke.$$typeof===xe||ke.$$typeof===ot||ke.$$typeof===Le||ke.$$typeof===gt||ke.$$typeof===qt||ke.$$typeof===Je)},se=tt},12060:function(En,Wt,se){"use strict";En.exports=se(72665)},41771:function(En,Wt){"use strict";var se;var de=typeof Symbol=="function"&&Symbol.for,He=de?Symbol.for("react.element"):60103,Be=de?Symbol.for("react.portal"):60106,Ve=de?Symbol.for("react.fragment"):60107,ve=de?Symbol.for("react.strict_mode"):60108,we=de?Symbol.for("react.profiler"):60114,Ee=de?Symbol.for("react.provider"):60109,xe=de?Symbol.for("react.context"):60110,me=de?Symbol.for("react.async_mode"):60111,Ie=de?Symbol.for("react.concurrent_mode"):60111,ot=de?Symbol.for("react.forward_ref"):60112,Oe=de?Symbol.for("react.suspense"):60113,St=de?Symbol.for("react.suspense_list"):60120,ft=de?Symbol.for("react.memo"):60115,it=de?Symbol.for("react.lazy"):60116,Je=de?Symbol.for("react.block"):60121,Le=de?Symbol.for("react.fundamental"):60117,gt=de?Symbol.for("react.responder"):60118,qt=de?Symbol.for("react.scope"):60119;function tt(ke){if(typeof ke=="object"&&ke!==null){var Se=ke.$$typeof;switch(Se){case He:switch(ke=ke.type,ke){case me:case Ie:case Ve:case we:case ve:case Oe:return ke;default:switch(ke=ke&&ke.$$typeof,ke){case xe:case ot:case it:case ft:case Ee:return ke;default:return Se}}case Be:return Se}}}function ct(ke){return tt(ke)===Ie}se=me,se=Ie,se=xe,se=Ee,se=He,se=ot,se=Ve,se=it,se=ft,se=Be,se=we,se=ve,se=Oe,se=function(ke){return ct(ke)||tt(ke)===me},se=ct,se=function(ke){return tt(ke)===xe},se=function(ke){return tt(ke)===Ee},se=function(ke){return typeof ke=="object"&&ke!==null&&ke.$$typeof===He},se=function(ke){return tt(ke)===ot},Wt.isFragment=function(ke){return tt(ke)===Ve},se=function(ke){return tt(ke)===it},se=function(ke){return tt(ke)===ft},se=function(ke){return tt(ke)===Be},se=function(ke){return tt(ke)===we},se=function(ke){return tt(ke)===ve},se=function(ke){return tt(ke)===Oe},se=function(ke){return typeof ke=="string"||typeof ke=="function"||ke===Ve||ke===Ie||ke===we||ke===ve||ke===Oe||ke===St||typeof ke=="object"&&ke!==null&&(ke.$$typeof===it||ke.$$typeof===ft||ke.$$typeof===Ee||ke.$$typeof===xe||ke.$$typeof===ot||ke.$$typeof===Le||ke.$$typeof===gt||ke.$$typeof===qt||ke.$$typeof===Je)},se=tt},47655:function(En,Wt,se){"use strict";En.exports=se(41771)},64701:function(En,Wt,se){"use strict";se.r(Wt),se.d(Wt,{ResizableTextArea:function(){return Ut},default:function(){return rn}});var de=se(87462),He=se(1413),Be=se(4942),Ve=se(71002),ve=se(97685),we=se(45987),Ee=se(74902),xe=se(94184),me=se.n(xe),Ie=se(67656),ot=se(87887),Oe=se(67294);function St($t){var Zt=Oe.useRef();Zt.current=$t;var yn=Oe.useCallback(function(){for(var ln,Ae=arguments.length,ue=new Array(Ae),le=0;le1&&arguments[1]!==void 0?arguments[1]:1;Ue+=1;var ln=Ue;function Ae(ue){if(ue===0)_t(ln),Zt();else{var le=ke(function(){Ae(ue-1)});je.set(ln,le)}}return Ae(yn),ln};vt.cancel=function($t){var Zt=je.get($t);return _t(Zt),Se(Zt)};var kt=vt,Xe=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,Kt=["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"],Ot={},bn;function Nt($t){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yn=$t.getAttribute("id")||$t.getAttribute("data-reactid")||$t.getAttribute("name");if(Zt&&Ot[yn])return Ot[yn];var ln=window.getComputedStyle($t),Ae=ln.getPropertyValue("box-sizing")||ln.getPropertyValue("-moz-box-sizing")||ln.getPropertyValue("-webkit-box-sizing"),ue=parseFloat(ln.getPropertyValue("padding-bottom"))+parseFloat(ln.getPropertyValue("padding-top")),le=parseFloat(ln.getPropertyValue("border-bottom-width"))+parseFloat(ln.getPropertyValue("border-top-width")),pe=Kt.map(function(oe){return"".concat(oe,":").concat(ln.getPropertyValue(oe))}).join(";"),he={sizingStyle:pe,paddingSize:ue,borderSize:le,boxSizing:Ae};return Zt&&yn&&(Ot[yn]=he),he}function sn($t){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ln=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;bn||(bn=document.createElement("textarea"),bn.setAttribute("tab-index","-1"),bn.setAttribute("aria-hidden","true"),document.body.appendChild(bn)),$t.getAttribute("wrap")?bn.setAttribute("wrap",$t.getAttribute("wrap")):bn.removeAttribute("wrap");var Ae=Nt($t,Zt),ue=Ae.paddingSize,le=Ae.borderSize,pe=Ae.boxSizing,he=Ae.sizingStyle;bn.setAttribute("style","".concat(he,";").concat(Xe)),bn.value=$t.value||$t.placeholder||"";var oe=void 0,Te=void 0,Ye,Lt=bn.scrollHeight;if(pe==="border-box"?Lt+=le:pe==="content-box"&&(Lt-=ue),yn!==null||ln!==null){bn.value=" ";var Rt=bn.scrollHeight-ue;yn!==null&&(oe=Rt*yn,pe==="border-box"&&(oe=oe+ue+le),Lt=Math.max(oe,Lt)),ln!==null&&(Te=Rt*ln,pe==="border-box"&&(Te=Te+ue+le),Ye=Lt>Te?"":"hidden",Lt=Math.min(Te,Lt))}var Ft={height:Lt,overflowY:Ye,resize:"none"};return oe&&(Ft.minHeight=oe),Te&&(Ft.maxHeight=Te),Ft}var Cn=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],or=0,Qe=1,Ce=2,ht=Oe.forwardRef(function($t,Zt){var yn=$t,ln=yn.prefixCls,Ae=yn.onPressEnter,ue=yn.defaultValue,le=yn.value,pe=yn.autoSize,he=yn.onResize,oe=yn.className,Te=yn.style,Ye=yn.disabled,Lt=yn.onChange,Rt=yn.onInternalAutoSize,Ft=(0,we.Z)(yn,Cn),Jt=tt(ue,{value:le,postState:function(Dn){return Dn!=null?Dn:""}}),Xt=(0,ve.Z)(Jt,2),Hn=Xt[0],Rn=Xt[1],Tt=function(Dn){Rn(Dn.target.value),Lt==null||Lt(Dn)},dn=Oe.useRef();Oe.useImperativeHandle(Zt,function(){return{textArea:dn.current}});var cr=Oe.useMemo(function(){return pe&&(0,Ve.Z)(pe)==="object"?[pe.minRows,pe.maxRows]:[]},[pe]),Mr=(0,ve.Z)(cr,2),at=Mr[0],Ht=Mr[1],Fn=!!pe,er=function(){try{if(document.activeElement===dn.current){var Dn=dn.current,lr=Dn.selectionStart,qn=Dn.selectionEnd,pr=Dn.scrollTop;dn.current.setSelectionRange(lr,qn),dn.current.scrollTop=pr}}catch($n){}},nr=Oe.useState(Ce),Sr=(0,ve.Z)(nr,2),Tr=Sr[0],Er=Sr[1],Or=Oe.useState(),Vr=(0,ve.Z)(Or,2),ur=Vr[0],si=Vr[1],Li=function(){Er(or)};Je(function(){Fn&&Li()},[le,at,Ht,Fn]),Je(function(){if(Tr===or)Er(Qe);else if(Tr===Qe){var An=sn(dn.current,!1,at,Ht);Er(Ce),si(An)}else er()},[Tr]);var Bi=Oe.useRef(),Hi=function(){kt.cancel(Bi.current)},ri=function(Dn){Tr===Ce&&(he==null||he(Dn),pe&&(Hi(),Bi.current=kt(function(){Li()})))};Oe.useEffect(function(){return Hi},[]);var yt=Fn?ur:null,Mn=(0,He.Z)((0,He.Z)({},Te),yt);return(Tr===or||Tr===Qe)&&(Mn.overflowY="hidden",Mn.overflowX="hidden"),Oe.createElement(ct.Z,{onResize:ri,disabled:!(pe||he)},Oe.createElement("textarea",(0,de.Z)({},Ft,{ref:dn,style:Mn,className:me()(ln,oe,(0,Be.Z)({},"".concat(ln,"-disabled"),Ye)),disabled:Ye,value:Hn,onChange:Tt})))}),Ut=ht,Yt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ge($t,Zt){return(0,Ee.Z)($t||"").slice(0,Zt).join("")}function rt($t,Zt,yn,ln){var Ae=yn;return $t?Ae=Ge(yn,ln):(0,Ee.Z)(Zt||"").lengthln&&(Ae=Zt),Ae}var jt=Oe.forwardRef(function($t,Zt){var yn,ln=$t.defaultValue,Ae=$t.value,ue=$t.onFocus,le=$t.onBlur,pe=$t.onChange,he=$t.allowClear,oe=$t.maxLength,Te=$t.onCompositionStart,Ye=$t.onCompositionEnd,Lt=$t.suffix,Rt=$t.prefixCls,Ft=Rt===void 0?"rc-textarea":Rt,Jt=$t.classes,Xt=$t.showCount,Hn=$t.className,Rn=$t.style,Tt=$t.disabled,dn=$t.hidden,cr=$t.classNames,Mr=$t.styles,at=$t.onResize,Ht=(0,we.Z)($t,Yt),Fn=tt(ln,{value:Ae,defaultValue:ln}),er=(0,ve.Z)(Fn,2),nr=er[0],Sr=er[1],Tr=(0,Oe.useRef)(null),Er=Oe.useState(!1),Or=(0,ve.Z)(Er,2),Vr=Or[0],ur=Or[1],si=Oe.useState(!1),Li=(0,ve.Z)(si,2),Bi=Li[0],Hi=Li[1],ri=Oe.useRef(),yt=Oe.useRef(0),Mn=Oe.useState(null),An=(0,ve.Z)(Mn,2),Dn=An[0],lr=An[1],qn=function(){var dr;(dr=Tr.current)===null||dr===void 0||dr.textArea.focus()};(0,Oe.useImperativeHandle)(Zt,function(){return{resizableTextArea:Tr.current,focus:qn,blur:function(){var dr;(dr=Tr.current)===null||dr===void 0||dr.textArea.blur()}}}),(0,Oe.useEffect)(function(){ur(function(tr){return!Tt&&tr})},[Tt]);var pr=Number(oe)>0,$n=function(dr){Hi(!0),ri.current=nr,yt.current=dr.currentTarget.selectionStart,Te==null||Te(dr)},qe=function(dr){Hi(!1);var fr=dr.currentTarget.value;if(pr){var mt,st=yt.current>=oe+1||yt.current===((mt=ri.current)===null||mt===void 0?void 0:mt.length);fr=rt(st,ri.current,fr,oe)}fr!==nr&&(Sr(fr),(0,ot.rJ)(dr.currentTarget,dr,pe,fr)),Ye==null||Ye(dr)},ut=function(dr){var fr=dr.target.value;if(!Bi&&pr){var mt=dr.target.selectionStart>=oe+1||dr.target.selectionStart===fr.length||!dr.target.selectionStart;fr=rt(mt,nr,fr,oe)}Sr(fr),(0,ot.rJ)(dr.currentTarget,dr,pe,fr)},Dt=function(dr){var fr=Ht.onPressEnter,mt=Ht.onKeyDown;dr.key==="Enter"&&fr&&fr(dr),mt==null||mt(dr)},Vt=function(dr){ur(!0),ue==null||ue(dr)},We=function(dr){ur(!1),le==null||le(dr)},pt=function(dr){var fr;Sr(""),qn(),(0,ot.rJ)((fr=Tr.current)===null||fr===void 0?void 0:fr.textArea,dr,pe)},zt=(0,ot.D7)(nr);!Bi&&pr&&Ae==null&&(zt=Ge(zt,oe));var Bt=Lt,en;if(Xt){var nn=(0,Ee.Z)(zt).length;(0,Ve.Z)(Xt)==="object"?en=Xt.formatter({value:zt,count:nn,maxLength:oe}):en="".concat(nn).concat(pr?" / ".concat(oe):""),Bt=Oe.createElement(Oe.Fragment,null,Bt,Oe.createElement("span",{className:me()("".concat(Ft,"-data-count"),cr==null?void 0:cr.count),style:Mr==null?void 0:Mr.count},en))}var jn=function(dr){var fr;at==null||at(dr),(fr=Tr.current)!==null&&fr!==void 0&&fr.textArea.style.height&&lr(!0)},Lr=!Ht.autoSize&&!Xt&&!he,rr=Oe.createElement(Ie.BaseInput,{value:zt,allowClear:he,handleReset:pt,suffix:Bt,prefixCls:Ft,classes:{affixWrapper:me()(Jt==null?void 0:Jt.affixWrapper,(yn={},(0,Be.Z)(yn,"".concat(Ft,"-show-count"),Xt),(0,Be.Z)(yn,"".concat(Ft,"-textarea-allow-clear"),he),yn))},disabled:Tt,focused:Vr,className:Hn,style:(0,He.Z)((0,He.Z)({},Rn),Dn&&!Lr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof en=="string"?en:void 0}},hidden:dn,inputElement:Oe.createElement(Ut,(0,de.Z)({},Ht,{onKeyDown:Dt,onChange:ut,onFocus:Vt,onBlur:We,onCompositionStart:$n,onCompositionEnd:qe,className:cr==null?void 0:cr.textarea,style:(0,He.Z)((0,He.Z)({},Mr==null?void 0:Mr.textarea),{},{resize:Rn==null?void 0:Rn.resize}),disabled:Tt,prefixCls:Ft,onResize:jn,ref:Tr}))});return rr}),_n=jt,rn=_n},1337:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return xe}});var de=se(1413),He=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,Be=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ve="".concat(He," ").concat(Be).split(/[\s\n]+/),ve="aria-",we="data-";function Ee(me,Ie){return me.indexOf(Ie)===0}function xe(me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot;Ie===!1?ot={aria:!0,data:!0,attr:!0}:Ie===!0?ot={aria:!0}:ot=(0,de.Z)({},Ie);var Oe={};return Object.keys(me).forEach(function(St){(ot.aria&&(St==="role"||Ee(St,ve))||ot.data&&Ee(St,we)||ot.attr&&Ve.includes(St))&&(Oe[St]=me[St])}),Oe}},88386:function(En,Wt,se){(function(de){de(se(4631))})(function(de){de.defineOption("placeholder","",function(xe,me,Ie){var ot=Ie&&Ie!=de.Init;if(me&&!ot)xe.on("blur",ve),xe.on("change",we),xe.on("swapDoc",we),de.on(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose=function(){Ve(xe)}),we(xe);else if(!me&&ot){xe.off("blur",ve),xe.off("change",we),xe.off("swapDoc",we),de.off(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose),He(xe);var Oe=xe.getWrapperElement();Oe.className=Oe.className.replace(" CodeMirror-empty","")}me&&!xe.hasFocus()&&ve(xe)});function He(xe){xe.state.placeholder&&(xe.state.placeholder.parentNode.removeChild(xe.state.placeholder),xe.state.placeholder=null)}function Be(xe){He(xe);var me=xe.state.placeholder=document.createElement("pre");me.style.cssText="height: 0; overflow: visible",me.style.direction=xe.getOption("direction"),me.className="CodeMirror-placeholder CodeMirror-line-like";var Ie=xe.getOption("placeholder");typeof Ie=="string"&&(Ie=document.createTextNode(Ie)),me.appendChild(Ie),xe.display.lineSpace.insertBefore(me,xe.display.lineSpace.firstChild)}function Ve(xe){setTimeout(function(){var me=!1,Ie=xe.getInputField();Ie.nodeName=="TEXTAREA"?me=!Ie.value:xe.lineCount()==1&&(me=!/[^\u200b]/.test(Ie.querySelector(".CodeMirror-line").textContent)),me?Be(xe):He(xe)},20)}function ve(xe){Ee(xe)&&Be(xe)}function we(xe){var me=xe.getWrapperElement(),Ie=Ee(xe);me.className=me.className.replace(" CodeMirror-empty","")+(Ie?" CodeMirror-empty":""),Ie?Be(xe):He(xe)}function Ee(xe){return xe.lineCount()===1&&xe.getLine(0)===""}})},82801:function(En,Wt,se){(function(de){de(se(4631))})(function(de){var He={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Be=de.Pos;de.defineOption("autoCloseBrackets",!1,function(it,Je,Le){Le&&Le!=de.Init&&(it.removeKeyMap(ve),it.state.closeBrackets=null),Je&&(we(Ve(Je,"pairs")),it.state.closeBrackets=Je,it.addKeyMap(ve))});function Ve(it,Je){return Je=="pairs"&&typeof it=="string"?it:typeof it=="object"&&it[Je]!=null?it[Je]:He[Je]}var ve={Backspace:me,Enter:Ie};function we(it){for(var Je=0;Je=0;qt--){var ct=gt[qt].head;it.replaceRange("",Be(ct.line,ct.ch-1),Be(ct.line,ct.ch+1),"+delete")}}function Ie(it){var Je=xe(it),Le=Je&&Ve(Je,"explode");if(!Le||it.getOption("disableInput"))return de.Pass;for(var gt=it.listSelections(),qt=0;qt0;return{anchor:new Be(it.anchor.line,it.anchor.ch+(Je?-1:1)),head:new Be(it.head.line,it.head.ch+(Je?1:-1))}}function Oe(it,Je){var Le=xe(it);if(!Le||it.getOption("disableInput"))return de.Pass;var gt=Ve(Le,"pairs"),qt=gt.indexOf(Je);if(qt==-1)return de.Pass;for(var tt=Ve(Le,"closeBefore"),ct=Ve(Le,"triples"),ke=gt.charAt(qt+1)==Je,Se=it.listSelections(),Ue=qt%2==0,je,_t=0;_t=0&&it.getRange(kt,Be(kt.line,kt.ch+3))==Je+Je+Je?Xe="skipThree":Xe="skip";else if(ke&&kt.ch>1&&ct.indexOf(Je)>=0&&it.getRange(Be(kt.line,kt.ch-2),kt)==Je+Je){if(kt.ch>2&&/\bstring/.test(it.getTokenTypeAt(Be(kt.line,kt.ch-2))))return de.Pass;Xe="addFour"}else if(ke){var Ot=kt.ch==0?" ":it.getRange(Be(kt.line,kt.ch-1),kt);if(!de.isWordChar(Kt)&&Ot!=Je&&!de.isWordChar(Ot))Xe="both";else return de.Pass}else if(Ue&&(Kt.length===0||/\s/.test(Kt)||tt.indexOf(Kt)>-1))Xe="both";else return de.Pass;if(!je)je=Xe;else if(je!=Xe)return de.Pass}var bn=qt%2?gt.charAt(qt-1):Je,Nt=qt%2?Je:gt.charAt(qt+1);it.operation(function(){if(je=="skip")it.execCommand("goCharRight");else if(je=="skipThree")for(var sn=0;sn<3;sn++)it.execCommand("goCharRight");else if(je=="surround"){for(var Cn=it.getSelections(),sn=0;sn'"]=function(St){return Ve(St)}),me.addKeyMap(Oe)}});var He=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Be=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Ve(me){if(me.getOption("disableInput"))return de.Pass;for(var Ie=me.listSelections(),ot=[],Oe=me.getOption("autoCloseTags"),St=0;Stft.ch&&(qt=qt.slice(0,qt.length-it.end+ft.ch));var Se=qt.toLowerCase();if(!qt||it.type=="string"&&(it.end!=ft.ch||!/[\"\']/.test(it.string.charAt(it.string.length-1))||it.string.length==1)||it.type=="tag"&>.close||it.string.indexOf("/")==ft.ch-it.start-1||ct&&Ee(ct,Se)>-1||xe(me,Je.mode.xmlCurrentContext&&Je.mode.xmlCurrentContext(Le)||[],qt,ft,!0))return de.Pass;var Ue=typeof Oe=="object"&&Oe.emptyTags;if(Ue&&Ee(Ue,qt)>-1){ot[St]={text:"/>",newPos:de.Pos(ft.line,ft.ch+2)};continue}var je=ke&&Ee(ke,Se)>-1;ot[St]={indent:je,text:">"+(je?` `:"")+"",newPos:je?de.Pos(ft.line+1,0):de.Pos(ft.line,ft.ch+1)}}for(var _t=typeof Oe=="object"&&Oe.dontIndentOnAutoClose,St=Ie.length-1;St>=0;St--){var vt=ot[St];me.replaceRange(vt.text,Ie[St].head,Ie[St].anchor,"+insert");var kt=me.listSelections().slice(0);kt[St]={head:vt.newPos,anchor:vt.newPos},me.setSelections(kt),!_t&&vt.indent&&(me.indentLine(vt.newPos.line,null,!0),me.indentLine(vt.newPos.line+1,null,!0))}}function ve(me,Ie){for(var ot=me.listSelections(),Oe=[],St=Ie?"/":""&&(ct+=">"),Oe[Je]=ct}if(me.replaceSelections(Oe),ot=me.listSelections(),!it)for(var Je=0;Je=0&&Ie[Le]==ot;Le--)++Je;Oe=it.to;for(var Le=1;Le=Le.max))return Le.ch=0,Le.text=Le.cm.getLine(++Le.line),!0}function Ie(Le){if(!(Le.line<=Le.min))return Le.text=Le.cm.getLine(--Le.line),Le.ch=Le.text.length,!0}function ot(Le){for(;;){var gt=Le.text.indexOf(">",Le.ch);if(gt==-1){if(me(Le))continue;return}if(!xe(Le,gt+1)){Le.ch=gt+1;continue}var qt=Le.text.lastIndexOf("/",gt),tt=qt>-1&&!/\S/.test(Le.text.slice(qt+1,gt));return Le.ch=gt+1,tt?"selfClose":"regular"}}function Oe(Le){for(;;){var gt=Le.ch?Le.text.lastIndexOf("<",Le.ch-1):-1;if(gt==-1){if(Ie(Le))continue;return}if(!xe(Le,gt+1)){Le.ch=gt;continue}we.lastIndex=gt,Le.ch=gt;var qt=we.exec(Le.text);if(qt&&qt.index==gt)return qt}}function St(Le){for(;;){we.lastIndex=Le.ch;var gt=we.exec(Le.text);if(!gt){if(me(Le))continue;return}if(!xe(Le,gt.index+1)){Le.ch=gt.index+1;continue}return Le.ch=gt.index+gt[0].length,gt}}function ft(Le){for(;;){var gt=Le.ch?Le.text.lastIndexOf(">",Le.ch-1):-1;if(gt==-1){if(Ie(Le))continue;return}if(!xe(Le,gt+1)){Le.ch=gt;continue}var qt=Le.text.lastIndexOf("/",gt),tt=qt>-1&&!/\S/.test(Le.text.slice(qt+1,gt));return Le.ch=gt+1,tt?"selfClose":"regular"}}function it(Le,gt){for(var qt=[];;){var tt=St(Le),ct,ke=Le.line,Se=Le.ch-(tt?tt[0].length:0);if(!tt||!(ct=ot(Le)))return;if(ct!="selfClose")if(tt[1]){for(var Ue=qt.length-1;Ue>=0;--Ue)if(qt[Ue]==tt[2]){qt.length=Ue;break}if(Ue<0&&(!gt||gt==tt[2]))return{tag:tt[2],from:He(ke,Se),to:He(Le.line,Le.ch)}}else qt.push(tt[2])}}function Je(Le,gt){for(var qt=[];;){var tt=ft(Le);if(!tt)return;if(tt=="selfClose"){Oe(Le);continue}var ct=Le.line,ke=Le.ch,Se=Oe(Le);if(!Se)return;if(Se[1])qt.push(Se[2]);else{for(var Ue=qt.length-1;Ue>=0;--Ue)if(qt[Ue]==Se[2]){qt.length=Ue;break}if(Ue<0&&(!gt||gt==Se[2]))return{tag:Se[2],from:He(Le.line,Le.ch),to:He(ct,ke)}}}}de.registerHelper("fold","xml",function(Le,gt){for(var qt=new Ee(Le,gt.line,0);;){var tt=St(qt);if(!tt||qt.line!=gt.line)return;var ct=ot(qt);if(!ct)return;if(!tt[1]&&ct!="selfClose"){var ke=He(qt.line,qt.ch),Se=it(qt,tt[2]);return Se&&Be(Se.from,ke)>0?{from:ke,to:Se.from}:null}}}),de.findMatchingTag=function(Le,gt,qt){var tt=new Ee(Le,gt.line,gt.ch,qt);if(!(tt.text.indexOf(">")==-1&&tt.text.indexOf("<")==-1)){var ct=ot(tt),ke=ct&&He(tt.line,tt.ch),Se=ct&&Oe(tt);if(!(!ct||!Se||Be(tt,gt)>0)){var Ue={from:He(tt.line,tt.ch),to:ke,tag:Se[2]};return ct=="selfClose"?{open:Ue,close:null,at:"open"}:Se[1]?{open:Je(tt,Se[2]),close:Ue,at:"close"}:(tt=new Ee(Le,ke.line,ke.ch,qt),{open:Ue,close:it(tt,Se[2]),at:"open"})}}},de.findEnclosingTag=function(Le,gt,qt,tt){for(var ct=new Ee(Le,gt.line,gt.ch,qt);;){var ke=Je(ct,tt);if(!ke)break;var Se=new Ee(Le,gt.line,gt.ch,qt),Ue=it(Se,ke.tag);if(Ue)return{open:ke,close:Ue}}},de.scanForClosingTag=function(Le,gt,qt,tt){var ct=new Ee(Le,gt.line,gt.ch,tt?{from:0,to:tt}:null);return it(ct,qt)}})},4631:function(En){(function(Wt,se){En.exports=se()})(this,function(){"use strict";var Wt=navigator.userAgent,se=navigator.platform,de=/gecko\/\d/i.test(Wt),He=/MSIE \d/.test(Wt),Be=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Wt),Ve=/Edge\/(\d+)/.exec(Wt),ve=He||Be||Ve,we=ve&&(He?document.documentMode||6:+(Ve||Be)[1]),Ee=!Ve&&/WebKit\//.test(Wt),xe=Ee&&/Qt\/\d+\.\d+/.test(Wt),me=!Ve&&/Chrome\//.test(Wt),Ie=/Opera\//.test(Wt),ot=/Apple Computer/.test(navigator.vendor),Oe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Wt),St=/PhantomJS/.test(Wt),ft=!Ve&&/AppleWebKit/.test(Wt)&&/Mobile\/\w+/.test(Wt),it=/Android/.test(Wt),Je=ft||it||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Wt),Le=ft||/Mac/.test(se),gt=/\bCrOS\b/.test(Wt),qt=/win/i.test(se),tt=Ie&&Wt.match(/Version\/(\d*\.\d*)/);tt&&(tt=Number(tt[1])),tt&&tt>=15&&(Ie=!1,Ee=!0);var ct=Le&&(xe||Ie&&(tt==null||tt<12.11)),ke=de||ve&&we>=9;function Se(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Ue=function(x,z){var ne=x.className,te=Se(z).exec(ne);if(te){var ie=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ie?te[1]+ie:"")}};function je(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function _t(x,z){return je(x).appendChild(z)}function vt(x,z,ne,te){var ie=document.createElement(x);if(ne&&(ie.className=ne),te&&(ie.style.cssText=te),typeof z=="string")ie.appendChild(document.createTextNode(z));else if(z)for(var ce=0;ce=z)return ye+(z-ce);ye+=_e-ce,ye+=ne-ye%ne,ce=_e+1}}var Ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Cn(this.onTimeout,this)};Ce.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Ce.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne=z)return te+Math.min(ye,z-ie);if(ie+=ce-te,ie+=ne-ie%ne,te=ce+1,ie>=z)return te}}var rn=[""];function $t(x){for(;rn.length<=x;)rn.push(Zt(rn)+" ");return rn[x]}function Zt(x){return x[x.length-1]}function yn(x,z){for(var ne=[],te=0;te"\x80"&&(x.toUpperCase()!=x.toLowerCase()||le.test(x))}function he(x,z){return z?z.source.indexOf("\\w")>-1&&pe(x)?!0:z.test(x):pe(x)}function oe(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Te=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ye(x){return x.charCodeAt(0)>=768&&Te.test(x)}function Lt(x,z,ne){for(;(ne<0?z>0:zne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,ce=te<0?Math.ceil(ie):Math.floor(ie);if(ce==z)return x(ce)?z:ne;x(ce)?ne=ce:z=ce+te}}function Ft(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,ce=0;cez||z==ne&&ye.to==z)&&(te(Math.max(ye.from,z),Math.min(ye.to,ne),ye.level==1?"rtl":"ltr",ce),ie=!0)}ie||te(z,ne,"ltr")}var Jt=null;function Xt(x,z,ne){var te;Jt=null;for(var ie=0;iez)return ie;ce.to==z&&(ce.from!=ce.to&&ne=="before"?te=ie:Jt=ie),ce.from==z&&(ce.from!=ce.to&&ne!="before"?te=ie:Jt=ie)}return te!=null?te:Jt}var Hn=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne($e){return $e<=247?x.charAt($e):1424<=$e&&$e<=1524?"R":1536<=$e&&$e<=1785?z.charAt($e-1536):1774<=$e&&$e<=2220?"r":8192<=$e&&$e<=8203?"w":$e==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,ce=/[LRr]/,ye=/[Lb1n]/,_e=/[1n]/;function Pe($e,bt,Pt){this.level=$e,this.from=bt,this.to=Pt}return function($e,bt){var Pt=bt=="ltr"?"L":"R";if($e.length==0||bt=="ltr"&&!te.test($e))return!1;for(var gn=$e.length,on=[],Qn=0;Qn-1&&(te[z]=ie.slice(0,ce).concat(ie.slice(ce+1)))}}}function at(x,z){var ne=cr(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie0}function nr(x){x.prototype.on=function(z,ne){dn(this,z,ne)},x.prototype.off=function(z,ne){Mr(this,z,ne)}}function Sr(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Tr(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function Er(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function Or(x){Sr(x),Tr(x)}function Vr(x){return x.target||x.srcElement}function ur(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),Le&&x.ctrlKey&&z==1&&(z=3),z}var si=function(){if(ve&&we<9)return!1;var x=vt("div");return"draggable"in x||"dragDrop"in x}(),Li;function Bi(x){if(Li==null){var z=vt("span","\u200B");_t(x,vt("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(Li=z.offsetWidth<=1&&z.offsetHeight>2&&!(ve&&we<8))}var ne=Li?vt("span","\u200B"):vt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var Hi;function ri(x){if(Hi!=null)return Hi;var z=_t(x,document.createTextNode("A\u062EA")),ne=Xe(z,0,1).getBoundingClientRect(),te=Xe(z,1,2).getBoundingClientRect();return je(x),!ne||ne.left==ne.right?!1:Hi=te.right-ne.right<3}var yt=` b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ie=x.indexOf(` `,z);ie==-1&&(ie=x.length);var ce=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),ye=ce.indexOf("\r");ye!=-1?(ne.push(ce.slice(0,ye)),z+=ye+1):(ne.push(ce),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},Mn=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},An=function(){var x=vt("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),Dn=null;function lr(x){if(Dn!=null)return Dn;var z=_t(x,vt("span","x")),ne=z.getBoundingClientRect(),te=Xe(z,0,1).getBoundingClientRect();return Dn=Math.abs(ne.left-te.left)>1}var qn={},pr={};function $n(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),qn[x]=z}function qe(x,z){pr[x]=z}function ut(x){if(typeof x=="string"&&pr.hasOwnProperty(x))x=pr[x];else if(x&&typeof x.name=="string"&&pr.hasOwnProperty(x.name)){var z=pr[x.name];typeof z=="string"&&(z={name:z}),x=ue(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return ut("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return ut("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Dt(x,z){z=ut(z);var ne=qn[z.name];if(!ne)return Dt(x,"text/plain");var te=ne(x,z);if(Vt.hasOwnProperty(z.name)){var ie=Vt[z.name];for(var ce in ie)ie.hasOwnProperty(ce)&&(te.hasOwnProperty(ce)&&(te["_"+ce]=te[ce]),te[ce]=ie[ce])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var ye in z.modeProps)te[ye]=z.modeProps[ye];return te}var Vt={};function We(x,z){var ne=Vt.hasOwnProperty(x)?Vt[x]:Vt[x]={};or(z,ne)}function pt(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ie=z[te];ie instanceof Array&&(ie=ie.concat([])),ne[te]=ie}return ne}function zt(x,z){for(var ne;x.innerMode&&(ne=x.innerMode(z),!(!ne||ne.mode==x));)z=ne.state,x=ne.mode;return ne||{mode:x,state:z}}function Bt(x,z,ne){return x.startState?x.startState(z,ne):!0}var en=function(x,z,ne){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};en.prototype.eol=function(){return this.pos>=this.string.length},en.prototype.sol=function(){return this.pos==this.lineStart},en.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},en.prototype.next=function(){if(this.posz},en.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},en.prototype.skipToEnd=function(){this.pos=this.string.length},en.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},en.prototype.backUp=function(x){this.pos-=x},en.prototype.column=function(){return this.lastColumnPos0?null:(ce&&z!==!1&&(this.pos+=ce[0].length),ce)}},en.prototype.current=function(){return this.string.slice(this.start,this.pos)},en.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},en.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},en.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function nn(x,z){if(z-=x.first,z<0||z>=x.size)throw new Error("There is no line "+(z+x.first)+" in the document.");for(var ne=x;!ne.lines;)for(var te=0;;++te){var ie=ne.children[te],ce=ie.chunkSize();if(z=x.first&&zne?st(ne,nn(x,ne).text.length):hr(z,nn(x,z.line).text.length)}function hr(x,z){var ne=x.ch;return ne==null||ne>z?st(x.line,z):ne<0?st(x.line,0):x}function tn(x,z){for(var ne=[],te=0;tethis.maxLookAhead&&(this.maxLookAhead=x),z},Ur.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var z=this.baseTokens[this.baseTokenPos+1];return{type:z&&z.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}},Ur.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ur.fromSaved=function(x,z,ne){return z instanceof Qr?new Ur(x,pt(x.mode,z.state),ne,z.lookAhead):new Ur(x,pt(x.mode,z),ne)},Ur.prototype.save=function(x){var z=x!==!1?pt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Qr(z,this.maxLookAhead):z};function $i(x,z,ne,te){var ie=[x.state.modeGen],ce={};vi(x,z.text,x.doc.mode,ne,function($e,bt){return ie.push($e,bt)},ce,te);for(var ye=ne.state,_e=function($e){ne.baseTokens=ie;var bt=x.state.overlays[$e],Pt=1,gn=0;ne.state=!0,vi(x,z.text,bt.mode,ne,function(on,Qn){for(var yr=Pt;gnon&&ie.splice(Pt,1,on,ie[Pt+1],$r),Pt+=2,gn=Math.min(on,$r)}if(Qn)if(bt.opaque)ie.splice(yr,Pt-yr,on,"overlay "+Qn),Pt=yr+2;else for(;yrx.options.maxHighlightLength&&pt(x.doc.mode,te.state),ce=$i(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=ce.styles,ce.classes?z.styleClasses=ce.classes:z.styleClasses&&(z.styleClasses=null),ne===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function gi(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new Ur(te,!0,z);var ce=Zi(x,z,ne),ye=ce>te.first&&nn(te,ce-1).stateAfter,_e=ye?Ur.fromSaved(te,ye,ce):new Ur(te,Bt(te.mode),ce);return te.iter(ce,z,function(Pe){qi(x,Pe.text,_e);var $e=_e.line;Pe.stateAfter=$e==z-1||$e%5==0||$e>=ie.viewFrom&&$ez.start)return ce}throw new Error("Mode "+x.name+" failed to advance stream.")}var Ni=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function Gi(x,z,ne,te){var ie=x.doc,ce=ie.mode,ye;z=Nn(ie,z);var _e=nn(ie,z.line),Pe=gi(x,z.line,ne),$e=new en(_e.text,x.options.tabSize,Pe),bt;for(te&&(bt=[]);(te||$e.posx.options.maxHighlightLength?(_e=!1,ye&&qi(x,z,te,bt.pos),bt.pos=z.length,Pt=null):Pt=qr(li(ne,bt,te.state,gn),ce),gn){var on=gn[0].name;on&&(Pt="m-"+(Pt?on+" "+Pt:on))}if(!_e||$e!=Pt){for(;Peye;--_e){if(_e<=ce.first)return ce.first;var Pe=nn(ce,_e-1),$e=Pe.stateAfter;if($e&&(!ne||_e+($e instanceof Qr?$e.lookAhead:0)<=ce.modeFrontier))return _e;var bt=Qe(Pe.text,null,x.options.tabSize);(ie==null||te>bt)&&(ie=_e-1,te=bt)}return ie}function la(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontierne;te--){var ie=nn(x,te).stateAfter;if(ie&&(!(ie instanceof Qr)||te+ie.lookAhead=z:ce.to>z);(te||(te=[])).push(new Qt(ye,ce.from,Pe?null:ce.to))}}return te}function Wr(x,z,ne){var te;if(x)for(var ie=0;ie=z:ce.to>z);if(_e||ce.from==z&&ye.type=="bookmark"&&(!ne||ce.marker.insertLeft)){var Pe=ce.from==null||(ye.inclusiveLeft?ce.from<=z:ce.from0&&_e)for(var oi=0;oi<_e.length;++oi)_e[oi].to==null&&(Zr||(Zr=[])).push(new Qt(_e[oi].marker,null,null));for(var Ki=0;Ki0)){var bt=[Pe,1],Pt=Ct($e.from,_e.from),gn=Ct($e.to,_e.to);(Pt<0||!ye.inclusiveLeft&&!Pt)&&bt.push({from:$e.from,to:_e.from}),(gn>0||!ye.inclusiveRight&&!gn)&&bt.push({from:_e.to,to:$e.to}),ie.splice.apply(ie,bt),Pe+=bt.length-3}}return ie}function yi(x){var z=x.markedSpans;if(z){for(var ne=0;nez)&&(!te||Ei(te,ce.marker)<0)&&(te=ce.marker)}return te}function nt(x,z,ne,te,ie){var ce=nn(x,z),ye=ii&&ce.markedSpans;if(ye)for(var _e=0;_e=0&&Pt<=0||bt<=0&&Pt>=0)&&(bt<=0&&(Pe.marker.inclusiveRight&&ie.inclusiveLeft?Ct($e.to,ne)>=0:Ct($e.to,ne)>0)||bt>=0&&(Pe.marker.inclusiveRight&&ie.inclusiveLeft?Ct($e.from,te)<=0:Ct($e.from,te)<0)))return!0}}}function lt(x){for(var z;z=Fe(x);)x=z.find(-1,!0).line;return x}function Mt(x){for(var z;z=ze(x);)x=z.find(1,!0).line;return x}function an(x){for(var z,ne;z=ze(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function un(x,z){var ne=nn(x,z),te=lt(ne);return ne==te?z:tr(te)}function Jn(x,z){if(z>x.lastLine())return z;var ne=nn(x,z),te;if(!br(x,ne))return z;for(;te=ze(ne);)ne=te.find(1,!0).line;return tr(ne)+1}function br(x,z){var ne=ii&&z.markedSpans;if(ne){for(var te=void 0,ie=0;iez.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var zn=function(x,z,ne){this.text=x,Ar(this,z),this.height=ne?ne(this):1};zn.prototype.lineNo=function(){return tr(this)},nr(zn);function gr(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),yi(x),Ar(x,ne);var ie=te?te(x):1;ie!=x.height&&rr(x,ie)}function Yn(x){x.parent=null,yi(x)}var Xn={},ir={};function ar(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?ir:Xn;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function xr(x,z){var ne=kt("span",null,null,Ee?"padding-right: .1px":null),te={pre:kt("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ie=0;ie<=(z.rest?z.rest.length:0);ie++){var ce=ie?z.rest[ie-1]:z.line,ye=void 0;te.pos=0,te.addToken=Ke,ri(x.display.measure)&&(ye=Rn(ce,x.doc.direction))&&(te.addToken=dt(te.addToken,ye)),te.map=[];var _e=z!=x.display.externalMeasured&&tr(ce);pn(ce,te,Ai(x,ce,_e)),ce.styleClasses&&(ce.styleClasses.bgClass&&(te.bgClass=Nt(ce.styleClasses.bgClass,te.bgClass||"")),ce.styleClasses.textClass&&(te.textClass=Nt(ce.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(Bi(x.display.measure))),ie==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(Ee){var Pe=te.content.lastChild;(/\bcm-tab\b/.test(Pe.className)||Pe.querySelector&&Pe.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return at(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=Nt(te.pre.className,te.textClass||"")),te}function Re(x){var z=vt("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function Ke(x,z,ne,te,ie,ce,ye){if(z){var _e=x.splitSpaces?At(z,x.trailingSpace):z,Pe=x.cm.state.specialChars,$e=!1,bt;if(!Pe.test(z))x.col+=z.length,bt=document.createTextNode(_e),x.map.push(x.pos,x.pos+z.length,bt),ve&&we<9&&($e=!0),x.pos+=z.length;else{bt=document.createDocumentFragment();for(var Pt=0;;){Pe.lastIndex=Pt;var gn=Pe.exec(z),on=gn?gn.index-Pt:z.length-Pt;if(on){var Qn=document.createTextNode(_e.slice(Pt,Pt+on));ve&&we<9?bt.appendChild(vt("span",[Qn])):bt.appendChild(Qn),x.map.push(x.pos,x.pos+on,Qn),x.col+=on,x.pos+=on}if(!gn)break;Pt+=on+1;var yr=void 0;if(gn[0]==" "){var $r=x.cm.options.tabSize,Xr=$r-x.col%$r;yr=bt.appendChild(vt("span",$t(Xr),"cm-tab")),yr.setAttribute("role","presentation"),yr.setAttribute("cm-text"," "),x.col+=Xr}else gn[0]=="\r"||gn[0]==` `?(yr=bt.appendChild(vt("span",gn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),yr.setAttribute("cm-text",gn[0]),x.col+=1):(yr=x.cm.options.specialCharPlaceholder(gn[0]),yr.setAttribute("cm-text",gn[0]),ve&&we<9?bt.appendChild(vt("span",[yr])):bt.appendChild(yr),x.col+=1);x.map.push(x.pos,x.pos+1,yr),x.pos++}}if(x.trailingSpace=_e.charCodeAt(z.length-1)==32,ne||te||ie||$e||ce||ye){var ai=ne||"";te&&(ai+=te),ie&&(ai+=ie);var Zr=vt("span",[bt],ai,ce);if(ye)for(var oi in ye)ye.hasOwnProperty(oi)&&oi!="style"&&oi!="class"&&Zr.setAttribute(oi,ye[oi]);return x.content.appendChild(Zr)}x.content.appendChild(bt)}}function At(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ie$e&&Pt.from<=$e));gn++);if(Pt.to>=bt)return x(ne,te,ie,ce,ye,_e,Pe);x(ne,te.slice(0,Pt.to-$e),ie,ce,null,_e,Pe),ce=null,te=te.slice(Pt.to-$e),$e=Pt.to}}}function Gt(x,z,ne,te){var ie=!te&&ne.widgetNode;ie&&x.map.push(x.pos,x.pos+z,ie),!te&&x.cm.display.input.needsContentAttribute&&(ie||(ie=x.content.appendChild(document.createElement("span"))),ie.setAttribute("cm-marker",ne.id)),ie&&(x.cm.display.input.setUneditable(ie),x.content.appendChild(ie)),x.pos+=z,x.trailingSpace=!1}function pn(x,z,ne){var te=x.markedSpans,ie=x.text,ce=0;if(!te){for(var ye=1;yePe||ba.collapsed&&ji.to==Pe&&ji.from==Pe)){if(ji.to!=null&&ji.to!=Pe&&on>ji.to&&(on=ji.to,yr=""),ba.className&&(Qn+=" "+ba.className),ba.css&&(gn=(gn?gn+";":"")+ba.css),ba.startStyle&&ji.from==Pe&&($r+=" "+ba.startStyle),ba.endStyle&&ji.to==on&&(oi||(oi=[])).push(ba.endStyle,ji.to),ba.title&&((ai||(ai={})).title=ba.title),ba.attributes)for(var to in ba.attributes)(ai||(ai={}))[to]=ba.attributes[to];ba.collapsed&&(!Xr||Ei(Xr.marker,ba)<0)&&(Xr=ji)}else ji.from>Pe&&on>ji.from&&(on=ji.from)}if(oi)for(var Wo=0;Wo=_e)break;for(var us=Math.min(_e,on);;){if(bt){var ds=Pe+bt.length;if(!Xr){var Do=ds>us?bt.slice(0,us-Pe):bt;z.addToken(z,Do,Pt?Pt+Qn:Qn,$r,Pe+Do.length==on?yr:"",gn,ai)}if(ds>=us){bt=bt.slice(us-Pe),Pe=us;break}Pe=ds,$r=""}bt=ie.slice(ce,ce=ne[$e++]),Pt=ar(ne[$e++],z.cm.options)}}}function Sn(x,z,ne){this.line=z,this.rest=an(z),this.size=this.rest?tr(Zt(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=br(x,z)}function Kn(x,z,ne){for(var te=[],ie,ce=z;ce2&&ce.push((Pe.bottom+$e.top)/2-ne.top)}}ce.push(ne.bottom-ne.top)}}function $a(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;tene)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function Na(x,z){z=lt(z);var ne=tr(z),te=x.display.externalMeasured=new Sn(x.doc,z,ne);te.lineN=ne;var ie=te.built=xr(x,te);return te.text=ie.pre,_t(x.display.lineMeasure,ie.pre),te}function Aa(x,z,ne,te){return Mi(x,ea(x,z),ne,te)}function ca(x,z){if(z>=x.display.viewFrom&&z=ne.lineN&&zz)&&(ce=Pe-_e,ie=ce-1,z>=Pe&&(ye="right")),ie!=null){if(te=x[$e+2],_e==Pe&&ne==(te.insertLeft?"left":"right")&&(ye=ne),ne=="left"&&ie==0)for(;$e&&x[$e-2]==x[$e-3]&&x[$e-1].insertLeft;)te=x[($e-=3)+2],ye="left";if(ne=="right"&&ie==Pe-_e)for(;$e=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function Wi(x,z,ne,te){var ie=ki(z.map,ne,te),ce=ie.node,ye=ie.start,_e=ie.end,Pe=ie.collapse,$e;if(ce.nodeType==3){for(var bt=0;bt<4;bt++){for(;ye&&Ye(z.line.text.charAt(ie.coverStart+ye));)--ye;for(;ie.coverStart+_e0&&(Pe=te="right");var Pt;x.options.lineWrapping&&(Pt=ce.getClientRects()).length>1?$e=Pt[te=="right"?Pt.length-1:0]:$e=ce.getBoundingClientRect()}if(ve&&we<9&&!ye&&(!$e||!$e.left&&!$e.right)){var gn=ce.parentNode.getClientRects()[0];gn?$e={left:gn.left,right:gn.left+io(x.display),top:gn.top,bottom:gn.bottom}:$e=Oa}for(var on=$e.top-z.rect.top,Qn=$e.bottom-z.rect.top,yr=(on+Qn)/2,$r=z.view.measure.heights,Xr=0;Xr<$r.length-1&&!(yr<$r[Xr]);Xr++);var ai=Xr?$r[Xr-1]:0,Zr=$r[Xr],oi={left:(Pe=="right"?$e.right:$e.left)-z.rect.left,right:(Pe=="left"?$e.left:$e.right)-z.rect.left,top:ai,bottom:Zr};return!$e.left&&!$e.right&&(oi.bogus=!0),x.options.singleCursorHeightPerLine||(oi.rtop=on,oi.rbottom=Qn),oi}function ua(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!lr(x))return z;var ne=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*ne,right:z.right*ne,top:z.top*te,bottom:z.bottom*te}}function Vi(x){if(x.measure&&(x.measure.cache={},x.measure.heights=null,x.rest))for(var z=0;z=te.text.length?(Pe=te.text.length,$e="before"):Pe<=0&&(Pe=0,$e="after"),!_e)return ye($e=="before"?Pe-1:Pe,$e=="before");function bt(Qn,yr,$r){var Xr=_e[yr],ai=Xr.level==1;return ye($r?Qn-1:Qn,ai!=$r)}var Pt=Xt(_e,Pe,$e),gn=Jt,on=bt(Pe,Pt,$e=="before");return gn!=null&&(on.other=bt(Pe,gn,$e!="before")),on}function ka(x,z){var ne=0;z=Nn(x.doc,z),x.options.lineWrapping||(ne=io(x.display)*z.ch);var te=nn(x.doc,z.line),ie=kn(te)+Qi(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function Ja(x,z,ne,te,ie){var ce=st(x,z,ne);return ce.xRel=ie,te&&(ce.outside=te),ce}function Ga(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return Ja(te.first,0,null,-1,-1);var ie=dr(te,ne),ce=te.first+te.size-1;if(ie>ce)return Ja(te.first+te.size-1,nn(te,ce).text.length,null,1,1);z<0&&(z=0);for(var ye=nn(te,ie);;){var _e=_i(x,ye,ie,z,ne),Pe=Ze(ye,_e.ch+(_e.xRel>0||_e.outside>0?1:0));if(!Pe)return _e;var $e=Pe.find(1);if($e.line==ie)return $e;ye=nn(te,ie=$e.line)}}function so(x,z,ne,te){te-=fa(z);var ie=z.text.length,ce=Rt(function(ye){return Mi(x,ne,ye-1).bottom<=te},ie,0);return ie=Rt(function(ye){return Mi(x,ne,ye).top>te},ce,ie),{begin:ce,end:ie}}function Fa(x,z,ne,te){ne||(ne=ea(x,z));var ie=wa(x,z,Mi(x,ne,te),"line").top;return so(x,z,ne,ie)}function Ca(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function _i(x,z,ne,te,ie){ie-=kn(z);var ce=ea(x,z),ye=fa(z),_e=0,Pe=z.text.length,$e=!0,bt=Rn(z,x.doc.direction);if(bt){var Pt=(x.options.lineWrapping?da:Ui)(x,z,ne,ce,bt,te,ie);$e=Pt.level!=1,_e=$e?Pt.from:Pt.to-1,Pe=$e?Pt.to:Pt.from-1}var gn=null,on=null,Qn=Rt(function(Ki){var ji=Mi(x,ce,Ki);return ji.top+=ye,ji.bottom+=ye,Ca(ji,te,ie,!1)?(ji.top<=ie&&ji.left<=te&&(gn=Ki,on=ji),!0):!1},_e,Pe),yr,$r,Xr=!1;if(on){var ai=te-on.left=oi.bottom?1:0}return Qn=Lt(z.text,Qn,1),Ja(ne,Qn,$r,Xr,te-yr)}function Ui(x,z,ne,te,ie,ce,ye){var _e=Rt(function(Pt){var gn=ie[Pt],on=gn.level!=1;return Ca(ha(x,st(ne,on?gn.to:gn.from,on?"before":"after"),"line",z,te),ce,ye,!0)},0,ie.length-1),Pe=ie[_e];if(_e>0){var $e=Pe.level!=1,bt=ha(x,st(ne,$e?Pe.from:Pe.to,$e?"after":"before"),"line",z,te);Ca(bt,ce,ye,!0)&&bt.top>ye&&(Pe=ie[_e-1])}return Pe}function da(x,z,ne,te,ie,ce,ye){var _e=so(x,z,te,ye),Pe=_e.begin,$e=_e.end;/\s/.test(z.text.charAt($e-1))&&$e--;for(var bt=null,Pt=null,gn=0;gn=$e||on.to<=Pe)){var Qn=on.level!=1,yr=Mi(x,te,Qn?Math.min($e,on.to)-1:Math.max(Pe,on.from)).right,$r=yr$r)&&(bt=on,Pt=$r)}}return bt||(bt=ie[ie.length-1]),bt.from$e&&(bt={from:bt.from,to:$e,level:bt.level}),bt}var Sa;function Ka(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(Sa==null){Sa=vt("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Sa.appendChild(document.createTextNode("x")),Sa.appendChild(vt("br"));Sa.appendChild(document.createTextNode("x"))}_t(x.measure,Sa);var ne=Sa.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),je(x.measure),ne||1}function io(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=vt("span","xxxxxxxxxx"),ne=vt("pre",[z],"CodeMirror-line-like");_t(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function ho(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,ce=z.gutters.firstChild,ye=0;ce;ce=ce.nextSibling,++ye){var _e=x.display.gutterSpecs[ye].className;ne[_e]=ce.offsetLeft+ce.clientLeft+ie,te[_e]=ce.clientWidth}return{fixedPos:Oo(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Oo(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function Ro(x){var z=Ka(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/io(x.display)-3);return function(ie){if(br(x.doc,ie))return 0;var ce=0;if(ie.widgets)for(var ye=0;ye0&&($e=nn(x.doc,Pe.line).text).length==Pe.ch){var bt=Qe($e,$e.length,x.options.tabSize)-$e.length;Pe=st(Pe.line,Math.max(0,Math.round((ce-zi(x.display).left)/io(x.display))-bt))}return Pe}function ra(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;tez)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)ii&&un(x.doc,z)ie.viewFrom?_a(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)_a(x);else if(z<=ie.viewFrom){var ce=co(x,ne,ne+te,1);ce?(ie.view=ie.view.slice(ce.index),ie.viewFrom=ce.lineN,ie.viewTo+=te):_a(x)}else if(ne>=ie.viewTo){var ye=co(x,z,z,-1);ye?(ie.view=ie.view.slice(0,ye.index),ie.viewTo=ye.lineN):_a(x)}else{var _e=co(x,z,z,-1),Pe=co(x,ne,ne+te,1);_e&&Pe?(ie.view=ie.view.slice(0,_e.index).concat(Kn(x,_e.lineN,Pe.lineN)).concat(ie.view.slice(Pe.index)),ie.viewTo+=te):_a(x)}var $e=ie.externalMeasured;$e&&(ne<$e.lineN?$e.lineN+=te:z<$e.lineN+$e.size&&(ie.externalMeasured=null))}function Ta(x,z,ne){x.curOp.viewChanged=!0;var te=x.display,ie=x.display.externalMeasured;if(ie&&z>=ie.lineN&&z=te.viewTo)){var ce=te.view[ra(x,z)];if(ce.node!=null){var ye=ce.changes||(ce.changes=[]);ht(ye,ne)==-1&&ye.push(ne)}}}function _a(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function co(x,z,ne,te){var ie=ra(x,z),ce,ye=x.display.view;if(!ii||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var _e=x.display.viewFrom,Pe=0;Pe0){if(ie==ye.length-1)return null;ce=_e+ye[ie].size-z,ie++}else ce=_e-z;z+=ce,ne+=ce}for(;un(x.doc,ne)!=ne;){if(ie==(te<0?0:ye.length-1))return null;ne+=te*ye[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function ao(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=Kn(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=Kn(x,z,te.viewFrom).concat(te.view):te.viewFromne&&(te.view=te.view.slice(0,ra(x,ne)))),te.viewTo=ne}function hs(x){for(var z=x.display.view,ne=0,te=0;te=x.display.viewTo||_e.to().line0?z.blinker=setInterval(function(){x.hasFocus()||Fo(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function Di(x){x.state.focused||(x.display.input.focus(),Va(x))}function Ha(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,Fo(x))},100)}function Va(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(at(x,"focus",x,z),x.state.focused=!0,bn(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),Ee&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Ci(x))}function Fo(x,z){x.state.delayingBlurEvent||(x.state.focused&&(at(x,"blur",x,z),x.state.focused=!1,Ue(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Uo(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te.005||bt<-.005)&&(rr(ie.line,ye),ls(ie.line),ie.rest))for(var Pt=0;Ptx.display.sizerWidth){var gn=Math.ceil(_e/io(x.display));gn>x.display.maxLineLength&&(x.display.maxLineLength=gn,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function ls(x){if(x.widgets)for(var z=0;z=ye&&(ce=dr(z,kn(nn(z,Pe))-x.wrapper.clientHeight),ye=Pe)}return{from:ce,to:Math.max(ye,ce+1)}}function Bo(x,z){if(!Ht(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ie=null;if(z.top+te.top<0?ie=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ie=!1),ie!=null&&!St){var ce=vt("div","\u200B",null,`position: absolute; top: `+(z.top-ne.viewOffset-Qi(x.display))+`px; height: `+(z.bottom-z.top+Jr(x)+ne.barHeight)+`px; left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(ce),ce.scrollIntoView(ie),x.display.lineSpace.removeChild(ce)}}}function cs(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?st(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?st(z.line,z.ch+1,"before"):z);for(var ce=0;ce<5;ce++){var ye=!1,_e=ha(x,z),Pe=!ne||ne==z?_e:ha(x,ne);ie={left:Math.min(_e.left,Pe.left),top:Math.min(_e.top,Pe.top)-te,right:Math.max(_e.left,Pe.left),bottom:Math.max(_e.bottom,Pe.bottom)+te};var $e=As(x,ie),bt=x.doc.scrollTop,Pt=x.doc.scrollLeft;if($e.scrollTop!=null&&(Ia(x,$e.scrollTop),Math.abs(x.doc.scrollTop-bt)>1&&(ye=!0)),$e.scrollLeft!=null&&(go(x,$e.scrollLeft),Math.abs(x.doc.scrollLeft-Pt)>1&&(ye=!0)),!ye)break}return ie}function ul(x,z){var ne=As(x,z);ne.scrollTop!=null&&Ia(x,ne.scrollTop),ne.scrollLeft!=null&&go(x,ne.scrollLeft)}function As(x,z){var ne=x.display,te=Ka(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,ce=Ii(x),ye={};z.bottom-z.top>ce&&(z.bottom=z.top+ce);var _e=x.doc.height+wi(ne),Pe=z.top_e-te;if(z.topie+ce){var bt=Math.min(z.top,($e?_e:z.bottom)-ce);bt!=ie&&(ye.scrollTop=bt)}var Pt=x.options.fixedGutter?0:ne.gutters.offsetWidth,gn=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-Pt,on=hi(x)-ne.gutters.offsetWidth,Qn=z.right-z.left>on;return Qn&&(z.right=z.left+on),z.left<10?ye.scrollLeft=0:z.lefton+gn-3&&(ye.scrollLeft=z.right+(Qn?0:10)-on),ye}function ms(x,z){z!=null&&(qs(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function zo(x){qs(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function Ts(x,z,ne){(z!=null||ne!=null)&&qs(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Is(x,z){qs(x),x.curOp.scrollToPos=z}function qs(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=ka(x,z.from),te=ka(x,z.to);oo(x,ne,te,z.margin)}}function oo(x,z,ne,te){var ie=As(x,{left:Math.min(z.left,ne.left),top:Math.min(z.top,ne.top)-te,right:Math.max(z.right,ne.right),bottom:Math.max(z.bottom,ne.bottom)+te});Ts(x,ie.scrollLeft,ie.scrollTop)}function Ia(x,z){Math.abs(x.doc.scrollTop-z)<2||(de||qc(x,{top:z}),Xa(x,z,!0),de&&qc(x),is(x,100))}function Xa(x,z,ne){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!ne)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function go(x,z,ne,te){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ne?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!te)&&(x.doc.scrollLeft=z,Zu(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function yo(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+wi(x.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:x.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+Jr(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Ko=function(x,z,ne){this.cm=ne;var te=this.vert=vt("div",[vt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=vt("div",[vt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),dn(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),dn(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ve&&we<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ko.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ne=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ie=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var ce=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+ce)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:z?te:0}},Ko.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ko.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ko.prototype.zeroWidthHack=function(){var x=Le&&!Oe?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ce,this.disableVert=new Ce},Ko.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),ce=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);ce!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},Ko.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var wo=function(){};wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};function xs(x,z){z||(z=yo(x));var ne=x.display.barWidth,te=x.display.barHeight;Xl(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&Uo(x),Xl(x,yo(x)),ne=x.display.barWidth,te=x.display.barHeight}function Xl(x,z){var ne=x.display,te=ne.scrollbars.update(z);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=z.gutterWidth+"px"):ne.gutterFiller.style.display=""}var Yl={native:Ko,null:wo};function vc(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Ue(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Yl[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),dn(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ne){ne=="horizontal"?go(x,z):Ia(x,z)},x),x.display.scrollbars.addClass&&bn(x.display.wrapper,x.display.scrollbars.addClass)}var Xc=0;function Ks(x){x.curOp={cm:x,viewChanged:!1,startHeight:x.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Xc},cn(x.curOp)}function Ds(x){var z=x.curOp;z&&Zn(z,function(ne){for(var te=0;te=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new gs(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Da(x){x.updatedDisplay=x.mustUpdate&&Yc(x.cm,x.update)}function ma(x){var z=x.cm,ne=z.display;x.updatedDisplay&&Uo(z),x.barMeasure=yo(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Aa(z,ne.maxLine,ne.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+x.adjustWidthTo+Jr(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-hi(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Ho(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=gi(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(ce){if(te.line>=x.display.viewFrom){var ye=ce.styles,_e=ce.text.length>x.options.maxHighlightLength?pt(z.mode,te.state):null,Pe=$i(x,ce,te,!0);_e&&(te.state=_e),ce.styles=Pe.styles;var $e=ce.styleClasses,bt=Pe.classes;bt?ce.styleClasses=bt:$e&&(ce.styleClasses=null);for(var Pt=!ye||ye.length!=ce.styles.length||$e!=bt&&(!$e||!bt||$e.bgClass!=bt.bgClass||$e.textClass!=bt.textClass),gn=0;!Pt&&gnne)return is(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&ga(x,function(){for(var ce=0;ce=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&hs(x)==0)return!1;bc(x)&&(_a(x),z.dims=ho(x));var ie=te.first+te.size,ce=Math.max(z.visible.from-x.options.viewportMargin,te.first),ye=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFromye&&ne.viewTo-ye<20&&(ye=Math.min(ie,ne.viewTo)),ii&&(ce=un(x.doc,ce),ye=Jn(x.doc,ye));var _e=ce!=ne.viewFrom||ye!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;ao(x,ce,ye),ne.viewOffset=kn(nn(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var Pe=hs(x);if(!_e&&Pe==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var $e=jd(x);return Pe>4&&(ne.lineDiv.style.display="none"),Vd(x,ne.updateLineNumbers,z.dims),Pe>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Zd($e),je(ne.cursorDiv),je(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,_e&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,is(x,400)),ne.updateLineNumbers=null,!0}function ju(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==hi(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+wi(x.display)-Ii(x),ne.top)}),z.visible=va(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=va(x.display,x.doc,ne));if(!Yc(x,z))break;Uo(x);var ie=yo(x);Qo(x),xs(x,ie),Qc(x,ie),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function qc(x,z){var ne=new gs(x,z);if(Yc(x,ne)){Uo(x),ju(x,ne);var te=yo(x);Qo(x),xs(x,te),Qc(x,te),ne.finish()}}function Vd(x,z,ne){var te=x.display,ie=x.options.lineNumbers,ce=te.lineDiv,ye=ce.firstChild;function _e(Qn){var yr=Qn.nextSibling;return Ee&&Le&&x.display.currentWheelTarget==Qn?Qn.style.display="none":Qn.parentNode.removeChild(Qn),yr}for(var Pe=te.view,$e=te.viewFrom,bt=0;bt-1&&(on=!1),Yr(x,Pt,$e,ne)),on&&(je(Pt.lineNumber),Pt.lineNumber.appendChild(document.createTextNode(mt(x.options,$e)))),ye=Pt.node.nextSibling}$e+=Pt.size}for(;ye;)ye=_e(ye)}function Jc(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Qc(x,z){x.display.sizer.style.minHeight=z.docHeight+"px",x.display.heightForcer.style.top=z.docHeight+"px",x.display.gutters.style.height=z.docHeight+x.display.barHeight+Jr(x)+"px"}function Zu(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Oo(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,ce=te+"px",ye=0;yeye.clientWidth,Pe=ye.scrollHeight>ye.clientHeight;if(te&&_e||ie&&Pe){if(ie&&Le&&Ee){e:for(var $e=z.target,bt=ce.view;$e!=ye;$e=$e.parentNode)for(var Pt=0;Pt=0&&Ct(x,te.to())<=0)return ne}return-1};var ja=function(x,z){this.anchor=x,this.head=z};ja.prototype.from=function(){return vn(this.anchor,this.head)},ja.prototype.to=function(){return hn(this.anchor,this.head)},ja.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ms(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(gn,on){return Ct(gn.from(),on.from())}),ne=ht(z,ie);for(var ce=1;ce0:Pe>=0){var $e=vn(_e.from(),ye.from()),bt=hn(_e.to(),ye.to()),Pt=_e.empty()?ye.from()==ye.head:_e.from()==_e.head;ce<=ne&&--ne,z.splice(--ce,2,new ja(Pt?bt:$e,Pt?$e:bt))}}return new vs(z,ne)}function Ps(x,z){return new vs([new ja(x,z||x)],0)}function Js(x){return x.text?st(x.from.line+x.text.length-1,Zt(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Yu(x,z){if(Ct(x,z.from)<0)return x;if(Ct(x,z.to)<=0)return Js(z);var ne=x.line+z.text.length-(z.to.line-z.from.line)-1,te=x.ch;return x.line==z.to.line&&(te+=Js(z).ch-z.to.ch),st(ne,te)}function tu(x,z){for(var ne=[],te=0;te1&&x.remove(_e.line+1,Qn-1),x.insert(_e.line+1,Xr)}Un(x,"change",x,z)}function Qs(x,z,ne){function te(ie,ce,ye){if(ie.linked)for(var _e=0;_e1&&!x.done[x.done.length-2].ranges)return x.done.pop(),Zt(x.done)}function Ec(x,z,ne,te){var ie=x.history;ie.undone.length=0;var ce=+new Date,ye,_e;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>ce-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(ye=su(ie,ie.lastOp==te)))_e=Zt(ye.changes),Ct(z.from,z.to)==0&&Ct(z.from,_e.to)==0?_e.to=Js(z):ye.changes.push(ou(x,z));else{var Pe=Zt(ie.done);for((!Pe||!Pe.ranges)&&Mc(x.sel,ie.done),ye={changes:[ou(x,z)],generation:ie.generation},ie.done.push(ye);ie.done.length>ie.undoDepth;)ie.done.shift(),ie.done[0].ranges||ie.done.shift()}ie.done.push(ne),ie.generation=++ie.maxGeneration,ie.lastModTime=ie.lastSelTime=ce,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,_e||at(x,"historyAdded")}function lu(x,z,ne,te){var ie=z.charAt(0);return ie=="*"||ie=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function cu(x,z,ne,te){var ie=x.history,ce=te&&te.origin;ne==ie.lastSelOp||ce&&ie.lastSelOrigin==ce&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==ce||lu(x,ce,Zt(ie.done),z))?ie.done[ie.done.length-1]=z:Mc(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=ce,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&Ju(ie.undone)}function Mc(x,z){var ne=Zt(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function uu(x,z,ne,te){var ie=z["spans_"+x.id],ce=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(ye){ye.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[ce]=ye.markedSpans),++ce})}function du(x){if(!x)return null;for(var z,ne=0;ne-1&&(Zt(_e)[Pt]=$e[Pt],delete $e[Pt])}}return te}function fu(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var ce=Ct(z,ie)<0;ce!=Ct(ne,ie)<0?(ie=z,z=ne):ce!=Ct(z,ne)<0&&(z=ne)}return new ja(ie,z)}else return new ja(ne||z,z)}function $l(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),To(x,new vs([fu(x.sel.primary(),z,ne,ie)],0),te)}function ui(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),ce=0;ce=z.ch:_e.to>z.ch))){if(ie&&(at(Pe,"beforeCursorEnter"),Pe.explicitlyCleared))if(ce.markedSpans){--ye;continue}else break;if(!Pe.atomic)continue;if(ne){var Pt=Pe.find(te<0?1:-1),gn=void 0;if((te<0?bt:$e)&&(Pt=el(x,Pt,-te,Pt&&Pt.line==z.line?ce:null)),Pt&&Pt.line==z.line&&(gn=Ct(Pt,ne))&&(te<0?gn<0:gn>0))return os(x,Pt,z,te,ie)}var on=Pe.find(te<0?-1:1);return(te<0?$e:bt)&&(on=el(x,on,te,on.line==z.line?ce:null)),on?os(x,on,z,te,ie):null}}return z}function hu(x,z,ne,te,ie){var ce=te||1,ye=os(x,z,ne,ce,ie)||!ie&&os(x,z,ne,ce,!0)||os(x,z,ne,-ce,ie)||!ie&&os(x,z,ne,-ce,!0);return ye||(x.cantEdit=!0,st(x.first,0))}function el(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?Nn(x,st(z.line-1)):null:ne>0&&z.ch==(te||nn(x,z.line)).text.length?z.line=0;--ie)nd(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else nd(x,z)}}function nd(x,z){if(!(z.text.length==1&&z.text[0]==""&&Ct(z.from,z.to)==0)){var ne=tu(x,z);Ec(x,z,ne,x.cm?x.cm.curOp.id:NaN),Fl(x,z,ne,Gr(x,z));var te=[];Qs(x,function(ie,ce){!ce&&ht(te,ie.history)==-1&&(_c(ie.history,z),te.push(ie.history)),Fl(ie,z,null,Gr(ie,z))})}}function tl(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,ce,ye=x.sel,_e=z=="undo"?ie.done:ie.undone,Pe=z=="undo"?ie.undone:ie.done,$e=0;$e<_e.length&&(ce=_e[$e],!(ne?ce.ranges&&!ce.equals(x.sel):!ce.ranges));$e++);if($e!=_e.length){for(ie.lastOrigin=ie.lastSelOrigin=null;;)if(ce=_e.pop(),ce.ranges){if(Mc(ce,Pe),ne&&!ce.equals(x.sel)){To(x,ce,{clearRedo:!1});return}ye=ce}else if(te){_e.push(ce);return}else break;var bt=[];Mc(ye,Pe),Pe.push({changes:bt,generation:ie.generation}),ie.generation=ce.generation||++ie.maxGeneration;for(var Pt=er(x,"beforeChange")||x.cm&&er(x.cm,"beforeChange"),gn=function(yr){var $r=ce.changes[yr];if($r.origin=z,Pt&&!pu(x,$r,!1))return _e.length=0,{};bt.push(ou(x,$r));var Xr=yr?tu(x,$r):Zt(_e);Fl(x,$r,Xr,Qu(x,$r)),!yr&&x.cm&&x.cm.scrollIntoView({from:$r.from,to:Js($r)});var ai=[];Qs(x,function(Zr,oi){!oi&&ht(ai,Zr.history)==-1&&(_c(Zr.history,$r),ai.push(Zr.history)),Fl(Zr,$r,null,Qu(Zr,$r))})},on=ce.changes.length-1;on>=0;--on){var Qn=gn(on);if(Qn)return Qn.v}}}}function mu(x,z){if(z!=0&&(x.first+=z,x.sel=new vs(yn(x.sel.ranges,function(ie){return new ja(st(ie.anchor.line+z,ie.anchor.ch),st(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){Ri(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;tex.lastLine())){if(z.from.linece&&(z={from:z.from,to:st(ce,nn(x,ce).text.length),text:[z.text[0]],origin:z.origin}),z.removed=jn(x,z.from,z.to),ne||(ne=tu(x,z)),x.cm?Qd(x.cm,z,te):iu(x,z,te),kc(x,ne,Ge),x.cantEdit&&hu(x,st(x.firstLine(),0))&&(x.cantEdit=!1)}}function Qd(x,z,ne){var te=x.doc,ie=x.display,ce=z.from,ye=z.to,_e=!1,Pe=ce.line;x.options.lineWrapping||(Pe=tr(lt(nn(te,ce.line))),te.iter(Pe,ye.line+1,function(on){if(on==ie.maxLine)return _e=!0,!0})),te.sel.contains(z.from,z.to)>-1&&Fn(x),iu(te,z,ne,Ro(x)),x.options.lineWrapping||(te.iter(Pe,ce.line+z.text.length,function(on){var Qn=wn(on);Qn>ie.maxLineLength&&(ie.maxLine=on,ie.maxLineLength=Qn,ie.maxLineChanged=!0,_e=!1)}),_e&&(x.curOp.updateMaxLine=!0)),la(te,ce.line),is(x,400);var $e=z.text.length-(ye.line-ce.line)-1;z.full?Ri(x):ce.line==ye.line&&z.text.length==1&&!qu(x.doc,z)?Ta(x,ce.line,"text"):Ri(x,ce.line,ye.line+1,$e);var bt=er(x,"changes"),Pt=er(x,"change");if(Pt||bt){var gn={from:ce,to:ye,text:z.text,removed:z.removed,origin:z.origin};Pt&&Un(x,"change",x,gn),bt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(gn)}x.display.selForContextMenu=null}function ec(x,z,ne,te,ie){var ce;te||(te=ne),Ct(te,ne)<0&&(ce=[te,ne],ne=ce[0],te=ce[1]),typeof z=="string"&&(z=x.splitLines(z)),dl(x,{from:ne,to:te,text:z,origin:ie})}function ef(x,z,ne,te){ne1||!(this.children[0]instanceof fl))){var _e=[];this.collapse(_e),this.children=[new fl(_e)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z50){for(var ye=ie.lines.length%25+25,_e=ye;_e10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;tex.display.maxLineLength&&(x.display.maxLine=$e,x.display.maxLineLength=bt,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&Ri(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&Jd(x.doc)),x&&Un(x,"markerCleared",x,this,te,ie),z&&Ds(x),this.parent&&this.parent.clear()}},hl.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie0||ye==0&&ce.clearWhenEmpty!==!1)return ce;if(ce.replacedWith&&(ce.collapsed=!0,ce.widgetNode=kt("span",[ce.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||ce.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(ce.widgetNode.insertLeft=!0)),ce.collapsed){if(nt(x,z.line,z,ne,ce)||z.line!=ne.line&&nt(x,ne.line,z,ne,ce))throw new Error("Inserting collapsed marker partially overlapping an existing one");wt()}ce.addToHistory&&Ec(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var _e=z.line,Pe=x.cm,$e;if(x.iter(_e,ne.line+1,function(Pt){Pe&&ce.collapsed&&!Pe.options.lineWrapping&<(Pt)==Pe.display.maxLine&&($e=!0),ce.collapsed&&_e!=z.line&&rr(Pt,0),vr(Pt,new Qt(ce,_e==z.line?z.ch:null,_e==ne.line?ne.ch:null)),++_e}),ce.collapsed&&x.iter(z.line,ne.line+1,function(Pt){br(x,Pt)&&rr(Pt,0)}),ce.clearOnEnter&&dn(ce,"beforeCursorEnter",function(){return ce.clear()}),ce.readOnly&&(Et(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),ce.collapsed&&(ce.id=++af,ce.atomic=!0),Pe){if($e&&(Pe.curOp.updateMaxLine=!0),ce.collapsed)Ri(Pe,z.line,ne.line+1);else if(ce.className||ce.startStyle||ce.endStyle||ce.css||ce.attributes||ce.title)for(var bt=z.line;bt<=ne.line;bt++)Ta(Pe,bt,"text");ce.atomic&&Jd(Pe.doc),Un(Pe,"markerAdded",Pe,ce)}return ce}var ya=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne=0;Pe--)dl(this,te[Pe]);_e?as(this,_e):this.cm&&zo(this.cm)}),undo:po(function(){tl(this,"undo")}),redo:po(function(){tl(this,"redo")}),undoSelection:po(function(){tl(this,"undo",!0)}),redoSelection:po(function(){tl(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te=x.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=Nn(this,x),z=Nn(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(ce){var ye=ce.markedSpans;if(ye)for(var _e=0;_e=Pe.to||Pe.from==null&&ie!=x.line||Pe.from!=null&&ie==z.line&&Pe.from>=z.ch)&&(!ne||ne(Pe.marker))&&te.push(Pe.marker.parent||Pe.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;tex)return z=x,!0;x-=ce,++ne}),Nn(this,st(ne,z))},indexFromPos:function(x){x=Nn(this,x);var z=x.ch;if(x.linez&&(z=x.from),x.to!=null&&x.to-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var bt=x.dataTransfer.getData("Text");if(bt){var Pt;if(z.state.draggingText&&!z.state.draggingText.copy&&(Pt=z.listSelections()),kc(z.doc,Ps(ne,ne)),Pt)for(var gn=0;gn=0;_e--)ec(x.doc,"",te[_e].from,te[_e].to,"+delete");zo(x)})}function Zo(x,z,ne){var te=Lt(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function Ws(x,z,ne){var te=Zo(x,z.ch,ne);return te==null?null:new st(z.line,te,ne<0?"after":"before")}function Kl(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var ce=Rn(ne,z.doc.direction);if(ce){var ye=ie<0?Zt(ce):ce[0],_e=ie<0==(ye.level==1),Pe=_e?"after":"before",$e;if(ye.level>0||z.doc.direction=="rtl"){var bt=ea(z,ne);$e=ie<0?ne.text.length-1:0;var Pt=Mi(z,bt,$e).top;$e=Rt(function(gn){return Mi(z,bt,gn).top==Pt},ie<0==(ye.level==1)?ye.from:ye.to-1,$e),Pe=="before"&&($e=Zo(ne,$e,1))}else $e=ie<0?ye.to:ye.from;return new st(te,$e,Pe)}}return new st(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Us(x,z,ne,te){var ie=Rn(z,x.doc.direction);if(!ie)return Ws(z,ne,te);ne.ch>=z.text.length?(ne.ch=z.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var ce=Xt(ie,ne.ch,ne.sticky),ye=ie[ce];if(x.doc.direction=="ltr"&&ye.level%2==0&&(te>0?ye.to>ne.ch:ye.from=ye.from&&gn>=bt.begin)){var on=Pt?"before":"after";return new st(ne.line,gn,on)}}var Qn=function(Xr,ai,Zr){for(var oi=function(to,Wo){return Wo?new st(ne.line,_e(to,1),"before"):new st(ne.line,to,"after")};Xr>=0&&Xr0==(Ki.level!=1),ba=ji?Zr.begin:_e(Zr.end,-1);if(Ki.from<=ba&&ba0?bt.end:_e(bt.begin,-1);return $r!=null&&!(te>0&&$r==z.text.length)&&(yr=Qn(te>0?0:ie.length-1,te,$e($r)),yr)?yr:null}var ac={selectAll:td,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),Ge)},killLine:function(x){return ks(x,function(z){if(z.empty()){var ne=nn(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line0)ie=new st(ie.line,ie.ch+1),x.replaceRange(ce.charAt(ie.ch-1)+ce.charAt(ie.ch-2),st(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var ye=nn(x.doc,ie.line-1).text;ye&&(ie=new st(ie.line,1),x.replaceRange(ce.charAt(0)+x.doc.lineSeparator()+ye.charAt(ye.length-1),st(ie.line-1,ye.length-1),ie,"+transpose"))}}ne.push(new ja(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return ga(x,function(){for(var z=x.listSelections(),ne=z.length-1;ne>=0;ne--)x.replaceRange(x.doc.lineSeparator(),z[ne].anchor,z[ne].head,"+input");z=x.listSelections();for(var te=0;tex&&Ct(z,this.pos)==0&&ne==this.button};var al,Pc;function ih(x,z){var ne=+new Date;return Pc&&Pc.compare(ne,x,z)?(al=Pc=null,"triple"):al&&al.compare(ne,x,z)?(Pc=new ud(ne,x,z),al=null,"double"):(al=new ud(ne,x,z),Pc=null,"single")}function Vo(x){var z=this,ne=z.display;if(!(Ht(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,Ji(ne,x)){Ee||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!ts(z,x)){var te=Ao(z,x),ie=ur(x),ce=te?ih(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&gl(z,ie,te,ce,x))&&(ie==1?te?wu(z,te,ce,x):Vr(x)==ne.scroller&&Sr(x):ie==2?(te&&$l(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(ke?z.display.input.onContextMenu(x):Ha(z)))}}}function gl(x,z,ne,te,ie){var ce="Click";return te=="double"?ce="Double"+ce:te=="triple"&&(ce="Triple"+ce),ce=(z==1?"Left":z==2?"Middle":"Right")+ce,oc(x,ml(ce,ie),ie,function(ye){if(typeof ye=="string"&&(ye=ac[ye]),!ye)return!1;var _e=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),_e=ye(x,ne)!=Yt}finally{x.state.suppressEdits=!1}return _e})}function xu(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var ce=gt?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=ce?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ie.extend==null||x.doc.extend)&&(ie.extend=x.doc.extend||ne.shiftKey),ie.addNew==null&&(ie.addNew=Le?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(Le?ne.altKey:ne.ctrlKey)),ie}function wu(x,z,ne,te){ve?setTimeout(Cn(Di,x),0):x.curOp.focus=Ot();var ie=xu(x,ne,te),ce=x.doc.sel,ye;x.options.dragDrop&&si&&!x.isReadOnly()&&ne=="single"&&(ye=ce.contains(z))>-1&&(Ct((ye=ce.ranges[ye]).from(),z)<0||z.xRel>0)&&(Ct(ye.to(),z)>0||z.xRel<0)?ah(x,te,z,ie):dd(x,te,z,ie)}function ah(x,z,ne,te){var ie=x.display,ce=!1,ye=za(x,function($e){Ee&&(ie.scroller.draggable=!1),x.state.draggingText=!1,Mr(ie.wrapper.ownerDocument,"mouseup",ye),Mr(ie.wrapper.ownerDocument,"mousemove",_e),Mr(ie.scroller,"dragstart",Pe),Mr(ie.scroller,"drop",ye),ce||(Sr($e),te.addNew||$l(x.doc,ne,null,null,te.extend),Ee&&!ot||ve&&we==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),_e=function($e){ce=ce||Math.abs(z.clientX-$e.clientX)+Math.abs(z.clientY-$e.clientY)>=10},Pe=function(){return ce=!0};Ee&&(ie.scroller.draggable=!0),x.state.draggingText=ye,ye.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),dn(ie.wrapper.ownerDocument,"mouseup",ye),dn(ie.wrapper.ownerDocument,"mousemove",_e),dn(ie.scroller,"dragstart",Pe),dn(ie.scroller,"drop",ye),Ha(x),setTimeout(function(){return ie.input.focus()},20)}function df(x,z,ne){if(ne=="char")return new ja(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new ja(st(z.line,0),Nn(x.doc,st(z.line+1,0)));var te=ne(x,z);return new ja(te.from,te.to)}function dd(x,z,ne,te){var ie=x.display,ce=x.doc;Sr(z);var ye,_e,Pe=ce.sel,$e=Pe.ranges;if(te.addNew&&!te.extend?(_e=ce.sel.contains(ne),_e>-1?ye=$e[_e]:ye=new ja(ne,ne)):(ye=ce.sel.primary(),_e=ce.sel.primIndex),te.unit=="rectangle")te.addNew||(ye=new ja(ne,ne)),ne=Ao(x,z,!0,!0),_e=-1;else{var bt=df(x,ne,te.unit);te.extend?ye=fu(ye,bt.anchor,bt.head,te.extend):ye=bt}te.addNew?_e==-1?(_e=$e.length,To(ce,Ms(x,$e.concat([ye]),_e),{scroll:!1,origin:"*mouse"})):$e.length>1&&$e[_e].empty()&&te.unit=="char"&&!te.extend?(To(ce,Ms(x,$e.slice(0,_e).concat($e.slice(_e+1)),0),{scroll:!1,origin:"*mouse"}),Pe=ce.sel):ws(ce,_e,ye,rt):(_e=0,To(ce,new vs([ye],0),rt),Pe=ce.sel);var Pt=ne;function gn(Zr){if(Ct(Pt,Zr)!=0)if(Pt=Zr,te.unit=="rectangle"){for(var oi=[],Ki=x.options.tabSize,ji=Qe(nn(ce,ne.line).text,ne.ch,Ki),ba=Qe(nn(ce,Zr.line).text,Zr.ch,Ki),to=Math.min(ji,ba),Wo=Math.max(ji,ba),bo=Math.min(ne.line,Zr.line),us=Math.min(x.lastLine(),Math.max(ne.line,Zr.line));bo<=us;bo++){var ds=nn(ce,bo).text,Do=_n(ds,to,Ki);to==Wo?oi.push(new ja(st(bo,Do),st(bo,Do))):ds.length>Do&&oi.push(new ja(st(bo,Do),st(bo,_n(ds,Wo,Ki))))}oi.length||oi.push(new ja(ne,ne)),To(ce,Ms(x,Pe.ranges.slice(0,_e).concat(oi),_e),{origin:"*mouse",scroll:!1}),x.scrollIntoView(Zr)}else{var fs=ye,sa=df(x,Zr,te.unit),So=fs.anchor,xo;Ct(sa.anchor,So)>0?(xo=sa.head,So=vn(fs.from(),sa.anchor)):(xo=sa.anchor,So=hn(fs.to(),sa.head));var Co=Pe.ranges.slice(0);Co[_e]=ff(x,new ja(Nn(ce,So),xo)),To(ce,Ms(x,Co,_e),rt)}}var on=ie.wrapper.getBoundingClientRect(),Qn=0;function yr(Zr){var oi=++Qn,Ki=Ao(x,Zr,!0,te.unit=="rectangle");if(Ki)if(Ct(Ki,Pt)!=0){x.curOp.focus=Ot(),gn(Ki);var ji=va(ie,ce);(Ki.line>=ji.to||Ki.lineon.bottom?20:0;ba&&setTimeout(za(x,function(){Qn==oi&&(ie.scroller.scrollTop+=ba,yr(Zr))}),50)}}function $r(Zr){x.state.selectingText=!1,Qn=1/0,Zr&&(Sr(Zr),ie.input.focus()),Mr(ie.wrapper.ownerDocument,"mousemove",Xr),Mr(ie.wrapper.ownerDocument,"mouseup",ai),ce.history.lastSelOrigin=null}var Xr=za(x,function(Zr){Zr.buttons===0||!ur(Zr)?$r(Zr):yr(Zr)}),ai=za(x,$r);x.state.selectingText=ai,dn(ie.wrapper.ownerDocument,"mousemove",Xr),dn(ie.wrapper.ownerDocument,"mouseup",ai)}function ff(x,z){var ne=z.anchor,te=z.head,ie=nn(x.doc,ne.line);if(Ct(ne,te)==0&&ne.sticky==te.sticky)return z;var ce=Rn(ie);if(!ce)return z;var ye=Xt(ce,ne.ch,ne.sticky),_e=ce[ye];if(_e.from!=ne.ch&&_e.to!=ne.ch)return z;var Pe=ye+(_e.from==ne.ch==(_e.level!=1)?0:1);if(Pe==0||Pe==ce.length)return z;var $e;if(te.line!=ne.line)$e=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var bt=Xt(ce,te.ch,te.sticky),Pt=bt-ye||(te.ch-ne.ch)*(_e.level==1?-1:1);bt==Pe-1||bt==Pe?$e=Pt<0:$e=Pt>0}var gn=ce[Pe+($e?-1:0)],on=$e==(gn.level==1),Qn=on?gn.from:gn.to,yr=on?"after":"before";return ne.ch==Qn&&ne.sticky==yr?z:new ja(new st(ne.line,Qn,yr),te)}function Oc(x,z,ne,te){var ie,ce;if(z.touches)ie=z.touches[0].clientX,ce=z.touches[0].clientY;else try{ie=z.clientX,ce=z.clientY}catch(gn){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Sr(z);var ye=x.display,_e=ye.lineDiv.getBoundingClientRect();if(ce>_e.bottom||!er(x,ne))return Er(z);ce-=_e.top-ye.viewOffset;for(var Pe=0;Pe=ie){var bt=dr(x.doc,ce),Pt=x.display.gutterSpecs[Pe];return at(x,ne,x,bt,Pt.className,z),Er(z)}}}function ts(x,z){return Oc(x,z,"gutterClick",!0)}function vl(x,z){Ji(x.display,z)||hf(x,z)||Ht(x,z,"contextmenu")||ke||x.display.input.onContextMenu(z)}function hf(x,z){return er(x,"gutterContextMenu")?Oc(x,z,"gutterContextMenu",!1):!1}function fd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mi(x)}var yl={toString:function(){return"CodeMirror.Init"}},pf={},Su={};function oh(x){var z=x.optionHandlers;function ne(te,ie,ce,ye){x.defaults[te]=ie,ce&&(z[te]=ye?function(_e,Pe,$e){$e!=yl&&ce(_e,Pe,$e)}:ce)}x.defineOption=ne,x.Init=yl,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,ru(te)},!0),ne("indentUnit",2,ru,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Rl(te),mi(te),Ri(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var ce=[],ye=te.doc.first;te.doc.iter(function(Pe){for(var $e=0;;){var bt=Pe.text.indexOf(ie,$e);if(bt==-1)break;$e=bt+ie.length,ce.push(st(ye,bt))}ye++});for(var _e=ce.length-1;_e>=0;_e--)ec(te.doc,ie,ce[_e],st(ce[_e].line,ce[_e].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,ce){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),ce!=yl&&te.refresh()}),ne("specialCharPlaceholder",Re,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",Je?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ie){return te.getInputField().spellcheck=ie},!0),ne("autocorrect",!1,function(te,ie){return te.getInputField().autocorrect=ie},!0),ne("autocapitalize",!1,function(te,ie){return te.getInputField().autocapitalize=ie},!0),ne("rtlMoveVisually",!qt),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){fd(te),Ql(te)},!0),ne("keyMap","default",function(te,ie,ce){var ye=ss(ie),_e=ce!=yl&&ss(ce);_e&&_e.detach&&_e.detach(te,ye),ye.attach&&ye.attach(te,_e||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,mf,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=eu(ie,te.options.lineNumbers),Ql(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Oo(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return xs(te)},!0),ne("scrollbarStyle","native",function(te){vc(te),xs(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ie){te.display.gutterSpecs=eu(te.options.gutters,ie),Ql(te)},!0),ne("firstLineNumber",1,Ql,!0),ne("lineNumberFormatter",function(te){return te},Ql,!0),ne("showCursorWhenSelecting",!1,Qo,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(Fo(te),te.display.input.blur()),te.display.input.readOnlyChanged(ie)}),ne("screenReaderLabel",null,function(te,ie){ie=ie===""?null:ie,te.display.input.screenReaderLabelChanged(ie)}),ne("disableInput",!1,function(te,ie){ie||te.display.input.reset()},!0),ne("dragDrop",!0,sh),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,Qo,!0),ne("singleCursorHeightPerLine",!0,Qo,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Rl,!0),ne("addModeClass",!1,Rl,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ie){return te.doc.history.undoDepth=ie}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Rl,!0),ne("moveInputWithCursor",!0,function(te,ie){ie||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ie){return te.display.input.getField().tabIndex=ie||""}),ne("autofocus",null),ne("direction","ltr",function(te,ie){return te.doc.setDirection(ie)},!0),ne("phrases",null)}function sh(x,z,ne){var te=ne&&ne!=yl;if(!z!=!te){var ie=x.display.dragFunctions,ce=z?dn:Mr;ce(x.display.scroller,"dragstart",ie.start),ce(x.display.scroller,"dragenter",ie.enter),ce(x.display.scroller,"dragover",ie.over),ce(x.display.scroller,"dragleave",ie.leave),ce(x.display.scroller,"drop",ie.drop)}}function mf(x){x.options.lineWrapping?(bn(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Ue(x.display.wrapper,"CodeMirror-wrap"),Pn(x)),lo(x),Ri(x),mi(x),setTimeout(function(){return xs(x)},100)}function ia(x,z){var ne=this;if(!(this instanceof ia))return new ia(x,z);this.options=z=z?or(z):{},or(pf,z,!1);var te=z.value;typeof te=="string"?te=new Mo(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new ia.inputStyles[z.inputStyle](this),ce=this.display=new Gd(x,te,ie,z);ce.wrapper.CodeMirror=this,fd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vc(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ce,keySeq:null,specialChars:null},z.autofocus&&!Je&&ce.input.focus(),ve&&we<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),ad(),Ks(this),this.curOp.forceUpdate=!0,wc(this,te),z.autofocus&&!Je||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Va(ne)},20):Fo(this);for(var ye in Su)Su.hasOwnProperty(ye)&&Su[ye](this,z[ye],yl);bc(this),z.finishInit&&z.finishInit(this);for(var _e=0;_e20*20}dn(z.scroller,"touchstart",function(Pe){if(!Ht(x,Pe)&&!ce(Pe)&&!ts(x,Pe)){z.input.ensurePolled(),clearTimeout(ne);var $e=+new Date;z.activeTouch={start:$e,moved:!1,prev:$e-te.end<=300?te:null},Pe.touches.length==1&&(z.activeTouch.left=Pe.touches[0].pageX,z.activeTouch.top=Pe.touches[0].pageY)}}),dn(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),dn(z.scroller,"touchend",function(Pe){var $e=z.activeTouch;if($e&&!Ji(z,Pe)&&$e.left!=null&&!$e.moved&&new Date-$e.start<300){var bt=x.coordsChar(z.activeTouch,"page"),Pt;!$e.prev||ye($e,$e.prev)?Pt=new ja(bt,bt):!$e.prev.prev||ye($e,$e.prev.prev)?Pt=x.findWordAt(bt):Pt=new ja(st(bt.line,0),Nn(x.doc,st(bt.line+1,0))),x.setSelection(Pt.anchor,Pt.head),x.focus(),Sr(Pe)}ie()}),dn(z.scroller,"touchcancel",ie),dn(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Ia(x,z.scroller.scrollTop),go(x,z.scroller.scrollLeft,!0),at(x,"scroll",x))}),dn(z.scroller,"mousewheel",function(Pe){return Xu(x,Pe)}),dn(z.scroller,"DOMMouseScroll",function(Pe){return Xu(x,Pe)}),dn(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(Pe){Ht(x,Pe)||Or(Pe)},over:function(Pe){Ht(x,Pe)||(id(x,Pe),Or(Pe))},start:function(Pe){return th(x,Pe)},drop:za(x,eh),leave:function(Pe){Ht(x,Pe)||rc(x)}};var _e=z.input.getField();dn(_e,"keyup",function(Pe){return cf.call(x,Pe)}),dn(_e,"keydown",za(x,Dc)),dn(_e,"keypress",za(x,uf)),dn(_e,"focus",function(Pe){return Va(x,Pe)}),dn(_e,"blur",function(Pe){return Fo(x,Pe)})}var hd=[];ia.defineInitHook=function(x){return hd.push(x)};function Rs(x,z,ne,te){var ie=x.doc,ce;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?ce=gi(x,z).state:ne="prev");var ye=x.options.tabSize,_e=nn(ie,z),Pe=Qe(_e.text,null,ye);_e.stateAfter&&(_e.stateAfter=null);var $e=_e.text.match(/^\s*/)[0],bt;if(!te&&!/\S/.test(_e.text))bt=0,ne="not";else if(ne=="smart"&&(bt=ie.mode.indent(ce,_e.text.slice($e.length),_e.text),bt==Yt||bt>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?bt=Qe(nn(ie,z-1).text,null,ye):bt=0:ne=="add"?bt=Pe+x.options.indentUnit:ne=="subtract"?bt=Pe-x.options.indentUnit:typeof ne=="number"&&(bt=Pe+ne),bt=Math.max(0,bt);var Pt="",gn=0;if(x.options.indentWithTabs)for(var on=Math.floor(bt/ye);on;--on)gn+=ye,Pt+=" ";if(gnye,Pe=yt(z),$e=null;if(_e&&te.ranges.length>1)if(Bs&&Bs.text.join(` `)==z){if(te.ranges.length%Bs.text.length==0){$e=[];for(var bt=0;bt=0;gn--){var on=te.ranges[gn],Qn=on.from(),yr=on.to();on.empty()&&(ne&&ne>0?Qn=st(Qn.line,Qn.ch-ne):x.state.overwrite&&!_e?yr=st(yr.line,Math.min(nn(ce,yr.line).text.length,yr.ch+Zt(Pe).length)):_e&&Bs&&Bs.lineWise&&Bs.text.join(` `)==Pe.join(` `)&&(Qn=yr=st(Qn.line,0)));var $r={from:Qn,to:yr,text:$e?$e[gn%$e.length]:Pe,origin:ie||(_e?"paste":x.state.cutIncoming>ye?"cut":"+input")};dl(x.doc,$r),Un(x,"inputRead",x,$r)}z&&!_e&&gd(x,z),zo(x),x.curOp.updateInput<2&&(x.curOp.updateInput=Pt),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function md(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&ga(z,function(){return pd(z,ne,0,null,"paste")}),!0}function gd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ie=ne.ranges[te];if(!(ie.head.ch>100||te&&ne.ranges[te-1].head.line==ie.head.line)){var ce=x.getModeAt(ie.head),ye=!1;if(ce.electricChars){for(var _e=0;_e-1){ye=Rs(x,ie.head.line,"smart");break}}else ce.electricInput&&ce.electricInput.test(nn(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(ye=Rs(x,ie.head.line,"smart"));ye&&Un(x,"electricInput",x,ie.head.line)}}}function lc(x){for(var z=[],ne=[],te=0;tece&&(Rs(this,_e.head.line,te,!0),ce=_e.head.line,ye==this.doc.sel.primIndex&&zo(this));else{var Pe=_e.from(),$e=_e.to(),bt=Math.max(ce,Pe.line);ce=Math.min(this.lastLine(),$e.line-($e.ch?0:1))+1;for(var Pt=bt;Pt0&&ws(this.doc,ye,new ja(Pe,gn[ye].to()),Ge)}}}),getTokenAt:function(te,ie){return Gi(this,te,ie)},getLineTokens:function(te,ie){return Gi(this,st(te),ie,!0)},getTokenTypeAt:function(te){te=Nn(this.doc,te);var ie=Ai(this,nn(this.doc,te.line)),ce=0,ye=(ie.length-1)/2,_e=te.ch,Pe;if(_e==0)Pe=ie[2];else for(;;){var $e=ce+ye>>1;if(($e?ie[$e*2-1]:0)>=_e)ye=$e;else if(ie[$e*2+1]<_e)ce=$e+1;else{Pe=ie[$e*2+2];break}}var bt=Pe?Pe.indexOf("overlay "):-1;return bt<0?Pe:bt==0?null:Pe.slice(0,bt-1)},getModeAt:function(te){var ie=this.doc.mode;return ie.innerMode?x.innerMode(ie,this.getTokenAt(te).state).mode:ie},getHelper:function(te,ie){return this.getHelpers(te,ie)[0]},getHelpers:function(te,ie){var ce=[];if(!ne.hasOwnProperty(ie))return ce;var ye=ne[ie],_e=this.getModeAt(te);if(typeof _e[ie]=="string")ye[_e[ie]]&&ce.push(ye[_e[ie]]);else if(_e[ie])for(var Pe=0;Pe<_e[ie].length;Pe++){var $e=ye[_e[ie][Pe]];$e&&ce.push($e)}else _e.helperType&&ye[_e.helperType]?ce.push(ye[_e.helperType]):ye[_e.name]&&ce.push(ye[_e.name]);for(var bt=0;btPe&&(te=Pe,ye=!0),_e=nn(this.doc,te)}else _e=te;return wa(this,_e,{top:0,left:0},ie||"page",ce||ye).top+(ye?this.doc.height-kn(_e):0)},defaultTextHeight:function(){return Ka(this.display)},defaultCharWidth:function(){return io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,ce,ye,_e){var Pe=this.display;te=ha(this,Nn(this.doc,te));var $e=te.bottom,bt=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),Pe.sizer.appendChild(ie),ye=="over")$e=te.top;else if(ye=="above"||ye=="near"){var Pt=Math.max(Pe.wrapper.clientHeight,this.doc.height),gn=Math.max(Pe.sizer.clientWidth,Pe.lineSpace.clientWidth);(ye=="above"||te.bottom+ie.offsetHeight>Pt)&&te.top>ie.offsetHeight?$e=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=Pt&&($e=te.bottom),bt+ie.offsetWidth>gn&&(bt=gn-ie.offsetWidth)}ie.style.top=$e+"px",ie.style.left=ie.style.right="",_e=="right"?(bt=Pe.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(_e=="left"?bt=0:_e=="middle"&&(bt=(Pe.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=bt+"px"),ce&&ul(this,{left:bt,top:$e,right:bt+ie.offsetWidth,bottom:$e+ie.offsetHeight})},triggerOnKeyDown:Ra(Dc),triggerOnKeyPress:Ra(uf),triggerOnKeyUp:cf,triggerOnMouseDown:Ra(Vo),execCommand:function(te){if(ac.hasOwnProperty(te))return ac[te].call(null,this)},triggerElectric:Ra(function(te){gd(this,te)}),findPosH:function(te,ie,ce,ye){var _e=1;ie<0&&(_e=-1,ie=-ie);for(var Pe=Nn(this.doc,te),$e=0;$e0&&bt(ce.charAt(ye-1));)--ye;for(;_e.5||this.options.lineWrapping)&&lo(this),at(this,"refresh",this)}),swapDoc:Ra(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),wc(this,te),mi(this),this.display.input.reset(),Ts(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,Un(this,"swapDoc",this,ie),ie}),phrase:function(te){var ie=this.options.phrases;return ie&&Object.prototype.hasOwnProperty.call(ie,te)?ie[te]:te},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},nr(x),x.registerHelper=function(te,ie,ce){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=ce},x.registerGlobalHelper=function(te,ie,ce,ye){x.registerHelper(te,ie,ye),ne[te]._global.push({pred:ce,val:ye})}}function Cu(x,z,ne,te,ie){var ce=z,ye=ne,_e=nn(x,z.line),Pe=ie&&x.direction=="rtl"?-ne:ne;function $e(){var ai=z.line+Pe;return ai=x.first+x.size?!1:(z=new st(ai,z.ch,z.sticky),_e=nn(x,ai))}function bt(ai){var Zr;if(te=="codepoint"){var oi=_e.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(oi)?Zr=null:Zr=new st(z.line,Math.max(0,Math.min(_e.text.length,z.ch+ne*(oi>=55296&&oi<56320?2:1))),-ne)}else ie?Zr=Us(x.cm,_e,z,ne):Zr=Ws(_e,z,ne);if(Zr==null)if(!ai&&$e())z=Kl(ie,x.cm,_e,z.line,Pe);else return!1;else z=Zr;return!0}if(te=="char"||te=="codepoint")bt();else if(te=="column")bt(!0);else if(te=="word"||te=="group")for(var Pt=null,gn=te=="group",on=x.cm&&x.cm.getHelper(z,"wordChars"),Qn=!0;!(ne<0&&!bt(!Qn));Qn=!1){var yr=_e.text.charAt(z.ch)||` `,$r=he(yr,on)?"w":gn&&yr==` `?"n":!gn||/\s/.test(yr)?null:"p";if(gn&&!Qn&&!$r&&($r="s"),Pt&&Pt!=$r){ne<0&&(ne=1,bt(),z.sticky="after");break}if($r&&(Pt=$r),ne>0&&!bt(!Qn))break}var Xr=hu(x,z,ce,ye,!0);return fn(ce,Xr)&&(Xr.hitSide=!0),Xr}function vf(x,z,ne,te){var ie=x.doc,ce=z.left,ye;if(te=="page"){var _e=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Pe=Math.max(_e-.5*Ka(x.display),3);ye=(ne>0?z.bottom:z.top)+ne*Pe}else te=="line"&&(ye=ne>0?z.bottom+3:z.top-3);for(var $e;$e=Ga(x,ce,ye),!!$e.outside;){if(ne<0?ye<=0:ye>=ie.height){$e.hitSide=!0;break}ye+=ne*5}return $e}var Ya=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ya.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;gf(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function ce(_e){for(var Pe=_e.target;Pe;Pe=Pe.parentNode){if(Pe==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Pe.className))break}return!1}dn(ie,"paste",function(_e){!ce(_e)||Ht(te,_e)||md(_e,te)||we<=11&&setTimeout(za(te,function(){return z.updateFromDOM()}),20)}),dn(ie,"compositionstart",function(_e){z.composing={data:_e.data,done:!1}}),dn(ie,"compositionupdate",function(_e){z.composing||(z.composing={data:_e.data,done:!1})}),dn(ie,"compositionend",function(_e){z.composing&&(_e.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),dn(ie,"touchstart",function(){return ne.forceCompositionEnd()}),dn(ie,"input",function(){z.composing||z.readFromDOMSoon()});function ye(_e){if(!(!ce(_e)||Ht(te,_e))){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()}),_e.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var Pe=lc(te);bl({lineWise:!0,text:Pe.text}),_e.type=="cut"&&te.operation(function(){te.setSelections(Pe.ranges,0,Ge),te.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var $e=Bs.text.join(` `);if(_e.clipboardData.setData("Text",$e),_e.clipboardData.getData("Text")==$e){_e.preventDefault();return}}var bt=vd(),Pt=bt.firstChild;te.display.lineSpace.insertBefore(bt,te.display.lineSpace.firstChild),Pt.value=Bs.text.join(` `);var gn=document.activeElement;sn(Pt),setTimeout(function(){te.display.lineSpace.removeChild(bt),gn.focus(),gn==ie&&ne.showPrimarySelection()},50)}}dn(ie,"copy",ye),dn(ie,"cut",ye)},Ya.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Ya.prototype.prepareSelection=function(){var x=ps(this.cm,!1);return x.focus=document.activeElement==this.div,x},Ya.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Ya.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ya.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ie=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ie.line=z.display.viewFrom&&yf(z,te)||{node:_e[0].measure.map[2],offset:0},$e=ie.linex.firstLine()&&(te=st(te.line-1,nn(x.doc,te.line-1).length)),ie.ch==nn(x.doc,ie.line).text.length&&ie.linez.viewTo-1)return!1;var ce,ye,_e;te.line==z.viewFrom||(ce=ra(x,te.line))==0?(ye=tr(z.view[0].line),_e=z.view[0].node):(ye=tr(z.view[ce].line),_e=z.view[ce-1].node.nextSibling);var Pe=ra(x,ie.line),$e,bt;if(Pe==z.view.length-1?($e=z.viewTo-1,bt=z.lineDiv.lastChild):($e=tr(z.view[Pe+1].line)-1,bt=z.view[Pe+1].node.previousSibling),!_e)return!1;for(var Pt=x.doc.splitLines(uh(x,_e,bt,ye,$e)),gn=jn(x.doc,st(ye,0),st($e,nn(x.doc,$e).text.length));Pt.length>1&&gn.length>1;)if(Zt(Pt)==Zt(gn))Pt.pop(),gn.pop(),$e--;else if(Pt[0]==gn[0])Pt.shift(),gn.shift(),ye++;else break;for(var on=0,Qn=0,yr=Pt[0],$r=gn[0],Xr=Math.min(yr.length,$r.length);onte.ch&&ai.charCodeAt(ai.length-Qn-1)==Zr.charCodeAt(Zr.length-Qn-1);)on--,Qn++;Pt[Pt.length-1]=ai.slice(0,ai.length-Qn).replace(/^\u200b+/,""),Pt[0]=Pt[0].slice(on).replace(/\u200b+$/,"");var Ki=st(ye,on),ji=st($e,gn.length?Zt(gn).length-Qn:0);if(Pt.length>1||Pt[0]||Ct(Ki,ji))return ec(x.doc,Pt,Ki,ji,"+input"),!0},Ya.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ya.prototype.reset=function(){this.forceCompositionEnd()},Ya.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ya.prototype.readFromDOMSoon=function(){var x=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(x.readDOMTimeout=null,x.composing)if(x.composing.done)x.composing=null;else return;x.updateFromDOM()},80))},Ya.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&ga(this.cm,function(){return Ri(x.cm)})},Ya.prototype.setUneditable=function(x){x.contentEditable="false"},Ya.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||za(this.cm,pd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Ya.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Ya.prototype.onContextMenu=function(){},Ya.prototype.resetPosition=function(){},Ya.prototype.needsContentAttribute=!0;function yf(x,z){var ne=ca(x,z.line);if(!ne||ne.hidden)return null;var te=nn(x.doc,z.line),ie=$a(ne,te,z.line),ce=Rn(te,x.doc.direction),ye="left";if(ce){var _e=Xt(ce,z.ch);ye=_e%2?"right":"left"}var Pe=ki(ie.map,z.ch,ye);return Pe.offset=Pe.collapse=="right"?Pe.end:Pe.start,Pe}function ch(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function cc(x,z){return z&&(x.bad=!0),x}function uh(x,z,ne,te,ie){var ce="",ye=!1,_e=x.doc.lineSeparator(),Pe=!1;function $e(on){return function(Qn){return Qn.id==on}}function bt(){ye&&(ce+=_e,Pe&&(ce+=_e),ye=Pe=!1)}function Pt(on){on&&(bt(),ce+=on)}function gn(on){if(on.nodeType==1){var Qn=on.getAttribute("cm-text");if(Qn){Pt(Qn);return}var yr=on.getAttribute("cm-marker"),$r;if(yr){var Xr=x.findMarks(st(te,0),st(ie+1,0),$e(+yr));Xr.length&&($r=Xr[0].find(0))&&Pt(jn(x.doc,$r.from,$r.to).join(_e));return}if(on.getAttribute("contenteditable")=="false")return;var ai=/^(pre|div|p|li|table|br)$/i.test(on.nodeName);if(!/^br$/i.test(on.nodeName)&&on.textContent.length==0)return;ai&&bt();for(var Zr=0;Zr=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),dn(ie,"paste",function(ye){Ht(te,ye)||md(ye,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function ce(ye){if(!Ht(te,ye)){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var _e=lc(te);bl({lineWise:!0,text:_e.text}),ye.type=="cut"?te.setSelections(_e.ranges,null,Ge):(ne.prevInput="",ie.value=_e.text.join(` `),sn(ie))}else return;ye.type=="cut"&&(te.state.cutIncoming=+new Date)}}dn(ie,"cut",ce),dn(ie,"copy",ce),dn(x.scroller,"paste",function(ye){if(!(Ji(x,ye)||Ht(te,ye))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var _e=new Event("paste");_e.clipboardData=ye.clipboardData,ie.dispatchEvent(_e)}}),dn(x.lineSpace,"selectstart",function(ye){Ji(x,ye)||Sr(ye)}),dn(ie,"compositionstart",function(){var ye=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:ye,range:te.markText(ye,te.getCursor("to"),{className:"CodeMirror-composing"})}}),dn(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},eo.prototype.createField=function(x){this.wrapper=vd(),this.textarea=this.wrapper.firstChild},eo.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},eo.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=ps(x);if(x.options.moveInputWithCursor){var ie=ha(x,ne.sel.primary().head,"div"),ce=z.wrapper.getBoundingClientRect(),ye=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+ye.top-ce.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+ye.left-ce.left))}return te},eo.prototype.showSelection=function(x){var z=this.cm,ne=z.display;_t(ne.cursorDiv,x.cursors),_t(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},eo.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ne=z.getSelection();this.textarea.value=ne,z.state.focused&&sn(this.textarea),ve&&we>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",ve&&we>=9&&(this.hasSelection=null))}},eo.prototype.getField=function(){return this.textarea},eo.prototype.supportsTouch=function(){return!1},eo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Je||Ot()!=this.textarea))try{this.textarea.focus()}catch(x){}},eo.prototype.blur=function(){this.textarea.blur()},eo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},eo.prototype.receivedFocus=function(){this.slowPoll()},eo.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},eo.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function ne(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,ne)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ne)},eo.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||Mn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ie=ne.value;if(ie==te&&!z.somethingSelected())return!1;if(ve&&we>=9&&this.hasSelection===ie||Le&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var ce=ie.charCodeAt(0);if(ce==8203&&!te&&(te="\u200B"),ce==8666)return this.reset(),this.cm.execCommand("undo")}for(var ye=0,_e=Math.min(te.length,ie.length);ye<_e&&te.charCodeAt(ye)==ie.charCodeAt(ye);)++ye;return ga(z,function(){pd(z,ie.slice(ye),te.length-ye,null,x.composing?"*compose":null),ie.length>1e3||ie.indexOf(` `)>-1?ne.value=x.prevInput="":x.prevInput=ie,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},eo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},eo.prototype.onKeyPress=function(){ve&&we>=9&&(this.hasSelection=null),this.fastPoll()},eo.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var ce=Ao(ne,x),ye=te.scroller.scrollTop;if(!ce||Ie)return;var _e=ne.options.resetSelectionOnContextMenu;_e&&ne.doc.sel.contains(ce)==-1&&za(ne,To)(ne.doc,Ps(ce),Ge);var Pe=ie.style.cssText,$e=z.wrapper.style.cssText,bt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(x.clientY-bt.top-5)+"px; left: "+(x.clientX-bt.left-5)+`px; z-index: 1000; background: `+(ve?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Pt;Ee&&(Pt=window.scrollY),te.input.focus(),Ee&&window.scrollTo(null,Pt),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=on,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function gn(){if(ie.selectionStart!=null){var yr=ne.somethingSelected(),$r="\u200B"+(yr?ie.value:"");ie.value="\u21DA",ie.value=$r,z.prevInput=yr?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=$r.length,te.selForContextMenu=ne.doc.sel}}function on(){if(z.contextMenuPending==on&&(z.contextMenuPending=!1,z.wrapper.style.cssText=$e,ie.style.cssText=Pe,ve&&we<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=ye),ie.selectionStart!=null)){(!ve||ve&&we<9)&&gn();var yr=0,$r=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?za(ne,td)(ne):yr++<10?te.detectingSelectAll=setTimeout($r,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout($r,200)}}if(ve&&we>=9&&gn(),ke){Or(x);var Qn=function(){Mr(window,"mouseup",Qn),setTimeout(on,20)};dn(window,"mouseup",Qn)}else setTimeout(on,50)},eo.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},eo.prototype.setUneditable=function(){},eo.prototype.needsContentAttribute=!1;function Hl(x,z){if(z=z?or(z):{},z.value=x.value,!z.tabindex&&x.tabIndex&&(z.tabindex=x.tabIndex),!z.placeholder&&x.placeholder&&(z.placeholder=x.placeholder),z.autofocus==null){var ne=Ot();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=_e.getValue()}var ie;if(x.form&&(dn(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var ce=x.form;ie=ce.submit;try{var ye=ce.submit=function(){te(),ce.submit=ie,ce.submit(),ce.submit=ye}}catch(Pe){}}z.finishInit=function(Pe){Pe.save=te,Pe.getTextArea=function(){return x},Pe.toTextArea=function(){Pe.toTextArea=isNaN,te(),x.parentNode.removeChild(Pe.getWrapperElement()),x.style.display="",x.form&&(Mr(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var _e=ia(function(Pe){return x.parentNode.insertBefore(Pe,x.nextSibling)},z);return _e}function uc(x){x.off=Mr,x.on=dn,x.wheelEventPixels=Gu,x.Doc=Mo,x.splitLines=yt,x.countColumn=Qe,x.findColumn=_n,x.isWordChar=pe,x.Pass=Yt,x.signal=at,x.Line=zn,x.changeEnd=Js,x.scrollbarModel=Yl,x.Pos=st,x.cmpPos=Ct,x.modes=qn,x.mimeModes=pr,x.resolveMode=ut,x.getMode=Dt,x.modeExtensions=Vt,x.extendMode=We,x.copyState=pt,x.startState=Bt,x.innerMode=zt,x.commands=ac,x.keyMap=Qa,x.keyName=zl,x.isModifierKey=Ic,x.lookupKey=rl,x.normalizeKeyMap=od,x.StringStream=en,x.SharedTextMarker=ya,x.TextMarker=hl,x.LineWidget=nc,x.e_preventDefault=Sr,x.e_stopPropagation=Tr,x.e_stop=Or,x.addClass=bn,x.contains=Kt,x.rmClass=Ue,x.keyNames=Os}oh(ia),yd(ia);var ol="iter insert remove copy getEditor constructor".split(" ");for(var _s in Mo.prototype)Mo.prototype.hasOwnProperty(_s)&&ht(ol,_s)<0&&(ia.prototype[_s]=function(x){return function(){return x.apply(this.doc,arguments)}}(Mo.prototype[_s]));return nr(Mo),ia.inputStyles={textarea:eo,contenteditable:Ya},ia.defineMode=function(x){!ia.defaults.mode&&x!="null"&&(ia.defaults.mode=x),$n.apply(this,arguments)},ia.defineMIME=qe,ia.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),ia.defineMIME("text/plain","null"),ia.defineExtension=function(x,z){ia.prototype[x]=z},ia.defineDocExtension=function(x,z){Mo.prototype[x]=z},ia.fromTextArea=Hl,uc(ia),ia.version="5.58.2",ia})},49047:function(En,Wt,se){(function(de){de(se(4631),se(29589),se(52539))})(function(de){"use strict";de.defineMode("markdown",function(He,Be){var Ve=de.getMode(He,"text/html"),ve=Ve.name=="null";function we(Qe){if(de.findModeByName){var Ce=de.findModeByName(Qe);Ce&&(Qe=Ce.mime||Ce.mimes[0])}var ht=de.getMode(He,Qe);return ht.name=="null"?null:ht}Be.highlightFormatting===void 0&&(Be.highlightFormatting=!1),Be.maxBlockquoteDepth===void 0&&(Be.maxBlockquoteDepth=0),Be.taskLists===void 0&&(Be.taskLists=!1),Be.strikethrough===void 0&&(Be.strikethrough=!1),Be.emoji===void 0&&(Be.emoji=!1),Be.fencedCodeBlockHighlighting===void 0&&(Be.fencedCodeBlockHighlighting=!0),Be.fencedCodeBlockDefaultMode===void 0&&(Be.fencedCodeBlockDefaultMode="text/plain"),Be.xml===void 0&&(Be.xml=!0),Be.tokenTypeOverrides===void 0&&(Be.tokenTypeOverrides={});var Ee={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var xe in Ee)Ee.hasOwnProperty(xe)&&Be.tokenTypeOverrides[xe]&&(Ee[xe]=Be.tokenTypeOverrides[xe]);var me=/^([*\-_])(?:\s*\1){2,}\s*$/,Ie=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ot=/^\[(x| )\](?=\s)/i,Oe=Be.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,St=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ft=/^[^#!\[\]*_\\<>` "'(~:]+/,it=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Je=/^\s*\[[^\]]+?\]:.*$/,Le=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,gt=" ";function qt(Qe,Ce,ht){return Ce.f=Ce.inline=ht,ht(Qe,Ce)}function tt(Qe,Ce,ht){return Ce.f=Ce.block=ht,ht(Qe,Ce)}function ct(Qe){return!Qe||!/\S/.test(Qe.string)}function ke(Qe){if(Qe.linkTitle=!1,Qe.linkHref=!1,Qe.linkText=!1,Qe.em=!1,Qe.strong=!1,Qe.strikethrough=!1,Qe.quote=0,Qe.indentedCode=!1,Qe.f==Ue){var Ce=ve;if(!Ce){var ht=de.innerMode(Ve,Qe.htmlState);Ce=ht.mode.name=="xml"&&ht.state.tagStart===null&&!ht.state.context&&ht.state.tokenize.isInText}Ce&&(Qe.f=kt,Qe.block=Se,Qe.htmlState=null)}return Qe.trailingSpace=0,Qe.trailingSpaceNewLine=!1,Qe.prevLine=Qe.thisLine,Qe.thisLine={stream:null},null}function Se(Qe,Ce){var ht=Qe.column()===Ce.indentation,Ut=ct(Ce.prevLine.stream),Yt=Ce.indentedCode,Ge=Ce.prevLine.hr,rt=Ce.list!==!1,jt=(Ce.listStack[Ce.listStack.length-1]||0)+3;Ce.indentedCode=!1;var _n=Ce.indentation;if(Ce.indentationDiff===null&&(Ce.indentationDiff=Ce.indentation,rt)){for(Ce.list=null;_n=4&&(Yt||Ce.prevLine.fencedCodeEnd||Ce.prevLine.header||Ut))return Qe.skipToEnd(),Ce.indentedCode=!0,Ee.code;if(Qe.eatSpace())return null;if(ht&&Ce.indentation<=jt&&(Zt=Qe.match(Oe))&&Zt[1].length<=6)return Ce.quote=0,Ce.header=Zt[1].length,Ce.thisLine.header=!0,Be.highlightFormatting&&(Ce.formatting="header"),Ce.f=Ce.inline,_t(Ce);if(Ce.indentation<=jt&&Qe.eat(">"))return Ce.quote=ht?1:Ce.quote+1,Be.highlightFormatting&&(Ce.formatting="quote"),Qe.eatSpace(),_t(Ce);if(!$t&&!Ce.setext&&ht&&Ce.indentation<=jt&&(Zt=Qe.match(Ie))){var yn=Zt[1]?"ol":"ul";return Ce.indentation=_n+Qe.current().length,Ce.list=!0,Ce.quote=0,Ce.listStack.push(Ce.indentation),Ce.em=!1,Ce.strong=!1,Ce.code=!1,Ce.strikethrough=!1,Be.taskLists&&Qe.match(ot,!1)&&(Ce.taskList=!0),Ce.f=Ce.inline,Be.highlightFormatting&&(Ce.formatting=["list","list-"+yn]),_t(Ce)}else{if(ht&&Ce.indentation<=jt&&(Zt=Qe.match(it,!0)))return Ce.quote=0,Ce.fencedEndRE=new RegExp(Zt[1]+"+ *$"),Ce.localMode=Be.fencedCodeBlockHighlighting&&we(Zt[2]||Be.fencedCodeBlockDefaultMode),Ce.localMode&&(Ce.localState=de.startState(Ce.localMode)),Ce.f=Ce.block=je,Be.highlightFormatting&&(Ce.formatting="code-block"),Ce.code=-1,_t(Ce);if(Ce.setext||(!rn||!rt)&&!Ce.quote&&Ce.list===!1&&!Ce.code&&!$t&&!Je.test(Qe.string)&&(Zt=Qe.lookAhead(1))&&(Zt=Zt.match(St)))return Ce.setext?(Ce.header=Ce.setext,Ce.setext=0,Qe.skipToEnd(),Be.highlightFormatting&&(Ce.formatting="header")):(Ce.header=Zt[0].charAt(0)=="="?1:2,Ce.setext=Ce.header),Ce.thisLine.header=!0,Ce.f=Ce.inline,_t(Ce);if($t)return Qe.skipToEnd(),Ce.hr=!0,Ce.thisLine.hr=!0,Ee.hr;if(Qe.peek()==="[")return qt(Qe,Ce,Nt)}return qt(Qe,Ce,Ce.inline)}function Ue(Qe,Ce){var ht=Ve.token(Qe,Ce.htmlState);if(!ve){var Ut=de.innerMode(Ve,Ce.htmlState);(Ut.mode.name=="xml"&&Ut.state.tagStart===null&&!Ut.state.context&&Ut.state.tokenize.isInText||Ce.md_inside&&Qe.current().indexOf(">")>-1)&&(Ce.f=kt,Ce.block=Se,Ce.htmlState=null)}return ht}function je(Qe,Ce){var ht=Ce.listStack[Ce.listStack.length-1]||0,Ut=Ce.indentation=Qe.quote?Ce.push(Ee.formatting+"-"+Qe.formatting[ht]+"-"+Qe.quote):Ce.push("error"))}if(Qe.taskOpen)return Ce.push("meta"),Ce.length?Ce.join(" "):null;if(Qe.taskClosed)return Ce.push("property"),Ce.length?Ce.join(" "):null;if(Qe.linkHref?Ce.push(Ee.linkHref,"url"):(Qe.strong&&Ce.push(Ee.strong),Qe.em&&Ce.push(Ee.em),Qe.strikethrough&&Ce.push(Ee.strikethrough),Qe.emoji&&Ce.push(Ee.emoji),Qe.linkText&&Ce.push(Ee.linkText),Qe.code&&Ce.push(Ee.code),Qe.image&&Ce.push(Ee.image),Qe.imageAltText&&Ce.push(Ee.imageAltText,"link"),Qe.imageMarker&&Ce.push(Ee.imageMarker)),Qe.header&&Ce.push(Ee.header,Ee.header+"-"+Qe.header),Qe.quote&&(Ce.push(Ee.quote),!Be.maxBlockquoteDepth||Be.maxBlockquoteDepth>=Qe.quote?Ce.push(Ee.quote+"-"+Qe.quote):Ce.push(Ee.quote+"-"+Be.maxBlockquoteDepth)),Qe.list!==!1){var Ut=(Qe.listStack.length-1)%3;Ut?Ut===1?Ce.push(Ee.list2):Ce.push(Ee.list3):Ce.push(Ee.list1)}return Qe.trailingSpaceNewLine?Ce.push("trailing-space-new-line"):Qe.trailingSpace&&Ce.push("trailing-space-"+(Qe.trailingSpace%2?"a":"b")),Ce.length?Ce.join(" "):null}function vt(Qe,Ce){if(Qe.match(ft,!0))return _t(Ce)}function kt(Qe,Ce){var ht=Ce.text(Qe,Ce);if(typeof ht!="undefined")return ht;if(Ce.list)return Ce.list=null,_t(Ce);if(Ce.taskList){var Ut=Qe.match(ot,!0)[1]===" ";return Ut?Ce.taskOpen=!0:Ce.taskClosed=!0,Be.highlightFormatting&&(Ce.formatting="task"),Ce.taskList=!1,_t(Ce)}if(Ce.taskOpen=!1,Ce.taskClosed=!1,Ce.header&&Qe.match(/^#+$/,!0))return Be.highlightFormatting&&(Ce.formatting="header"),_t(Ce);var Yt=Qe.next();if(Ce.linkTitle){Ce.linkTitle=!1;var Ge=Yt;Yt==="("&&(Ge=")"),Ge=(Ge+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var rt="^\\s*(?:[^"+Ge+"\\\\]+|\\\\\\\\|\\\\.)"+Ge;if(Qe.match(new RegExp(rt),!0))return Ee.linkHref}if(Yt==="`"){var jt=Ce.formatting;Be.highlightFormatting&&(Ce.formatting="code"),Qe.eatWhile("`");var _n=Qe.current().length;if(Ce.code==0&&(!Ce.quote||_n==1))return Ce.code=_n,_t(Ce);if(_n==Ce.code){var rn=_t(Ce);return Ce.code=0,rn}else return Ce.formatting=jt,_t(Ce)}else if(Ce.code)return _t(Ce);if(Yt==="\\"&&(Qe.next(),Be.highlightFormatting)){var $t=_t(Ce),Zt=Ee.formatting+"-escape";return $t?$t+" "+Zt:Zt}if(Yt==="!"&&Qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ce.imageMarker=!0,Ce.image=!0,Be.highlightFormatting&&(Ce.formatting="image"),_t(Ce);if(Yt==="["&&Ce.imageMarker&&Qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ce.imageMarker=!1,Ce.imageAltText=!0,Be.highlightFormatting&&(Ce.formatting="image"),_t(Ce);if(Yt==="]"&&Ce.imageAltText){Be.highlightFormatting&&(Ce.formatting="image");var $t=_t(Ce);return Ce.imageAltText=!1,Ce.image=!1,Ce.inline=Ce.f=Kt,$t}if(Yt==="["&&!Ce.image)return Ce.linkText&&Qe.match(/^.*?\]/)||(Ce.linkText=!0,Be.highlightFormatting&&(Ce.formatting="link")),_t(Ce);if(Yt==="]"&&Ce.linkText){Be.highlightFormatting&&(Ce.formatting="link");var $t=_t(Ce);return Ce.linkText=!1,Ce.inline=Ce.f=Qe.match(/\(.*?\)| ?\[.*?\]/,!1)?Kt:kt,$t}if(Yt==="<"&&Qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ce.f=Ce.inline=Xe,Be.highlightFormatting&&(Ce.formatting="link");var $t=_t(Ce);return $t?$t+=" ":$t="",$t+Ee.linkInline}if(Yt==="<"&&Qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ce.f=Ce.inline=Xe,Be.highlightFormatting&&(Ce.formatting="link");var $t=_t(Ce);return $t?$t+=" ":$t="",$t+Ee.linkEmail}if(Be.xml&&Yt==="<"&&Qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var yn=Qe.string.indexOf(">",Qe.pos);if(yn!=-1){var ln=Qe.string.substring(Qe.start,yn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ln)&&(Ce.md_inside=!0)}return Qe.backUp(1),Ce.htmlState=de.startState(Ve),tt(Qe,Ce,Ue)}if(Be.xml&&Yt==="<"&&Qe.match(/^\/\w*?>/))return Ce.md_inside=!1,"tag";if(Yt==="*"||Yt==="_"){for(var Ae=1,ue=Qe.pos==1?" ":Qe.string.charAt(Qe.pos-2);Ae<3&&Qe.eat(Yt);)Ae++;var le=Qe.peek()||" ",pe=!/\s/.test(le)&&(!Le.test(le)||/\s/.test(ue)||Le.test(ue)),he=!/\s/.test(ue)&&(!Le.test(ue)||/\s/.test(le)||Le.test(le)),oe=null,Te=null;if(Ae%2&&(!Ce.em&&pe&&(Yt==="*"||!he||Le.test(ue))?oe=!0:Ce.em==Yt&&he&&(Yt==="*"||!pe||Le.test(le))&&(oe=!1)),Ae>1&&(!Ce.strong&&pe&&(Yt==="*"||!he||Le.test(ue))?Te=!0:Ce.strong==Yt&&he&&(Yt==="*"||!pe||Le.test(le))&&(Te=!1)),Te!=null||oe!=null){Be.highlightFormatting&&(Ce.formatting=oe==null?"strong":Te==null?"em":"strong em"),oe===!0&&(Ce.em=Yt),Te===!0&&(Ce.strong=Yt);var rn=_t(Ce);return oe===!1&&(Ce.em=!1),Te===!1&&(Ce.strong=!1),rn}}else if(Yt===" "&&(Qe.eat("*")||Qe.eat("_"))){if(Qe.peek()===" ")return _t(Ce);Qe.backUp(1)}if(Be.strikethrough){if(Yt==="~"&&Qe.eatWhile(Yt)){if(Ce.strikethrough){Be.highlightFormatting&&(Ce.formatting="strikethrough");var rn=_t(Ce);return Ce.strikethrough=!1,rn}else if(Qe.match(/^[^\s]/,!1))return Ce.strikethrough=!0,Be.highlightFormatting&&(Ce.formatting="strikethrough"),_t(Ce)}else if(Yt===" "&&Qe.match(/^~~/,!0)){if(Qe.peek()===" ")return _t(Ce);Qe.backUp(2)}}if(Be.emoji&&Yt===":"&&Qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ce.emoji=!0,Be.highlightFormatting&&(Ce.formatting="emoji");var Ye=_t(Ce);return Ce.emoji=!1,Ye}return Yt===" "&&(Qe.match(/^ +$/,!1)?Ce.trailingSpace++:Ce.trailingSpace&&(Ce.trailingSpaceNewLine=!0)),_t(Ce)}function Xe(Qe,Ce){var ht=Qe.next();if(ht===">"){Ce.f=Ce.inline=kt,Be.highlightFormatting&&(Ce.formatting="link");var Ut=_t(Ce);return Ut?Ut+=" ":Ut="",Ut+Ee.linkInline}return Qe.match(/^[^>]+/,!0),Ee.linkInline}function Kt(Qe,Ce){if(Qe.eatSpace())return null;var ht=Qe.next();return ht==="("||ht==="["?(Ce.f=Ce.inline=bn(ht==="("?")":"]"),Be.highlightFormatting&&(Ce.formatting="link-string"),Ce.linkHref=!0,_t(Ce)):"error"}var Ot={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function bn(Qe){return function(Ce,ht){var Ut=Ce.next();if(Ut===Qe){ht.f=ht.inline=kt,Be.highlightFormatting&&(ht.formatting="link-string");var Yt=_t(ht);return ht.linkHref=!1,Yt}return Ce.match(Ot[Qe]),ht.linkHref=!0,_t(ht)}}function Nt(Qe,Ce){return Qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ce.f=sn,Qe.next(),Be.highlightFormatting&&(Ce.formatting="link"),Ce.linkText=!0,_t(Ce)):qt(Qe,Ce,kt)}function sn(Qe,Ce){if(Qe.match(/^\]:/,!0)){Ce.f=Ce.inline=Cn,Be.highlightFormatting&&(Ce.formatting="link");var ht=_t(Ce);return Ce.linkText=!1,ht}return Qe.match(/^([^\]\\]|\\.)+/,!0),Ee.linkText}function Cn(Qe,Ce){return Qe.eatSpace()?null:(Qe.match(/^[^\s]+/,!0),Qe.peek()===void 0?Ce.linkTitle=!0:Qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ce.f=Ce.inline=kt,Ee.linkHref+" url")}var or={startState:function(){return{f:Se,prevLine:{stream:null},thisLine:{stream:null},block:Se,htmlState:null,indentation:0,inline:kt,text:vt,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Qe){return{f:Qe.f,prevLine:Qe.prevLine,thisLine:Qe.thisLine,block:Qe.block,htmlState:Qe.htmlState&&de.copyState(Ve,Qe.htmlState),indentation:Qe.indentation,localMode:Qe.localMode,localState:Qe.localMode?de.copyState(Qe.localMode,Qe.localState):null,inline:Qe.inline,text:Qe.text,formatting:!1,linkText:Qe.linkText,linkTitle:Qe.linkTitle,linkHref:Qe.linkHref,code:Qe.code,em:Qe.em,strong:Qe.strong,strikethrough:Qe.strikethrough,emoji:Qe.emoji,header:Qe.header,setext:Qe.setext,hr:Qe.hr,taskList:Qe.taskList,list:Qe.list,listStack:Qe.listStack.slice(0),quote:Qe.quote,indentedCode:Qe.indentedCode,trailingSpace:Qe.trailingSpace,trailingSpaceNewLine:Qe.trailingSpaceNewLine,md_inside:Qe.md_inside,fencedEndRE:Qe.fencedEndRE}},token:function(Qe,Ce){if(Ce.formatting=!1,Qe!=Ce.thisLine.stream){if(Ce.header=0,Ce.hr=!1,Qe.match(/^\s*$/,!0))return ke(Ce),null;if(Ce.prevLine=Ce.thisLine,Ce.thisLine={stream:Qe},Ce.taskList=!1,Ce.trailingSpace=0,Ce.trailingSpaceNewLine=!1,!Ce.localState&&(Ce.f=Ce.block,Ce.f!=Ue)){var ht=Qe.match(/^\s*/,!0)[0].replace(/\t/g,gt).length;if(Ce.indentation=ht,Ce.indentationDiff=null,ht>0)return null}}return Ce.f(Qe,Ce)},innerMode:function(Qe){return Qe.block==Ue?{state:Qe.htmlState,mode:Ve}:Qe.localState?{state:Qe.localState,mode:Qe.localMode}:{state:Qe,mode:or}},indent:function(Qe,Ce,ht){return Qe.block==Ue&&Ve.indent?Ve.indent(Qe.htmlState,Ce,ht):Qe.localState&&Qe.localMode.indent?Qe.localMode.indent(Qe.localState,Ce,ht):de.Pass},blankLine:ke,getType:_t,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return or},"xml"),de.defineMIME("text/markdown","markdown"),de.defineMIME("text/x-markdown","markdown")})},52539:function(En,Wt,se){(function(de){de(se(4631))})(function(de){"use strict";de.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var He=0;He-1&&Ve.substring(Ee+1,Ve.length);if(xe)return de.findModeByExtension(xe)},de.findModeByName=function(Ve){Ve=Ve.toLowerCase();for(var ve=0;ve0?ft.cmdState[ft.cmdState.length-1]:null}function we(ft){var it=ft.cmdState.pop();it&&it.closeBracket()}function Ee(ft){for(var it=ft.cmdState,Je=it.length-1;Je>=0;Je--){var Le=it[Je];if(Le.name!="DEFAULT")return Le}return{styleIdentifier:function(){return null}}}function xe(ft,it,Je){return function(){this.name=ft,this.bracketNo=0,this.style=it,this.styles=Je,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var me={};me.importmodule=xe("importmodule","tag",["string","builtin"]),me.documentclass=xe("documentclass","tag",["","atom"]),me.usepackage=xe("usepackage","tag",["atom"]),me.begin=xe("begin","tag",["atom"]),me.end=xe("end","tag",["atom"]),me.label=xe("label","tag",["atom"]),me.ref=xe("ref","tag",["atom"]),me.eqref=xe("eqref","tag",["atom"]),me.cite=xe("cite","tag",["atom"]),me.bibitem=xe("bibitem","tag",["atom"]),me.Bibitem=xe("Bibitem","tag",["atom"]),me.RBibitem=xe("RBibitem","tag",["atom"]),me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ie(ft,it){ft.f=it}function ot(ft,it){var Je;if(ft.match(/^\\[a-zA-Z@]+/)){var Le=ft.current().slice(1);return Je=me.hasOwnProperty(Le)?me[Le]:me.DEFAULT,Je=new Je,Ve(it,Je),Ie(it,St),Je.style}if(ft.match(/^\\[$&%#{}_]/)||ft.match(/^\\[,;!\/\\]/))return"tag";if(ft.match("\\["))return Ie(it,function(qt,tt){return Oe(qt,tt,"\\]")}),"keyword";if(ft.match("\\("))return Ie(it,function(qt,tt){return Oe(qt,tt,"\\)")}),"keyword";if(ft.match("$$"))return Ie(it,function(qt,tt){return Oe(qt,tt,"$$")}),"keyword";if(ft.match("$"))return Ie(it,function(qt,tt){return Oe(qt,tt,"$")}),"keyword";var gt=ft.next();if(gt=="%")return ft.skipToEnd(),"comment";if(gt=="}"||gt=="]"){if(Je=ve(it),Je)Je.closeBracket(gt),Ie(it,St);else return"error";return"bracket"}else return gt=="{"||gt=="["?(Je=me.DEFAULT,Je=new Je,Ve(it,Je),"bracket"):/\d/.test(gt)?(ft.eatWhile(/[\w.%]/),"atom"):(ft.eatWhile(/[\w\-_]/),Je=Ee(it),Je.name=="begin"&&(Je.argument=ft.current()),Je.styleIdentifier())}function Oe(ft,it,Je){if(ft.eatSpace())return null;if(Je&&ft.match(Je))return Ie(it,ot),"keyword";if(ft.match(/^\\[a-zA-Z@]+/))return"tag";if(ft.match(/^[a-zA-Z]+/))return"variable-2";if(ft.match(/^\\[$&%#{}_]/)||ft.match(/^\\[,;!\/]/)||ft.match(/^[\^_&]/))return"tag";if(ft.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ft.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Le=ft.next();return Le=="{"||Le=="}"||Le=="["||Le=="]"||Le=="("||Le==")"?"bracket":Le=="%"?(ft.skipToEnd(),"comment"):"error"}function St(ft,it){var Je=ft.peek(),Le;return Je=="{"||Je=="["?(Le=ve(it),Le.openBracket(Je),ft.eat(Je),Ie(it,ot),"bracket"):/[ \t\r]/.test(Je)?(ft.eat(Je),null):(Ie(it,ot),we(it),ot(ft,it))}return{startState:function(){var ft=Be.inMathMode?function(it,Je){return Oe(it,Je)}:ot;return{cmdState:[],f:ft}},copyState:function(ft){return{cmdState:ft.cmdState.slice(),f:ft.f}},token:function(ft,it){return it.f(ft,it)},blankLine:function(ft){ft.f=ot,ft.cmdState.length=0},lineComment:"%"}}),de.defineMIME("text/x-stex","stex"),de.defineMIME("text/x-latex","stex")})},29589:function(En,Wt,se){(function(de){de(se(4631))})(function(de){"use strict";var He={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Be={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};de.defineMode("xml",function(Ve,ve){var we=Ve.indentUnit,Ee={},xe=ve.htmlMode?He:Be;for(var me in xe)Ee[me]=xe[me];for(var me in ve)Ee[me]=ve[me];var Ie,ot;function Oe(Xe,Kt){function Ot(sn){return Kt.tokenize=sn,sn(Xe,Kt)}var bn=Xe.next();if(bn=="<")return Xe.eat("!")?Xe.eat("[")?Xe.match("CDATA[")?Ot(it("atom","]]>")):null:Xe.match("--")?Ot(it("comment","-->")):Xe.match("DOCTYPE",!0,!0)?(Xe.eatWhile(/[\w\._\-]/),Ot(Je(1))):null:Xe.eat("?")?(Xe.eatWhile(/[\w\._\-]/),Kt.tokenize=it("meta","?>"),"meta"):(Ie=Xe.eat("/")?"closeTag":"openTag",Kt.tokenize=St,"tag bracket");if(bn=="&"){var Nt;return Xe.eat("#")?Xe.eat("x")?Nt=Xe.eatWhile(/[a-fA-F\d]/)&&Xe.eat(";"):Nt=Xe.eatWhile(/[\d]/)&&Xe.eat(";"):Nt=Xe.eatWhile(/[\w\.\-:]/)&&Xe.eat(";"),Nt?"atom":"error"}else return Xe.eatWhile(/[^&<]/),null}Oe.isInText=!0;function St(Xe,Kt){var Ot=Xe.next();if(Ot==">"||Ot=="/"&&Xe.eat(">"))return Kt.tokenize=Oe,Ie=Ot==">"?"endTag":"selfcloseTag","tag bracket";if(Ot=="=")return Ie="equals",null;if(Ot=="<"){Kt.tokenize=Oe,Kt.state=tt,Kt.tagName=Kt.tagStart=null;var bn=Kt.tokenize(Xe,Kt);return bn?bn+" tag error":"tag error"}else return/[\'\"]/.test(Ot)?(Kt.tokenize=ft(Ot),Kt.stringStartCol=Xe.column(),Kt.tokenize(Xe,Kt)):(Xe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ft(Xe){var Kt=function(Ot,bn){for(;!Ot.eol();)if(Ot.next()==Xe){bn.tokenize=St;break}return"string"};return Kt.isInAttribute=!0,Kt}function it(Xe,Kt){return function(Ot,bn){for(;!Ot.eol();){if(Ot.match(Kt)){bn.tokenize=Oe;break}Ot.next()}return Xe}}function Je(Xe){return function(Kt,Ot){for(var bn;(bn=Kt.next())!=null;){if(bn=="<")return Ot.tokenize=Je(Xe+1),Ot.tokenize(Kt,Ot);if(bn==">")if(Xe==1){Ot.tokenize=Oe;break}else return Ot.tokenize=Je(Xe-1),Ot.tokenize(Kt,Ot)}return"meta"}}function Le(Xe,Kt,Ot){this.prev=Xe.context,this.tagName=Kt,this.indent=Xe.indented,this.startOfLine=Ot,(Ee.doNotIndent.hasOwnProperty(Kt)||Xe.context&&Xe.context.noIndent)&&(this.noIndent=!0)}function gt(Xe){Xe.context&&(Xe.context=Xe.context.prev)}function qt(Xe,Kt){for(var Ot;;){if(!Xe.context||(Ot=Xe.context.tagName,!Ee.contextGrabbers.hasOwnProperty(Ot)||!Ee.contextGrabbers[Ot].hasOwnProperty(Kt)))return;gt(Xe)}}function tt(Xe,Kt,Ot){return Xe=="openTag"?(Ot.tagStart=Kt.column(),ct):Xe=="closeTag"?ke:tt}function ct(Xe,Kt,Ot){return Xe=="word"?(Ot.tagName=Kt.current(),ot="tag",je):Ee.allowMissingTagName&&Xe=="endTag"?(ot="tag bracket",je(Xe,Kt,Ot)):(ot="error",ct)}function ke(Xe,Kt,Ot){if(Xe=="word"){var bn=Kt.current();return Ot.context&&Ot.context.tagName!=bn&&Ee.implicitlyClosed.hasOwnProperty(Ot.context.tagName)&>(Ot),Ot.context&&Ot.context.tagName==bn||Ee.matchClosing===!1?(ot="tag",Se):(ot="tag error",Ue)}else return Ee.allowMissingTagName&&Xe=="endTag"?(ot="tag bracket",Se(Xe,Kt,Ot)):(ot="error",Ue)}function Se(Xe,Kt,Ot){return Xe!="endTag"?(ot="error",Se):(gt(Ot),tt)}function Ue(Xe,Kt,Ot){return ot="error",Se(Xe,Kt,Ot)}function je(Xe,Kt,Ot){if(Xe=="word")return ot="attribute",_t;if(Xe=="endTag"||Xe=="selfcloseTag"){var bn=Ot.tagName,Nt=Ot.tagStart;return Ot.tagName=Ot.tagStart=null,Xe=="selfcloseTag"||Ee.autoSelfClosers.hasOwnProperty(bn)?qt(Ot,bn):(qt(Ot,bn),Ot.context=new Le(Ot,bn,Nt==Ot.indented)),tt}return ot="error",je}function _t(Xe,Kt,Ot){return Xe=="equals"?vt:(Ee.allowMissing||(ot="error"),je(Xe,Kt,Ot))}function vt(Xe,Kt,Ot){return Xe=="string"?kt:Xe=="word"&&Ee.allowUnquoted?(ot="string",je):(ot="error",je(Xe,Kt,Ot))}function kt(Xe,Kt,Ot){return Xe=="string"?kt:je(Xe,Kt,Ot)}return{startState:function(Xe){var Kt={tokenize:Oe,state:tt,indented:Xe||0,tagName:null,tagStart:null,context:null};return Xe!=null&&(Kt.baseIndent=Xe),Kt},token:function(Xe,Kt){if(!Kt.tagName&&Xe.sol()&&(Kt.indented=Xe.indentation()),Xe.eatSpace())return null;Ie=null;var Ot=Kt.tokenize(Xe,Kt);return(Ot||Ie)&&Ot!="comment"&&(ot=null,Kt.state=Kt.state(Ie||Ot,Xe,Kt),ot&&(Ot=ot=="error"?Ot+" error":ot)),Ot},indent:function(Xe,Kt,Ot){var bn=Xe.context;if(Xe.tokenize.isInAttribute)return Xe.tagStart==Xe.indented?Xe.stringStartCol+1:Xe.indented+we;if(bn&&bn.noIndent)return de.Pass;if(Xe.tokenize!=St&&Xe.tokenize!=Oe)return Ot?Ot.match(/^(\s*)/)[0].length:0;if(Xe.tagName)return Ee.multilineTagIndentPastTag!==!1?Xe.tagStart+Xe.tagName.length+2:Xe.tagStart+we*(Ee.multilineTagIndentFactor||1);if(Ee.alignCDATA&&/$/,blockCommentStart:"",configuration:Ee.htmlMode?"html":"xml",helperType:Ee.htmlMode?"html":"xml",skipAttribute:function(Xe){Xe.state==vt&&(Xe.state=je)},xmlCurrentTag:function(Xe){return Xe.tagName?{name:Xe.tagName,close:Xe.type=="closeTag"}:null},xmlCurrentContext:function(Xe){for(var Kt=[],Ot=Xe.context;Ot;Ot=Ot.prev)Ot.tagName&&Kt.push(Ot.tagName);return Kt.reverse()}}}),de.defineMIME("text/xml","xml"),de.defineMIME("application/xml","xml"),de.mimeModes.hasOwnProperty("text/html")||de.defineMIME("text/html",{name:"xml",htmlMode:!0})})},15979:function(En,Wt,se){"use strict";se.d(Wt,{hP:function(){return ln}});var de=function(Ae,ue){return(de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,pe){le.__proto__=pe}||function(le,pe){for(var he in pe)Object.prototype.hasOwnProperty.call(pe,he)&&(le[he]=pe[he])})(Ae,ue)};function He(Ae,ue){function le(){this.constructor=Ae}de(Ae,ue),Ae.prototype=ue===null?Object.create(ue):(le.prototype=ue.prototype,new le)}function Be(Ae,ue,le,pe){return new(le||(le=Promise))(function(he,oe){function Te(Rt){try{Lt(pe.next(Rt))}catch(Ft){oe(Ft)}}function Ye(Rt){try{Lt(pe.throw(Rt))}catch(Ft){oe(Ft)}}function Lt(Rt){var Ft;Rt.done?he(Rt.value):(Ft=Rt.value,Ft instanceof le?Ft:new le(function(Jt){Jt(Ft)})).then(Te,Ye)}Lt((pe=pe.apply(Ae,ue||[])).next())})}function Ve(Ae,ue){var le,pe,he,oe,Te={label:0,sent:function(){if(1&he[0])throw he[1];return he[1]},trys:[],ops:[]};return oe={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function Ye(Lt){return function(Rt){return function(Ft){if(le)throw new TypeError("Generator is already executing.");for(;Te;)try{if(le=1,pe&&(he=2&Ft[0]?pe.return:Ft[0]?pe.throw||((he=pe.return)&&he.call(pe),0):pe.next)&&!(he=he.call(pe,Ft[1])).done)return he;switch(pe=0,he&&(Ft=[2&Ft[0],he.value]),Ft[0]){case 0:case 1:he=Ft;break;case 4:return Te.label++,{value:Ft[1],done:!1};case 5:Te.label++,pe=Ft[1],Ft=[0];continue;case 7:Ft=Te.ops.pop(),Te.trys.pop();continue;default:if(he=Te.trys,!((he=he.length>0&&he[he.length-1])||Ft[0]!==6&&Ft[0]!==2)){Te=0;continue}if(Ft[0]===3&&(!he||Ft[1]>he[0]&&Ft[1]',"select"),this.addActionButton(pe,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(pe,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(pe,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(pe,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(pe,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(pe,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(pe,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(oe){var Te=document.createElement("div");Te.className=""+le.toolbarButtonStyleClass.name,Te.setAttribute("data-type-name",oe.typeName),Te.innerHTML=oe.icon,Te.addEventListener("click",function(){le.markerToolbarButtonClicked(Te,oe)}),le.buttons.push(Te),le.markerButtons.push(Te)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var he=document.createElement("div");he.className=this.toolbarBlockStyleClass.name,he.style.whiteSpace="nowrap",he.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(he),this.addActionButton(he,'',"render"),this.addActionButton(he,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Ae.prototype.addButtonClickListener=function(ue){this.buttonClickListeners.push(ue)},Ae.prototype.removeButtonClickListener=function(ue){this.buttonClickListeners.indexOf(ue)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ue),1)},Ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ue=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var le=0;le0&&this.buttonClickListeners.forEach(function(pe){return pe("marker",le)}),this.markerButtonOverflowBlock.style.display="none"},Ae.prototype.actionToolbarButtonClicked=function(ue,le){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(pe){return pe("action",le)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ae.prototype.setActiveButton=function(ue){this.resetButtonStyles(),ue.className=ue.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ae.prototype.setActiveMarkerButton=function(ue){var le=this.markerButtons.find(function(pe){return pe.getAttribute("data-type-name")===ue});le&&this.setActiveButton(le)},Ae.prototype.setCurrentMarker=function(ue){var le=this;this.currentMarker=ue,this.buttons.filter(function(pe){return/delete|notes/.test(pe.getAttribute("data-action"))}).forEach(function(pe){le.currentMarker===void 0?(pe.style.fillOpacity="0.4",pe.style.pointerEvents="none"):(pe.style.fillOpacity="1",pe.style.pointerEvents="all")})},Ae}(),ft=function(){function Ae(ue,le,pe,he){this.panels=[],this.panelButtons=[],this.markerjsContainer=ue,this.displayMode=le,this.uiStyleSettings=pe,this.styles=he,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ae.prototype.addStyles=function(){var ue;this.toolboxStyleClass=this.styles.addClass(new Oe("toolbox",` width: 100%; flex-shrink: 0; display: flex; flex-direction: column; font-family: sans-serif; `+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+` box-sizing: content-box; `+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+` `+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` `+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` overflow: hidden; `)),this.toolboxStyleColorsClass=this.styles.addClass(new Oe("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var le=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Oe("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Oe("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Oe("toolbox-panel-row",` display: flex; `+(this.displayMode==="inline"?"position: absolute;":"")+` `+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+` cursor: default; height: `+1.5*this.uiStyleSettings.toolbarHeight+`px; `+(this.displayMode==="inline"?"width: 100%;":"")+` box-sizing: content-box; `)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Oe("toolbox-panel-row_colors",` background-color: `+((ue=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ue!==void 0?ue:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Oe("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px; padding: `+le+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Oe("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Oe("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new ot("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new ot("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},Ae.prototype.show=function(ue){var le;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolboxStyleClass.name+" "+((le=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&le!==void 0?le:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ae.prototype.setPanelButtons=function(ue){var le,pe,he=this;this.panels=ue,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((le=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&le!==void 0?le:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((pe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&pe!==void 0?pe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(oe){var Te;oe.uiStyleSettings=he.uiStyleSettings;var Ye=document.createElement("div");Ye.className=he.toolboxButtonStyleClass.name+" "+((Te=he.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Te!==void 0?Te:he.toolboxButtonStyleColorsClass.name),Ye.innerHTML=oe.icon,Ye.title=oe.title,Ye.addEventListener("click",function(){he.panelButtonClick(oe)}),he.panelButtons.push(Ye),he.buttonRow.appendChild(Ye)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ae.prototype.panelButtonClick=function(ue){var le=this,pe=-1;if(ue!==this.activePanel){pe=this.panels.indexOf(ue),this.panelRow.innerHTML="";var he=ue.getUi();he.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(he),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ue}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){le.displayMode==="inline"?le.panelRow.style.display="none":le.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(oe,Te){var Ye,Lt;oe.className=le.toolboxButtonStyleClass.name+" "+(Te===pe?""+((Ye=le.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ye!==void 0?Ye:le.toolboxActiveButtonStyleColorsClass.name):""+((Lt=le.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Lt!==void 0?Lt:le.toolboxButtonStyleColorsClass.name))})},Ae}(),it=function(Ae,ue){this.title=Ae,this.icon=ue},Je=function(Ae){function ue(le,pe,he,oe){var Te=Ae.call(this,le,oe||'')||this;return Te.colors=[],Te.addTransparent=!1,Te.colorBoxes=[],Te.colors=pe,Te.currentColor=he,Te.setCurrentColor=Te.setCurrentColor.bind(Te),Te.getColorBox=Te.getColorBox.bind(Te),Te}return He(ue,Ae),ue.prototype.getUi=function(){var le=this,pe=document.createElement("div");return pe.style.overflow="hidden",pe.style.whiteSpace="nowrap",this.colors.forEach(function(he){var oe=le.getColorBox(he);pe.appendChild(oe),le.colorBoxes.push(oe)}),pe},ue.prototype.getColorBox=function(le){var pe=this,he=this.uiStyleSettings.toolbarHeight/4,oe=this.uiStyleSettings.toolbarHeight-he,Te=document.createElement("div");Te.style.display="inline-block",Te.style.boxSizing="content-box",Te.style.width=oe-2+"px",Te.style.height=oe-2+"px",Te.style.padding="1px",Te.style.marginRight="2px",Te.style.marginBottom="2px",Te.style.borderWidth="2px",Te.style.borderStyle="solid",Te.style.borderRadius=(oe+2)/2+"px",Te.style.borderColor=le===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Te.addEventListener("click",function(){pe.setCurrentColor(le,Te)});var Ye=document.createElement("div");return Ye.style.display="inline-block",Ye.style.width=oe-2+"px",Ye.style.height=oe-2+"px",Ye.style.backgroundColor=le,Ye.style.borderRadius=oe/2+"px",le==="transparent"&&(Ye.style.fill=this.uiStyleSettings.toolboxAccentColor,Ye.innerHTML=` `),Te.appendChild(Ye),Te},ue.prototype.setCurrentColor=function(le,pe){var he=this;this.currentColor=le,this.colorBoxes.forEach(function(oe){oe.style.borderColor=oe===pe?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(le)},ue}(it),Le=function(){function Ae(ue,le,pe){this._state="new",this._isSelected=!1,this._container=ue,this._overlayContainer=le,this.globalSettings=pe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ae.prototype.ownsTarget=function(ue){return!1},Object.defineProperty(Ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ae.prototype.pointerDown=function(ue,le){},Ae.prototype.dblClick=function(ue,le){},Ae.prototype.manipulate=function(ue){},Ae.prototype.pointerUp=function(ue){this.stateChanged()},Ae.prototype.dispose=function(){},Ae.prototype.addMarkerVisualToContainer=function(ue){this.container.childNodes.length>0?this.container.insertBefore(ue,this.container.childNodes[0]):this.container.appendChild(ue)},Ae.prototype.getState=function(){return{typeName:Ae.typeName,state:this.state,notes:this.notes}},Ae.prototype.restoreState=function(ue){this._state=ue.state,this.notes=ue.notes},Ae.prototype.scale=function(ue,le){},Ae.prototype.colorChanged=function(ue){this.onColorChanged&&this.onColorChanged(ue),this.stateChanged()},Ae.prototype.fillColorChanged=function(ue){this.onFillColorChanged&&this.onFillColorChanged(ue),this.stateChanged()},Ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ue=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ue.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ue)&&this.onStateChanged(this)}},Ae.typeName="MarkerBase",Ae}(),gt=function(){function Ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ae.prototype.findGripByVisual=function(ue){return this.topLeft.ownsTarget(ue)?this.topLeft:this.topCenter.ownsTarget(ue)?this.topCenter:this.topRight.ownsTarget(ue)?this.topRight:this.centerLeft.ownsTarget(ue)?this.centerLeft:this.centerRight.ownsTarget(ue)?this.centerRight:this.bottomLeft.ownsTarget(ue)?this.bottomLeft:this.bottomCenter.ownsTarget(ue)?this.bottomCenter:this.bottomRight.ownsTarget(ue)?this.bottomRight:void 0},Ae}(),qt=function(){function Ae(){this.GRIP_SIZE=10,this.visual=we.createGroup(),this.visual.appendChild(we.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(we.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ae.prototype.ownsTarget=function(ue){return ue===this.visual||ue===this.visual.childNodes[0]||ue===this.visual.childNodes[1]},Ae}(),tt=function(){function Ae(){}return Ae.toITransformMatrix=function(ue){return{a:ue.a,b:ue.b,c:ue.c,d:ue.d,e:ue.e,f:ue.f}},Ae.toSVGMatrix=function(ue,le){return ue.a=le.a,ue.b=le.b,ue.c=le.c,ue.d=le.d,ue.e=le.e,ue.f=le.f,ue},Ae}(),ct=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.left=0,oe.top=0,oe.width=0,oe.height=0,oe.defaultSize={x:50,y:20},oe.offsetX=0,oe.offsetY=0,oe.rotationAngle=0,oe.CB_DISTANCE=10,oe._suppressMarkerCreateEvent=!1,oe.container.transform.baseVal.appendItem(we.createTransform()),oe.setupControlBox(),oe}return He(ue,Ae),Object.defineProperty(ue.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"visual",{get:function(){return this._visual},set:function(le){this._visual=le;var pe=we.createTransform();this._visual.transform.baseVal.appendItem(pe)},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(le){return!!Ae.prototype.ownsTarget.call(this,le)||!!(this.controlGrips.findGripByVisual(le)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(le))},ue.prototype.pointerDown=function(le,pe){Ae.prototype.pointerDown.call(this,le,pe),this.state==="new"&&(this.left=le.x,this.top=le.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var he=this.unrotatePoint(le);if(this.manipulationStartX=he.x,this.manipulationStartY=he.y,this.offsetX=he.x-this.left,this.offsetY=he.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(pe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(pe)){this.activeGrip=this.rotatorGrip;var oe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=oe.x-this.width/2,this.top=oe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Te=this.container.transform.baseVal.getItem(0);Te.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Te,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ue.prototype.pointerUp=function(le){var pe=this.state;Ae.prototype.pointerUp.call(this,le),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(le),this._state="select",pe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ue.prototype.moveVisual=function(le){this.visual.style.transform="translate("+le.x+"px, "+le.y+"px)"},ue.prototype.manipulate=function(le){var pe=this.unrotatePoint(le);this.state==="creating"?this.resize(le):this.state==="move"?(this.left=this.manipulationStartLeft+(pe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(pe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(pe):this.state==="rotate"&&this.rotate(le)},ue.prototype.resize=function(le){var pe=this.manipulationStartLeft,he=this.manipulationStartWidth,oe=this.manipulationStartTop,Te=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:pe=this.manipulationStartLeft+le.x-this.manipulationStartX,he=this.manipulationStartWidth+this.manipulationStartLeft-pe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:he=this.manipulationStartWidth+le.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:oe=this.manipulationStartTop+le.y-this.manipulationStartY,Te=this.manipulationStartHeight+this.manipulationStartTop-oe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Te=this.manipulationStartHeight+le.y-this.manipulationStartY}he>=0?(this.left=pe,this.width=he):(this.left=pe+he,this.width=-he),Te>=0?(this.top=oe,this.height=Te):(this.top=oe+Te,this.height=-Te),this.setSize()},ue.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ue.prototype.rotate=function(le){if(Math.abs(le.x-this.centerX)>.1){var pe=Math.sign(le.x-this.centerX);this.rotationAngle=180*Math.atan((le.y-this.centerY)/(le.x-this.centerX))/Math.PI+90*pe,this.applyRotation()}},ue.prototype.applyRotation=function(){var le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0)},ue.prototype.rotatePoint=function(le){if(this.rotationAngle===0)return le;var pe=this.container.getCTM(),he=we.createPoint(le.x,le.y);return{x:(he=he.matrixTransform(pe)).x,y:he.y}},ue.prototype.unrotatePoint=function(le){if(this.rotationAngle===0)return le;var pe=this.container.getCTM();pe=pe.inverse();var he=we.createPoint(le.x,le.y);return{x:(he=he.matrixTransform(pe)).x,y:he.y}},ue.prototype.select=function(){Ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){Ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=we.createGroup();var le=we.createTransform();le.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(le),this.container.appendChild(this.controlBox),this.controlRect=we.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=we.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new gt,this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){var le=this.controlBox.transform.baseVal.getItem(0);le.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(le,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},ue.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},ue.prototype.createGrip=function(){var le=new qt;return le.visual.transform.baseVal.appendItem(we.createTransform()),this.controlBox.appendChild(le.visual),le},ue.prototype.positionGrips=function(){var le=this.controlGrips.topLeft.GRIP_SIZE,pe=-le/2,he=pe,oe=(this.width+this.CB_DISTANCE)/2-le/2,Te=(this.height+this.CB_DISTANCE)/2-le/2,Ye=this.height+this.CB_DISTANCE-le/2,Lt=this.width+this.CB_DISTANCE-le/2;this.positionGrip(this.controlGrips.topLeft.visual,pe,he),this.positionGrip(this.controlGrips.topCenter.visual,oe,he),this.positionGrip(this.controlGrips.topRight.visual,Lt,he),this.positionGrip(this.controlGrips.centerLeft.visual,pe,Te),this.positionGrip(this.controlGrips.centerRight.visual,Lt,Te),this.positionGrip(this.controlGrips.bottomLeft.visual,pe,Ye),this.positionGrip(this.controlGrips.bottomCenter.visual,oe,Ye),this.positionGrip(this.controlGrips.bottomRight.visual,Lt,Ye),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,oe,he-3*this.CB_DISTANCE)},ue.prototype.positionGrip=function(le,pe,he){var oe=le.transform.baseVal.getItem(0);oe.setTranslate(pe,he),le.transform.baseVal.replaceItem(oe,0)},ue.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ue.prototype.showControlBox=function(){this.controlBox.style.display=""},ue.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:tt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:tt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ae.prototype.getState.call(this))},ue.prototype.restoreState=function(le){Ae.prototype.restoreState.call(this,le);var pe=le;this.left=pe.left,this.top=pe.top,this.width=pe.width,this.height=pe.height,this.rotationAngle=pe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,pe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,pe.containerTransformMatrix))},ue.prototype.scale=function(le,pe){Ae.prototype.scale.call(this,le,pe);var he=this.rotatePoint({x:this.left,y:this.top}),oe=this.unrotatePoint({x:he.x*le,y:he.y*pe});this.left=oe.x,this.top=oe.y,this.width=this.width*le,this.height=this.height*pe,this.adjustControlBox()},ue}(Le),ke=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe}return He(ue,Ae),ue.prototype.ownsTarget=function(le){return!(!Ae.prototype.ownsTarget.call(this,le)&&le!==this.visual)},ue.prototype.createVisual=function(){this.visual=we.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(le,pe){Ae.prototype.pointerDown.call(this,le,pe),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},ue.prototype.manipulate=function(le){Ae.prototype.manipulate.call(this,le)},ue.prototype.resize=function(le){Ae.prototype.resize.call(this,le),this.setSize()},ue.prototype.setSize=function(){Ae.prototype.setSize.call(this),we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(le){Ae.prototype.pointerUp.call(this,le),this.setSize()},ue.prototype.setStrokeColor=function(le){this.strokeColor=le,this.visual&&we.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(le),this.stateChanged()},ue.prototype.setFillColor=function(le){this.fillColor=le,this.visual&&we.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ue.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.visual&&we.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.visual&&we.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ae.prototype.getState.call(this))},ue.prototype.restoreState=function(le){var pe=le;this.fillColor=pe.fillColor,this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.opacity=pe.opacity,this.createVisual(),Ae.prototype.restoreState.call(this,le),this.setSize()},ue.prototype.scale=function(le,pe){Ae.prototype.scale.call(this,le,pe),this.setSize()},ue.title="Rectangle marker",ue}(ct),Se=function(Ae){function ue(le,pe,he,oe){var Te=Ae.call(this,le,oe||'')||this;return Te.widths=[],Te.widthBoxes=[],Te.widths=pe,Te.currentWidth=he,Te.setCurrentWidth=Te.setCurrentWidth.bind(Te),Te}return He(ue,Ae),ue.prototype.getUi=function(){var le=this,pe=document.createElement("div");return pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2",this.widths.forEach(function(he){var oe=document.createElement("div");oe.style.display="flex",oe.style.flexGrow="2",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=he===le.currentWidth?le.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){le.setCurrentWidth(he,oe)}),pe.appendChild(oe);var Te=document.createElement("div");Te.innerText=he.toString(),Te.style.marginRight="5px",oe.appendChild(Te);var Ye=document.createElement("div");Ye.style.minHeight="20px",Ye.style.flexGrow="2",Ye.style.display="flex",Ye.style.alignItems="center";var Lt=document.createElement("hr");Lt.style.minWidth="20px",Lt.style.border="0px",Lt.style.borderTop=he+"px solid "+le.uiStyleSettings.toolboxColor,Lt.style.flexGrow="2",Ye.appendChild(Lt),oe.appendChild(Ye),le.widthBoxes.push(oe)}),pe},ue.prototype.setCurrentWidth=function(le,pe){var he=this;this.currentWidth=le,this.widthBoxes.forEach(function(oe){oe.style.borderColor=oe===pe?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ue}(it),Ue=function(Ae){function ue(le,pe,he,oe){var Te=Ae.call(this,le,oe||'')||this;return Te.styles=[],Te.styleBoxes=[],Te.styles=pe,Te.currentStyle=he,Te.setCurrentStyle=Te.setCurrentStyle.bind(Te),Te}return He(ue,Ae),ue.prototype.getUi=function(){var le=this,pe=document.createElement("div");return pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2",this.styles.forEach(function(he){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/le.styles.length-5+"%",oe.style.borderColor=he===le.currentStyle?le.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){le.setCurrentStyle(he,oe)}),pe.appendChild(oe);var Te=document.createElement("div");Te.style.minHeight="20px",Te.style.flexGrow="2",Te.style.overflow="hidden";var Ye=` `;Te.innerHTML=Ye,oe.appendChild(Te),le.styleBoxes.push(oe)}),pe},ue.prototype.setCurrentStyle=function(le,pe){var he=this;this.currentStyle=le,this.styleBoxes.forEach(function(oe){oe.style.borderColor=oe===pe?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ue}(it),je=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.strokeColor=he.defaultColor,oe.strokeWidth=he.defaultStrokeWidth,oe.strokeDasharray=he.defaultStrokeDasharray,oe.strokePanel=new Je("Line color",he.defaultColorSet,he.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Se("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Ue("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return He(ue,Ae),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Ae.prototype.getState.call(this);return le.typeName=ue.typeName,le},ue.typeName="FrameMarker",ue.title="Frame marker",ue.icon='',ue}(ke),_t=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},vt=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.x1=0,oe.y1=0,oe.x2=0,oe.y2=0,oe.defaultLength=50,oe.manipulationStartX=0,oe.manipulationStartY=0,oe.manipulationStartX1=0,oe.manipulationStartY1=0,oe.manipulationStartX2=0,oe.manipulationStartY2=0,oe.setupControlBox(),oe}return He(ue,Ae),ue.prototype.ownsTarget=function(le){return!!Ae.prototype.ownsTarget.call(this,le)||!(!this.grip1.ownsTarget(le)&&!this.grip2.ownsTarget(le))},ue.prototype.pointerDown=function(le,pe){Ae.prototype.pointerDown.call(this,le,pe),this.manipulationStartX=le.x,this.manipulationStartY=le.y,this.state==="new"&&(this.x1=le.x,this.y1=le.y,this.x2=le.x,this.y2=le.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(pe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(pe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ue.prototype.pointerUp=function(le){var pe=this.state;Ae.prototype.pointerUp.call(this,le),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(le),this._state="select",pe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ue.prototype.adjustVisual=function(){},ue.prototype.manipulate=function(le){this.state==="creating"?this.resize(le):this.state==="move"?(this.x1=this.manipulationStartX1+le.x-this.manipulationStartX,this.y1=this.manipulationStartY1+le.y-this.manipulationStartY,this.x2=this.manipulationStartX2+le.x-this.manipulationStartX,this.y2=this.manipulationStartY2+le.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(le)},ue.prototype.resize=function(le){switch(this.activeGrip){case this.grip1:this.x1=le.x,this.y1=le.y;break;case this.grip2:case void 0:this.x2=le.x,this.y2=le.y}this.adjustVisual(),this.adjustControlBox()},ue.prototype.select=function(){Ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){Ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=we.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){this.positionGrips()},ue.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ue.prototype.createGrip=function(){var le=new qt;return le.visual.transform.baseVal.appendItem(we.createTransform()),this.controlBox.appendChild(le.visual),le},ue.prototype.positionGrips=function(){var le=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-le/2,this.y1-le/2),this.positionGrip(this.grip2.visual,this.x2-le/2,this.y2-le/2)},ue.prototype.positionGrip=function(le,pe,he){var oe=le.transform.baseVal.getItem(0);oe.setTranslate(pe,he),le.transform.baseVal.replaceItem(oe,0)},ue.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ae.prototype.getState.call(this))},ue.prototype.restoreState=function(le){Ae.prototype.restoreState.call(this,le);var pe=le;this.x1=pe.x1,this.y1=pe.y1,this.x2=pe.x2,this.y2=pe.y2},ue.prototype.scale=function(le,pe){Ae.prototype.scale.call(this,le,pe),this.x1=this.x1*le,this.y1=this.y1*pe,this.x2=this.x2*le,this.y2=this.y2*pe,this.adjustVisual(),this.adjustControlBox()},ue}(Le),kt=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.strokeColor=he.defaultColor,oe.strokeWidth=he.defaultStrokeWidth,oe.strokeDasharray=he.defaultStrokeDasharray,oe.strokePanel=new Je("Line color",he.defaultColorSet,he.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Se("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Ue("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return He(ue,Ae),ue.prototype.ownsTarget=function(le){return!(!Ae.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.selectorLine&&le!==this.visibleLine)},ue.prototype.createVisual=function(){this.visual=we.createGroup(),this.selectorLine=we.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=we.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(le,pe){Ae.prototype.pointerDown.call(this,le,pe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ue.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),we.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setStrokeColor=function(le){this.strokeColor=le,this.adjustVisual(),this.colorChanged(le)},ue.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ae.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){Ae.prototype.restoreState.call(this,le);var pe=le;this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.createVisual(),this.adjustVisual()},ue.typeName="LineMarker",ue.title="Line marker",ue.icon='',ue}(vt),Xe=function(Ae){function ue(le,pe,he,oe){var Te=Ae.call(this,le,oe||'')||this;return Te.fonts=[],Te.fontBoxes=[],Te.fonts=pe,Te.currentFont=he,Te.setCurrentFont=Te.setCurrentFont.bind(Te),Te}return He(ue,Ae),ue.prototype.getUi=function(){var le=this,pe=document.createElement("div");return pe.style.overflow="hidden",pe.style.flexGrow="2",this.fonts.forEach(function(he){var oe=document.createElement("div");oe.style.display="inline-block",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/le.fonts.length-5+"%",oe.style.borderColor=he===le.currentFont?le.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){le.setCurrentFont(he,oe)}),pe.appendChild(oe);var Te=document.createElement("div");Te.style.display="flex",Te.style.minHeight="20px",Te.style.flexGrow="2",Te.style.fontFamily=he,Te.style.overflow="hidden";var Ye=document.createElement("div");Ye.style.whiteSpace="nowrap",Ye.style.overflow="hidden",Ye.style.textOverflow="ellipsis",Ye.innerHTML="The quick brown fox jumps over the lazy dog",Te.appendChild(Ye),oe.appendChild(Te),le.fontBoxes.push(oe)}),pe},ue.prototype.setCurrentFont=function(le,pe){var he=this;this.currentFont=le,this.fontBoxes.forEach(function(oe){oe.style.borderColor=oe===pe?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ue}(it),Kt=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.color="transparent",oe.padding=5,oe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",oe.text=oe.DEFAULT_TEXT,oe.isMoved=!1,oe.color=he.defaultColor,oe.fontFamily=he.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setColor=oe.setColor.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.renderText=oe.renderText.bind(oe),oe.sizeText=oe.sizeText.bind(oe),oe.textEditDivClicked=oe.textEditDivClicked.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.setSize=oe.setSize.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.colorPanel=new Je("Color",he.defaultColorSet,he.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.fontFamilyPanel=new Xe("Font",he.defaultFontFamilies,he.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe}return He(ue,Ae),ue.prototype.ownsTarget=function(le){if(Ae.prototype.ownsTarget.call(this,le)||le===this.visual||le===this.textElement||le===this.bgRectangle)return!0;var pe=!1;return this.textElement.childNodes.forEach(function(he){he===le&&(pe=!0)}),pe},ue.prototype.createVisual=function(){this.visual=we.createGroup(),this.bgRectangle=we.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=we.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(we.createTransform()),this.textElement.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ue.prototype.pointerDown=function(le,pe){Ae.prototype.pointerDown.call(this,le,pe),this.isMoved=!1,this.pointerDownPoint=le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},ue.prototype.renderText=function(){var le=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(pe){le.textElement.appendChild(we.createTSpan(pe.trim()===""?" ":pe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ue.prototype.getTextScale=function(){var le=this.textElement.getBBox(),pe=1;if(le.width>0&&le.height>0){var he=(1*this.width-this.width*this.padding*2/100)/le.width,oe=(1*this.height-this.height*this.padding*2/100)/le.height;pe=Math.min(he,oe)}return pe},ue.prototype.getTextPosition=function(le){var pe=this.textElement.getBBox(),he=0,oe=0;return pe.width>0&&pe.height>0&&(he=(this.width-pe.width*le)/2,oe=this.height/2-pe.height*le/2),{x:he,y:oe}},ue.prototype.sizeText=function(){var le=this.textElement.getBBox(),pe=this.getTextScale(),he=this.getTextPosition(pe);he.y-=le.y*pe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+he.x+"px, "+he.y+"px) scale("+pe+", "+pe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(he.x,he.y),this.textElement.transform.baseVal.getItem(1).setScale(pe,pe))},ue.prototype.manipulate=function(le){Ae.prototype.manipulate.call(this,le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(le.x-this.pointerDownPoint.x)>5||Math.abs(le.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(le){Ae.prototype.resize.call(this,le),this.isMoved=!0,this.setSize(),this.sizeText()},ue.prototype.setSize=function(){Ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ue.prototype.pointerUp=function(le){var pe=this.state;pe==="creating"&&(this._suppressMarkerCreateEvent=!0),Ae.prototype.pointerUp.call(this,le),this.setSize(),(pe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.showTextEditor=function(){var le=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(pe){pe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var pe=Number.parseFloat(le.textEditor.style.fontSize);le.textEditor.clientWidth>=Number.parseInt(le.textEditor.style.maxWidth)&&pe>.9;)pe-=.1,le.textEditor.style.fontSize=Math.max(pe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(pe){pe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(pe){if(pe.clipboardData){var he=pe.clipboardData.getData("text"),oe=window.getSelection();if(!oe.rangeCount)return!1;oe.deleteFromDocument(),oe.getRangeAt(0).insertNode(document.createTextNode(he)),pe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){le.textEditDivClicked(le.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ue.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var le=this.getTextScale(),pe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),he=this.textElement.getBBox(),oe={x:he.width*le,y:he.height*le};pe.x-=oe.x/2,pe.y-=oe.y/2,this.textEditor.style.top=pe.y+"px",this.textEditor.style.left=pe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-pe.x+"px",this.textEditor.style.fontSize=Math.max(16*le,12)+"px",this.textElement.style.display="none"}},ue.prototype.textEditDivClicked=function(le){this.text=le.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ue.prototype.select=function(){Ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ue.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ae.prototype.deselect.call(this)},ue.prototype.dblClick=function(le,pe){Ae.prototype.dblClick.call(this,le,pe),this.showTextEditor()},ue.prototype.setColor=function(le){this.textElement&&we.setAttributes(this.textElement,[["fill",le]]),this.color=le,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(le)},ue.prototype.setFont=function(le){this.textElement&&we.setAttributes(this.textElement,[["font-family",le]]),this.fontFamily=le,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ue.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ue.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ae.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){var pe=le;this.color=pe.color,this.fontFamily=pe.fontFamily,this.padding=pe.padding,this.text=pe.text,this.createVisual(),Ae.prototype.restoreState.call(this,le),this.setSize()},ue.prototype.scale=function(le,pe){Ae.prototype.scale.call(this,le,pe),this.setSize(),this.sizeText(),this.positionTextEditor()},ue.typeName="TextMarker",ue.title="Text marker",ue.icon='',ue}(ct),Ot=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.color="transparent",oe.lineWidth=3,oe.drawing=!1,oe.pixelRatio=1,oe.color=he.defaultColor,oe.lineWidth=he.defaultStrokeWidth,oe.pixelRatio=he.freehandPixelRatio,oe.setColor=oe.setColor.bind(oe),oe.addCanvas=oe.addCanvas.bind(oe),oe.finishCreation=oe.finishCreation.bind(oe),oe.setLineWidth=oe.setLineWidth.bind(oe),oe.colorPanel=new Je("Color",he.defaultColorSet,he.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.lineWidthPanel=new Se("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),oe.lineWidthPanel.onWidthChanged=oe.setLineWidth,oe}return He(ue,Ae),ue.prototype.ownsTarget=function(le){return!(!Ae.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.drawingImage)},ue.prototype.createVisual=function(){this.visual=we.createGroup(),this.drawingImage=we.createImage(),this.visual.appendChild(this.drawingImage);var le=we.createTransform();this.visual.transform.baseVal.appendItem(le),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(le,pe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(le.x,le.y),this.drawing=!0):Ae.prototype.pointerDown.call(this,le,pe)},ue.prototype.manipulate=function(le){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(le.x,le.y),this.canvasContext.stroke()):Ae.prototype.manipulate.call(this,le)},ue.prototype.resize=function(le){Ae.prototype.resize.call(this,le),we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(le){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ae.prototype.pointerUp.call(this,le)},ue.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},ue.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ae.prototype.select.call(this)},ue.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ae.prototype.deselect.call(this)},ue.prototype.finishCreation=function(){for(var le=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),pe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],he=pe[0],oe=pe[1],Te=pe[2],Ye=pe[3],Lt=!1,Rt=0;Rt0&&(Lt=!0,RtYe&&(Ye=Rt),Ft>Te&&(Te=Ft));if(Lt){this.left=he/this.pixelRatio,this.top=oe/this.pixelRatio,this.width=(Te-he)/this.pixelRatio,this.height=(Ye-oe)/this.pixelRatio;var Jt=document.createElement("canvas");Jt.width=Te-he,Jt.height=Ye-oe,Jt.getContext("2d").putImageData(this.canvasContext.getImageData(he,oe,Te-he,Ye-oe),0,0),this.drawingImgUrl=Jt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ue.prototype.setDrawingImage=function(){we.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ue.prototype.setColor=function(le){this.color=le,this.colorChanged(le)},ue.prototype.setLineWidth=function(le){this.lineWidth=le},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({drawingImgUrl:this.drawingImgUrl},Ae.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){this.createVisual(),Ae.prototype.restoreState.call(this,le),this.drawingImgUrl=le.drawingImgUrl,this.setDrawingImage()},ue.prototype.scale=function(le,pe){Ae.prototype.scale.call(this,le,pe),this.setDrawingImage()},ue.typeName="FreehandMarker",ue.title="Freehand marker",ue.icon='',ue}(ct),bn=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,he||'')||this;return oe.typeBoxes=[],oe.currentType=pe,oe.setCurrentType=oe.setCurrentType.bind(oe),oe}return He(ue,Ae),ue.prototype.getUi=function(){var le=this,pe=document.createElement("div");pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2";for(var he=function(Ye){var Lt="both";switch(Ye){case 0:Lt="both";break;case 1:Lt="start";break;case 2:Lt="end";break;case 3:Lt="none"}var Rt=document.createElement("div");if(Rt.style.display="flex",Rt.style.flexGrow="2",Rt.style.alignItems="center",Rt.style.justifyContent="space-between",Rt.style.padding="5px",Rt.style.borderWidth="2px",Rt.style.borderStyle="solid",Rt.style.borderColor=Lt===oe.currentType?oe.uiStyleSettings.toolboxAccentColor:"transparent",Rt.addEventListener("click",function(){le.setCurrentType(Lt,Rt)}),pe.appendChild(Rt),Lt==="both"||Lt==="start"){var Ft=document.createElement("div");Ft.style.display="flex",Ft.style.alignItems="center",Ft.style.minHeight="20px",Ft.innerHTML=` `,Ft.style.marginLeft="5px",Rt.appendChild(Ft)}var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.minHeight="20px",Jt.style.flexGrow="2";var Xt=document.createElement("hr");if(Xt.style.minWidth="20px",Xt.style.border="0px",Xt.style.borderTop="3px solid "+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee"),Xt.style.flexGrow="2",Jt.appendChild(Xt),Rt.appendChild(Jt),Lt==="both"||Lt==="end"){var Hn=document.createElement("div");Hn.style.display="flex",Hn.style.alignItems="center",Hn.style.minHeight="20px",Hn.innerHTML=` `,Hn.style.marginRight="5px",Rt.appendChild(Hn)}oe.typeBoxes.push(Rt)},oe=this,Te=0;Te<4;Te++)he(Te);return pe},ue.prototype.setCurrentType=function(le,pe){var he=this;this.currentType=le,this.typeBoxes.forEach(function(oe){oe.style.borderColor=oe===pe?he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ue}(it),Nt=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.arrowType="end",oe.arrowBaseHeight=10,oe.arrowBaseWidth=10,oe.getArrowPoints=oe.getArrowPoints.bind(oe),oe.setArrowType=oe.setArrowType.bind(oe),oe.arrowTypePanel=new bn("Arrow type","end"),oe.arrowTypePanel.onArrowTypeChanged=oe.setArrowType,oe}return He(ue,Ae),ue.prototype.ownsTarget=function(le){return!(!Ae.prototype.ownsTarget.call(this,le)&&le!==this.arrow1&&le!==this.arrow2)},ue.prototype.getArrowPoints=function(le,pe){var he=this.arrowBaseWidth+2*this.strokeWidth,oe=this.arrowBaseHeight+2*this.strokeWidth;return le-he/2+","+(pe+oe/2)+" "+le+","+(pe-oe/2)+" "+(le+he/2)+","+(pe+oe/2)},ue.prototype.createTips=function(){this.arrow1=we.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=we.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.arrow2)},ue.prototype.pointerDown=function(le,pe){Ae.prototype.pointerDown.call(this,le,pe),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(Ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",we.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),we.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var le=0;Math.abs(this.x1-this.x2)>.1&&(le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var pe=this.arrow1.transform.baseVal.getItem(0);pe.setRotate(le,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(pe,0);var he=this.arrow2.transform.baseVal.getItem(0);he.setRotate(le+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(he,0)}},ue.prototype.setArrowType=function(le){this.arrowType=le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({arrowType:this.arrowType},Ae.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){Ae.prototype.restoreState.call(this,le);var pe=le;this.arrowType=pe.arrowType,this.createTips(),this.adjustVisual()},ue.typeName="ArrowMarker",ue.title="Arrow marker",ue.icon='',ue}(kt),sn=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.fillColor=he.defaultFillColor,oe.strokeWidth=0,oe.fillPanel=new Je("Color",he.defaultColorSet,he.defaultFillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe}return He(ue,Ae),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Ae.prototype.getState.call(this);return le.typeName=ue.typeName,le},ue.typeName="CoverMarker",ue.title="Cover marker",ue.icon='',ue}(ke),Cn=function(Ae){function ue(le,pe,he,oe){var Te=Ae.call(this,le,oe||'')||this;return Te.opacities=[],Te.opacityBoxes=[],Te.opacities=pe,Te.currentOpacity=he,Te.setCurrentOpacity=Te.setCurrentOpacity.bind(Te),Te}return He(ue,Ae),ue.prototype.getUi=function(){var le=this,pe=document.createElement("div");return pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2",pe.style.justifyContent="space-between",this.opacities.forEach(function(he){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="center",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=he===le.currentOpacity?le.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){le.setCurrentOpacity(he,oe)}),pe.appendChild(oe);var Te=document.createElement("div");Te.innerText=100*he+"%",oe.appendChild(Te),le.opacityBoxes.push(oe)}),pe},ue.prototype.setCurrentOpacity=function(le,pe){var he=this;this.currentOpacity=le,this.opacityBoxes.forEach(function(oe){oe.style.borderColor=oe===pe?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ue}(it),or=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.setOpacity=oe.setOpacity.bind(oe),oe.fillColor=he.defaultHighlightColor,oe.strokeWidth=0,oe.opacity=he.defaultHighlightOpacity,oe.fillPanel=new Je("Color",he.defaultColorSet,oe.fillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe.opacityPanel=new Cn("Opacity",he.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return He(ue,Ae),ue.prototype.setOpacity=function(le){this.opacity=le,this.visual&&we.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Ae.prototype.getState.call(this);return le.typeName=ue.typeName,le},ue.typeName="HighlightMarker",ue.title="Highlight marker",ue.icon='',ue}(sn),Qe='',Ce='',ht=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.bgColor="transparent",oe.tipPosition={x:0,y:0},oe.tipBase1Position={x:0,y:0},oe.tipBase2Position={x:0,y:0},oe.tipMoving=!1,oe.color=he.defaultStrokeColor,oe.bgColor=he.defaultFillColor,oe.fontFamily=he.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setBgColor=oe.setBgColor.bind(oe),oe.getTipPoints=oe.getTipPoints.bind(oe),oe.positionTip=oe.positionTip.bind(oe),oe.setTipPoints=oe.setTipPoints.bind(oe),oe.colorPanel=new Je("Text color",he.defaultColorSet,oe.color,Qe),oe.colorPanel.onColorChanged=oe.setColor,oe.bgColorPanel=new Je("Fill color",he.defaultColorSet,oe.bgColor,Ce),oe.bgColorPanel.onColorChanged=oe.setBgColor,oe.fontFamilyPanel=new Xe("Font",he.defaultFontFamilies,he.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.tipGrip=new qt,oe.tipGrip.visual.transform.baseVal.appendItem(we.createTransform()),oe.controlBox.appendChild(oe.tipGrip.visual),oe}return He(ue,Ae),ue.prototype.ownsTarget=function(le){return Ae.prototype.ownsTarget.call(this,le)||this.tipGrip.ownsTarget(le)||this.tip===le},ue.prototype.createTip=function(){we.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=we.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ue.prototype.pointerDown=function(le,pe){this.state==="new"&&Ae.prototype.pointerDown.call(this,le,pe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(pe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ae.prototype.pointerDown.call(this,le,pe)},ue.prototype.pointerUp=function(le){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ae.prototype.pointerUp.call(this,le);else{var pe=this.state==="creating";Ae.prototype.pointerUp.call(this,le),this.setTipPoints(pe),this.positionTip()}},ue.prototype.manipulate=function(le){if(this.tipMoving){var pe=this.unrotatePoint(le);this.tipPosition={x:pe.x-this.manipulationStartLeft,y:pe.y-this.manipulationStartTop},this.positionTip()}else Ae.prototype.manipulate.call(this,le)},ue.prototype.setBgColor=function(le){this.bgRectangle&&this.tip&&(we.setAttributes(this.bgRectangle,[["fill",le]]),we.setAttributes(this.tip,[["fill",le]])),this.bgColor=le,this.fillColorChanged(le)},ue.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},ue.prototype.setTipPoints=function(le){le===void 0&&(le=!1);var pe=Math.min(this.height/2,15),he=this.height/5;le&&(this.tipPosition={x:pe+he/2,y:this.height+20});var oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?oe.1)){var le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),pe=this.tip1.transform.baseVal.getItem(0);pe.setRotate(le,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(pe,0);var he=this.tip2.transform.baseVal.getItem(0);he.setRotate(le+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(he,0)}},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Ae.prototype.getState.call(this);return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){Ae.prototype.restoreState.call(this,le),this.createTips(),this.adjustVisual()},ue.typeName="MeasurementMarker",ue.title="Measurement marker",ue.icon='',ue}(kt),Ge=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.strokePanel.colors=he.defaultColorSet,oe.fillColor="transparent",oe}return He(ue,Ae),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Ae.prototype.getState.call(this);return le.typeName=ue.typeName,le},ue.typeName="EllipseFrameMarker",ue.title="Ellipse frame marker",ue.icon='',ue}(Ut),rt=function(){function Ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ae.prototype.addUndoStep=function(ue){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ue)||(this.undoStack.push(ue),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ue)&&this.redoStack.splice(0,this.redoStack.length))},Ae.prototype.replaceLastUndoStep=function(ue){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ue)},Ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ae.prototype.undo=function(){if(this.undoStack.length>1){var ue=this.undoStack.pop();return ue!==void 0&&this.redoStack.push(ue),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ae}(),jt=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.curveX=0,oe.curveY=0,oe.manipulationStartCurveX=0,oe.manipulationStartCurveY=0,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.positionGrips=oe.positionGrips.bind(oe),oe.addControlGrips=oe.addControlGrips.bind(oe),oe.adjustVisual=oe.adjustVisual.bind(oe),oe.setupControlBox=oe.setupControlBox.bind(oe),oe.resize=oe.resize.bind(oe),oe.strokeColor=he.defaultColor,oe.strokeWidth=he.defaultStrokeWidth,oe.strokeDasharray=he.defaultStrokeDasharray,oe.strokePanel=new Je("Line color",he.defaultColorSet,he.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Se("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Ue("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return He(ue,Ae),ue.prototype.ownsTarget=function(le){return!(!Ae.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.selectorCurve&&le!==this.visibleCurve&&!this.curveGrip.ownsTarget(le))},ue.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ue.prototype.createVisual=function(){this.visual=we.createGroup(),this.selectorCurve=we.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=we.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(le,pe){Ae.prototype.pointerDown.call(this,le,pe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=le.x,this.curveY=le.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(pe)&&(this.activeGrip=this.curveGrip,this._state="resize")},ue.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),we.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setupControlBox=function(){Ae.prototype.setupControlBox.call(this),this.curveControlLine1=we.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=we.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},ue.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ae.prototype.addControlGrips.call(this)},ue.prototype.positionGrips=function(){Ae.prototype.positionGrips.call(this);var le=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-le/2,this.curveY-le/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},ue.prototype.manipulate=function(le){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+le.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+le.y-this.manipulationStartY),Ae.prototype.manipulate.call(this,le)},ue.prototype.resize=function(le){this.activeGrip===this.curveGrip&&(this.curveX=le.x,this.curveY=le.y),Ae.prototype.resize.call(this,le),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ue.prototype.setStrokeColor=function(le){this.strokeColor=le,this.adjustVisual(),this.colorChanged(le)},ue.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.adjustVisual()},ue.prototype.scale=function(le,pe){this.curveX=this.curveX*le,this.curveY=this.curveY*pe,Ae.prototype.scale.call(this,le,pe)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ae.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){Ae.prototype.restoreState.call(this,le);var pe=le;this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.curveX=pe.curveX,this.curveY=pe.curveY,this.createVisual(),this.adjustVisual()},ue.typeName="CurveMarker",ue.title="Curve marker",ue.icon='',ue}(vt),_n=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,pe,he)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.textColor="transparent",oe.fontSize="1rem",oe.isMoved=!1,oe.captionText="Caption",oe.PADDING=5,oe.captionBoxWidth=0,oe.captionBoxHeight=0,oe.strokeColor=he.defaultColor,oe.strokeWidth=he.defaultStrokeWidth,oe.strokeDasharray=he.defaultStrokeDasharray,oe.fillColor=he.defaultFillColor,oe.textColor=he.defaultStrokeColor,oe.fontFamily=he.defaultFontFamily,oe.fontSize=he.defaultCaptionFontSize,oe.captionText=he.defaultCaptionText,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe.sizeCaption=oe.sizeCaption.bind(oe),oe.setCaptionText=oe.setCaptionText.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.finishTextEditing=oe.finishTextEditing.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.setTextColor=oe.setTextColor.bind(oe),oe.strokePanel=new Je("Line color",ve(he.defaultColorSet,["transparent"]),oe.strokeColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.fillPanel=new Je("Fill color",ve(he.defaultColorSet,["transparent"]),oe.fillColor,Ce),oe.fillPanel.onColorChanged=oe.setFillColor,oe.strokeWidthPanel=new Se("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Ue("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe.fontFamilyPanel=new Xe("Font",he.defaultFontFamilies,he.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.textColorPanel=new Je("Text color",he.defaultColorSet,oe.textColor,Qe),oe.textColorPanel.onColorChanged=oe.setTextColor,oe}return He(ue,Ae),ue.prototype.ownsTarget=function(le){return!(!Ae.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.frame&&le!==this.captionBg&&le!==this.captionElement)},ue.prototype.createVisual=function(){this.visual=we.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=we.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=we.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=we.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},ue.prototype.setCaptionText=function(le){this.captionText=le,this.captionElement.textContent=this.captionText,this.sizeCaption()},ue.prototype.pointerDown=function(le,pe){Ae.prototype.pointerDown.call(this,le,pe),this.isMoved=!1,this.pointerDownPoint=le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},ue.prototype.manipulate=function(le){Ae.prototype.manipulate.call(this,le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(le.x-this.pointerDownPoint.x)>5||Math.abs(le.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(le){Ae.prototype.resize.call(this,le),this.setSize()},ue.prototype.sizeCaption=function(){var le=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=le.width+2*this.PADDING,this.captionBoxHeight=le.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),we.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),we.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},ue.prototype.showTextEditor=function(){var le=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(pe){pe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(pe){pe.key==="Enter"&&le.finishTextEditing(le.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(pe){pe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){le.finishTextEditing(le.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){le.finishTextEditing(le.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ue.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},ue.prototype.finishTextEditing=function(le){this.setCaptionText(le.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ue.prototype.setFont=function(le){this.captionElement&&we.setAttributes(this.captionElement,[["font-family",le]]),this.fontFamily=le,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ue.prototype.setTextColor=function(le){this.captionElement&&we.setAttributes(this.captionElement,[["fill",le]]),this.textColor=le,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ue.prototype.setSize=function(){Ae.prototype.setSize.call(this),we.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ue.prototype.pointerUp=function(le){Ae.prototype.pointerUp.call(this,le),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.dblClick=function(le,pe){Ae.prototype.dblClick.call(this,le,pe),this.showTextEditor()},ue.prototype.setStrokeColor=function(le){this.strokeColor=le,this.frame&&we.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(le),this.stateChanged()},ue.prototype.setFillColor=function(le){this.fillColor=le,this.captionBg&&we.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(le),this.stateChanged()},ue.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.frame&&we.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.frame&&we.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Ae.prototype.getState.call(this));return le.typeName=this.typeName,le},ue.prototype.restoreState=function(le){var pe=le;this.fillColor=pe.fillColor,this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.textColor=pe.textColor,this.fontFamily=pe.fontFamily,this.captionText=pe.captionText,this.fontSize=pe.fontSize,this.createVisual(),Ae.prototype.restoreState.call(this,le),this.setSize()},ue.prototype.scale=function(le,pe){Ae.prototype.scale.call(this,le,pe),this.setSize()},ue.typeName="CaptionFrameMarker",ue.title="Caption frame marker",ue.icon='',ue}(ct),rn=function(){function Ae(ue,le){le===void 0&&(le=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ue,this.cancelable=le}return Object.defineProperty(Ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ae.prototype.preventDefault=function(){this._defaultPrevented=!0},Ae}(),$t=function(Ae){function ue(le,pe,he){var oe=Ae.call(this,le,!1)||this;return oe.dataUrl=pe,oe.state=he,oe}return He(ue,Ae),ue}(rn),Zt=function(Ae){function ue(le,pe,he){he===void 0&&(he=!1);var oe=Ae.call(this,le,he)||this;return oe.marker=pe,oe}return He(ue,Ae),ue}(rn),yn=function(){function Ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Ae.prototype.addEventListener=function(ue,le){this[ue].push(le)},Ae.prototype.removeEventListener=function(ue,le){var pe=this[ue].indexOf(le);pe>-1&&this[ue].splice(pe,1)},Ae}(),ln=function(){function Ae(ue){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new _t,this._isOpen=!1,this.undoRedoManager=new rt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new yn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ae.instanceCounter++,this.styles=new Ie(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ue,this.targetRoot=document.body,this.width=ue.clientWidth,this.height=ue.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[je,Ot,Nt,Kt,Ge,Ut,or,ht,Yt,sn,kt,jt,_n]},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[je,Ot,Nt,Kt,Ut,or,ht]},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[je,Ot,Nt,Kt,or]},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ue){var le=this;this._availableMarkerTypes.splice(0),ue.forEach(function(pe){if(typeof pe=="string"){var he=le.ALL_MARKER_TYPES.find(function(oe){return oe.typeName===pe});he!==void 0&&le._availableMarkerTypes.push(he)}else le._availableMarkerTypes.push(pe)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ue){this._zoomLevel=ue,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ee.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ae.prototype.show=function(){var ue=this;this.styles.styleSheetRoot===void 0&&me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(le){return le(new rn(ue))})},Ae.prototype.render=function(){return Be(this,void 0,void 0,function(){var ue;return Ve(this,function(le){switch(le.label){case 0:return this.setCurrentMarker(),(ue=new xe).naturalSize=this.renderAtNaturalSize,ue.imageType=this.renderImageType,ue.imageQuality=this.renderImageQuality,ue.markersOnly=this.renderMarkersOnly,ue.width=this.renderWidth,ue.height=this.renderHeight,[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return le.sent(),[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,le.sent()]}})})},Ae.prototype.close=function(ue){var le=this;if(ue===void 0&&(ue=!1),this.isOpen){var pe=!1;ue||this.eventListeners.beforeclose.forEach(function(he){var oe=new rn(le,!0);he(oe),oe.defaultPrevented&&(pe=!0)}),pe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(he){return he(new rn(le))}),this.detachEvents(),this._isOpen=!1)}},Ae.prototype.addMarkersToToolbar=function(){for(var ue,le=[],pe=0;pethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ue:this.editorCanvas.clientWidth,pe=le',ue.title="Powered by marker.js",ue.style.display="grid",ue.style.alignItems="center",ue.style.justifyItems="center",ue.style.padding="3px",ue.style.width="20px",ue.style.height="20px",this.logoUI.appendChild(ue),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var ue=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ue+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new St(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(ue),1),ue.dispose()},Ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Ae.prototype.toolbarButtonClicked=function(ue,le){if(ue==="marker"&&le!==void 0)this.createNewMarker(le);else if(ue==="action")switch(le){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Ae.prototype.deleteSelectedMarker=function(){var ue=this;if(this._currentMarker!==void 0){var le=!1;if(this.eventListeners.markerbeforedelete.forEach(function(he){var oe=new Zt(ue,ue._currentMarker,!0);he(oe),oe.defaultPrevented&&(le=!0)}),!le){var pe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(he){return he(new Zt(ue,pe))})}}},Ae.prototype.clear=function(){var ue=this,le=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Te){var Ye=new Zt(ue,void 0,!0);Te(Ye),Ye.defaultPrevented&&(le=!0)}),!le)){this.setCurrentMarker();for(var pe=function(Te){var Ye=he.markers[Te];he.setCurrentMarker(he.markers[Te]),he._currentMarker.dispose(),he.markerImage.removeChild(he._currentMarker.container),he.markers.splice(he.markers.indexOf(he._currentMarker),1),he.eventListeners.markerdelete.forEach(function(Lt){return Lt(new Zt(ue,Ye))})},he=this,oe=this.markers.length-1;oe>=0;oe--)pe(oe);this.addUndoStep()}},Object.defineProperty(Ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ae.prototype.showNotesEditor=function(){var ue;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(ue=this._currentMarker.notes)!==null&&ue!==void 0?ue:"",this.overlayContainer.appendChild(this.notesArea))},Ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ae.prototype.addUndoStep=function(){var ue=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var le=this.getState(),pe=this.undoRedoManager.getLastUndoStep();if(!pe||pe.width===le.width&&pe.height===le.height){var he=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(le),he1&&this.panTo({x:ue.clientX,y:ue.clientY}))},Ae.prototype.onPointerUp=function(ue){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ue.clientX,ue.clientY)),this.isDragging=!1,this.addUndoStep()},Ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ae.prototype.onKeyUp=function(ue){this._currentMarker===void 0||this.notesArea!==void 0||ue.key!=="Delete"&&ue.key!=="Backspace"||this.deleteSelectedMarker()},Ae.prototype.clientToLocalCoordinates=function(ue,le){var pe=this.markerImage.getBoundingClientRect();return{x:(ue-pe.left)/this.zoomLevel,y:(le-pe.top)/this.zoomLevel}},Ae.prototype.onWindowResize=function(){this.positionUI()},Ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ue=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ue+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Ae.prototype.addLicenseKey=function(ue){Ee.addKey(ue)},Ae.prototype.addEventListener=function(ue,le){this.eventListeners.addEventListener(ue,le)},Ae.prototype.removeEventListener=function(ue,le){this.eventListeners.removeEventListener(ue,le)},Ae.prototype.renderState=function(ue){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ue),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ae.prototype.focus=function(){var ue=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(le){return le(new rn(ue))}))},Ae.prototype.blur=function(){var ue=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(le){return le(new rn(ue))}))},Ae.instanceCounter=0,Ae}()},95860:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return tt}});var de=se(87462),He=se(1413),Be=se(4942),Ve=se(97685),ve=se(45987),we=se(94184),Ee=se.n(we),xe=se(67294);function me(ct){var ke=xe.useRef();ke.current=ct;var Se=xe.useCallback(function(){for(var Ue,je=arguments.length,_t=new Array(je),vt=0;vt0;if(sn||Cn){var Ft=(0,xe.D7)(jt),Jt=(0,ot.Z)(Ft).length,Xt=(0,Ve.Z)(Cn)==="object"?Cn.formatter({value:Ft,count:Jt,maxLength:Nt}):"".concat(Jt).concat(Rt?" / ".concat(Nt):"");return Ee.createElement(Ee.Fragment,null,!!Cn&&Ee.createElement("span",{className:we()("".concat(Xe,"-show-count-suffix"),(0,Be.Z)({},"".concat(Xe,"-show-count-has-suffix"),!!sn),ht==null?void 0:ht.count),style:(0,He.Z)({},Ut==null?void 0:Ut.count)},Xt),sn)}return null};return Ee.createElement(Ie,(0,de.Z)({},Yt,{prefixCls:Xe,className:bn,inputElement:Te(),handleReset:oe,value:(0,xe.D7)(jt),focused:Zt,triggerFocus:Ae,suffix:Ye(),disabled:Kt,classes:Ce,classNames:ht,styles:Ut}))}),gt=Le,qt=gt},87887:function(En,Wt,se){"use strict";se.d(Wt,{D7:function(){return ve},He:function(){return de},X3:function(){return He},nH:function(){return Ve},rJ:function(){return Be}});function de(we){return!!(we.addonBefore||we.addonAfter)}function He(we){return!!(we.prefix||we.suffix||we.allowClear)}function Be(we,Ee,xe,me){if(xe){var Ie=Ee;if(Ee.type==="click"){var ot=we.cloneNode(!0);Ie=Object.create(Ee,{target:{value:ot},currentTarget:{value:ot}}),ot.value="",xe(Ie);return}if(me!==void 0){Ie=Object.create(Ee,{target:{value:we},currentTarget:{value:we}}),we.value=me,xe(Ie);return}xe(Ie)}}function Ve(we,Ee){if(we){we.focus(Ee);var xe=Ee||{},me=xe.cursor;if(me){var Ie=we.value.length;switch(me){case"start":we.setSelectionRange(0,0);break;case"end":we.setSelectionRange(Ie,Ie);break;default:we.setSelectionRange(0,Ie)}}}}function ve(we){return typeof we=="undefined"||we===null?"":String(we)}},78595:function(En,Wt,se){"use strict";se.d(Wt,{iz:function(){return Gr},ck:function(){return hr},BW:function(){return Wr},sN:function(){return hr},Wd:function(){return Qt},ZP:function(){return Fe},Xl:function(){return Xt}});var de=se(87462),He=se(4942),Be=se(1413),Ve=se(74902),ve=se(97685),we=se(45987),Ee=se(94184),xe=se.n(Ee),me=se(67294),Ie=se(48555);function ot(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Oe=ot()?me.useLayoutEffect:me.useEffect,St=function(Ze,nt){var lt=me.useRef(!0);Oe(function(){return Ze(lt.current)},nt),Oe(function(){return lt.current=!1,function(){lt.current=!0}},[])},ft=function(Ze,nt){St(function(lt){if(!lt)return Ze()},nt)},it=St,Je=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Le=void 0;function gt(ze,Ze){var nt=ze.prefixCls,lt=ze.invalidate,Mt=ze.item,an=ze.renderItem,un=ze.responsive,Jn=ze.responsiveDisabled,br=ze.registerSize,Vn=ze.itemKey,kn=ze.className,wn=ze.style,Pn=ze.children,zn=ze.display,gr=ze.order,Yn=ze.component,Xn=Yn===void 0?"div":Yn,ir=(0,we.Z)(ze,Je),ar=un&&!zn;function xr(Gt){br(Vn,Gt)}me.useEffect(function(){return function(){xr(null)}},[]);var Re=an&&Mt!==Le?an(Mt):Pn,Ke;lt||(Ke={opacity:ar?0:1,height:ar?0:Le,overflowY:ar?"hidden":Le,order:un?gr:Le,pointerEvents:ar?"none":Le,position:ar?"absolute":Le});var At={};ar&&(At["aria-hidden"]=!0);var dt=me.createElement(Xn,(0,de.Z)({className:xe()(!lt&&nt,kn),style:(0,Be.Z)((0,Be.Z)({},Ke),wn)},At,ir,{ref:Ze}),Re);return un&&(dt=me.createElement(Ie.Z,{onResize:function(pn){var Sn=pn.offsetWidth;xr(Sn)},disabled:Jn},dt)),dt}var qt=me.forwardRef(gt);qt.displayName="Item";var tt=qt;function ct(ze){var Ze=me.useRef();Ze.current=ze;var nt=me.useCallback(function(){for(var lt,Mt=arguments.length,an=new Array(Mt),un=0;un1&&arguments[1]!==void 0?arguments[1]:1;je+=1;var lt=je;function Mt(an){if(an===0)vt(lt),Ze();else{var un=Se(function(){Mt(an-1)});_t.set(lt,un)}}return Mt(nt),lt};kt.cancel=function(ze){var Ze=_t.get(ze);return vt(Ze),Ue(Ze)};var Xe=kt;function Kt(ze){if(typeof MessageChannel=="undefined")Xe(ze);else{var Ze=new MessageChannel;Ze.port1.onmessage=function(){return ze()},Ze.port2.postMessage(void 0)}}function Ot(){var ze=me.useRef(null),Ze=function(lt){ze.current||(ze.current=[],Kt(function(){(0,ke.unstable_batchedUpdates)(function(){ze.current.forEach(function(Mt){Mt()}),ze.current=null})})),ze.current.push(lt)};return Ze}function bn(ze,Ze){var nt=me.useState(Ze),lt=(0,ve.Z)(nt,2),Mt=lt[0],an=lt[1],un=ct(function(Jn){ze(function(){an(Jn)})});return[Mt,un]}var Nt=me.createContext(null),sn=["component"],Cn=["className"],or=["className"],Qe=function(Ze,nt){var lt=me.useContext(Nt);if(!lt){var Mt=Ze.component,an=Mt===void 0?"div":Mt,un=(0,we.Z)(Ze,sn);return me.createElement(an,(0,de.Z)({},un,{ref:nt}))}var Jn=lt.className,br=(0,we.Z)(lt,Cn),Vn=Ze.className,kn=(0,we.Z)(Ze,or);return me.createElement(Nt.Provider,{value:null},me.createElement(tt,(0,de.Z)({ref:nt,className:xe()(Jn,Vn)},br,kn)))},Ce=me.forwardRef(Qe);Ce.displayName="RawItem";var ht=Ce,Ut=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Yt="responsive",Ge="invalidate";function rt(ze){return"+ ".concat(ze.length," ...")}function jt(ze,Ze){var nt=ze.prefixCls,lt=nt===void 0?"rc-overflow":nt,Mt=ze.data,an=Mt===void 0?[]:Mt,un=ze.renderItem,Jn=ze.renderRawItem,br=ze.itemKey,Vn=ze.itemWidth,kn=Vn===void 0?10:Vn,wn=ze.ssr,Pn=ze.style,zn=ze.className,gr=ze.maxCount,Yn=ze.renderRest,Xn=ze.renderRawRest,ir=ze.suffix,ar=ze.component,xr=ar===void 0?"div":ar,Re=ze.itemComponent,Ke=ze.onVisibleChange,At=(0,we.Z)(ze,Ut),dt=wn==="full",Gt=Ot(),pn=bn(Gt,null),Sn=(0,ve.Z)(pn,2),Kn=Sn[0],Tn=Sn[1],cn=Kn||0,Wn=bn(Gt,new Map),Zn=(0,ve.Z)(Wn,2),wr=Zn[0],Un=Zn[1],Rr=bn(Gt,0),Yr=(0,ve.Z)(Rr,2),Nr=Yr[0],jr=Yr[1],kr=bn(Gt,0),zr=(0,ve.Z)(kr,2),ei=zr[0],ci=zr[1],Fr=bn(Gt,0),fi=(0,ve.Z)(Fr,2),Oi=fi[0],na=fi[1],Xi=(0,me.useState)(null),Fi=(0,ve.Z)(Xi,2),Ji=Fi[0],Qi=Fi[1],wi=(0,me.useState)(null),zi=(0,ve.Z)(wi,2),Jr=zi[0],hi=zi[1],Ii=me.useMemo(function(){return Jr===null&&dt?Number.MAX_SAFE_INTEGER:Jr||0},[Jr,Kn]),Yi=(0,me.useState)(!1),$a=(0,ve.Z)(Yi,2),Na=$a[0],Aa=$a[1],ca="".concat(lt,"-item"),ea=Math.max(Nr,ei),Mi=gr===Yt,Oa=an.length&&Mi,ki=gr===Ge,ti=Oa||typeof gr=="number"&&an.length>gr,Wi=(0,me.useMemo)(function(){var _i=an;return Oa?Kn===null&&dt?_i=an:_i=an.slice(0,Math.min(an.length,cn/kn)):typeof gr=="number"&&(_i=an.slice(0,gr)),_i},[an,kn,Kn,gr,Oa]),ua=(0,me.useMemo)(function(){return Oa?an.slice(Ii+1):an.slice(Wi.length)},[an,Wi,Oa,Ii]),Vi=(0,me.useCallback)(function(_i,Ui){var da;return typeof br=="function"?br(_i):(da=br&&(_i==null?void 0:_i[br]))!==null&&da!==void 0?da:Ui},[br]),aa=(0,me.useCallback)(un||function(_i){return _i},[un]);function mi(_i,Ui,da){Jr===_i&&(Ui===void 0||Ui===Ji)||(hi(_i),da||(Aa(_icn){mi(Sa-1,_i-Ka-Oi+ei);break}}ir&&Ma(0)+Oi>cn&&Qi(null)}},[cn,wr,ei,Oi,Vi,Wi]);var Za=Na&&!!ua.length,ha={};Ji!==null&&Oa&&(ha={position:"absolute",left:Ji,top:0});var ka={prefixCls:ca,responsive:Oa,component:Re,invalidate:ki},Ja=Jn?function(_i,Ui){var da=Vi(_i,Ui);return me.createElement(Nt.Provider,{key:da,value:(0,Be.Z)((0,Be.Z)({},ka),{},{order:Ui,item:_i,itemKey:da,registerSize:xa,display:Ui<=Ii})},Jn(_i,Ui))}:function(_i,Ui){var da=Vi(_i,Ui);return me.createElement(tt,(0,de.Z)({},ka,{order:Ui,key:da,item:_i,renderItem:aa,itemKey:da,registerSize:xa,display:Ui<=Ii}))},Ga,so={order:Za?Ii:Number.MAX_SAFE_INTEGER,className:"".concat(ca,"-rest"),registerSize:fa,display:Za};if(Xn)Xn&&(Ga=me.createElement(Nt.Provider,{value:(0,Be.Z)((0,Be.Z)({},ka),so)},Xn(ua)));else{var Fa=Yn||rt;Ga=me.createElement(tt,(0,de.Z)({},ka,so),typeof Fa=="function"?Fa(ua):Fa)}var Ca=me.createElement(xr,(0,de.Z)({className:xe()(!ki&<,zn),style:Pn,ref:Ze},At),Wi.map(Ja),ti?Ga:null,ir&&me.createElement(tt,(0,de.Z)({},ka,{responsive:Mi,responsiveDisabled:!Oa,order:Ii,className:"".concat(ca,"-suffix"),registerSize:wa,display:!0,style:ha}),ir));return Mi&&(Ca=me.createElement(Ie.Z,{onResize:pa,disabled:!Oa},Ca)),Ca}var _n=me.forwardRef(jt);_n.displayName="Overflow",_n.Item=ht,_n.RESPONSIVE=Yt,_n.INVALIDATE=Ge;var rn=_n,$t=rn,Zt=se(21770),yn=se(80334),ln=se(91881),Ae=me.createContext(null);function ue(ze,Ze){return ze===void 0?null:"".concat(ze,"-").concat(Ze)}function le(ze){var Ze=me.useContext(Ae);return ue(Ze,ze)}var pe=se(56982),he=["children","locked"],oe=me.createContext(null);function Te(ze,Ze){var nt=(0,Be.Z)({},ze);return Object.keys(Ze).forEach(function(lt){var Mt=Ze[lt];Mt!==void 0&&(nt[lt]=Mt)}),nt}function Ye(ze){var Ze=ze.children,nt=ze.locked,lt=(0,we.Z)(ze,he),Mt=me.useContext(oe),an=(0,pe.Z)(function(){return Te(Mt,lt)},[Mt,lt],function(un,Jn){return!nt&&(un[0]!==Jn[0]||!(0,ln.Z)(un[1],Jn[1],!0))});return me.createElement(oe.Provider,{value:an},Ze)}var Lt=[],Rt=me.createContext(null);function Ft(){return me.useContext(Rt)}var Jt=me.createContext(Lt);function Xt(ze){var Ze=me.useContext(Jt);return me.useMemo(function(){return ze!==void 0?[].concat((0,Ve.Z)(Ze),[ze]):Ze},[Ze,ze])}var Hn=me.createContext(null),Rn=me.createContext({}),Tt=Rn,dn=se(15105),cr=se(75164),Mr=function(ze){if(!ze)return!1;if(ze instanceof Element){if(ze.offsetParent)return!0;if(ze.getBBox){var Ze=ze.getBBox(),nt=Ze.width,lt=Ze.height;if(nt||lt)return!0}if(ze.getBoundingClientRect){var Mt=ze.getBoundingClientRect(),an=Mt.width,un=Mt.height;if(an||un)return!0}}return!1};function at(ze){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Mr(ze)){var nt=ze.nodeName.toLowerCase(),lt=["input","select","textarea","button"].includes(nt)||ze.isContentEditable||nt==="a"&&!!ze.getAttribute("href"),Mt=ze.getAttribute("tabindex"),an=Number(Mt),un=null;return Mt&&!Number.isNaN(an)?un=an:lt&&un===null&&(un=0),lt&&ze.disabled&&(un=null),un!==null&&(un>=0||Ze&&un<0)}return!1}function Ht(ze){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=(0,Ve.Z)(ze.querySelectorAll("*")).filter(function(lt){return at(lt,Ze)});return at(ze,Ze)&&nt.unshift(ze),nt}var Fn=null;function er(){Fn=document.activeElement}function nr(){Fn=null}function Sr(){if(Fn)try{Fn.focus()}catch(ze){}}function Tr(ze,Ze){if(Ze.keyCode===9){var nt=Ht(ze),lt=nt[Ze.shiftKey?0:nt.length-1],Mt=lt===document.activeElement||ze===document.activeElement;if(Mt){var an=nt[Ze.shiftKey?nt.length-1:0];an.focus(),Ze.preventDefault()}}}var Er=dn.Z.LEFT,Or=dn.Z.RIGHT,Vr=dn.Z.UP,ur=dn.Z.DOWN,si=dn.Z.ENTER,Li=dn.Z.ESC,Bi=dn.Z.HOME,Hi=dn.Z.END,ri=[Vr,ur,Er,Or];function yt(ze,Ze,nt,lt){var Mt,an,un,Jn,br="prev",Vn="next",kn="children",wn="parent";if(ze==="inline"&<===si)return{inlineTrigger:!0};var Pn=(Mt={},(0,He.Z)(Mt,Vr,br),(0,He.Z)(Mt,ur,Vn),Mt),zn=(an={},(0,He.Z)(an,Er,nt?Vn:br),(0,He.Z)(an,Or,nt?br:Vn),(0,He.Z)(an,ur,kn),(0,He.Z)(an,si,kn),an),gr=(un={},(0,He.Z)(un,Vr,br),(0,He.Z)(un,ur,Vn),(0,He.Z)(un,si,kn),(0,He.Z)(un,Li,wn),(0,He.Z)(un,Er,nt?kn:wn),(0,He.Z)(un,Or,nt?wn:kn),un),Yn={inline:Pn,horizontal:zn,vertical:gr,inlineSub:Pn,horizontalSub:gr,verticalSub:gr},Xn=(Jn=Yn["".concat(ze).concat(Ze?"":"Sub")])===null||Jn===void 0?void 0:Jn[lt];switch(Xn){case br:return{offset:-1,sibling:!0};case Vn:return{offset:1,sibling:!0};case wn:return{offset:-1,sibling:!1};case kn:return{offset:1,sibling:!1};default:return null}}function Mn(ze){for(var Ze=ze;Ze;){if(Ze.getAttribute("data-menu-list"))return Ze;Ze=Ze.parentElement}return null}function An(ze,Ze){for(var nt=ze||document.activeElement;nt;){if(Ze.has(nt))return nt;nt=nt.parentElement}return null}function Dn(ze,Ze){var nt=Ht(ze,!0);return nt.filter(function(lt){return Ze.has(lt)})}function lr(ze,Ze,nt){var lt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ze)return null;var Mt=Dn(ze,Ze),an=Mt.length,un=Mt.findIndex(function(Jn){return nt===Jn});return lt<0?un===-1?un=an-1:un-=1:lt>0&&(un+=1),un=(un+an)%an,Mt[un]}function qn(ze,Ze,nt,lt,Mt,an,un,Jn,br,Vn){var kn=me.useRef(),wn=me.useRef();wn.current=Ze;var Pn=function(){cr.Z.cancel(kn.current)};return me.useEffect(function(){return function(){Pn()}},[]),function(zn){var gr=zn.which;if([].concat(ri,[si,Li,Bi,Hi]).includes(gr)){var Yn,Xn,ir,ar=function(){Yn=new Set,Xn=new Map,ir=new Map;var Zn=an();return Zn.forEach(function(wr){var Un=document.querySelector("[data-menu-id='".concat(ue(lt,wr),"']"));Un&&(Yn.add(Un),ir.set(Un,wr),Xn.set(wr,Un))}),Yn};ar();var xr=Xn.get(Ze),Re=An(xr,Yn),Ke=ir.get(Re),At=yt(ze,un(Ke,!0).length===1,nt,gr);if(!At&&gr!==Bi&&gr!==Hi)return;(ri.includes(gr)||[Bi,Hi].includes(gr))&&zn.preventDefault();var dt=function(Zn){if(Zn){var wr=Zn,Un=Zn.querySelector("a");Un!=null&&Un.getAttribute("href")&&(wr=Un);var Rr=ir.get(Zn);Jn(Rr),Pn(),kn.current=(0,cr.Z)(function(){wn.current===Rr&&wr.focus()})}};if([Bi,Hi].includes(gr)||At.sibling||!Re){var Gt;!Re||ze==="inline"?Gt=Mt.current:Gt=Mn(Re);var pn,Sn=Dn(Gt,Yn);gr===Bi?pn=Sn[0]:gr===Hi?pn=Sn[Sn.length-1]:pn=lr(Gt,Yn,Re,At.offset),dt(pn)}else if(At.inlineTrigger)br(Ke);else if(At.offset>0)br(Ke,!0),Pn(),kn.current=(0,cr.Z)(function(){ar();var Wn=Re.getAttribute("aria-controls"),Zn=document.getElementById(Wn),wr=lr(Zn,Yn);dt(wr)},5);else if(At.offset<0){var Kn=un(Ke,!0),Tn=Kn[Kn.length-2],cn=Xn.get(Tn);br(Tn,!1),dt(cn)}}Vn==null||Vn(zn)}}function pr(ze){Promise.resolve().then(ze)}var $n="__RC_UTIL_PATH_SPLIT__",qe=function(Ze){return Ze.join($n)},ut=function(Ze){return Ze.split($n)},Dt="rc-menu-more";function Vt(){var ze=me.useState({}),Ze=(0,ve.Z)(ze,2),nt=Ze[1],lt=(0,me.useRef)(new Map),Mt=(0,me.useRef)(new Map),an=me.useState([]),un=(0,ve.Z)(an,2),Jn=un[0],br=un[1],Vn=(0,me.useRef)(0),kn=(0,me.useRef)(!1),wn=function(){kn.current||nt({})},Pn=(0,me.useCallback)(function(xr,Re){var Ke=qe(Re);Mt.current.set(Ke,xr),lt.current.set(xr,Ke),Vn.current+=1;var At=Vn.current;pr(function(){At===Vn.current&&wn()})},[]),zn=(0,me.useCallback)(function(xr,Re){var Ke=qe(Re);Mt.current.delete(Ke),lt.current.delete(xr)},[]),gr=(0,me.useCallback)(function(xr){br(xr)},[]),Yn=(0,me.useCallback)(function(xr,Re){var Ke=lt.current.get(xr)||"",At=ut(Ke);return Re&&Jn.includes(At[0])&&At.unshift(Dt),At},[Jn]),Xn=(0,me.useCallback)(function(xr,Re){return xr.some(function(Ke){var At=Yn(Ke,!0);return At.includes(Re)})},[Yn]),ir=function(){var Re=(0,Ve.Z)(lt.current.keys());return Jn.length&&Re.push(Dt),Re},ar=(0,me.useCallback)(function(xr){var Re="".concat(lt.current.get(xr)).concat($n),Ke=new Set;return(0,Ve.Z)(Mt.current.keys()).forEach(function(At){At.startsWith(Re)&&Ke.add(Mt.current.get(At))}),Ke},[]);return me.useEffect(function(){return function(){kn.current=!0}},[]),{registerPath:Pn,unregisterPath:zn,refreshOverflowKeys:gr,isSubPathKey:Xn,getKeyPath:Yn,getKeys:ir,getSubPathKeys:ar}}function We(ze){var Ze=me.useRef(ze);Ze.current=ze;var nt=me.useCallback(function(){for(var lt,Mt=arguments.length,an=new Array(Mt),un=0;un1&&(ar.motionAppear=!1);var xr=ar.onVisibleChanged;return ar.onVisibleChanged=function(Re){return!Pn.current&&!Re&&Xn(!0),xr==null?void 0:xr(Re)},Yn?null:me.createElement(Ye,{mode:an,locked:!Pn.current},me.createElement(la.Z,(0,de.Z)({visible:ir},ar,{forceRender:br,removeOnLeave:!1,leavedClassName:"".concat(Jn,"-hidden")}),function(Re){var Ke=Re.className,At=Re.style;return me.createElement($i,{id:Ze,className:Ke,style:At},Mt)}))}var ii=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Et=["active"],wt=function(Ze){var nt,lt=Ze.style,Mt=Ze.className,an=Ze.title,un=Ze.eventKey,Jn=Ze.warnKey,br=Ze.disabled,Vn=Ze.internalPopupClose,kn=Ze.children,wn=Ze.itemIcon,Pn=Ze.expandIcon,zn=Ze.popupClassName,gr=Ze.popupOffset,Yn=Ze.popupStyle,Xn=Ze.onClick,ir=Ze.onMouseEnter,ar=Ze.onMouseLeave,xr=Ze.onTitleClick,Re=Ze.onTitleMouseEnter,Ke=Ze.onTitleMouseLeave,At=(0,we.Z)(Ze,ii),dt=le(un),Gt=me.useContext(oe),pn=Gt.prefixCls,Sn=Gt.mode,Kn=Gt.openKeys,Tn=Gt.disabled,cn=Gt.overflowDisabled,Wn=Gt.activeKey,Zn=Gt.selectedKeys,wr=Gt.itemIcon,Un=Gt.expandIcon,Rr=Gt.onItemClick,Yr=Gt.onOpenChange,Nr=Gt.onActive,jr=me.useContext(Tt),kr=jr._internalRenderSubMenuItem,zr=me.useContext(Hn),ei=zr.isSubPathKey,ci=Xt(),Fr="".concat(pn,"-submenu"),fi=Tn||br,Oi=me.useRef(),na=me.useRef(),Xi=wn!=null?wn:wr,Fi=Pn!=null?Pn:Un,Ji=Kn.includes(un),Qi=!cn&&Ji,wi=ei(Zn,un),zi=dr(un,fi,Re,Ke),Jr=zi.active,hi=(0,we.Z)(zi,Et),Ii=me.useState(!1),Yi=(0,ve.Z)(Ii,2),$a=Yi[0],Na=Yi[1],Aa=function(wa){fi||Na(wa)},ca=function(wa){Aa(!0),ir==null||ir({key:un,domEvent:wa})},ea=function(wa){Aa(!1),ar==null||ar({key:un,domEvent:wa})},Mi=me.useMemo(function(){return Jr||(Sn!=="inline"?$a||ei([Wn],un):!1)},[Sn,Jr,Wn,$a,un,ei]),Oa=fr(ci.length),ki=function(wa){fi||(xr==null||xr({key:un,domEvent:wa}),Sn==="inline"&&Yr(un,!Ji))},ti=We(function(fa){Xn==null||Xn(Ct(fa)),Rr(fa)}),Wi=function(wa){Sn!=="inline"&&Yr(un,wa)},ua=function(){Nr(un)},Vi=dt&&"".concat(dt,"-popup"),aa=me.createElement("div",(0,de.Z)({role:"menuitem",style:Oa,className:"".concat(Fr,"-title"),tabIndex:fi?null:-1,ref:Oi,title:typeof an=="string"?an:null,"data-menu-id":cn&&dt?null:dt,"aria-expanded":Qi,"aria-haspopup":!0,"aria-controls":Vi,"aria-disabled":fi,onClick:ki,onFocus:ua},hi),an,me.createElement(mt,{icon:Sn!=="horizontal"?Fi:void 0,props:(0,Be.Z)((0,Be.Z)({},Ze),{},{isOpen:Qi,isSubMenu:!0})},me.createElement("i",{className:"".concat(Fr,"-arrow")}))),mi=me.useRef(Sn);if(Sn!=="inline"&&ci.length>1?mi.current="vertical":mi.current=Sn,!cn){var pa=mi.current;aa=me.createElement(Zi,{mode:pa,prefixCls:Fr,visible:!Vn&&Qi&&Sn!=="inline",popupClassName:zn,popupOffset:gr,popupStyle:Yn,popup:me.createElement(Ye,{mode:pa==="horizontal"?"vertical":pa},me.createElement($i,{id:Vi,ref:na},kn)),disabled:fi,onVisibleChange:Wi},aa)}var xa=me.createElement($t.Item,(0,de.Z)({role:"none"},At,{component:"li",style:lt,className:xe()(Fr,"".concat(Fr,"-").concat(Sn),Mt,(nt={},(0,He.Z)(nt,"".concat(Fr,"-open"),Qi),(0,He.Z)(nt,"".concat(Fr,"-active"),Mi),(0,He.Z)(nt,"".concat(Fr,"-selected"),wi),(0,He.Z)(nt,"".concat(Fr,"-disabled"),fi),nt)),onMouseEnter:ca,onMouseLeave:ea}),aa,!cn&&me.createElement(ta,{id:Vi,open:Qi,keyPath:ci},kn));return kr&&(xa=kr(xa,Ze,{selected:wi,active:Mi,open:Qi,disabled:fi})),me.createElement(Ye,{onItemClick:ti,mode:Sn==="horizontal"?"vertical":Sn,itemIcon:Xi,expandIcon:Fi},xa)};function Qt(ze){var Ze=ze.eventKey,nt=ze.children,lt=Xt(Ze),Mt=gi(nt,lt),an=Ft();me.useEffect(function(){if(an)return an.registerPath(Ze,lt),function(){an.unregisterPath(Ze,lt)}},[lt]);var un;return an?un=Mt:un=me.createElement(wt,ze,Mt),me.createElement(Jt.Provider,{value:lt},un)}var mn=se(71002),On=["className","title","eventKey","children"],vr=["children"],Ir=function(Ze){var nt=Ze.className,lt=Ze.title,Mt=Ze.eventKey,an=Ze.children,un=(0,we.Z)(Ze,On),Jn=me.useContext(oe),br=Jn.prefixCls,Vn="".concat(br,"-item-group");return me.createElement("li",(0,de.Z)({role:"presentation"},un,{onClick:function(wn){return wn.stopPropagation()},className:xe()(Vn,nt)}),me.createElement("div",{role:"presentation",className:"".concat(Vn,"-title"),title:typeof lt=="string"?lt:void 0},lt),me.createElement("ul",{role:"group",className:"".concat(Vn,"-list")},an))};function Wr(ze){var Ze=ze.children,nt=(0,we.Z)(ze,vr),lt=Xt(nt.eventKey),Mt=gi(Ze,lt),an=Ft();return an?Mt:me.createElement(Ir,(0,rr.Z)(nt,["warnKey"]),Mt)}function Gr(ze){var Ze=ze.className,nt=ze.style,lt=me.useContext(oe),Mt=lt.prefixCls,an=Ft();return an?null:me.createElement("li",{role:"separator",className:xe()("".concat(Mt,"-item-divider"),Ze),style:nt})}var Hr=["label","children","key","type"];function ni(ze){return(ze||[]).map(function(Ze,nt){if(Ze&&(0,mn.Z)(Ze)==="object"){var lt=Ze,Mt=lt.label,an=lt.children,un=lt.key,Jn=lt.type,br=(0,we.Z)(lt,Hr),Vn=un!=null?un:"tmp-".concat(nt);return an||Jn==="group"?Jn==="group"?me.createElement(Wr,(0,de.Z)({key:Vn},br,{title:Mt}),ni(an)):me.createElement(Qt,(0,de.Z)({key:Vn},br,{title:Mt}),ni(an)):Jn==="divider"?me.createElement(Gr,(0,de.Z)({key:Vn},br)):me.createElement(hr,(0,de.Z)({key:Vn},br),Mt)}return null}).filter(function(Ze){return Ze})}function yi(ze,Ze,nt){var lt=ze;return Ze&&(lt=ni(Ze)),gi(lt,nt)}var Ar=["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"],pi=[],Ti=me.forwardRef(function(ze,Ze){var nt,lt,Mt=ze,an=Mt.prefixCls,un=an===void 0?"rc-menu":an,Jn=Mt.rootClassName,br=Mt.style,Vn=Mt.className,kn=Mt.tabIndex,wn=kn===void 0?0:kn,Pn=Mt.items,zn=Mt.children,gr=Mt.direction,Yn=Mt.id,Xn=Mt.mode,ir=Xn===void 0?"vertical":Xn,ar=Mt.inlineCollapsed,xr=Mt.disabled,Re=Mt.disabledOverflow,Ke=Mt.subMenuOpenDelay,At=Ke===void 0?.1:Ke,dt=Mt.subMenuCloseDelay,Gt=dt===void 0?.1:dt,pn=Mt.forceSubMenuRender,Sn=Mt.defaultOpenKeys,Kn=Mt.openKeys,Tn=Mt.activeKey,cn=Mt.defaultActiveFirst,Wn=Mt.selectable,Zn=Wn===void 0?!0:Wn,wr=Mt.multiple,Un=wr===void 0?!1:wr,Rr=Mt.defaultSelectedKeys,Yr=Mt.selectedKeys,Nr=Mt.onSelect,jr=Mt.onDeselect,kr=Mt.inlineIndent,zr=kr===void 0?24:kr,ei=Mt.motion,ci=Mt.defaultMotions,Fr=Mt.triggerSubMenuAction,fi=Fr===void 0?"hover":Fr,Oi=Mt.builtinPlacements,na=Mt.itemIcon,Xi=Mt.expandIcon,Fi=Mt.overflowedIndicator,Ji=Fi===void 0?"...":Fi,Qi=Mt.overflowedIndicatorPopupClassName,wi=Mt.getPopupContainer,zi=Mt.onClick,Jr=Mt.onOpenChange,hi=Mt.onKeyDown,Ii=Mt.openAnimation,Yi=Mt.openTransitionName,$a=Mt._internalRenderMenuItem,Na=Mt._internalRenderSubMenuItem,Aa=(0,we.Z)(Mt,Ar),ca=me.useMemo(function(){return yi(zn,Pn,pi)},[zn,Pn]),ea=me.useState(!1),Mi=(0,ve.Z)(ea,2),Oa=Mi[0],ki=Mi[1],ti=me.useRef(),Wi=Bt(Yn),ua=gr==="rtl",Vi=(0,Zt.Z)(Sn,{value:Kn,postState:function(Ia){return Ia||pi}}),aa=(0,ve.Z)(Vi,2),mi=aa[0],pa=aa[1],xa=function(Ia){var Xa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function go(){pa(Ia),Jr==null||Jr(Ia)}Xa?(0,ke.flushSync)(go):go()},fa=me.useState(mi),wa=(0,ve.Z)(fa,2),Ma=wa[0],Za=wa[1],ha=me.useRef(!1),ka=me.useMemo(function(){return(ir==="inline"||ir==="vertical")&&ar?["vertical",ar]:[ir,!1]},[ir,ar]),Ja=(0,ve.Z)(ka,2),Ga=Ja[0],so=Ja[1],Fa=Ga==="inline",Ca=me.useState(Ga),_i=(0,ve.Z)(Ca,2),Ui=_i[0],da=_i[1],Sa=me.useState(so),Ka=(0,ve.Z)(Sa,2),io=Ka[0],ho=Ka[1];me.useEffect(function(){da(Ga),ho(so),ha.current&&(Fa?pa(Ma):xa(pi))},[Ga,so]);var Oo=me.useState(0),Ro=(0,ve.Z)(Oo,2),lo=Ro[0],Ao=Ro[1],ra=lo>=ca.length-1||Ui!=="horizontal"||Re;me.useEffect(function(){Fa&&Za(mi)},[mi]),me.useEffect(function(){return ha.current=!0,function(){ha.current=!1}},[]);var Ri=Vt(),Ta=Ri.registerPath,_a=Ri.unregisterPath,co=Ri.refreshOverflowKeys,ao=Ri.isSubPathKey,hs=Ri.getKeyPath,Qo=Ri.getKeys,ps=Ri.getSubPathKeys,oa=me.useMemo(function(){return{registerPath:Ta,unregisterPath:_a}},[Ta,_a]),Br=me.useMemo(function(){return{isSubPathKey:ao}},[ao]);me.useEffect(function(){co(ra?pi:ca.slice(lo+1).map(function(oo){return oo.key}))},[lo,ra]);var Si=(0,Zt.Z)(Tn||cn&&((nt=ca[0])===null||nt===void 0?void 0:nt.key),{value:Tn}),Ci=(0,ve.Z)(Si,2),Di=Ci[0],Ha=Ci[1],Va=We(function(oo){Ha(oo)}),Fo=We(function(){Ha(void 0)});(0,me.useImperativeHandle)(Ze,function(){return{list:ti.current,focus:function(Ia){var Xa,go=Di!=null?Di:(Xa=ca.find(function(xs){return!xs.props.disabled}))===null||Xa===void 0?void 0:Xa.key;if(go){var yo,Ko,wo;(yo=ti.current)===null||yo===void 0||(Ko=yo.querySelector("li[data-menu-id='".concat(ue(Wi,go),"']")))===null||Ko===void 0||(wo=Ko.focus)===null||wo===void 0||wo.call(Ko,Ia)}}}});var Uo=(0,Zt.Z)(Rr||[],{value:Yr,postState:function(Ia){return Array.isArray(Ia)?Ia:Ia==null?pi:[Ia]}}),ls=(0,ve.Z)(Uo,2),va=ls[0],Bo=ls[1],cs=function(Ia){if(Zn){var Xa=Ia.key,go=va.includes(Xa),yo;Un?go?yo=va.filter(function(wo){return wo!==Xa}):yo=[].concat((0,Ve.Z)(va),[Xa]):yo=[Xa],Bo(yo);var Ko=(0,Be.Z)((0,Be.Z)({},Ia),{},{selectedKeys:yo});go?jr==null||jr(Ko):Nr==null||Nr(Ko)}!Un&&mi.length&&Ui!=="inline"&&xa(pi)},ul=We(function(oo){zi==null||zi(Ct(oo)),cs(oo)}),As=We(function(oo,Ia){var Xa=mi.filter(function(yo){return yo!==oo});if(Ia)Xa.push(oo);else if(Ui!=="inline"){var go=ps(oo);Xa=Xa.filter(function(yo){return!go.has(yo)})}(0,ln.Z)(mi,Xa,!0)||xa(Xa,!0)}),ms=function(Ia,Xa){var go=Xa!=null?Xa:!mi.includes(Ia);As(Ia,go)},zo=qn(Ui,Di,ua,Wi,ti,Qo,hs,Ha,ms,hi);me.useEffect(function(){ki(!0)},[]);var Ts=me.useMemo(function(){return{_internalRenderMenuItem:$a,_internalRenderSubMenuItem:Na}},[$a,Na]),Is=Ui!=="horizontal"||Re?ca:ca.map(function(oo,Ia){return me.createElement(Ye,{key:oo.key,overflowDisabled:Ia>lo},oo)}),qs=me.createElement($t,(0,de.Z)({id:Yn,ref:ti,prefixCls:"".concat(un,"-overflow"),component:"ul",itemComponent:hr,className:xe()(un,"".concat(un,"-root"),"".concat(un,"-").concat(Ui),Vn,(lt={},(0,He.Z)(lt,"".concat(un,"-inline-collapsed"),io),(0,He.Z)(lt,"".concat(un,"-rtl"),ua),lt),Jn),dir:gr,style:br,role:"menu",tabIndex:wn,data:Is,renderRawItem:function(Ia){return Ia},renderRawRest:function(Ia){var Xa=Ia.length,go=Xa?ca.slice(-Xa):null;return me.createElement(Qt,{eventKey:Dt,title:Ji,disabled:ra,internalPopupClose:Xa===0,popupClassName:Qi},go)},maxCount:Ui!=="horizontal"||Re?$t.INVALIDATE:$t.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ia){Ao(Ia)},onKeyDown:zo},Aa));return me.createElement(Tt.Provider,{value:Ts},me.createElement(Ae.Provider,{value:Wi},me.createElement(Ye,{prefixCls:un,rootClassName:Jn,mode:Ui,openKeys:mi,rtl:ua,disabled:xr,motion:Oa?ei:null,defaultMotions:Oa?ci:null,activeKey:Di,onActive:Va,onInactive:Fo,selectedKeys:va,inlineIndent:zr,subMenuOpenDelay:At,subMenuCloseDelay:Gt,forceSubMenuRender:pn,builtinPlacements:Oi,triggerSubMenuAction:fi,getPopupContainer:wi,itemIcon:na,expandIcon:Xi,onItemClick:ul,onOpenChange:As},me.createElement(Hn.Provider,{value:Br},qs),me.createElement("div",{style:{display:"none"},"aria-hidden":!0},me.createElement(Rt.Provider,{value:oa},ca)))))}),Ei=Ti,De=Ei;De.Item=hr,De.SubMenu=Qt,De.ItemGroup=Wr,De.Divider=Gr;var Fe=De},66680:function(En,Wt,se){"use strict";se.d(Wt,{Z:function(){return He}});var de=se(67294);function He(Be){var Ve=de.useRef();Ve.current=Be;var ve=de.useCallback(function(){for(var we,Ee=arguments.length,xe=new Array(Ee),me=0;me2&&arguments[2]!==void 0?arguments[2]:!1,Ee=new Set;function xe(me,Ie){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Oe=Ee.has(me);if((0,He.ZP)(!Oe,"Warning: There may be circular references"),Oe)return!1;if(me===Ie)return!0;if(we&&ot>1)return!1;Ee.add(me);var St=ot+1;if(Array.isArray(me)){if(!Array.isArray(Ie)||me.length!==Ie.length)return!1;for(var ft=0;ft