!(function(){var Tl=Math.pow;var gc=(dn,en,se)=>new Promise((ae,Pe)=>{var Re=ke=>{try{ve(se.next(ke))}catch(Le){Pe(Le)}},qe=ke=>{try{ve(se.throw(ke))}catch(Le){Pe(Le)}},ve=ke=>ke.done?ae(ke.value):Promise.resolve(ke.value).then(Re,qe);ve((se=se.apply(dn,en)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3263],{18299:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},84249:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},81893:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},42922:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},90674:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},25877:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},63237:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},99569:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},22751:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},38308:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},17663:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},91034:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},72395:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},53978:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Le}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(me,Ie){return Pe.createElement(ve.Z,(0,ae.Z)({},me,{ref:Ie,icon:qe}))},Le=Pe.forwardRef(ke)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(dn,en){"use strict";en.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52654:function(dn,en){"use strict";en.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},94785:function(dn,en){"use strict";en.Z={flex_box_center:"flex_box_center___QbjXY",flex_space_between:"flex_space_between___CGgf9",flex_box_vertical_center:"flex_box_vertical_center___TZqsW",flex_box_center_end:"flex_box_center_end___G6yjl",flex_box_column:"flex_box_column___X3SPm",Onerow:"Onerow___te_Su",MultiLine:"MultiLine___FQNWA",DiscussionList:"DiscussionList___AO3Id",DiscussionListItem:"DiscussionListItem___dGzLI",DiscussionListItemImg:"DiscussionListItemImg___XeC4p",imgUpLoad:"imgUpLoad___gjBfb"}},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 dn={},en="5.0",se={},ae=null,Pe=!1,Re=!1,qe=null,ve=!1,ke=null,Le=null,xe=0;xe4?parseFloat($e):5};dn.setHTML5Codebase=function($e,dt){Le=$e,At($e,dt)},dn.setJavaCodebase=dn.setJavaCodebaseVersion=dn.isCompiledInstalled=dn.setPreCompiledScriptPath=dn.setPreCompiledResourcePath=function(){},dn.setHTML5CodebaseVersion=function($e,dt){var qt=parseFloat($e);if(qt!==NaN&&qt<5){console.log("The GeoGebra HTML5 codebase version "+qt+" is deprecated. Using version latest instead.");return}ke=$e,we($e,dt)},dn.getHTML5CodebaseVersion=function(){return pt},dn.getParameters=function(){return se},dn.setFontsCSSURL=function($e){Xe=$e},dn.setGiacJSURL=function($e){},dn.setJNLPFile=function($e){Ie=$e},dn.setJNLPBaseDir=function($e){},dn.inject=function(){function $e(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var dt="auto",qt=se.id,Xn,bn=!1,un=0;un=5)return!0;var $e=dn.getAppletObject();return $e&&typeof $e.recalculateEnvironments=="function"?($e.recalculateEnvironments(),!0):!1},dn.startAnimation=function(){var $e=dn.getAppletObject();return $e&&typeof $e.startAnimation=="function"?($e.startAnimation(),!0):!1},dn.stopAnimation=function(){var $e=dn.getAppletObject();return $e&&typeof $e.stopAnimation=="function"?($e.stopAnimation(),!0):!1},dn.getAppletObject=function(){var $e=se.id!==void 0?se.id:"ggbApplet";return window[$e]},dn.resize=function(){};var Ft=function($e,dt,qt){var Xn=document.createElement("param");Xn.setAttribute("name",dt),Xn.setAttribute("value",qt),$e.appendChild(Xn)},tt=function($e){return $e&&$e!=="false"},Jt=function($e,dt,qt){Se(pt)<=4.2&&(qt=!0);var Xn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==pt||ggbHTML5LoadedCodebaseIsWebSimple&&!rt)&&(Xn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var bn=document.createElement("div");bn.classList.add("appletParameters","notranslate");var un=dt.width,nn=dt.height;if(dt.disableAutoScale=dt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():dt.disableAutoScale,dt.width!==void 0)if(Se(pt)<=4.4)tt(dt.showToolBar)&&(dt.height-=7),tt(dt.showAlgebraInput)&&(dt.height-=37),dt.width<605&&tt(dt.showToolBar)&&(dt.width=605,un=605);else{var xn=100;(tt(dt.showToolBar)||tt(dt.showMenuBar))&&(dt.hasOwnProperty("customToolBar")&&(dt.customToolbar=dt.customToolBar),xn=tt(dt.showMenuBar)?245:155),un=5?(dt.appletOnLoad=function($t){var Je=$e.querySelector(".ggb_preview");Je&&Je.parentNode.removeChild(Je),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ue),window.GGBT_wsf_view&&$(window).trigger("resize"),De($t)},ce||ue.appendChild(he)):bn.appendChild(he),ue.appendChild(bn),ce||$e.appendChild(ue),setTimeout(function(){dn.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(bn),$e.appendChild(fe),dt.appletOnLoad=function($t){dn.resize(),De($t)}}function le($t,Je){Je&&typeof Je.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement($t,Je.appletOnLoad):renderGGBElement($t),Mn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Je)}function Me($t,Je){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:$t,params:Je}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Et){le(Et.article,Et.params)}),html5AppletsToProcess=null)},Se(pt)<5&&($t.className+=" geogebraweb")):le($t,Je)}if(Xn){scriptLoadStarted=!0;for(var Ve=0;Ve0?(Pn.remove(),ue.attr("id","fullscreencontent").show(),jQuery(De).append(ue),window.dispatchEvent(new Event("resize"))):Jt(Pn,dt,!1),window.GGBT_wsf_view.launchFullScreen(De)}else xt=Xn,Jt($e,dt,!1);if(!window.GGBT_wsf_view)for(nn=0;nn$e/4*3&&(Pn=$e/4*3),De=Pn/5.8,xn.setAttribute("src",at),xn.setAttribute("width",Pn),xn.setAttribute("height",De);var ue=($e-Pn)/2,ce=(dt-De)/2;xn.style.left=ue+"px",xn.style.top=ce+"px",bn.appendChild(xn)}}return bn.appendChild(nn),bn},tr=function($e){return $e=$e.toLowerCase(),$e==="html5"||$e==="screenshot"?$e:"html5"},Qe=["web","webSimple","web3d","tablet","tablet3d","phone"],we=function($e,dt){if(pt=$e,dt){At(pt,!0);return}var qt=!Pe;if(qt){var Xn=Se(pt);!isNaN(Xn)&&Xn<4.4&&(qt=!1)}var bn,un;window.location.protocol.substr(0,4)==="http"?bn=window.location.protocol:bn="http:";var nn=pt.indexOf("//");nn>0?un=pt:nn===0?un=bn+pt:un="https://www.geogebra.org/apps/5.2.814.0/";for(var xn in Qe)if(pt.slice(Qe[xn].length*-1)===Qe[xn]||pt.slice((Qe[xn].length+1)*-1)===Qe[xn]+"/"){At(un,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qt&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!tt(se.showToolBar)&&!tt(se.showMenuBar)&&!tt(se.showAlgebraInput)&&!tt(se.enableRightClick)&&(!se.appName||se.appName=="classic")?un+="webSimple/":un+="web3d/",At(un,!1)},At=function($e,dt){if($e.requirejs){st=$e;return}$e.slice(-1)!=="/"&&($e+="/"),st=$e,dt===null&&(dt=$e.indexOf("http")===-1),Ne=dt,ct="web.nocache.js",rt=!1;var qt=st.split("/");qt.length>1&&(!dt&&qt[qt.length-2]==="webSimple"?(ct="webSimple.nocache.js",rt=!0):Qe.indexOf(qt[qt.length-2])>=0&&(ct=qt[qt.length-2]+".nocache.js")),qt=$e.split("/"),pt=qt[qt.length-3],pt.substr(0,4)==="test"?pt=pt.substr(4,1)+"."+pt.substr(5,1):(pt.substr(0,3)==="war"||pt.substr(0,4)==="beta")&&(pt="5.0");var Xn=parseFloat(pt);Xn!==NaN&&Xn<5&&$e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Xn+" is deprecated. Using version latest instead."),we("5.0",dt))},Mn=function($e,dt){window.console&&window.console.log&&(!dt||typeof dt.showLogging=="undefined"||dt.showLogging&&dt.showLogging!=="false")&&console.log($e)};se.material_id!==void 0?Ue(_t):_t();function _t(){var $e=en;ke!==null?$e=ke:parseFloat($e)<5&&($e="5.0"),we($e,!1),Le!==null&&At(Le,Ne),ve=!0}return dn},GGBAppletUtils=function(){"use strict";function dn(){return window.GGBT_wsf_edit!==void 0}function en(ve,ke){ke!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+ke+","+ke+")",ve.style.webkitTransform="scale("+ke+","+ke+")",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,ke,Le,xe,me,Ie){var st=null;if(Ie!=null&&Ie!="")for(var Ne=ve.parentNode;Ne!=null;)if((" "+Ne.className+" ").indexOf(" "+Ie+" ")>-1){st=Ne;break}else Ne=Ne.parentNode;var xt=0,pt=0,ct=0,rt=0,Ee=0,at=0,Yt=0;if(st)xt=st.offsetWidth,pt=Math.max(xe?st.offsetWidth:0,st.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xt=Math.min(window.innerWidth,document.documentElement.clientWidth),pt=Math.min(window.innerHeight,document.documentElement.clientHeight),ct=xt):(xt=window.innerWidth,pt=window.innerHeight,ct=window.innerWidth),ve){var Xe=ve.getBoundingClientRect();Xe.left>0&&Xe.left<=xt&&(me===void 0||!me)&&(document.dir==="rtl"?(Ee=xt-Xe.width-Xe.left,at=ct<=480?10:30):(at=Xe.left,Ee=ct<=480?10:30),rt=at+Ee)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var lt=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(rt=40,Yt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(rt=0,Yt=40)}}return ve&&((Le===void 0||!Le)&&ke>0&&ke+rt1&&(Ie=!0)),ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))me=ae(ve,ke,Ie,Le,ve.scaleContainerClass);else return xe;return Ie&&(!ve.hasOwnProperty("scale")||xe===1)?me:Math.min(xe,me)}function Re(ve){var ke=Math.min(window.innerWidth,document.documentElement.clientWidth),Le=Math.min(window.innerHeight,document.documentElement.clientHeight),xe=ve.getBoundingClientRect(),me=(ke-xe.width)/2,Ie=(Le-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 qe(ve,ke){var Le=ve.querySelector(".appletParameters");if(Le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!==Le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(Le.parentElement&&/fullscreen/.test(Le.parentElement.className))return;var xe=Pe(ke,ve);dn()&&Le.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(dn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(dn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(dn){var en=c[dn];return en==null?null:en},r=d,webModule.__errFn=e}function B(){function dn(ve){var ke=ve.lastIndexOf(rb);ke==-1&&(ke=ve.length);var Le=ve.indexOf(sb);Le==-1&&(Le=ve.length);var xe=ve.lastIndexOf(tb,Math.min(Le,ke));return xe>=O?ve.substring(O,xe+P):W}function en(ve){if(!ve.match(/^\w+:\/\//)){var ke=o.createElement(ub);ke.src=ve+vb,ve=dn(ke.src)}return ve}function se(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function ae(){for(var ve=o.getElementsByTagName(_),ke=O;keO?ve[ve.length-P].href:W}function Re(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var qe=se();return qe==W&&(qe=ae()),qe==W&&(qe=Pe()),qe==W&&Re()&&(qe=dn(o.location.href)),qe=en(qe),qe}function C(dn){return dn.match(/^\//)||dn.match(/^[a-zA-Z]+:\/\//)?dn:webModule.__moduleBase+dn}function D(){var dn=[],en=O,se=[],ae=[];function Pe(ve){var ke=ae[ve](),Le=se[ve];if(ke in Le)return ke;var xe=[];for(var me in Le)xe[Le[me]]=me;throw r&&r(ve,xe,ke),null}if(__gwt_isKnownPropertyValue=function(ve,ke){return ke in se[ve]},webModule.__getPropMap=function(){var ve={};for(var ke in se)se.hasOwnProperty(ke)&&(ve[ke]=Pe(ke));return ve},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Re;try{Re=Cb;var qe=Re.indexOf(Db);qe!=-1&&(en=parseInt(Re.substring(qe+P),$),Re=Re.substring(O,qe))}catch(ve){}return webModule.__softPermutationId=en,C(Re+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(dn,en,se){"use strict";se.d(en,{Ax:function(){return qe},Ds:function(){return ve},KI:function(){return Le},SI:function(){return Re},f1:function(){return Pe}});var ae=se(11320);function Pe(xe){let me=!0;if(xe.length>0){for(let Ie=0;Ienew Promise((ct,rt)=>{var Ee=Xe=>{try{Yt(pt.next(Xe))}catch(lt){rt(lt)}},at=Xe=>{try{Yt(pt.throw(Xe))}catch(lt){rt(lt)}},Yt=Xe=>Xe.done?ct(Xe.value):Promise.resolve(Xe.value).then(Ee,at);Yt((pt=pt.apply(Ne,xt)).next())}),st=({data:Ne,className:xt,fullWidth:pt,style:ct={},onClose:rt,onOk:Ee,showFullTools:at,noAssociationId:Yt})=>{const Xe=(0,ae.useRef)(null),lt=(0,ae.useRef)(null),Se=(0,ae.useRef)(null),Ce=(0,ae.useRef)(null),[je,Ue]=(0,ae.useState)(!1),[Mt,ht]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{Se.current||(Se.current=document.createElement("style"),document.head.appendChild(Se.current)),Ne!=null&&Ne.visible?(document.body.setAttribute("data-custom","y-hidden"),Se.current.innerHTML=" html { overflow-y: hidden; }",Ne!=null&&Ne.src&&Ft()):(document.body.removeAttribute("data-custom"),Se.current&&(document.head.removeChild(Se.current),Se.current=null))},[Ne==null?void 0:Ne.visible]);const Ft=()=>me(void 0,null,function*(){Ue(!0),ht("\u6B63\u5728\u52A0\u8F7D\u4E2D");const tn=yield(0,xe.ZJ)(Ne==null?void 0:Ne.src);Xe.current.src="",Xe.current.src=tn,Xe.current.onload=function(){yn()},Ue(!1),ht("")}),tt=()=>{document.body.removeAttribute("data-custom"),Se.current.innerHTML=" ",rt()},Jt=tn=>me(void 0,null,function*(){Ue(!0),ht("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Hn=yield(0,Le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ne.title,file:tn.dataUrl}});Hn!=null&&Hn.id&&!Yt?(yield(0,Le.ZP)(`/api/attachments/${Ne.id}/add_subitem.json`,{method:"post",body:{subitem_id:Hn==null?void 0:Hn.id,settings:JSON.stringify(tn.state)}})).status===0&&Ee():Hn!=null&&Hn.id&&Ee(Hn),document.body.removeAttribute("data-custom"),Se.current.innerHTML=" ",Ue(!1),ht("")}),Rt=()=>{const tn=document.querySelector('a[href="https://markerjs.com/"]');tn&&tn.parentNode&&(tn.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(Yn=>{const tr=document.querySelector(Yn.name);tr&&tr.setAttribute("title",Yn.title)})},yn=()=>{lt.current=new ke.hP(Xe.current),lt.current.targetRoot=Ce.current,lt.current.addEventListener("render",Jt),lt.current.addEventListener("beforeclose",tt),at&&(lt.current.availableMarkerTypes=lt.current.ALL_MARKER_TYPES,lt.current.uiStyleSettings.redoButtonVisible=!0,lt.current.uiStyleSettings.notesButtonVisible=!0,lt.current.uiStyleSettings.zoomButtonVisible=!0,lt.current.uiStyleSettings.zoomOutButtonVisible=!0,lt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=lt.current.uiStyleSettings,lt.current.show(),Ne!=null&&Ne.snapshotData&<.current.restoreState(Ne.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Rt()},300)};return ae.createElement(ae.Fragment,null,(Ne==null?void 0:Ne.visible)&&ae.createElement(ve.Z,{spinning:je,tip:Mt,style:{position:"absolute"}},ae.createElement("div",{ref:Ce,className:qe()(Pe.imageDimensions,xt,pt?Pe.fullWidth:""),style:ct},ae.createElement("img",{className:Pe.img,ref:Xe}))))}},36527:function(dn,en,se){"use strict";var ae=se(67294),Pe=se(71230),Re=se(15746),qe=se(66368),ve=se(71577),ke=se(35598),Le=se(71736),xe=se(84279),me=se(67294);const Ie=(0,ae.forwardRef)(({callback:st,showSaveButton:Ne,value:xt=""},pt)=>{const ct=(0,ae.useRef)(),rt=[{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 "}]}]}],Ee=[{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}`}]}]}],at=lt=>{ct.current.setValue(ct.current.getValue()+" "+lt.value+" ")},Yt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:me.createElement(Pe.Z,{className:Le.Z.lists,gutter:[10,10]},rt.map((lt,Se)=>me.createElement(Re.Z,{flex:"110px",className:Le.Z.item},me.createElement("div",null,me.createElement(ke.Z,{value:`$$${lt.value}$$`}),lt.name),me.createElement("div",{className:Le.Z.children},lt.children.map((Ce,je)=>me.createElement("div",{key:je},me.createElement("h1",null,Ce.name),me.createElement(Pe.Z,{gutter:[10,10]},Ce.data.map((Ue,Mt)=>me.createElement(Re.Z,{key:Mt,onClick:()=>at(Ue),className:Le.Z.diamond},me.createElement(ke.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:me.createElement(Pe.Z,{className:Le.Z.lists,gutter:[10,10]},Ee.map((lt,Se)=>me.createElement(Re.Z,{flex:"110px",className:Le.Z.item},me.createElement("div",null,me.createElement(ke.Z,{value:"`$$"+lt.value+"$$`"}),lt.name),me.createElement("div",{className:Le.Z.children},lt.children.map((Ce,je)=>me.createElement("div",{key:je},Ce.name&&me.createElement("h1",null,Ce.name),me.createElement(Pe.Z,{gutter:[10,10]},Ce.data.map((Ue,Mt)=>me.createElement(Re.Z,{key:Mt,onClick:()=>at(Ue),className:Le.Z.diamond},me.createElement(ke.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))}],Xe=()=>{var lt=document.createElement("div");lt.innerHTML=ct.current.getValue();var Se=lt.innerText;return st&&st(Se),Se};return(0,ae.useImperativeHandle)(pt,()=>({getData:Xe})),me.createElement("div",{className:Le.Z.mathWrap},me.createElement(qe.default,{defaultActiveKey:"1",items:Yt}),me.createElement("math-field",{locale:"zh_cn",className:Le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ct,style:{width:800,marginTop:30,fontSize:18}},xt||""),Ne&&me.createElement("div",{className:Le.Z.button},me.createElement(ve.ZP,{size:"large",onClick:Xe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});en.Z=Ie},41307:function(dn,en,se){"use strict";se.d(en,{h:function(){return ct},x:function(){return rt}});var ae=se(91304),Pe=se(52654),Re=se(35598),qe=se(67294),ve=Object.defineProperty,ke=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,st=(Ee,at,Yt)=>at in Ee?ve(Ee,at,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):Ee[at]=Yt,Ne=(Ee,at)=>{for(var Yt in at||(at={}))me.call(at,Yt)&&st(Ee,Yt,at[Yt]);if(xe)for(var Yt of xe(at))Ie.call(at,Yt)&&st(Ee,Yt,at[Yt]);return Ee},xt=(Ee,at)=>ke(Ee,Le(at)),pt=(Ee,at)=>{var Yt={};for(var Xe in Ee)me.call(Ee,Xe)&&at.indexOf(Xe)<0&&(Yt[Xe]=Ee[Xe]);if(Ee!=null&&xe)for(var Xe of xe(Ee))at.indexOf(Xe)<0&&Ie.call(Ee,Xe)&&(Yt[Xe]=Ee[Xe]);return Yt};const ct=Ee=>{var at=Ee,{value:Yt,onChange:Xe,scrollId:lt}=at,Se=pt(at,["value","onChange","scrollId"]);return qe.createElement("div",{id:lt||""},qe.createElement(ae.Z,xt(Ne({},Se),{defaultValue:Yt,onChange:(Ce,je)=>{je!=null&&je.length?Xe(Ce,je):Xe(Ce)}})))},rt=({value:Ee,onChange:at,placeholder:Yt,height:Xe=140,isEdit:lt,miniToolbar:Se,watch:Ce=!0})=>lt?qe.createElement(ae.Z,{watch:Ce,isFocus:!0,height:Xe||void 0,placeholder:Yt,defaultValue:Ee,onChange:at,miniToolbar:Se}):qe.createElement("div",{style:{cursor:"pointer"}},Ee?qe.createElement(Re.Z,{className:Pe.Z.inputBorder,value:Ee}):qe.createElement("div",{className:`${Pe.Z.inputBorder} ${Pe.Z.placeholder} inputBorderError`},Yt))},57444:function(dn,en,se){"use strict";se.d(en,{h:function(){return lt}});var ae=se(67294),Pe=se(11713),Re=se(22150),qe=se(71577),ve=se(4631),ke=se.n(ve),Le=se(71749),xe=se(30483),me=Object.defineProperty,Ie=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,ct=(Se,Ce,je)=>Ce in Se?me(Se,Ce,{enumerable:!0,configurable:!0,writable:!0,value:je}):Se[Ce]=je,rt=(Se,Ce)=>{for(var je in Ce||(Ce={}))xt.call(Ce,je)&&ct(Se,je,Ce[je]);if(Ne)for(var je of Ne(Ce))pt.call(Ce,je)&&ct(Se,je,Ce[je]);return Se},Ee=(Se,Ce)=>Ie(Se,st(Ce));const at=Pe.default.Option,Yt={labelCol:{span:4},wrapperCol:{span:20}},Xe={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"]};en.Z=({callback:Se,onCancel:Ce})=>{const[je,Ue]=(0,ae.useState)("python");function Mt(Ft){Ue(Xe[Ft][1])}function ht(Ft){Se(Ft)}return ae.createElement(Re.default,Ee(rt({},Yt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ht,style:{width:500}}),ae.createElement(Re.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Pe.default,{getPopupContainer:Ft=>Ft.parentNode,onChange:Mt},Object.keys(Xe).map(Ft=>ae.createElement(at,{key:Ft,value:Ft},Xe[Ft][0])))),ae.createElement(Re.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(lt,{mode:je})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(qe.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function lt({value:Se,onChange:Ce,mode:je,options:Ue={}}){const Mt=(0,ae.useRef)(),[ht,Ft]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(ht){let tt=function(Jt){const Rt=Jt.getValue();Ce&&Ce(Rt)};return ht.on("change",tt),()=>{ht.off("change",tt)}}},[ht,Ce]),(0,ae.useEffect)(()=>{ht&&ht.setOption("mode",je)},[ht,je]),(0,ae.useEffect)(()=>{ht&&(Se!==ht.getValue()||Se==="")&&setTimeout(()=>{ht.setValue(Se||"")},300)},[ht,Se]),(0,ae.useEffect)(()=>{if(Mt.current&&!ht){const tt=ke().fromTextArea(Mt.current,rt({mode:je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ue));Ft(tt)}},[Mt.current,ht]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:Mt}))}},91304:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Gn}});var ae=se(67294),Pe=se(4631),Re=se.n(Pe),qe=se(91033),ve=se(71749),ke=se(57341),Le=se(82801),xe=se(88386),me=se(49047),Ie=se(80785),st=se(35598),Ne=({value:jn="",className:nt,showTextOnly:mt,showLines:Bt,style:rn={}})=>{const Ze=(0,ae.useMemo)(()=>"",[jn]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Ze}}))},xt=se(67294),pt=Object.defineProperty,ct=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,Xe=(jn,nt,mt)=>nt in jn?pt(jn,nt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):jn[nt]=mt,lt=(jn,nt)=>{for(var mt in nt||(nt={}))at.call(nt,mt)&&Xe(jn,mt,nt[mt]);if(Ee)for(var mt of Ee(nt))Yt.call(nt,mt)&&Xe(jn,mt,nt[mt]);return jn},Se=(jn,nt)=>ct(jn,rt(nt));let Ce=[{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 je({onActionCallback:jn,title:nt,icon:mt,actionName:Bt,className:rn="",children:Ze}){function St(){jn(Bt)}return xt.createElement("a",{title:nt,className:rn,onClick:St},xt.createElement("i",{className:`${mt}`}),Ze)}var Ue=({watch:jn,showNullButton:nt,showNullProgramButton:mt,onActionCallback:Bt,fullScreen:rn,insertTemp:Ze,hidetoolBar:St,extraUse:Vt})=>{const Nt=[...Ce,{title:`${jn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${jn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xt.createElement("ul",{className:"markdown-toolbar-container"},!St&&Nt.map((cn,on)=>xt.createElement("li",{key:on},cn.actionName?xt.createElement(je,Se(lt({},cn),{onActionCallback:Bt})):xt.createElement("span",{className:"v-line"}))),nt?xt.createElement("li",null,xt.createElement(je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Bt},xt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,mt?xt.createElement(xt.Fragment,null,xt.createElement("li",null,xt.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Bt},xt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xt.createElement("li",null,xt.createElement(je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Bt},xt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ze&&xt.createElement("li",null,xt.createElement(je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ze}`,onActionCallback:Bt},xt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Vt&&xt.createElement("li",null,Vt),xt.createElement("li",{className:"btn-full-screen"},xt.createElement(je,{icon:`${rn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:rn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Bt})))},Mt=se(76621),ht=se(22150),Ft=se(69677),tt=se(71577),Jt=Object.defineProperty,Rt=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,Yn=Object.prototype.propertyIsEnumerable,tr=(jn,nt,mt)=>nt in jn?Jt(jn,nt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):jn[nt]=mt,Qe=(jn,nt)=>{for(var mt in nt||(nt={}))Hn.call(nt,mt)&&tr(jn,mt,nt[mt]);if(tn)for(var mt of tn(nt))Yn.call(nt,mt)&&tr(jn,mt,nt[mt]);return jn},we=(jn,nt)=>Rt(jn,yn(nt));const At={labelCol:{span:4},wrapperCol:{span:20}};var Mn=({callback:jn,onCancel:nt})=>{function mt(Bt){jn(Bt)}return ae.createElement(ht.default,we(Qe({},At),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:mt,style:{width:500}}),ae.createElement(ht.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Ft.default,null)),ae.createElement(ht.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Ft.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(tt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(tt.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))},_t=se(57444),$e=se(70859),dt=se(14446),qt=se(71230),Xn=se(63205),bn=se(67294),un=({callback:jn,onCancel:nt})=>{const mt=document.createElement("canvas"),Bt=mt.getContext("2d");mt.width=1e3,mt.height=800,Bt.fillStyle="#ffffff",Bt.fillRect(0,0,mt.width,mt.height);const rn=mt.toDataURL("image/png");return bn.createElement(dt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},bn.createElement(qt.Z,{style:{height:"100vh"}},bn.createElement(Xn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:rn,visible:!0,title:String(Date.now())},onOk:Ze=>{jn({src:Ze.url})},onClose:nt})))},nn=se(72565),xn=se(15746),Pn=se(2453),De={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ue=se(67294),he=(0,ae.forwardRef)(({onCancel:jn,editImgId:nt,callback:mt},Bt)=>{let rn=(0,ae.useRef)(),Ze=(0,ae.useRef)(),St=(0,ae.useRef)(),Vt=(0,ae.useRef)(!1);const Nt=(0,ae.useRef)(!1);console.log("ref:",Bt);const[cn,on]=(0,ae.useState)(0),[Kn,Hr]=(0,ae.useState)("100vh");return(0,ae.useEffect)(()=>{on(1);try{indexedDB.databases().then(hr=>{hr.forEach(or=>indexedDB.deleteDatabase(or.name))})}catch(hr){}},[]),(0,ae.useImperativeHandle)(Bt,()=>({setHeight:Hr})),ue.createElement("div",{ref:Nt,className:"body-overflow-initial"},ue.createElement(nn.Z,{width:"100vw",height:Kn,footer:null,closable:!0,placement:"bottom",open:!!cn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${De.drawerWrap}`,onClose:()=>{window.saveDrawData(hr=>{mt({src:`/api/attachments/${hr}`,id:hr})})},title:ue.createElement(qt.Z,{align:"middle"},ue.createElement(xn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ue.createElement(xn.Z,{onClick:()=>{Hr(Kn==="60px"?"100vh":"60px")}},ue.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ue.createElement(xn.Z,{onClick:()=>{window.saveDrawData(hr=>{if(hr===null){Pn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Pn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),mt({src:`/api/attachments/${hr}`,id:hr,disabledClose:!0})})}},ue.createElement(tt.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ue.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${nt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Ze})))}),fe=se(11320),le=se(78045),Me=se(31795);const Ve=le.ZP.Group,ft={margin:"0 8px"};var Ht=({callback:jn,onCancel:nt})=>{function mt(Bt){jn(Bt)}return ae.createElement(ht.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:mt},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:ft},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:ft},"\u884C\u6570"),ae.createElement(ht.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Me.Z,null)),ae.createElement("span",{style:ft},"\u5217\u6570"),ae.createElement(ht.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Me.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(ht.default.Item,{name:"align"},ae.createElement(Ve,null,ae.createElement(le.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(le.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(le.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(le.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(tt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(tt.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))},Zt=se(47897),jt=se(61016),$t=se.n(jt),Et=(0,ae.forwardRef)(({use3d:jn,width:nt,height:mt,callback:Bt,showSaveButton:rn},Ze)=>{const St=(0,ae.useRef)(),Vt=(0,ae.useRef)(),[Nt,cn]=(0,ae.useState)(!1),on=(0,ae.useRef)({id:St,appName:"graphing",width:nt||1e3,height:mt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Vt.current=new($t())(on.current,!0),window.onload=function(){Vt.current.inject("applet_container")}},[]);const Kn=()=>{var Hr=window.ggbApplet.getPNGBase64(1,!0,72);return Bt&&Bt(Hr),Hr};return(0,ae.useEffect)(()=>{on.current.appName=Nt?"3D":"graphing",Vt.current.inject("applet_container")},[Nt]),(0,ae.useEffect)(()=>{cn(jn)},[jn]),(0,ae.useImperativeHandle)(Ze,()=>({getImgData:Kn})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:St}),ae.createElement(qt.Z,{align:"middle"},ae.createElement(xn.Z,{flex:1},ae.createElement(Zt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Nt,onChange:Hr=>cn(Hr)})),ae.createElement(xn.Z,null,ae.createElement(tt.ZP,{size:"large",onClick:Kn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Lt=se(36527),Xt=se(25934);const wt="link",Nn="upload-image",et="add-flowchart",It="draw-image",gn="add-flowchart",hn="code-block",An="add-table",Vn="------------",mr={default:Vn,left:`:${Vn}`,center:`:${Vn}:`,right:`${Vn}:`};var ur=se(99914),dr=(jn,nt,mt)=>new Promise((Bt,rn)=>{var Ze=Nt=>{try{Vt(mt.next(Nt))}catch(cn){rn(cn)}},St=Nt=>{try{Vt(mt.throw(Nt))}catch(cn){rn(cn)}},Vt=Nt=>Nt.done?Bt(Nt.value):Promise.resolve(Nt.value).then(Ze,St);Vt((mt=mt.apply(jn,nt)).next())});function Fr(){}let nr=0;const _r=1e4,oi="\u2581",Wr="@\u2581\u2581@",xi="@\u2581@",ti=` **\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`,Ct=["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 wn(jn){return/^\d+$/.test(jn)?`${jn}px`:jn}const an=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",vr={[an+"-B"]:"bold",[an+"-I"]:"italic"},lr={[wt]:"\u6DFB\u52A0\u94FE\u63A5",[hn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Nn]:"\u6DFB\u52A0\u56FE\u7247",[It]:"\u6DFB\u52A0\u753B\u56FE",[et]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[An]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Gn=({defaultValue:jn="",onChange:nt,width:mt="100%",height:Bt=400,miniToolbar:rn=!1,isFocus:Ze=!1,watch:St,insertTemp:Vt,mode:Nt="markdown",id:cn="markdown-editor-id",showResizeBar:on=!1,noStorage:Kn=!1,showNullButton:Hr=!1,showNullProgramButton:hr=!1,hidetoolBar:or=!1,fullScreen:Ar=!1,onBlur:Lr,onCMBeforeChange:kt,onFullScreen:gt,className:Dt="",disablePaste:En=!1,disabled:qn=!1,disabledFill:Cn=!1,placeholder:Dn="",values:In="",extraUse:Un,onAddBlank:kr})=>{const[pn,di]=(0,ae.useState)(null),[Qr,Fi]=(0,ae.useState)(jn),[Ni,Ci]=(0,ae.useState)(St),[Qi,Ei]=(0,ae.useState)(Ar),[pi,Hi]=(0,ae.useState)(""),[$i,ci]=(0,ae.useState)(0),[Mi,Ji]=(0,ae.useState)(Bt),[ca,na]=(0,ae.useState)(!1),hi=(0,ae.useRef)((0,Xt.Z)()),zt=(0,ae.useRef)(!1),Tt=(0,ae.useRef)(),[fn,Bn]=(0,ae.useState)(0),[Qn,Or]=(0,ae.useState)(0),Zr=(0,ae.useRef)(),Jr=(0,ae.useRef)(),ri=(0,ae.useRef)(),qr=(0,ae.useRef)(),fi=(0,ae.useRef)(),Ai=(0,ae.useRef)(),jr=()=>dr(void 0,null,function*(){var Wn;const Fn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:hi.current}});(Wn=Fn==null?void 0:Fn.attachments)!=null&&Wn.length&&(console.log("cm:",pn,Zr),Fn.attachments.map($n=>{$n.content_type.indexOf("image")>-1?pn.replaceSelection(`![,](/api/attachments/${$n.id}?type=${$n.content_type})`):$n.content_type.indexOf("video")>-1?pn.replaceSelection(``):$n.content_type.indexOf("pdf")>-1?pn.replaceSelection(`${$n.name}`):pn.replaceSelection(`[${$n.name}](${fe.Z.API_SERVER}/api/attachments/${$n.id}?type=${$n.content_type})`)}))});(0,ae.useEffect)(()=>{const Wn=window.scrollY||window.pageYOffset;Fi(In),pn==null||pn.setValue(In),window.scrollTo(0,Wn)},[In]),(0,ae.useEffect)(()=>{gt==null||gt(Qi)},[Qi]),(0,ae.useEffect)(()=>{if(Zr.current){let Wn=function($n,rr){var Ir;if(En){rr.preventDefault();return}const gr=rr.clipboardData;if(gr){const fr=gr.types.toString(),wr=gr.items;if(fr==="Files"||gr.types.indexOf("Files")>-1){if(rr.preventDefault(),Nt=="stex")return;try{let Sr=wr[1];((Ir=wr[0])==null?void 0:Ir.kind)==="file"&&(Sr=wr[0]);const Nr=Sr.getAsFile(),Fe=Nr.name.split(".").pop();(0,$e.I)(Nr,We=>{var Wt,bt,sn;We.id?((Wt=Nr==null?void 0:Nr.type)==null?void 0:Wt.indexOf("image"))>-1?Fn.replaceSelection(``):((bt=Nr==null?void 0:Nr.type)==null?void 0:bt.indexOf("video"))>-1?Fn.replaceSelection(``):((sn=Nr==null?void 0:Nr.type)==null?void 0:sn.indexOf("pdf"))>-1?Fn.replaceSelection(`${Nr.name}`):Ct.includes(Fe)?Fn.replaceSelection(`${Nr.name}`):Fn.replaceSelection(`[${Nr.name}](/api/attachments/${We.id}?type=${We.content_type})`):(We==null?void 0:We.status)===401&&(Pn.ZP.warning((We==null?void 0:We.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Sr){Pn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Fn=Re().fromTextArea(Zr.current,{mode:Nt,lineNumbers:!rn,lineWrapping:!0,value:jn,autoCloseTags:!hr,autoCloseBrackets:!0});return Fn.on("keyup",function($n,rr){rr.keyCode===8&&($n.getValue()==""?Fn.setOption("placeholder",Dn):Fn.setOption("placeholder",null))}),Fn.on("keydown",function($n,rr){if(rr.keyCode===8){var Ir=Di($n);Ir&&rr.preventDefault()}}),Ze&&Fn.focus(),Fn.on("paste",Wn),Fn.on("dragleave",function($n,rr){Jr.current.classList.remove("mouse-hover-md")}),qn&&Fn.on("beforeChange",function($n,rr){(rr.origin==="paste"||rr.origin==="+input")&&rr.cancel()}),di(Fn),()=>{Fn.off("paste",Wn)}}},[]);const wi=(0,ae.useCallback)(()=>{if(Jr.current)try{}catch(Wn){console.log(Wn,"---- to set md editor body height")}},[Mi,Jr,Qi]);(0,ae.useEffect)(()=>{function Wn(){let Fn=new qe.Z($n=>{for(let rr of $n)(rr.target.offsetHeight>0||rr.target.offsetWidth>0)&&(wi(),pn.setSize("100%","100%"),pn.refresh())});return Fn.observe(Zr.current.parentElement),Fn}if(pn){const Fn=Wn();return()=>{var $n,rr;($n=Zr.current)!=null&&$n.parentElement&&Fn.unobserve((rr=Zr.current)==null?void 0:rr.parentElement)}}},[pn,wi]),(0,ae.useEffect)(()=>{if(pn){let Wn=[];for(const[Fn,$n]of Object.entries(vr)){let rr={[Fn]:()=>{Li($n)}};Wn.push(rr),pn.addKeyMap(rr)}return Tt.current=setInterval(()=>{zt.current&&jr()},4e3),()=>{clearInterval(Tt.current);for(let Fn of Wn)pn.removeKeyMap(Fn)}}},[pn]),(0,ae.useEffect)(()=>{Ar!==Qi&&Ei(Ar)},[Ar]),(0,ur.Z)(()=>{if(!Kn&&$i>0){let Wn=new Date().getTime(),Fn=window.sessionStorage.getItem(cn);Wn>=$i+_r&&(!Fn||Fn!==Qr)&&(window.sessionStorage.setItem(cn,Qr),na(!0))}},_r),(0,ae.useEffect)(()=>{Ci(St)},[pn,St]),(0,ae.useEffect)(()=>{pn&&Ze&&pn.focus()},[pn,Ze]),(0,ae.useEffect)(()=>{if(Ni&&pn){let Wn=function($n){let rr=$n.target;if(qr.current){let Ir=rr.scrollTop/rr.scrollHeight;qr.current.scrollTop=qr.current.scrollHeight*Ir}};const Fn=pn.getScrollerElement();return Fn.addEventListener("scroll",Wn),()=>{Fn.removeEventListener("scroll",Wn)}}},[pn,Ni]),(0,ae.useEffect)(()=>{if(pn&&kt){let Wn=function(Fn,$n){kt(Fn,$n)};return pn.on("beforeChange",Wn),()=>{pn.off("beforeChange",Wn)}}},[pn,kt]),(0,ae.useEffect)(()=>{if(pn&&Lr){let Wn=function(){Lr(pn.getValue())};return pn.on("blur",Wn),()=>{pn.off("blur",Wn)}}},[pn,Lr]);function Di(Wn,Fn){var $n=Wn.getDoc(),rr=$n.getCursor(),Ir=$n.getLine(rr.line),gr=Ir.charAt(rr.ch-1),fr=Ir.lastIndexOf("@\u2581@",rr.ch),wr=Ir.lastIndexOf("@\u2581\u2581@",rr.ch),Sr=fr>wr?fr:wr,Nr=fr>wr?3:4;if(Wr.indexOf(gr)===-1)return null;if(console.log("change1:",Fn,Wn,Ir,rr,Sr,fr,wr,gr),Sr>=0&&rr.ch-Sr<5){var Fe=Sr+Nr;return $n.replaceRange("",{line:rr.line,ch:Sr},{line:rr.line,ch:Fe}),{line:rr.line,ch:Fe}}return null}(0,ae.useEffect)(()=>{if(pn){let Wn=function(Fn,$n){const rr=Fn.getValue();Fi(rr),ci(new Date().getTime()),Fn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),nt&&(hr?nt(rr,vn(rr)):nt(rr))};return pn.on("change",Wn),()=>{pn.off("change",Wn)}}},[pn,nt]),(0,ae.useEffect)(()=>{if(pn)if(jn==null)pn.setValue(""),Fi("");else{const Wn=window.scrollY||window.pageYOffset;jn!==pn.getValue()&&(pn.setValue(jn),Fi(jn),pn.setCursor(qn?1:pn.lineCount(),0),window.scrollTo(0,Wn))}},[pn,jn]);const Li=(0,ae.useCallback)(Wn=>{const Fn=pn.getCursor(),$n=pn.getSelection();let rr=$n.split(` `);switch(Wn){case"bold":return pn.replaceSelection("**"+$n+"**"),$n===""&&pn.setCursor(Fn.line,Fn.ch+2),pn.focus();case"italic":return pn.replaceSelection("*"+$n+"*"),$n===""&&pn.setCursor(Fn.line,Fn.ch+1),pn.focus();case"code":return pn.replaceSelection("`"+$n+"`"),$n===""&&pn.setCursor(Fn.line,Fn.ch+1),pn.focus();case"inline-latex":return Hi("inline-latex"),pn.focus();case"latex":return pn.replaceSelection("```latex\n"+$n+"\n```"),pn.setCursor(Fn.line+1,$n.length+1),pn.focus();case"line-break":return pn.replaceSelection(`
`),pn.focus();case"list-ul":return $n===""?pn.replaceSelection("- "+$n):pn.replaceSelection(rr.map(Ir=>Ir===""?"":`- ${Ir}`).join(` `)),pn.focus();case"list-ol":return $n===""?pn.replaceSelection("1. "+$n):pn.replaceSelection(rr.map((Ir,gr)=>Ir===""?"":`${gr+1}. ${Ir}`).join(` `)),pn.focus();case"add-null-ch":kr==null||kr();return;case"add-signal":return $n===""&&pn.setCursor(Fn.line,Fn.ch),pn.replaceSelection(xi),pn.focus();case"add-multiple":return $n===""&&pn.setCursor(Fn.line,Fn.ch),pn.replaceSelection(Wr),pn.focus();case"inster-template-1":return $n===""&&pn.setCursor(Fn.line,Fn.ch),pn.replaceSelection(ti),pn.focus();case"eraser":return pn.setValue(""),pn.focus();case"trigger-watch":return Ci(!Ni),pn.focus();case"trigger-full-screen":return Ei(!Qi),pn.focus();case wt:Hi(wt);return;case hn:Hi(hn);return;case Nn:Hi(Nn);return;case It:Hi(It);return;case"maths-latex":Hi("maths-latex");return;case et:fi.current="",sessionStorage.removeItem("file_id"),Hi(et);return;case An:Hi(An);return;default:throw new Error}},[pn,Ni,Qi]),Te=(0,ae.useCallback)((Wn,Fn)=>{var $n,rr,Ir,gr,fr,wr;Hi("");const{src:Sr,alt:Nr,id:Fe}=Wn||{};switch(pi){case wt:const{title:Ln,link:zn}=Wn;return pn.replaceSelection(`[${Ln}](${zn})`),pn.focus();case hn:const{language:ar,content:ot}=Wn;return pn.replaceSelection(["```"+ar,ot,"```"].join(` `)),pn.focus();case"maths-latex":for(var We=atob(Wn),Wt=new Uint8Array(We.length),bt=0;bt{sr.id?pn.replaceSelection(`![,](/api/attachments/${sr.id}?type=${sr.content_type})`):(sr==null?void 0:sr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":pn.replaceSelection("`$$"+Wn+"$$`");break;case gn:if(!Fe)return;pn.focus(),pn.getValue().indexOf(Sr)===-1?pn.replaceSelection(`
${Nr||
`):document.getElementById(Fe).src=fe.Z.API_SERVER+Sr+"?t="+Date.now();try{setTimeout(()=>{Lr(pn.getValue())},100)}catch(sr){}break;case Nn:case It:const Ye=Fn,yt=(Ir=(rr=($n=Ye==null?void 0:Ye.name)==null?void 0:$n.split("."))==null?void 0:rr.pop)==null?void 0:Ir.call(rr);return((gr=Ye==null?void 0:Ye.type)==null?void 0:gr.indexOf("image"))>-1||!(Ye!=null&&Ye.type)?Ye!=null&&Ye.align||Ye!=null&&Ye.width?pn.replaceSelection(`

${Nr||

`):pn.replaceSelection(`${Nr||`):((fr=Ye==null?void 0:Ye.type)==null?void 0:fr.indexOf("video"))>-1?pn.replaceSelection(``):((wr=Ye==null?void 0:Ye.type)==null?void 0:wr.indexOf("pdf"))>-1?pn.replaceSelection(`${Ye.name}`):Ct.includes(yt)?pn.replaceSelection(`${Ye.name}`):pn.replaceSelection(`[${Ye.name}](${Sr})`),pn.focus();case An:const{row:Qt,col:_n,align:mn}=Wn;let ln=` `;for(let sr=0;sr{switch(pi){case wt:return ae.createElement(Mn,{callback:Te,onCancel:Ke});case hn:return ae.createElement(_t.Z,{callback:Te,onCancel:Ke});case Nn:return ae.createElement($e.Z,{callback:Te,onCancel:Ke});case et:return ae.createElement(he,{editImgId:fi.current,callback:Te,onCancel:Ke});case An:return ae.createElement(Ht,{callback:Te,onCancel:Ke});case"maths-latex":return ae.createElement(Et,{showSaveButton:!0,callback:Te});case"inline-latex":return ae.createElement(Lt.Z,{showSaveButton:!0,callback:Te});default:return null}},[pi]);function Ke(){Hi("")}(0,ae.useEffect)(()=>{if(ri.current){let Wn=function(fr){Ir=!0,gr=fr.pageY},Fn=function(){Ir=!1},$n=function(fr){if(Ir){let wr=fr.pageY-gr;wr<0&&(wr=0),wr>300&&(wr=300);let Sr=Bt+wr+"px";Ji(Sr)}},rr=ri.current,Ir=!1,gr=0;return rr.addEventListener("mousedown",Wn),document.addEventListener("mousemove",$n),document.addEventListener("mouseup",Fn),()=>{rr.removeEventListener("mousedown",Wn),document.removeEventListener("mousemove",$n),document.removeEventListener("mouseup",Fn)}}},[pn,ri]),(0,ae.useEffect)(()=>{Ji(Bt)},[Bt]);const Ge=wn(mt),ut=wn(Mi),vt={width:Ge,height:ut},Kt=(0,ae.useMemo)(()=>{if($i){let Wn=new Date($i),Fn=Wn.getHours(),$n=Wn.getMinutes(),rr=Wn.getSeconds();return Fn=Fn<10?"0"+Fn:Fn,$n=$n<10?"0"+$n:$n,rr=rr<10?"0"+rr:rr,`${Fn}:${$n}:${rr}`}return 0},[$i]),vn=Wn=>{const Fn=[];if(hr){let $n=-1;Wn=Wn.replace(/(@▁▁@|@▁@)/g,function(rr,Ir,gr){Fn.push({multiLine:rr!==xi})})}return Fn};function kn(){window.sessionStorage.removeItem(cn),na(!1),ci(0)}function yr(){na(!1),ci(0),pn.setValue(window.sessionStorage.getItem(cn))}(0,ae.useEffect)(()=>{lr[pi]&&pi!==It&&pi!==et&&setTimeout(()=>{const Wn=document.getElementsByClassName("markdown-popup-form")[0],Fn=window.innerWidth/2-Wn.offsetWidth/2,$n=window.innerHeight/2-Wn.offsetHeight/2;Bn(Fn),Or($n)},0)},[pi]);const Pr=Wn=>{Wn.preventDefault();const Fn=Wn.clientX-fn,$n=Wn.clientY-Qn;document.body.onmousemove=rr=>{let Ir=rr.clientX-Fn,gr=rr.clientY-$n;const fr=document.getElementsByClassName("markdown-popup-form")[0],wr=window.innerWidth-fr.offsetWidth,Sr=window.innerHeight-fr.offsetHeight;Ir=Math.max(0,Math.min(Ir,wr)),gr=Math.max(0,Math.min(gr,Sr)),cr(rr.clientX,rr.clientY,Fn,$n)&&(Bn(Ir),Or(gr))},document.body.onmouseup=function(){document.body.onmousemove=null}},cr=(Wn,Fn,$n,rr)=>{const Ir=document.body.clientHeight,gr=document.body.clientWidth;return Wn<20&&$n>Wn||Wn>gr-20&&$nFn||Fn>Ir-20&&rr{var Fn;fi.current=Wn,(Fn=Ai.current)==null||Fn.setHeight("100vh"),setTimeout(()=>{Hi("add-flowchart")},150)}})):null))),on?ae.createElement("a",{ref:ri,className:"editor-resize"}):null,pi===It&&ae.createElement(un,{callback:Te,onCancel:Ke}),pi===et&&ae.createElement(he,{ref:Ai,editImgId:fi.current,callback:Te,onCancel:Ke}),ae.createElement(Mt.Z,null,lr[pi]&&pi!==It&&pi!==et?ae.createElement(dt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:fn,top:Qn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:Pr},lr[pi]),open:!0,onCancel:Ke,footer:null,destroyOnClose:!0,width:pi===et?"1200px":null,height:pi===et?"80vh":null,className:"markdown-popup-form"},He):null))}},70859:function(dn,en,se){"use strict";se.d(en,{Z:function(){return je},I:function(){return Mt}});var ae=se(22150),Pe=se(2453),Re=se(69677),qe=se(93421),ve=se(31795),ke=se(78045),Le=se(71577),xe=se(15476),me=se(67294),Ie=se(52262),st=se(67294),Ne=Object.defineProperty,xt=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,at=(ht,Ft,tt)=>Ft in ht?Ne(ht,Ft,{enumerable:!0,configurable:!0,writable:!0,value:tt}):ht[Ft]=tt,Yt=(ht,Ft)=>{for(var tt in Ft||(Ft={}))rt.call(Ft,tt)&&at(ht,tt,Ft[tt]);if(ct)for(var tt of ct(Ft))Ee.call(Ft,tt)&&at(ht,tt,Ft[tt]);return ht},Xe=(ht,Ft)=>xt(ht,pt(Ft));const{useForm:lt}=ae.default,Se={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var je=({callback:ht,onCancel:Ft})=>{const[tt]=lt();let Jt=(0,me.useRef)();function Rt(Hn){Jt.current.width=tt.getFieldValue("width"),Jt.current.align=tt.getFieldValue("align"),ht(Hn,Jt.current)}function yn(Hn,Yn){if(Hn.status===-1){Pe.ZP.error(Hn.message);return}tt.setFieldsValue({src:`/api/attachments/${Hn.id}`,type:Yn.type})}function tn(Hn){let Yn=Hn.target.files[0];Jt.current=Yn,Mt(Yn,yn)}return st.createElement(ae.default,Xe(Yt({form:tt},Ce),{className:"upload-image-panel",onFinish:Rt,style:{width:470,overflow:"hidden"}}),st.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},st.createElement("div",{className:"flex-container"},st.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},st.createElement(Re.default,{style:Se})),st.createElement(Ue,{onFileChange:tn}))),st.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},st.createElement(Re.default,{style:{width:264}})),st.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},st.createElement(qe.Z,null,st.createElement(ae.default.Item,{name:"width",style:{margin:0}},st.createElement(ve.Z,{style:{width:264}})),st.createElement("span",{className:"ml8"},"%"))),st.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},st.createElement(ke.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"}]})),st.createElement("aside",null,st.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},st.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),st.createElement(Le.ZP,{type:"default",onClick:Ft},"\u53D6\u6D88"))))};function Ue({onFileChange:ht}){return st.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",st.createElement("input",{type:"file",onChange:ht}))}function Mt(ht,Ft){if(!ht)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ie.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let tt=new FormData;tt.append("editormd-image-file",ht),tt.append("file_param_name","editormd-image-file"),tt.append("byxhr","true");var Jt=new window.XMLHttpRequest;Jt.withCredentials=!0,Jt.addEventListener("load",function(Rt){Ft(JSON.parse(Rt.target.responseText),ht)},!1),Jt.addEventListener("error",function(Rt){console.error(Rt)},!1),Jt.open("POST",`${xe.KI}/api/attachments.json`),Jt.send(tt)}},76621:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Re}});var ae=se(67294),Pe=se(73935);class Re extends ae.Component{constructor(ve){super(ve);const ke=window.document;this.node=ke.createElement("div"),ke.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,Pe.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(dn,en,se){"use strict";se.d(en,{i:function(){return Ce},Z:function(){return Ue}});var ae={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},Pe=se(57953),Re=se(83062),qe=se(38703),ve=se(94184),ke=se.n(ve),Le=se(28706),xe=se(26194),me=se(52262),Ie=se(79005),st=se(20345),Ne=se(77882),xt=se(31081),pt=se(75309),ct=se(71979),rt=se(47558),Ee=se(60345),at=se(66832),Yt=se(96593),Xe=se(19664),lt=se(91833),Se=se(67294);const Ce=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ie,swimg:st},{name:"101\u8BA1\u5212",ptimg:Ne,swimg:xt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:pt,swimg:ct},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:rt,swimg:Ee},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:at,swimg:Yt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Xe,swimg:lt}];var Ue=({className:Mt,dataSource:ht=[],col:Ft=4,right:tt,bottom:Jt=23,precision:Rt=0,wrapWidth:yn=1200,trackEventItems:tn,loading:Hn,onRemove:Yn=()=>{},isCurrent:tr=!0,showAlias:Qe=!1,showProgress:we=!1})=>{const At=Math.floor((yn-(Ft-1)*tt)/Ft),Mn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(_t=>(window.ENV==="build"&&(_t.ptimg=`/react/build${_t.ptimg}`,_t.swimg=`/react/build${_t.swimg}`),_t));return Se.createElement(Pe.Z,{spinning:Hn},Se.createElement("div",{className:ke()(ae.list,Mt)},!!(ht!=null&&ht.length)&&(ht==null?void 0:ht.map((_t,$e)=>{var dt,qt,Xn,bn,un,nn;const{name:xn,id:Pn,identifier:De,featured:ue,school_name:ce,image_url:he,excellent:fe,is_plan:le}=_t;return Se.createElement("div",{key:Pn,className:tr&&we?ae.wrapisCurrent:ae.wrap,style:{width:At,marginRight:(1+$e)%Ft===0?0:tt+Rt,marginBottom:Jt}},Se.createElement("a",{className:ae.li,onClick:Me=>{Me.preventDefault(),Me.stopPropagation(),tn&&(0,Le.L9)([tn]),(0,Le.xg)(`/paths/${De}`)}},Se.createElement("div",{className:ae.img},Se.createElement("img",{className:ae.cover,src:`${he}`}),tr&&(0,me.bg)()&&(_t==null?void 0:_t.studying)&&Se.createElement("div",{className:`${ae.movebq} user-path-items`,onClick:Me=>{Me.stopPropagation(),Yn(_t)}},Se.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Se.createElement("span",{className:"c-red"},"\u79FB\u9664")),(dt=_t==null?void 0:_t.subject_tags)==null?void 0:dt.map((Me,Ve)=>{var ft,Ht;if(Ve===0){const jt=(ft=Mn.find($t=>$t.name==Me))==null?void 0:ft.swimg;return Se.createElement("img",{className:ae.sign,src:jt,style:{left:"-4px"}})}const Zt=(Ht=Mn.find(jt=>jt.name==Me))==null?void 0:Ht.ptimg;return Se.createElement("img",{className:ae.sign,src:Zt,style:{left:`${48+52*(Ve-1)+2*Ve}px`}})}),Se.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(_t==null?void 0:_t.excellent)&&Se.createElement("div",{className:ae.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Se.createElement("div",{className:ae.name},Se.createElement(Re.Z,{title:Qe&&(_t!=null&&_t.excellent_alias_name)?Se.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${xn}`,Se.createElement("br",null),Se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${_t==null?void 0:_t.excellent_alias_name}`)):xn},Se.createElement("span",{className:ae.e},Qe&&(_t==null?void 0:_t.excellent_alias_name)||xn))),tr&&we&&((qt=_t==null?void 0:_t.progress)==null?void 0:qt.all_score)!=0&&Se.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Se.createElement(qe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Xn=_t==null?void 0:_t.progress)==null?void 0:Xn.my_score)/((bn=_t==null?void 0:_t.progress)==null?void 0:bn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(un=_t==null?void 0:_t.progress)==null?void 0:un.my_score,"/",(nn=_t==null?void 0:_t.progress)==null?void 0:nn.all_score),(!tr||!we)&&Se.createElement("div",{className:ae.tags},Se.createElement("div",null,Se.createElement(Re.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Se.createElement("span",null,_t.stages_count))),Se.createElement(Re.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Se.createElement("span",null,_t.members_count)))))))})),!ht.length&&Se.createElement(xe.Z,null)))}},80150:function(dn,en,se){"use strict";se.d(en,{jL:function(){return ve},w9:function(){return lr},vv:function(){return St},dN:function(){return mt},QD:function(){return Bn},cQ:function(){return Ve.Z},vg:function(){return Ct},Oz:function(){return nr},op:function(){return ca},O5:function(){return vn},_b:function(){return qr},t7:function(){return Jt},tT:function(){return tn},Gi:function(){return gt},YG:function(){return on},Ed:function(){return Lr},kT:function(){return hr},qp:function(){return Ee},Um:function(){return Ce},K3:function(){return Xe},vr:function(){return Zr},qE:function(){return zt},Je:function(){return tr},wb:function(){return nn},rC:function(){return Me},lB:function(){return De},cq:function(){return In},kO:function(){return di},tp:function(){return Mt},Si:function(){return Pr},k8:function(){return ar},Du:function(){return fr}});var ae=se(67294),Pe={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/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x9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ve=({dataSource:ot=[],img:Ye,imgWidth:yt=346,title:Qt,sunTitle:_n,bannerExtraContent:mn})=>ae.createElement("div",{className:Pe.banner},ae.createElement("div",{className:Pe.content},ae.createElement("aside",null,ae.createElement("p",null,ae.createElement("b",null,Qt),ae.createElement("span",null,_n)),ot.length>0&&ae.createElement("div",{className:Pe.btns},ot.map((ln,sr)=>ae.createElement("div",{key:sr,onClick:ln.click},ln.name,ln.sign?ae.createElement("img",{src:Re,width:39}):null))),mn),Ye&&ae.createElement("img",{style:{marginTop:33,marginRight:38},src:Ye,width:yt}))),ke={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Le=se(94184),xe=se.n(Le),me=se(96486),Ie=Object.defineProperty,st=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,pt=(ot,Ye,yt)=>Ye in ot?Ie(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,ct=(ot,Ye)=>{for(var yt in Ye||(Ye={}))Ne.call(Ye,yt)&&pt(ot,yt,Ye[yt]);if(st)for(var yt of st(Ye))xt.call(Ye,yt)&&pt(ot,yt,Ye[yt]);return ot},Ee=({dataSource:ot=[],value:Ye,onChange:yt,onTitleChange:Qt,className:_n,title:mn,titleWidth:ln=41,style:sr={},fontColor:ir="#6A7283",showCount:xr,classNameActive:er,styleItem:Tn={}})=>{const[Er,zr]=(0,ae.useState)(0),[Br,Cr]=(0,ae.useState)(!1),Dr=(0,ae.useRef)(null),ui=(0,ae.useRef)(null);return(0,ae.useEffect)(()=>{var ei;ot.length!==0&&(((ei=Dr==null?void 0:Dr.current)==null?void 0:ei.clientHeight)>97?zr(1):zr(0)),ot.length===0&&zr(0),Cr(!1)},[ot]),ae.createElement("div",{className:xe()(ke.row,_n),style:sr},ae.createElement("div",{onClick:(0,me.throttle)(()=>Qt==null?void 0:Qt(),2e3),style:{width:ln,marginTop:Br?12:4},className:`${ke.title} ${Qt?"current":""}`},mn),ae.createElement("div",{className:Br?`${ke.tagsWrap} ${ke.tagsBorderWrap}`:ke.tagsWrap},ae.createElement("div",{className:ke.bar,ref:ui,style:Er>0?{height:Er===1?97:"auto",overflow:Er===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ae.createElement("div",{className:ke.tag,ref:Dr},ot==null?void 0:ot.map(ei=>ae.createElement("span",{onClick:()=>yt(ei.id),key:ei.id,style:ct(ct({color:ir},Tn),(ei==null?void 0:ei.style)||{}),className:Ye===ei.id?xe()(er||ke.active,ei.classNameActive):""},ae.createElement("span",{title:ei.name,className:ke.name},ei.name),!!xr&&ae.createElement("span",{className:ke.num},ei.count))))),!!Er&&ae.createElement(ae.Fragment,null,Er===1?ae.createElement("div",{onClick:()=>{var ei;zr(2),((ei=Dr==null?void 0:Dr.current)==null?void 0:ei.clientHeight)>245?Cr(!0):Cr(!1)},className:ke.action},"\u5C55\u5F00",ae.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ae.createElement("div",{onClick:()=>{ui.current.scrollTop=0,zr(1),Cr(!1)},className:ke.action},"\u6536\u8D77",ae.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},at={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},Xe=({dataSource:ot=[],value:Ye,onChange:yt,onTitleChange:Qt,className:_n,title:mn,titleWidth:ln=41,style:sr={},fontColor:ir="#6A7283",showCount:xr,expand:er=!0})=>{const[Tn,Er]=(0,ae.useState)(0),[zr,Br]=(0,ae.useState)(!1),Cr=(0,ae.useRef)(null),Dr=(0,ae.useRef)(null),[ui,ei]=(0,ae.useState)(er);return ae.createElement("div",{className:xe()(at.row,_n),style:sr},ae.createElement("div",{className:"flex item-center justify-between"},ae.createElement("div",{onClick:(0,me.throttle)(()=>Qt==null?void 0:Qt(),2e3),style:{width:ln,marginTop:zr?12:4},className:`${at.title} ${Qt?"current":""}`},mn),ae.createElement("i",{className:`iconfont ${ui?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:ui?8:10},onClick:()=>ei(!ui)})),ui&&ae.createElement("div",{className:zr?`${at.tagsWrap} ${at.tagsBorderWrap}`:at.tagsWrap},ae.createElement("div",{className:at.fenge}),ae.createElement("div",{className:at.bar,ref:Dr},ae.createElement("div",{className:at.tag,ref:Cr},ot==null?void 0:ot.map(ii=>ae.createElement("span",{onClick:()=>yt(ii.id),key:ii.id,style:{color:ir},className:Ye===ii.id?at.active:""},ae.createElement("span",{title:ii.name,className:at.name},ii.name),!!xr&&ae.createElement("span",{className:at.num},ii.count)))))))},lt={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},Ce=({dataSource:ot=[],value:Ye,onChange:yt,onTitleChange:Qt,className:_n,title:mn,titleWidth:ln=41,style:sr={},fontColor:ir="#fff",showCount:xr,expand:er=!0})=>{const[Tn,Er]=(0,ae.useState)(0),[zr,Br]=(0,ae.useState)(!1),Cr=(0,ae.useRef)(null),Dr=(0,ae.useRef)(null),[ui,ei]=(0,ae.useState)(er);return ae.createElement("div",{className:xe()(lt.row,_n),style:sr},ae.createElement("div",{className:"flex item-center justify-between"},ae.createElement("div",{onClick:(0,me.throttle)(()=>Qt==null?void 0:Qt(),2e3),style:{width:ln},className:`${lt.title} ${Qt?"current":""}`},mn),ae.createElement("i",{className:`iconfont ${ui?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:ui?"#00DDC7":"#037F74",fontSize:ui?10:12},onClick:()=>ei(!ui)})),ui&&ae.createElement("div",{className:zr?`${lt.tagsWrap} ${lt.tagsBorderWrap}`:lt.tagsWrap},ae.createElement("div",{className:lt.bar,ref:Dr},ae.createElement("div",{className:lt.tag,ref:Cr},ot==null?void 0:ot.map(ii=>ae.createElement("span",{onClick:()=>yt(ii.id),key:ii.id,style:{color:ir},className:Ye===ii.id?lt.active:""},ae.createElement("span",{title:ii.name,className:lt.name},ii.name),!!xr&&ae.createElement("span",{className:lt.num},ii.count)))))))},je={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Mt=({dataSource:ot=[],value:Ye,onChange:yt,className:Qt,style:_n={}})=>ae.createElement("div",{style:_n,className:xe()(je.tabs,Qt)},ot.map(mn=>ae.createElement("span",{onClick:()=>yt(mn.id),className:Ye===mn.id?je.active:"",key:mn.id},mn.name))),ht={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Ft=se(69677),Jt=({dataSource:ot=[],value:Ye="",onChange:yt,onInputChange:Qt=()=>{},className:_n,style:mn={},placeholder:ln,allowClear:sr=!1})=>{var ir;const[xr,er]=(0,ae.useState)(""),[Tn,Er]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var Cr;let Dr=Ye;(Cr=JSON.stringify(Ye))!=null&&Cr.includes("{")&&(er(Ye.id),Dr=Ye.value||"");try{Er(decodeURIComponent(Dr||""))}catch(ui){Er(decodeURIComponent(Dr||""))}},[Ye]);const zr=()=>{yt(encodeURIComponent(Tn),xr||null)},Br=Cr=>{Cr!==xr&&(er(Cr),yt(encodeURIComponent(Tn),Cr))};return ae.createElement("div",{className:xe()(ht.input,_n),style:mn},!!ot.length&&ae.createElement("div",{className:ht.dropdown},ae.createElement("div",{className:ht.text},(ir=ot.find(Cr=>Cr.id===xr))==null?void 0:ir.name,ae.createElement("i",{className:"iconfont icon-zhankai4"}),ae.createElement("b",{className:ht.b1}),ae.createElement("b",{className:ht.b2})),ae.createElement("div",{className:ht.menu},ot.map((Cr,Dr)=>ae.createElement("div",{key:Dr,onClick:()=>Br(Cr.id)},Cr.name)))),ae.createElement(Ft.default,{onPressEnter:zr,value:Tn,onChange:Cr=>{Er(Cr.target.value),Qt(encodeURIComponent(Cr.target.value),xr||null)},bordered:!1,placeholder:ln}),ae.createElement("i",{onClick:zr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Rt={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},tn=({dataSource:ot=[],value:Ye="",onChange:yt,onInputChange:Qt=()=>{},className:_n,style:mn={},placeholder:ln,allowClear:sr=!1})=>{var ir;const[xr,er]=(0,ae.useState)(""),[Tn,Er]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var Cr;let Dr=Ye;(Cr=JSON.stringify(Ye))!=null&&Cr.includes("{")&&(er(Ye.id),Dr=Ye.value||"");try{Er(decodeURIComponent(Dr||""))}catch(ui){Er(decodeURIComponent(Dr||""))}},[Ye]);const zr=()=>{yt(encodeURIComponent(Tn),xr||null)},Br=Cr=>{Cr!==xr&&(er(Cr),yt(encodeURIComponent(Tn),Cr))};return ae.createElement("div",{className:xe()(Rt.input,_n),style:mn},!!ot.length&&ae.createElement("div",{className:Rt.dropdown},ae.createElement("div",{className:Rt.text},(ir=ot.find(Cr=>Cr.id===xr))==null?void 0:ir.name,ae.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),ae.createElement("div",{className:Rt.menu},ot.map((Cr,Dr)=>ae.createElement("div",{key:Dr,onClick:()=>Br(Cr.id)},Cr.name)))),ae.createElement(Ft.default,{onPressEnter:zr,value:Tn,onChange:Cr=>{Er(Cr.target.value),Qt(encodeURIComponent(Cr.target.value),xr||null)},bordered:!1,placeholder:ln}),ae.createElement("i",{onClick:zr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Hn={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},tr=({value:ot,onChange:Ye,className:yt,total:Qt,pageSize:_n,style:mn={}})=>{const ln=ot<2,sr=ot>=Math.ceil(Qt/_n);return Qt<=_n?ae.createElement(ae.Fragment,null):ae.createElement("div",{className:xe()(Hn.quickPager,yt),style:mn},ae.createElement("div",{onClick:()=>{ln||Ye(ot-1,"prev")},className:ln?Hn.disabled:""},"\u4E0A\u4E00\u9875"),ae.createElement("div",{onClick:()=>{sr||Ye(ot+1,"next")},className:sr?Hn.disabled:""},"\u4E0B\u4E00\u9875"))},Qe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},we=se(57953),At=se(83062),Mn=se(12604),_t=se(11320),$e=se(28706),dt=se(96908),qt=se(57177),Xn=se(81378),bn=se(26194),nn=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,trackEventItems:sr,loading:ir})=>{const xr=Math.floor((ln-(yt-1)*Qt)/yt);return ae.createElement(we.Z,{spinning:ir},ae.createElement("div",{className:xe()(Qe.list,ot)},!!Ye.length&&Ye.map((er,Tn)=>{const{name:Er,id:zr,identifier:Br,power:Cr,cover_image_id:Dr,pic:ui}=er;return ae.createElement("div",{className:Qe.wrap,key:zr,style:{width:xr,marginRight:(1+Tn)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{target:"_blank",href:`/shixuns/${Br}/challenges`,className:Qe.li,onClick:ei=>{ei.preventDefault(),sr&&(0,$e.L9)([sr]),Cr&&(0,$e.xg)(`/shixuns/${Br}/challenges`)}},ae.createElement("div",{className:Qe.img},ae.createElement("img",{className:Qe.cover,src:`${ui}`}),er.is_jupyter&&ae.createElement("img",{className:Qe.sign,src:dt}),er.is_jupyter_lab&&ae.createElement("img",{className:Qe.sign,src:qt}),er.is_unity_3d&&ae.createElement("img",{className:Qe.sign,src:Xn})),ae.createElement("div",{className:Qe.name},ae.createElement(At.Z,{title:Er||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:Qe.e},Er||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:Qe.tags},ae.createElement(At.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,er.challenges_count))),!!er.myshixuns_count&&ae.createElement(At.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,er.myshixuns_count))),ae.createElement(At.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,er.level))),ae.createElement("div",{className:Qe.rate},ae.createElement(Mn.Z,{allowHalf:!0,disabled:!0,defaultValue:er.score_info}),ae.createElement("span",null,"\xA0",er.score_info?`${er.score_info}\u5206`:"5\u5206")))),!Cr&&ae.createElement("div",{className:Qe.lockWrap},ae.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ye.length&&ae.createElement(bn.Z,null)))},xn={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},De=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,wrapClassName:sr,trackEventItems:ir,loading:xr})=>{const er=Math.floor((ln-(yt-1)*Qt)/yt);return ae.createElement(we.Z,{spinning:xr},ae.createElement("div",{className:xe()(xn.list,ot)},!!Ye.length&&Ye.map((Tn,Er)=>{const{name:zr,id:Br,identifier:Cr,power:Dr,cover_image_id:ui,pic:ei}=Tn;return ae.createElement("div",{className:xe()(xn.wrap,sr),key:Br,style:{width:er,marginRight:(1+Er)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{target:"_blank",href:`/shixuns/${Cr}/challenges`,className:xn.li,onClick:ii=>{ii.preventDefault(),ir&&(0,$e.L9)([ir]),Dr&&(0,$e.xg)(`/shixuns/${Cr}/challenges`)}},ae.createElement("img",{src:se(79633),className:xn.titleBg}),ae.createElement("div",{className:xn.name},ae.createElement(At.Z,{title:zr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:xn.e},zr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{style:{padding:"14px",paddingBottom:0}},ae.createElement("div",{className:xn.img},ae.createElement("img",{className:xn.cover,src:ui?`${_t.Z.API_SERVER}/api/attachments/${ui}`:`${_t.Z.IMG_SERVER+ei}`}),Tn.is_jupyter&&ae.createElement("div",{className:xn.bq},"Jupyter"),Tn.is_jupyter_lab&&ae.createElement("div",{className:xn.bq},"JupyterLab"),Tn.is_unity_3d&&ae.createElement("div",{className:xn.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),ae.createElement("div",{className:"mt20 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:xn.text},"\u5B66\u4E60\u4EBA\u6570"),ae.createElement("span",{className:xn.value},Tn.myshixuns_count)),ae.createElement("div",null,ae.createElement("span",{className:xn.text},"\u56F0\u96BE\u7B49\u7EA7"),ae.createElement("span",{className:xn.value},Tn.level))),ae.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:xn.text},"\u5173\u5361\u6570"),ae.createElement("span",{className:xn.value},Tn.challenges_count)),ae.createElement("div",{className:xn.rate},ae.createElement(Mn.Z,{allowHalf:!0,disabled:!0,defaultValue:Tn.score_info}),ae.createElement("span",{className:xn.value,style:{color:"#FF9C00"}},"\xA0",Tn.score_info?`${Tn.score_info}\u5206`:"5\u5206"))))),!Dr&&ae.createElement("div",{className:xn.lockWrap},ae.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ye.length&&ae.createElement(bn.Z,null)))},ue={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU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ri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",Me=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,trackEventItems:sr,loading:ir,wrapClassName:xr,imgClassName:er})=>{const Tn=Math.floor((ln-(yt-1)*Qt)/yt);return ae.createElement(we.Z,{spinning:ir},ae.createElement("div",{className:xe()(ue.list,ot)},!!Ye.length&&Ye.map((Er,zr)=>{const{name:Br,id:Cr,identifier:Dr,power:ui,cover_image_id:ei,pic:ii}=Er;return ae.createElement("div",{className:xe()(ue.wrap,xr),key:Cr,style:{width:Tn,marginRight:(1+zr)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{target:"_blank",href:`/shixuns/${Dr}/challenges`,className:ue.li,onClick:Ti=>{Ti.preventDefault(),sr&&(0,$e.L9)([sr]),ui&&(0,$e.xg)(`/shixuns/${Dr}/challenges`)}},ae.createElement("div",{className:xe()(ue.img,er)},ae.createElement("img",{className:ue.cover,src:ei?`${_t.Z.API_SERVER}/api/attachments/${ei}`:`${_t.Z.IMG_SERVER+ii}`}),Er.is_jupyter&&ae.createElement("img",{className:ue.sign,src:ce}),Er.is_jupyter_lab&&ae.createElement("img",{className:ue.sign,src:he}),Er.is_unity_3d&&ae.createElement("img",{className:ue.sign,src:fe})),ae.createElement("div",{className:ue.name},ae.createElement(At.Z,{title:Br||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:ue.e},Br||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:ue.tags},ae.createElement(At.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,Er.challenges_count))),!!Er.myshixuns_count&&ae.createElement(At.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,Er.myshixuns_count))),ae.createElement(At.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,Er.level))),ae.createElement("div",{className:ue.rate},ae.createElement(Mn.Z,{allowHalf:!0,disabled:!0,defaultValue:Er.score_info}),ae.createElement("span",null,"\xA0",Er.score_info?`${Er.score_info}\u5206`:"5\u5206")))),!ui&&ae.createElement("div",{className:ue.lockWrap},ae.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ye.length&&ae.createElement(bn.Z,null)))},Ve=se(5476),ft={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Ht=se(79005),Zt=se(20345),jt=se(77882),$t=se(31081),Je=se(75309),Et=se(71979),Lt=se(47558),Xt=se(60345),wt=se(66832),Nn=se(96593),et=se(19664),It=se(91833),gn=Object.defineProperty,hn=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,mr=(ot,Ye,yt)=>Ye in ot?gn(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,ur=(ot,Ye)=>{for(var yt in Ye||(Ye={}))An.call(Ye,yt)&&mr(ot,yt,Ye[yt]);if(hn)for(var yt of hn(Ye))Vn.call(Ye,yt)&&mr(ot,yt,Ye[yt]);return ot};const dr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ht,swimg:Zt},{name:"101\u8BA1\u5212",ptimg:jt,swimg:$t},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Je,swimg:Et},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Lt,swimg:Xt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:wt,swimg:Nn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:et,swimg:It}];var nr=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,trackEventItems:sr,loading:ir,wrapClassName:xr,imgClassName:er,isArrow:Tn=!1,imgStyle:Er={}})=>{const zr=Math.floor((ln-(yt-1)*Qt)/yt),[Br,Cr]=(0,ae.useState)(),[Dr,ui]=(0,ae.useState)(),ei=Ti=>Cr(Ti),ii=()=>Cr(-1);return ae.createElement(we.Z,{spinning:ir},ae.createElement("div",{className:xe()(ft.list,ot)},!!(Ye!=null&&Ye.length)&&(Ye==null?void 0:Ye.map((Ti,ea)=>{var Si;const{name:zi,id:ai,identifier:vi,featured:_i,school_name:Ki,image_url:Ea,excellent:Ta,is_plan:va}=Ti;return ae.createElement("div",{key:ai,className:xe()(ft.wrap,xr),style:{width:zr,marginRight:(1+ea)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{target:"_blank",href:`/paths/${vi}`,className:ft.li,onClick:ra=>{ra.preventDefault(),sr&&(0,$e.L9)([sr]),(0,$e.xg)(`/paths/${vi}`)}},ae.createElement("img",{src:se(39057),className:ft.titleBg}),ae.createElement("div",{className:ft.name},ae.createElement(At.Z,{title:zi},ae.createElement("span",{className:ft.e,style:{color:Tn&&Br===ea?"#145DFF":"#000000"},onMouseEnter:()=>{ei(ea)},onMouseLeave:ii},zi))),ae.createElement("div",{style:{padding:"14px",paddingBottom:0}},ae.createElement("div",{className:xe()(ft.img,er)},ae.createElement("img",{className:ft.cover,style:ur({},Er),src:`${_t.Z.IMG_SERVER+Ea}`}),(Si=Ti==null?void 0:Ti.subject_tags)==null?void 0:Si.map((ra,Yi)=>{var ki,Ma;if(Yi===0){const si=(ki=dr.find(Ui=>Ui.name==ra))==null?void 0:ki.swimg;return ae.createElement("img",{className:ft.sign,src:si,style:{left:"-4px"}})}const Ri=(Ma=dr.find(si=>si.name==ra))==null?void 0:Ma.ptimg;return ae.createElement("img",{className:ft.sign,src:Ri,style:{left:`${48+52*(Yi-1)+2*Yi}px`}})}),ae.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Ti==null?void 0:Ti.excellent)&&ae.createElement("div",{className:ft.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ae.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:ft.text},"\u7AE0\u8282\u6570"),ae.createElement("span",{className:ft.value},Ti.stages_count)),ae.createElement("div",null,ae.createElement("span",{className:ft.text},"\u5B66\u4E60\u4EBA\u6570"),ae.createElement("span",{className:ft.value},Ti.members_count))))))})),!Ye.length&&ae.createElement(bn.Z,null)))},_r={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},oi=se(52262),Wr=se(67294);const xi=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ht,swimg:Zt},{name:"101\u8BA1\u5212",ptimg:jt,swimg:$t},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Je,swimg:Et},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Lt,swimg:Xt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:wt,swimg:Nn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:et,swimg:It}];var Ct=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,trackEventItems:sr,loading:ir,onRemove:xr=()=>{},isCurrent:er=!0,showAlias:Tn=!1,wrapClassName:Er,imgClassName:zr})=>{const Br=Math.floor((ln-(yt-1)*Qt)/yt),Cr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Dr=>(window.ENV==="build"&&(Dr.ptimg=`/react/build${Dr.ptimg}`,Dr.swimg=`/react/build${Dr.swimg}`),Dr));return Wr.createElement(we.Z,{spinning:ir},Wr.createElement("div",{className:xe()(_r.list,ot)},!!(Ye!=null&&Ye.length)&&(Ye==null?void 0:Ye.map((Dr,ui)=>{var ei;const{name:ii,id:Ti,identifier:ea,featured:Si,school_name:zi,image_url:ai,excellent:vi,is_plan:_i}=Dr;return Wr.createElement("div",{key:Ti,className:xe()(_r.wrap,Er),style:{width:Br,marginRight:(1+ui)%yt===0?0:Qt+mn,marginBottom:_n}},Wr.createElement("a",{className:_r.li,onClick:Ki=>{Ki.preventDefault(),Ki.stopPropagation(),sr&&(0,$e.L9)([sr]),(0,$e.xg)(`/paths/${ea}`)}},Wr.createElement("div",{className:xe()(_r.img,zr)},Wr.createElement("img",{className:_r.cover,src:`${_t.Z.IMG_SERVER+ai}`}),er&&(0,oi.bg)()&&(Dr==null?void 0:Dr.studying)&&Wr.createElement("div",{className:`${_r.movebq} user-path-items`,onClick:Ki=>{Ki.stopPropagation(),xr(Dr)}},Wr.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Wr.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ei=Dr==null?void 0:Dr.subject_tags)==null?void 0:ei.map((Ki,Ea)=>{var Ta,va;if(Ea===0){const Yi=(Ta=Cr.find(ki=>ki.name==Ki))==null?void 0:Ta.swimg;return Wr.createElement("img",{className:_r.sign,src:Yi,style:{left:"-4px"}})}const ra=(va=Cr.find(Yi=>Yi.name==Ki))==null?void 0:va.ptimg;return Wr.createElement("img",{className:_r.sign,src:ra,style:{left:`${48+52*(Ea-1)+2*Ea}px`}})}),Wr.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(Dr==null?void 0:Dr.excellent)&&Wr.createElement("div",{className:_r.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Wr.createElement("div",{className:_r.name},Wr.createElement(At.Z,{title:Tn&&(Dr!=null&&Dr.excellent_alias_name)?Wr.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ii}`,Wr.createElement("br",null),Wr.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Dr==null?void 0:Dr.excellent_alias_name}`)):ii},Wr.createElement("span",{className:_r.e},Tn&&(Dr==null?void 0:Dr.excellent_alias_name)||ii))),Wr.createElement("div",{className:_r.tags},Wr.createElement("div",null,Wr.createElement(At.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Wr.createElement("span",null,Wr.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Wr.createElement("span",null,Dr.stages_count))),Wr.createElement(At.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Wr.createElement("span",null,Wr.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Wr.createElement("span",null,Dr.members_count)))))))})),!Ye.length&&Wr.createElement(bn.Z,null)))},wn={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Rn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQ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qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",an=se(67294),lr=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,trackEventItems:sr,loading:ir})=>{const xr=Math.floor((ln-(yt-1)*Qt)/yt);return an.createElement(we.Z,{spinning:ir},an.createElement("div",{className:xe()(wn.list,ot)},!!Ye.length&&Ye.map((er,Tn)=>{const{subject_identifier:Er,id:zr,identifier:Br,power:Cr}=er,Dr=er.is_public!=0&&er.is_public;return an.createElement("div",{className:wn.wrap,key:zr,style:{width:xr,marginRight:(1+Tn)%yt===0?0:Qt+mn,marginBottom:_n}},an.createElement("a",{className:wn.li,onClick:ui=>{ui.preventDefault(),sr&&(0,$e.L9)([sr]),(0,$e.xg)(er.first_category_url)}},an.createElement("div",{className:wn.top},an.createElement(At.Z,{title:er.name},an.createElement("div",{className:wn.name},er.name)),an.createElement("img",{className:wn.img,src:_t.Z.IMG_SERVER+"/images/"+er.avatar_url}),an.createElement("div",{className:wn.text,title:er.creator},er.creator),Er&&an.createElement("div",{className:wn.btns},an.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),an.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Dr&&an.createElement("div",{className:wn.sign},"\u516C\u5F00")),an.createElement("div",{className:wn.bottom},er.visits>0&&an.createElement(At.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-liulanyan"}),an.createElement("span",null,er.visits))),er.course_members_count>0&&an.createElement(At.Z,{title:"\u6210\u5458",placement:"bottom"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-chengyuan"}),er.course_members_count)),er.tasks_count>0&&an.createElement(At.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-zuoye"}),er.tasks_count)),er.is_end?an.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):an.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!er.is_accessible&&an.createElement("div",{className:wn.lockWrap},an.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),an.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ye.length&&an.createElement(bn.Z,null)))},Gn={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},jn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcR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drkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",mt=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,wrapClassName:sr,trackEventItems:ir,loading:xr})=>{const er=Math.floor((ln-(yt-1)*Qt)/yt);return ae.createElement(we.Z,{spinning:xr},ae.createElement("div",{className:xe()(Gn.list,ot)},!!Ye.length&&Ye.map((Tn,Er)=>{const{subject_identifier:zr,id:Br,identifier:Cr,power:Dr}=Tn,ui=Tn.is_public!=0&&Tn.is_public;return ae.createElement("div",{className:xe()(`${Gn.wrap} ${Tn.is_accessible?"":Gn.warpStyle}`,sr),key:Br,style:{width:er,marginRight:(1+Er)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{className:Gn.li,onClick:ei=>{ei.preventDefault(),ir&&(0,$e.L9)([ir]),(0,$e.xg)(Tn.first_category_url)}},ae.createElement("div",{className:Gn.creator},ae.createElement("img",{className:Gn.img,src:_t.Z.IMG_SERVER+"/images/"+Tn.avatar_url}),ae.createElement("div",{className:Gn.text,title:Tn.creator},Tn.creator)),ae.createElement("div",{className:Gn.top},ae.createElement(At.Z,{title:Tn.name},ae.createElement("div",{className:Gn.name},Tn.name)),ui&&ae.createElement("div",{className:Gn.sign},"\u516C\u5F00")),ae.createElement("div",{className:Gn.middle},ae.createElement("div",{className:Gn.row,style:{marginBottom:6}},ae.createElement("div",null,ae.createElement("span",{className:Gn.text},"\u8BBF\u95EE\u91CF"),ae.createElement("span",{className:Gn.value},(Tn==null?void 0:Tn.visits)||0)),ae.createElement("div",null,ae.createElement("span",{className:Gn.text},"\u6210\u5458"),ae.createElement("span",{className:Gn.value},(Tn==null?void 0:Tn.course_members_count)||0))),ae.createElement("div",{className:Gn.row},ae.createElement("div",null,ae.createElement("span",{className:Gn.text,style:{width:42}},"\u4F5C",ae.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ae.createElement("span",{className:Gn.value},(Tn==null?void 0:Tn.tasks_count)||0)),ae.createElement("div",null,ae.createElement("span",{className:Gn.text},"\u72B6\u6001"),Tn.is_end?ae.createElement("span",{className:Gn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ae.createElement("span",{className:Gn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),zr&&ae.createElement("div",{className:Gn.btns},ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Tn.is_accessible&&ae.createElement("div",{className:Gn.lockWrap},ae.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ye.length&&ae.createElement(bn.Z,null)))},Bt={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},rn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s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oI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",St=({className:ot,dataSource:Ye=[],col:yt=4,right:Qt,bottom:_n=23,precision:mn=0,wrapWidth:ln=1200,wrapClassName:sr,trackEventItems:ir,loading:xr})=>{const er=Math.floor((ln-(yt-1)*Qt)/yt);return ae.createElement(we.Z,{spinning:xr},ae.createElement("div",{className:xe()(Bt.list,ot)},!!Ye.length&&Ye.map((Tn,Er)=>{const{subject_identifier:zr,id:Br,identifier:Cr,power:Dr}=Tn,ui=Tn.is_public!=0&&Tn.is_public;return ae.createElement("div",{className:xe()(`${Bt.wrap} ${Tn.is_accessible?"":Bt.warpStyle}`,sr),key:Br,style:{width:er,marginRight:(1+Er)%yt===0?0:Qt+mn,marginBottom:_n}},ae.createElement("a",{className:Bt.li,onClick:ei=>{ei.preventDefault(),ir&&(0,$e.L9)([ir]),(0,$e.xg)(Tn.first_category_url)}},ae.createElement("div",{className:Bt.creator},ae.createElement("img",{className:Bt.img,src:_t.Z.IMG_SERVER+"/images/"+Tn.avatar_url}),ae.createElement("div",{className:Bt.text,title:Tn.creator},Tn.creator)),ae.createElement("div",{className:Bt.top},ae.createElement(At.Z,{title:Tn.name},ae.createElement("div",{className:Bt.name},Tn.name)),ui&&ae.createElement("div",{className:Bt.sign})),ae.createElement("div",{className:Bt.middle},ae.createElement("div",{className:Bt.row,style:{marginBottom:6}},ae.createElement("div",null,ae.createElement("span",{className:Bt.text},"\u8BBF\u95EE\u91CF"),ae.createElement("span",{className:Bt.value},(Tn==null?void 0:Tn.visits)||0)),ae.createElement("div",null,ae.createElement("span",{className:Bt.text},"\u6210\u5458"),ae.createElement("span",{className:Bt.value},(Tn==null?void 0:Tn.course_members_count)||0))),ae.createElement("div",{className:Bt.row},ae.createElement("div",null,ae.createElement("span",{className:Bt.text,style:{width:42}},"\u4F5C",ae.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ae.createElement("span",{className:Bt.value},(Tn==null?void 0:Tn.tasks_count)||0)),ae.createElement("div",null,ae.createElement("span",{className:Bt.text},"\u72B6\u6001"),Tn.is_end?ae.createElement("span",{className:Bt.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ae.createElement("span",{className:Bt.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),zr&&ae.createElement("div",{className:Bt.btns},ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Tn.is_accessible&&ae.createElement("div",{className:Bt.lockWrap},ae.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ye.length&&ae.createElement(bn.Z,null)))},Vt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Nt=se(35973),on=({dataSource:ot=[],value:Ye,onChange:yt,className:Qt,style:_n={},tabBarExtraContent:mn})=>ae.createElement("div",{className:xe()(Vt.tabs,Qt),style:_n},ae.createElement("div",{className:Vt.tabsWrap},ot.map((ln,sr)=>ae.createElement("aside",{className:Vt.tab,onClick:()=>{yt(ln.id),ln.link&&Nt.history.push(ln.link)},key:sr},ae.createElement("div",{className:Ye===ln.id?Vt.active:""},ln.name),(ln==null?void 0:ln.resetCount)==null&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement("span",null,"\uFF08",ln==null?void 0:ln.total,"\uFF09"),(ln==null?void 0:ln.resetCount)!==void 0&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement(At.Z,{title:(ln==null?void 0:ln.tip)!=null?ln==null?void 0:ln.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},ln==null?void 0:ln.resetCount),"/",ae.createElement("span",null,ln==null?void 0:ln.total),"\uFF09"))))),ae.createElement("div",{className:Vt.tabBar},mn)),Kn={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},hr=({dataSource:ot=[],value:Ye,onChange:yt,className:Qt,style:_n={},tabBarExtraContent:mn})=>ae.createElement("div",{className:xe()(Kn.tabs,Qt),style:_n},ae.createElement("div",{className:Kn.tabsWrap},ot.map((ln,sr)=>ae.createElement("aside",{className:Kn.tab,onClick:()=>{yt(ln.id),ln.link&&Nt.history.push(ln.link)},key:sr},ae.createElement("div",{className:Ye===ln.id?Kn.active:""},ln.name),(ln==null?void 0:ln.resetCount)==null&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement("span",null,"\uFF08",ln==null?void 0:ln.total,"\uFF09"),(ln==null?void 0:ln.resetCount)!==void 0&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement(At.Z,{title:(ln==null?void 0:ln.tip)!=null?ln==null?void 0:ln.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},ln==null?void 0:ln.resetCount),"/",ae.createElement("span",null,ln==null?void 0:ln.total),"\uFF09"))))),ae.createElement("div",{className:Kn.tabBar},mn)),or={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},Lr=({dataSource:ot=[],value:Ye,onChange:yt,className:Qt,style:_n={},tabBarExtraContent:mn})=>ae.createElement("div",{className:xe()(or.tabs,Qt),style:_n},ae.createElement("div",{className:or.tabsWrap},ot.map((ln,sr)=>ae.createElement("aside",{className:`${or.tab} ${Ye===ln.id?or.active:""}`,onClick:()=>{yt(ln.id),ln.link&&Nt.history.push(ln.link)},key:sr},ae.createElement("div",null,ln.name),(ln==null?void 0:ln.resetCount)==null&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement("span",null,"\uFF08",ln==null?void 0:ln.total,"\uFF09"),(ln==null?void 0:ln.resetCount)!==void 0&&(ln==null?void 0:ln.total)!==void 0&&ae.createElement(At.Z,{title:(ln==null?void 0:ln.tip)!=null?ln==null?void 0:ln.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},ln==null?void 0:ln.resetCount),"/",ae.createElement("span",null,ln==null?void 0:ln.total),"\uFF09"))))),ae.createElement("div",{className:or.tabBar},mn)),gt=({className:ot,style:Ye={},children:yt})=>ae.createElement("div",{className:xe()(ot),style:Ye},yt),Dt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},En=se(85418),qn=se(68508);const Cn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var In=({sortValue:ot,dropValue:Ye,className:yt,onSort:Qt,onDrop:_n,dataSource:mn=Cn})=>{var ln;return ae.createElement("div",{className:xe()(Dt.orderWrap,yt)},ae.createElement(En.Z,{dropdownRender:()=>ae.createElement(qn.default,null,mn.map((sr,ir)=>ae.createElement(qn.default.Item,{key:ir,onClick:()=>_n(sr.id)},sr.name)))},ae.createElement("span",{className:Dt.orderTextWrap},(ln=mn.find(sr=>Ye===sr.id))==null?void 0:ln.name)),ae.createElement("span",{className:Dt.orderIconWrap},ae.createElement("span",{className:Dt.orderAsc},ae.createElement("i",{className:ot==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer}`,onClick:()=>Qt(ot==="asc"?"desc":"asc")})),ae.createElement("span",{className:Dt.orderDesc},ae.createElement("i",{className:ot==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer}`,onClick:()=>Qt(ot==="asc"?"desc":"asc")}))))},Un={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const kr=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var di=({sortValue:ot,dropValue:Ye,className:yt,onSort:Qt,onDrop:_n,dataSource:mn=kr})=>{var ln;return ae.createElement("div",{className:xe()(Un.orderWrap,yt)},ae.createElement(En.Z,{dropdownRender:()=>ae.createElement(qn.default,null,mn.map((sr,ir)=>ae.createElement(qn.default.Item,{key:ir,onClick:()=>_n(sr.id)},sr.name)))},ae.createElement("span",{className:Un.orderTextWrap},(ln=mn.find(sr=>Ye===sr.id))==null?void 0:ln.name)),ae.createElement("span",{className:Un.orderIconWrap},ae.createElement("span",{className:Un.orderAsc},ae.createElement("i",{className:ot==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Un.cursorPointer} ${Un.active}`:`iconfont icon-sanjiaoxing-up font12 ${Un.cursorPointer}`,onClick:()=>Qt(ot==="asc"?"desc":"asc")})),ae.createElement("span",{className:Un.orderDesc},ae.createElement("i",{className:ot==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Un.cursorPointer} ${Un.active}`:`iconfont icon-sanjiaoxing-down font12 ${Un.cursorPointer}`,onClick:()=>Qt(ot==="asc"?"desc":"asc")}))))},Qr={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},Fi=se(71577),Ni=se(52810),Ci=Object.defineProperty,Qi=Object.getOwnPropertySymbols,Ei=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,Hi=(ot,Ye,yt)=>Ye in ot?Ci(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,$i=(ot,Ye)=>{for(var yt in Ye||(Ye={}))Ei.call(Ye,yt)&&Hi(ot,yt,Ye[yt]);if(Qi)for(var yt of Qi(Ye))pi.call(Ye,yt)&&Hi(ot,yt,Ye[yt]);return ot},ci=(ot,Ye)=>{var yt={};for(var Qt in ot)Ei.call(ot,Qt)&&Ye.indexOf(Qt)<0&&(yt[Qt]=ot[Qt]);if(ot!=null&&Qi)for(var Qt of Qi(ot))Ye.indexOf(Qt)<0&&pi.call(ot,Qt)&&(yt[Qt]=ot[Qt]);return yt},Mi=(ot,Ye,yt)=>new Promise((Qt,_n)=>{var mn=ir=>{try{sr(yt.next(ir))}catch(xr){_n(xr)}},ln=ir=>{try{sr(yt.throw(ir))}catch(xr){_n(xr)}},sr=ir=>ir.done?Qt(ir.value):Promise.resolve(ir.value).then(mn,ln);sr((yt=yt.apply(ot,Ye)).next())}),ca=ot=>{var Ye=ot,{className:yt,style:Qt,children:_n,loading:mn=!1,openLoading:ln,onClick:sr=()=>{},size:ir="middle",shape:xr="round",theme:er}=Ye,Tn=ci(Ye,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Er,zr]=(0,ae.useState)(!1),Br=(0,ae.useMemo)(()=>{switch(er){case Ni.Fy.THEMEONE:return Qr.ThemeOne;case Ni.Fy.DEFAULT:default:return Qr.btn}},[er]);return ae.createElement(Fi.ZP,$i({onClick:(0,me.throttle)(Cr=>Mi(void 0,null,function*(){ln&&zr(!0);try{yield sr(Cr)}catch(Dr){console.log("error",Dr)}ln&&zr(!1)}),2e3,{leading:!0,trailing:!1}),className:xe()(Br,Qr[`${ir}-${xr}`],yt),style:Qt,size:ir,shape:xr,loading:Er||mn},Tn),_n)},na={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},zt=({className:ot,style:Ye,children:yt=null,onClick:Qt,title:_n})=>ae.createElement("div",{className:xe()(na.head,ot),style:Ye},ae.createElement("span",{className:"primary-hover",onClick:Qt},ae.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ae.createElement("b",{title:_n},_n),ae.createElement("div",{className:na.node},yt)),Tt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Bn=({confirmShow:ot=!0,confirmTitle:Ye,confirmClick:yt,cancelShow:Qt=!0,cancelTitle:_n,cancelClick:mn,className:ln,style:sr,confirmLoading:ir=!1})=>ae.createElement("div",{className:xe()(Tt.btns,ln),style:sr},ot&&ae.createElement(Fi.ZP,{loading:ir,onClick:yt,type:"primary",className:Tt.confirm},Ye),Qt&&ae.createElement(Fi.ZP,{onClick:mn,className:Tt.cancel},_n)),Qn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Zr=({className:ot,style:Ye={},LeftContent:yt,children:Qt,RightContent:_n})=>ae.createElement("div",{className:xe()(Qn.fixedBottom,ot),style:Ye},ae.createElement("div",{className:Qn.wrap},ae.createElement("div",{className:Qn.left},yt),ae.createElement("div",{className:Qn.center},Qt),ae.createElement("div",{className:Qn.right},_n))),Jr={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},qr=({className:ot,style:Ye={},dataSource:yt=[]})=>ae.createElement("div",{className:xe()(Jr.crumbs,ot),style:Ye},yt.map((Qt,_n)=>_nNt.history.push(Qt.path)},Qt.name):ae.createElement("span",null,Qt.name),ae.createElement("span",null,"\xA0",">","\xA0")):ae.createElement("span",{key:_n,style:{color:"#5F6368"}},Qt.name))),fi=se(55054),Ai=Object.defineProperty,jr=Object.defineProperties,wi=Object.getOwnPropertyDescriptors,Di=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,He=(ot,Ye,yt)=>Ye in ot?Ai(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,Ke=(ot,Ye)=>{for(var yt in Ye||(Ye={}))Li.call(Ye,yt)&&He(ot,yt,Ye[yt]);if(Di)for(var yt of Di(Ye))Te.call(Ye,yt)&&He(ot,yt,Ye[yt]);return ot},Ge=(ot,Ye)=>jr(ot,wi(Ye)),ut=(ot,Ye)=>{var yt={};for(var Qt in ot)Li.call(ot,Qt)&&Ye.indexOf(Qt)<0&&(yt[Qt]=ot[Qt]);if(ot!=null&&Di)for(var Qt of Di(ot))Ye.indexOf(Qt)<0&&Te.call(ot,Qt)&&(yt[Qt]=ot[Qt]);return yt};const{Countdown:vt}=fi.default;var vn=ot=>{var Ye=ot,{onChange:yt}=Ye,Qt=ut(Ye,["onChange"]);const[_n,mn]=(0,ae.useState)(null);(0,ae.useEffect)(()=>{typeof _n=="number"&&_n>=0&&yt(_n)},[_n]);const ln=sr=>{const ir=Math.floor(sr/1e3);mn(ir)};return ae.createElement(vt,Ge(Ke({},Qt),{onChange:ln}))},kn={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Pr=({DataProps:ot,className:Ye,style:yt={}})=>{var Qt;return ae.createElement("div",{className:xe()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",kn.ClassRoomItem,Ye),style:yt,onClick:()=>{(0,$e.xg)(ot==null?void 0:ot.first_category_url)}},ae.createElement("div",{className:"flex flex-col item-center"},ae.createElement("img",{src:`${(Qt=_t.Z)==null?void 0:Qt.IMG_SERVER}/images/${ot==null?void 0:ot.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(ot==null?void 0:ot.subject_identifier)&&ae.createElement("div",{className:"mt-40px"},ae.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),ae.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},ae.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(ot!=null&&ot.is_public)&&ae.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),ae.createElement("span",{className:xe()("text-16px font-medium",kn.TitleDom)},ot==null?void 0:ot.name)),ae.createElement("div",{className:"c-grey-333 font-medium"},ot==null?void 0:ot.creator),ae.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",ot==null?void 0:ot.course_members_count),ae.createElement("div",{className:"c-grey-333 flex item-center justify-between"},ae.createElement("div",null,"\u4F5C\u4E1A\uFF1A",ot==null?void 0:ot.tasks_count),ot!=null&&ot.is_end?ae.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):ae.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},cr=Object.defineProperty,Wn=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,rr=(ot,Ye,yt)=>Ye in ot?cr(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,Ir=(ot,Ye)=>{for(var yt in Ye||(Ye={}))Fn.call(Ye,yt)&&rr(ot,yt,Ye[yt]);if(Wn)for(var yt of Wn(Ye))$n.call(Ye,yt)&&rr(ot,yt,Ye[yt]);return ot},fr=({DataProps:ot=[],selectValue:Ye,onChange:yt,className:Qt,style:_n={},extra:mn,classNameItem:ln,styleItem:sr={},barHidden:ir})=>{const[xr,er]=(0,ae.useState)();return(0,ae.useEffect)(()=>{er(Array.isArray(Ye)?Ye:[Ye])},[Ye]),ae.createElement("div",{className:xe()("flex px-20px py-10px gap-40px",Qt),style:Ir({borderBottom:"1px solid #D3F0FF"},_n)},ot==null?void 0:ot.map(Tn=>ae.createElement("div",{key:Tn==null?void 0:Tn.id,className:xe()("flex item-center justify-center current c-grey-333 text-16 relative",ln,Tn==null?void 0:Tn.className),style:Ir(Ir({color:xr!=null&&xr.includes(Tn==null?void 0:Tn.id)?"#1890FF":"",minWidth:88},sr),(Tn==null?void 0:Tn.style)||{}),onClick:Er=>{yt==null||yt({domEvent:Er,item:Tn}),Tn!=null&&Tn.link&&Nt.history.push(Tn==null?void 0:Tn.link)}},Tn==null?void 0:Tn.name,!ir&&(xr==null?void 0:xr.includes(Tn==null?void 0:Tn.id))&&ae.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),ae.createElement("div",{className:"ml-auto"},mn))},wr=Object.defineProperty,Sr=Object.defineProperties,Nr=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,bt=(ot,Ye,yt)=>Ye in ot?wr(ot,Ye,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ot[Ye]=yt,sn=(ot,Ye)=>{for(var yt in Ye||(Ye={}))We.call(Ye,yt)&&bt(ot,yt,Ye[yt]);if(Fe)for(var yt of Fe(Ye))Wt.call(Ye,yt)&&bt(ot,yt,Ye[yt]);return ot},Ln=(ot,Ye)=>Sr(ot,Nr(Ye)),ar=({value:ot,onChange:Ye,onInputChange:yt,className:Qt,style:_n={},InputProps:mn})=>{const[ln,sr]=(0,ae.useState)(ot);return ae.createElement("div",{className:xe()("flex item-center rounded-full px-10px py-2px",Qt),style:sn({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},_n)},ae.createElement(Ft.default,Ln(sn({bordered:!1},mn),{onChange:ir=>{sr(ir.target.value),yt==null||yt(encodeURIComponent(ir.target.value))},onPressEnter:ir=>{Ye==null||Ye({domEvent:ir,item:{value:ln}})}})),ae.createElement("img",{className:"h-22px current",src:se(25365),height:22,onClick:ir=>{Ye==null||Ye({domEvent:ir,item:{value:ln}})}}))}},99914:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Pe}});var ae=se(67294);function Pe(Re,qe){const ve=(0,ae.useRef)();(0,ae.useEffect)(()=>{ve.current=Re}),(0,ae.useEffect)(()=>{function ke(){ve.current()}if(qe!==null){let Le=setInterval(ke,qe);return()=>clearInterval(Le)}},[qe])}},35994:function(dn,en,se){"use strict";var ae=se(67294),Pe=se(2453),Re=se(59810),qe=se(14446),ve=se(22150),ke=se(69677),Le=se(71230),xe=se(15746),me=se(94785),Ie=se(11320),st=se(16646),Ne=se(41307),xt=se(80150),pt=Object.defineProperty,ct=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,at=(Se,Ce,je)=>Ce in Se?pt(Se,Ce,{enumerable:!0,configurable:!0,writable:!0,value:je}):Se[Ce]=je,Yt=(Se,Ce)=>{for(var je in Ce||(Ce={}))rt.call(Ce,je)&&at(Se,je,Ce[je]);if(ct)for(var je of ct(Ce))Ee.call(Ce,je)&&at(Se,je,Ce[je]);return Se},Xe=(Se,Ce)=>{var je={};for(var Ue in Se)rt.call(Se,Ue)&&Ce.indexOf(Ue)<0&&(je[Ue]=Se[Ue]);if(Se!=null&&ct)for(var Ue of ct(Se))Ce.indexOf(Ue)<0&&Ee.call(Se,Ue)&&(je[Ue]=Se[Ue]);return je};const lt=Se=>{var Ce=Se,{handleFinish:je,form:Ue,dispatch:Mt}=Ce,ht=Xe(Ce,["handleFinish","form","dispatch"]),Ft,tt;const[Jt,Rt]=(0,ae.useState)([]),yn={fileList:Jt,maxCount:1,accept:"image/*",withCredentials:!0,beforeUpload:Yn=>{const tr=Yn.size/1024/1024;return tr>2||tr==0?(Pe.ZP.error(`${Yn.name} \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002${tr==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u56FE\u7247\u5927\u5C0F\u9650\u5236(2MB)"}`),Re.default.LIST_IGNORE):!0},onRemove:Yn=>{Rt([])},onChange:Yn=>{var tr,Qe,we;Ue.setFieldsValue({cover_id:""}),["uploading","done","removed"].includes(Yn.file.status)&&(Rt(Yn.fileList),Ue.setFieldsValue({cover_id:(we=(Qe=(tr=Yn.fileList)==null?void 0:tr[0])==null?void 0:Qe.response)==null?void 0:we.id}))},action:`${Ie.Z.API_SERVER}/api/attachments.json`},tn={multiple:!0,maxCount:10,withCredentials:!0,beforeUpload:Yn=>{const tr=Yn.size/1024/1024;return tr>500||tr==0?(Pe.ZP.error(`${Yn.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${tr==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(500MB)"}`),Re.default.LIST_IGNORE):!0},action:`${Ie.Z.API_SERVER}/api/attachments.json`},Hn=()=>{var Yn,tr;return ae.createElement("div",{className:me.Z.imgUpLoad},ae.createElement("img",{src:Ie.Z.API_SERVER+"/api/attachments/"+((tr=(Yn=Jt==null?void 0:Jt[0])==null?void 0:Yn.response)==null?void 0:tr.id),alt:"avatar",style:{width:"100%"}}),ae.createElement("div",null,ae.createElement(st.Z,{onClick:()=>{Rt([]),Ue.setFieldsValue({cover_id:""})},style:{fontSize:"16px",color:"red"}})))};return(0,ae.useEffect)(()=>{ht.open&&Ue.getFieldValue("cover_id")&&Ue.getFieldValue("cover")&&Rt([{response:Ue.getFieldValue("cover")}])},[ht.open]),ae.createElement(qe.default,Yt({},ht),ae.createElement(ve.default,{form:Ue,initialValues:{},layout:"vertical",onFinish:Yn=>{je(Yn),Rt([])}},ae.createElement(ve.default.Item,{htmlFor:null,name:"name",label:"\u6807\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(ke.default,{placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",maxLength:60,showCount:!0})),ae.createElement(ve.default.Item,{htmlFor:null,name:"desc",label:"\u5185\u5BB9",rules:[{required:!0,message:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9"}]},ae.createElement(Ne.h,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9",scrollId:"",watch:!0,height:192})),ae.createElement(ve.default.Item,{htmlFor:null,label:"\u9644\u4EF6",name:"attachment_ids",valuePropName:"fileList",getValueFromEvent:Yn=>Array.isArray(Yn)?Yn:Yn==null?void 0:Yn.fileList},ae.createElement(Re.default,Yt({},tn),ae.createElement(Le.Z,{wrap:!1,align:"middle"},ae.createElement(xt.op,{style:{borderRadius:"2px"},icon:ae.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u6587\u4EF6\u4E0A\u4F20"),ae.createElement(xe.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:Yn=>{Yn.preventDefault(),Yn.stopPropagation()}},"1\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B2\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002")))),ae.createElement(ve.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE\u7247"}]},ae.createElement("div",{className:me.Z.upload},(tt=(Ft=Jt==null?void 0:Jt[0])==null?void 0:Ft.response)!=null&&tt.id?Hn():ae.createElement(Re.default,Yt({},yn),ae.createElement(Le.Z,{wrap:!1,align:"middle"},ae.createElement(xt.op,{style:{borderRadius:"2px"},icon:ae.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u56FE\u7247\u4E0A\u4F20"),ae.createElement(xe.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:Yn=>{Yn.preventDefault(),Yn.stopPropagation()}},"\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8282*212\u50CF\u7D20")))))))};en.Z=lt},57838:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Pe}});var ae=se(67294);function Pe(){const[,Re]=ae.useReducer(qe=>qe+1,0);return Re}},9708:function(dn,en,se){"use strict";se.d(en,{F:function(){return ve},Z:function(){return qe}});var ae=se(94184),Pe=se.n(ae);const Re=null;function qe(ke,Le,xe){return Pe()({[`${ke}-status-success`]:Le==="success",[`${ke}-status-warning`]:Le==="warning",[`${ke}-status-error`]:Le==="error",[`${ke}-status-validating`]:Le==="validating",[`${ke}-has-feedback`]:xe})}const ve=(ke,Le)=>Le||ke},88258:function(dn,en,se){"use strict";var ae=se(67294),Pe=se(53124),Re=se(32983);const qe=ve=>{const{componentName:ke}=ve,{getPrefixCls:Le}=(0,ae.useContext)(Pe.E_),xe=Le("empty");switch(ke){case"Table":case"List":return ae.createElement(Re.Z,{image:Re.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(Re.Z,{image:Re.Z.PRESENTED_IMAGE_SIMPLE,className:`${xe}-small`});default:return ae.createElement(Re.Z,null)}};en.Z=qe},72565:function(dn,en,se){"use strict";se.d(en,{Z:function(){return hi}});var ae=se(94184),Pe=se.n(ae),Re=se(1413),qe=se(97685),ve=se(67294),ke=se(73935);function Le(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var xe={};function me(zt,Tt){}function Ie(zt,Tt){}function st(){xe={}}function Ne(zt,Tt,fn){!Tt&&!xe[fn]&&(zt(!1,fn),xe[fn]=!0)}function xt(zt,Tt){Ne(me,zt,Tt)}function pt(zt,Tt){Ne(Ie,zt,Tt)}var ct=null,rt=se(71002),Ee=se(18459);function at(zt,Tt,fn){var Bn=ve.useRef({});return(!("value"in Bn.current)||fn(Bn.current.condition,Tt))&&(Bn.current.value=zt(),Bn.current.condition=Tt),Bn.current.value}function Yt(zt,Tt){typeof zt=="function"?zt(Tt):(0,rt.Z)(zt)==="object"&&zt&&"current"in zt&&(zt.current=Tt)}function Xe(){for(var zt=arguments.length,Tt=new Array(zt),fn=0;fn0&&arguments[0]!==void 0?arguments[0]:{},Tt=zt.mark;return Tt?Tt.startsWith("data-")?Tt:"data-".concat(Tt):tn}function tr(zt){if(zt.attachTo)return zt.attachTo;var Tt=document.querySelector("head");return Tt||document.body}function Qe(zt){return zt==="queue"?"prependQueue":zt?"prepend":"append"}function we(zt){return Array.from((Hn.get(zt)||zt).children).filter(function(Tt){return Tt.tagName==="STYLE"})}function At(zt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Le())return null;var fn=Tt.csp,Bn=Tt.prepend,Qn=document.createElement("style");Qn.setAttribute(yn,Qe(Bn)),fn!=null&&fn.nonce&&(Qn.nonce=fn==null?void 0:fn.nonce),Qn.innerHTML=zt;var Or=tr(Tt),Zr=Or.firstChild;if(Bn){if(Bn==="queue"){var Jr=we(Or).filter(function(ri){return["prepend","prependQueue"].includes(ri.getAttribute(yn))});if(Jr.length)return Or.insertBefore(Qn,Jr[Jr.length-1].nextSibling),Qn}Or.insertBefore(Qn,Zr)}else Or.appendChild(Qn);return Qn}function Mn(zt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=tr(Tt);return we(fn).find(function(Bn){return Bn.getAttribute(Yn(Tt))===zt})}function _t(zt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=Mn(zt,Tt);if(fn){var Bn=tr(Tt);Bn.removeChild(fn)}}function $e(zt,Tt){var fn=Hn.get(zt);if(!fn||!Rt(document,fn)){var Bn=At("",Tt),Qn=Bn.parentNode;Hn.set(zt,Qn),zt.removeChild(Bn)}}function dt(){Hn.clear()}function qt(zt,Tt){var fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Bn=tr(fn);$e(Bn,fn);var Qn=Mn(Tt,fn);if(Qn){var Or,Zr;if((Or=fn.csp)!==null&&Or!==void 0&&Or.nonce&&Qn.nonce!==((Zr=fn.csp)===null||Zr===void 0?void 0:Zr.nonce)){var Jr;Qn.nonce=(Jr=fn.csp)===null||Jr===void 0?void 0:Jr.nonce}return Qn.innerHTML!==zt&&(Qn.innerHTML=zt),Qn}var ri=At(zt,fn);return ri.setAttribute(Yn(fn),Tt),ri}var Xn;function bn(zt){if(typeof document=="undefined")return 0;if(zt||Xn===void 0){var Tt=document.createElement("div");Tt.style.width="100%",Tt.style.height="200px";var fn=document.createElement("div"),Bn=fn.style;Bn.position="absolute",Bn.top="0",Bn.left="0",Bn.pointerEvents="none",Bn.visibility="hidden",Bn.width="200px",Bn.height="150px",Bn.overflow="hidden",fn.appendChild(Tt),document.body.appendChild(fn);var Qn=Tt.offsetWidth;fn.style.overflow="scroll";var Or=Tt.offsetWidth;Qn===Or&&(Or=fn.clientWidth),document.body.removeChild(fn),Xn=Qn-Or}return Xn}function un(zt){var Tt=zt.match(/^(.*)px$/),fn=Number(Tt==null?void 0:Tt[1]);return Number.isNaN(fn)?bn():fn}function nn(zt){if(typeof document=="undefined"||!zt||!(zt instanceof Element))return{width:0,height:0};var Tt=getComputedStyle(zt,"::-webkit-scrollbar"),fn=Tt.width,Bn=Tt.height;return{width:un(fn),height:un(Bn)}}function xn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Pn="rc-util-locker-".concat(Date.now()),De=0;function ue(zt){var Tt=!!zt,fn=ve.useState(function(){return De+=1,"".concat(Pn,"_").concat(De)}),Bn=(0,qe.Z)(fn,1),Qn=Bn[0];ht(function(){if(Tt){var Or=nn(document.body).width,Zr=xn();qt(` html body { overflow-y: hidden; `.concat(Zr?"width: calc(100% - ".concat(Or,"px);"):"",` }`),Qn)}else _t(Qn);return function(){_t(Qn)}},[Tt,Qn])}var ce=!1;function he(zt){return typeof zt=="boolean"&&(ce=zt),ce}var fe=function(Tt){return Tt===!1?!1:!Le()||!Tt?null:typeof Tt=="string"?document.querySelector(Tt):typeof Tt=="function"?Tt():Tt},le=ve.forwardRef(function(zt,Tt){var fn=zt.open,Bn=zt.autoLock,Qn=zt.getContainer,Or=zt.debug,Zr=zt.autoDestroy,Jr=Zr===void 0?!0:Zr,ri=zt.children,qr=ve.useState(fn),fi=(0,qe.Z)(qr,2),Ai=fi[0],jr=fi[1],wi=Ai||fn;ve.useEffect(function(){(Jr||fn)&&jr(fn)},[fn,Jr]);var Di=ve.useState(function(){return fe(Qn)}),Li=(0,qe.Z)(Di,2),Te=Li[0],He=Li[1];ve.useEffect(function(){var Wn=fe(Qn);He(Wn!=null?Wn:null)});var Ke=Jt(wi&&!Te,Or),Ge=(0,qe.Z)(Ke,2),ut=Ge[0],vt=Ge[1],Kt=Te!=null?Te:ut;ue(Bn&&fn&&Le()&&(Kt===ut||Kt===document.body));var vn=null;if(ri&&Se(ri)&&Tt){var kn=ri;vn=kn.ref}var yr=lt(vn,Tt);if(!wi||!Le()||Te===void 0)return null;var Pr=Kt===!1||he(),cr=ri;return Tt&&(cr=ve.cloneElement(ri,{ref:yr})),ve.createElement(je.Provider,{value:vt},Pr?cr:(0,ke.createPortal)(cr,Kt))}),Me=le,Ve=Me;function ft(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ht=ft()?ve.useLayoutEffect:ve.useEffect,Zt=function(Tt,fn){var Bn=ve.useRef(!0);Ht(function(){return Tt(Bn.current)},fn),Ht(function(){return Bn.current=!1,function(){Bn.current=!0}},[])},jt=function(Tt,fn){Zt(function(Bn){if(!Bn)return Tt()},fn)},$t=Zt,Je=ve.createContext(null),Et=ve.createContext({}),Lt=Je,Xt=se(4942),wt=se(87462),Nn=se(62874),et={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(Tt){var fn=Tt.keyCode;if(Tt.altKey&&!Tt.ctrlKey||Tt.metaKey||fn>=et.F1&&fn<=et.F12)return!1;switch(fn){case et.ALT:case et.CAPS_LOCK:case et.CONTEXT_MENU:case et.CTRL:case et.DOWN:case et.END:case et.ESC:case et.HOME:case et.INSERT:case et.LEFT:case et.MAC_FF_META:case et.META:case et.NUMLOCK:case et.NUM_CENTER:case et.PAGE_DOWN:case et.PAGE_UP:case et.PAUSE:case et.PRINT_SCREEN:case et.RIGHT:case et.SHIFT:case et.UP:case et.WIN_KEY:case et.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Tt){if(Tt>=et.ZERO&&Tt<=et.NINE||Tt>=et.NUM_ZERO&&Tt<=et.NUM_MULTIPLY||Tt>=et.A&&Tt<=et.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Tt===0)return!0;switch(Tt){case et.SPACE:case et.QUESTION_MARK:case et.NUM_PLUS:case et.NUM_MINUS:case et.NUM_PERIOD:case et.NUM_DIVISION:case et.SEMICOLON:case et.DASH:case et.EQUALS:case et.COMMA:case et.PERIOD:case et.SLASH:case et.APOSTROPHE:case et.SINGLE_QUOTE:case et.OPEN_SQUARE_BRACKET:case et.BACKSLASH:case et.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},It=et,gn=`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`,hn=`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`,An="".concat(gn," ").concat(hn).split(/[\s\n]+/),Vn="aria-",mr="data-";function ur(zt,Tt){return zt.indexOf(Tt)===0}function dr(zt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fn;Tt===!1?fn={aria:!0,data:!0,attr:!0}:Tt===!0?fn={aria:!0}:fn=(0,Re.Z)({},Tt);var Bn={};return Object.keys(zt).forEach(function(Qn){(fn.aria&&(Qn==="role"||ur(Qn,Vn))||fn.data&&ur(Qn,mr)||fn.attr&&An.includes(Qn))&&(Bn[Qn]=zt[Qn])}),Bn}function Fr(zt){var Tt=React.useRef();Tt.current=zt;var fn=React.useCallback(function(){for(var Bn,Qn=arguments.length,Or=new Array(Qn),Zr=0;Zr3&&arguments[3]!==void 0?arguments[3]:!1;return Tt.length&&Bn&&fn===void 0&&!get(zt,Tt.slice(0,-1))?zt:vr(zt,Tt,fn,Bn)}function Gn(zt){return _typeof(zt)==="object"&&zt!==null&&Object.getPrototypeOf(zt)===Object.prototype}function jn(zt){return Array.isArray(zt)?[]:{}}var nt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function mt(){for(var zt=arguments.length,Tt=new Array(zt),fn=0;fn{const{prefixCls:Tt,title:fn,footer:Bn,extra:Qn,closeIcon:Or,closable:Zr,onClose:Jr,headerStyle:ri,drawerStyle:qr,bodyStyle:fi,footerStyle:Ai,children:jr}=zt,wi=ve.useCallback(Ke=>ve.createElement("button",{type:"button",onClick:Jr,"aria-label":"Close",className:`${Tt}-close`},Ke),[Jr]),[Di,Li]=(0,pn.Z)(Zr,Or,wi,void 0,!0),Te=ve.useMemo(()=>!fn&&!Di?null:ve.createElement("div",{style:ri,className:Pe()(`${Tt}-header`,{[`${Tt}-header-close-only`]:Di&&!fn&&!Qn})},ve.createElement("div",{className:`${Tt}-header-title`},Li,fn&&ve.createElement("div",{className:`${Tt}-title`},fn)),Qn&&ve.createElement("div",{className:`${Tt}-extra`},Qn)),[Di,Li,Qn,ri,Tt,fn]),He=ve.useMemo(()=>{if(!Bn)return null;const Ke=`${Tt}-footer`;return ve.createElement("div",{className:Ke,style:Ai},Bn)},[Bn,Ai,Tt]);return ve.createElement("div",{className:`${Tt}-wrapper-body`,style:qr},Te,ve.createElement("div",{className:`${Tt}-body`,style:fi},jr),He)},Fi=se(4173),Ni=se(67968),Ci=se(45503),Ei=zt=>{const{componentCls:Tt,motionDurationSlow:fn}=zt,Bn={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${fn}`}}};return{[Tt]:{[`${Tt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${fn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Tt}-panel-motion`]:{"&-left":[Bn,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Bn,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Bn,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Bn,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const pi=zt=>{const{componentCls:Tt,zIndexPopup:fn,colorBgMask:Bn,colorBgElevated:Qn,motionDurationSlow:Or,motionDurationMid:Zr,padding:Jr,paddingLG:ri,fontSizeLG:qr,lineHeightLG:fi,lineWidth:Ai,lineType:jr,colorSplit:wi,marginSM:Di,colorIcon:Li,colorIconHover:Te,colorText:He,fontWeightStrong:Ke,footerPaddingBlock:Ge,footerPaddingInline:ut}=zt,vt=`${Tt}-content-wrapper`;return{[Tt]:{position:"fixed",inset:0,zIndex:fn,pointerEvents:"none","&-pure":{position:"relative",background:Qn,[`&${Tt}-left`]:{boxShadow:zt.boxShadowDrawerLeft},[`&${Tt}-right`]:{boxShadow:zt.boxShadowDrawerRight},[`&${Tt}-top`]:{boxShadow:zt.boxShadowDrawerUp},[`&${Tt}-bottom`]:{boxShadow:zt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Tt}-mask`]:{position:"absolute",inset:0,zIndex:fn,background:Bn,pointerEvents:"auto"},[vt]:{position:"absolute",zIndex:fn,maxWidth:"100vw",transition:`all ${Or}`,"&-hidden":{display:"none"}},[`&-left > ${vt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:zt.boxShadowDrawerLeft},[`&-right > ${vt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:zt.boxShadowDrawerRight},[`&-top > ${vt}`]:{top:0,insetInline:0,boxShadow:zt.boxShadowDrawerUp},[`&-bottom > ${vt}`]:{bottom:0,insetInline:0,boxShadow:zt.boxShadowDrawerDown},[`${Tt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Qn,pointerEvents:"auto"},[`${Tt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Tt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Jr}px ${ri}px`,fontSize:qr,lineHeight:fi,borderBottom:`${Ai}px ${jr} ${wi}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Tt}-extra`]:{flex:"none"},[`${Tt}-close`]:{display:"inline-block",marginInlineEnd:Di,color:Li,fontWeight:Ke,fontSize:qr,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Zr}`,textRendering:"auto","&:focus, &:hover":{color:Te,textDecoration:"none"}},[`${Tt}-title`]:{flex:1,margin:0,color:He,fontWeight:zt.fontWeightStrong,fontSize:qr,lineHeight:fi},[`${Tt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ri,overflow:"auto"},[`${Tt}-footer`]:{flexShrink:0,padding:`${Ge}px ${ut}px`,borderTop:`${Ai}px ${jr} ${wi}`},"&-rtl":{direction:"rtl"}}}};var Hi=(0,Ni.Z)("Drawer",zt=>{const Tt=(0,Ci.TS)(zt,{});return[pi(Tt),Ei(Tt)]},zt=>({zIndexPopup:zt.zIndexPopupBase,footerPaddingBlock:zt.paddingXS,footerPaddingInline:zt.padding})),$i=se(16569),ci=function(zt,Tt){var fn={};for(var Bn in zt)Object.prototype.hasOwnProperty.call(zt,Bn)&&Tt.indexOf(Bn)<0&&(fn[Bn]=zt[Bn]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,Bn=Object.getOwnPropertySymbols(zt);Qn{var Tt;const{rootClassName:fn,width:Bn,height:Qn,size:Or="default",mask:Zr=!0,push:Jr=Ji,open:ri,afterOpenChange:qr,onClose:fi,prefixCls:Ai,getContainer:jr,style:wi,className:Di,visible:Li,afterVisibleChange:Te}=zt,He=ci(zt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ke,getPrefixCls:Ge,direction:ut,drawer:vt}=ve.useContext(Un.E_),Kt=Ge("drawer",Ai),[vn,kn]=Hi(Kt),yr=jr===void 0&&Ke?()=>Ke(document.body):jr,Pr=Pe()({"no-mask":!Zr,[`${Kt}-rtl`]:ut==="rtl"},fn,kn),cr=ve.useMemo(()=>Bn!=null?Bn:Or==="large"?736:378,[Bn,Or]),Wn=ve.useMemo(()=>Qn!=null?Qn:Or==="large"?736:378,[Qn,Or]),Fn={motionName:(0,In.m)(Kt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},$n=Ir=>({motionName:(0,In.m)(Kt,`panel-motion-${Ir}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),rr=(0,$i.H)();return vn(ve.createElement(Fi.BR,null,ve.createElement(kr.Ux,{status:!0,override:!0},ve.createElement(Dn,Object.assign({prefixCls:Kt,onClose:fi,maskMotion:Fn,motion:$n},He,{open:ri!=null?ri:Li,mask:Zr,push:Jr,width:cr,height:Wn,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),wi),className:Pe()(vt==null?void 0:vt.className,Di),rootClassName:Pr,getContainer:yr,afterOpenChange:qr!=null?qr:Te,panelRef:rr}),ve.createElement(Qr,Object.assign({prefixCls:Kt},He,{onClose:fi}))))))},na=zt=>{const{prefixCls:Tt,style:fn,className:Bn,placement:Qn="right"}=zt,Or=ci(zt,["prefixCls","style","className","placement"]),{getPrefixCls:Zr}=ve.useContext(Un.E_),Jr=Zr("drawer",Tt),[ri,qr]=Hi(Jr),fi=Pe()(Jr,`${Jr}-pure`,`${Jr}-${Qn}`,qr,Bn);return ri(ve.createElement("div",{className:fi,style:fn},ve.createElement(Qr,Object.assign({prefixCls:Jr},Or))))};ca._InternalPanelDoNotUseOrYouWillBeFired=na;var hi=ca},35874:function(dn,en,se){"use strict";se.d(en,{Z:function(){return fe}});var ae=se(67294),Pe=se(91034),Re=se(94184),qe=se.n(Re),ve=se(87462),ke=se(4942),Le=se(97685),xe=se(45987),me=se(62709),Ie=se(71002),st=se(12060);function Ne(le,Me,Ve){var ft=React.useRef({});return(!("value"in ft.current)||Ve(ft.current.condition,Me))&&(ft.current.value=le(),ft.current.condition=Me),ft.current.value}function xt(le,Me){typeof le=="function"?le(Me):(0,Ie.Z)(le)==="object"&&le&&"current"in le&&(le.current=Me)}function pt(){for(var le=arguments.length,Me=new Array(le),Ve=0;Ve=Ee.F1&&Ve<=Ee.F12)return!1;switch(Ve){case Ee.ALT:case Ee.CAPS_LOCK:case Ee.CONTEXT_MENU:case Ee.CTRL:case Ee.DOWN:case Ee.END:case Ee.ESC:case Ee.HOME:case Ee.INSERT:case Ee.LEFT:case Ee.MAC_FF_META:case Ee.META:case Ee.NUMLOCK:case Ee.NUM_CENTER:case Ee.PAGE_DOWN:case Ee.PAGE_UP:case Ee.PAUSE:case Ee.PRINT_SCREEN:case Ee.RIGHT:case Ee.SHIFT:case Ee.UP:case Ee.WIN_KEY:case Ee.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Me){if(Me>=Ee.ZERO&&Me<=Ee.NINE||Me>=Ee.NUM_ZERO&&Me<=Ee.NUM_MULTIPLY||Me>=Ee.A&&Me<=Ee.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Me===0)return!0;switch(Me){case Ee.SPACE:case Ee.QUESTION_MARK:case Ee.NUM_PLUS:case Ee.NUM_MINUS:case Ee.NUM_PERIOD:case Ee.NUM_DIVISION:case Ee.SEMICOLON:case Ee.DASH:case Ee.EQUALS:case Ee.COMMA:case Ee.PERIOD:case Ee.SLASH:case Ee.APOSTROPHE:case Ee.SINGLE_QUOTE:case Ee.OPEN_SQUARE_BRACKET:case Ee.BACKSLASH:case Ee.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},at=Ee,Yt=function(Me){return+setTimeout(Me,16)},Xe=function(Me){return clearTimeout(Me)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Yt=function(Me){return window.requestAnimationFrame(Me)},Xe=function(Me){return window.cancelAnimationFrame(Me)});var lt=0,Se=new Map;function Ce(le){Se.delete(le)}var je=function(Me){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;lt+=1;var ft=lt;function Ht(Zt){if(Zt===0)Ce(ft),Me();else{var jt=Yt(function(){Ht(Zt-1)});Se.set(ft,jt)}}return Ht(Ve),ft};je.cancel=function(le){var Me=Se.get(le);return Ce(Me),Xe(Me)};var Ue=je,Mt=at.ESC,ht=at.TAB;function Ft(le){var Me=le.visible,Ve=le.triggerRef,ft=le.onVisibleChange,Ht=le.autoFocus,Zt=le.overlayRef,jt=ae.useRef(!1),$t=function(){if(Me){var Xt,wt;(Xt=Ve.current)===null||Xt===void 0||(wt=Xt.focus)===null||wt===void 0||wt.call(Xt),ft==null||ft(!1)}},Je=function(){var Xt;return(Xt=Zt.current)!==null&&Xt!==void 0&&Xt.focus?(Zt.current.focus(),jt.current=!0,!0):!1},Et=function(Xt){switch(Xt.keyCode){case Mt:$t();break;case ht:{var wt=!1;jt.current||(wt=Je()),wt?Xt.preventDefault():$t();break}}};ae.useEffect(function(){return Me?(window.addEventListener("keydown",Et),Ht&&Ue(Je,3),function(){window.removeEventListener("keydown",Et),jt.current=!1}):function(){jt.current=!1}},[Me])}var tt=(0,ae.forwardRef)(function(le,Me){var Ve=le.overlay,ft=le.arrow,Ht=le.prefixCls,Zt=(0,ae.useMemo)(function(){var $t;return typeof Ve=="function"?$t=Ve():$t=Ve,$t},[Ve]),jt=pt(Me,Zt==null?void 0:Zt.ref);return ae.createElement(ae.Fragment,null,ft&&ae.createElement("div",{className:"".concat(Ht,"-arrow")}),ae.cloneElement(Zt,{ref:rt(Zt)?jt:void 0}))}),Jt=tt,Rt={adjustX:1,adjustY:1},yn=[0,0],tn={topLeft:{points:["bl","tl"],overflow:Rt,offset:[0,-4],targetOffset:yn},top:{points:["bc","tc"],overflow:Rt,offset:[0,-4],targetOffset:yn},topRight:{points:["br","tr"],overflow:Rt,offset:[0,-4],targetOffset:yn},bottomLeft:{points:["tl","bl"],overflow:Rt,offset:[0,4],targetOffset:yn},bottom:{points:["tc","bc"],overflow:Rt,offset:[0,4],targetOffset:yn},bottomRight:{points:["tr","br"],overflow:Rt,offset:[0,4],targetOffset:yn}},Hn=tn,Yn=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function tr(le,Me){var Ve,ft=le.arrow,Ht=ft===void 0?!1:ft,Zt=le.prefixCls,jt=Zt===void 0?"rc-dropdown":Zt,$t=le.transitionName,Je=le.animation,Et=le.align,Lt=le.placement,Xt=Lt===void 0?"bottomLeft":Lt,wt=le.placements,Nn=wt===void 0?Hn:wt,et=le.getPopupContainer,It=le.showAction,gn=le.hideAction,hn=le.overlayClassName,An=le.overlayStyle,Vn=le.visible,mr=le.trigger,ur=mr===void 0?["hover"]:mr,dr=le.autoFocus,Fr=le.overlay,nr=le.children,_r=le.onVisibleChange,oi=(0,xe.Z)(le,Yn),Wr=ae.useState(),xi=(0,Le.Z)(Wr,2),ti=xi[0],Ct=xi[1],wn="visible"in le?Vn:ti,Rn=ae.useRef(null),an=ae.useRef(null),vr=ae.useRef(null);ae.useImperativeHandle(Me,function(){return Rn.current});var lr=function(Vt){Ct(Vt),_r==null||_r(Vt)};Ft({visible:wn,triggerRef:vr,onVisibleChange:lr,autoFocus:dr,overlayRef:an});var Gn=function(Vt){var Nt=le.onOverlayClick;Ct(!1),Nt&&Nt(Vt)},jn=function(){return ae.createElement(Jt,{ref:an,overlay:Fr,prefixCls:jt,arrow:Ht})},nt=function(){return typeof Fr=="function"?jn:jn()},mt=function(){var Vt=le.minOverlayWidthMatchTrigger,Nt=le.alignPoint;return"minOverlayWidthMatchTrigger"in le?Vt:!Nt},Bt=function(){var Vt=le.openClassName;return Vt!==void 0?Vt:"".concat(jt,"-open")},rn=ae.cloneElement(nr,{className:qe()((Ve=nr.props)===null||Ve===void 0?void 0:Ve.className,wn&&Bt()),ref:rt(nr)?pt(vr,nr.ref):void 0}),Ze=gn;return!Ze&&ur.indexOf("contextMenu")!==-1&&(Ze=["click"]),ae.createElement(me.Z,(0,ve.Z)({builtinPlacements:Nn},oi,{prefixCls:jt,ref:Rn,popupClassName:qe()(hn,(0,ke.Z)({},"".concat(jt,"-show-arrow"),Ht)),popupStyle:An,action:ur,showAction:It,hideAction:Ze,popupPlacement:Xt,popupAlign:Et,popupTransitionName:$t,popupAnimation:Je,popupVisible:wn,stretch:mt()?"minWidth":"",popup:nt(),onPopupVisibleChange:lr,onPopupClick:Gn,getPopupContainer:et}),rn)}var Qe=ae.forwardRef(tr),we=Qe,At=se(60276),Mn=se(5663),_t=se(10366),$e=se(80636),dt=se(8745),qt=se(96159),Xn=se(53124),bn=se(68508),un=se(76529),nn=se(46605),xn=se(66748);const Pn=null,De=le=>{const{menu:Me,arrow:Ve,prefixCls:ft,children:Ht,trigger:Zt,disabled:jt,dropdownRender:$t,getPopupContainer:Je,overlayClassName:Et,rootClassName:Lt,open:Xt,onOpenChange:wt,visible:Nn,onVisibleChange:et,mouseEnterDelay:It=.15,mouseLeaveDelay:gn=.1,autoAdjustOverflow:hn=!0,placement:An="",overlay:Vn,transitionName:mr}=le,{getPopupContainer:ur,getPrefixCls:dr,direction:Fr}=ae.useContext(Xn.E_),nr=ae.useMemo(()=>{const rn=dr();return mr!==void 0?mr:An.includes("top")?`${rn}-slide-down`:`${rn}-slide-up`},[dr,An,mr]),_r=ae.useMemo(()=>An?An.includes("Center")?An.slice(0,An.indexOf("Center")):An:Fr==="rtl"?"bottomRight":"bottomLeft",[An,Fr]),oi=dr("dropdown",ft),[Wr,xi]=(0,xn.Z)(oi),[,ti]=(0,nn.Z)(),Ct=ae.Children.only(Ht),wn=(0,qt.Tm)(Ct,{className:qe()(`${oi}-trigger`,{[`${oi}-rtl`]:Fr==="rtl"},Ct.props.className),disabled:jt}),Rn=jt?[]:Zt;let an;Rn&&Rn.includes("contextMenu")&&(an=!0);const[vr,lr]=(0,Mn.Z)(!1,{value:Xt!=null?Xt:Nn}),Gn=(0,At.useEvent)(rn=>{wt==null||wt(rn),et==null||et(rn),lr(rn)}),jn=qe()(Et,Lt,xi,{[`${oi}-rtl`]:Fr==="rtl"}),nt=(0,$e.Z)({arrowPointAtCenter:typeof Ve=="object"&&Ve.pointAtCenter,autoAdjustOverflow:hn,offset:ti.marginXXS,arrowWidth:Ve?ti.sizePopupArrow:0,borderRadius:ti.borderRadius}),mt=ae.useCallback(()=>{lr(!1)},[]),Bt=()=>{let rn;return Me!=null&&Me.items?rn=ae.createElement(bn.default,Object.assign({},Me)):typeof Vn=="function"?rn=Vn():rn=Vn,$t&&(rn=$t(rn)),rn=ae.Children.only(typeof rn=="string"?ae.createElement("span",null,rn):rn),ae.createElement(un.J,{prefixCls:`${oi}-menu`,expandIcon:ae.createElement("span",{className:`${oi}-menu-submenu-arrow`},ae.createElement(Pe.Z,{className:`${oi}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:mt,validator:Ze=>{let{mode:St}=Ze}},rn)};return Wr(ae.createElement(we,Object.assign({alignPoint:an},(0,_t.Z)(le,["rootClassName"]),{mouseEnterDelay:It,mouseLeaveDelay:gn,visible:vr,builtinPlacements:nt,arrow:!!Ve,overlayClassName:jn,prefixCls:oi,getPopupContainer:Je||ur,transitionName:nr,trigger:Rn,overlay:Bt,placement:_r,onVisibleChange:Gn}),wn))};function ue(le){return Object.assign(Object.assign({},le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ce=(0,dt.Z)(De,"dropdown",le=>le,ue),he=le=>ae.createElement(ce,Object.assign({},le),ae.createElement("span",null));De._InternalPanelDoNotUseOrYouWillBeFired=he;var fe=De},85418:function(dn,en,se){"use strict";se.d(en,{Z:function(){return ct}});var ae=se(35874),Pe=se(94184),Re=se.n(Pe),qe=se(67294),ve=se(25877),ke=se(71577),Le=se(53124),xe=se(93421),me=se(4173),Ie=se(66748),st=function(rt,Ee){var at={};for(var Yt in rt)Object.prototype.hasOwnProperty.call(rt,Yt)&&Ee.indexOf(Yt)<0&&(at[Yt]=rt[Yt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Yt=Object.getOwnPropertySymbols(rt);Xe{const{getPopupContainer:Ee,getPrefixCls:at,direction:Yt}=qe.useContext(Le.E_),{prefixCls:Xe,type:lt="default",danger:Se,disabled:Ce,loading:je,onClick:Ue,htmlType:Mt,children:ht,className:Ft,menu:tt,arrow:Jt,autoFocus:Rt,overlay:yn,trigger:tn,align:Hn,open:Yn,onOpenChange:tr,placement:Qe,getPopupContainer:we,href:At,icon:Mn=qe.createElement(ve.Z,null),title:_t,buttonsRender:$e=jt=>jt,mouseEnterDelay:dt,mouseLeaveDelay:qt,overlayClassName:Xn,overlayStyle:bn,destroyPopupOnHide:un,dropdownRender:nn}=rt,xn=st(rt,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Pn=at("dropdown",Xe),De=`${Pn}-button`,[ue,ce]=(0,Ie.Z)(Pn),he={menu:tt,arrow:Jt,autoFocus:Rt,align:Hn,disabled:Ce,trigger:Ce?[]:tn,onOpenChange:tr,getPopupContainer:we||Ee,mouseEnterDelay:dt,mouseLeaveDelay:qt,overlayClassName:Xn,overlayStyle:bn,destroyPopupOnHide:un,dropdownRender:nn},{compactSize:fe,compactItemClassnames:le}=(0,me.ri)(Pn,Yt),Me=Re()(De,le,Ft,ce);"overlay"in rt&&(he.overlay=yn),"open"in rt&&(he.open=Yn),"placement"in rt?he.placement=Qe:he.placement=Yt==="rtl"?"bottomLeft":"bottomRight";const Ve=qe.createElement(ke.ZP,{type:lt,danger:Se,disabled:Ce,loading:je,onClick:Ue,htmlType:Mt,href:At,title:_t},ht),ft=qe.createElement(ke.ZP,{type:lt,danger:Se,icon:Mn}),[Ht,Zt]=$e([Ve,ft]);return ue(qe.createElement(xe.Z.Compact,Object.assign({className:Me,size:fe,block:!0},xn),Ht,qe.createElement(ae.Z,Object.assign({},he),Zt)))};Ne.__ANT_BUTTON=!0;var xt=Ne;const pt=ae.Z;pt.Button=xt;var ct=pt},66748:function(dn,en,se){"use strict";se.d(en,{Z:function(){return st}});var ae=se(14747),Pe=se(67771),Re=se(33297),qe=se(50438),ve=se(97414),ke=se(67968),Le=se(45503),me=Ne=>{const{componentCls:xt,menuCls:pt,colorError:ct,colorTextLightSolid:rt}=Ne,Ee=`${pt}-item`;return{[`${xt}, ${xt}-menu-submenu`]:{[`${pt} ${Ee}`]:{[`&${Ee}-danger:not(${Ee}-disabled)`]:{color:ct,"&:hover":{color:rt,backgroundColor:ct}}}}}};const Ie=Ne=>{const{componentCls:xt,menuCls:pt,zIndexPopup:ct,dropdownArrowDistance:rt,sizePopupArrow:Ee,antCls:at,iconCls:Yt,motionDurationMid:Xe,dropdownPaddingVertical:lt,fontSize:Se,dropdownEdgeChildPadding:Ce,colorTextDisabled:je,fontSizeIcon:Ue,controlPaddingHorizontal:Mt,colorBgElevated:ht}=Ne;return[{[xt]:Object.assign(Object.assign({},(0,ae.Wf)(Ne)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ct,display:"block","&::before":{position:"absolute",insetBlock:-rt+Ee/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${at}-btn`]:{[`& > ${Yt}-down, & > ${at}-btn-icon > ${Yt}-down`]:{fontSize:Ue}},[`${xt}-wrap`]:{position:"relative",[`${at}-btn > ${Yt}-down`]:{fontSize:Ue},[`${Yt}-down::before`]:{transition:`transform ${Xe}`}},[`${xt}-wrap-open`]:{[`${Yt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${at}-slide-down-enter${at}-slide-down-enter-active${xt}-placement-bottomLeft, &${at}-slide-down-appear${at}-slide-down-appear-active${xt}-placement-bottomLeft, &${at}-slide-down-enter${at}-slide-down-enter-active${xt}-placement-bottom, &${at}-slide-down-appear${at}-slide-down-appear-active${xt}-placement-bottom, &${at}-slide-down-enter${at}-slide-down-enter-active${xt}-placement-bottomRight, &${at}-slide-down-appear${at}-slide-down-appear-active${xt}-placement-bottomRight`]:{animationName:Pe.fJ},[`&${at}-slide-up-enter${at}-slide-up-enter-active${xt}-placement-topLeft, &${at}-slide-up-appear${at}-slide-up-appear-active${xt}-placement-topLeft, &${at}-slide-up-enter${at}-slide-up-enter-active${xt}-placement-top, &${at}-slide-up-appear${at}-slide-up-appear-active${xt}-placement-top, &${at}-slide-up-enter${at}-slide-up-enter-active${xt}-placement-topRight, &${at}-slide-up-appear${at}-slide-up-appear-active${xt}-placement-topRight`]:{animationName:Pe.Qt},[`&${at}-slide-down-leave${at}-slide-down-leave-active${xt}-placement-bottomLeft, &${at}-slide-down-leave${at}-slide-down-leave-active${xt}-placement-bottom, &${at}-slide-down-leave${at}-slide-down-leave-active${xt}-placement-bottomRight`]:{animationName:Pe.Uw},[`&${at}-slide-up-leave${at}-slide-up-leave-active${xt}-placement-topLeft, &${at}-slide-up-leave${at}-slide-up-leave-active${xt}-placement-top, &${at}-slide-up-leave${at}-slide-up-leave-active${xt}-placement-topRight`]:{animationName:Pe.ly}})},(0,ve.ZP)(Ne,{colorBg:ht,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${xt} ${pt}`]:{position:"relative",margin:0},[`${pt}-submenu-popup`]:{position:"absolute",zIndex:ct,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${xt}, ${xt}-menu-submenu`]:{[pt]:Object.assign(Object.assign({padding:Ce,listStyleType:"none",backgroundColor:ht,backgroundClip:"padding-box",borderRadius:Ne.borderRadiusLG,outline:"none",boxShadow:Ne.boxShadowSecondary},(0,ae.Qy)(Ne)),{[`${pt}-item-group-title`]:{padding:`${lt}px ${Mt}px`,color:Ne.colorTextDescription,transition:`all ${Xe}`},[`${pt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${pt}-item-icon`]:{minWidth:Se,marginInlineEnd:Ne.marginXS,fontSize:Ne.fontSizeSM},[`${pt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${Xe}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${pt}-item, ${pt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${lt}px ${Mt}px`,color:Ne.colorText,fontWeight:"normal",fontSize:Se,lineHeight:Ne.lineHeight,cursor:"pointer",transition:`all ${Xe}`,borderRadius:Ne.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ne.controlItemBgHover}},(0,ae.Qy)(Ne)),{"&-selected":{color:Ne.colorPrimary,backgroundColor:Ne.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ne.controlItemBgActiveHover}},"&-disabled":{color:je,cursor:"not-allowed","&:hover":{color:je,backgroundColor:ht,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ne.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ne.colorSplit},[`${xt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ne.paddingXS,[`${xt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ne.colorTextDescription,fontSize:Ue,fontStyle:"normal"}}}),[`${pt}-item-group-list`]:{margin:`0 ${Ne.marginXS}px`,padding:0,listStyle:"none"},[`${pt}-submenu-title`]:{paddingInlineEnd:Mt+Ne.fontSizeSM},[`${pt}-submenu-vertical`]:{position:"relative"},[`${pt}-submenu${pt}-submenu-disabled ${xt}-menu-submenu-title`]:{[`&, ${xt}-menu-submenu-arrow-icon`]:{color:je,backgroundColor:ht,cursor:"not-allowed"}},[`${pt}-submenu-selected ${xt}-menu-submenu-title`]:{color:Ne.colorPrimary}})}},[(0,Pe.oN)(Ne,"slide-up"),(0,Pe.oN)(Ne,"slide-down"),(0,Re.Fm)(Ne,"move-up"),(0,Re.Fm)(Ne,"move-down"),(0,qe._y)(Ne,"zoom-big")]]};var st=(0,ke.Z)("Dropdown",(Ne,xt)=>{let{rootPrefixCls:pt}=xt;const{marginXXS:ct,sizePopupArrow:rt,controlHeight:Ee,fontSize:at,lineHeight:Yt,paddingXXS:Xe,componentCls:lt,borderRadiusLG:Se}=Ne,Ce=(Ee-at*Yt)/2,{dropdownArrowOffset:je}=(0,ve.fS)({contentRadius:Se}),Ue=(0,Le.TS)(Ne,{menuCls:`${lt}-menu`,rootPrefixCls:pt,dropdownArrowDistance:rt/2+ct,dropdownArrowOffset:je,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:Xe});return[Ie(Ue),me(Ue)]},Ne=>({zIndexPopup:Ne.zIndexPopupBase+50}))},32983:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Xe}});var ae=se(94184),Pe=se.n(ae),Re=se(67294),qe=se(53124),ve=se(10110),ke=se(84780),Le=se(46605),me=()=>{const[,lt]=(0,Le.Z)(),Ce=new ke.C(lt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Re.createElement("svg",{style:Ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Re.createElement("g",{fill:"none",fillRule:"evenodd"},Re.createElement("g",{transform:"translate(24 31.67)"},Re.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Re.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"}),Re.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)"}),Re.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"}),Re.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"})),Re.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"}),Re.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Re.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Re.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},st=()=>{const[,lt]=(0,Le.Z)(),{colorFill:Se,colorFillTertiary:Ce,colorFillQuaternary:je,colorBgContainer:Ue}=lt,{borderColor:Mt,shadowColor:ht,contentColor:Ft}=(0,Re.useMemo)(()=>({borderColor:new ke.C(Se).onBackground(Ue).toHexShortString(),shadowColor:new ke.C(Ce).onBackground(Ue).toHexShortString(),contentColor:new ke.C(je).onBackground(Ue).toHexShortString()}),[Se,Ce,je,Ue]);return Re.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Re.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Re.createElement("ellipse",{fill:ht,cx:"32",cy:"33",rx:"32",ry:"7"}),Re.createElement("g",{fillRule:"nonzero",stroke:Mt},Re.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"}),Re.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:Ft}))))},Ne=se(67968),xt=se(45503);const pt=lt=>{const{componentCls:Se,margin:Ce,marginXS:je,marginXL:Ue,fontSize:Mt,lineHeight:ht}=lt;return{[Se]:{marginInline:je,fontSize:Mt,lineHeight:ht,textAlign:"center",[`${Se}-image`]:{height:lt.emptyImgHeight,marginBottom:je,opacity:lt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Se}-description`]:{color:lt.colorText},[`${Se}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:Ue,color:lt.colorTextDisabled,[`${Se}-description`]:{color:lt.colorTextDisabled},[`${Se}-image`]:{height:lt.emptyImgHeightMD}},"&-small":{marginBlock:je,color:lt.colorTextDisabled,[`${Se}-image`]:{height:lt.emptyImgHeightSM}}}}};var ct=(0,Ne.Z)("Empty",lt=>{const{componentCls:Se,controlHeightLG:Ce}=lt,je=(0,xt.TS)(lt,{emptyImgCls:`${Se}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[pt(je)]}),rt=function(lt,Se){var Ce={};for(var je in lt)Object.prototype.hasOwnProperty.call(lt,je)&&Se.indexOf(je)<0&&(Ce[je]=lt[je]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,je=Object.getOwnPropertySymbols(lt);Ue{var{className:Se,rootClassName:Ce,prefixCls:je,image:Ue=Ee,description:Mt,children:ht,imageStyle:Ft,style:tt}=lt,Jt=rt(lt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Rt,direction:yn,empty:tn}=Re.useContext(qe.E_),Hn=Rt("empty",je),[Yn,tr]=ct(Hn),[Qe]=(0,ve.Z)("Empty"),we=typeof Mt!="undefined"?Mt:Qe==null?void 0:Qe.description,At=typeof we=="string"?we:"empty";let Mn=null;return typeof Ue=="string"?Mn=Re.createElement("img",{alt:At,src:Ue}):Mn=Ue,Yn(Re.createElement("div",Object.assign({className:Pe()(tr,Hn,tn==null?void 0:tn.className,{[`${Hn}-normal`]:Ue===at,[`${Hn}-rtl`]:yn==="rtl"},Se,Ce),style:Object.assign(Object.assign({},tn==null?void 0:tn.style),tt)},Jt),Re.createElement("div",{className:`${Hn}-image`,style:Ft},Mn),we&&Re.createElement("div",{className:`${Hn}-description`},we),ht&&Re.createElement("div",{className:`${Hn}-footer`},ht)))};Yt.PRESENTED_IMAGE_DEFAULT=Ee,Yt.PRESENTED_IMAGE_SIMPLE=at;var Xe=Yt},22150:function(dn,en,se){"use strict";se.d(en,{default:function(){return rn}});var ae=se(74902),Pe=se(94184),Re=se.n(Pe),qe=se(38379),ve=se(67294),ke=se(33603),Le=se(65223);function xe(Ze){const[St,Vt]=ve.useState(Ze);return ve.useEffect(()=>{const Nt=setTimeout(()=>{Vt(Ze)},Ze.length?0:10);return()=>{clearTimeout(Nt)}},[Ze]),St}var me=se(14747),Ie=se(50438),st=se(33507),Ne=se(45503),xt=se(67968),ct=Ze=>{const{componentCls:St}=Ze,Vt=`${St}-show-help`,Nt=`${St}-show-help-item`;return{[Vt]:{transition:`opacity ${Ze.motionDurationSlow} ${Ze.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Nt]:{overflow:"hidden",transition:`height ${Ze.motionDurationSlow} ${Ze.motionEaseInOut}, opacity ${Ze.motionDurationSlow} ${Ze.motionEaseInOut}, transform ${Ze.motionDurationSlow} ${Ze.motionEaseInOut} !important`,[`&${Nt}-appear, &${Nt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Nt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const rt=Ze=>({legend:{display:"block",width:"100%",marginBottom:Ze.marginLG,padding:0,color:Ze.colorTextDescription,fontSize:Ze.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ze.lineWidth}px ${Ze.lineType} ${Ze.colorBorder}`},label:{fontSize:Ze.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 ${Ze.controlOutlineWidth}px ${Ze.controlOutline}`},output:{display:"block",paddingTop:15,color:Ze.colorText,fontSize:Ze.fontSize,lineHeight:Ze.lineHeight}}),Ee=(Ze,St)=>{const{formItemCls:Vt}=Ze;return{[Vt]:{[`${Vt}-label > label`]:{height:St},[`${Vt}-control-input`]:{minHeight:St}}}},at=Ze=>{const{componentCls:St}=Ze;return{[Ze.componentCls]:Object.assign(Object.assign(Object.assign({},(0,me.Wf)(Ze)),rt(Ze)),{[`${St}-text`]:{display:"inline-block",paddingInlineEnd:Ze.paddingSM},"&-small":Object.assign({},Ee(Ze,Ze.controlHeightSM)),"&-large":Object.assign({},Ee(Ze,Ze.controlHeightLG))})}},Yt=Ze=>{const{formItemCls:St,iconCls:Vt,componentCls:Nt,rootPrefixCls:cn,labelRequiredMarkColor:on,labelColor:Kn,labelFontSize:Hr,labelHeight:hr,labelColonMarginInlineStart:or,labelColonMarginInlineEnd:Ar,itemMarginBottom:Lr}=Ze;return{[St]:Object.assign(Object.assign({},(0,me.Wf)(Ze)),{marginBottom:Lr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${cn}-row`]:{display:"none"},"&-has-warning":{[`${St}-split`]:{color:Ze.colorError}},"&-has-error":{[`${St}-split`]:{color:Ze.colorWarning}},[`${St}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ze.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:hr,color:Kn,fontSize:Hr,[`> ${Vt}`]:{fontSize:Ze.fontSize,verticalAlign:"top"},[`&${St}-required:not(${St}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ze.marginXXS,color:on,fontSize:Ze.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Nt}-hide-required-mark &`]:{display:"none"}},[`${St}-optional`]:{display:"inline-block",marginInlineStart:Ze.marginXXS,color:Ze.colorTextDescription,[`${Nt}-hide-required-mark &`]:{display:"none"}},[`${St}-tooltip`]:{color:Ze.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ze.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:or,marginInlineEnd:Ar},[`&${St}-no-colon::after`]:{content:'"\\a0"'}}},[`${St}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${cn}-col-'"]):not([class*="' ${cn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ze.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[St]:{"&-explain, &-extra":{clear:"both",color:Ze.colorTextDescription,fontSize:Ze.fontSize,lineHeight:Ze.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ze.controlHeightSM,transition:`color ${Ze.motionDurationMid} ${Ze.motionEaseOut}`},"&-explain":{"&-error":{color:Ze.colorError},"&-warning":{color:Ze.colorWarning}}},[`&-with-help ${St}-explain`]:{height:"auto",opacity:1},[`${St}-feedback-icon`]:{fontSize:Ze.fontSize,textAlign:"center",visibility:"visible",animationName:Ie.kr,animationDuration:Ze.motionDurationMid,animationTimingFunction:Ze.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ze.colorSuccess},"&-error":{color:Ze.colorError},"&-warning":{color:Ze.colorWarning},"&-validating":{color:Ze.colorPrimary}}})}},Xe=Ze=>{const{componentCls:St,formItemCls:Vt}=Ze;return{[`${St}-horizontal`]:{[`${Vt}-label`]:{flexGrow:0},[`${Vt}-control`]:{flex:"1 1 0",minWidth:0},[`${Vt}-label[class$='-24'], ${Vt}-label[class*='-24 ']`]:{[`& + ${Vt}-control`]:{minWidth:"unset"}}}}},lt=Ze=>{const{componentCls:St,formItemCls:Vt}=Ze;return{[`${St}-inline`]:{display:"flex",flexWrap:"wrap",[Vt]:{flex:"none",marginInlineEnd:Ze.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Vt}-label, > ${Vt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Vt}-label`]:{flex:"none"},[`${St}-text`]:{display:"inline-block"},[`${Vt}-has-feedback`]:{display:"inline-block"}}}}},Se=Ze=>({padding:Ze.verticalLabelPadding,margin:Ze.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=Ze=>{const{componentCls:St,formItemCls:Vt,rootPrefixCls:Nt}=Ze;return{[`${Vt} ${Vt}-label`]:Se(Ze),[St]:{[Vt]:{flexWrap:"wrap",[`${Vt}-label, ${Vt}-control`]:{[`&:not([class*=" ${Nt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},je=Ze=>{const{componentCls:St,formItemCls:Vt,rootPrefixCls:Nt}=Ze;return{[`${St}-vertical`]:{[Vt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${St}-item-control`]:{width:"100%"}}},[`${St}-vertical ${Vt}-label, .${Nt}-col-24${Vt}-label, .${Nt}-col-xl-24${Vt}-label`]:Se(Ze),[`@media (max-width: ${Ze.screenXSMax}px)`]:[Ce(Ze),{[St]:{[`.${Nt}-col-xs-24${Vt}-label`]:Se(Ze)}}],[`@media (max-width: ${Ze.screenSMMax}px)`]:{[St]:{[`.${Nt}-col-sm-24${Vt}-label`]:Se(Ze)}},[`@media (max-width: ${Ze.screenMDMax}px)`]:{[St]:{[`.${Nt}-col-md-24${Vt}-label`]:Se(Ze)}},[`@media (max-width: ${Ze.screenLGMax}px)`]:{[St]:{[`.${Nt}-col-lg-24${Vt}-label`]:Se(Ze)}}}},Ue=(Ze,St)=>(0,Ne.TS)(Ze,{formItemCls:`${Ze.componentCls}-item`,rootPrefixCls:St});var Mt=(0,xt.Z)("Form",(Ze,St)=>{let{rootPrefixCls:Vt}=St;const Nt=Ue(Ze,Vt);return[at(Nt),Yt(Nt),ct(Nt),Xe(Nt),lt(Nt),je(Nt),(0,st.Z)(Nt),Ie.kr]},Ze=>({labelRequiredMarkColor:Ze.colorError,labelColor:Ze.colorTextHeading,labelFontSize:Ze.fontSize,labelHeight:Ze.controlHeight,labelColonMarginInlineStart:Ze.marginXXS/2,labelColonMarginInlineEnd:Ze.marginXS,itemMarginBottom:Ze.marginLG,verticalLabelPadding:`0 0 ${Ze.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const ht=[];function Ft(Ze,St,Vt){let Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ze=="string"?Ze:`${St}-${Nt}`,error:Ze,errorStatus:Vt}}var Jt=Ze=>{let{help:St,helpStatus:Vt,errors:Nt=ht,warnings:cn=ht,className:on,fieldId:Kn,onVisibleChanged:Hr}=Ze;const{prefixCls:hr}=ve.useContext(Le.Rk),or=`${hr}-item-explain`,[,Ar]=Mt(hr),Lr=(0,ve.useMemo)(()=>(0,ke.Z)(hr),[hr]),kt=xe(Nt),gt=xe(cn),Dt=ve.useMemo(()=>St!=null?[Ft(St,"help",Vt)]:[].concat((0,ae.Z)(kt.map((qn,Cn)=>Ft(qn,"error","error",Cn))),(0,ae.Z)(gt.map((qn,Cn)=>Ft(qn,"warning","warning",Cn)))),[St,Vt,kt,gt]),En={};return Kn&&(En.id=`${Kn}_help`),ve.createElement(qe.default,{motionDeadline:Lr.motionDeadline,motionName:`${hr}-show-help`,visible:!!Dt.length,onVisibleChanged:Hr},qn=>{const{className:Cn,style:Dn}=qn;return ve.createElement("div",Object.assign({},En,{className:Re()(or,Cn,on,Ar),style:Dn,role:"alert"}),ve.createElement(qe.CSSMotionList,Object.assign({keys:Dt},(0,ke.Z)(hr),{motionName:`${hr}-show-help-item`,component:!1}),In=>{const{key:Un,error:kr,errorStatus:pn,className:di,style:Qr}=In;return ve.createElement("div",{key:Un,className:Re()(di,{[`${or}-${pn}`]:pn}),style:Qr},kr)}))})},Rt=se(58083),yn=se(53124),tn=se(98866),Hn=se(97647),Yn=se(98675),tr=se(17423);const Qe=["parentNode"],we="form_item";function At(Ze){return Ze===void 0||Ze===!1?[]:Array.isArray(Ze)?Ze:[Ze]}function Mn(Ze,St){if(!Ze.length)return;const Vt=Ze.join("_");return St?`${St}_${Vt}`:Qe.includes(Vt)?`${we}_${Vt}`:Vt}function _t(Ze,St,Vt,Nt,cn,on){let Kn=Nt;return on!==void 0?Kn=on:Vt.validating?Kn="validating":Ze.length?Kn="error":St.length?Kn="warning":(Vt.touched||cn&&Vt.validated)&&(Kn="success"),Kn}function $e(Ze){return At(Ze).join("_")}function dt(Ze){const[St]=(0,Rt.useForm)(),Vt=ve.useRef({}),Nt=ve.useMemo(()=>Ze!=null?Ze:Object.assign(Object.assign({},St),{__INTERNAL__:{itemRef:cn=>on=>{const Kn=$e(cn);on?Vt.current[Kn]=on:delete Vt.current[Kn]}},scrollToField:function(cn){let on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Kn=At(cn),Hr=Mn(Kn,Nt.__INTERNAL__.name),hr=Hr?document.getElementById(Hr):null;hr&&(0,tr.Z)(hr,Object.assign({scrollMode:"if-needed",block:"nearest"},on))},getFieldInstance:cn=>{const on=$e(cn);return Vt.current[on]}}),[Ze,St]);return[Nt]}var qt=se(37920),Xn=function(Ze,St){var Vt={};for(var Nt in Ze)Object.prototype.hasOwnProperty.call(Ze,Nt)&&St.indexOf(Nt)<0&&(Vt[Nt]=Ze[Nt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Nt=Object.getOwnPropertySymbols(Ze);cn{const Vt=ve.useContext(tn.Z),{getPrefixCls:Nt,direction:cn,form:on}=ve.useContext(yn.E_),{prefixCls:Kn,className:Hr,rootClassName:hr,size:or,disabled:Ar=Vt,form:Lr,colon:kt,labelAlign:gt,labelWrap:Dt,labelCol:En,wrapperCol:qn,hideRequiredMark:Cn,layout:Dn="horizontal",scrollToFirstError:In,requiredMark:Un,onFinishFailed:kr,name:pn,style:di,feedbackIcons:Qr}=Ze,Fi=Xn(Ze,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Ni=(0,Yn.Z)(or),Ci=ve.useContext(qt.Z),Qi=(0,ve.useMemo)(()=>Un!==void 0?Un:on&&on.requiredMark!==void 0?on.requiredMark:!Cn,[Cn,Un,on]),Ei=kt!=null?kt:on==null?void 0:on.colon,pi=Nt("form",Kn),[Hi,$i]=Mt(pi),ci=Re()(pi,`${pi}-${Dn}`,{[`${pi}-hide-required-mark`]:Qi===!1,[`${pi}-rtl`]:cn==="rtl",[`${pi}-${Ni}`]:Ni},$i,on==null?void 0:on.className,Hr,hr),[Mi]=dt(Lr),{__INTERNAL__:Ji}=Mi;Ji.name=pn;const ca=(0,ve.useMemo)(()=>({name:pn,labelAlign:gt,labelCol:En,labelWrap:Dt,wrapperCol:qn,vertical:Dn==="vertical",colon:Ei,requiredMark:Qi,itemRef:Ji.itemRef,form:Mi,feedbackIcons:Qr}),[pn,gt,En,qn,Dn,Ei,Qi,Mi,Qr]);ve.useImperativeHandle(St,()=>Mi);const na=(zt,Tt)=>{if(zt){let fn={block:"nearest"};typeof zt=="object"&&(fn=zt),Mi.scrollToField(Tt,fn)}},hi=zt=>{if(kr==null||kr(zt),zt.errorFields.length){const Tt=zt.errorFields[0].name;if(In!==void 0){na(In,Tt);return}on&&on.scrollToFirstError!==void 0&&na(on.scrollToFirstError,Tt)}};return Hi(ve.createElement(tn.n,{disabled:Ar},ve.createElement(Hn.q,{size:Ni},ve.createElement(Le.RV,Object.assign({},{validateMessages:Ci}),ve.createElement(Le.q3.Provider,{value:ca},ve.createElement(Rt.default,Object.assign({id:pn},Fi,{name:pn,onFinishFailed:hi,form:Mi,style:Object.assign(Object.assign({},on==null?void 0:on.style),di),className:ci})))))))};var nn=ve.forwardRef(bn),xn=se(9475),Pn=se(17799),De=se(96159),ue=se(37419);function ce(Ze){if(typeof Ze=="function")return Ze;const St=(0,ue.Z)(Ze);return St.length<=1?St[0]:St}const he=()=>{const{status:Ze,errors:St=[],warnings:Vt=[]}=(0,ve.useContext)(Le.aM);return{status:Ze,errors:St,warnings:Vt}};he.Context=Le.aM;var fe=he,le=se(96523);function Me(Ze){const[St,Vt]=ve.useState(Ze),Nt=(0,ve.useRef)(null),cn=(0,ve.useRef)([]),on=(0,ve.useRef)(!1);ve.useEffect(()=>(on.current=!1,()=>{on.current=!0,le.Z.cancel(Nt.current),Nt.current=null}),[]);function Kn(Hr){on.current||(Nt.current===null&&(cn.current=[],Nt.current=(0,le.Z)(()=>{Nt.current=null,Vt(hr=>{let or=hr;return cn.current.forEach(Ar=>{or=Ar(or)}),or})})),cn.current.push(Hr))}return[St,Kn]}function Ve(){const{itemRef:Ze}=ve.useContext(Le.q3),St=ve.useRef({});function Vt(Nt,cn){const on=cn&&typeof cn=="object"&&cn.ref,Kn=Nt.join("_");return(St.current.name!==Kn||St.current.originRef!==on)&&(St.current.name=Kn,St.current.originRef=on,St.current.ref=(0,Pn.sQ)(Ze(Nt),on)),St.current.ref}return Vt}var ft=se(48130),Ht=se(14075),Zt=se(10366),jt=se(92820),$t=se(21584);const Je=Ze=>{const{formItemCls:St}=Ze;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${St}-control`]:{display:"flex"}}}};var Et=(0,xt.b)(["Form","item-item"],(Ze,St)=>{let{rootPrefixCls:Vt}=St;const Nt=Ue(Ze,Vt);return[Je(Nt)]}),Xt=Ze=>{const{prefixCls:St,status:Vt,wrapperCol:Nt,children:cn,errors:on,warnings:Kn,_internalItemRender:Hr,extra:hr,help:or,fieldId:Ar,marginBottom:Lr,onErrorVisibleChanged:kt}=Ze,gt=`${St}-item`,Dt=ve.useContext(Le.q3),En=Nt||Dt.wrapperCol||{},qn=Re()(`${gt}-control`,En.className),Cn=ve.useMemo(()=>Object.assign({},Dt),[Dt]);delete Cn.labelCol,delete Cn.wrapperCol;const Dn=ve.createElement("div",{className:`${gt}-control-input`},ve.createElement("div",{className:`${gt}-control-input-content`},cn)),In=ve.useMemo(()=>({prefixCls:St,status:Vt}),[St,Vt]),Un=Lr!==null||on.length||Kn.length?ve.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ve.createElement(Le.Rk.Provider,{value:In},ve.createElement(Jt,{fieldId:Ar,errors:on,warnings:Kn,help:or,helpStatus:Vt,className:`${gt}-explain-connected`,onVisibleChanged:kt})),!!Lr&&ve.createElement("div",{style:{width:0,height:Lr}})):null,kr={};Ar&&(kr.id=`${Ar}_extra`);const pn=hr?ve.createElement("div",Object.assign({},kr,{className:`${gt}-extra`}),hr):null,di=Hr&&Hr.mark==="pro_table_render"&&Hr.render?Hr.render(Ze,{input:Dn,errorList:Un,extra:pn}):ve.createElement(ve.Fragment,null,Dn,Un,pn);return ve.createElement(Le.q3.Provider,{value:Cn},ve.createElement($t.Z,Object.assign({},En,{className:qn}),di),ve.createElement(Et,{prefixCls:St}))},wt=se(17663),Nn=se(24457),et=se(10110),It=se(83062),gn=function(Ze,St){var Vt={};for(var Nt in Ze)Object.prototype.hasOwnProperty.call(Ze,Nt)&&St.indexOf(Nt)<0&&(Vt[Nt]=Ze[Nt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Nt=Object.getOwnPropertySymbols(Ze);cn{let{prefixCls:St,label:Vt,htmlFor:Nt,labelCol:cn,labelAlign:on,colon:Kn,required:Hr,requiredMark:hr,tooltip:or}=Ze;var Ar;const[Lr]=(0,et.Z)("Form"),{vertical:kt,labelAlign:gt,labelCol:Dt,labelWrap:En,colon:qn}=ve.useContext(Le.q3);if(!Vt)return null;const Cn=cn||Dt||{},Dn=on||gt,In=`${St}-item-label`,Un=Re()(In,Dn==="left"&&`${In}-left`,Cn.className,{[`${In}-wrap`]:!!En});let kr=Vt;const pn=Kn===!0||qn!==!1&&Kn!==!1;pn&&!kt&&typeof Vt=="string"&&Vt.trim()!==""&&(kr=Vt.replace(/[:|:]\s*$/,""));const Qr=hn(or);if(Qr){const{icon:Qi=ve.createElement(wt.Z,null)}=Qr,Ei=gn(Qr,["icon"]),pi=ve.createElement(It.Z,Object.assign({},Ei),ve.cloneElement(Qi,{className:`${St}-item-tooltip`,title:""}));kr=ve.createElement(ve.Fragment,null,kr,pi)}const Fi=hr==="optional",Ni=typeof hr=="function";Ni?kr=hr(kr,{required:!!Hr}):Fi&&!Hr&&(kr=ve.createElement(ve.Fragment,null,kr,ve.createElement("span",{className:`${St}-item-optional`,title:""},(Lr==null?void 0:Lr.optional)||((Ar=Nn.Z.Form)===null||Ar===void 0?void 0:Ar.optional))));const Ci=Re()({[`${St}-item-required`]:Hr,[`${St}-item-required-mark-optional`]:Fi||Ni,[`${St}-item-no-colon`]:!pn});return ve.createElement($t.Z,Object.assign({},Cn,{className:Un}),ve.createElement("label",{htmlFor:Nt,className:Ci,title:typeof Vt=="string"?Vt:""},kr))},mr=se(87725),ur=se(16646),dr=se(87995),Fr=se(3407);const nr={success:mr.Z,warning:dr.Z,error:ur.Z,validating:Fr.Z};function _r(Ze){let{children:St,errors:Vt,warnings:Nt,hasFeedback:cn,validateStatus:on,prefixCls:Kn,meta:Hr,noStyle:hr}=Ze;const or=`${Kn}-item`,{feedbackIcons:Ar}=ve.useContext(Le.q3),Lr=_t(Vt,Nt,Hr,null,!!cn,on),{isFormItemInput:kt,status:gt}=ve.useContext(Le.aM),Dt=ve.useMemo(()=>{var En;let qn;if(cn){const In=cn!==!0&&cn.icons||Ar,Un=Lr&&((En=In==null?void 0:In({status:Lr,errors:Vt,warnings:Nt}))===null||En===void 0?void 0:En[Lr]),kr=Lr&&nr[Lr];qn=Un!==!1&&kr?ve.createElement("span",{className:Re()(`${or}-feedback-icon`,`${or}-feedback-icon-${Lr}`)},Un||ve.createElement(kr,null)):null}let Cn=!0,Dn=Lr||"";return hr&&(Cn=kt,Dn=(Lr!=null?Lr:gt)||""),{status:Dn,errors:Vt,warnings:Nt,hasFeedback:!!cn,feedbackIcon:qn,isFormItemInput:Cn}},[Lr,cn,hr,kt,gt]);return ve.createElement(Le.aM.Provider,{value:Dt},St)}var oi=function(Ze,St){var Vt={};for(var Nt in Ze)Object.prototype.hasOwnProperty.call(Ze,Nt)&&St.indexOf(Nt)<0&&(Vt[Nt]=Ze[Nt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Nt=Object.getOwnPropertySymbols(Ze);cn{if(Qr&&Un.current){const $i=getComputedStyle(Un.current);Ci(parseInt($i.marginBottom,10))}},[Qr,Fi]);const Qi=$i=>{$i||Ci(null)},pi=function(){let $i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ci=$i?kr:or.errors,Mi=$i?pn:or.warnings;return _t(ci,Mi,or,"",!!Ar,hr)}(),Hi=Re()(Dn,Vt,Nt,{[`${Dn}-with-help`]:di||kr.length||pn.length,[`${Dn}-has-feedback`]:pi&&Ar,[`${Dn}-has-success`]:pi==="success",[`${Dn}-has-warning`]:pi==="warning",[`${Dn}-has-error`]:pi==="error",[`${Dn}-is-validating`]:pi==="validating",[`${Dn}-hidden`]:Lr});return ve.createElement("div",{className:Hi,style:cn,ref:Un},ve.createElement(jt.Z,Object.assign({className:`${Dn}-row`},(0,Zt.Z)(Cn,["_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(Vn,Object.assign({htmlFor:gt},Ze,{requiredMark:In,required:Dt!=null?Dt:En,prefixCls:St})),ve.createElement(Xt,Object.assign({},Ze,or,{errors:kr,warnings:pn,prefixCls:St,status:pi,help:on,marginBottom:Ni,onErrorVisibleChanged:Qi}),ve.createElement(Le.qI.Provider,{value:qn},ve.createElement(_r,{prefixCls:St,meta:or,errors:or.errors,warnings:or.warnings,hasFeedback:Ar,validateStatus:pi},kt)))),!!Ni&&ve.createElement("div",{className:`${Dn}-margin-offset`,style:{marginBottom:-Ni}}))}const xi="__SPLIT__",ti=null,Ct=ve.memo(Ze=>{let{children:St}=Ze;return St},(Ze,St)=>Ze.value===St.value&&Ze.update===St.update&&Ze.childProps.length===St.childProps.length&&Ze.childProps.every((Vt,Nt)=>Vt===St.childProps[Nt]));function wn(Ze){return Ze!=null}function Rn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function an(Ze){const{name:St,noStyle:Vt,className:Nt,dependencies:cn,prefixCls:on,shouldUpdate:Kn,rules:Hr,children:hr,required:or,label:Ar,messageVariables:Lr,trigger:kt="onChange",validateTrigger:gt,hidden:Dt,help:En}=Ze,{getPrefixCls:qn}=ve.useContext(yn.E_),{name:Cn}=ve.useContext(Le.q3),Dn=ce(hr),In=typeof Dn=="function",Un=ve.useContext(Le.qI),{validateTrigger:kr}=ve.useContext(Rt.FieldContext),pn=gt!==void 0?gt:kr,di=wn(St),Qr=qn("form",on),[Fi,Ni]=Mt(Qr),Ci=ve.useContext(Rt.ListContext),Qi=ve.useRef(),[Ei,pi]=Me({}),[Hi,$i]=(0,xn.Z)(()=>Rn()),ci=Tt=>{const fn=Ci==null?void 0:Ci.getKey(Tt.name);if($i(Tt.destroy?Rn():Tt,!0),Vt&&En!==!1&&Un){let Bn=Tt.name;if(Tt.destroy)Bn=Qi.current||Bn;else if(fn!==void 0){const[Qn,Or]=fn;Bn=[Qn].concat((0,ae.Z)(Or)),Qi.current=Bn}Un(Tt,Bn)}},Mi=(Tt,fn)=>{pi(Bn=>{const Qn=Object.assign({},Bn),Zr=[].concat((0,ae.Z)(Tt.name.slice(0,-1)),(0,ae.Z)(fn)).join(xi);return Tt.destroy?delete Qn[Zr]:Qn[Zr]=Tt,Qn})},[Ji,ca]=ve.useMemo(()=>{const Tt=(0,ae.Z)(Hi.errors),fn=(0,ae.Z)(Hi.warnings);return Object.values(Ei).forEach(Bn=>{Tt.push.apply(Tt,(0,ae.Z)(Bn.errors||[])),fn.push.apply(fn,(0,ae.Z)(Bn.warnings||[]))}),[Tt,fn]},[Ei,Hi.errors,Hi.warnings]),na=Ve();function hi(Tt,fn,Bn){return Vt&&!Dt?ve.createElement(_r,{prefixCls:Qr,hasFeedback:Ze.hasFeedback,validateStatus:Ze.validateStatus,meta:Hi,errors:Ji,warnings:ca,noStyle:!0},Tt):ve.createElement(Wr,Object.assign({key:"row"},Ze,{className:Re()(Nt,Ni),prefixCls:Qr,fieldId:fn,isRequired:Bn,errors:Ji,warnings:ca,meta:Hi,onSubItemMetaChange:Mi}),Tt)}if(!di&&!In&&!cn)return Fi(hi(Dn));let zt={};return typeof Ar=="string"?zt.label=Ar:St&&(zt.label=String(St)),Lr&&(zt=Object.assign(Object.assign({},zt),Lr)),Fi(ve.createElement(Rt.Field,Object.assign({},Ze,{messageVariables:zt,trigger:kt,validateTrigger:pn,onMetaChange:ci}),(Tt,fn,Bn)=>{const Qn=At(St).length&&fn?fn.name:[],Or=Mn(Qn,Cn),Zr=or!==void 0?or:!!(Hr&&Hr.some(qr=>{if(qr&&typeof qr=="object"&&qr.required&&!qr.warningOnly)return!0;if(typeof qr=="function"){const fi=qr(Bn);return fi&&fi.required&&!fi.warningOnly}return!1})),Jr=Object.assign({},Tt);let ri=null;if(Array.isArray(Dn)&&di)ri=Dn;else if(!(In&&(!(Kn||cn)||di))){if(!(cn&&!In&&!di))if((0,De.l$)(Dn)){const qr=Object.assign(Object.assign({},Dn.props),Jr);if(qr.id||(qr.id=Or),En||Ji.length>0||ca.length>0||Ze.extra){const jr=[];(En||Ji.length>0)&&jr.push(`${Or}_help`),Ze.extra&&jr.push(`${Or}_extra`),qr["aria-describedby"]=jr.join(" ")}Ji.length>0&&(qr["aria-invalid"]="true"),Zr&&(qr["aria-required"]="true"),(0,Pn.Yr)(Dn)&&(qr.ref=na(Qn,Dn)),new Set([].concat((0,ae.Z)(At(kt)),(0,ae.Z)(At(pn)))).forEach(jr=>{qr[jr]=function(){for(var wi,Di,Li,Te,He,Ke=arguments.length,Ge=new Array(Ke),ut=0;ut{var{prefixCls:St,children:Vt}=Ze,Nt=Gn(Ze,["prefixCls","children"]);const{getPrefixCls:cn}=ve.useContext(yn.E_),on=cn("form",St),Kn=ve.useMemo(()=>({prefixCls:on,status:"error"}),[on]);return ve.createElement(Rt.List,Object.assign({},Nt),(Hr,hr,or)=>ve.createElement(Le.Rk.Provider,{value:Kn},Vt(Hr.map(Ar=>Object.assign(Object.assign({},Ar),{fieldKey:Ar.key})),hr,{errors:or.errors,warnings:or.warnings})))};function mt(){const{form:Ze}=(0,ve.useContext)(Le.q3);return Ze}const Bt=nn;Bt.Item=lr,Bt.List=nt,Bt.ErrorList=Jt,Bt.useForm=dt,Bt.useFormInstance=mt,Bt.useWatch=Rt.useWatch,Bt.Provider=Le.RV,Bt.create=()=>{};var rn=Bt},25378:function(dn,en,se){"use strict";var ae=se(67294),Pe=se(14075),Re=se(57838),qe=se(74443);function ve(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Le=(0,ae.useRef)({}),xe=(0,Re.Z)(),me=(0,qe.ZP)();return(0,Pe.Z)(()=>{const Ie=me.subscribe(st=>{Le.current=st,ke&&xe()});return()=>me.unsubscribe(Ie)},[]),Le.current}en.Z=ve},31795:function(dn,en,se){"use strict";se.d(en,{Z:function(){return jn}});var ae=se(42922),Pe=se(53978),Re=se(94184),qe=se.n(Re),ve=se(87462),ke=se(4942),Le=se(71002),xe=se(97685),me=se(45987),Ie=se(15671),st=se(43144);function Ne(){return typeof BigInt=="function"}function xt(nt){return!nt&&nt!==0&&!Number.isNaN(nt)||!String(nt).trim()}function pt(nt){var mt=nt.trim(),Bt=mt.startsWith("-");Bt&&(mt=mt.slice(1)),mt=mt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),mt.startsWith(".")&&(mt="0".concat(mt));var rn=mt||"0",Ze=rn.split("."),St=Ze[0]||"0",Vt=Ze[1]||"0";St==="0"&&Vt==="0"&&(Bt=!1);var Nt=Bt?"-":"";return{negative:Bt,negativeStr:Nt,trimStr:rn,integerStr:St,decimalStr:Vt,fullStr:"".concat(Nt).concat(rn)}}function ct(nt){var mt=String(nt);return!Number.isNaN(Number(mt))&&mt.includes("e")}function rt(nt){var mt=String(nt);if(ct(nt)){var Bt=Number(mt.slice(mt.indexOf("e-")+2)),rn=mt.match(/\.(\d+)/);return rn!=null&&rn[1]&&(Bt+=rn[1].length),Bt}return mt.includes(".")&&at(mt)?mt.length-mt.indexOf(".")-1:0}function Ee(nt){var mt=String(nt);if(ct(nt)){if(nt>Number.MAX_SAFE_INTEGER)return String(Ne()?BigInt(nt).toString():Number.MAX_SAFE_INTEGER);if(nt0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":pt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),nt}(),Xe=function(){function nt(mt){if((0,Ie.Z)(this,nt),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"number",void 0),(0,ke.Z)(this,"empty",void 0),xt(mt)){this.empty=!0;return}this.origin=String(mt),this.number=Number(mt)}return(0,st.Z)(nt,[{key:"negate",value:function(){return new nt(-this.toNumber())}},{key:"add",value:function(Bt){if(this.isInvalidate())return new nt(Bt);var rn=Number(Bt);if(Number.isNaN(rn))return this;var Ze=this.number+rn;if(Ze>Number.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(ZeNumber.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(Ze0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":Ee(this.number):this.origin}}]),nt}();function lt(nt){return Ne()?new Yt(nt):new Xe(nt)}function Se(nt,mt,Bt){var rn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(nt==="")return"";var Ze=pt(nt),St=Ze.negativeStr,Vt=Ze.integerStr,Nt=Ze.decimalStr,cn="".concat(mt).concat(Nt),on="".concat(St).concat(Vt);if(Bt>=0){var Kn=Number(Nt[Bt]);if(Kn>=5&&!rn){var Hr=lt(nt).add("".concat(St,"0.").concat("0".repeat(Bt)).concat(10-Kn));return Se(Hr.toString(),mt,Bt,rn)}return Bt===0?on:"".concat(on).concat(mt).concat(Nt.padEnd(Bt,"0").slice(0,Bt))}return cn===".0"?on:"".concat(on).concat(cn)}var Ce=lt,je=se(67656),Ue=se(67294);function Mt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ht=Mt()?Ue.useLayoutEffect:Ue.useEffect,Ft=function(mt,Bt){var rn=Ue.useRef(!0);ht(function(){return mt(rn.current)},Bt),ht(function(){return rn.current=!1,function(){rn.current=!0}},[])},tt=function(mt,Bt){Ft(function(rn){if(!rn)return mt()},Bt)},Jt=Ft,Rt=se(27183);function yn(nt,mt,Bt){var rn=React.useRef({});return(!("value"in rn.current)||Bt(rn.current.condition,mt))&&(rn.current.value=nt(),rn.current.condition=mt),rn.current.value}function tn(nt,mt){typeof nt=="function"?nt(mt):(0,Le.Z)(nt)==="object"&&nt&&"current"in nt&&(nt.current=mt)}function Hn(){for(var nt=arguments.length,mt=new Array(nt),Bt=0;Bt1&&arguments[1]!==void 0?arguments[1]:1;he+=1;var rn=he;function Ze(St){if(St===0)le(rn),mt();else{var Vt=ue(function(){Ze(St-1)});fe.set(rn,Vt)}}return Ze(Bt),rn};Me.cancel=function(nt){var mt=fe.get(nt);return le(mt),ce(mt)};var Ve=Me,ft=200,Ht=600;function Zt(nt){var mt=nt.prefixCls,Bt=nt.upNode,rn=nt.downNode,Ze=nt.upDisabled,St=nt.downDisabled,Vt=nt.onStep,Nt=Ue.useRef(),cn=Ue.useRef([]),on=Ue.useRef();on.current=Vt;var Kn=function(){clearTimeout(Nt.current)},Hr=function(En,qn){En.preventDefault(),Kn(),on.current(qn);function Cn(){on.current(qn),Nt.current=setTimeout(Cn,ft)}Nt.current=setTimeout(Cn,Ht)};Ue.useEffect(function(){return function(){Kn(),cn.current.forEach(function(Dt){return Ve.cancel(Dt)})}},[]);var hr=De();if(hr)return null;var or="".concat(mt,"-handler"),Ar=qe()(or,"".concat(or,"-up"),(0,ke.Z)({},"".concat(or,"-up-disabled"),Ze)),Lr=qe()(or,"".concat(or,"-down"),(0,ke.Z)({},"".concat(or,"-down-disabled"),St)),kt=function(){return cn.current.push(Ve(Kn))},gt={unselectable:"on",role:"button",onMouseUp:kt,onMouseLeave:kt};return Ue.createElement("div",{className:"".concat(or,"-wrap")},Ue.createElement("span",(0,ve.Z)({},gt,{onMouseDown:function(En){Hr(En,!0)},"aria-label":"Increase Value","aria-disabled":Ze,className:Ar}),Bt||Ue.createElement("span",{unselectable:"on",className:"".concat(mt,"-handler-up-inner")})),Ue.createElement("span",(0,ve.Z)({},gt,{onMouseDown:function(En){Hr(En,!1)},"aria-label":"Decrease Value","aria-disabled":St,className:Lr}),rn||Ue.createElement("span",{unselectable:"on",className:"".concat(mt,"-handler-down-inner")})))}function jt(nt){var mt=typeof nt=="number"?Ee(nt):pt(nt).fullStr,Bt=mt.includes(".");return Bt?pt(mt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:nt+"0"}var $t=se(87887),Je=function(){var nt=(0,Ue.useRef)(0),mt=function(){Ve.cancel(nt.current)};return(0,Ue.useEffect)(function(){return mt},[]),function(Bt){mt(),nt.current=Ve(function(){Bt()})}},Et=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Lt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Xt=function(mt,Bt){return mt||Bt.isEmpty()?Bt.toString():Bt.toNumber()},wt=function(mt){var Bt=Ce(mt);return Bt.isInvalidate()?null:Bt},Nn=Ue.forwardRef(function(nt,mt){var Bt,rn=nt.prefixCls,Ze=rn===void 0?"rc-input-number":rn,St=nt.className,Vt=nt.style,Nt=nt.min,cn=nt.max,on=nt.step,Kn=on===void 0?1:on,Hr=nt.defaultValue,hr=nt.value,or=nt.disabled,Ar=nt.readOnly,Lr=nt.upHandler,kt=nt.downHandler,gt=nt.keyboard,Dt=nt.controls,En=Dt===void 0?!0:Dt,qn=nt.classNames,Cn=nt.stringMode,Dn=nt.parser,In=nt.formatter,Un=nt.precision,kr=nt.decimalSeparator,pn=nt.onChange,di=nt.onInput,Qr=nt.onPressEnter,Fi=nt.onStep,Ni=(0,me.Z)(nt,Et),Ci="".concat(Ze,"-input"),Qi=Ue.useRef(null),Ei=Ue.useState(!1),pi=(0,xe.Z)(Ei,2),Hi=pi[0],$i=pi[1],ci=Ue.useRef(!1),Mi=Ue.useRef(!1),Ji=Ue.useRef(!1),ca=Ue.useState(function(){return Ce(hr!=null?hr:Hr)}),na=(0,xe.Z)(ca,2),hi=na[0],zt=na[1];function Tt(gr){hr===void 0&&zt(gr)}var fn=Ue.useCallback(function(gr,fr){if(!fr)return Un>=0?Un:Math.max(rt(gr),rt(Kn))},[Un,Kn]),Bn=Ue.useCallback(function(gr){var fr=String(gr);if(Dn)return Dn(fr);var wr=fr;return kr&&(wr=wr.replace(kr,".")),wr.replace(/[^\w.-]+/g,"")},[Dn,kr]),Qn=Ue.useRef(""),Or=Ue.useCallback(function(gr,fr){if(In)return In(gr,{userTyping:fr,input:String(Qn.current)});var wr=typeof gr=="number"?Ee(gr):gr;if(!fr){var Sr=fn(wr,fr);if(at(wr)&&(kr||Sr>=0)){var Nr=kr||".";wr=Se(wr,Nr,Sr)}}return wr},[In,fn,kr]),Zr=Ue.useState(function(){var gr=Hr!=null?Hr:hr;return hi.isInvalidate()&&["string","number"].includes((0,Le.Z)(gr))?Number.isNaN(gr)?"":gr:Or(hi.toString(),!1)}),Jr=(0,xe.Z)(Zr,2),ri=Jr[0],qr=Jr[1];Qn.current=ri;function fi(gr,fr){qr(Or(gr.isInvalidate()?gr.toString(!1):gr.toString(!fr),fr))}var Ai=Ue.useMemo(function(){return wt(cn)},[cn,Un]),jr=Ue.useMemo(function(){return wt(Nt)},[Nt,Un]),wi=Ue.useMemo(function(){return!Ai||!hi||hi.isInvalidate()?!1:Ai.lessEquals(hi)},[Ai,hi]),Di=Ue.useMemo(function(){return!jr||!hi||hi.isInvalidate()?!1:hi.lessEquals(jr)},[jr,hi]),Li=nn(Qi.current,Hi),Te=(0,xe.Z)(Li,2),He=Te[0],Ke=Te[1],Ge=function(fr){return Ai&&!fr.lessEquals(Ai)?Ai:jr&&!jr.lessEquals(fr)?jr:null},ut=function(fr){return!Ge(fr)},vt=function(fr,wr){var Sr=fr,Nr=ut(Sr)||Sr.isEmpty();if(!Sr.isEmpty()&&!wr&&(Sr=Ge(Sr)||Sr,Nr=!0),!Ar&&!or&&Nr){var Fe=Sr.toString(),We=fn(Fe,wr);return We>=0&&(Sr=Ce(Se(Fe,".",We)),ut(Sr)||(Sr=Ce(Se(Fe,".",We,!0)))),Sr.equals(hi)||(Tt(Sr),pn==null||pn(Sr.isEmpty()?null:Xt(Cn,Sr)),hr===void 0&&fi(Sr,wr)),Sr}return hi},Kt=Je(),vn=function gr(fr){if(He(),Qn.current=fr,qr(fr),!Mi.current){var wr=Bn(fr),Sr=Ce(wr);Sr.isNaN()||vt(Sr,!0)}di==null||di(fr),Kt(function(){var Nr=fr;Dn||(Nr=fr.replace(/。/g,".")),Nr!==fr&&gr(Nr)})},kn=function(){Mi.current=!0},yr=function(){Mi.current=!1,vn(Qi.current.value)},Pr=function(fr){vn(fr.target.value)},cr=function(fr){var wr;if(!(fr&&wi||!fr&&Di)){ci.current=!1;var Sr=Ce(Ji.current?jt(Kn):Kn);fr||(Sr=Sr.negate());var Nr=(hi||Ce(0)).add(Sr.toString()),Fe=vt(Nr,!1);Fi==null||Fi(Xt(Cn,Fe),{offset:Ji.current?jt(Kn):Kn,type:fr?"up":"down"}),(wr=Qi.current)===null||wr===void 0||wr.focus()}},Wn=function(fr){var wr=Ce(Bn(ri)),Sr=wr;wr.isNaN()?Sr=vt(hi,fr):Sr=vt(wr,fr),hr!==void 0?fi(hi,!1):Sr.isNaN()||fi(Sr,!1)},Fn=function(){ci.current=!0},$n=function(fr){var wr=fr.key,Sr=fr.shiftKey;ci.current=!0,Ji.current=Sr,wr==="Enter"&&(Mi.current||(ci.current=!1),Wn(!1),Qr==null||Qr(fr)),gt!==!1&&!Mi.current&&["Up","ArrowUp","Down","ArrowDown"].includes(wr)&&(cr(wr==="Up"||wr==="ArrowUp"),fr.preventDefault())},rr=function(){ci.current=!1,Ji.current=!1},Ir=function(){Wn(!1),$i(!1),ci.current=!1};return tt(function(){hi.isInvalidate()||fi(hi,!1)},[Un]),tt(function(){var gr=Ce(hr);zt(gr);var fr=Ce(Bn(ri));(!gr.equals(fr)||!ci.current||In)&&fi(gr,ci.current)},[hr]),tt(function(){In&&Ke()},[ri]),Ue.createElement("div",{className:qe()(Ze,qn==null?void 0:qn.input,St,(Bt={},(0,ke.Z)(Bt,"".concat(Ze,"-focused"),Hi),(0,ke.Z)(Bt,"".concat(Ze,"-disabled"),or),(0,ke.Z)(Bt,"".concat(Ze,"-readonly"),Ar),(0,ke.Z)(Bt,"".concat(Ze,"-not-a-number"),hi.isNaN()),(0,ke.Z)(Bt,"".concat(Ze,"-out-of-range"),!hi.isInvalidate()&&!ut(hi)),Bt)),style:Vt,onFocus:function(){$i(!0)},onBlur:Ir,onKeyDown:$n,onKeyUp:rr,onCompositionStart:kn,onCompositionEnd:yr,onBeforeInput:Fn},En&&Ue.createElement(Zt,{prefixCls:Ze,upNode:Lr,downNode:kt,upDisabled:wi,downDisabled:Di,onStep:cr}),Ue.createElement("div",{className:"".concat(Ci,"-wrap")},Ue.createElement("input",(0,ve.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Nt,"aria-valuemax":cn,"aria-valuenow":hi.isInvalidate()?null:hi.toString(),step:Kn},Ni,{ref:Hn(Qi,mt),className:Ci,value:ri,onChange:Pr,disabled:or,readOnly:Ar}))))}),et=Ue.forwardRef(function(nt,mt){var Bt=nt.disabled,rn=nt.style,Ze=nt.prefixCls,St=nt.value,Vt=nt.prefix,Nt=nt.suffix,cn=nt.addonBefore,on=nt.addonAfter,Kn=nt.classes,Hr=nt.className,hr=nt.classNames,or=(0,me.Z)(nt,Lt),Ar=Ue.useRef(null),Lr=function(gt){Ar.current&&(0,$t.nH)(Ar.current,gt)};return Ue.createElement(je.BaseInput,{inputElement:Ue.createElement(Nn,(0,ve.Z)({prefixCls:Ze,disabled:Bt,classNames:hr,ref:Hn(Ar,mt)},or)),className:Hr,triggerFocus:Lr,prefixCls:Ze,value:St,disabled:Bt,style:rn,prefix:Vt,suffix:Nt,addonAfter:on,addonBefore:cn,classes:Kn,classNames:hr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});et.displayName="InputNumber";var It=et,gn=It,hn=se(9708),An=se(53124),Vn=se(46735),mr=se(98866),ur=se(98675),dr=se(65223),Fr=se(4173),nr=se(47673),_r=se(14747),oi=se(80110),Wr=se(67968),xi=se(45503);const ti=(nt,mt)=>{let{componentCls:Bt,borderRadiusSM:rn,borderRadiusLG:Ze}=nt;const St=mt==="lg"?Ze:rn;return{[`&-${mt}`]:{[`${Bt}-handler-wrap`]:{borderStartEndRadius:St,borderEndEndRadius:St},[`${Bt}-handler-up`]:{borderStartEndRadius:St},[`${Bt}-handler-down`]:{borderEndEndRadius:St}}}},Ct=nt=>{const{componentCls:mt,lineWidth:Bt,lineType:rn,colorBorder:Ze,borderRadius:St,fontSizeLG:Vt,controlHeightLG:Nt,controlHeightSM:cn,colorError:on,paddingInlineSM:Kn,colorTextDescription:Hr,motionDurationMid:hr,handleHoverColor:or,paddingInline:Ar,paddingBlock:Lr,handleBg:kt,handleActiveBg:gt,colorTextDisabled:Dt,borderRadiusSM:En,borderRadiusLG:qn,controlWidth:Cn,handleVisible:Dn,handleBorderColor:In}=nt;return[{[mt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_r.Wf)(nt)),(0,nr.ik)(nt)),(0,nr.bi)(nt,mt)),{display:"inline-block",width:Cn,margin:0,padding:0,border:`${Bt}px ${rn} ${Ze}`,borderRadius:St,"&-rtl":{direction:"rtl",[`${mt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Vt,borderRadius:qn,[`input${mt}-input`]:{height:Nt-2*Bt}},"&-sm":{padding:0,borderRadius:En,[`input${mt}-input`]:{height:cn-2*Bt,padding:`0 ${Kn}px`}},"&:hover":Object.assign({},(0,nr.pU)(nt)),"&-focused":Object.assign({},(0,nr.M1)(nt)),"&-out-of-range":{[`${mt}-input-wrap`]:{input:{color:on}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,_r.Wf)(nt)),(0,nr.s7)(nt)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${mt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${mt}-group-addon`]:{borderRadius:qn,fontSize:nt.fontSizeLG}},"&-sm":{[`${mt}-group-addon`]:{borderRadius:En}},[`${mt}-wrapper-disabled > ${mt}-group-addon`]:Object.assign({},(0,nr.Xy)(nt))}}),[`&-disabled ${mt}-input`]:{cursor:"not-allowed"},[mt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,_r.Wf)(nt)),{width:"100%",padding:`${Lr}px ${Ar}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:St,outline:0,transition:`all ${hr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,nr.nz)(nt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[mt]:Object.assign(Object.assign(Object.assign({[`&:hover ${mt}-handler-wrap, &-focused ${mt}-handler-wrap`]:{opacity:1},[`${mt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:nt.handleWidth,height:"100%",background:kt,borderStartStartRadius:0,borderStartEndRadius:St,borderEndEndRadius:St,borderEndStartRadius:0,opacity:Dn===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${hr} linear ${hr}`,[`${mt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${mt}-handler-up-inner, ${mt}-handler-down-inner `]:{marginInlineEnd:0,fontSize:nt.handleFontSize}}},[`${mt}-handler`]:{height:"50%",overflow:"hidden",color:Hr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Bt}px ${rn} ${In}`,transition:`all ${hr} linear`,"&:active":{background:gt},"&:hover":{height:"60%",[` ${mt}-handler-up-inner, ${mt}-handler-down-inner `]:{color:or}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,_r.Ro)()),{color:Hr,transition:`all ${hr} linear`,userSelect:"none"})},[`${mt}-handler-up`]:{borderStartEndRadius:St},[`${mt}-handler-down`]:{borderBlockStart:`${Bt}px ${rn} ${In}`,borderEndEndRadius:St}},ti(nt,"lg")),ti(nt,"sm")),{"&-disabled, &-readonly":{[`${mt}-handler-wrap`]:{display:"none"},[`${mt}-input`]:{color:"inherit"}},[` ${mt}-handler-up-disabled, ${mt}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${mt}-handler-up-disabled:hover &-handler-up-inner, ${mt}-handler-down-disabled:hover &-handler-down-inner `]:{color:Dt}})},{[`${mt}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${mt}-handler-down`]:{borderBlockStartWidth:0}}}]},wn=nt=>{const{componentCls:mt,paddingBlock:Bt,paddingInline:rn,inputAffixPadding:Ze,controlWidth:St,borderRadiusLG:Vt,borderRadiusSM:Nt}=nt;return{[`${mt}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,nr.ik)(nt)),(0,nr.bi)(nt,`${mt}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:St,padding:0,paddingInlineStart:rn,"&-lg":{borderRadius:Vt},"&-sm":{borderRadius:Nt},[`&:not(${mt}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,nr.pU)(nt)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${mt}-disabled`]:{background:"transparent"},[`> div${mt}`]:{width:"100%",border:"none",outline:"none",[`&${mt}-focused`]:{boxShadow:"none !important"}},[`input${mt}-input`]:{padding:`${Bt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${mt}-handler-wrap`]:{zIndex:2},[mt]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ze},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:rn,marginInlineStart:Ze}}})}};var Rn=(0,Wr.Z)("InputNumber",nt=>{const mt=(0,xi.TS)(nt,(0,nr.e5)(nt));return[Ct(mt),wn(mt),(0,oi.c)(mt)]},nt=>Object.assign(Object.assign({},(0,nr.TM)(nt)),{controlWidth:90,handleWidth:nt.controlHeightSM-nt.lineWidth*2,handleFontSize:nt.fontSize/2,handleVisible:"auto",handleActiveBg:nt.colorFillAlter,handleBg:nt.colorBgContainer,handleHoverColor:nt.colorPrimary,handleBorderColor:nt.colorBorder})),an=function(nt,mt){var Bt={};for(var rn in nt)Object.prototype.hasOwnProperty.call(nt,rn)&&mt.indexOf(rn)<0&&(Bt[rn]=nt[rn]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,rn=Object.getOwnPropertySymbols(nt);Ze{const{getPrefixCls:Bt,direction:rn}=Ue.useContext(An.E_),Ze=Ue.useRef(null);Ue.useImperativeHandle(mt,()=>Ze.current);const{className:St,rootClassName:Vt,size:Nt,disabled:cn,prefixCls:on,addonBefore:Kn,addonAfter:Hr,prefix:hr,bordered:or=!0,readOnly:Ar,status:Lr,controls:kt}=nt,gt=an(nt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Dt=Bt("input-number",on),[En,qn]=Rn(Dt),{compactSize:Cn,compactItemClassnames:Dn}=(0,Fr.ri)(Dt,rn);let In=Ue.createElement(Pe.Z,{className:`${Dt}-handler-up-inner`}),Un=Ue.createElement(ae.Z,{className:`${Dt}-handler-down-inner`});const kr=typeof kt=="boolean"?kt:void 0;typeof kt=="object"&&(In=typeof kt.upIcon=="undefined"?In:Ue.createElement("span",{className:`${Dt}-handler-up-inner`},kt.upIcon),Un=typeof kt.downIcon=="undefined"?Un:Ue.createElement("span",{className:`${Dt}-handler-down-inner`},kt.downIcon));const{hasFeedback:pn,status:di,isFormItemInput:Qr,feedbackIcon:Fi}=Ue.useContext(dr.aM),Ni=(0,hn.F)(di,Lr),Ci=(0,ur.Z)(ci=>{var Mi;return(Mi=Nt!=null?Nt:Cn)!==null&&Mi!==void 0?Mi:ci}),Qi=Ue.useContext(mr.Z),Ei=cn!=null?cn:Qi,pi=qe()({[`${Dt}-lg`]:Ci==="large",[`${Dt}-sm`]:Ci==="small",[`${Dt}-rtl`]:rn==="rtl",[`${Dt}-borderless`]:!or,[`${Dt}-in-form-item`]:Qr},(0,hn.Z)(Dt,Ni),Dn,qn),Hi=`${Dt}-group`,$i=Ue.createElement(gn,Object.assign({ref:Ze,disabled:Ei,className:qe()(St,Vt),upHandler:In,downHandler:Un,prefixCls:Dt,readOnly:Ar,controls:kr,prefix:hr,suffix:pn&&Fi,addonAfter:Hr&&Ue.createElement(Fr.BR,null,Ue.createElement(dr.Ux,{override:!0,status:!0},Hr)),addonBefore:Kn&&Ue.createElement(Fr.BR,null,Ue.createElement(dr.Ux,{override:!0,status:!0},Kn)),classNames:{input:pi},classes:{affixWrapper:qe()((0,hn.Z)(`${Dt}-affix-wrapper`,Ni,pn),{[`${Dt}-affix-wrapper-sm`]:Ci==="small",[`${Dt}-affix-wrapper-lg`]:Ci==="large",[`${Dt}-affix-wrapper-rtl`]:rn==="rtl",[`${Dt}-affix-wrapper-borderless`]:!or},qn),wrapper:qe()({[`${Hi}-rtl`]:rn==="rtl",[`${Dt}-wrapper-disabled`]:Ei},qn),group:qe()({[`${Dt}-group-wrapper-sm`]:Ci==="small",[`${Dt}-group-wrapper-lg`]:Ci==="large",[`${Dt}-group-wrapper-rtl`]:rn==="rtl"},(0,hn.Z)(`${Dt}-group-wrapper`,Ni,pn),qn)}},gt));return En($i)}),lr=vr,Gn=nt=>Ue.createElement(Vn.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ue.createElement(vr,Object.assign({},nt)));lr._InternalPanelDoNotUseOrYouWillBeFired=Gn;var jn=lr},82586:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Yt},n:function(){return Ee}});var ae=se(16646),Pe=se(94184),Re=se.n(Pe),qe=se(67656),ve=se(17799),ke=se(67294),Le=se(9708),xe=se(53124),me=se(98866),Ie=se(98675),st=se(65223),Ne=se(4173),xt=se(72922),pt=se(47673);function ct(Xe){return!!(Xe.prefix||Xe.suffix||Xe.allowClear)}var rt=function(Xe,lt){var Se={};for(var Ce in Xe)Object.prototype.hasOwnProperty.call(Xe,Ce)&<.indexOf(Ce)<0&&(Se[Ce]=Xe[Ce]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ce=Object.getOwnPropertySymbols(Xe);je{var Se;const{prefixCls:Ce,bordered:je=!0,status:Ue,size:Mt,disabled:ht,onBlur:Ft,onFocus:tt,suffix:Jt,allowClear:Rt,addonAfter:yn,addonBefore:tn,className:Hn,style:Yn,styles:tr,rootClassName:Qe,onChange:we,classNames:At}=Xe,Mn=rt(Xe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:_t,direction:$e,input:dt}=ke.useContext(xe.E_),qt=_t("input",Ce),Xn=(0,ke.useRef)(null),[bn,un]=(0,pt.ZP)(qt),{compactSize:nn,compactItemClassnames:xn}=(0,Ne.ri)(qt,$e),Pn=(0,Ie.Z)(Et=>{var Lt;return(Lt=Mt!=null?Mt:nn)!==null&&Lt!==void 0?Lt:Et}),De=ke.useContext(me.Z),ue=ht!=null?ht:De,{status:ce,hasFeedback:he,feedbackIcon:fe}=(0,ke.useContext)(st.aM),le=(0,Le.F)(ce,Ue),Me=ct(Xe)||!!he,Ve=(0,ke.useRef)(Me);(0,ke.useEffect)(()=>{var Et;Me&&Ve.current,Ve.current=Me},[Me]);const ft=(0,xt.Z)(Xn,!0),Ht=Et=>{ft(),Ft==null||Ft(Et)},Zt=Et=>{ft(),tt==null||tt(Et)},jt=Et=>{ft(),we==null||we(Et)},$t=(he||Jt)&&ke.createElement(ke.Fragment,null,Jt,he&&fe);let Je;return typeof Rt=="object"&&(Rt!=null&&Rt.clearIcon)?Je=Rt:Rt&&(Je={clearIcon:ke.createElement(ae.Z,null)}),bn(ke.createElement(qe.default,Object.assign({ref:(0,ve.sQ)(lt,Xn),prefixCls:qt,autoComplete:dt==null?void 0:dt.autoComplete},Mn,{disabled:ue,onBlur:Ht,onFocus:Zt,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Yn),styles:Object.assign(Object.assign({},dt==null?void 0:dt.styles),tr),suffix:$t,allowClear:Je,className:Re()(Hn,Qe,xn,dt==null?void 0:dt.className),onChange:jt,addonAfter:yn&&ke.createElement(Ne.BR,null,ke.createElement(st.Ux,{override:!0,status:!0},yn)),addonBefore:tn&&ke.createElement(Ne.BR,null,ke.createElement(st.Ux,{override:!0,status:!0},tn)),classNames:Object.assign(Object.assign(Object.assign({},At),dt==null?void 0:dt.classNames),{input:Re()({[`${qt}-sm`]:Pn==="small",[`${qt}-lg`]:Pn==="large",[`${qt}-rtl`]:$e==="rtl",[`${qt}-borderless`]:!je},!Me&&(0,Le.Z)(qt,le),At==null?void 0:At.input,(Se=dt==null?void 0:dt.classNames)===null||Se===void 0?void 0:Se.input,un)}),classes:{affixWrapper:Re()({[`${qt}-affix-wrapper-sm`]:Pn==="small",[`${qt}-affix-wrapper-lg`]:Pn==="large",[`${qt}-affix-wrapper-rtl`]:$e==="rtl",[`${qt}-affix-wrapper-borderless`]:!je},(0,Le.Z)(`${qt}-affix-wrapper`,le,he),un),wrapper:Re()({[`${qt}-group-rtl`]:$e==="rtl"},un),group:Re()({[`${qt}-group-wrapper-sm`]:Pn==="small",[`${qt}-group-wrapper-lg`]:Pn==="large",[`${qt}-group-wrapper-rtl`]:$e==="rtl",[`${qt}-group-wrapper-disabled`]:ue},(0,Le.Z)(`${qt}-group-wrapper`,le,he),un)}})))})},96330:function(dn,en,se){"use strict";var ae=se(16646),Pe=se(94184),Re=se.n(Pe),qe=se(64701),ve=se(67294),ke=se(9708),Le=se(53124),xe=se(98866),me=se(98675),Ie=se(65223),st=se(82586),Ne=se(47673),xt=function(ct,rt){var Ee={};for(var at in ct)Object.prototype.hasOwnProperty.call(ct,at)&&rt.indexOf(at)<0&&(Ee[at]=ct[at]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,at=Object.getOwnPropertySymbols(ct);Yt{const{prefixCls:Ee,bordered:at=!0,size:Yt,disabled:Xe,status:lt,allowClear:Se,showCount:Ce,classNames:je,rootClassName:Ue,className:Mt}=ct,ht=xt(ct,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ft,direction:tt}=ve.useContext(Le.E_),Jt=(0,me.Z)(Yt),Rt=ve.useContext(xe.Z),yn=Xe!=null?Xe:Rt,{status:tn,hasFeedback:Hn,feedbackIcon:Yn}=ve.useContext(Ie.aM),tr=(0,ke.F)(tn,lt),Qe=ve.useRef(null);ve.useImperativeHandle(rt,()=>{var $e;return{resizableTextArea:($e=Qe.current)===null||$e===void 0?void 0:$e.resizableTextArea,focus:dt=>{var qt,Xn;(0,st.n)((Xn=(qt=Qe.current)===null||qt===void 0?void 0:qt.resizableTextArea)===null||Xn===void 0?void 0:Xn.textArea,dt)},blur:()=>{var dt;return(dt=Qe.current)===null||dt===void 0?void 0:dt.blur()}}});const we=Ft("input",Ee);let At;typeof Se=="object"&&(Se!=null&&Se.clearIcon)?At=Se:Se&&(At={clearIcon:ve.createElement(ae.Z,null)});const[Mn,_t]=(0,Ne.ZP)(we);return Mn(ve.createElement(qe.default,Object.assign({},ht,{disabled:yn,allowClear:At,className:Re()(Mt,Ue),classes:{affixWrapper:Re()(`${we}-textarea-affix-wrapper`,{[`${we}-affix-wrapper-rtl`]:tt==="rtl",[`${we}-affix-wrapper-borderless`]:!at,[`${we}-affix-wrapper-sm`]:Jt==="small",[`${we}-affix-wrapper-lg`]:Jt==="large",[`${we}-textarea-show-count`]:Ce},(0,ke.Z)(`${we}-affix-wrapper`,tr),_t)},classNames:Object.assign(Object.assign({},je),{textarea:Re()({[`${we}-borderless`]:!at,[`${we}-sm`]:Jt==="small",[`${we}-lg`]:Jt==="large"},(0,ke.Z)(we,tr),_t,je==null?void 0:je.textarea)}),prefixCls:we,suffix:Hn&&ve.createElement("span",{className:`${we}-textarea-suffix`},Yn),showCount:Ce,ref:Qe})))});en.Z=pt},72922:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Pe}});var ae=se(67294);function Pe(Re,qe){const ve=(0,ae.useRef)([]),ke=()=>{ve.current.push(setTimeout(()=>{var Le,xe,me,Ie;!((Le=Re.current)===null||Le===void 0)&&Le.input&&((xe=Re.current)===null||xe===void 0?void 0:xe.input.getAttribute("type"))==="password"&&(!((me=Re.current)===null||me===void 0)&&me.input.hasAttribute("value"))&&((Ie=Re.current)===null||Ie===void 0||Ie.input.removeAttribute("value"))}))};return(0,ae.useEffect)(()=>(qe&&ke(),()=>ve.current.forEach(Le=>{Le&&clearTimeout(Le)})),[]),ke}},69677:function(dn,en,se){"use strict";se.d(en,{default:function(){return Jt}});var ae=se(94184),Pe=se.n(ae),Re=se(67294),qe=se(53124),ve=se(65223),ke=se(47673),xe=Rt=>{const{getPrefixCls:yn,direction:tn}=(0,Re.useContext)(qe.E_),{prefixCls:Hn,className:Yn}=Rt,tr=yn("input-group",Hn),Qe=yn("input"),[we,At]=(0,ke.ZP)(Qe),Mn=Pe()(tr,{[`${tr}-lg`]:Rt.size==="large",[`${tr}-sm`]:Rt.size==="small",[`${tr}-compact`]:Rt.compact,[`${tr}-rtl`]:tn==="rtl"},At,Yn),_t=(0,Re.useContext)(ve.aM),$e=(0,Re.useMemo)(()=>Object.assign(Object.assign({},_t),{isFormItemInput:!1}),[_t]);return we(Re.createElement("span",{className:Mn,style:Rt.style,onMouseEnter:Rt.onMouseEnter,onMouseLeave:Rt.onMouseLeave,onFocus:Rt.onFocus,onBlur:Rt.onBlur},Re.createElement(ve.aM.Provider,{value:$e},Rt.children)))},me=se(82586),Ie=se(63237),st=se(99569),Ne=se(10366),xt=se(17799),pt=se(72922),ct=function(Rt,yn){var tn={};for(var Hn in Rt)Object.prototype.hasOwnProperty.call(Rt,Hn)&&yn.indexOf(Hn)<0&&(tn[Hn]=Rt[Hn]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,Hn=Object.getOwnPropertySymbols(Rt);YnRt?Re.createElement(st.Z,null):Re.createElement(Ie.Z,null),Ee={click:"onClick",hover:"onMouseOver"};var Yt=Re.forwardRef((Rt,yn)=>{const{visibilityToggle:tn=!0}=Rt,Hn=typeof tn=="object"&&tn.visible!==void 0,[Yn,tr]=(0,Re.useState)(()=>Hn?tn.visible:!1),Qe=(0,Re.useRef)(null);Re.useEffect(()=>{Hn&&tr(tn.visible)},[Hn,tn]);const we=(0,pt.Z)(Qe),At=()=>{const{disabled:ue}=Rt;ue||(Yn&&we(),tr(ce=>{var he;const fe=!ce;return typeof tn=="object"&&((he=tn.onVisibleChange)===null||he===void 0||he.call(tn,fe)),fe}))},Mn=ue=>{const{action:ce="click",iconRender:he=rt}=Rt,fe=Ee[ce]||"",le=he(Yn),Me={[fe]:At,className:`${ue}-icon`,key:"passwordIcon",onMouseDown:Ve=>{Ve.preventDefault()},onMouseUp:Ve=>{Ve.preventDefault()}};return Re.cloneElement(Re.isValidElement(le)?le:Re.createElement("span",null,le),Me)},{className:_t,prefixCls:$e,inputPrefixCls:dt,size:qt}=Rt,Xn=ct(Rt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:bn}=Re.useContext(qe.E_),un=bn("input",dt),nn=bn("input-password",$e),xn=tn&&Mn(nn),Pn=Pe()(nn,_t,{[`${nn}-${qt}`]:!!qt}),De=Object.assign(Object.assign({},(0,Ne.Z)(Xn,["suffix","iconRender","visibilityToggle"])),{type:Yn?"text":"password",className:Pn,prefixCls:un,suffix:xn});return qt&&(De.size=qt),Re.createElement(me.Z,Object.assign({ref:(0,xt.sQ)(yn,Qe)},De))}),Xe=se(72395),lt=se(96159),Se=se(71577),Ce=se(98675),je=se(4173),Ue=function(Rt,yn){var tn={};for(var Hn in Rt)Object.prototype.hasOwnProperty.call(Rt,Hn)&&yn.indexOf(Hn)<0&&(tn[Hn]=Rt[Hn]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,Hn=Object.getOwnPropertySymbols(Rt);Yn{const{prefixCls:tn,inputPrefixCls:Hn,className:Yn,size:tr,suffix:Qe,enterButton:we=!1,addonAfter:At,loading:Mn,disabled:_t,onSearch:$e,onChange:dt,onCompositionStart:qt,onCompositionEnd:Xn}=Rt,bn=Ue(Rt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:un,direction:nn}=Re.useContext(qe.E_),xn=Re.useRef(!1),Pn=un("input-search",tn),De=un("input",Hn),{compactSize:ue}=(0,je.ri)(Pn,nn),ce=(0,Ce.Z)(Xt=>{var wt;return(wt=tr!=null?tr:ue)!==null&&wt!==void 0?wt:Xt}),he=Re.useRef(null),fe=Xt=>{Xt&&Xt.target&&Xt.type==="click"&&$e&&$e(Xt.target.value,Xt,{source:"clear"}),dt&&dt(Xt)},le=Xt=>{var wt;document.activeElement===((wt=he.current)===null||wt===void 0?void 0:wt.input)&&Xt.preventDefault()},Me=Xt=>{var wt,Nn;$e&&$e((Nn=(wt=he.current)===null||wt===void 0?void 0:wt.input)===null||Nn===void 0?void 0:Nn.value,Xt,{source:"input"})},Ve=Xt=>{xn.current||Mn||Me(Xt)},ft=typeof we=="boolean"?Re.createElement(Xe.Z,null):null,Ht=`${Pn}-button`;let Zt;const jt=we||{},$t=jt.type&&jt.type.__ANT_BUTTON===!0;$t||jt.type==="button"?Zt=(0,lt.Tm)(jt,Object.assign({onMouseDown:le,onClick:Xt=>{var wt,Nn;(Nn=(wt=jt==null?void 0:jt.props)===null||wt===void 0?void 0:wt.onClick)===null||Nn===void 0||Nn.call(wt,Xt),Me(Xt)},key:"enterButton"},$t?{className:Ht,size:ce}:{})):Zt=Re.createElement(Se.ZP,{className:Ht,type:we?"primary":void 0,size:ce,disabled:_t,key:"enterButton",onMouseDown:le,onClick:Me,loading:Mn,icon:ft},we),At&&(Zt=[Zt,(0,lt.Tm)(At,{key:"addonAfter"})]);const Je=Pe()(Pn,{[`${Pn}-rtl`]:nn==="rtl",[`${Pn}-${ce}`]:!!ce,[`${Pn}-with-button`]:!!we},Yn),Et=Xt=>{xn.current=!0,qt==null||qt(Xt)},Lt=Xt=>{xn.current=!1,Xn==null||Xn(Xt)};return Re.createElement(me.Z,Object.assign({ref:(0,xt.sQ)(he,yn),onPressEnter:Ve},bn,{size:ce,onCompositionStart:Et,onCompositionEnd:Lt,prefixCls:De,addonAfter:Zt,suffix:Qe,onChange:fe,className:Je,disabled:_t}))}),Ft=se(96330);const tt=me.Z;tt.Group=xe,tt.Search=ht,tt.TextArea=Ft.Z,tt.Password=Yt;var Jt=tt},47673:function(dn,en,se){"use strict";se.d(en,{M1:function(){return Le},TM:function(){return lt},Xy:function(){return xe},bi:function(){return st},e5:function(){return Xe},ik:function(){return Ne},nz:function(){return ve},pU:function(){return ke},s7:function(){return xt},x0:function(){return Ie}});var ae=se(14747),Pe=se(80110),Re=se(45503),qe=se(67968);const ve=Se=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Se,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ke=Se=>({borderColor:Se.hoverBorderColor}),Le=Se=>({borderColor:Se.activeBorderColor,boxShadow:Se.activeShadow,outline:0}),xe=Se=>({color:Se.colorTextDisabled,backgroundColor:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ke((0,Re.TS)(Se,{hoverBorderColor:Se.colorBorder})))}),me=Se=>{const{paddingBlockLG:Ce,fontSizeLG:je,lineHeightLG:Ue,borderRadiusLG:Mt,paddingInlineLG:ht}=Se;return{padding:`${Ce}px ${ht}px`,fontSize:je,lineHeight:Ue,borderRadius:Mt}},Ie=Se=>({padding:`${Se.paddingBlockSM}px ${Se.paddingInlineSM}px`,borderRadius:Se.borderRadiusSM}),st=(Se,Ce)=>{const{componentCls:je,colorError:Ue,colorWarning:Mt,errorActiveShadow:ht,warningActiveShadow:Ft,colorErrorBorderHover:tt,colorWarningBorderHover:Jt}=Se;return{[`&-status-error:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:Ue,"&:hover":{borderColor:tt},"&:focus, &-focused":Object.assign({},Le((0,Re.TS)(Se,{activeBorderColor:Ue,activeShadow:ht}))),[`${je}-prefix, ${je}-suffix`]:{color:Ue}},[`&-status-warning:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:Mt,"&:hover":{borderColor:Jt},"&:focus, &-focused":Object.assign({},Le((0,Re.TS)(Se,{activeBorderColor:Mt,activeShadow:Ft}))),[`${je}-prefix, ${je}-suffix`]:{color:Mt}}}},Ne=Se=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Se.paddingBlock}px ${Se.paddingInline}px`,color:Se.colorText,fontSize:Se.fontSize,lineHeight:Se.lineHeight,backgroundColor:Se.colorBgContainer,backgroundImage:"none",borderWidth:Se.lineWidth,borderStyle:Se.lineType,borderColor:Se.colorBorder,borderRadius:Se.borderRadius,transition:`all ${Se.motionDurationMid}`},ve(Se.colorTextPlaceholder)),{"&:hover":Object.assign({},ke(Se)),"&:focus, &-focused":Object.assign({},Le(Se)),"&-disabled, &[disabled]":Object.assign({},xe(Se)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Se.controlHeight,lineHeight:Se.lineHeight,verticalAlign:"bottom",transition:`all ${Se.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},me(Se)),"&-sm":Object.assign({},Ie(Se)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),xt=Se=>{const{componentCls:Ce,antCls:je}=Se;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Se.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Ce}, &-lg > ${Ce}-group-addon`]:Object.assign({},me(Se)),[`&-sm ${Ce}, &-sm > ${Ce}-group-addon`]:Object.assign({},Ie(Se)),[`&-lg ${je}-select-single ${je}-select-selector`]:{height:Se.controlHeightLG},[`&-sm ${je}-select-single ${je}-select-selector`]:{height:Se.controlHeightSM},[`> ${Ce}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Ce}-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 ${Se.paddingInline}px`,color:Se.colorText,fontWeight:"normal",fontSize:Se.fontSize,textAlign:"center",backgroundColor:Se.colorFillAlter,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadius,transition:`all ${Se.motionDurationSlow}`,lineHeight:1,[`${je}-select`]:{margin:`-${Se.paddingBlock+1}px -${Se.paddingInline}px`,[`&${je}-select-single:not(${je}-select-customize-input)`]:{[`${je}-select-selector`]:{backgroundColor:"inherit",border:`${Se.lineWidth}px ${Se.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${je}-select-selector`]:{color:Se.colorPrimary}}},[`${je}-cascader-picker`]:{margin:`-9px -${Se.paddingInline}px`,backgroundColor:"transparent",[`${je}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Ce}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Ce}-search-with-button &`]:{zIndex:0}}},[`> ${Ce}:first-child, ${Ce}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${je}-select ${je}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}-affix-wrapper`]:{[`&:not(:first-child) ${Ce}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Ce}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}:last-child, ${Ce}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${je}-select ${je}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Ce}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ce}-search &`]:{borderStartStartRadius:Se.borderRadius,borderEndStartRadius:Se.borderRadius}},[`&:not(:first-child), ${Ce}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Ce}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ae.dF)()),{[`${Ce}-group-addon, ${Ce}-group-wrap, > ${Ce}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Se.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${Ce}-affix-wrapper, & > ${Ce}-number-affix-wrapper, & > ${je}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Se.lineWidth,borderInlineEndWidth:Se.lineWidth},[`${Ce}`]:{float:"none"},[`& > ${je}-select > ${je}-select-selector, & > ${je}-select-auto-complete ${Ce}, & > ${je}-cascader-picker ${Ce}, & > ${Ce}-group-wrapper ${Ce}`]:{borderInlineEndWidth:Se.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${je}-select-focused`]:{zIndex:1},[`& > ${je}-select > ${je}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${je}-select:first-child > ${je}-select-selector, & > ${je}-select-auto-complete:first-child ${Ce}, & > ${je}-cascader-picker:first-child ${Ce}`]:{borderStartStartRadius:Se.borderRadius,borderEndStartRadius:Se.borderRadius},[`& > *:last-child, & > ${je}-select:last-child > ${je}-select-selector, & > ${je}-cascader-picker:last-child ${Ce}, & > ${je}-cascader-picker-focused:last-child ${Ce}`]:{borderInlineEndWidth:Se.lineWidth,borderStartEndRadius:Se.borderRadius,borderEndEndRadius:Se.borderRadius},[`& > ${je}-select-auto-complete ${Ce}`]:{verticalAlign:"top"},[`${Ce}-group-wrapper + ${Ce}-group-wrapper`]:{marginInlineStart:-Se.lineWidth,[`${Ce}-affix-wrapper`]:{borderRadius:0}},[`${Ce}-group-wrapper:not(:last-child)`]:{[`&${Ce}-search > ${Ce}-group`]:{[`& > ${Ce}-group-addon > ${Ce}-search-button`]:{borderRadius:0},[`& > ${Ce}`]:{borderStartStartRadius:Se.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Se.borderRadius}}}})}},pt=Se=>{const{componentCls:Ce,controlHeightSM:je,lineWidth:Ue}=Se,ht=(je-Ue*2-16)/2;return{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Se)),Ne(Se)),st(Se,Ce)),{'&[type="color"]':{height:Se.controlHeight,[`&${Ce}-lg`]:{height:Se.controlHeightLG},[`&${Ce}-sm`]:{height:je,paddingTop:ht,paddingBottom:ht}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ct=Se=>{const{componentCls:Ce}=Se;return{[`${Ce}-clear-icon`]:{margin:0,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Se.motionDurationSlow}`,"&:hover":{color:Se.colorTextTertiary},"&:active":{color:Se.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Se.inputAffixPadding}px`}}}},rt=Se=>{const{componentCls:Ce,inputAffixPadding:je,colorTextDescription:Ue,motionDurationSlow:Mt,colorIcon:ht,colorIconHover:Ft,iconCls:tt}=Se;return{[`${Ce}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ne(Se)),{display:"inline-flex",[`&:not(${Ce}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ke(Se)),{zIndex:1,[`${Ce}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Ce}[disabled]`]:{background:"transparent"}},[`> input${Ce}`]:{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"'},[`${Ce}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Se.paddingXS}},"&-show-count-suffix":{color:Ue},"&-show-count-has-suffix":{marginInlineEnd:Se.paddingXXS},"&-prefix":{marginInlineEnd:je},"&-suffix":{marginInlineStart:je}}}),ct(Se)),{[`${tt}${Ce}-password-icon`]:{color:ht,cursor:"pointer",transition:`all ${Mt}`,"&:hover":{color:Ft}}}),st(Se,`${Ce}-affix-wrapper`))}},Ee=Se=>{const{componentCls:Ce,colorError:je,colorWarning:Ue,borderRadiusLG:Mt,borderRadiusSM:ht}=Se;return{[`${Ce}-group`]:Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Se)),xt(Se)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Ce}-group-addon`]:{borderRadius:Mt,fontSize:Se.fontSizeLG}},"&-sm":{[`${Ce}-group-addon`]:{borderRadius:ht}},"&-status-error":{[`${Ce}-group-addon`]:{color:je,borderColor:je}},"&-status-warning":{[`${Ce}-group-addon`]:{color:Ue,borderColor:Ue}},"&-disabled":{[`${Ce}-group-addon`]:Object.assign({},xe(Se))},[`&:not(${Ce}-compact-first-item):not(${Ce}-compact-last-item)${Ce}-compact-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderRadius:0}},[`&:not(${Ce}-compact-last-item)${Ce}-compact-first-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ce}-compact-first-item)${Ce}-compact-last-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},at=Se=>{const{componentCls:Ce,antCls:je}=Se,Ue=`${Ce}-search`;return{[Ue]:{[`${Ce}`]:{"&:hover, &:focus":{borderColor:Se.colorPrimaryHover,[`+ ${Ce}-group-addon ${Ue}-button:not(${je}-btn-primary)`]:{borderInlineStartColor:Se.colorPrimaryHover}}},[`${Ce}-affix-wrapper`]:{borderRadius:0},[`${Ce}-lg`]:{lineHeight:Se.lineHeightLG-2e-4},[`> ${Ce}-group`]:{[`> ${Ce}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ue}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Se.borderRadius,borderEndEndRadius:Se.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ue}-button:not(${je}-btn-primary)`]:{color:Se.colorTextDescription,"&:hover":{color:Se.colorPrimaryHover},"&:active":{color:Se.colorPrimaryActive},[`&${je}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ue}-button`]:{height:Se.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ue}-button`]:{height:Se.controlHeightLG},[`&-small ${Ue}-button`]:{height:Se.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Ce}-compact-item`]:{[`&:not(${Ce}-compact-last-item)`]:{[`${Ce}-group-addon`]:{[`${Ce}-search-button`]:{marginInlineEnd:-Se.lineWidth,borderRadius:0}}},[`&:not(${Ce}-compact-first-item)`]:{[`${Ce},${Ce}-affix-wrapper`]:{borderRadius:0}},[`> ${Ce}-group-addon ${Ce}-search-button, > ${Ce}, ${Ce}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Ce}-affix-wrapper-focused`]:{zIndex:2}}}}},Yt=Se=>{const{componentCls:Ce,paddingLG:je}=Se,Ue=`${Ce}-textarea`;return{[Ue]:{position:"relative","&-show-count":{[`> ${Ce}`]:{height:"100%"},[`${Ce}-data-count`]:{position:"absolute",bottom:-Se.fontSize*Se.lineHeight,insetInlineEnd:0,color:Se.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Ce}`]:{paddingInlineEnd:je}},[`&-affix-wrapper${Ue}-has-feedback`]:{[`${Ce}`]:{paddingInlineEnd:je}},[`&-affix-wrapper${Ce}-affix-wrapper`]:{padding:0,[`> textarea${Ce}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Ce}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ce}-clear-icon`]:{position:"absolute",insetInlineEnd:Se.paddingXS,insetBlockStart:Se.paddingXS},[`${Ue}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Se.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function Xe(Se){return(0,Re.TS)(Se,{inputAffixPadding:Se.paddingXXS})}const lt=Se=>{const{controlHeight:Ce,fontSize:je,lineHeight:Ue,lineWidth:Mt,controlHeightSM:ht,controlHeightLG:Ft,fontSizeLG:tt,lineHeightLG:Jt,paddingSM:Rt,controlPaddingHorizontalSM:yn,controlPaddingHorizontal:tn,colorFillAlter:Hn,colorPrimaryHover:Yn,controlOutlineWidth:tr,controlOutline:Qe,colorErrorOutline:we,colorWarningOutline:At}=Se;return{paddingBlock:Math.max(Math.round((Ce-je*Ue)/2*10)/10-Mt,3),paddingBlockSM:Math.max(Math.round((ht-je*Ue)/2*10)/10-Mt,0),paddingBlockLG:Math.ceil((Ft-tt*Jt)/2*10)/10-Mt,paddingInline:Rt-Mt,paddingInlineSM:yn-Mt,paddingInlineLG:tn-Mt,addonBg:Hn,activeBorderColor:Yn,hoverBorderColor:Yn,activeShadow:`0 0 0 ${tr}px ${Qe}`,errorActiveShadow:`0 0 0 ${tr}px ${we}`,warningActiveShadow:`0 0 0 ${tr}px ${At}`}};en.ZP=(0,qe.Z)("Input",Se=>{const Ce=(0,Re.TS)(Se,Xe(Se));return[pt(Ce),Yt(Ce),rt(Ce),Ee(Ce),at(Ce),(0,Pe.c)(Ce)]},lt)},71322:function(dn,en,se){"use strict";se.d(en,{D:function(){return Yt},Z:function(){return Se}});var ae=se(87462),Pe=se(67294),Re={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"},qe=Re,ve=se(74643),ke=function(je,Ue){return Pe.createElement(ve.Z,(0,ae.Z)({},je,{ref:Ue,icon:qe}))},Le=Pe.forwardRef(ke),xe=se(22751),me=se(91034),Ie=se(94184),st=se.n(Ie),Ne=se(10366),pt=Ce=>!isNaN(parseFloat(Ce))&&isFinite(Ce),ct=se(53124),rt=se(84321),Ee=function(Ce,je){var Ue={};for(var Mt in Ce)Object.prototype.hasOwnProperty.call(Ce,Mt)&&je.indexOf(Mt)<0&&(Ue[Mt]=Ce[Mt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Mt=Object.getOwnPropertySymbols(Ce);ht{let Ce=0;return function(){let je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ce+=1,`${je}${Ce}`}})();var Se=Pe.forwardRef((Ce,je)=>{const{prefixCls:Ue,className:Mt,trigger:ht,children:Ft,defaultCollapsed:tt=!1,theme:Jt="dark",style:Rt={},collapsible:yn=!1,reverseArrow:tn=!1,width:Hn=200,collapsedWidth:Yn=80,zeroWidthTriggerStyle:tr,breakpoint:Qe,onCollapse:we,onBreakpoint:At}=Ce,Mn=Ee(Ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:_t}=(0,Pe.useContext)(rt.Gs),[$e,dt]=(0,Pe.useState)("collapsed"in Ce?Ce.collapsed:tt),[qt,Xn]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in Ce&&dt(Ce.collapsed)},[Ce.collapsed]);const bn=(ue,ce)=>{"collapsed"in Ce||dt(ue),we==null||we(ue,ce)},un=(0,Pe.useRef)();un.current=ue=>{Xn(ue.matches),At==null||At(ue.matches),$e!==ue.matches&&bn(ue.matches,"responsive")},(0,Pe.useEffect)(()=>{function ue(he){return un.current(he)}let ce;if(typeof window!="undefined"){const{matchMedia:he}=window;if(he&&Qe&&Qe in at){ce=he(`(max-width: ${at[Qe]})`);try{ce.addEventListener("change",ue)}catch(fe){ce.addListener(ue)}ue(ce)}}return()=>{try{ce==null||ce.removeEventListener("change",ue)}catch(he){ce==null||ce.removeListener(ue)}}},[Qe]),(0,Pe.useEffect)(()=>{const ue=Xe("ant-sider-");return _t.addSider(ue),()=>_t.removeSider(ue)},[]);const nn=()=>{bn(!$e,"clickTrigger")},{getPrefixCls:xn}=(0,Pe.useContext)(ct.E_),Pn=()=>{const ue=xn("layout-sider",Ue),ce=(0,Ne.Z)(Mn,["collapsed"]),he=$e?Yn:Hn,fe=pt(he)?`${he}px`:String(he),le=parseFloat(String(Yn||0))===0?Pe.createElement("span",{onClick:nn,className:st()(`${ue}-zero-width-trigger`,`${ue}-zero-width-trigger-${tn?"right":"left"}`),style:tr},ht||Pe.createElement(Le,null)):null,ft={expanded:tn?Pe.createElement(me.Z,null):Pe.createElement(xe.Z,null),collapsed:tn?Pe.createElement(xe.Z,null):Pe.createElement(me.Z,null)}[$e?"collapsed":"expanded"],Ht=ht!==null?le||Pe.createElement("div",{className:`${ue}-trigger`,onClick:nn,style:{width:fe}},ht||ft):null,Zt=Object.assign(Object.assign({},Rt),{flex:`0 0 ${fe}`,maxWidth:fe,minWidth:fe,width:fe}),jt=st()(ue,`${ue}-${Jt}`,{[`${ue}-collapsed`]:!!$e,[`${ue}-has-trigger`]:yn&&ht!==null&&!le,[`${ue}-below`]:!!qt,[`${ue}-zero-width`]:parseFloat(fe)===0},Mt);return Pe.createElement("aside",Object.assign({className:jt},ce,{style:Zt,ref:je}),Pe.createElement("div",{className:`${ue}-children`},Ft),yn||qt&&le?Ht:null)},De=Pe.useMemo(()=>({siderCollapsed:$e}),[$e]);return Pe.createElement(Yt.Provider,{value:De},Pn())})},84321:function(dn,en,se){"use strict";se.d(en,{VY:function(){return Xe},$_:function(){return Yt},h4:function(){return at},Gs:function(){return xt},ZP:function(){return lt}});var ae=se(74902),Pe=se(94184),Re=se.n(Pe),qe=se(10366),ve=se(67294),ke=se(53124),Le=se(67968),me=Se=>{const{componentCls:Ce,bodyBg:je,lightSiderBg:Ue,lightTriggerBg:Mt,lightTriggerColor:ht}=Se;return{[`${Ce}-sider-light`]:{background:Ue,[`${Ce}-sider-trigger`]:{color:ht,background:Mt},[`${Ce}-sider-zero-width-trigger`]:{color:ht,background:Mt,border:`1px solid ${je}`,borderInlineStart:0}}}};const Ie=Se=>{const{antCls:Ce,componentCls:je,colorText:Ue,triggerColor:Mt,footerBg:ht,triggerBg:Ft,headerHeight:tt,headerPadding:Jt,headerColor:Rt,footerPadding:yn,triggerHeight:tn,zeroTriggerHeight:Hn,zeroTriggerWidth:Yn,motionDurationMid:tr,motionDurationSlow:Qe,fontSize:we,borderRadius:At,bodyBg:Mn,headerBg:_t,siderBg:$e}=Se;return{[je]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Mn,"&, *":{boxSizing:"border-box"},[`&${je}-has-sider`]:{flexDirection:"row",[`> ${je}, > ${je}-content`]:{width:0}},[`${je}-header, &${je}-footer`]:{flex:"0 0 auto"},[`${je}-sider`]:{position:"relative",minWidth:0,background:$e,transition:`all ${tr}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ce}-menu${Ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:tn},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:tn,color:Mt,lineHeight:`${tn}px`,textAlign:"center",background:Ft,cursor:"pointer",transition:`all ${tr}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:tt,insetInlineEnd:-Yn,zIndex:1,width:Yn,height:Hn,color:Mt,fontSize:Se.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:$e,borderStartStartRadius:0,borderStartEndRadius:At,borderEndEndRadius:At,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:-Yn,borderStartStartRadius:At,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:At}}}}},me(Se)),{"&-rtl":{direction:"rtl"}}),[`${je}-header`]:{height:tt,padding:Jt,color:Rt,lineHeight:`${tt}px`,background:_t,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${je}-footer`]:{padding:yn,color:Ue,fontSize:we,background:ht},[`${je}-content`]:{flex:"auto",minHeight:0}}};var st=(0,Le.Z)("Layout",Se=>[Ie(Se)],Se=>{const{colorBgLayout:Ce,controlHeight:je,controlHeightLG:Ue,colorText:Mt,controlHeightSM:ht,marginXXS:Ft,colorTextLightSolid:tt,colorBgContainer:Jt}=Se,Rt=Ue*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:je*2,headerPadding:`0 ${Rt}px`,headerColor:Mt,footerPadding:`${ht}px ${Rt}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:Ue+Ft*2,triggerBg:"#002140",triggerColor:tt,zeroTriggerWidth:Ue,zeroTriggerHeight:Ue,lightSiderBg:Jt,lightTriggerBg:Jt,lightTriggerColor:Mt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ne=function(Se,Ce){var je={};for(var Ue in Se)Object.prototype.hasOwnProperty.call(Se,Ue)&&Ce.indexOf(Ue)<0&&(je[Ue]=Se[Ue]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ue=Object.getOwnPropertySymbols(Se);Mtnull,removeSider:()=>null}});function pt(Se){let{suffixCls:Ce,tagName:je,displayName:Ue}=Se;return Mt=>ve.forwardRef((Ft,tt)=>ve.createElement(Mt,Object.assign({ref:tt,suffixCls:Ce,tagName:je},Ft)))}const ct=ve.forwardRef((Se,Ce)=>{const{prefixCls:je,suffixCls:Ue,className:Mt,tagName:ht}=Se,Ft=Ne(Se,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:tt}=ve.useContext(ke.E_),Jt=tt("layout",je),[Rt,yn]=st(Jt),tn=Ue?`${Jt}-${Ue}`:Jt;return Rt(ve.createElement(ht,Object.assign({className:Re()(je||tn,Mt,yn),ref:Ce},Ft)))}),rt=ve.forwardRef((Se,Ce)=>{const{direction:je}=ve.useContext(ke.E_),[Ue,Mt]=ve.useState([]),{prefixCls:ht,className:Ft,rootClassName:tt,children:Jt,hasSider:Rt,tagName:yn,style:tn}=Se,Hn=Ne(Se,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Yn=(0,qe.Z)(Hn,["suffixCls"]),{getPrefixCls:tr,layout:Qe}=ve.useContext(ke.E_),we=tr("layout",ht),[At,Mn]=st(we),_t=Re()(we,{[`${we}-has-sider`]:typeof Rt=="boolean"?Rt:Ue.length>0,[`${we}-rtl`]:je==="rtl"},Qe==null?void 0:Qe.className,Ft,tt,Mn),$e=ve.useMemo(()=>({siderHook:{addSider:dt=>{Mt(qt=>[].concat((0,ae.Z)(qt),[dt]))},removeSider:dt=>{Mt(qt=>qt.filter(Xn=>Xn!==dt))}}}),[]);return At(ve.createElement(xt.Provider,{value:$e},ve.createElement(yn,Object.assign({ref:Ce,className:_t,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),tn)},Yn),Jt)))}),Ee=pt({tagName:"div",displayName:"Layout"})(rt),at=pt({suffixCls:"header",tagName:"header",displayName:"Header"})(ct),Yt=pt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ct),Xe=pt({suffixCls:"content",tagName:"main",displayName:"Content"})(ct);var lt=Ee},76529:function(dn,en,se){"use strict";se.d(en,{J:function(){return ke}});var ae=se(67294),Pe=se(4173),Re=se(60276),qe=function(Le,xe){var me={};for(var Ie in Le)Object.prototype.hasOwnProperty.call(Le,Ie)&&xe.indexOf(Ie)<0&&(me[Ie]=Le[Ie]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ie=Object.getOwnPropertySymbols(Le);st{const{children:me}=Le,Ie=qe(Le,["children"]),st=ae.useContext(ve),Ne=ae.useMemo(()=>Object.assign(Object.assign({},st),Ie),[st,Ie.prefixCls,Ie.mode,Ie.selectable]);return ae.createElement(ve.Provider,{value:Ne},ae.createElement(Pe.BR,null,(0,Re.supportNodeRef)(me)?ae.cloneElement(me,{ref:xe}):me))});en.Z=ve},68508:function(dn,en,se){"use strict";se.d(en,{default:function(){return ue}});var ae=se(78595),Pe=se(67294),Re=se(71322),qe=se(94184),ve=se.n(qe),ke=se(53124),Le=function(ce,he){var fe={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(fe[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,le=Object.getOwnPropertySymbols(ce);Me{const{prefixCls:he,className:fe,dashed:le}=ce,Me=Le(ce,["prefixCls","className","dashed"]),{getPrefixCls:Ve}=Pe.useContext(ke.E_),ft=Ve("menu",he),Ht=ve()({[`${ft}-item-divider-dashed`]:!!le},fe);return Pe.createElement(ae.iz,Object.assign({className:Ht},Me))},Ie=se(37419),st=se(10366),Ne=se(83062),xt=se(96159),ct=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ee=ce=>{var he;const{className:fe,children:le,icon:Me,title:Ve,danger:ft}=ce,{prefixCls:Ht,firstLevel:Zt,direction:jt,disableMenuItemTitleTooltip:$t,inlineCollapsed:Je}=Pe.useContext(ct),Et=It=>{const gn=Pe.createElement("span",{className:`${Ht}-title-content`},le);return(!Me||(0,xt.l$)(le)&&le.type==="span")&&le&&It&&Zt&&typeof le=="string"?Pe.createElement("div",{className:`${Ht}-inline-collapsed-noicon`},le.charAt(0)):gn},{siderCollapsed:Lt}=Pe.useContext(Re.D);let Xt=Ve;typeof Ve=="undefined"?Xt=Zt?le:"":Ve===!1&&(Xt="");const wt={title:Xt};!Lt&&!Je&&(wt.title=null,wt.open=!1);const Nn=(0,Ie.Z)(le).length;let et=Pe.createElement(ae.ck,Object.assign({},(0,st.Z)(ce,["title","icon","danger"]),{className:ve()({[`${Ht}-item-danger`]:ft,[`${Ht}-item-only-child`]:(Me?Nn+1:Nn)===1},fe),title:typeof Ve=="string"?Ve:void 0}),(0,xt.Tm)(Me,{className:ve()((0,xt.l$)(Me)?(he=Me.props)===null||he===void 0?void 0:he.className:"",`${Ht}-item-icon`)}),Et(Je));return $t||(et=Pe.createElement(Ne.Z,Object.assign({},wt,{placement:jt==="rtl"?"left":"right",overlayClassName:`${Ht}-inline-collapsed-tooltip`}),et)),et},Yt=ce=>{var he;const{popupClassName:fe,icon:le,title:Me,theme:Ve}=ce,ft=Pe.useContext(ct),{prefixCls:Ht,inlineCollapsed:Zt,theme:jt}=ft,$t=(0,ae.Xl)();let Je;if(!le)Je=Zt&&!$t.length&&Me&&typeof Me=="string"?Pe.createElement("div",{className:`${Ht}-inline-collapsed-noicon`},Me.charAt(0)):Pe.createElement("span",{className:`${Ht}-title-content`},Me);else{const Lt=(0,xt.l$)(Me)&&Me.type==="span";Je=Pe.createElement(Pe.Fragment,null,(0,xt.Tm)(le,{className:ve()((0,xt.l$)(le)?(he=le.props)===null||he===void 0?void 0:he.className:"",`${Ht}-item-icon`)}),Lt?Me:Pe.createElement("span",{className:`${Ht}-title-content`},Me))}const Et=Pe.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]);return Pe.createElement(ct.Provider,{value:Et},Pe.createElement(ae.Wd,Object.assign({},(0,st.Z)(ce,["icon"]),{title:Je,popupClassName:ve()(Ht,fe,`${Ht}-${Ve||jt}`)})))},Xe=se(25877),lt=se(60276),Se=se(33603),Ce=se(76529),je=function(ce,he){var fe={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(fe[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,le=Object.getOwnPropertySymbols(ce);Me{if(he&&typeof he=="object"){const le=he,{label:Me,children:Ve,key:ft,type:Ht}=le,Zt=je(le,["label","children","key","type"]),jt=ft!=null?ft:`tmp-${fe}`;return Ve||Ht==="group"?Ht==="group"?Pe.createElement(ae.BW,Object.assign({key:jt},Zt,{title:Me}),Ue(Ve)):Pe.createElement(Yt,Object.assign({key:jt},Zt,{title:Me}),Ue(Ve)):Ht==="divider"?Pe.createElement(me,Object.assign({key:jt},Zt)):Pe.createElement(Ee,Object.assign({key:jt},Zt),Me)}return null}).filter(he=>he)}function Mt(ce){return Pe.useMemo(()=>ce&&Ue(ce),[ce])}var ht=se(84780),Ft=se(14747),tt=se(33507),Jt=se(67771),Rt=se(50438),yn=se(67968),tn=se(45503),Yn=ce=>{const{componentCls:he,motionDurationSlow:fe,horizontalLineHeight:le,colorSplit:Me,lineWidth:Ve,lineType:ft,itemPaddingInline:Ht}=ce;return{[`${he}-horizontal`]:{lineHeight:le,border:0,borderBottom:`${Ve}px ${ft} ${Me}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ht},[`> ${he}-item:hover, > ${he}-item-active, > ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${fe}`,`background ${fe}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},Qe=ce=>{let{componentCls:he,menuArrowOffset:fe}=ce;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical, ${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${fe})`},"&::after":{transform:`rotate(45deg) translateY(${fe})`}}}}};const we=ce=>Object.assign({},(0,Ft.oN)(ce));var Mn=(ce,he)=>{const{componentCls:fe,itemColor:le,itemSelectedColor:Me,groupTitleColor:Ve,itemBg:ft,subMenuItemBg:Ht,itemSelectedBg:Zt,activeBarHeight:jt,activeBarWidth:$t,activeBarBorderWidth:Je,motionDurationSlow:Et,motionEaseInOut:Lt,motionEaseOut:Xt,itemPaddingInline:wt,motionDurationMid:Nn,itemHoverColor:et,lineType:It,colorSplit:gn,itemDisabledColor:hn,dangerItemColor:An,dangerItemHoverColor:Vn,dangerItemSelectedColor:mr,dangerItemActiveBg:ur,dangerItemSelectedBg:dr,itemHoverBg:Fr,itemActiveBg:nr,menuSubMenuBg:_r,horizontalItemSelectedColor:oi,horizontalItemSelectedBg:Wr,horizontalItemBorderRadius:xi,horizontalItemHoverBg:ti,popupBg:Ct}=ce;return{[`${fe}-${he}, ${fe}-${he} > ${fe}`]:{color:le,background:ft,[`&${fe}-root:focus-visible`]:Object.assign({},we(ce)),[`${fe}-item-group-title`]:{color:Ve},[`${fe}-submenu-selected`]:{[`> ${fe}-submenu-title`]:{color:Me}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{color:`${hn} !important`},[`${fe}-item:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{[`&:hover, > ${fe}-submenu-title:hover`]:{color:et}},[`&:not(${fe}-horizontal)`]:{[`${fe}-item:not(${fe}-item-selected)`]:{"&:hover":{backgroundColor:Fr},"&:active":{backgroundColor:nr}},[`${fe}-submenu-title`]:{"&:hover":{backgroundColor:Fr},"&:active":{backgroundColor:nr}}},[`${fe}-item-danger`]:{color:An,[`&${fe}-item:hover`]:{[`&:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{color:Vn}},[`&${fe}-item:active`]:{background:ur}},[`${fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${fe}-item-selected`]:{color:Me,[`&${fe}-item-danger`]:{color:mr},"a, a:hover":{color:"inherit"}},[`& ${fe}-item-selected`]:{backgroundColor:Zt,[`&${fe}-item-danger`]:{backgroundColor:dr}},[`${fe}-item, ${fe}-submenu-title`]:{[`&:not(${fe}-item-disabled):focus-visible`]:Object.assign({},we(ce))},[`&${fe}-submenu > ${fe}`]:{backgroundColor:_r},[`&${fe}-popup > ${fe}`]:{backgroundColor:Ct},[`&${fe}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${fe}-item, > ${fe}-submenu`]:{top:Je,marginTop:-Je,marginBottom:0,borderRadius:xi,"&::after":{position:"absolute",insetInline:wt,bottom:0,borderBottom:`${jt}px solid transparent`,transition:`border-color ${Et} ${Lt}`,content:'""'},"&:hover, &-active, &-open":{background:ti,"&::after":{borderBottomWidth:jt,borderBottomColor:oi}},"&-selected":{color:oi,backgroundColor:Wr,"&:hover":{backgroundColor:Wr},"&::after":{borderBottomWidth:jt,borderBottomColor:oi}}}}),[`&${fe}-root`]:{[`&${fe}-inline, &${fe}-vertical`]:{borderInlineEnd:`${Je}px ${It} ${gn}`}},[`&${fe}-inline`]:{[`${fe}-sub${fe}-inline`]:{background:Ht},[`${fe}-item, ${fe}-submenu-title`]:Je&&$t?{width:`calc(100% + ${Je}px)`}:{},[`${fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${$t}px solid ${Me}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Nn} ${Xt}`,`opacity ${Nn} ${Xt}`].join(","),content:'""'},[`&${fe}-item-danger`]:{"&::after":{borderInlineEndColor:mr}}},[`${fe}-selected, ${fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Nn} ${Lt}`,`opacity ${Nn} ${Lt}`].join(",")}}}}}};const _t=ce=>{const{componentCls:he,itemHeight:fe,itemMarginInline:le,padding:Me,menuArrowSize:Ve,marginXS:ft,itemMarginBlock:Ht}=ce,Zt=Me+Ve+ft;return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:fe,lineHeight:`${fe}px`,paddingInline:Me,overflow:"hidden",textOverflow:"ellipsis",marginInline:le,marginBlock:Ht,width:`calc(100% - ${le*2}px)`},[`> ${he}-item, > ${he}-submenu > ${he}-submenu-title`]:{height:fe,lineHeight:`${fe}px`},[`${he}-item-group-list ${he}-submenu-title, ${he}-submenu-title`]:{paddingInlineEnd:Zt}}};var dt=ce=>{const{componentCls:he,iconCls:fe,itemHeight:le,colorTextLightSolid:Me,dropdownWidth:Ve,controlHeightLG:ft,motionDurationMid:Ht,motionEaseOut:Zt,paddingXL:jt,itemMarginInline:$t,fontSizeLG:Je,motionDurationSlow:Et,paddingXS:Lt,boxShadowSecondary:Xt,collapsedWidth:wt,collapsedIconSize:Nn}=ce,et={height:le,lineHeight:`${le}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},_t(ce))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},_t(ce)),{boxShadow:Xt})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:Ve,maxHeight:`calc(100vh - ${ft*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Et}`,`background ${Et}`,`padding ${Ht} ${Zt}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:et,[`& ${he}-item-group-title`]:{paddingInlineStart:jt}},[`${he}-item`]:et}},{[`${he}-inline-collapsed`]:{width:wt,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:Je,textAlign:"center"}}},[`> ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title, > ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Je/2}px - ${$t}px)`,textOverflow:"clip",[` ${he}-submenu-arrow, ${he}-submenu-expand-icon `]:{opacity:0},[`${he}-item-icon, ${fe}`]:{margin:0,fontSize:Nn,lineHeight:`${le}px`,"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${fe}`]:{display:"none"},"a, a:hover":{color:Me}},[`${he}-item-group-title`]:Object.assign(Object.assign({},Ft.vS),{paddingInline:Lt})}}]};const qt=ce=>{const{componentCls:he,motionDurationSlow:fe,motionDurationMid:le,motionEaseInOut:Me,motionEaseOut:Ve,iconCls:ft,iconSize:Ht,iconMarginInlineEnd:Zt}=ce;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${fe} ${Me}`].join(","),[`${he}-item-icon, ${ft}`]:{minWidth:Ht,fontSize:Ht,transition:[`font-size ${le} ${Ve}`,`margin ${fe} ${Me}`,`color ${fe}`].join(","),"+ span":{marginInlineStart:Zt,opacity:1,transition:[`opacity ${fe} ${Me}`,`margin ${fe}`,`color ${fe}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,Ft.Ro)()),[`&${he}-item-only-child`]:{[`> ${ft}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Xn=ce=>{const{componentCls:he,motionDurationSlow:fe,motionEaseInOut:le,borderRadius:Me,menuArrowSize:Ve,menuArrowOffset:ft}=ce;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ce.margin,width:Ve,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${fe} ${le}, opacity ${fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ve*.6,height:Ve*.15,backgroundColor:"currentcolor",borderRadius:Me,transition:[`background ${fe} ${le}`,`transform ${fe} ${le}`,`top ${fe} ${le}`,`color ${fe} ${le}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ft})`},"&::after":{transform:`rotate(-45deg) translateY(${ft})`}}}}},bn=ce=>{const{antCls:he,componentCls:fe,fontSize:le,motionDurationSlow:Me,motionDurationMid:Ve,motionEaseInOut:ft,paddingXS:Ht,padding:Zt,colorSplit:jt,lineWidth:$t,zIndexPopup:Je,borderRadiusLG:Et,subMenuItemBorderRadius:Lt,menuArrowSize:Xt,menuArrowOffset:wt,lineType:Nn,menuPanelMaskInset:et,groupTitleLineHeight:It,groupTitleFontSize:gn}=ce;return[{"":{[`${fe}`]:Object.assign(Object.assign({},(0,Ft.dF)()),{"&-hidden":{display:"none"}})},[`${fe}-submenu-hidden`]:{display:"none"}},{[fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(ce)),(0,Ft.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:le,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Me} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${fe}-item`]:{flex:"none"}},[`${fe}-item, ${fe}-submenu, ${fe}-submenu-title`]:{borderRadius:ce.itemBorderRadius},[`${fe}-item-group-title`]:{padding:`${Ht}px ${Zt}px`,fontSize:gn,lineHeight:It,transition:`all ${Me}`},[`&-horizontal ${fe}-submenu`]:{transition:[`border-color ${Me} ${ft}`,`background ${Me} ${ft}`].join(",")},[`${fe}-submenu, ${fe}-submenu-inline`]:{transition:[`border-color ${Me} ${ft}`,`background ${Me} ${ft}`,`padding ${Ve} ${ft}`].join(",")},[`${fe}-submenu ${fe}-sub`]:{cursor:"initial",transition:[`background ${Me} ${ft}`,`padding ${Me} ${ft}`].join(",")},[`${fe}-title-content`]:{transition:`color ${Me}`},[`${fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:jt,borderStyle:Nn,borderWidth:0,borderTopWidth:$t,marginBlock:$t,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qt(ce)),{[`${fe}-item-group`]:{[`${fe}-item-group-list`]:{margin:0,padding:0,[`${fe}-item, ${fe}-submenu-title`]:{paddingInline:`${le*2}px ${Zt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Je,borderRadius:Et,boxShadow:"none",transformOrigin:"0 0",[`&${fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${et}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:et},"\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:ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ce.paddingXS},[`> ${fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Et},qt(ce)),Xn(ce)),{[`${fe}-item, ${fe}-submenu > ${fe}-submenu-title`]:{borderRadius:Lt},[`${fe}-submenu-title::after`]:{transition:`transform ${Me} ${ft}`}})}}),Xn(ce)),{[`&-inline-collapsed ${fe}-submenu-arrow, &-inline ${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${wt})`},"&::after":{transform:`rotate(45deg) translateX(-${wt})`}},[`${fe}-submenu-open${fe}-submenu-inline > ${fe}-submenu-title > ${fe}-submenu-arrow`]:{transform:`translateY(-${Xt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${wt})`},"&::before":{transform:`rotate(45deg) translateX(${wt})`}}})},{[`${he}-layout-header`]:{[fe]:{lineHeight:"inherit"}}}]};var un=(ce,he)=>(0,yn.Z)("Menu",le=>{if(he===!1)return[];const{colorBgElevated:Me,colorPrimary:Ve,colorTextLightSolid:ft,controlHeightLG:Ht,fontSize:Zt,darkItemColor:jt,darkDangerItemColor:$t,darkItemBg:Je,darkSubMenuItemBg:Et,darkItemSelectedColor:Lt,darkItemSelectedBg:Xt,darkDangerItemSelectedBg:wt,darkItemHoverBg:Nn,darkGroupTitleColor:et,darkItemHoverColor:It,darkItemDisabledColor:gn,darkDangerItemHoverColor:hn,darkDangerItemSelectedColor:An,darkDangerItemActiveBg:Vn}=le,mr=Zt/7*5,ur=(0,tn.TS)(le,{menuArrowSize:mr,menuHorizontalHeight:Ht*1.15,menuArrowOffset:`${mr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Me}),dr=(0,tn.TS)(ur,{itemColor:jt,itemHoverColor:It,groupTitleColor:et,itemSelectedColor:Lt,itemBg:Je,popupBg:Je,subMenuItemBg:Et,itemActiveBg:"transparent",itemSelectedBg:Xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Nn,itemDisabledColor:gn,dangerItemColor:$t,dangerItemHoverColor:hn,dangerItemSelectedColor:An,dangerItemActiveBg:Vn,dangerItemSelectedBg:wt,menuSubMenuBg:Et,horizontalItemSelectedColor:ft,horizontalItemSelectedBg:Ve});return[bn(ur),Yn(ur),dt(ur),Mn(ur,"light"),Mn(dr,"dark"),Qe(ur),(0,tt.Z)(ur),(0,Jt.oN)(ur,"slide-up"),(0,Jt.oN)(ur,"slide-down"),(0,Rt._y)(ur,"zoom-big")]},le=>{const{colorPrimary:Me,colorError:Ve,colorTextDisabled:ft,colorErrorBg:Ht,colorText:Zt,colorTextDescription:jt,colorBgContainer:$t,colorFillAlter:Je,colorFillContent:Et,lineWidth:Lt,lineWidthBold:Xt,controlItemBgActive:wt,colorBgTextHover:Nn,controlHeightLG:et,lineHeight:It,colorBgElevated:gn,marginXXS:hn,padding:An,fontSize:Vn,controlHeightSM:mr,fontSizeLG:ur,colorTextLightSolid:dr,colorErrorHover:Fr}=le,nr=new ht.C(dr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:le.zIndexPopupBase+50,radiusItem:le.borderRadiusLG,itemBorderRadius:le.borderRadiusLG,radiusSubMenuItem:le.borderRadiusSM,subMenuItemBorderRadius:le.borderRadiusSM,colorItemText:Zt,itemColor:Zt,colorItemTextHover:Zt,itemHoverColor:Zt,colorItemTextHoverHorizontal:Me,horizontalItemHoverColor:Me,colorGroupTitle:jt,groupTitleColor:jt,colorItemTextSelected:Me,itemSelectedColor:Me,colorItemTextSelectedHorizontal:Me,horizontalItemSelectedColor:Me,colorItemBg:$t,itemBg:$t,colorItemBgHover:Nn,itemHoverBg:Nn,colorItemBgActive:Et,itemActiveBg:wt,colorSubItemBg:Je,subMenuItemBg:Je,colorItemBgSelected:wt,itemSelectedBg:wt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Xt,activeBarHeight:Xt,colorActiveBarBorderSize:Lt,activeBarBorderWidth:Lt,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:Ve,dangerItemColor:Ve,colorDangerItemTextHover:Ve,dangerItemHoverColor:Ve,colorDangerItemTextSelected:Ve,dangerItemSelectedColor:Ve,colorDangerItemBgActive:Ht,dangerItemActiveBg:Ht,colorDangerItemBgSelected:Ht,dangerItemSelectedBg:Ht,itemMarginInline:le.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:et,groupTitleLineHeight:It,collapsedWidth:et*2,popupBg:gn,itemMarginBlock:hn,itemPaddingInline:An,horizontalLineHeight:`${et*1.15}px`,iconSize:Vn,iconMarginInlineEnd:mr-Vn,collapsedIconSize:ur,groupTitleFontSize:Vn,darkItemDisabledColor:new ht.C(dr).setAlpha(.25).toRgbString(),darkItemColor:nr,darkDangerItemColor:Ve,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:dr,darkItemSelectedBg:Me,darkDangerItemSelectedBg:Ve,darkItemHoverBg:"transparent",darkGroupTitleColor:nr,darkItemHoverColor:dr,darkDangerItemHoverColor:Fr,darkDangerItemSelectedColor:dr,darkDangerItemActiveBg:Ve}},{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"]]})(ce),nn=function(ce,he){var fe={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(fe[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,le=Object.getOwnPropertySymbols(ce);Me{var fe,le;const Me=Pe.useContext(Ce.Z),Ve=Me||{},{getPrefixCls:ft,getPopupContainer:Ht,direction:Zt,menu:jt}=Pe.useContext(ke.E_),$t=ft(),{prefixCls:Je,className:Et,style:Lt,theme:Xt="light",expandIcon:wt,_internalDisableMenuItemTitleTooltip:Nn,inlineCollapsed:et,siderCollapsed:It,items:gn,children:hn,rootClassName:An,mode:Vn,selectable:mr,onClick:ur,overflowedIndicatorPopupClassName:dr}=ce,Fr=nn(ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),nr=(0,st.Z)(Fr,["collapsedWidth"]),_r=Mt(gn)||hn;(fe=Ve.validator)===null||fe===void 0||fe.call(Ve,{mode:Vn});const oi=(0,lt.useEvent)(function(){var jn;ur==null||ur.apply(void 0,arguments),(jn=Ve.onClick)===null||jn===void 0||jn.call(Ve)}),Wr=Ve.mode||Vn,xi=mr!=null?mr:Ve.selectable,ti=Pe.useMemo(()=>It!==void 0?It:et,[et,It]),Ct={horizontal:{motionName:`${$t}-slide-up`},inline:(0,Se.Z)($t),other:{motionName:`${$t}-zoom-big`}},wn=ft("menu",Je||Ve.prefixCls),[Rn,an]=un(wn,!Me),vr=ve()(`${wn}-${Xt}`,jt==null?void 0:jt.className,Et);let lr;if(typeof wt=="function")lr=wt;else if(wt===null||wt===!1)lr=null;else if(Ve.expandIcon===null||Ve.expandIcon===!1)lr=null;else{const jn=wt!=null?wt:Ve.expandIcon;lr=(0,xt.Tm)(jn,{className:ve()(`${wn}-submenu-expand-icon`,(0,xt.l$)(jn)?(le=jn.props)===null||le===void 0?void 0:le.className:"")})}const Gn=Pe.useMemo(()=>({prefixCls:wn,inlineCollapsed:ti||!1,direction:Zt,firstLevel:!0,theme:Xt,mode:Wr,disableMenuItemTitleTooltip:Nn}),[wn,ti,Zt,Nn,Xt]);return Rn(Pe.createElement(Ce.Z.Provider,{value:null},Pe.createElement(ct.Provider,{value:Gn},Pe.createElement(ae.ZP,Object.assign({getPopupContainer:Ht,overflowedIndicator:Pe.createElement(Xe.Z,null),overflowedIndicatorPopupClassName:ve()(wn,`${wn}-${Xt}`,dr),mode:Wr,selectable:xi,onClick:oi},nr,{inlineCollapsed:ti,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Lt),className:vr,prefixCls:wn,direction:Zt,defaultMotions:Ct,expandIcon:lr,ref:he,rootClassName:ve()(An,an)}),_r))))});const De=(0,Pe.forwardRef)((ce,he)=>{const fe=(0,Pe.useRef)(null),le=Pe.useContext(Re.D);return(0,Pe.useImperativeHandle)(he,()=>({menu:fe.current,focus:Me=>{var Ve;(Ve=fe.current)===null||Ve===void 0||Ve.focus(Me)}})),Pe.createElement(Pn,Object.assign({ref:fe},ce,le))});De.Item=Ee,De.SubMenu=Yt,De.Divider=me,De.ItemGroup=ae.BW;var ue=De},28452:function(dn,en,se){"use strict";se.d(en,{Z:function(){return $t}});var ae=se(87462),Pe=se(67294),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},qe=Re,ve=se(74643),ke=function(Et,Lt){return Pe.createElement(ve.Z,(0,ae.Z)({},Et,{ref:Lt,icon:qe}))},Le=Pe.forwardRef(ke),xe=se(81893),me=se(22751),Ie=se(91034),st=se(94184),Ne=se.n(st),xt=se(4942),pt=se(1413),ct=se(15671),rt=se(43144),Ee=se(60136),at=se(51630),Yt=`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`,Xe=`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`,lt="".concat(Yt," ").concat(Xe).split(/[\s\n]+/),Se="aria-",Ce="data-";function je(Je,Et){return Je.indexOf(Et)===0}function Ue(Je){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Lt;Et===!1?Lt={aria:!0,data:!0,attr:!0}:Et===!0?Lt={aria:!0}:Lt=(0,pt.Z)({},Et);var Xt={};return Object.keys(Je).forEach(function(wt){(Lt.aria&&(wt==="role"||je(wt,Se))||Lt.data&&je(wt,Ce)||Lt.attr&<.includes(wt))&&(Xt[wt]=Je[wt])}),Xt}var Mt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ht=Mt,Ft=se(81626),tt=function(Je){(0,Ee.Z)(Lt,Je);var Et=(0,at.Z)(Lt);function Lt(){var Xt;(0,ct.Z)(this,Lt);for(var wt=arguments.length,Nn=new Array(wt),et=0;et=0||It.relatedTarget.className.indexOf("".concat(Vn,"-item"))>=0))&&An(Xt.getValidValue()))},Xt.go=function(It){var gn=Xt.state.goInputText;gn!==""&&(It.keyCode===ht.ENTER||It.type==="click")&&(Xt.setState({goInputText:""}),Xt.props.quickGo(Xt.getValidValue()))},Xt}return(0,rt.Z)(Lt,[{key:"getPageSizeOptions",value:function(){var wt=this.props,Nn=wt.pageSize,et=wt.pageSizeOptions;return et.some(function(It){return It.toString()===Nn.toString()})?et:et.concat([Nn.toString()]).sort(function(It,gn){var hn=Number.isNaN(Number(It))?0:Number(It),An=Number.isNaN(Number(gn))?0:Number(gn);return hn-An})}},{key:"render",value:function(){var wt=this,Nn=this.props,et=Nn.pageSize,It=Nn.locale,gn=Nn.rootPrefixCls,hn=Nn.changeSize,An=Nn.quickGo,Vn=Nn.goButton,mr=Nn.selectComponentClass,ur=Nn.buildOptionText,dr=Nn.selectPrefixCls,Fr=Nn.disabled,nr=this.state.goInputText,_r="".concat(gn,"-options"),oi=mr,Wr=null,xi=null,ti=null;if(!hn&&!An)return null;var Ct=this.getPageSizeOptions();if(hn&&oi){var wn=Ct.map(function(Rn,an){return Pe.createElement(oi.Option,{key:an,value:Rn.toString()},(ur||wt.buildOptionText)(Rn))});Wr=Pe.createElement(oi,{disabled:Fr,prefixCls:dr,showSearch:!1,className:"".concat(_r,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(et||Ct[0]).toString(),onChange:this.changeSize,getPopupContainer:function(an){return an.parentNode},"aria-label":It.page_size,defaultOpen:!1},wn)}return An&&(Vn&&(ti=typeof Vn=="boolean"?Pe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Fr,className:"".concat(_r,"-quick-jumper-button")},It.jump_to_confirm):Pe.createElement("span",{onClick:this.go,onKeyUp:this.go},Vn)),xi=Pe.createElement("div",{className:"".concat(_r,"-quick-jumper")},It.jump_to,Pe.createElement("input",{disabled:Fr,type:"text",value:nr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":It.page}),It.page,ti)),Pe.createElement("li",{className:"".concat(_r)},Wr,xi)}}]),Lt}(Pe.Component);tt.defaultProps={pageSizeOptions:["10","20","50","100"]};var Jt=tt,Rt=function(Et){var Lt,Xt=Et.rootPrefixCls,wt=Et.page,Nn=Et.active,et=Et.className,It=Et.showTitle,gn=Et.onClick,hn=Et.onKeyPress,An=Et.itemRender,Vn="".concat(Xt,"-item"),mr=Ne()(Vn,"".concat(Vn,"-").concat(wt),(Lt={},(0,xt.Z)(Lt,"".concat(Vn,"-active"),Nn),(0,xt.Z)(Lt,"".concat(Vn,"-disabled"),!wt),(0,xt.Z)(Lt,Et.className,et),Lt)),ur=function(){gn(wt)},dr=function(_r){hn(_r,gn,wt)},Fr=An(wt,"page",Pe.createElement("a",{rel:"nofollow"},wt));return Fr?Pe.createElement("li",{title:It?wt.toString():null,className:mr,onClick:ur,onKeyPress:dr,tabIndex:0},Fr):null},yn=Rt;function tn(){}function Hn(Je){var Et=Number(Je);return typeof Et=="number"&&!Number.isNaN(Et)&&isFinite(Et)&&Math.floor(Et)===Et}var Yn=function(Et,Lt,Xt){return Xt};function tr(Je,Et,Lt){var Xt=typeof Je=="undefined"?Et.pageSize:Je;return Math.floor((Lt.total-1)/Xt)+1}var Qe=function(Je){(0,Ee.Z)(Lt,Je);var Et=(0,at.Z)(Lt);function Lt(Xt){var wt;(0,ct.Z)(this,Lt),wt=Et.call(this,Xt),wt.paginationNode=Pe.createRef(),wt.getJumpPrevPage=function(){return Math.max(1,wt.state.current-(wt.props.showLessItems?3:5))},wt.getJumpNextPage=function(){return Math.min(tr(void 0,wt.state,wt.props),wt.state.current+(wt.props.showLessItems?3:5))},wt.getItemIcon=function(hn,An){var Vn=wt.props.prefixCls,mr=hn||Pe.createElement("button",{type:"button","aria-label":An,className:"".concat(Vn,"-item-link")});return typeof hn=="function"&&(mr=Pe.createElement(hn,(0,pt.Z)({},wt.props))),mr},wt.isValid=function(hn){var An=wt.props.total;return Hn(hn)&&hn!==wt.state.current&&Hn(An)&&An>0},wt.shouldDisplayQuickJumper=function(){var hn=wt.props,An=hn.showQuickJumper,Vn=hn.total,mr=wt.state.pageSize;return Vn<=mr?!1:An},wt.handleKeyDown=function(hn){(hn.keyCode===ht.ARROW_UP||hn.keyCode===ht.ARROW_DOWN)&&hn.preventDefault()},wt.handleKeyUp=function(hn){var An=wt.getValidValue(hn),Vn=wt.state.currentInputValue;An!==Vn&&wt.setState({currentInputValue:An}),hn.keyCode===ht.ENTER?wt.handleChange(An):hn.keyCode===ht.ARROW_UP?wt.handleChange(An-1):hn.keyCode===ht.ARROW_DOWN&&wt.handleChange(An+1)},wt.handleBlur=function(hn){var An=wt.getValidValue(hn);wt.handleChange(An)},wt.changePageSize=function(hn){var An=wt.state.current,Vn=tr(hn,wt.state,wt.props);An=An>Vn?Vn:An,Vn===0&&(An=wt.state.current),typeof hn=="number"&&("pageSize"in wt.props||wt.setState({pageSize:hn}),"current"in wt.props||wt.setState({current:An,currentInputValue:An})),wt.props.onShowSizeChange(An,hn),"onChange"in wt.props&&wt.props.onChange&&wt.props.onChange(An,hn)},wt.handleChange=function(hn){var An=wt.props,Vn=An.disabled,mr=An.onChange,ur=wt.state,dr=ur.pageSize,Fr=ur.current,nr=ur.currentInputValue;if(wt.isValid(hn)&&!Vn){var _r=tr(void 0,wt.state,wt.props),oi=hn;return hn>_r?oi=_r:hn<1&&(oi=1),"current"in wt.props||wt.setState({current:oi}),oi!==nr&&wt.setState({currentInputValue:oi}),mr(oi,dr),oi}return Fr},wt.prev=function(){wt.hasPrev()&&wt.handleChange(wt.state.current-1)},wt.next=function(){wt.hasNext()&&wt.handleChange(wt.state.current+1)},wt.jumpPrev=function(){wt.handleChange(wt.getJumpPrevPage())},wt.jumpNext=function(){wt.handleChange(wt.getJumpNextPage())},wt.hasPrev=function(){return wt.state.current>1},wt.hasNext=function(){return wt.state.current2?Vn-2:0),ur=2;ur=et?gn=et:gn=Number(Nn),gn}},{key:"getShowSizeChanger",value:function(){var wt=this.props,Nn=wt.showSizeChanger,et=wt.total,It=wt.totalBoundaryShowSizeChanger;return typeof Nn!="undefined"?Nn:et>It}},{key:"render",value:function(){var wt=this.props,Nn=wt.prefixCls,et=wt.className,It=wt.style,gn=wt.disabled,hn=wt.hideOnSinglePage,An=wt.total,Vn=wt.locale,mr=wt.showQuickJumper,ur=wt.showLessItems,dr=wt.showTitle,Fr=wt.showTotal,nr=wt.simple,_r=wt.itemRender,oi=wt.showPrevNextJumpers,Wr=wt.jumpPrevIcon,xi=wt.jumpNextIcon,ti=wt.selectComponentClass,Ct=wt.selectPrefixCls,wn=wt.pageSizeOptions,Rn=this.state,an=Rn.current,vr=Rn.pageSize,lr=Rn.currentInputValue;if(hn===!0&&An<=vr)return null;var Gn=tr(void 0,this.state,this.props),jn=[],nt=null,mt=null,Bt=null,rn=null,Ze=null,St=mr&&mr.goButton,Vt=ur?1:2,Nt=an-1>0?an-1:0,cn=an+1An?An:an*vr]));if(nr){St&&(typeof St=="boolean"?Ze=Pe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Vn.jump_to_confirm):Ze=Pe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},St),Ze=Pe.createElement("li",{title:dr?"".concat(Vn.jump_to).concat(an,"/").concat(Gn):null,className:"".concat(Nn,"-simple-pager")},Ze));var Hr=this.renderPrev(Nt);return Pe.createElement("ul",(0,ae.Z)({className:Ne()(Nn,"".concat(Nn,"-simple"),(0,xt.Z)({},"".concat(Nn,"-disabled"),gn),et),style:It,ref:this.paginationNode},on),Kn,Hr?Pe.createElement("li",{title:dr?Vn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ne()("".concat(Nn,"-prev"),(0,xt.Z)({},"".concat(Nn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Hr):null,Pe.createElement("li",{title:dr?"".concat(an,"/").concat(Gn):null,className:"".concat(Nn,"-simple-pager")},Pe.createElement("input",{type:"text",value:lr,disabled:gn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Pe.createElement("span",{className:"".concat(Nn,"-slash")},"/"),Gn),Pe.createElement("li",{title:dr?Vn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ne()("".concat(Nn,"-next"),(0,xt.Z)({},"".concat(Nn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(cn)),Ze)}if(Gn<=3+Vt*2){var hr={locale:Vn,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:dr,itemRender:_r};Gn||jn.push(Pe.createElement(yn,(0,ae.Z)({},hr,{key:"noPager",page:1,className:"".concat(Nn,"-item-disabled")})));for(var or=1;or<=Gn;or+=1){var Ar=an===or;jn.push(Pe.createElement(yn,(0,ae.Z)({},hr,{key:or,page:or,active:Ar})))}}else{var Lr=ur?Vn.prev_3:Vn.prev_5,kt=ur?Vn.next_3:Vn.next_5,gt=_r(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Wr,"prev page")),Dt=_r(this.getJumpNextPage(),"jump-next",this.getItemIcon(xi,"next page"));oi&&(nt=gt?Pe.createElement("li",{title:dr?Lr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ne()("".concat(Nn,"-jump-prev"),(0,xt.Z)({},"".concat(Nn,"-jump-prev-custom-icon"),!!Wr))},gt):null,mt=Dt?Pe.createElement("li",{title:dr?kt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ne()("".concat(Nn,"-jump-next"),(0,xt.Z)({},"".concat(Nn,"-jump-next-custom-icon"),!!xi))},Dt):null),rn=Pe.createElement(yn,{locale:Vn,last:!0,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Gn,page:Gn,active:!1,showTitle:dr,itemRender:_r}),Bt=Pe.createElement(yn,{locale:Vn,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:dr,itemRender:_r});var En=Math.max(1,an-Vt),qn=Math.min(an+Vt,Gn);an-1<=Vt&&(qn=1+Vt*2),Gn-an<=Vt&&(En=Gn-Vt*2);for(var Cn=En;Cn<=qn;Cn+=1){var Dn=an===Cn;jn.push(Pe.createElement(yn,{locale:Vn,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Cn,page:Cn,active:Dn,showTitle:dr,itemRender:_r}))}an-1>=Vt*2&&an!==3&&(jn[0]=(0,Pe.cloneElement)(jn[0],{className:"".concat(Nn,"-item-after-jump-prev")}),jn.unshift(nt)),Gn-an>=Vt*2&&an!==Gn-2&&(jn[jn.length-1]=(0,Pe.cloneElement)(jn[jn.length-1],{className:"".concat(Nn,"-item-before-jump-next")}),jn.push(mt)),En!==1&&jn.unshift(Bt),qn!==Gn&&jn.push(rn)}var In=!this.hasPrev()||!Gn,Un=!this.hasNext()||!Gn,kr=this.renderPrev(Nt),pn=this.renderNext(cn);return Pe.createElement("ul",(0,ae.Z)({className:Ne()(Nn,et,(0,xt.Z)({},"".concat(Nn,"-disabled"),gn)),style:It,ref:this.paginationNode},on),Kn,kr?Pe.createElement("li",{title:dr?Vn.prev_page:null,onClick:this.prev,tabIndex:In?null:0,onKeyPress:this.runIfEnterPrev,className:Ne()("".concat(Nn,"-prev"),(0,xt.Z)({},"".concat(Nn,"-disabled"),In)),"aria-disabled":In},kr):null,jn,pn?Pe.createElement("li",{title:dr?Vn.next_page:null,onClick:this.next,tabIndex:Un?null:0,onKeyPress:this.runIfEnterNext,className:Ne()("".concat(Nn,"-next"),(0,xt.Z)({},"".concat(Nn,"-disabled"),Un)),"aria-disabled":Un},pn):null,Pe.createElement(Jt,{disabled:gn,locale:Vn,rootPrefixCls:Nn,selectComponentClass:ti,selectPrefixCls:Ct,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:an,pageSize:vr,pageSizeOptions:wn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:St}))}}],[{key:"getDerivedStateFromProps",value:function(wt,Nn){var et={};if("current"in wt&&(et.current=wt.current,wt.current!==Nn.current&&(et.currentInputValue=et.current)),"pageSize"in wt&&wt.pageSize!==Nn.pageSize){var It=Nn.current,gn=tr(wt.pageSize,Nn,wt);It=It>gn?gn:It,"current"in wt||(et.current=It,et.currentInputValue=It),et.pageSize=wt.pageSize}return et}}]),Lt}(Pe.Component);Qe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:tn,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:tn,locale:Ft.Z,style:{},itemRender:Yn,totalBoundaryShowSizeChanger:50};var we=Qe,At=se(62906),Mn=se(53124),_t=se(98675),$e=se(25378),dt=se(10110),qt=se(11713);const Xn=Je=>Pe.createElement(qt.default,Object.assign({},Je,{showSearch:!0,size:"small"})),bn=Je=>Pe.createElement(qt.default,Object.assign({},Je,{showSearch:!0,size:"middle"}));Xn.Option=qt.default.Option,bn.Option=qt.default.Option;var un=se(47673),nn=se(14747),xn=se(67968),Pn=se(45503);const De=Je=>{const{componentCls:Et}=Je;return{[`${Et}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Et}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Et}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed"}}},[`&${Et}-disabled`]:{cursor:"not-allowed",[`${Et}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Je.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Je.colorBorder,backgroundColor:Je.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Je.itemActiveBgDisabled},a:{color:Je.itemActiveColorDisabled}}},[`${Et}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Et}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Et}-simple-pager`]:{color:Je.colorTextDisabled},[`${Et}-jump-prev, ${Et}-jump-next`]:{[`${Et}-item-link-icon`]:{opacity:0},[`${Et}-item-ellipsis`]:{opacity:1}}},[`&${Et}-simple`]:{[`${Et}-prev, ${Et}-next`]:{[`&${Et}-disabled ${Et}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ue=Je=>{const{componentCls:Et}=Je;return{[`&${Et}-mini ${Et}-total-text, &${Et}-mini ${Et}-simple-pager`]:{height:Je.itemSizeSM,lineHeight:`${Je.itemSizeSM}px`},[`&${Et}-mini ${Et}-item`]:{minWidth:Je.itemSizeSM,height:Je.itemSizeSM,margin:0,lineHeight:`${Je.itemSizeSM-2}px`},[`&${Et}-mini:not(${Et}-disabled) ${Et}-item:not(${Et}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Je.colorBgTextHover},"&:active":{backgroundColor:Je.colorBgTextActive}},[`&${Et}-mini ${Et}-prev, &${Et}-mini ${Et}-next`]:{minWidth:Je.itemSizeSM,height:Je.itemSizeSM,margin:0,lineHeight:`${Je.itemSizeSM}px`},[`&${Et}-mini:not(${Et}-disabled)`]:{[`${Et}-prev, ${Et}-next`]:{[`&:hover ${Et}-item-link`]:{backgroundColor:Je.colorBgTextHover},[`&:active ${Et}-item-link`]:{backgroundColor:Je.colorBgTextActive},[`&${Et}-disabled:hover ${Et}-item-link`]:{backgroundColor:"transparent"}}},[` &${Et}-mini ${Et}-prev ${Et}-item-link, &${Et}-mini ${Et}-next ${Et}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Je.itemSizeSM,lineHeight:`${Je.itemSizeSM}px`}},[`&${Et}-mini ${Et}-jump-prev, &${Et}-mini ${Et}-jump-next`]:{height:Je.itemSizeSM,marginInlineEnd:0,lineHeight:`${Je.itemSizeSM}px`},[`&${Et}-mini ${Et}-options`]:{marginInlineStart:Je.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Je.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Je.itemSizeSM,lineHeight:`${Je.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,un.x0)(Je)),{width:Je.paginationMiniQuickJumperInputWidth,height:Je.controlHeightSM})}}}},ce=Je=>{const{componentCls:Et}=Je;return{[` &${Et}-simple ${Et}-prev, &${Et}-simple ${Et}-next `]:{height:Je.itemSizeSM,lineHeight:`${Je.itemSizeSM}px`,verticalAlign:"top",[`${Et}-item-link`]:{height:Je.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Je.colorBgTextHover},"&:active":{backgroundColor:Je.colorBgTextActive},"&::after":{height:Je.itemSizeSM,lineHeight:`${Je.itemSizeSM}px`}}},[`&${Et}-simple ${Et}-simple-pager`]:{display:"inline-block",height:Je.itemSizeSM,marginInlineEnd:Je.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Je.marginXS,padding:`0 ${Je.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Je.itemInputBg,border:`${Je.lineWidth}px ${Je.lineType} ${Je.colorBorder}`,borderRadius:Je.borderRadius,outline:"none",transition:`border-color ${Je.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Je.colorPrimary},"&:focus":{borderColor:Je.colorPrimaryHover,boxShadow:`${Je.inputOutlineOffset}px 0 ${Je.controlOutlineWidth}px ${Je.controlOutline}`},"&[disabled]":{color:Je.colorTextDisabled,backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,cursor:"not-allowed"}}}}},he=Je=>{const{componentCls:Et}=Je;return{[`${Et}-jump-prev, ${Et}-jump-next`]:{outline:0,[`${Et}-item-container`]:{position:"relative",[`${Et}-item-link-icon`]:{color:Je.colorPrimary,fontSize:Je.fontSizeSM,opacity:0,transition:`all ${Je.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Et}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Je.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Je.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Je.paginationEllipsisTextIndent,opacity:1,transition:`all ${Je.motionDurationMid}`}},"&:hover":{[`${Et}-item-link-icon`]:{opacity:1},[`${Et}-item-ellipsis`]:{opacity:0}}},[` ${Et}-prev, ${Et}-jump-prev, ${Et}-jump-next `]:{marginInlineEnd:Je.marginXS},[` ${Et}-prev, ${Et}-next, ${Et}-jump-prev, ${Et}-jump-next `]:{display:"inline-block",minWidth:Je.itemSize,height:Je.itemSize,color:Je.colorText,fontFamily:Je.fontFamily,lineHeight:`${Je.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Je.borderRadius,cursor:"pointer",transition:`all ${Je.motionDurationMid}`},[`${Et}-prev, ${Et}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Je.colorText,cursor:"pointer",userSelect:"none"},[`${Et}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Je.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Je.lineWidth}px ${Je.lineType} transparent`,borderRadius:Je.borderRadius,outline:"none",transition:`all ${Je.motionDurationMid}`},[`&:hover ${Et}-item-link`]:{backgroundColor:Je.colorBgTextHover},[`&:active ${Et}-item-link`]:{backgroundColor:Je.colorBgTextActive},[`&${Et}-disabled:hover`]:{[`${Et}-item-link`]:{backgroundColor:"transparent"}}},[`${Et}-slash`]:{marginInlineEnd:Je.paginationSlashMarginInlineEnd,marginInlineStart:Je.paginationSlashMarginInlineStart},[`${Et}-options`]:{display:"inline-block",marginInlineStart:Je.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Je.controlHeight,marginInlineStart:Je.marginXS,lineHeight:`${Je.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,un.ik)(Je)),{width:Je.controlHeightLG*1.25,height:Je.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Je.marginXS,marginInlineEnd:Je.marginXS})}}}},fe=Je=>{const{componentCls:Et}=Je;return{[`${Et}-item`]:{display:"inline-block",minWidth:Je.itemSize,height:Je.itemSize,marginInlineEnd:Je.marginXS,fontFamily:Je.fontFamily,lineHeight:`${Je.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Je.lineWidth}px ${Je.lineType} transparent`,borderRadius:Je.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Je.paginationItemPaddingInline}px`,color:Je.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Et}-item-active)`]:{"&:hover":{transition:`all ${Je.motionDurationMid}`,backgroundColor:Je.colorBgTextHover},"&:active":{backgroundColor:Je.colorBgTextActive}},"&-active":{fontWeight:Je.fontWeightStrong,backgroundColor:Je.itemActiveBg,borderColor:Je.colorPrimary,a:{color:Je.colorPrimary},"&:hover":{borderColor:Je.colorPrimaryHover},"&:hover a":{color:Je.colorPrimaryHover}}}}},le=Je=>{const{componentCls:Et}=Je;return{[Et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,nn.Wf)(Je)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Et}-total-text`]:{display:"inline-block",height:Je.itemSize,marginInlineEnd:Je.marginXS,lineHeight:`${Je.itemSize-2}px`,verticalAlign:"middle"}}),fe(Je)),he(Je)),ce(Je)),ue(Je)),De(Je)),{[`@media only screen and (max-width: ${Je.screenLG}px)`]:{[`${Et}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Je.screenSM}px)`]:{[`${Et}-options`]:{display:"none"}}}),[`&${Je.componentCls}-rtl`]:{direction:"rtl"}}},Me=Je=>{const{componentCls:Et}=Je;return{[`${Et}${Et}-disabled:not(${Et}-mini)`]:{"&, &:hover":{[`${Et}-item-link`]:{borderColor:Je.colorBorder}},"&:focus-visible":{[`${Et}-item-link`]:{borderColor:Je.colorBorder}},[`${Et}-item, ${Et}-item-link`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,[`&:hover:not(${Et}-item-active)`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,a:{color:Je.colorTextDisabled}},[`&${Et}-item-active`]:{backgroundColor:Je.itemActiveBgDisabled}},[`${Et}-prev, ${Et}-next`]:{"&:hover button":{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,color:Je.colorTextDisabled},[`${Et}-item-link`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder}}},[`${Et}:not(${Et}-mini)`]:{[`${Et}-prev, ${Et}-next`]:{"&:hover button":{borderColor:Je.colorPrimaryHover,backgroundColor:Je.itemBg},[`${Et}-item-link`]:{backgroundColor:Je.itemLinkBg,borderColor:Je.colorBorder},[`&:hover ${Et}-item-link`]:{borderColor:Je.colorPrimary,backgroundColor:Je.itemBg,color:Je.colorPrimary},[`&${Et}-disabled`]:{[`${Et}-item-link`]:{borderColor:Je.colorBorder,color:Je.colorTextDisabled}}},[`${Et}-item`]:{backgroundColor:Je.itemBg,border:`${Je.lineWidth}px ${Je.lineType} ${Je.colorBorder}`,[`&:hover:not(${Et}-item-active)`]:{borderColor:Je.colorPrimary,backgroundColor:Je.itemBg,a:{color:Je.colorPrimary}},"&-active":{borderColor:Je.colorPrimary}}}}},Ve=Je=>{const{componentCls:Et}=Je;return{[`${Et}:not(${Et}-disabled)`]:{[`${Et}-item`]:Object.assign({},(0,nn.Qy)(Je)),[`${Et}-jump-prev, ${Et}-jump-next`]:{"&:focus-visible":Object.assign({[`${Et}-item-link-icon`]:{opacity:1},[`${Et}-item-ellipsis`]:{opacity:0}},(0,nn.oN)(Je))},[`${Et}-prev, ${Et}-next`]:{[`&:focus-visible ${Et}-item-link`]:Object.assign({},(0,nn.oN)(Je))}}}};var ft=(0,xn.Z)("Pagination",Je=>{const Et=(0,Pn.TS)(Je,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Je.marginXXS/2,paginationMiniQuickJumperInputWidth:Je.controlHeightLG*1.1,paginationItemPaddingInline:Je.marginXXS*1.5,paginationEllipsisLetterSpacing:Je.marginXXS/2,paginationSlashMarginInlineStart:Je.marginXXS,paginationSlashMarginInlineEnd:Je.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,un.e5)(Je),(0,un.TM)(Je));return[le(Et),Ve(Et),Je.wireframe&&Me(Et)]},Je=>({itemBg:Je.colorBgContainer,itemSize:Je.controlHeight,itemSizeSM:Je.controlHeightSM,itemActiveBg:Je.colorBgContainer,itemLinkBg:Je.colorBgContainer,itemActiveColorDisabled:Je.colorTextDisabled,itemActiveBgDisabled:Je.controlItemBgActiveDisabled,itemInputBg:Je.colorBgContainer,miniOptionsSizeChangerTop:0})),Ht=function(Je,Et){var Lt={};for(var Xt in Je)Object.prototype.hasOwnProperty.call(Je,Xt)&&Et.indexOf(Xt)<0&&(Lt[Xt]=Je[Xt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,Xt=Object.getOwnPropertySymbols(Je);wt{const{prefixCls:Et,selectPrefixCls:Lt,className:Xt,rootClassName:wt,style:Nn,size:et,locale:It,selectComponentClass:gn,responsive:hn,showSizeChanger:An}=Je,Vn=Ht(Je,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:mr}=(0,$e.Z)(hn),{getPrefixCls:ur,direction:dr,pagination:Fr={}}=Pe.useContext(Mn.E_),nr=ur("pagination",Et),[_r,oi]=ft(nr),Wr=An!=null?An:Fr.showSizeChanger,xi=Pe.useMemo(()=>{const Gn=Pe.createElement("span",{className:`${nr}-item-ellipsis`},"\u2022\u2022\u2022"),jn=Pe.createElement("button",{className:`${nr}-item-link`,type:"button",tabIndex:-1},dr==="rtl"?Pe.createElement(Ie.Z,null):Pe.createElement(me.Z,null)),nt=Pe.createElement("button",{className:`${nr}-item-link`,type:"button",tabIndex:-1},dr==="rtl"?Pe.createElement(me.Z,null):Pe.createElement(Ie.Z,null)),mt=Pe.createElement("a",{className:`${nr}-item-link`},Pe.createElement("div",{className:`${nr}-item-container`},dr==="rtl"?Pe.createElement(xe.Z,{className:`${nr}-item-link-icon`}):Pe.createElement(Le,{className:`${nr}-item-link-icon`}),Gn)),Bt=Pe.createElement("a",{className:`${nr}-item-link`},Pe.createElement("div",{className:`${nr}-item-container`},dr==="rtl"?Pe.createElement(Le,{className:`${nr}-item-link-icon`}):Pe.createElement(xe.Z,{className:`${nr}-item-link-icon`}),Gn));return{prevIcon:jn,nextIcon:nt,jumpPrevIcon:mt,jumpNextIcon:Bt}},[dr,nr]),[ti]=(0,dt.Z)("Pagination",At.Z),Ct=Object.assign(Object.assign({},ti),It),wn=(0,_t.Z)(et),Rn=wn==="small"||!!(mr&&!wn&&hn),an=ur("select",Lt),vr=Ne()({[`${nr}-mini`]:Rn,[`${nr}-rtl`]:dr==="rtl"},Fr==null?void 0:Fr.className,Xt,wt,oi),lr=Object.assign(Object.assign({},Fr==null?void 0:Fr.style),Nn);return _r(Pe.createElement(we,Object.assign({},xi,Vn,{style:lr,prefixCls:nr,selectPrefixCls:an,className:vr,selectComponentClass:gn||(Rn?Xn:bn),locale:Ct,showSizeChanger:Wr})))},$t=jt},38703:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Nn}});var ae=se(67294),Pe=se(87725),Re=se(18299),qe=se(16646),ve=se(73475),ke=se(94184),Le=se.n(ke),xe=se(10366),me=se(53124),Ie=se(87462),st=se(1413),Ne=se(45987),xt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},pt=function(){var It=(0,ae.useRef)([]),gn=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var hn=Date.now(),An=!1;It.current.forEach(function(Vn){if(Vn){An=!0;var mr=Vn.style;mr.transitionDuration=".3s, .3s, .3s, .06s",gn.current&&hn-gn.current<100&&(mr.transitionDuration="0s, 0s")}}),An&&(gn.current=Date.now())}),It.current},ct=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],rt=function(It){var gn=(0,st.Z)((0,st.Z)({},xt),It),hn=gn.className,An=gn.percent,Vn=gn.prefixCls,mr=gn.strokeColor,ur=gn.strokeLinecap,dr=gn.strokeWidth,Fr=gn.style,nr=gn.trailColor,_r=gn.trailWidth,oi=gn.transition,Wr=(0,Ne.Z)(gn,ct);delete Wr.gapPosition;var xi=Array.isArray(An)?An:[An],ti=Array.isArray(mr)?mr:[mr],Ct=pt(),wn=dr/2,Rn=100-dr/2,an="M ".concat(ur==="round"?wn:0,",").concat(wn,` L `).concat(ur==="round"?Rn:100,",").concat(wn),vr="0 0 100 ".concat(dr),lr=0;return ae.createElement("svg",(0,Ie.Z)({className:Le()("".concat(Vn,"-line"),hn),viewBox:vr,preserveAspectRatio:"none",style:Fr},Wr),ae.createElement("path",{className:"".concat(Vn,"-line-trail"),d:an,strokeLinecap:ur,stroke:nr,strokeWidth:_r||dr,fillOpacity:"0"}),xi.map(function(Gn,jn){var nt=1;switch(ur){case"round":nt=1-dr/100;break;case"square":nt=1-dr/2/100;break;default:nt=1;break}var mt={strokeDasharray:"".concat(Gn*nt,"px, 100px"),strokeDashoffset:"-".concat(lr,"px"),transition:oi||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Bt=ti[jn]||ti[ti.length-1];return lr+=Gn,ae.createElement("path",{key:jn,className:"".concat(Vn,"-line-path"),d:an,strokeLinecap:ur,stroke:Bt,strokeWidth:dr,fillOpacity:"0",ref:function(Ze){Ct[jn]=Ze},style:mt})}))},Ee=rt,at=se(71002),Yt=se(97685),Xe=se(98924),lt=0,Se=(0,Xe.Z)();function Ce(){var et;return Se?(et=lt,lt+=1):et="TEST_OR_SSR",et}var je=function(et){var It=ae.useState(),gn=(0,Yt.Z)(It,2),hn=gn[0],An=gn[1];return ae.useEffect(function(){An("rc_progress_".concat(Ce()))},[]),et||hn},Ue=function(It){var gn=It.bg,hn=It.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:gn}},hn)};function Mt(et,It){return Object.keys(et).map(function(gn){var hn=parseFloat(gn),An="".concat(Math.floor(hn*It),"%");return"".concat(et[gn]," ").concat(An)})}var ht=ae.forwardRef(function(et,It){var gn=et.prefixCls,hn=et.color,An=et.gradientId,Vn=et.radius,mr=et.style,ur=et.ptg,dr=et.strokeLinecap,Fr=et.strokeWidth,nr=et.size,_r=et.gapDegree,oi=hn&&(0,at.Z)(hn)==="object",Wr=oi?"#FFF":void 0,xi=nr/2,ti=ae.createElement("circle",{className:"".concat(gn,"-circle-path"),r:Vn,cx:xi,cy:xi,stroke:Wr,strokeLinecap:dr,strokeWidth:Fr,opacity:ur===0?0:1,style:mr,ref:It});if(!oi)return ti;var Ct="".concat(An,"-conic"),wn=_r?"".concat(180+_r/2,"deg"):"0deg",Rn=Mt(hn,(360-_r)/360),an=Mt(hn,1),vr="conic-gradient(from ".concat(wn,", ").concat(Rn.join(", "),")"),lr="linear-gradient(to ".concat(_r?"bottom":"top",", ").concat(an.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ct},ti),ae.createElement("foreignObject",{x:0,y:0,width:nr,height:nr,mask:"url(#".concat(Ct,")")},ae.createElement(Ue,{bg:lr},ae.createElement(Ue,{bg:vr}))))}),Ft=ht,tt=100,Jt=function(It,gn,hn,An,Vn,mr,ur,dr,Fr,nr){var _r=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,oi=hn/100*360*((360-mr)/360),Wr=mr===0?0:{bottom:0,top:180,left:90,right:-90}[ur],xi=(100-An)/100*gn;Fr==="round"&&An!==100&&(xi+=nr/2,xi>=gn&&(xi=gn-.01));var ti=tt/2;return{stroke:typeof dr=="string"?dr:void 0,strokeDasharray:"".concat(gn,"px ").concat(It),strokeDashoffset:xi+_r,transform:"rotate(".concat(Vn+oi+Wr,"deg)"),transformOrigin:"".concat(ti,"px ").concat(ti,"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}},Rt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function yn(et){var It=et!=null?et:[];return Array.isArray(It)?It:[It]}var tn=function(It){var gn=(0,st.Z)((0,st.Z)({},xt),It),hn=gn.id,An=gn.prefixCls,Vn=gn.steps,mr=gn.strokeWidth,ur=gn.trailWidth,dr=gn.gapDegree,Fr=dr===void 0?0:dr,nr=gn.gapPosition,_r=gn.trailColor,oi=gn.strokeLinecap,Wr=gn.style,xi=gn.className,ti=gn.strokeColor,Ct=gn.percent,wn=(0,Ne.Z)(gn,Rt),Rn=tt/2,an=je(hn),vr="".concat(an,"-gradient"),lr=Rn-mr/2,Gn=Math.PI*2*lr,jn=Fr>0?90+Fr/2:-90,nt=Gn*((360-Fr)/360),mt=(0,at.Z)(Vn)==="object"?Vn:{count:Vn,space:2},Bt=mt.count,rn=mt.space,Ze=yn(Ct),St=yn(ti),Vt=St.find(function(or){return or&&(0,at.Z)(or)==="object"}),Nt=Vt&&(0,at.Z)(Vt)==="object",cn=Nt?"butt":oi,on=Jt(Gn,nt,0,100,jn,Fr,nr,_r,cn,mr),Kn=pt(),Hr=function(){var Ar=0;return Ze.map(function(Lr,kt){var gt=St[kt]||St[St.length-1],Dt=Jt(Gn,nt,Ar,Lr,jn,Fr,nr,gt,cn,mr);return Ar+=Lr,ae.createElement(Ft,{key:kt,color:gt,ptg:Lr,radius:lr,prefixCls:An,gradientId:vr,style:Dt,strokeLinecap:cn,strokeWidth:mr,gapDegree:Fr,ref:function(qn){Kn[kt]=qn},size:tt})}).reverse()},hr=function(){var Ar=Math.round(Bt*(Ze[0]/100)),Lr=100/Bt,kt=0;return new Array(Bt).fill(null).map(function(gt,Dt){var En=Dt<=Ar-1?St[0]:_r,qn=En&&(0,at.Z)(En)==="object"?"url(#".concat(vr,")"):void 0,Cn=Jt(Gn,nt,kt,Lr,jn,Fr,nr,En,"butt",mr,rn);return kt+=(nt-Cn.strokeDashoffset+rn)*100/nt,ae.createElement("circle",{key:Dt,className:"".concat(An,"-circle-path"),r:lr,cx:Rn,cy:Rn,stroke:qn,strokeWidth:mr,opacity:1,style:Cn,ref:function(In){Kn[Dt]=In}})})};return ae.createElement("svg",(0,Ie.Z)({className:Le()("".concat(An,"-circle"),xi),viewBox:"0 0 ".concat(tt," ").concat(tt),style:Wr,id:hn,role:"presentation"},wn),!Bt&&ae.createElement("circle",{className:"".concat(An,"-circle-trail"),r:lr,cx:Rn,cy:Rn,stroke:_r,strokeLinecap:cn,strokeWidth:ur||mr,style:on}),Bt?hr():Hr())},Hn=tn,Yn={Line:Ee,Circle:Hn},tr=se(83062),Qe=se(47448);function we(et){return!et||et<0?0:et>100?100:et}function At(et){let{success:It,successPercent:gn}=et,hn=gn;return It&&"progress"in It&&(hn=It.progress),It&&"percent"in It&&(hn=It.percent),hn}const Mn=et=>{let{percent:It,success:gn,successPercent:hn}=et;const An=we(At({success:gn,successPercent:hn}));return[An,we(we(It)-An)]},_t=et=>{let{success:It={},strokeColor:gn}=et;const{strokeColor:hn}=It;return[hn||Qe.presetPrimaryColors.green,gn||null]},$e=(et,It,gn)=>{var hn,An,Vn,mr;let ur=-1,dr=-1;if(It==="step"){const Fr=gn.steps,nr=gn.strokeWidth;typeof et=="string"||typeof et=="undefined"?(ur=et==="small"?2:14,dr=nr!=null?nr:8):typeof et=="number"?[ur,dr]=[et,et]:[ur=14,dr=8]=et,ur*=Fr}else if(It==="line"){const Fr=gn==null?void 0:gn.strokeWidth;typeof et=="string"||typeof et=="undefined"?dr=Fr||(et==="small"?6:8):typeof et=="number"?[ur,dr]=[et,et]:[ur=-1,dr=8]=et}else(It==="circle"||It==="dashboard")&&(typeof et=="string"||typeof et=="undefined"?[ur,dr]=et==="small"?[60,60]:[120,120]:typeof et=="number"?[ur,dr]=[et,et]:(ur=(An=(hn=et[0])!==null&&hn!==void 0?hn:et[1])!==null&&An!==void 0?An:120,dr=(mr=(Vn=et[0])!==null&&Vn!==void 0?Vn:et[1])!==null&&mr!==void 0?mr:120));return[ur,dr]},dt=3,qt=et=>dt/et*100;var bn=et=>{const{prefixCls:It,trailColor:gn=null,strokeLinecap:hn="round",gapPosition:An,gapDegree:Vn,width:mr=120,type:ur,children:dr,success:Fr,size:nr=mr}=et,[_r,oi]=$e(nr,"circle");let{strokeWidth:Wr}=et;Wr===void 0&&(Wr=Math.max(qt(_r),6));const xi={width:_r,height:oi,fontSize:_r*.15+6},ti=ae.useMemo(()=>{if(Vn||Vn===0)return Vn;if(ur==="dashboard")return 75},[Vn,ur]),Ct=An||ur==="dashboard"&&"bottom"||void 0,wn=Object.prototype.toString.call(et.strokeColor)==="[object Object]",Rn=_t({success:Fr,strokeColor:et.strokeColor}),an=Le()(`${It}-inner`,{[`${It}-circle-gradient`]:wn}),vr=ae.createElement(Hn,{percent:Mn(et),strokeWidth:Wr,trailWidth:Wr,strokeColor:Rn,strokeLinecap:hn,trailColor:gn,prefixCls:It,gapDegree:ti,gapPosition:Ct});return ae.createElement("div",{className:an,style:xi},_r<=20?ae.createElement(tr.Z,{title:dr},ae.createElement("span",null,vr)):ae.createElement(ae.Fragment,null,vr,dr))},un=function(et,It){var gn={};for(var hn in et)Object.prototype.hasOwnProperty.call(et,hn)&&It.indexOf(hn)<0&&(gn[hn]=et[hn]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,hn=Object.getOwnPropertySymbols(et);An{let It=[];return Object.keys(et).forEach(gn=>{const hn=parseFloat(gn.replace(/%/g,""));isNaN(hn)||It.push({key:hn,value:et[gn]})}),It=It.sort((gn,hn)=>gn.key-hn.key),It.map(gn=>{let{key:hn,value:An}=gn;return`${An} ${hn}%`}).join(", ")},xn=(et,It)=>{const{from:gn=Qe.presetPrimaryColors.blue,to:hn=Qe.presetPrimaryColors.blue,direction:An=It==="rtl"?"to left":"to right"}=et,Vn=un(et,["from","to","direction"]);if(Object.keys(Vn).length!==0){const mr=nn(Vn);return{backgroundImage:`linear-gradient(${An}, ${mr})`}}return{backgroundImage:`linear-gradient(${An}, ${gn}, ${hn})`}};var De=et=>{const{prefixCls:It,direction:gn,percent:hn,size:An,strokeWidth:Vn,strokeColor:mr,strokeLinecap:ur="round",children:dr,trailColor:Fr=null,success:nr}=et,_r=mr&&typeof mr!="string"?xn(mr,gn):{backgroundColor:mr},oi=ur==="square"||ur==="butt"?0:void 0,Wr={backgroundColor:Fr||void 0,borderRadius:oi},xi=An!=null?An:[-1,Vn||(An==="small"?6:8)],[ti,Ct]=$e(xi,"line",{strokeWidth:Vn}),wn=Object.assign({width:`${we(hn)}%`,height:Ct,borderRadius:oi},_r),Rn=At(et),an={width:`${we(Rn)}%`,height:Ct,borderRadius:oi,backgroundColor:nr==null?void 0:nr.strokeColor},vr={width:ti<0?"100%":ti,height:Ct};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${It}-outer`,style:vr},ae.createElement("div",{className:`${It}-inner`,style:Wr},ae.createElement("div",{className:`${It}-bg`,style:wn}),Rn!==void 0?ae.createElement("div",{className:`${It}-success-bg`,style:an}):null)),dr)},ce=et=>{const{size:It,steps:gn,percent:hn=0,strokeWidth:An=8,strokeColor:Vn,trailColor:mr=null,prefixCls:ur,children:dr}=et,Fr=Math.round(gn*(hn/100)),nr=It==="small"?2:14,_r=It!=null?It:[nr,An],[oi,Wr]=$e(_r,"step",{steps:gn,strokeWidth:An}),xi=oi/gn,ti=new Array(gn);for(let Ct=0;Ct{const It=et?"100%":"-100%";return new he.Keyframes(`antProgress${et?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${It}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${It}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ft=et=>{const{componentCls:It,iconCls:gn}=et;return{[It]:Object.assign(Object.assign({},(0,fe.Wf)(et)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:et.fontSize,marginInlineEnd:et.marginXS,marginBottom:et.marginXS},[`${It}-outer`]:{display:"inline-block",width:"100%"},[`&${It}-show-info`]:{[`${It}-outer`]:{marginInlineEnd:`calc(-2em - ${et.marginXS}px)`,paddingInlineEnd:`calc(2em + ${et.paddingXS}px)`}},[`${It}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:et.remainingColor,borderRadius:et.lineBorderRadius},[`${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:et.defaultColor}},[`${It}-success-bg, ${It}-bg`]:{position:"relative",backgroundColor:et.defaultColor,borderRadius:et.lineBorderRadius,transition:`all ${et.motionDurationSlow} ${et.motionEaseInOutCirc}`},[`${It}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:et.colorSuccess},[`${It}-text`]:{display:"inline-block",width:"2em",marginInlineStart:et.marginXS,color:et.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[gn]:{fontSize:et.fontSize}},[`&${It}-status-active`]:{[`${It}-bg::before`]:{position:"absolute",inset:0,backgroundColor:et.colorBgContainer,borderRadius:et.lineBorderRadius,opacity:0,animationName:Ve(),animationDuration:et.progressActiveMotionDuration,animationTimingFunction:et.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${It}-rtl${It}-status-active`]:{[`${It}-bg::before`]:{animationName:Ve(!0)}},[`&${It}-status-exception`]:{[`${It}-bg`]:{backgroundColor:et.colorError},[`${It}-text`]:{color:et.colorError}},[`&${It}-status-exception ${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:et.colorError}},[`&${It}-status-success`]:{[`${It}-bg`]:{backgroundColor:et.colorSuccess},[`${It}-text`]:{color:et.colorSuccess}},[`&${It}-status-success ${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:et.colorSuccess}}})}},Ht=et=>{const{componentCls:It,iconCls:gn}=et;return{[It]:{[`${It}-circle-trail`]:{stroke:et.remainingColor},[`&${It}-circle ${It}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${It}-circle ${It}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:et.circleTextColor,fontSize:et.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[gn]:{fontSize:`${et.fontSize/et.fontSizeSM}em`}},[`${It}-circle&-status-exception`]:{[`${It}-text`]:{color:et.colorError}},[`${It}-circle&-status-success`]:{[`${It}-text`]:{color:et.colorSuccess}}},[`${It}-inline-circle`]:{lineHeight:1,[`${It}-inner`]:{verticalAlign:"bottom"}}}},Zt=et=>{const{componentCls:It}=et;return{[It]:{[`${It}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:et.progressStepMinWidth,marginInlineEnd:et.progressStepMarginInlineEnd,backgroundColor:et.remainingColor,transition:`all ${et.motionDurationSlow}`,"&-active":{backgroundColor:et.defaultColor}}}}}},jt=et=>{const{componentCls:It,iconCls:gn}=et;return{[It]:{[`${It}-small&-line, ${It}-small&-line ${It}-text ${gn}`]:{fontSize:et.fontSizeSM}}}};var $t=(0,le.Z)("Progress",et=>{const It=et.marginXXS/2,gn=(0,Me.TS)(et,{progressStepMarginInlineEnd:It,progressStepMinWidth:It,progressActiveMotionDuration:"2.4s"});return[ft(gn),Ht(gn),Zt(gn),jt(gn)]},et=>({circleTextColor:et.colorText,defaultColor:et.colorInfo,remainingColor:et.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Je=function(et,It){var gn={};for(var hn in et)Object.prototype.hasOwnProperty.call(et,hn)&&It.indexOf(hn)<0&&(gn[hn]=et[hn]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,hn=Object.getOwnPropertySymbols(et);An{const{prefixCls:gn,className:hn,rootClassName:An,steps:Vn,strokeColor:mr,percent:ur=0,size:dr="default",showInfo:Fr=!0,type:nr="line",status:_r,format:oi,style:Wr}=et,xi=Je(et,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),ti=ae.useMemo(()=>{var Ze,St;const Vt=At(et);return parseInt(Vt!==void 0?(Ze=Vt!=null?Vt:0)===null||Ze===void 0?void 0:Ze.toString():(St=ur!=null?ur:0)===null||St===void 0?void 0:St.toString(),10)},[ur,et.success,et.successPercent]),Ct=ae.useMemo(()=>!Lt.includes(_r)&&ti>=100?"success":_r||"normal",[_r,ti]),{getPrefixCls:wn,direction:Rn,progress:an}=ae.useContext(me.E_),vr=wn("progress",gn),[lr,Gn]=$t(vr),jn=ae.useMemo(()=>{if(!Fr)return null;const Ze=At(et);let St;const Vt=oi||(cn=>`${cn}%`),Nt=nr==="line";return oi||Ct!=="exception"&&Ct!=="success"?St=Vt(we(ur),we(Ze)):Ct==="exception"?St=Nt?ae.createElement(qe.Z,null):ae.createElement(ve.Z,null):Ct==="success"&&(St=Nt?ae.createElement(Pe.Z,null):ae.createElement(Re.Z,null)),ae.createElement("span",{className:`${vr}-text`,title:typeof St=="string"?St:void 0},St)},[Fr,ur,ti,Ct,nr,vr,oi]),nt=Array.isArray(mr)?mr[0]:mr,mt=typeof mr=="string"||Array.isArray(mr)?mr:void 0;let Bt;nr==="line"?Bt=Vn?ae.createElement(ce,Object.assign({},et,{strokeColor:mt,prefixCls:vr,steps:Vn}),jn):ae.createElement(De,Object.assign({},et,{strokeColor:nt,prefixCls:vr,direction:Rn}),jn):(nr==="circle"||nr==="dashboard")&&(Bt=ae.createElement(bn,Object.assign({},et,{strokeColor:nt,prefixCls:vr,progressStatus:Ct}),jn));const rn=Le()(vr,`${vr}-status-${Ct}`,`${vr}-${nr==="dashboard"&&"circle"||Vn&&"steps"||nr}`,{[`${vr}-inline-circle`]:nr==="circle"&&$e(dr,"circle")[0]<=20,[`${vr}-show-info`]:Fr,[`${vr}-${dr}`]:typeof dr=="string",[`${vr}-rtl`]:Rn==="rtl"},an==null?void 0:an.className,hn,An,Gn);return lr(ae.createElement("div",Object.assign({ref:It,style:Object.assign(Object.assign({},an==null?void 0:an.style),Wr),className:rn,role:"progressbar","aria-valuenow":ti},(0,xe.Z)(xi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Bt))}),Nn=wt},78045:function(dn,en,se){"use strict";se.d(en,{ZP:function(){return Qe}});var ae=se(94184),Pe=se.n(ae),Re=se(5663),qe=se(1337),ve=se(67294),ke=se(53124),Le=se(98675);const xe=ve.createContext(null),me=xe.Provider;var Ie=xe;const st=ve.createContext(null),Ne=st.Provider;var xt=se(95860),pt=se(17799),ct=se(98866),rt=se(65223),Ee=se(14747),at=se(67968),Yt=se(45503);const Xe=we=>{const{componentCls:At,antCls:Mn}=we,_t=`${At}-group`;return{[_t]:Object.assign(Object.assign({},(0,Ee.Wf)(we)),{display:"inline-block",fontSize:0,[`&${_t}-rtl`]:{direction:"rtl"},[`${Mn}-badge ${Mn}-badge-count`]:{zIndex:1},[`> ${Mn}-badge:not(:first-child) > ${Mn}-button-wrapper`]:{borderInlineStart:"none"}})}},lt=we=>{const{componentCls:At,wrapperMarginInlineEnd:Mn,colorPrimary:_t,radioSize:$e,motionDurationSlow:dt,motionDurationMid:qt,motionEaseInOutCirc:Xn,colorBgContainer:bn,colorBorder:un,lineWidth:nn,dotSize:xn,colorBgContainerDisabled:Pn,colorTextDisabled:De,paddingXS:ue,dotColorDisabled:ce,lineType:he,radioDotDisabledSize:fe,wireframe:le,colorWhite:Me}=we,Ve=`${At}-inner`;return{[`${At}-wrapper`]:Object.assign(Object.assign({},(0,Ee.Wf)(we)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Mn,cursor:"pointer",[`&${At}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:we.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${At}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${nn}px ${he} ${_t}`,borderRadius:"50%",visibility:"hidden",content:'""'},[At]:Object.assign(Object.assign({},(0,Ee.Wf)(we)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${At}-wrapper:hover &, &:hover ${Ve}`]:{borderColor:_t},[`${At}-input:focus-visible + ${Ve}`]:Object.assign({},(0,Ee.oN)(we)),[`${At}:hover::after, ${At}-wrapper:hover &::after`]:{visibility:"visible"},[`${At}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:$e,height:$e,marginBlockStart:$e/-2,marginInlineStart:$e/-2,backgroundColor:le?_t:Me,borderBlockStart:0,borderInlineStart:0,borderRadius:$e,transform:"scale(0)",opacity:0,transition:`all ${dt} ${Xn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$e,height:$e,backgroundColor:bn,borderColor:un,borderStyle:"solid",borderWidth:nn,borderRadius:"50%",transition:`all ${qt}`},[`${At}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${At}-checked`]:{[Ve]:{borderColor:_t,backgroundColor:le?bn:_t,"&::after":{transform:`scale(${xn/$e})`,opacity:1,transition:`all ${dt} ${Xn}`}}},[`${At}-disabled`]:{cursor:"not-allowed",[Ve]:{backgroundColor:Pn,borderColor:un,cursor:"not-allowed","&::after":{backgroundColor:ce}},[`${At}-input`]:{cursor:"not-allowed"},[`${At}-disabled + span`]:{color:De,cursor:"not-allowed"},[`&${At}-checked`]:{[Ve]:{"&::after":{transform:`scale(${fe/$e})`}}}},[`span${At} + *`]:{paddingInlineStart:ue,paddingInlineEnd:ue}})}},Se=we=>{const{buttonColor:At,controlHeight:Mn,componentCls:_t,lineWidth:$e,lineType:dt,colorBorder:qt,motionDurationSlow:Xn,motionDurationMid:bn,buttonPaddingInline:un,fontSize:nn,buttonBg:xn,fontSizeLG:Pn,controlHeightLG:De,controlHeightSM:ue,paddingXS:ce,borderRadius:he,borderRadiusSM:fe,borderRadiusLG:le,buttonCheckedBg:Me,buttonSolidCheckedColor:Ve,colorTextDisabled:ft,colorBgContainerDisabled:Ht,buttonCheckedBgDisabled:Zt,buttonCheckedColorDisabled:jt,colorPrimary:$t,colorPrimaryHover:Je,colorPrimaryActive:Et,buttonSolidCheckedBg:Lt,buttonSolidCheckedHoverBg:Xt,buttonSolidCheckedActiveBg:wt}=we;return{[`${_t}-button-wrapper`]:{position:"relative",display:"inline-block",height:Mn,margin:0,paddingInline:un,paddingBlock:0,color:At,fontSize:nn,lineHeight:`${Mn-$e*2}px`,background:xn,border:`${$e}px ${dt} ${qt}`,borderBlockStartWidth:$e+.02,borderInlineStartWidth:0,borderInlineEndWidth:$e,cursor:"pointer",transition:[`color ${bn}`,`background ${bn}`,`box-shadow ${bn}`].join(","),a:{color:At},[`> ${_t}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-$e,insetInlineStart:-$e,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:$e,paddingInline:0,backgroundColor:qt,transition:`background-color ${Xn}`,content:'""'}},"&:first-child":{borderInlineStart:`${$e}px ${dt} ${qt}`,borderStartStartRadius:he,borderEndStartRadius:he},"&:last-child":{borderStartEndRadius:he,borderEndEndRadius:he},"&:first-child:last-child":{borderRadius:he},[`${_t}-group-large &`]:{height:De,fontSize:Pn,lineHeight:`${De-$e*2}px`,"&:first-child":{borderStartStartRadius:le,borderEndStartRadius:le},"&:last-child":{borderStartEndRadius:le,borderEndEndRadius:le}},[`${_t}-group-small &`]:{height:ue,paddingInline:ce-$e,paddingBlock:0,lineHeight:`${ue-$e*2}px`,"&:first-child":{borderStartStartRadius:fe,borderEndStartRadius:fe},"&:last-child":{borderStartEndRadius:fe,borderEndEndRadius:fe}},"&:hover":{position:"relative",color:$t},"&:has(:focus-visible)":Object.assign({},(0,Ee.oN)(we)),[`${_t}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${_t}-button-wrapper-disabled)`]:{zIndex:1,color:$t,background:Me,borderColor:$t,"&::before":{backgroundColor:$t},"&:first-child":{borderColor:$t},"&:hover":{color:Je,borderColor:Je,"&::before":{backgroundColor:Je}},"&:active":{color:Et,borderColor:Et,"&::before":{backgroundColor:Et}}},[`${_t}-group-solid &-checked:not(${_t}-button-wrapper-disabled)`]:{color:Ve,background:Lt,borderColor:Lt,"&:hover":{color:Ve,background:Xt,borderColor:Xt},"&:active":{color:Ve,background:wt,borderColor:wt}},"&-disabled":{color:ft,backgroundColor:Ht,borderColor:qt,cursor:"not-allowed","&:first-child, &:hover":{color:ft,backgroundColor:Ht,borderColor:qt}},[`&-disabled${_t}-button-wrapper-checked`]:{color:jt,backgroundColor:Zt,borderColor:qt,boxShadow:"none"}}}},Ce=we=>we-4*2;var je=(0,at.Z)("Radio",we=>{const{controlOutline:At,controlOutlineWidth:Mn,radioSize:_t}=we,$e=`0 0 0 ${Mn}px ${At}`,dt=$e,qt=Ce(_t),Xn=(0,Yt.TS)(we,{radioDotDisabledSize:qt,radioFocusShadow:$e,radioButtonFocusShadow:dt});return[Xe(Xn),lt(Xn),Se(Xn)]},we=>{const{wireframe:At,padding:Mn,marginXS:_t,lineWidth:$e,fontSizeLG:dt,colorText:qt,colorBgContainer:Xn,colorTextDisabled:bn,controlItemBgActiveDisabled:un,colorTextLightSolid:nn,colorPrimary:xn,colorPrimaryHover:Pn,colorPrimaryActive:De}=we,ue=4,ce=dt,he=At?Ce(ce):ce-(ue+$e)*2;return{radioSize:ce,dotSize:he,dotColorDisabled:bn,buttonSolidCheckedColor:nn,buttonSolidCheckedBg:xn,buttonSolidCheckedHoverBg:Pn,buttonSolidCheckedActiveBg:De,buttonBg:Xn,buttonCheckedBg:Xn,buttonColor:qt,buttonCheckedBgDisabled:un,buttonCheckedColorDisabled:bn,buttonPaddingInline:Mn-$e,wrapperMarginInlineEnd:_t}}),Ue=se(45353),Mt=se(92429),ht=function(we,At){var Mn={};for(var _t in we)Object.prototype.hasOwnProperty.call(we,_t)&&At.indexOf(_t)<0&&(Mn[_t]=we[_t]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,_t=Object.getOwnPropertySymbols(we);$e<_t.length;$e++)At.indexOf(_t[$e])<0&&Object.prototype.propertyIsEnumerable.call(we,_t[$e])&&(Mn[_t[$e]]=we[_t[$e]]);return Mn};const Ft=(we,At)=>{var Mn,_t;const $e=ve.useContext(Ie),dt=ve.useContext(st),{getPrefixCls:qt,direction:Xn,radio:bn}=ve.useContext(ke.E_),un=ve.useRef(null),nn=(0,pt.sQ)(At,un),{isFormItemInput:xn}=ve.useContext(rt.aM),Pn=Et=>{var Lt,Xt;(Lt=we.onChange)===null||Lt===void 0||Lt.call(we,Et),(Xt=$e==null?void 0:$e.onChange)===null||Xt===void 0||Xt.call($e,Et)},{prefixCls:De,className:ue,rootClassName:ce,children:he,style:fe}=we,le=ht(we,["prefixCls","className","rootClassName","children","style"]),Me=qt("radio",De),Ve=(($e==null?void 0:$e.optionType)||dt)==="button",ft=Ve?`${Me}-button`:Me,[Ht,Zt]=je(Me),jt=Object.assign({},le),$t=ve.useContext(ct.Z);$e&&(jt.name=$e.name,jt.onChange=Pn,jt.checked=we.value===$e.value,jt.disabled=(Mn=jt.disabled)!==null&&Mn!==void 0?Mn:$e.disabled),jt.disabled=(_t=jt.disabled)!==null&&_t!==void 0?_t:$t;const Je=Pe()(`${ft}-wrapper`,{[`${ft}-wrapper-checked`]:jt.checked,[`${ft}-wrapper-disabled`]:jt.disabled,[`${ft}-wrapper-rtl`]:Xn==="rtl",[`${ft}-wrapper-in-form-item`]:xn},bn==null?void 0:bn.className,ue,ce,Zt);return Ht(ve.createElement(Ue.Z,{component:"Radio",disabled:jt.disabled},ve.createElement("label",{className:Je,style:Object.assign(Object.assign({},bn==null?void 0:bn.style),fe),onMouseEnter:we.onMouseEnter,onMouseLeave:we.onMouseLeave},ve.createElement(xt.Z,Object.assign({},jt,{className:Pe()(jt.className,!Ve&&Mt.A),type:"radio",prefixCls:ft,ref:nn})),he!==void 0?ve.createElement("span",null,he):null)))};var Jt=ve.forwardRef(Ft);const Rt=ve.forwardRef((we,At)=>{const{getPrefixCls:Mn,direction:_t}=ve.useContext(ke.E_),[$e,dt]=(0,Re.Z)(we.defaultValue,{value:we.value}),qt=Lt=>{const Xt=$e,wt=Lt.target.value;"value"in we||dt(wt);const{onChange:Nn}=we;Nn&&wt!==Xt&&Nn(Lt)},{prefixCls:Xn,className:bn,rootClassName:un,options:nn,buttonStyle:xn="outline",disabled:Pn,children:De,size:ue,style:ce,id:he,onMouseEnter:fe,onMouseLeave:le,onFocus:Me,onBlur:Ve}=we,ft=Mn("radio",Xn),Ht=`${ft}-group`,[Zt,jt]=je(ft);let $t=De;nn&&nn.length>0&&($t=nn.map(Lt=>typeof Lt=="string"||typeof Lt=="number"?ve.createElement(Jt,{key:Lt.toString(),prefixCls:ft,disabled:Pn,value:Lt,checked:$e===Lt},Lt):ve.createElement(Jt,{key:`radio-group-value-options-${Lt.value}`,prefixCls:ft,disabled:Lt.disabled||Pn,value:Lt.value,checked:$e===Lt.value,title:Lt.title,style:Lt.style},Lt.label)));const Je=(0,Le.Z)(ue),Et=Pe()(Ht,`${Ht}-${xn}`,{[`${Ht}-${Je}`]:Je,[`${Ht}-rtl`]:_t==="rtl"},bn,un,jt);return Zt(ve.createElement("div",Object.assign({},(0,qe.Z)(we,{aria:!0,data:!0}),{className:Et,style:ce,onMouseEnter:fe,onMouseLeave:le,onFocus:Me,onBlur:Ve,id:he,ref:At}),ve.createElement(me,{value:{onChange:qt,value:$e,disabled:we.disabled,name:we.name,optionType:we.optionType}},$t)))});var yn=ve.memo(Rt),tn=function(we,At){var Mn={};for(var _t in we)Object.prototype.hasOwnProperty.call(we,_t)&&At.indexOf(_t)<0&&(Mn[_t]=we[_t]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,_t=Object.getOwnPropertySymbols(we);$e<_t.length;$e++)At.indexOf(_t[$e])<0&&Object.prototype.propertyIsEnumerable.call(we,_t[$e])&&(Mn[_t[$e]]=we[_t[$e]]);return Mn};const Hn=(we,At)=>{const{getPrefixCls:Mn}=ve.useContext(ke.E_),{prefixCls:_t}=we,$e=tn(we,["prefixCls"]),dt=Mn("radio",_t);return ve.createElement(Ne,{value:"button"},ve.createElement(Jt,Object.assign({prefixCls:dt},$e,{type:"radio",ref:At})))};var Yn=ve.forwardRef(Hn);const tr=Jt;tr.Button=Yn,tr.Group=yn,tr.__ANT_RADIO=!0;var Qe=tr},12604:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Qe}});var ae=se(87462),Pe=se(67294),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},qe=Re,ve=se(74643),ke=function(At,Mn){return Pe.createElement(ve.Z,(0,ae.Z)({},At,{ref:Mn,icon:qe}))},Le=Pe.forwardRef(ke),xe=se(94184),me=se.n(xe),Ie=se(4942),st=se(97685),Ne=se(45987),xt=se(21770),pt=se(15105),ct=se(64217);function rt(we,At){var Mn=we.disabled,_t=we.prefixCls,$e=we.character,dt=we.characterRender,qt=we.index,Xn=we.count,bn=we.value,un=we.allowHalf,nn=we.focused,xn=we.onHover,Pn=we.onClick,De=function(ft){xn(ft,qt)},ue=function(ft){Pn(ft,qt)},ce=function(ft){ft.keyCode===pt.Z.ENTER&&Pn(ft,qt)},he=qt+1,fe=new Set([_t]);bn===0&&qt===0&&nn?fe.add("".concat(_t,"-focused")):un&&bn+.5>=he&&bnqt?"true":"false","aria-posinset":qt+1,"aria-setsize":Xn,tabIndex:Mn?-1:0},Pe.createElement("div",{className:"".concat(_t,"-first")},le),Pe.createElement("div",{className:"".concat(_t,"-second")},le)));return dt&&(Me=dt(Me,we)),Me}var Ee=Pe.forwardRef(rt);function at(){var we=Pe.useRef({});function At(_t){return we.current[_t]}function Mn(_t){return function($e){we.current[_t]=$e}}return[At,Mn]}function Yt(we){var At=we.pageXOffset,Mn="scrollLeft";if(typeof At!="number"){var _t=we.document;At=_t.documentElement[Mn],typeof At!="number"&&(At=_t.body[Mn])}return At}function Xe(we){var At,Mn,_t=we.ownerDocument,$e=_t.body,dt=_t&&_t.documentElement,qt=we.getBoundingClientRect();return At=qt.left,Mn=qt.top,At-=dt.clientLeft||$e.clientLeft||0,Mn-=dt.clientTop||$e.clientTop||0,{left:At,top:Mn}}function lt(we){var At=Xe(we),Mn=we.ownerDocument,_t=Mn.defaultView||Mn.parentWindow;return At.left+=Yt(_t),At.left}var Se=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ce(we,At){var Mn,_t=we.prefixCls,$e=_t===void 0?"rc-rate":_t,dt=we.className,qt=we.defaultValue,Xn=we.value,bn=we.count,un=bn===void 0?5:bn,nn=we.allowHalf,xn=nn===void 0?!1:nn,Pn=we.allowClear,De=Pn===void 0?!0:Pn,ue=we.character,ce=ue===void 0?"\u2605":ue,he=we.characterRender,fe=we.disabled,le=we.direction,Me=le===void 0?"ltr":le,Ve=we.tabIndex,ft=Ve===void 0?0:Ve,Ht=we.autoFocus,Zt=we.onHoverChange,jt=we.onChange,$t=we.onFocus,Je=we.onBlur,Et=we.onKeyDown,Lt=we.onMouseLeave,Xt=(0,Ne.Z)(we,Se),wt=at(),Nn=(0,st.Z)(wt,2),et=Nn[0],It=Nn[1],gn=Pe.useRef(null),hn=function(){if(!fe){var Nt;(Nt=gn.current)===null||Nt===void 0||Nt.focus()}};Pe.useImperativeHandle(At,function(){return{focus:hn,blur:function(){if(!fe){var Nt;(Nt=gn.current)===null||Nt===void 0||Nt.blur()}}}});var An=(0,xt.Z)(qt||0,{value:Xn}),Vn=(0,st.Z)(An,2),mr=Vn[0],ur=Vn[1],dr=(0,xt.Z)(null),Fr=(0,st.Z)(dr,2),nr=Fr[0],_r=Fr[1],oi=function(Nt,cn){var on=Me==="rtl",Kn=Nt+1;if(xn){var Hr=et(Nt),hr=lt(Hr),or=Hr.clientWidth;(on&&cn-hr>or/2||!on&&cn-hr0&&!on||cn===pt.Z.RIGHT&&Kn>0&&on?(xn?Kn-=.5:Kn-=1,Wr(Kn),Nt.preventDefault()):cn===pt.Z.LEFT&&Kn{const{componentCls:At}=we;return{[`${At}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:we.marginXS},"> div":{transition:`all ${we.motionDurationMid}, outline 0s`,"&:hover":{transform:we.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${we.lineWidth}px dashed ${we.starColor}`,transform:we.starHoverScale}},"&-first, &-second":{color:we.starBg,transition:`all ${we.motionDurationMid}`,userSelect:"none",[we.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${At}-star-first, &-half ${At}-star-second`]:{opacity:1},[`&-half ${At}-star-first, &-full ${At}-star-second`]:{color:"inherit"}}}},yn=we=>({[`&-rtl${we.componentCls}`]:{direction:"rtl"}}),tn=we=>{const{componentCls:At}=we;return{[At]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(we)),{display:"inline-block",margin:0,padding:0,color:we.starColor,fontSize:we.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${At} ${At}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Rt(we)),{[`+ ${At}-text`]:{display:"inline-block",marginInlineStart:we.marginXS,fontSize:we.fontSize}}),yn(we))}};var Hn=(0,tt.Z)("Rate",we=>{const At=(0,Jt.TS)(we,{});return[tn(At)]},we=>({starColor:we.yellow6,starSize:we.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:we.colorFillContent})),Yn=function(we,At){var Mn={};for(var _t in we)Object.prototype.hasOwnProperty.call(we,_t)&&At.indexOf(_t)<0&&(Mn[_t]=we[_t]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,_t=Object.getOwnPropertySymbols(we);$e<_t.length;$e++)At.indexOf(_t[$e])<0&&Object.prototype.propertyIsEnumerable.call(we,_t[$e])&&(Mn[_t[$e]]=we[_t[$e]]);return Mn},Qe=Pe.forwardRef((we,At)=>{const{prefixCls:Mn,className:_t,rootClassName:$e,style:dt,tooltips:qt,character:Xn=Pe.createElement(Le,null)}=we,bn=Yn(we,["prefixCls","className","rootClassName","style","tooltips","character"]),un=(fe,le)=>{let{index:Me}=le;return qt?Pe.createElement(ht.Z,{title:qt[Me]},fe):fe},{getPrefixCls:nn,direction:xn,rate:Pn}=Pe.useContext(Mt.E_),De=nn("rate",Mn),[ue,ce]=Hn(De),he=Object.assign(Object.assign({},Pn==null?void 0:Pn.style),dt);return ue(Pe.createElement(Ue,Object.assign({ref:At,character:Xn,characterRender:un},bn,{className:me()(_t,$e,ce,Pn==null?void 0:Pn.className),style:he,prefixCls:De,direction:xn})))})},11713:function(dn,en,se){"use strict";se.d(en,{default:function(){return Nr}});var ae=se(94184),Pe=se.n(ae),Re=se(87462),qe=se(74902),ve=se(4942),ke=se(1413),Le=se(97685),xe=se(45987),me=se(71002),Ie=se(67294);function st(Fe){var We=Ie.useRef();We.current=Fe;var Wt=Ie.useCallback(function(){for(var bt,sn=arguments.length,Ln=new Array(sn),zn=0;zn=Ft.F1&&Wt<=Ft.F12)return!1;switch(Wt){case Ft.ALT:case Ft.CAPS_LOCK:case Ft.CONTEXT_MENU:case Ft.CTRL:case Ft.DOWN:case Ft.END:case Ft.ESC:case Ft.HOME:case Ft.INSERT:case Ft.LEFT:case Ft.MAC_FF_META:case Ft.META:case Ft.NUMLOCK:case Ft.NUM_CENTER:case Ft.PAGE_DOWN:case Ft.PAGE_UP:case Ft.PAUSE:case Ft.PRINT_SCREEN:case Ft.RIGHT:case Ft.SHIFT:case Ft.UP:case Ft.WIN_KEY:case Ft.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(We){if(We>=Ft.ZERO&&We<=Ft.NINE||We>=Ft.NUM_ZERO&&We<=Ft.NUM_MULTIPLY||We>=Ft.A&&We<=Ft.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&We===0)return!0;switch(We){case Ft.SPACE:case Ft.QUESTION_MARK:case Ft.NUM_PLUS:case Ft.NUM_MINUS:case Ft.NUM_PERIOD:case Ft.NUM_DIVISION:case Ft.SEMICOLON:case Ft.DASH:case Ft.EQUALS:case Ft.COMMA:case Ft.PERIOD:case Ft.SLASH:case Ft.APOSTROPHE:case Ft.SINGLE_QUOTE:case Ft.OPEN_SQUARE_BRACKET:case Ft.BACKSLASH:case Ft.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},tt=Ft,Jt=se(47655);function Rt(Fe,We,Wt){var bt=Ie.useRef({});return(!("value"in bt.current)||Wt(bt.current.condition,We))&&(bt.current.value=Fe(),bt.current.condition=We),bt.current.value}function yn(Fe,We){typeof Fe=="function"?Fe(We):(0,me.Z)(Fe)==="object"&&Fe&&"current"in Fe&&(Fe.current=We)}function tn(){for(var Fe=arguments.length,We=new Array(Fe),Wt=0;Wt5&&arguments[5]!==void 0?arguments[5]:!1,zn=arguments.length>6?arguments[6]:void 0,ar=arguments.length>7?arguments[7]:void 0,ot=Ie.useMemo(function(){if((0,me.Z)(bt)==="object")return bt.clearIcon;if(sn)return sn},[bt,sn]),Ye=Ie.useMemo(function(){return!!(!Ln&&bt&&(Wt.length||zn)&&!(ar==="combobox"&&zn===""))},[bt,Ln,Wt.length,zn,ar]);return{allowClear:Ye,clearIcon:Ie.createElement(Qe,{className:"".concat(Fe,"-clear"),onMouseDown:We,customizeIcon:ot},"\xD7")}}var At=Ie.createContext(null);function Mn(){return Ie.useContext(At)}function _t(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,We=Ie.useState(!1),Wt=(0,Le.Z)(We,2),bt=Wt[0],sn=Wt[1],Ln=Ie.useRef(null),zn=function(){window.clearTimeout(Ln.current)};Ie.useEffect(function(){return zn},[]);var ar=function(Ye,yt){zn(),Ln.current=window.setTimeout(function(){sn(Ye),yt&&yt()},Fe)};return[bt,ar,zn]}function $e(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,We=Ie.useRef(null),Wt=Ie.useRef(null);Ie.useEffect(function(){return function(){window.clearTimeout(Wt.current)}},[]);function bt(sn){(sn||We.current===null)&&(We.current=sn),window.clearTimeout(Wt.current),Wt.current=window.setTimeout(function(){We.current=null},Fe)}return[function(){return We.current},bt]}function dt(Fe,We,Wt,bt){var sn=Ie.useRef(null);sn.current={open:We,triggerOpen:Wt,customizedTrigger:bt},Ie.useEffect(function(){function Ln(zn){var ar;if(!((ar=sn.current)!==null&&ar!==void 0&&ar.customizedTrigger)){var ot=zn.target;ot.shadowRoot&&zn.composed&&(ot=zn.composedPath()[0]||ot),sn.current.open&&Fe().filter(function(Ye){return Ye}).every(function(Ye){return!Ye.contains(ot)&&Ye!==ot})&&sn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ln),function(){return window.removeEventListener("mousedown",Ln)}},[])}var qt=`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`,Xn=`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`,bn="".concat(qt," ").concat(Xn).split(/[\s\n]+/),un="aria-",nn="data-";function xn(Fe,We){return Fe.indexOf(We)===0}function Pn(Fe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt;We===!1?Wt={aria:!0,data:!0,attr:!0}:We===!0?Wt={aria:!0}:Wt=(0,ke.Z)({},We);var bt={};return Object.keys(Fe).forEach(function(sn){(Wt.aria&&(sn==="role"||xn(sn,un))||Wt.data&&xn(sn,nn)||Wt.attr&&bn.includes(sn))&&(bt[sn]=Fe[sn])}),bt}var De=se(48555),ue=se(14075),ce=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],he=void 0;function fe(Fe,We){var Wt=Fe.prefixCls,bt=Fe.invalidate,sn=Fe.item,Ln=Fe.renderItem,zn=Fe.responsive,ar=Fe.responsiveDisabled,ot=Fe.registerSize,Ye=Fe.itemKey,yt=Fe.className,Qt=Fe.style,_n=Fe.children,mn=Fe.display,ln=Fe.order,sr=Fe.component,ir=sr===void 0?"div":sr,xr=(0,xe.Z)(Fe,ce),er=zn&&!mn;function Tn(Dr){ot(Ye,Dr)}Ie.useEffect(function(){return function(){Tn(null)}},[]);var Er=Ln&&sn!==he?Ln(sn):_n,zr;bt||(zr={opacity:er?0:1,height:er?0:he,overflowY:er?"hidden":he,order:zn?ln:he,pointerEvents:er?"none":he,position:er?"absolute":he});var Br={};er&&(Br["aria-hidden"]=!0);var Cr=Ie.createElement(ir,(0,Re.Z)({className:Pe()(!bt&&Wt,yt),style:(0,ke.Z)((0,ke.Z)({},zr),Qt)},Br,xr,{ref:We}),Er);return zn&&(Cr=Ie.createElement(De.Z,{onResize:function(ui){var ei=ui.offsetWidth;Tn(ei)},disabled:ar},Cr)),Cr}var le=Ie.forwardRef(fe);le.displayName="Item";var Me=le,Ve=se(77527),ft=se(73935),Ht=se(96523);function Zt(Fe){if(typeof MessageChannel=="undefined")(0,Ht.Z)(Fe);else{var We=new MessageChannel;We.port1.onmessage=function(){return Fe()},We.port2.postMessage(void 0)}}function jt(){var Fe=Ie.useRef(null),We=function(bt){Fe.current||(Fe.current=[],Zt(function(){(0,ft.unstable_batchedUpdates)(function(){Fe.current.forEach(function(sn){sn()}),Fe.current=null})})),Fe.current.push(bt)};return We}function $t(Fe,We){var Wt=Ie.useState(We),bt=(0,Le.Z)(Wt,2),sn=bt[0],Ln=bt[1],zn=(0,Ve.Z)(function(ar){Fe(function(){Ln(ar)})});return[sn,zn]}var Je=Ie.createContext(null),Et=["component"],Lt=["className"],Xt=["className"],wt=function(We,Wt){var bt=Ie.useContext(Je);if(!bt){var sn=We.component,Ln=sn===void 0?"div":sn,zn=(0,xe.Z)(We,Et);return Ie.createElement(Ln,(0,Re.Z)({},zn,{ref:Wt}))}var ar=bt.className,ot=(0,xe.Z)(bt,Lt),Ye=We.className,yt=(0,xe.Z)(We,Xt);return Ie.createElement(Je.Provider,{value:null},Ie.createElement(Me,(0,Re.Z)({ref:Wt,className:Pe()(ar,Ye)},ot,yt)))},Nn=Ie.forwardRef(wt);Nn.displayName="RawItem";var et=Nn,It=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],gn="responsive",hn="invalidate";function An(Fe){return"+ ".concat(Fe.length," ...")}function Vn(Fe,We){var Wt=Fe.prefixCls,bt=Wt===void 0?"rc-overflow":Wt,sn=Fe.data,Ln=sn===void 0?[]:sn,zn=Fe.renderItem,ar=Fe.renderRawItem,ot=Fe.itemKey,Ye=Fe.itemWidth,yt=Ye===void 0?10:Ye,Qt=Fe.ssr,_n=Fe.style,mn=Fe.className,ln=Fe.maxCount,sr=Fe.renderRest,ir=Fe.renderRawRest,xr=Fe.suffix,er=Fe.component,Tn=er===void 0?"div":er,Er=Fe.itemComponent,zr=Fe.onVisibleChange,Br=(0,xe.Z)(Fe,It),Cr=Qt==="full",Dr=jt(),ui=$t(Dr,null),ei=(0,Le.Z)(ui,2),ii=ei[0],Ti=ei[1],ea=ii||0,Si=$t(Dr,new Map),zi=(0,Le.Z)(Si,2),ai=zi[0],vi=zi[1],_i=$t(Dr,0),Ki=(0,Le.Z)(_i,2),Ea=Ki[0],Ta=Ki[1],va=$t(Dr,0),ra=(0,Le.Z)(va,2),Yi=ra[0],ki=ra[1],Ma=$t(Dr,0),Ri=(0,Le.Z)(Ma,2),si=Ri[0],Ui=Ri[1],ua=(0,Ie.useState)(null),ta=(0,Le.Z)(ua,2),oa=ta[0],Bi=ta[1],pa=(0,Ie.useState)(null),wa=(0,Le.Z)(pa,2),fa=wa[0],Sa=wa[1],La=Ie.useMemo(function(){return fa===null&&Cr?Number.MAX_SAFE_INTEGER:fa||0},[fa,ii]),Va=(0,Ie.useState)(!1),ha=(0,Le.Z)(Va,2),Ba=ha[0],qa=ha[1],Ya="".concat(bt,"-item"),so=Math.max(Ea,Yi),_a=ln===gn,Aa=Ln.length&&_a,Wi=ln===hn,Xi=Aa||typeof ln=="number"&&Ln.length>ln,da=(0,Ie.useMemo)(function(){var sa=Ln;return Aa?ii===null&&Cr?sa=Ln:sa=Ln.slice(0,Math.min(Ln.length,ea/yt)):typeof ln=="number"&&(sa=Ln.slice(0,ln)),sa},[Ln,yt,ii,ln,Aa]),Ca=(0,Ie.useMemo)(function(){return Aa?Ln.slice(La+1):Ln.slice(da.length)},[Ln,da,Aa,La]),Ka=(0,Ie.useCallback)(function(sa,Yr){var Oi;return typeof ot=="function"?ot(sa):(Oi=ot&&(sa==null?void 0:sa[ot]))!==null&&Oi!==void 0?Oi:Yr},[ot]),io=(0,Ie.useCallback)(zn||function(sa){return sa},[zn]);function ho(sa,Yr,Oi){fa===sa&&(Yr===void 0||Yr===oa)||(Sa(sa),Oi||(qa(saea){ho(Pi-1,sa-ji-si+Yi);break}}xr&&ia(0)+si>ea&&Bi(null)}},[ea,ai,Yi,si,Ka,da]);var Vi=Ba&&!!Ca.length,Oa={};oa!==null&&Aa&&(Oa={position:"absolute",left:oa,top:0});var Da={prefixCls:Ya,responsive:Aa,component:Er,invalidate:Wi},co=ar?function(sa,Yr){var Oi=Ka(sa,Yr);return Ie.createElement(Je.Provider,{key:Oi,value:(0,ke.Z)((0,ke.Z)({},Da),{},{order:Yr,item:sa,itemKey:Oi,registerSize:No,display:Yr<=La})},ar(sa,Yr))}:function(sa,Yr){var Oi=Ka(sa,Yr);return Ie.createElement(Me,(0,Re.Z)({},Da,{order:Yr,key:Oi,item:sa,renderItem:io,itemKey:Oi,registerSize:No,display:Yr<=La}))},ao,hs={order:Vi?La:Number.MAX_SAFE_INTEGER,className:"".concat(Ya,"-rest"),registerSize:lo,display:Vi};if(ir)ir&&(ao=Ie.createElement(Je.Provider,{value:(0,ke.Z)((0,ke.Z)({},Da),hs)},ir(Ca)));else{var $o=sr||An;ao=Ie.createElement(Me,(0,Re.Z)({},Da,hs),typeof $o=="function"?$o(Ca):$o)}var ps=Ie.createElement(Tn,(0,Re.Z)({className:Pe()(!Wi&&bt,mn),style:_n,ref:We},Br),da.map(co),Xi?ao:null,xr&&Ie.createElement(Me,(0,Re.Z)({},Da,{responsive:_a,responsiveDisabled:!Aa,order:La,className:"".concat(Ya,"-suffix"),registerSize:Bo,display:!0,style:Oa}),xr));return _a&&(ps=Ie.createElement(De.Z,{onResize:Po,disabled:!Aa},ps)),ps}var mr=Ie.forwardRef(Vn);mr.displayName="Overflow",mr.Item=et,mr.RESPONSIVE=gn,mr.INVALIDATE=hn;var ur=mr,dr=ur,Fr=function(We,Wt){var bt,sn,Ln=We.prefixCls,zn=We.id,ar=We.inputElement,ot=We.disabled,Ye=We.tabIndex,yt=We.autoFocus,Qt=We.autoComplete,_n=We.editable,mn=We.activeDescendantId,ln=We.value,sr=We.maxLength,ir=We.onKeyDown,xr=We.onMouseDown,er=We.onChange,Tn=We.onPaste,Er=We.onCompositionStart,zr=We.onCompositionEnd,Br=We.open,Cr=We.attrs,Dr=ar||Ie.createElement("input",null),ui=Dr,ei=ui.ref,ii=ui.props,Ti=ii.onKeyDown,ea=ii.onChange,Si=ii.onMouseDown,zi=ii.onCompositionStart,ai=ii.onCompositionEnd,vi=ii.style;return"maxLength"in Dr.props,Dr=Ie.cloneElement(Dr,(0,ke.Z)((0,ke.Z)((0,ke.Z)({type:"search"},ii),{},{id:zn,ref:tn(Wt,ei),disabled:ot,tabIndex:Ye,autoComplete:Qt||"off",autoFocus:yt,className:Pe()("".concat(Ln,"-selection-search-input"),(bt=Dr)===null||bt===void 0||(sn=bt.props)===null||sn===void 0?void 0:sn.className),role:"combobox","aria-label":"Search","aria-expanded":Br||!1,"aria-haspopup":"listbox","aria-owns":"".concat(zn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(zn,"_list"),"aria-activedescendant":Br?mn:void 0},Cr),{},{value:_n?ln:"",maxLength:sr,readOnly:!_n,unselectable:_n?null:"on",style:(0,ke.Z)((0,ke.Z)({},vi),{},{opacity:_n?null:0}),onKeyDown:function(Ki){ir(Ki),Ti&&Ti(Ki)},onMouseDown:function(Ki){xr(Ki),Si&&Si(Ki)},onChange:function(Ki){er(Ki),ea&&ea(Ki)},onCompositionStart:function(Ki){Er(Ki),zi&&zi(Ki)},onCompositionEnd:function(Ki){zr(Ki),ai&&ai(Ki)},onPaste:Tn})),Dr},nr=Ie.forwardRef(Fr);nr.displayName="Input";var _r=nr;function oi(Fe){return Array.isArray(Fe)?Fe:Fe!==void 0?[Fe]:[]}var Wr=typeof window!="undefined"&&window.document&&window.document.documentElement,xi=Wr;function ti(Fe){return Fe!=null}function Ct(Fe){return!Fe&&Fe!==0}function wn(Fe){return["string","number"].includes((0,me.Z)(Fe))}function Rn(Fe){var We=void 0;return Fe&&(wn(Fe.title)?We=Fe.title.toString():wn(Fe.label)&&(We=Fe.label.toString())),We}function an(Fe,We){xi?Ie.useLayoutEffect(Fe,We):Ie.useEffect(Fe,We)}function vr(Fe){var We;return(We=Fe.key)!==null&&We!==void 0?We:Fe.value}var lr=function(We){We.preventDefault(),We.stopPropagation()},Gn=function(We){var Wt=We.id,bt=We.prefixCls,sn=We.values,Ln=We.open,zn=We.searchValue,ar=We.autoClearSearchValue,ot=We.inputRef,Ye=We.placeholder,yt=We.disabled,Qt=We.mode,_n=We.showSearch,mn=We.autoFocus,ln=We.autoComplete,sr=We.activeDescendantId,ir=We.tabIndex,xr=We.removeIcon,er=We.maxTagCount,Tn=We.maxTagTextLength,Er=We.maxTagPlaceholder,zr=Er===void 0?function(Bi){return"+ ".concat(Bi.length," ...")}:Er,Br=We.tagRender,Cr=We.onToggleOpen,Dr=We.onRemove,ui=We.onInputChange,ei=We.onInputPaste,ii=We.onInputKeyDown,Ti=We.onInputMouseDown,ea=We.onInputCompositionStart,Si=We.onInputCompositionEnd,zi=Ie.useRef(null),ai=(0,Ie.useState)(0),vi=(0,Le.Z)(ai,2),_i=vi[0],Ki=vi[1],Ea=(0,Ie.useState)(!1),Ta=(0,Le.Z)(Ea,2),va=Ta[0],ra=Ta[1],Yi="".concat(bt,"-selection"),ki=Ln||Qt==="multiple"&&ar===!1||Qt==="tags"?zn:"",Ma=Qt==="tags"||Qt==="multiple"&&ar===!1||_n&&(Ln||va);an(function(){Ki(zi.current.scrollWidth)},[ki]);function Ri(Bi,pa,wa,fa,Sa){return Ie.createElement("span",{className:Pe()("".concat(Yi,"-item"),(0,ve.Z)({},"".concat(Yi,"-item-disabled"),wa)),title:Rn(Bi)},Ie.createElement("span",{className:"".concat(Yi,"-item-content")},pa),fa&&Ie.createElement(Qe,{className:"".concat(Yi,"-item-remove"),onMouseDown:lr,onClick:Sa,customizeIcon:xr},"\xD7"))}function si(Bi,pa,wa,fa,Sa){var La=function(ha){lr(ha),Cr(!Ln)};return Ie.createElement("span",{onMouseDown:La},Br({label:pa,value:Bi,disabled:wa,closable:fa,onClose:Sa}))}function Ui(Bi){var pa=Bi.disabled,wa=Bi.label,fa=Bi.value,Sa=!yt&&!pa,La=wa;if(typeof Tn=="number"&&(typeof wa=="string"||typeof wa=="number")){var Va=String(La);Va.length>Tn&&(La="".concat(Va.slice(0,Tn),"..."))}var ha=function(qa){qa&&qa.stopPropagation(),Dr(Bi)};return typeof Br=="function"?si(fa,La,pa,Sa,ha):Ri(Bi,La,pa,Sa,ha)}function ua(Bi){var pa=typeof zr=="function"?zr(Bi):zr;return Ri({title:pa},pa,!1)}var ta=Ie.createElement("div",{className:"".concat(Yi,"-search"),style:{width:_i},onFocus:function(){ra(!0)},onBlur:function(){ra(!1)}},Ie.createElement(_r,{ref:ot,open:Ln,prefixCls:bt,id:Wt,inputElement:null,disabled:yt,autoFocus:mn,autoComplete:ln,editable:Ma,activeDescendantId:sr,value:ki,onKeyDown:ii,onMouseDown:Ti,onChange:ui,onPaste:ei,onCompositionStart:ea,onCompositionEnd:Si,tabIndex:ir,attrs:Pn(We,!0)}),Ie.createElement("span",{ref:zi,className:"".concat(Yi,"-search-mirror"),"aria-hidden":!0},ki,"\xA0")),oa=Ie.createElement(dr,{prefixCls:"".concat(Yi,"-overflow"),data:sn,renderItem:Ui,renderRest:ua,suffix:ta,itemKey:vr,maxCount:er});return Ie.createElement(Ie.Fragment,null,oa,!sn.length&&!ki&&Ie.createElement("span",{className:"".concat(Yi,"-placeholder")},Ye))},jn=Gn,nt=function(We){var Wt=We.inputElement,bt=We.prefixCls,sn=We.id,Ln=We.inputRef,zn=We.disabled,ar=We.autoFocus,ot=We.autoComplete,Ye=We.activeDescendantId,yt=We.mode,Qt=We.open,_n=We.values,mn=We.placeholder,ln=We.tabIndex,sr=We.showSearch,ir=We.searchValue,xr=We.activeValue,er=We.maxLength,Tn=We.onInputKeyDown,Er=We.onInputMouseDown,zr=We.onInputChange,Br=We.onInputPaste,Cr=We.onInputCompositionStart,Dr=We.onInputCompositionEnd,ui=We.title,ei=Ie.useState(!1),ii=(0,Le.Z)(ei,2),Ti=ii[0],ea=ii[1],Si=yt==="combobox",zi=Si||sr,ai=_n[0],vi=ir||"";Si&&xr&&!Ti&&(vi=xr),Ie.useEffect(function(){Si&&ea(!1)},[Si,xr]);var _i=yt!=="combobox"&&!Qt&&!sr?!1:!!vi,Ki=ui===void 0?Rn(ai):ui,Ea=function(){if(ai)return null;var va=_i?{visibility:"hidden"}:void 0;return Ie.createElement("span",{className:"".concat(bt,"-selection-placeholder"),style:va},mn)};return Ie.createElement(Ie.Fragment,null,Ie.createElement("span",{className:"".concat(bt,"-selection-search")},Ie.createElement(_r,{ref:Ln,prefixCls:bt,id:sn,open:Qt,inputElement:Wt,disabled:zn,autoFocus:ar,autoComplete:ot,editable:zi,activeDescendantId:Ye,value:vi,onKeyDown:Tn,onMouseDown:Er,onChange:function(va){ea(!0),zr(va)},onPaste:Br,onCompositionStart:Cr,onCompositionEnd:Dr,tabIndex:ln,attrs:Pn(We,!0),maxLength:Si?er:void 0})),!Si&&ai?Ie.createElement("span",{className:"".concat(bt,"-selection-item"),title:Ki,style:_i?{visibility:"hidden"}:void 0},ai.label):null,Ea())},mt=nt;function Bt(Fe){return![tt.ESC,tt.SHIFT,tt.BACKSPACE,tt.TAB,tt.WIN_KEY,tt.ALT,tt.META,tt.WIN_KEY_RIGHT,tt.CTRL,tt.SEMICOLON,tt.EQUALS,tt.CAPS_LOCK,tt.CONTEXT_MENU,tt.F1,tt.F2,tt.F3,tt.F4,tt.F5,tt.F6,tt.F7,tt.F8,tt.F9,tt.F10,tt.F11,tt.F12].includes(Fe)}var rn=function(We,Wt){var bt=(0,Ie.useRef)(null),sn=(0,Ie.useRef)(!1),Ln=We.prefixCls,zn=We.open,ar=We.mode,ot=We.showSearch,Ye=We.tokenWithEnter,yt=We.autoClearSearchValue,Qt=We.onSearch,_n=We.onSearchSubmit,mn=We.onToggleOpen,ln=We.onInputKeyDown,sr=We.domRef;Ie.useImperativeHandle(Wt,function(){return{focus:function(){bt.current.focus()},blur:function(){bt.current.blur()}}});var ir=$e(0),xr=(0,Le.Z)(ir,2),er=xr[0],Tn=xr[1],Er=function(vi){var _i=vi.which;(_i===tt.UP||_i===tt.DOWN)&&vi.preventDefault(),ln&&ln(vi),_i===tt.ENTER&&ar==="tags"&&!sn.current&&!zn&&(_n==null||_n(vi.target.value)),Bt(_i)&&mn(!0)},zr=function(){Tn(!0)},Br=(0,Ie.useRef)(null),Cr=function(vi){Qt(vi,!0,sn.current)!==!1&&mn(!0)},Dr=function(){sn.current=!0},ui=function(vi){sn.current=!1,ar!=="combobox"&&Cr(vi.target.value)},ei=function(vi){var _i=vi.target.value;if(Ye&&Br.current&&/[\r\n]/.test(Br.current)){var Ki=Br.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_i=_i.replace(Ki,Br.current)}Br.current=null,Cr(_i)},ii=function(vi){var _i=vi.clipboardData,Ki=_i.getData("text");Br.current=Ki},Ti=function(vi){var _i=vi.target;if(_i!==bt.current){var Ki=document.body.style.msTouchAction!==void 0;Ki?setTimeout(function(){bt.current.focus()}):bt.current.focus()}},ea=function(vi){var _i=er();vi.target!==bt.current&&!_i&&ar!=="combobox"&&vi.preventDefault(),(ar!=="combobox"&&(!ot||!_i)||!zn)&&(zn&&yt!==!1&&Qt("",!0,!1),mn())},Si={inputRef:bt,onInputKeyDown:Er,onInputMouseDown:zr,onInputChange:ei,onInputPaste:ii,onInputCompositionStart:Dr,onInputCompositionEnd:ui},zi=ar==="multiple"||ar==="tags"?Ie.createElement(jn,(0,Re.Z)({},We,Si)):Ie.createElement(mt,(0,Re.Z)({},We,Si));return Ie.createElement("div",{ref:sr,className:"".concat(Ln,"-selector"),onClick:Ti,onMouseDown:ea},zi)},Ze=Ie.forwardRef(rn);Ze.displayName="Selector";var St=Ze,Vt=se(62709),Nt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],cn=function(We){var Wt=We===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"}}},on=function(We,Wt){var bt=We.prefixCls,sn=We.disabled,Ln=We.visible,zn=We.children,ar=We.popupElement,ot=We.animation,Ye=We.transitionName,yt=We.dropdownStyle,Qt=We.dropdownClassName,_n=We.direction,mn=_n===void 0?"ltr":_n,ln=We.placement,sr=We.builtinPlacements,ir=We.dropdownMatchSelectWidth,xr=We.dropdownRender,er=We.dropdownAlign,Tn=We.getPopupContainer,Er=We.empty,zr=We.getTriggerDOMNode,Br=We.onPopupVisibleChange,Cr=We.onPopupMouseEnter,Dr=(0,xe.Z)(We,Nt),ui="".concat(bt,"-dropdown"),ei=ar;xr&&(ei=xr(ar));var ii=Ie.useMemo(function(){return sr||cn(ir)},[sr,ir]),Ti=ot?"".concat(ui,"-").concat(ot):Ye,ea=typeof ir=="number",Si=Ie.useMemo(function(){return ea?null:ir===!1?"minWidth":"width"},[ir,ea]),zi=yt;ea&&(zi=(0,ke.Z)((0,ke.Z)({},zi),{},{width:ir}));var ai=Ie.useRef(null);return Ie.useImperativeHandle(Wt,function(){return{getPopupElement:function(){return ai.current}}}),Ie.createElement(Vt.Z,(0,Re.Z)({},Dr,{showAction:Br?["click"]:[],hideAction:Br?["click"]:[],popupPlacement:ln||(mn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ii,prefixCls:ui,popupTransitionName:Ti,popup:Ie.createElement("div",{ref:ai,onMouseEnter:Cr},ei),stretch:Si,popupAlign:er,popupVisible:Ln,getPopupContainer:Tn,popupClassName:Pe()(Qt,(0,ve.Z)({},"".concat(ui,"-empty"),Er)),popupStyle:zi,getTriggerDOMNode:zr,onPopupVisibleChange:Br}),zn)},Kn=Ie.forwardRef(on);Kn.displayName="SelectTrigger";var Hr=Kn,hr=se(84506);function or(Fe,We){var Wt=Fe.key,bt;return"value"in Fe&&(bt=Fe.value),Wt!=null?Wt:bt!==void 0?bt:"rc-index-key-".concat(We)}function Ar(Fe,We){var Wt=Fe||{},bt=Wt.label,sn=Wt.value,Ln=Wt.options,zn=Wt.groupLabel,ar=bt||(We?"children":"label");return{label:ar,value:sn||"value",options:Ln||"options",groupLabel:zn||ar}}function Lr(Fe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wt=We.fieldNames,bt=We.childrenAsData,sn=[],Ln=Ar(Wt,!1),zn=Ln.label,ar=Ln.value,ot=Ln.options,Ye=Ln.groupLabel;function yt(Qt,_n){Qt.forEach(function(mn){if(_n||!(ot in mn)){var ln=mn[ar];sn.push({key:or(mn,sn.length),groupOption:_n,data:mn,label:mn[zn],value:ln})}else{var sr=mn[Ye];sr===void 0&&bt&&(sr=mn.label),sn.push({key:or(mn,sn.length),group:!0,data:mn,label:sr}),yt(mn[ot],!0)}})}return yt(Fe,!1),sn}function kt(Fe){var We=(0,ke.Z)({},Fe);return"props"in We||Object.defineProperty(We,"props",{get:function(){return Mt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),We}}),We}function gt(Fe,We){if(!We||!We.length)return null;var Wt=!1;function bt(Ln,zn){var ar=(0,hr.Z)(zn),ot=ar[0],Ye=ar.slice(1);if(!ot)return[Ln];var yt=Ln.split(ot);return Wt=Wt||yt.length>1,yt.reduce(function(Qt,_n){return[].concat((0,qe.Z)(Qt),(0,qe.Z)(bt(_n,Ye)))},[]).filter(function(Qt){return Qt})}var sn=bt(Fe,We);return Wt?sn:null}var Dt=["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"],En=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function qn(Fe){return Fe==="tags"||Fe==="multiple"}var Cn=Ie.forwardRef(function(Fe,We){var Wt,bt,sn=Fe.id,Ln=Fe.prefixCls,zn=Fe.className,ar=Fe.showSearch,ot=Fe.tagRender,Ye=Fe.direction,yt=Fe.omitDomProps,Qt=Fe.displayValues,_n=Fe.onDisplayValuesChange,mn=Fe.emptyOptions,ln=Fe.notFoundContent,sr=ln===void 0?"Not Found":ln,ir=Fe.onClear,xr=Fe.mode,er=Fe.disabled,Tn=Fe.loading,Er=Fe.getInputElement,zr=Fe.getRawInputElement,Br=Fe.open,Cr=Fe.defaultOpen,Dr=Fe.onDropdownVisibleChange,ui=Fe.activeValue,ei=Fe.onActiveValueChange,ii=Fe.activeDescendantId,Ti=Fe.searchValue,ea=Fe.autoClearSearchValue,Si=Fe.onSearch,zi=Fe.onSearchSplit,ai=Fe.tokenSeparators,vi=Fe.allowClear,_i=Fe.suffixIcon,Ki=Fe.clearIcon,Ea=Fe.OptionList,Ta=Fe.animation,va=Fe.transitionName,ra=Fe.dropdownStyle,Yi=Fe.dropdownClassName,ki=Fe.dropdownMatchSelectWidth,Ma=Fe.dropdownRender,Ri=Fe.dropdownAlign,si=Fe.placement,Ui=Fe.builtinPlacements,ua=Fe.getPopupContainer,ta=Fe.showAction,oa=ta===void 0?[]:ta,Bi=Fe.onFocus,pa=Fe.onBlur,wa=Fe.onKeyUp,fa=Fe.onKeyDown,Sa=Fe.onMouseDown,La=(0,xe.Z)(Fe,Dt),Va=qn(xr),ha=(ar!==void 0?ar:Va)||xr==="combobox",Ba=(0,ke.Z)({},La);En.forEach(function(Na){delete Ba[Na]}),yt==null||yt.forEach(function(Na){delete Ba[Na]});var qa=Ie.useState(!1),Ya=(0,Le.Z)(qa,2),so=Ya[0],_a=Ya[1];Ie.useEffect(function(){_a(ht())},[]);var Aa=Ie.useRef(null),Wi=Ie.useRef(null),Xi=Ie.useRef(null),da=Ie.useRef(null),Ca=Ie.useRef(null),Ka=_t(),io=(0,Le.Z)(Ka,3),ho=io[0],Po=io[1],No=io[2];Ie.useImperativeHandle(We,function(){var Na,ma;return{focus:(Na=da.current)===null||Na===void 0?void 0:Na.focus,blur:(ma=da.current)===null||ma===void 0?void 0:ma.blur,scrollTo:function(es){var ga;return(ga=Ca.current)===null||ga===void 0?void 0:ga.scrollTo(es)}}});var lo=Ie.useMemo(function(){var Na;if(xr!=="combobox")return Ti;var ma=(Na=Qt[0])===null||Na===void 0?void 0:Na.value;return typeof ma=="string"||typeof ma=="number"?String(ma):""},[Ti,xr,Qt]),Bo=xr==="combobox"&&typeof Er=="function"&&Er()||null,ia=typeof zr=="function"&&zr(),Vi=Hn(Wi,ia==null||(Wt=ia.props)===null||Wt===void 0?void 0:Wt.ref),Oa=Ie.useState(!1),Da=(0,Le.Z)(Oa,2),co=Da[0],ao=Da[1];pt(function(){ao(!0)},[]);var hs=at(!1,{defaultValue:Cr,value:Br}),$o=(0,Le.Z)(hs,2),ps=$o[0],sa=$o[1],Yr=co?ps:!1,Oi=!sr&&mn;(er||Oi&&Yr&&xr==="combobox")&&(Yr=!1);var Pi=Oi?!1:Yr,ji=Ie.useCallback(function(Na){var ma=Na!==void 0?Na:!Yr;er||(sa(ma),Yr!==ma&&(Dr==null||Dr(ma)))},[er,Yr,sa,Dr]),Wa=Ie.useMemo(function(){return(ai||[]).some(function(Na){return[` `,`\r `].includes(Na)})},[ai]),Ga=function(ma,Wo,es){var ga=!0,Ha=ma;ei==null||ei(null);var Fa=es?null:gt(ma,ai);return xr!=="combobox"&&Fa&&(Ha="",zi==null||zi(Fa),ji(!1),ga=!1),Si&&lo!==Ha&&Si(Ha,{source:Wo?"typing":"effect"}),ga},_o=function(ma){!ma||!ma.trim()||Si(ma,{source:"submit"})};Ie.useEffect(function(){!Yr&&!Va&&xr!=="combobox"&&Ga("",!1,!1)},[Yr]),Ie.useEffect(function(){ps&&er&&sa(!1),er&&Po(!1)},[er]);var Zo=$e(),ls=(0,Le.Z)(Zo,2),ya=ls[0],Ro=ls[1],cs=function(ma){var Wo=ya(),es=ma.which;if(es===tt.ENTER&&(xr!=="combobox"&&ma.preventDefault(),Yr||ji(!0)),Ro(!!lo),es===tt.BACKSPACE&&!Wo&&Va&&!lo&&Qt.length){for(var ga=(0,qe.Z)(Qt),Ha=null,Fa=ga.length-1;Fa>=0;Fa-=1){var po=ga[Fa];if(!po.disabled){ga.splice(Fa,1),Ha=po;break}}Ha&&_n(ga,{type:"remove",values:[Ha]})}for(var is=arguments.length,Ws=new Array(is>1?is-1:0),gs=1;gs1?Wo-1:0),ga=1;ga1?Fa-1:0),is=1;is1&&arguments[1]!==void 0?arguments[1]:{},Wt=[];return Ie.Children.forEach(Fe,function(bt){bt==null&&!We.keepEmpty||(Array.isArray(bt)?Wt=Wt.concat(Ni(bt)):(0,Jt.isFragment)(bt)&&bt.props?Wt=Wt.concat(Ni(bt.props.children,We)):Wt.push(bt))}),Wt}var Ci=["children","value"],Qi=["children"];function Ei(Fe){var We=Fe,Wt=We.key,bt=We.props,sn=bt.children,Ln=bt.value,zn=(0,xe.Z)(bt,Ci);return(0,ke.Z)({key:Wt,value:Ln!==void 0?Ln:Wt,children:sn},zn)}function pi(Fe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ni(Fe).map(function(Wt,bt){if(!Ie.isValidElement(Wt)||!Wt.type)return null;var sn=Wt,Ln=sn.type.isSelectOptGroup,zn=sn.key,ar=sn.props,ot=ar.children,Ye=(0,xe.Z)(ar,Qi);return We||!Ln?Ei(Wt):(0,ke.Z)((0,ke.Z)({key:"__RC_SELECT_GRP__".concat(zn===null?bt:zn,"__"),label:zn},Ye),{},{options:pi(ot)})}).filter(function(Wt){return Wt})}function Hi(Fe,We,Wt,bt,sn){return Ie.useMemo(function(){var Ln=Fe,zn=!Fe;zn&&(Ln=pi(We));var ar=new Map,ot=new Map,Ye=function(_n,mn,ln){ln&&typeof ln=="string"&&_n.set(mn[ln],mn)};function yt(Qt){for(var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn=0;mn1&&arguments[1]!==void 0?arguments[1]:1,ua=ei.length,ta=0;ta1&&arguments[1]!==void 0?arguments[1]:!1;_i(si);var ua={source:Ui?"keyboard":"mouse"},ta=ei[si];if(!ta){sr(null,-1,ua);return}sr(ta.value,si,ua)};(0,Ie.useEffect)(function(){Ki(ir!==!1?Si(0):-1)},[ei.length,Ye]);var Ea=Ie.useCallback(function(Ri){return Tn.has(Ri)&&ot!=="combobox"},[ot,(0,qe.Z)(Tn).toString(),Tn.size]);(0,Ie.useEffect)(function(){var Ri=setTimeout(function(){if(!ar&&zn&&Tn.size===1){var Ui=Array.from(Tn)[0],ua=ei.findIndex(function(ta){var oa=ta.data;return oa.value===Ui});ua!==-1&&(Ki(ua),ea(ua))}});if(zn){var si;(si=ii.current)===null||si===void 0||si.scrollTo(void 0)}return function(){return clearTimeout(Ri)}},[zn,Ye,ln.length]);var Ta=function(si){si!==void 0&&xr(si,{selected:!Tn.has(si)}),ar||yt(!1)};if(Ie.useImperativeHandle(Wt,function(){return{onKeyDown:function(si){var Ui=si.which,ua=si.ctrlKey;switch(Ui){case tt.N:case tt.P:case tt.UP:case tt.DOWN:{var ta=0;if(Ui===tt.UP?ta=-1:Ui===tt.DOWN?ta=1:fn()&&ua&&(Ui===tt.N?ta=1:Ui===tt.P&&(ta=-1)),ta!==0){var oa=Si(vi+ta,ta);ea(oa),Ki(oa,!0)}break}case tt.ENTER:{var Bi=ei[vi];Bi&&!Bi.data.disabled?Ta(Bi.value):Ta(void 0),zn&&si.preventDefault();break}case tt.ESC:yt(!1),zn&&si.stopPropagation()}},onKeyUp:function(){},scrollTo:function(si){ea(si)}}}),ei.length===0)return Ie.createElement("div",{role:"listbox",id:"".concat(Ln,"_list"),className:"".concat(ui,"-empty"),onMouseDown:Ti},Qt);var va=Object.keys(Er).map(function(Ri){return Er[Ri]}),ra=function(si){return si.label};function Yi(Ri,si){var Ui=Ri.group;return{role:Ui?"presentation":"option",id:"".concat(Ln,"_list_").concat(si)}}var ki=function(si){var Ui=ei[si];if(!Ui)return null;var ua=Ui.data||{},ta=ua.value,oa=Ui.group,Bi=Pn(ua,!0),pa=ra(Ui);return Ui?Ie.createElement("div",(0,Re.Z)({"aria-label":typeof pa=="string"&&!oa?pa:null},Bi,{key:si},Yi(Ui,si),{"aria-selected":Ea(ta)}),ta):null},Ma={role:"listbox",id:"".concat(Ln,"_list")};return Ie.createElement(Ie.Fragment,null,zr&&Ie.createElement("div",(0,Re.Z)({},Ma,{style:{height:0,width:0,overflow:"hidden"}}),ki(vi-1),ki(vi),ki(vi+1)),Ie.createElement(hi.Z,{itemKey:"key",ref:ii,data:ei,height:Cr,itemHeight:Dr,fullHeight:!1,onMouseDown:Ti,onScroll:_n,virtual:zr,direction:Br,innerProps:zr?null:Ma},function(Ri,si){var Ui,ua=Ri.group,ta=Ri.groupOption,oa=Ri.data,Bi=Ri.label,pa=Ri.value,wa=oa.key;if(ua){var fa,Sa=(fa=oa.title)!==null&&fa!==void 0?fa:Qn(Bi)?Bi.toString():void 0;return Ie.createElement("div",{className:Pe()(ui,"".concat(ui,"-group")),title:Sa},Bi!==void 0?Bi:wa)}var La=oa.disabled,Va=oa.title,ha=oa.children,Ba=oa.style,qa=oa.className,Ya=(0,xe.Z)(oa,Bn),so=na(Ya,va),_a=Ea(pa),Aa="".concat(ui,"-option"),Wi=Pe()(ui,Aa,qa,(Ui={},(0,ve.Z)(Ui,"".concat(Aa,"-grouped"),ta),(0,ve.Z)(Ui,"".concat(Aa,"-active"),vi===si&&!La),(0,ve.Z)(Ui,"".concat(Aa,"-disabled"),La),(0,ve.Z)(Ui,"".concat(Aa,"-selected"),_a),Ui)),Xi=ra(Ri),da=!er||typeof er=="function"||_a,Ca=typeof Xi=="number"?Xi:Xi||pa,Ka=Qn(Ca)?Ca.toString():void 0;return Va!==void 0&&(Ka=Va),Ie.createElement("div",(0,Re.Z)({},Pn(so),zr?{}:Yi(Ri,si),{"aria-selected":_a,className:Wi,title:Ka,onMouseMove:function(){vi===si||La||Ki(si)},onClick:function(){La||Ta(pa)},style:Ba}),Ie.createElement("div",{className:"".concat(Aa,"-content")},Ca),Ie.isValidElement(er)||_a,da&&Ie.createElement(Qe,{className:"".concat(ui,"-option-state"),customizeIcon:er,customizeIconProps:{isSelected:_a}},_a?"\u2713":null))}))},Zr=Ie.forwardRef(Or);Zr.displayName="OptionList";var Jr=Zr;function ri(Fe){var We=Fe.mode,Wt=Fe.options,bt=Fe.children,sn=Fe.backfill,Ln=Fe.allowClear,zn=Fe.placeholder,ar=Fe.getInputElement,ot=Fe.showSearch,Ye=Fe.onSearch,yt=Fe.defaultOpen,Qt=Fe.autoFocus,_n=Fe.labelInValue,mn=Fe.value,ln=Fe.inputValue,sr=Fe.optionLabelProp,ir=isMultiple(We),xr=ot!==void 0?ot:ir||We==="combobox",er=Wt||convertChildrenToData(bt);if(warning(We!=="tags"||er.every(function(Br){return!Br.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),We==="tags"||We==="combobox"){var Tn=er.some(function(Br){return Br.options?Br.options.some(function(Cr){return typeof("value"in Cr?Cr.value:Cr.key)=="number"}):typeof("value"in Br?Br.value:Br.key)=="number"});warning(!Tn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(We!=="combobox"||!sr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(We==="combobox"||!sn,"`backfill` only works with `combobox` mode."),warning(We==="combobox"||!ar,"`getInputElement` only work with `combobox` mode."),noteOnce(We!=="combobox"||!ar||!Ln||!zn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ye&&!xr&&We!=="combobox"&&We!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!yt||Qt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),mn!=null){var Er=toArray(mn);warning(!_n||Er.every(function(Br){return _typeof(Br)==="object"&&("key"in Br||"value"in Br)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ir||Array.isArray(mn),"`value` should be array when `mode` is `multiple` or `tags`")}if(bt){var zr=null;toNodeArray(bt).some(function(Br){if(!React.isValidElement(Br)||!Br.type)return!1;var Cr=Br,Dr=Cr.type;if(Dr.isSelectOption)return!1;if(Dr.isSelectOptGroup){var ui=toNodeArray(Br.props.children).every(function(ei){return!React.isValidElement(ei)||!Br.type||ei.type.isSelectOption?!0:(zr=ei.type,!1)});return!ui}return zr=Dr,!0}),zr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(zr.displayName||zr.name||zr,"`.")),warning(ln===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function qr(Fe,We){if(Fe){var Wt=function bt(sn){for(var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zn=0;zn2&&arguments[2]!==void 0?arguments[2]:{},ji=Pi.source,Wa=ji===void 0?"keyboard":ji;Vi(Oi),zn&&bt==="combobox"&&Yr!==null&&Wa==="keyboard"&&No(String(Yr))},[zn,bt]),co=function(Oi,Pi,ji){var Wa=function(){var ms,Ho=qa(Oi);return[vi?{label:Ho==null?void 0:Ho[Yi.label],value:Oi,key:(ms=Ho==null?void 0:Ho.key)!==null&&ms!==void 0?ms:Oi}:Oi,kt(Ho)]};if(Pi&&mn){var Ga=Wa(),_o=(0,Le.Z)(Ga,2),Zo=_o[0],ls=_o[1];mn(Zo,ls)}else if(!Pi&&ln&&ji!=="clear"){var ya=Wa(),Ro=(0,Le.Z)(ya,2),cs=Ro[0],ul=Ro[1];ln(cs,ul)}},ao=$i(function(Yr,Oi){var Pi,ji=Ta?Oi.selected:!0;ji?Pi=Ta?[].concat((0,qe.Z)(Ba),[Yr]):[Yr]:Pi=Ba.filter(function(Wa){return Wa.value!==Yr}),Ka(Pi),co(Yr,ji),bt==="combobox"?No(""):(!qn||_n)&&(si(""),No(""))}),hs=function(Oi,Pi){Ka(Oi);var ji=Pi.type,Wa=Pi.values;(ji==="remove"||ji==="clear")&&Wa.forEach(function(Ga){co(Ga.value,!1,ji)})},$o=function(Oi,Pi){if(si(Oi),No(null),Pi.source==="submit"){var ji=(Oi||"").trim();if(ji){var Wa=Array.from(new Set([].concat((0,qe.Z)(so),[ji])));Ka(Wa),co(ji,!0),si("")}return}Pi.source!=="blur"&&(bt==="combobox"&&Ka(Oi),yt==null||yt(Oi))},ps=function(Oi){var Pi=Oi;bt!=="tags"&&(Pi=Oi.map(function(Wa){var Ga=ta.get(Wa);return Ga==null?void 0:Ga.value}).filter(function(Wa){return Wa!==void 0}));var ji=Array.from(new Set([].concat((0,qe.Z)(so),(0,qe.Z)(Pi))));Ka(ji),ji.forEach(function(Wa){co(Wa,!0)})},sa=Ie.useMemo(function(){var Yr=ui!==!1&&ir!==!1;return(0,ke.Z)((0,ke.Z)({},Ui),{},{flattenOptions:Ca,onActiveValue:Da,defaultActiveFirstOption:Oa,onSelect:ao,menuItemSelectedIcon:Dr,rawValues:so,fieldNames:Yi,virtual:Yr,direction:ei,listHeight:Ti,listItemHeight:Si,childrenAsData:va})},[Ui,Ca,Da,Oa,ao,Dr,so,Yi,ui,ir,Ti,Si,va]);return Ie.createElement(Tt.Provider,{value:sa},Ie.createElement(Dn,(0,Re.Z)({},Ki,{id:Ea,prefixCls:Ln,ref:We,omitDomProps:jr,mode:bt,displayValues:Ya,onDisplayValuesChange:hs,direction:ei,searchValue:Ri,onSearch:$o,autoClearSearchValue:_n,onSearchSplit:ps,dropdownMatchSelectWidth:ir,OptionList:Jr,emptyOptions:!Ca.length,activeValue:Po,activeDescendantId:"".concat(Ea,"_list_").concat(ia)})))}),Li=Di;Li.Option=ca,Li.OptGroup=Mi;var Te=Li,He=Te,Ke=se(10366),Ge=se(8745),ut=se(33603),vt=se(9708),Kt=se(53124),vn=se(98866),kn=se(88258),yr=se(98675),Pr=se(65223),cr=se(4173),Wn=se(87244),Fn=se(13458),$n=se(78642),rr=se(46163),Ir=function(Fe,We){var Wt={};for(var bt in Fe)Object.prototype.hasOwnProperty.call(Fe,bt)&&We.indexOf(bt)<0&&(Wt[bt]=Fe[bt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,bt=Object.getOwnPropertySymbols(Fe);sn{var Wt,{prefixCls:bt,bordered:sn=!0,className:Ln,rootClassName:zn,getPopupContainer:ar,popupClassName:ot,dropdownClassName:Ye,listHeight:yt=256,placement:Qt,listItemHeight:_n=24,size:mn,disabled:ln,notFoundContent:sr,status:ir,builtinPlacements:xr,dropdownMatchSelectWidth:er,popupMatchSelectWidth:Tn,direction:Er,style:zr,allowClear:Br}=Fe,Cr=Ir(Fe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Dr,getPrefixCls:ui,renderEmpty:ei,direction:ii,virtual:Ti,popupMatchSelectWidth:ea,popupOverflow:Si,select:zi}=Ie.useContext(Kt.E_),ai=ui("select",bt),vi=ui(),_i=Er!=null?Er:ii,{compactSize:Ki,compactItemClassnames:Ea}=(0,cr.ri)(ai,_i),[Ta,va]=(0,Wn.Z)(ai),ra=Ie.useMemo(()=>{const{mode:Aa}=Cr;if(Aa!=="combobox")return Aa===gr?"combobox":Aa},[Cr.mode]),Yi=ra==="multiple"||ra==="tags",ki=(0,$n.Z)(Cr.suffixIcon,Cr.showArrow),Ma=(Wt=Tn!=null?Tn:er)!==null&&Wt!==void 0?Wt:ea,{status:Ri,hasFeedback:si,isFormItemInput:Ui,feedbackIcon:ua}=Ie.useContext(Pr.aM),ta=(0,vt.F)(Ri,ir);let oa;sr!==void 0?oa=sr:ra==="combobox"?oa=null:oa=(ei==null?void 0:ei("Select"))||Ie.createElement(kn.Z,{componentName:"Select"});const{suffixIcon:Bi,itemIcon:pa,removeIcon:wa,clearIcon:fa}=(0,rr.Z)(Object.assign(Object.assign({},Cr),{multiple:Yi,hasFeedback:si,feedbackIcon:ua,showSuffixIcon:ki,prefixCls:ai,showArrow:Cr.showArrow,componentName:"Select"})),Sa=Br===!0?{clearIcon:fa}:Br,La=(0,Ke.Z)(Cr,["suffixIcon","itemIcon"]),Va=Pe()(ot||Ye,{[`${ai}-dropdown-${_i}`]:_i==="rtl"},zn,va),ha=(0,yr.Z)(Aa=>{var Wi;return(Wi=mn!=null?mn:Ki)!==null&&Wi!==void 0?Wi:Aa}),Ba=Ie.useContext(vn.Z),qa=ln!=null?ln:Ba,Ya=Pe()({[`${ai}-lg`]:ha==="large",[`${ai}-sm`]:ha==="small",[`${ai}-rtl`]:_i==="rtl",[`${ai}-borderless`]:!sn,[`${ai}-in-form-item`]:Ui},(0,vt.Z)(ai,ta,si),Ea,zi==null?void 0:zi.className,Ln,zn,va),so=Ie.useMemo(()=>Qt!==void 0?Qt:_i==="rtl"?"bottomRight":"bottomLeft",[Qt,_i]),_a=(0,Fn.Z)(xr,Si);return Ta(Ie.createElement(He,Object.assign({ref:We,virtual:Ti,showSearch:zi==null?void 0:zi.showSearch},La,{style:Object.assign(Object.assign({},zi==null?void 0:zi.style),zr),dropdownMatchSelectWidth:Ma,builtinPlacements:_a,transitionName:(0,ut.m)(vi,"slide-up",Cr.transitionName),listHeight:yt,listItemHeight:_n,mode:ra,prefixCls:ai,placement:so,direction:_i,suffixIcon:Bi,menuItemSelectedIcon:pa,removeIcon:wa,allowClear:Sa,notFoundContent:oa,className:Ya,getPopupContainer:ar||Dr,dropdownClassName:Va,disabled:qa})))},wr=Ie.forwardRef(fr),Sr=(0,Ge.Z)(wr);wr.SECRET_COMBOBOX_MODE_DO_NOT_USE=gr,wr.Option=ca,wr.OptGroup=Mi,wr._InternalPanelDoNotUseOrYouWillBeFired=Sr;var Nr=wr},87244:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Se}});var ae=se(14747),Pe=se(80110),Re=se(45503),qe=se(67968),ve=se(67771),ke=se(33297);const Le=Ce=>{const{optionHeight:je,optionFontSize:Ue,optionLineHeight:Mt,optionPadding:ht}=Ce;return{position:"relative",display:"block",minHeight:je,padding:ht,color:Ce.colorText,fontWeight:"normal",fontSize:Ue,lineHeight:Mt,boxSizing:"border-box"}};var me=Ce=>{const{antCls:je,componentCls:Ue}=Ce,Mt=`${Ue}-item`,ht=`&${je}-slide-up-enter${je}-slide-up-enter-active`,Ft=`&${je}-slide-up-appear${je}-slide-up-appear-active`,tt=`&${je}-slide-up-leave${je}-slide-up-leave-active`,Jt=`${Ue}-dropdown-placement-`;return[{[`${Ue}-dropdown`]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{position:"absolute",top:-9999,zIndex:Ce.zIndexPopup,boxSizing:"border-box",padding:Ce.paddingXXS,overflow:"hidden",fontSize:Ce.fontSize,fontVariant:"initial",backgroundColor:Ce.colorBgElevated,borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary,[` ${ht}${Jt}bottomLeft, ${Ft}${Jt}bottomLeft `]:{animationName:ve.fJ},[` ${ht}${Jt}topLeft, ${Ft}${Jt}topLeft, ${ht}${Jt}topRight, ${Ft}${Jt}topRight `]:{animationName:ve.Qt},[`${tt}${Jt}bottomLeft`]:{animationName:ve.Uw},[` ${tt}${Jt}topLeft, ${tt}${Jt}topRight `]:{animationName:ve.ly},"&-hidden":{display:"none"},[`${Mt}`]:Object.assign(Object.assign({},Le(Ce)),{cursor:"pointer",transition:`background ${Ce.motionDurationSlow} ease`,borderRadius:Ce.borderRadiusSM,"&-group":{color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ae.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Mt}-option-disabled)`]:{backgroundColor:Ce.optionActiveBg},[`&-selected:not(${Mt}-option-disabled)`]:{color:Ce.optionSelectedColor,fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg,[`${Mt}-option-state`]:{color:Ce.colorPrimary}},"&-disabled":{[`&${Mt}-option-selected`]:{backgroundColor:Ce.colorBgContainerDisabled},color:Ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ce.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ve.oN)(Ce,"slide-up"),(0,ve.oN)(Ce,"slide-down"),(0,ke.Fm)(Ce,"move-up"),(0,ke.Fm)(Ce,"move-down")]};const Ie=2,st=Ce=>{let{controlHeightSM:je,controlHeight:Ue,lineWidth:Mt}=Ce;const ht=(Ue-je)/2-Mt,Ft=Math.ceil(ht/2);return[ht,Ft]};function Ne(Ce,je){const{componentCls:Ue,iconCls:Mt}=Ce,ht=`${Ue}-selection-overflow`,Ft=Ce.multipleSelectItemHeight,[tt]=st(Ce),Jt=je?`${Ue}-${je}`:"";return{[`${Ue}-multiple${Jt}`]:{fontSize:Ce.fontSize,[ht]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ue}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${tt-Ie}px ${Ie*2}px`,borderRadius:Ce.borderRadius,[`${Ue}-show-search&`]:{cursor:"text"},[`${Ue}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ie}px 0`,lineHeight:`${Ft}px`,visibility:"hidden",content:'"\\a0"'}},[` &${Ue}-show-arrow ${Ue}-selector, &${Ue}-allow-clear ${Ue}-selector `]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${Ue}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ft,marginTop:Ie,marginBottom:Ie,lineHeight:`${Ft-Ce.lineWidth*2}px`,background:Ce.multipleItemBg,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.multipleItemBorderColor}`,borderRadius:Ce.borderRadiusSM,cursor:"default",transition:`font-size ${Ce.motionDurationSlow}, line-height ${Ce.motionDurationSlow}, height ${Ce.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ie*2,paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS/2,[`${Ue}-disabled&`]:{color:Ce.multipleItemColorDisabled,borderColor:Ce.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ce.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ae.Ro)()),{display:"inline-flex",alignItems:"center",color:Ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Mt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ce.colorIconHover}})},[`${ht}-item + ${ht}-item`]:{[`${Ue}-selection-search`]:{marginInlineStart:0}},[`${Ue}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-tt,"\n &-input,\n &-mirror\n ":{height:Ft,fontFamily:Ce.fontFamily,lineHeight:`${Ft}px`,transition:`all ${Ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ue}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var pt=Ce=>{const{componentCls:je}=Ce,Ue=(0,Re.TS)(Ce,{controlHeight:Ce.controlHeightSM,multipleSelectItemHeight:Ce.controlHeightXS,borderRadius:Ce.borderRadiusSM,borderRadiusSM:Ce.borderRadiusXS}),Mt=(0,Re.TS)(Ce,{fontSize:Ce.fontSizeLG,controlHeight:Ce.controlHeightLG,multipleSelectItemHeight:Ce.multipleItemHeightLG,borderRadius:Ce.borderRadiusLG,borderRadiusSM:Ce.borderRadius}),[,ht]=st(Ce);return[Ne(Ce),Ne(Ue,"sm"),{[`${je}-multiple${je}-sm`]:{[`${je}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${je}-selection-search`]:{marginInlineStart:ht}}},Ne(Mt,"lg")]};function ct(Ce,je){const{componentCls:Ue,inputPaddingHorizontalBase:Mt,borderRadius:ht}=Ce,Ft=Ce.controlHeight-Ce.lineWidth*2,tt=Math.ceil(Ce.fontSize*1.25),Jt=je?`${Ue}-${je}`:"";return{[`${Ue}-single${Jt}`]:{fontSize:Ce.fontSize,[`${Ue}-selector`]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{display:"flex",borderRadius:ht,[`${Ue}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Mt,insetInlineEnd:Mt,bottom:0,"&-input":{width:"100%"}},[` ${Ue}-selection-item, ${Ue}-selection-placeholder `]:{padding:0,lineHeight:`${Ft}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ft}px`}},[`${Ue}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ue}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ue}-selection-item:after`,`${Ue}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Ue}-show-arrow ${Ue}-selection-item, &${Ue}-show-arrow ${Ue}-selection-placeholder `]:{paddingInlineEnd:tt},[`&${Ue}-open ${Ue}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${Mt}px`,[`${Ue}-selection-search-input`]:{height:Ft},"&:after":{lineHeight:`${Ft}px`}}},[`&${Ue}-customize-input`]:{[`${Ue}-selector`]:{"&:after":{display:"none"},[`${Ue}-selection-search`]:{position:"static",width:"100%"},[`${Ue}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Mt}px`,"&:after":{display:"none"}}}}}}}function rt(Ce){const{componentCls:je}=Ce,Ue=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[ct(Ce),ct((0,Re.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${je}-single${je}-sm`]:{[`&:not(${je}-customize-input)`]:{[`${je}-selection-search`]:{insetInlineStart:Ue,insetInlineEnd:Ue},[`${je}-selector`]:{padding:`0 ${Ue}px`},[`&${je}-show-arrow ${je}-selection-search`]:{insetInlineEnd:Ue+Ce.fontSize*1.5},[` &${je}-show-arrow ${je}-selection-item, &${je}-show-arrow ${je}-selection-placeholder `]:{paddingInlineEnd:Ce.fontSize*1.5}}}},ct((0,Re.TS)(Ce,{controlHeight:Ce.singleItemHeightLG,fontSize:Ce.fontSizeLG,borderRadius:Ce.borderRadiusLG}),"lg")]}const Ee=Ce=>{const{componentCls:je,selectorBg:Ue}=Ce;return{position:"relative",backgroundColor:Ue,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${je}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${je}-disabled&`]:{color:Ce.colorTextDisabled,background:Ce.colorBgContainerDisabled,cursor:"not-allowed",[`${je}-multiple&`]:{background:Ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},at=function(Ce,je){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Mt,borderHoverColor:ht,outlineColor:Ft,antCls:tt}=je,Jt=Ue?{[`${Mt}-selector`]:{borderColor:ht}}:{};return{[Ce]:{[`&:not(${Mt}-disabled):not(${Mt}-customize-input):not(${tt}-pagination-size-changer)`]:Object.assign(Object.assign({},Jt),{[`${Mt}-focused& ${Mt}-selector`]:{borderColor:ht,boxShadow:`0 0 0 ${je.controlOutlineWidth}px ${Ft}`,outline:0},[`&:hover ${Mt}-selector`]:{borderColor:ht}})}}},Yt=Ce=>{const{componentCls:je}=Ce;return{[`${je}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Xe=Ce=>{const{componentCls:je,inputPaddingHorizontalBase:Ue,iconCls:Mt}=Ce;return{[je]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${je}-customize-input) ${je}-selector`]:Object.assign(Object.assign({},Ee(Ce)),Yt(Ce)),[`${je}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ae.vS),[`${je}-selection-placeholder`]:Object.assign(Object.assign({},ae.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${je}-arrow`]:Object.assign(Object.assign({},(0,ae.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Mt]:{verticalAlign:"top",transition:`transform ${Ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${je}-suffix)`]:{pointerEvents:"auto"}},[`${je}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${je}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,zIndex:1,display:"inline-block",width:Ce.fontSizeIcon,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ce.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ce.motionDurationMid} ease, opacity ${Ce.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ce.colorTextTertiary}},"&:hover":{[`${je}-clear`]:{opacity:1}}}),[`${je}-has-feedback`]:{[`${je}-clear`]:{insetInlineEnd:Ue+Ce.fontSize+Ce.paddingXS}}}},lt=Ce=>{const{componentCls:je}=Ce;return[{[je]:{[`&-borderless ${je}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${je}-in-form-item`]:{width:"100%"}}},Xe(Ce),rt(Ce),pt(Ce),me(Ce),{[`${je}-rtl`]:{direction:"rtl"}},at(je,(0,Re.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),at(`${je}-status-error`,(0,Re.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),at(`${je}-status-warning`,(0,Re.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,Pe.c)(Ce,{borderElCls:`${je}-selector`,focusElCls:`${je}-focused`})]};var Se=(0,qe.Z)("Select",(Ce,je)=>{let{rootPrefixCls:Ue}=je;const Mt=(0,Re.TS)(Ce,{rootPrefixCls:Ue,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[lt(Mt)]},Ce=>{const{fontSize:je,lineHeight:Ue,controlHeight:Mt,controlPaddingHorizontal:ht,zIndexPopupBase:Ft,colorText:tt,fontWeightStrong:Jt,controlItemBgActive:Rt,controlItemBgHover:yn,colorBgContainer:tn,colorFillSecondary:Hn,controlHeightLG:Yn,controlHeightSM:tr,colorBgContainerDisabled:Qe,colorTextDisabled:we}=Ce;return{zIndexPopup:Ft+50,optionSelectedColor:tt,optionSelectedFontWeight:Jt,optionSelectedBg:Rt,optionActiveBg:yn,optionPadding:`${(Mt-je*Ue)/2}px ${ht}px`,optionFontSize:je,optionLineHeight:Ue,optionHeight:Mt,selectorBg:tn,clearBg:tn,singleItemHeightLG:Yn,multipleItemBg:Hn,multipleItemBorderColor:"transparent",multipleItemHeight:tr,multipleItemHeightLG:Mt,multipleSelectorBgDisabled:Qe,multipleItemColorDisabled:we,multipleItemBorderColorDisabled:"transparent"}})},13458:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Pe}});const ae=Re=>{const ve={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Re==="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 Pe(Re,qe){return Re||ae(qe)}},78642:function(dn,en,se){"use strict";se.d(en,{Z:function(){return ae}});function ae(Pe,Re){return Re!==void 0?Re:Pe!==null}},46163:function(dn,en,se){"use strict";se.d(en,{Z:function(){return xe}});var ae=se(18299),Pe=se(16646),Re=se(73475),qe=se(42922),ve=se(3407),ke=se(72395),Le=se(67294);function xe(me){let{suffixIcon:Ie,clearIcon:st,menuItemSelectedIcon:Ne,removeIcon:xt,loading:pt,multiple:ct,hasFeedback:rt,prefixCls:Ee,showSuffixIcon:at,feedbackIcon:Yt,showArrow:Xe,componentName:lt}=me;const Se=st!=null?st:Le.createElement(Pe.Z,null),Ce=ht=>Ie===null&&!rt&&!Xe?null:Le.createElement(Le.Fragment,null,at!==!1&&ht,rt&&Yt);let je=null;if(Ie!==void 0)je=Ce(Ie);else if(pt)je=Ce(Le.createElement(ve.Z,{spin:!0}));else{const ht=`${Ee}-suffix`;je=Ft=>{let{open:tt,showSearch:Jt}=Ft;return Ce(tt&&Jt?Le.createElement(ke.Z,{className:ht}):Le.createElement(qe.Z,{className:ht}))}}let Ue=null;Ne!==void 0?Ue=Ne:ct?Ue=Le.createElement(ae.Z,null):Ue=null;let Mt=null;return xt!==void 0?Mt=xt:Mt=Le.createElement(Re.Z,null),{clearIcon:Se,suffixIcon:je,itemIcon:Ue,removeIcon:Mt}}},46303:function(dn,en,se){"use strict";se.d(en,{Z:function(){return ce}});var ae=se(94184),Pe=se.n(ae),Re=se(67294),qe=se(53124),ve=se(10366),Le=he=>{const{prefixCls:fe,className:le,style:Me,size:Ve,shape:ft}=he,Ht=Pe()({[`${fe}-lg`]:Ve==="large",[`${fe}-sm`]:Ve==="small"}),Zt=Pe()({[`${fe}-circle`]:ft==="circle",[`${fe}-square`]:ft==="square",[`${fe}-round`]:ft==="round"}),jt=Re.useMemo(()=>typeof Ve=="number"?{width:Ve,height:Ve,lineHeight:`${Ve}px`}:{},[Ve]);return Re.createElement("span",{className:Pe()(fe,Ht,Zt,le),style:Object.assign(Object.assign({},jt),Me)})},xe=se(45930),me=se(67968),Ie=se(45503);const st=new xe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ne=he=>({height:he,lineHeight:`${he}px`}),xt=he=>Object.assign({width:he},Ne(he)),pt=he=>({background:he.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:st,animationDuration:he.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ct=he=>Object.assign({width:he*5,minWidth:he*5},Ne(he)),rt=he=>{const{skeletonAvatarCls:fe,gradientFromColor:le,controlHeight:Me,controlHeightLG:Ve,controlHeightSM:ft}=he;return{[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:le},xt(Me)),[`${fe}${fe}-circle`]:{borderRadius:"50%"},[`${fe}${fe}-lg`]:Object.assign({},xt(Ve)),[`${fe}${fe}-sm`]:Object.assign({},xt(ft))}},Ee=he=>{const{controlHeight:fe,borderRadiusSM:le,skeletonInputCls:Me,controlHeightLG:Ve,controlHeightSM:ft,gradientFromColor:Ht}=he;return{[`${Me}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ht,borderRadius:le},ct(fe)),[`${Me}-lg`]:Object.assign({},ct(Ve)),[`${Me}-sm`]:Object.assign({},ct(ft))}},at=he=>Object.assign({width:he},Ne(he)),Yt=he=>{const{skeletonImageCls:fe,imageSizeBase:le,gradientFromColor:Me,borderRadiusSM:Ve}=he;return{[`${fe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Me,borderRadius:Ve},at(le*2)),{[`${fe}-path`]:{fill:"#bfbfbf"},[`${fe}-svg`]:Object.assign(Object.assign({},at(le)),{maxWidth:le*4,maxHeight:le*4}),[`${fe}-svg${fe}-svg-circle`]:{borderRadius:"50%"}}),[`${fe}${fe}-circle`]:{borderRadius:"50%"}}},Xe=(he,fe,le)=>{const{skeletonButtonCls:Me}=he;return{[`${le}${Me}-circle`]:{width:fe,minWidth:fe,borderRadius:"50%"},[`${le}${Me}-round`]:{borderRadius:fe}}},lt=he=>Object.assign({width:he*2,minWidth:he*2},Ne(he)),Se=he=>{const{borderRadiusSM:fe,skeletonButtonCls:le,controlHeight:Me,controlHeightLG:Ve,controlHeightSM:ft,gradientFromColor:Ht}=he;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ht,borderRadius:fe,width:Me*2,minWidth:Me*2},lt(Me))},Xe(he,Me,le)),{[`${le}-lg`]:Object.assign({},lt(Ve))}),Xe(he,Ve,`${le}-lg`)),{[`${le}-sm`]:Object.assign({},lt(ft))}),Xe(he,ft,`${le}-sm`))},Ce=he=>{const{componentCls:fe,skeletonAvatarCls:le,skeletonTitleCls:Me,skeletonParagraphCls:Ve,skeletonButtonCls:ft,skeletonInputCls:Ht,skeletonImageCls:Zt,controlHeight:jt,controlHeightLG:$t,controlHeightSM:Je,gradientFromColor:Et,padding:Lt,marginSM:Xt,borderRadius:wt,titleHeight:Nn,blockRadius:et,paragraphLiHeight:It,controlHeightXS:gn,paragraphMarginTop:hn}=he;return{[`${fe}`]:{display:"table",width:"100%",[`${fe}-header`]:{display:"table-cell",paddingInlineEnd:Lt,verticalAlign:"top",[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Et},xt(jt)),[`${le}-circle`]:{borderRadius:"50%"},[`${le}-lg`]:Object.assign({},xt($t)),[`${le}-sm`]:Object.assign({},xt(Je))},[`${fe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Me}`]:{width:"100%",height:Nn,background:Et,borderRadius:et,[`+ ${Ve}`]:{marginBlockStart:Je}},[`${Ve}`]:{padding:0,"> li":{width:"100%",height:It,listStyle:"none",background:Et,borderRadius:et,"+ li":{marginBlockStart:gn}}},[`${Ve}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${fe}-content`]:{[`${Me}, ${Ve} > li`]:{borderRadius:wt}}},[`${fe}-with-avatar ${fe}-content`]:{[`${Me}`]:{marginBlockStart:Xt,[`+ ${Ve}`]:{marginBlockStart:hn}}},[`${fe}${fe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Se(he)),rt(he)),Ee(he)),Yt(he)),[`${fe}${fe}-block`]:{width:"100%",[`${ft}`]:{width:"100%"},[`${Ht}`]:{width:"100%"}},[`${fe}${fe}-active`]:{[` ${Me}, ${Ve} > li, ${le}, ${ft}, ${Ht}, ${Zt} `]:Object.assign({},pt(he))}}};var je=(0,me.Z)("Skeleton",he=>{const{componentCls:fe}=he,le=(0,Ie.TS)(he,{skeletonAvatarCls:`${fe}-avatar`,skeletonTitleCls:`${fe}-title`,skeletonParagraphCls:`${fe}-paragraph`,skeletonButtonCls:`${fe}-button`,skeletonInputCls:`${fe}-input`,skeletonImageCls:`${fe}-image`,imageSizeBase:he.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${he.gradientFromColor} 25%, ${he.gradientToColor} 37%, ${he.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ce(le)]},he=>{const{colorFillContent:fe,colorFill:le}=he,Me=fe,Ve=le;return{color:Me,colorGradientEnd:Ve,gradientFromColor:Me,gradientToColor:Ve,titleHeight:he.controlHeight/2,blockRadius:he.borderRadiusSM,paragraphMarginTop:he.marginLG+he.marginXXS,paragraphLiHeight:he.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Mt=he=>{const{prefixCls:fe,className:le,rootClassName:Me,active:Ve,shape:ft="circle",size:Ht="default"}=he,{getPrefixCls:Zt}=Re.useContext(qe.E_),jt=Zt("skeleton",fe),[$t,Je]=je(jt),Et=(0,ve.Z)(he,["prefixCls","className"]),Lt=Pe()(jt,`${jt}-element`,{[`${jt}-active`]:Ve},le,Me,Je);return $t(Re.createElement("div",{className:Lt},Re.createElement(Le,Object.assign({prefixCls:`${jt}-avatar`,shape:ft,size:Ht},Et))))},Ft=he=>{const{prefixCls:fe,className:le,rootClassName:Me,active:Ve,block:ft=!1,size:Ht="default"}=he,{getPrefixCls:Zt}=Re.useContext(qe.E_),jt=Zt("skeleton",fe),[$t,Je]=je(jt),Et=(0,ve.Z)(he,["prefixCls"]),Lt=Pe()(jt,`${jt}-element`,{[`${jt}-active`]:Ve,[`${jt}-block`]:ft},le,Me,Je);return $t(Re.createElement("div",{className:Lt},Re.createElement(Le,Object.assign({prefixCls:`${jt}-button`,size:Ht},Et))))};const tt="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Rt=he=>{const{prefixCls:fe,className:le,rootClassName:Me,style:Ve,active:ft}=he,{getPrefixCls:Ht}=Re.useContext(qe.E_),Zt=Ht("skeleton",fe),[jt,$t]=je(Zt),Je=Pe()(Zt,`${Zt}-element`,{[`${Zt}-active`]:ft},le,Me,$t);return jt(Re.createElement("div",{className:Je},Re.createElement("div",{className:Pe()(`${Zt}-image`,le),style:Ve},Re.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Zt}-image-svg`},Re.createElement("path",{d:tt,className:`${Zt}-image-path`})))))},tn=he=>{const{prefixCls:fe,className:le,rootClassName:Me,active:Ve,block:ft,size:Ht="default"}=he,{getPrefixCls:Zt}=Re.useContext(qe.E_),jt=Zt("skeleton",fe),[$t,Je]=je(jt),Et=(0,ve.Z)(he,["prefixCls"]),Lt=Pe()(jt,`${jt}-element`,{[`${jt}-active`]:Ve,[`${jt}-block`]:ft},le,Me,Je);return $t(Re.createElement("div",{className:Lt},Re.createElement(Le,Object.assign({prefixCls:`${jt}-input`,size:Ht},Et))))},Hn=se(87462),Yn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},tr=Yn,Qe=se(74643),we=function(fe,le){return Re.createElement(Qe.Z,(0,Hn.Z)({},fe,{ref:le,icon:tr}))},At=Re.forwardRef(we),_t=he=>{const{prefixCls:fe,className:le,rootClassName:Me,style:Ve,active:ft,children:Ht}=he,{getPrefixCls:Zt}=Re.useContext(qe.E_),jt=Zt("skeleton",fe),[$t,Je]=je(jt),Et=Pe()(jt,`${jt}-element`,{[`${jt}-active`]:ft},Je,le,Me),Lt=Ht!=null?Ht:Re.createElement(At,null);return $t(Re.createElement("div",{className:Et},Re.createElement("div",{className:Pe()(`${jt}-image`,le),style:Ve},Lt)))},$e=se(74902),qt=he=>{const fe=Zt=>{const{width:jt,rows:$t=2}=he;if(Array.isArray(jt))return jt[Zt];if($t-1===Zt)return jt},{prefixCls:le,className:Me,style:Ve,rows:ft}=he,Ht=(0,$e.Z)(Array(ft)).map((Zt,jt)=>Re.createElement("li",{key:jt,style:{width:fe(jt)}}));return Re.createElement("ul",{className:Pe()(le,Me),style:Ve},Ht)},bn=he=>{let{prefixCls:fe,className:le,width:Me,style:Ve}=he;return Re.createElement("h3",{className:Pe()(fe,le),style:Object.assign({width:Me},Ve)})};function un(he){return he&&typeof he=="object"?he:{}}function nn(he,fe){return he&&!fe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function xn(he,fe){return!he&&fe?{width:"38%"}:he&&fe?{width:"50%"}:{}}function Pn(he,fe){const le={};return(!he||!fe)&&(le.width="61%"),!he&&fe?le.rows=3:le.rows=2,le}const De=he=>{const{prefixCls:fe,loading:le,className:Me,rootClassName:Ve,style:ft,children:Ht,avatar:Zt=!1,title:jt=!0,paragraph:$t=!0,active:Je,round:Et}=he,{getPrefixCls:Lt,direction:Xt,skeleton:wt}=Re.useContext(qe.E_),Nn=Lt("skeleton",fe),[et,It]=je(Nn);if(le||!("loading"in he)){const gn=!!Zt,hn=!!jt,An=!!$t;let Vn;if(gn){const dr=Object.assign(Object.assign({prefixCls:`${Nn}-avatar`},nn(hn,An)),un(Zt));Vn=Re.createElement("div",{className:`${Nn}-header`},Re.createElement(Le,Object.assign({},dr)))}let mr;if(hn||An){let dr;if(hn){const nr=Object.assign(Object.assign({prefixCls:`${Nn}-title`},xn(gn,An)),un(jt));dr=Re.createElement(bn,Object.assign({},nr))}let Fr;if(An){const nr=Object.assign(Object.assign({prefixCls:`${Nn}-paragraph`},Pn(gn,hn)),un($t));Fr=Re.createElement(qt,Object.assign({},nr))}mr=Re.createElement("div",{className:`${Nn}-content`},dr,Fr)}const ur=Pe()(Nn,{[`${Nn}-with-avatar`]:gn,[`${Nn}-active`]:Je,[`${Nn}-rtl`]:Xt==="rtl",[`${Nn}-round`]:Et},wt==null?void 0:wt.className,Me,Ve,It);return et(Re.createElement("div",{className:ur,style:Object.assign(Object.assign({},wt==null?void 0:wt.style),ft)},Vn,mr))}return typeof Ht!="undefined"?Ht:null};De.Button=Ft,De.Avatar=Mt,De.Input=tn,De.Image=Rt,De.Node=_t;var ue=De,ce=ue},55054:function(dn,en,se){"use strict";se.d(en,{default:function(){return je}});var ae=se(67294),Pe=se(57838),Re=se(96159),qe=se(94184),ve=se.n(qe),ke=se(53124),Le=se(46303),me=Ue=>{const{value:Mt,formatter:ht,precision:Ft,decimalSeparator:tt,groupSeparator:Jt="",prefixCls:Rt}=Ue;let yn;if(typeof ht=="function")yn=ht(Mt);else{const tn=String(Mt),Hn=tn.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Hn||tn==="-")yn=tn;else{const Yn=Hn[1];let tr=Hn[2]||"0",Qe=Hn[4]||"";tr=tr.replace(/\B(?=(\d{3})+(?!\d))/g,Jt),typeof Ft=="number"&&(Qe=Qe.padEnd(Ft,"0").slice(0,Ft>0?Ft:0)),Qe&&(Qe=`${tt}${Qe}`),yn=[ae.createElement("span",{key:"int",className:`${Rt}-content-value-int`},Yn,tr),Qe&&ae.createElement("span",{key:"decimal",className:`${Rt}-content-value-decimal`},Qe)]}}return ae.createElement("span",{className:`${Rt}-content-value`},yn)},Ie=se(14747),st=se(67968),Ne=se(45503);const xt=Ue=>{const{componentCls:Mt,marginXXS:ht,padding:Ft,colorTextDescription:tt,titleFontSize:Jt,colorTextHeading:Rt,contentFontSize:yn,fontFamily:tn}=Ue;return{[`${Mt}`]:Object.assign(Object.assign({},(0,Ie.Wf)(Ue)),{[`${Mt}-title`]:{marginBottom:ht,color:tt,fontSize:Jt},[`${Mt}-skeleton`]:{paddingTop:Ft},[`${Mt}-content`]:{color:Rt,fontSize:yn,fontFamily:tn,[`${Mt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Mt}-content-prefix, ${Mt}-content-suffix`]:{display:"inline-block"},[`${Mt}-content-prefix`]:{marginInlineEnd:ht},[`${Mt}-content-suffix`]:{marginInlineStart:ht}}})}};var pt=(0,st.Z)("Statistic",Ue=>{const Mt=(0,Ne.TS)(Ue,{});return[xt(Mt)]},Ue=>{const{fontSizeHeading3:Mt,fontSize:ht}=Ue;return{titleFontSize:ht,contentFontSize:Mt}}),rt=Ue=>{const{prefixCls:Mt,className:ht,rootClassName:Ft,style:tt,valueStyle:Jt,value:Rt=0,title:yn,valueRender:tn,prefix:Hn,suffix:Yn,loading:tr=!1,onMouseEnter:Qe,onMouseLeave:we,decimalSeparator:At=".",groupSeparator:Mn=","}=Ue,{getPrefixCls:_t,direction:$e,statistic:dt}=ae.useContext(ke.E_),qt=_t("statistic",Mt),[Xn,bn]=pt(qt),un=ae.createElement(me,Object.assign({decimalSeparator:At,groupSeparator:Mn,prefixCls:qt},Ue,{value:Rt})),nn=ve()(qt,{[`${qt}-rtl`]:$e==="rtl"},dt==null?void 0:dt.className,ht,Ft,bn);return Xn(ae.createElement("div",{className:nn,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),tt),onMouseEnter:Qe,onMouseLeave:we},yn&&ae.createElement("div",{className:`${qt}-title`},yn),ae.createElement(Le.Z,{paragraph:!1,loading:tr,className:`${qt}-skeleton`},ae.createElement("div",{style:Jt,className:`${qt}-content`},Hn&&ae.createElement("span",{className:`${qt}-content-prefix`},Hn),tn?tn(un):un,Yn&&ae.createElement("span",{className:`${qt}-content-suffix`},Yn)))))};const Ee=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function at(Ue,Mt){let ht=Ue;const Ft=/\[[^\]]*]/g,tt=(Mt.match(Ft)||[]).map(tn=>tn.slice(1,-1)),Jt=Mt.replace(Ft,"[]"),Rt=Ee.reduce((tn,Hn)=>{let[Yn,tr]=Hn;if(tn.includes(Yn)){const Qe=Math.floor(ht/tr);return ht-=Qe*tr,tn.replace(new RegExp(`${Yn}+`,"g"),we=>{const At=we.length;return Qe.toString().padStart(At,"0")})}return tn},Jt);let yn=0;return Rt.replace(Ft,()=>{const tn=tt[yn];return yn+=1,tn})}function Yt(Ue,Mt){const{format:ht=""}=Mt,Ft=new Date(Ue).getTime(),tt=Date.now(),Jt=Math.max(Ft-tt,0);return at(Jt,ht)}const Xe=1e3/30;function lt(Ue){return new Date(Ue).getTime()}const Se=Ue=>{const{value:Mt,format:ht="HH:mm:ss",onChange:Ft,onFinish:tt}=Ue,Jt=(0,Pe.Z)(),Rt=ae.useRef(null),yn=()=>{tt==null||tt(),Rt.current&&(clearInterval(Rt.current),Rt.current=null)},tn=()=>{const tr=lt(Mt);tr>=Date.now()&&(Rt.current=setInterval(()=>{Jt(),Ft==null||Ft(tr-Date.now()),tr(tn(),()=>{Rt.current&&(clearInterval(Rt.current),Rt.current=null)}),[Mt]);const Hn=(tr,Qe)=>Yt(tr,Object.assign(Object.assign({},Qe),{format:ht})),Yn=tr=>(0,Re.Tm)(tr,{title:void 0});return ae.createElement(rt,Object.assign({},Ue,{valueRender:Yn,formatter:Hn}))};var Ce=ae.memo(Se);rt.Countdown=Ce;var je=rt},33507:function(dn,en){"use strict";const se=ae=>({[ae.componentCls]:{[`${ae.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ae.motionDurationMid} ${ae.motionEaseInOut}, opacity ${ae.motionDurationMid} ${ae.motionEaseInOut} !important`}},[`${ae.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ae.motionDurationMid} ${ae.motionEaseInOut}, opacity ${ae.motionDurationMid} ${ae.motionEaseInOut} !important`}}});en.Z=se},33297:function(dn,en,se){"use strict";se.d(en,{Fm:function(){return Ne}});var ae=se(45930),Pe=se(93590);const Re=new ae.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qe=new ae.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 ae.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ke=new ae.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Le=new ae.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 ae.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 ae.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 ae.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),st={"move-up":{inKeyframes:me,outKeyframes:Ie},"move-down":{inKeyframes:Re,outKeyframes:qe},"move-left":{inKeyframes:ve,outKeyframes:ke},"move-right":{inKeyframes:Le,outKeyframes:xe}},Ne=(xt,pt)=>{const{antCls:ct}=xt,rt=`${ct}-${pt}`,{inKeyframes:Ee,outKeyframes:at}=st[pt];return[(0,Pe.R)(rt,Ee,at,xt.motionDurationMid),{[` ${rt}-enter, ${rt}-appear `]:{opacity:0,animationTimingFunction:xt.motionEaseOutCirc},[`${rt}-leave`]:{animationTimingFunction:xt.motionEaseInOutCirc}}]}},67771:function(dn,en,se){"use strict";se.d(en,{Qt:function(){return ve},Uw:function(){return qe},fJ:function(){return Re},ly:function(){return ke},oN:function(){return Ne}});var ae=se(45930),Pe=se(93590);const Re=new ae.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),qe=new ae.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ve=new ae.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ke=new ae.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Le=new ae.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xe=new ae.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),me=new ae.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ie=new ae.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),st={"slide-up":{inKeyframes:Re,outKeyframes:qe},"slide-down":{inKeyframes:ve,outKeyframes:ke},"slide-left":{inKeyframes:Le,outKeyframes:xe},"slide-right":{inKeyframes:me,outKeyframes:Ie}},Ne=(xt,pt)=>{const{antCls:ct}=xt,rt=`${ct}-${pt}`,{inKeyframes:Ee,outKeyframes:at}=st[pt];return[(0,Pe.R)(rt,Ee,at,xt.motionDurationMid),{[` ${rt}-enter, ${rt}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:xt.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${rt}-leave`]:{animationTimingFunction:xt.motionEaseInQuint}}]}},47897:function(dn,en,se){"use strict";se.d(en,{Z:function(){return he}});var ae=se(3407),Pe=se(94184),Re=se.n(Pe);function qe(){return qe=Object.assign?Object.assign.bind():function(fe){for(var le=1;lefe.length)&&(le=fe.length);for(var Me=0,Ve=new Array(le);Me=0)&&(Me[ft]=fe[ft]);return Me}function rt(fe,le){if(fe==null)return{};var Me=ct(fe,le),Ve,ft;if(Object.getOwnPropertySymbols){var Ht=Object.getOwnPropertySymbols(fe);for(ft=0;ft=0)&&Object.prototype.propertyIsEnumerable.call(fe,Ve)&&(Me[Ve]=fe[Ve])}return Me}var Ee=se(67294);function at(fe){if(Array.isArray(fe))return fe}function Yt(fe,le){var Me=fe==null?null:typeof Symbol!="undefined"&&fe[Symbol.iterator]||fe["@@iterator"];if(Me!=null){var Ve,ft,Ht,Zt,jt=[],$t=!0,Je=!1;try{if(Ht=(Me=Me.call(fe)).next,le===0){if(Object(Me)!==Me)return;$t=!1}else for(;!($t=(Ve=Ht.call(Me)).done)&&(jt.push(Ve.value),jt.length!==le);$t=!0);}catch(Et){Je=!0,ft=Et}finally{try{if(!$t&&Me.return!=null&&(Zt=Me.return(),Object(Zt)!==Zt))return}finally{if(Je)throw ft}}return jt}}function Xe(fe,le){(le==null||le>fe.length)&&(le=fe.length);for(var Me=0,Ve=new Array(le);Me=tn.F1&&Me<=tn.F12)return!1;switch(Me){case tn.ALT:case tn.CAPS_LOCK:case tn.CONTEXT_MENU:case tn.CTRL:case tn.DOWN:case tn.END:case tn.ESC:case tn.HOME:case tn.INSERT:case tn.LEFT:case tn.MAC_FF_META:case tn.META:case tn.NUMLOCK:case tn.NUM_CENTER:case tn.PAGE_DOWN:case tn.PAGE_UP:case tn.PAUSE:case tn.PRINT_SCREEN:case tn.RIGHT:case tn.SHIFT:case tn.UP:case tn.WIN_KEY:case tn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=tn.ZERO&&le<=tn.NINE||le>=tn.NUM_ZERO&&le<=tn.NUM_MULTIPLY||le>=tn.A&&le<=tn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case tn.SPACE:case tn.QUESTION_MARK:case tn.NUM_PLUS:case tn.NUM_MINUS:case tn.NUM_PERIOD:case tn.NUM_DIVISION:case tn.SEMICOLON:case tn.DASH:case tn.EQUALS:case tn.COMMA:case tn.PERIOD:case tn.SLASH:case tn.APOSTROPHE:case tn.SINGLE_QUOTE:case tn.OPEN_SQUARE_BRACKET:case tn.BACKSLASH:case tn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Hn=tn,Yn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],tr=Ee.forwardRef(function(fe,le){var Me,Ve=fe.prefixCls,ft=Ve===void 0?"rc-switch":Ve,Ht=fe.className,Zt=fe.checked,jt=fe.defaultChecked,$t=fe.disabled,Je=fe.loadingIcon,Et=fe.checkedChildren,Lt=fe.unCheckedChildren,Xt=fe.onClick,wt=fe.onChange,Nn=fe.onKeyDown,et=rt(fe,Yn),It=yn(!1,{value:Zt,defaultValue:jt}),gn=pt(It,2),hn=gn[0],An=gn[1];function Vn(Fr,nr){var _r=hn;return $t||(_r=Fr,An(_r),wt==null||wt(_r,nr)),_r}function mr(Fr){Fr.which===Hn.LEFT?Vn(!1,Fr):Fr.which===Hn.RIGHT&&Vn(!0,Fr),Nn==null||Nn(Fr)}function ur(Fr){var nr=Vn(!hn,Fr);Xt==null||Xt(nr,Fr)}var dr=Re()(ft,Ht,(Me={},xe(Me,"".concat(ft,"-checked"),hn),xe(Me,"".concat(ft,"-disabled"),$t),Me));return Ee.createElement("button",qe({},et,{type:"button",role:"switch","aria-checked":hn,disabled:$t,className:dr,ref:le,onKeyDown:mr,onClick:ur}),Je,Ee.createElement("span",{className:"".concat(ft,"-inner")},Ee.createElement("span",{className:"".concat(ft,"-inner-checked")},Et),Ee.createElement("span",{className:"".concat(ft,"-inner-unchecked")},Lt)))});tr.displayName="Switch";var Qe=tr,we=se(45353),At=se(53124),Mn=se(98866),_t=se(98675),$e=se(84780),dt=se(14747),qt=se(67968),Xn=se(45503);const bn=fe=>{const{componentCls:le,trackHeightSM:Me,trackPadding:Ve,trackMinWidthSM:ft,innerMinMarginSM:Ht,innerMaxMarginSM:Zt,handleSizeSM:jt}=fe,$t=`${le}-inner`;return{[le]:{[`&${le}-small`]:{minWidth:ft,height:Me,lineHeight:`${Me}px`,[`${le}-inner`]:{paddingInlineStart:Zt,paddingInlineEnd:Ht,[`${$t}-checked`]:{marginInlineStart:`calc(-100% + ${jt+Ve*2}px - ${Zt*2}px)`,marginInlineEnd:`calc(100% - ${jt+Ve*2}px + ${Zt*2}px)`},[`${$t}-unchecked`]:{marginTop:-Me,marginInlineStart:0,marginInlineEnd:0}},[`${le}-handle`]:{width:jt,height:jt},[`${le}-loading-icon`]:{top:(jt-fe.switchLoadingIconSize)/2,fontSize:fe.switchLoadingIconSize},[`&${le}-checked`]:{[`${le}-inner`]:{paddingInlineStart:Ht,paddingInlineEnd:Zt,[`${$t}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${$t}-unchecked`]:{marginInlineStart:`calc(100% - ${jt+Ve*2}px + ${Zt*2}px)`,marginInlineEnd:`calc(-100% + ${jt+Ve*2}px - ${Zt*2}px)`}},[`${le}-handle`]:{insetInlineStart:`calc(100% - ${jt+Ve}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${$t}`]:{[`${$t}-unchecked`]:{marginInlineStart:fe.marginXXS/2,marginInlineEnd:-fe.marginXXS/2}},[`&${le}-checked ${$t}`]:{[`${$t}-checked`]:{marginInlineStart:-fe.marginXXS/2,marginInlineEnd:fe.marginXXS/2}}}}}}},un=fe=>{const{componentCls:le,handleSize:Me}=fe;return{[le]:{[`${le}-loading-icon${fe.iconCls}`]:{position:"relative",top:(Me-fe.fontSize)/2,color:fe.switchLoadingIconColor,verticalAlign:"top"},[`&${le}-checked ${le}-loading-icon`]:{color:fe.switchColor}}}},nn=fe=>{const{componentCls:le,motion:Me,trackPadding:Ve,handleBg:ft,handleShadow:Ht,handleSize:Zt}=fe,jt=`${le}-handle`;return{[le]:{[jt]:{position:"absolute",top:Ve,insetInlineStart:Ve,width:Zt,height:Zt,transition:`all ${fe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ft,borderRadius:Zt/2,boxShadow:Ht,transition:`all ${fe.switchDuration} ease-in-out`,content:'""'}},[`&${le}-checked ${jt}`]:{insetInlineStart:`calc(100% - ${Zt+Ve}px)`},[`&:not(${le}-disabled):active`]:Me?{[`${jt}::before`]:{insetInlineEnd:fe.switchHandleActiveInset,insetInlineStart:0},[`&${le}-checked ${jt}::before`]:{insetInlineEnd:0,insetInlineStart:fe.switchHandleActiveInset}}:{}}}},xn=fe=>{const{componentCls:le,trackHeight:Me,trackPadding:Ve,innerMinMargin:ft,innerMaxMargin:Ht,handleSize:Zt}=fe,jt=`${le}-inner`;return{[le]:{[jt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ht,paddingInlineEnd:ft,transition:`padding-inline-start ${fe.switchDuration} ease-in-out, padding-inline-end ${fe.switchDuration} ease-in-out`,[`${jt}-checked, ${jt}-unchecked`]:{display:"block",color:fe.colorTextLightSolid,fontSize:fe.fontSizeSM,transition:`margin-inline-start ${fe.switchDuration} ease-in-out, margin-inline-end ${fe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${jt}-checked`]:{marginInlineStart:`calc(-100% + ${Zt+Ve*2}px - ${Ht*2}px)`,marginInlineEnd:`calc(100% - ${Zt+Ve*2}px + ${Ht*2}px)`},[`${jt}-unchecked`]:{marginTop:-Me,marginInlineStart:0,marginInlineEnd:0}},[`&${le}-checked ${jt}`]:{paddingInlineStart:ft,paddingInlineEnd:Ht,[`${jt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${jt}-unchecked`]:{marginInlineStart:`calc(100% - ${Zt+Ve*2}px + ${Ht*2}px)`,marginInlineEnd:`calc(-100% + ${Zt+Ve*2}px - ${Ht*2}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${jt}`]:{[`${jt}-unchecked`]:{marginInlineStart:Ve*2,marginInlineEnd:-Ve*2}},[`&${le}-checked ${jt}`]:{[`${jt}-checked`]:{marginInlineStart:-Ve*2,marginInlineEnd:Ve*2}}}}}},Pn=fe=>{const{componentCls:le,trackHeight:Me,trackMinWidth:Ve}=fe;return{[le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,dt.Wf)(fe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ve,height:Me,lineHeight:`${Me}px`,verticalAlign:"middle",background:fe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${fe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${le}-disabled)`]:{background:fe.colorTextTertiary}}),(0,dt.Qy)(fe)),{[`&${le}-checked`]:{background:fe.switchColor,[`&:hover:not(${le}-disabled)`]:{background:fe.colorPrimaryHover}},[`&${le}-loading, &${le}-disabled`]:{cursor:"not-allowed",opacity:fe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${le}-rtl`]:{direction:"rtl"}})}};var De=(0,qt.Z)("Switch",fe=>{const le=(0,Xn.TS)(fe,{switchDuration:fe.motionDurationMid,switchColor:fe.colorPrimary,switchDisabledOpacity:fe.opacityLoading,switchLoadingIconSize:fe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${fe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Pn(le),xn(le),nn(le),un(le),bn(le)]},fe=>{const{fontSize:le,lineHeight:Me,controlHeight:Ve,colorWhite:ft}=fe,Ht=le*Me,Zt=Ve/2,jt=2,$t=Ht-jt*2,Je=Zt-jt*2;return{trackHeight:Ht,trackHeightSM:Zt,trackMinWidth:$t*2+jt*4,trackMinWidthSM:Je*2+jt*2,trackPadding:jt,handleBg:ft,handleSize:$t,handleSizeSM:Je,handleShadow:`0 2px 4px 0 ${new $e.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:$t/2,innerMaxMargin:$t+jt+jt*2,innerMinMarginSM:Je/2,innerMaxMarginSM:Je+jt+jt*2}}),ue=function(fe,le){var Me={};for(var Ve in fe)Object.prototype.hasOwnProperty.call(fe,Ve)&&le.indexOf(Ve)<0&&(Me[Ve]=fe[Ve]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Ve=Object.getOwnPropertySymbols(fe);ft{const{prefixCls:Me,size:Ve,disabled:ft,loading:Ht,className:Zt,rootClassName:jt,style:$t}=fe,Je=ue(fe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Et,direction:Lt,switch:Xt}=Ee.useContext(At.E_),wt=Ee.useContext(Mn.Z),Nn=(ft!=null?ft:wt)||Ht,et=Et("switch",Me),It=Ee.createElement("div",{className:`${et}-handle`},Ht&&Ee.createElement(ae.Z,{className:`${et}-loading-icon`})),[gn,hn]=De(et),An=(0,_t.Z)(Ve),Vn=Re()(Xt==null?void 0:Xt.className,{[`${et}-small`]:An==="small",[`${et}-loading`]:Ht,[`${et}-rtl`]:Lt==="rtl"},Zt,jt,hn),mr=Object.assign(Object.assign({},Xt==null?void 0:Xt.style),$t);return gn(Ee.createElement(we.Z,{component:"Switch"},Ee.createElement(Qe,Object.assign({},Je,{prefixCls:et,className:Vn,style:mr,disabled:Nn,ref:le,loadingIcon:It}))))});ce.__ANT_SWITCH=!0;var he=ce},66368:function(dn,en,se){"use strict";se.d(en,{default:function(){return Li}});var ae=se(73475),Pe=se(25877),Re=se(38308),qe=se(94184),ve=se.n(qe),ke=se(87462),Le=se(4942),xe=se(1413),me=se(97685),Ie=se(71002),st=se(45987),Ne=se(67294),xt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Te=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(Te)||/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(Te==null?void 0:Te.substr(0,4))};function pt(Te){var He=Ne.useRef();He.current=Te;var Ke=Ne.useCallback(function(){for(var Ge,ut=arguments.length,vt=new Array(ut),Kt=0;Ktot?(zn=sn,Fe.current="x"):(zn=Ln,Fe.current="y"),He(-zn,-zn)&&bt.preventDefault()}var Wt=(0,Ne.useRef)(null);Wt.current={onTouchStart:wr,onTouchMove:Sr,onTouchEnd:Nr,onWheel:We},Ne.useEffect(function(){function bt(ar){Wt.current.onTouchStart(ar)}function sn(ar){Wt.current.onTouchMove(ar)}function Ln(ar){Wt.current.onTouchEnd(ar)}function zn(ar){Wt.current.onWheel(ar)}return document.addEventListener("touchmove",sn,{passive:!1}),document.addEventListener("touchend",Ln,{passive:!1}),Te.current.addEventListener("touchstart",bt,{passive:!1}),Te.current.addEventListener("wheel",zn),function(){document.removeEventListener("touchmove",sn),document.removeEventListener("touchend",Ln)}},[])}function Xn(Te){var He=(0,Ne.useState)(0),Ke=(0,me.Z)(He,2),Ge=Ke[0],ut=Ke[1],vt=(0,Ne.useRef)(0),Kt=(0,Ne.useRef)();return Kt.current=Te,at(function(){var vn;(vn=Kt.current)===null||vn===void 0||vn.call(Kt)},[Ge]),function(){vt.current===Ge&&(vt.current+=1,ut(vt.current))}}function bn(Te){var He=(0,Ne.useRef)([]),Ke=(0,Ne.useState)({}),Ge=(0,me.Z)(Ke,2),ut=Ge[1],vt=(0,Ne.useRef)(typeof Te=="function"?Te():Te),Kt=Xn(function(){var kn=vt.current;He.current.forEach(function(yr){kn=yr(kn)}),He.current=[],vt.current=kn,ut({})});function vn(kn){He.current.push(kn),Kt()}return[vt.current,vn]}var un={width:0,height:0,left:0,top:0,right:0};function nn(Te,He,Ke,Ge,ut,vt,Kt){var vn=Kt.tabs,kn=Kt.tabPosition,yr=Kt.rtl,Pr,cr,Wn;return["top","bottom"].includes(kn)?(Pr="width",cr=yr?"right":"left",Wn=Math.abs(Ke)):(Pr="height",cr="top",Wn=-Ke),(0,Ne.useMemo)(function(){if(!vn.length)return[0,0];for(var Fn=vn.length,$n=Fn,rr=0;rrWn+He){$n=rr-1;break}}for(var gr=0,fr=Fn-1;fr>=0;fr-=1){var wr=Te.get(vn[fr].key)||un;if(wr[cr]=$n?[0,0]:[gr,$n]},[Te,He,Ge,ut,vt,Wn,kn,vn.map(function(Fn){return Fn.key}).join("_"),yr])}function xn(Te){var He;return Te instanceof Map?(He={},Te.forEach(function(Ke,Ge){He[Ge]=Ke})):He=Te,JSON.stringify(He)}var Pn="TABS_DQ";function De(Te){return String(Te).replace(/"/g,Pn)}function ue(Te,He,Ke,Ge){return!(!Ke||Ge||Te===!1||Te===void 0&&(He===!1||He===null))}function ce(Te,He){var Ke=Te.prefixCls,Ge=Te.editable,ut=Te.locale,vt=Te.style;return!Ge||Ge.showAdd===!1?null:Ne.createElement("button",{ref:He,type:"button",className:"".concat(Ke,"-nav-add"),style:vt,"aria-label":(ut==null?void 0:ut.addAriaLabel)||"Add tab",onClick:function(vn){Ge.onEdit("add",{event:vn})}},Ge.addIcon||"+")}var he=Ne.forwardRef(ce),fe=Ne.forwardRef(function(Te,He){var Ke=Te.position,Ge=Te.prefixCls,ut=Te.extra;if(!ut)return null;var vt,Kt={};return(0,Ie.Z)(ut)==="object"&&!Ne.isValidElement(ut)?Kt=ut:Kt.right=ut,Ke==="right"&&(vt=Kt.right),Ke==="left"&&(vt=Kt.left),vt?Ne.createElement("div",{className:"".concat(Ge,"-extra-content"),ref:He},vt):null}),le=fe,Me=se(62709);function Ve(Te,He,Ke){var Ge=React.useRef({});return(!("value"in Ge.current)||Ke(Ge.current.condition,He))&&(Ge.current.value=Te(),Ge.current.condition=He),Ge.current.value}function ft(Te,He){typeof Te=="function"?Te(He):(0,Ie.Z)(Te)==="object"&&Te&&"current"in Te&&(Te.current=He)}function Ht(){for(var Te=arguments.length,He=new Array(Te),Ke=0;Ke=$t.F1&&Ke<=$t.F12)return!1;switch(Ke){case $t.ALT:case $t.CAPS_LOCK:case $t.CONTEXT_MENU:case $t.CTRL:case $t.DOWN:case $t.END:case $t.ESC:case $t.HOME:case $t.INSERT:case $t.LEFT:case $t.MAC_FF_META:case $t.META:case $t.NUMLOCK:case $t.NUM_CENTER:case $t.PAGE_DOWN:case $t.PAGE_UP:case $t.PAUSE:case $t.PRINT_SCREEN:case $t.RIGHT:case $t.SHIFT:case $t.UP:case $t.WIN_KEY:case $t.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(He){if(He>=$t.ZERO&&He<=$t.NINE||He>=$t.NUM_ZERO&&He<=$t.NUM_MULTIPLY||He>=$t.A&&He<=$t.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&He===0)return!0;switch(He){case $t.SPACE:case $t.QUESTION_MARK:case $t.NUM_PLUS:case $t.NUM_MINUS:case $t.NUM_PERIOD:case $t.NUM_DIVISION:case $t.SEMICOLON:case $t.DASH:case $t.EQUALS:case $t.COMMA:case $t.PERIOD:case $t.SLASH:case $t.APOSTROPHE:case $t.SINGLE_QUOTE:case $t.OPEN_SQUARE_BRACKET:case $t.BACKSLASH:case $t.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Je=$t,Et=function(He){return+setTimeout(He,16)},Lt=function(He){return clearTimeout(He)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Et=function(He){return window.requestAnimationFrame(He)},Lt=function(He){return window.cancelAnimationFrame(He)});var Xt=0,wt=new Map;function Nn(Te){wt.delete(Te)}var et=function(He){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xt+=1;var Ge=Xt;function ut(vt){if(vt===0)Nn(Ge),He();else{var Kt=Et(function(){ut(vt-1)});wt.set(Ge,Kt)}}return ut(Ke),Ge};et.cancel=function(Te){var He=wt.get(Te);return Nn(He),Lt(He)};var It=et,gn=Je.ESC,hn=Je.TAB;function An(Te){var He=Te.visible,Ke=Te.triggerRef,Ge=Te.onVisibleChange,ut=Te.autoFocus,vt=Te.overlayRef,Kt=Ne.useRef(!1),vn=function(){if(He){var cr,Wn;(cr=Ke.current)===null||cr===void 0||(Wn=cr.focus)===null||Wn===void 0||Wn.call(cr),Ge==null||Ge(!1)}},kn=function(){var cr;return(cr=vt.current)!==null&&cr!==void 0&&cr.focus?(vt.current.focus(),Kt.current=!0,!0):!1},yr=function(cr){switch(cr.keyCode){case gn:vn();break;case hn:{var Wn=!1;Kt.current||(Wn=kn()),Wn?cr.preventDefault():vn();break}}};Ne.useEffect(function(){return He?(window.addEventListener("keydown",yr),ut&&It(kn,3),function(){window.removeEventListener("keydown",yr),Kt.current=!1}):function(){Kt.current=!1}},[He])}var Vn=(0,Ne.forwardRef)(function(Te,He){var Ke=Te.overlay,Ge=Te.arrow,ut=Te.prefixCls,vt=(0,Ne.useMemo)(function(){var vn;return typeof Ke=="function"?vn=Ke():vn=Ke,vn},[Ke]),Kt=Ht(He,vt==null?void 0:vt.ref);return Ne.createElement(Ne.Fragment,null,Ge&&Ne.createElement("div",{className:"".concat(ut,"-arrow")}),Ne.cloneElement(vt,{ref:jt(vt)?Kt:void 0}))}),mr=Vn,ur={adjustX:1,adjustY:1},dr=[0,0],Fr={topLeft:{points:["bl","tl"],overflow:ur,offset:[0,-4],targetOffset:dr},top:{points:["bc","tc"],overflow:ur,offset:[0,-4],targetOffset:dr},topRight:{points:["br","tr"],overflow:ur,offset:[0,-4],targetOffset:dr},bottomLeft:{points:["tl","bl"],overflow:ur,offset:[0,4],targetOffset:dr},bottom:{points:["tc","bc"],overflow:ur,offset:[0,4],targetOffset:dr},bottomRight:{points:["tr","br"],overflow:ur,offset:[0,4],targetOffset:dr}},nr=Fr,_r=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function oi(Te,He){var Ke,Ge=Te.arrow,ut=Ge===void 0?!1:Ge,vt=Te.prefixCls,Kt=vt===void 0?"rc-dropdown":vt,vn=Te.transitionName,kn=Te.animation,yr=Te.align,Pr=Te.placement,cr=Pr===void 0?"bottomLeft":Pr,Wn=Te.placements,Fn=Wn===void 0?nr:Wn,$n=Te.getPopupContainer,rr=Te.showAction,Ir=Te.hideAction,gr=Te.overlayClassName,fr=Te.overlayStyle,wr=Te.visible,Sr=Te.trigger,Nr=Sr===void 0?["hover"]:Sr,Fe=Te.autoFocus,We=Te.overlay,Wt=Te.children,bt=Te.onVisibleChange,sn=(0,st.Z)(Te,_r),Ln=Ne.useState(),zn=(0,me.Z)(Ln,2),ar=zn[0],ot=zn[1],Ye="visible"in Te?wr:ar,yt=Ne.useRef(null),Qt=Ne.useRef(null),_n=Ne.useRef(null);Ne.useImperativeHandle(He,function(){return yt.current});var mn=function(Br){ot(Br),bt==null||bt(Br)};An({visible:Ye,triggerRef:_n,onVisibleChange:mn,autoFocus:Fe,overlayRef:Qt});var ln=function(Br){var Cr=Te.onOverlayClick;ot(!1),Cr&&Cr(Br)},sr=function(){return Ne.createElement(mr,{ref:Qt,overlay:We,prefixCls:Kt,arrow:ut})},ir=function(){return typeof We=="function"?sr:sr()},xr=function(){var Br=Te.minOverlayWidthMatchTrigger,Cr=Te.alignPoint;return"minOverlayWidthMatchTrigger"in Te?Br:!Cr},er=function(){var Br=Te.openClassName;return Br!==void 0?Br:"".concat(Kt,"-open")},Tn=Ne.cloneElement(Wt,{className:ve()((Ke=Wt.props)===null||Ke===void 0?void 0:Ke.className,Ye&&er()),ref:jt(Wt)?Ht(_n,Wt.ref):void 0}),Er=Ir;return!Er&&Nr.indexOf("contextMenu")!==-1&&(Er=["click"]),Ne.createElement(Me.Z,(0,ke.Z)({builtinPlacements:Fn},sn,{prefixCls:Kt,ref:yt,popupClassName:ve()(gr,(0,Le.Z)({},"".concat(Kt,"-show-arrow"),ut)),popupStyle:fr,action:Nr,showAction:rr,hideAction:Er,popupPlacement:cr,popupAlign:yr,popupTransitionName:vn,popupAnimation:kn,popupVisible:Ye,stretch:xr()?"minWidth":"",popup:ir(),onPopupVisibleChange:mn,onPopupClick:ln,getPopupContainer:$n}),Tn)}var Wr=Ne.forwardRef(oi),xi=Wr,ti=se(78595),Ct={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(He){var Ke=He.keyCode;if(He.altKey&&!He.ctrlKey||He.metaKey||Ke>=Ct.F1&&Ke<=Ct.F12)return!1;switch(Ke){case Ct.ALT:case Ct.CAPS_LOCK:case Ct.CONTEXT_MENU:case Ct.CTRL:case Ct.DOWN:case Ct.END:case Ct.ESC:case Ct.HOME:case Ct.INSERT:case Ct.LEFT:case Ct.MAC_FF_META:case Ct.META:case Ct.NUMLOCK:case Ct.NUM_CENTER:case Ct.PAGE_DOWN:case Ct.PAGE_UP:case Ct.PAUSE:case Ct.PRINT_SCREEN:case Ct.RIGHT:case Ct.SHIFT:case Ct.UP:case Ct.WIN_KEY:case Ct.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(He){if(He>=Ct.ZERO&&He<=Ct.NINE||He>=Ct.NUM_ZERO&&He<=Ct.NUM_MULTIPLY||He>=Ct.A&&He<=Ct.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&He===0)return!0;switch(He){case Ct.SPACE:case Ct.QUESTION_MARK:case Ct.NUM_PLUS:case Ct.NUM_MINUS:case Ct.NUM_PERIOD:case Ct.NUM_DIVISION:case Ct.SEMICOLON:case Ct.DASH:case Ct.EQUALS:case Ct.COMMA:case Ct.PERIOD:case Ct.SLASH:case Ct.APOSTROPHE:case Ct.SINGLE_QUOTE:case Ct.OPEN_SQUARE_BRACKET:case Ct.BACKSLASH:case Ct.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},wn=Ct;function Rn(Te,He){var Ke=Te.prefixCls,Ge=Te.id,ut=Te.tabs,vt=Te.locale,Kt=Te.mobile,vn=Te.moreIcon,kn=vn===void 0?"More":vn,yr=Te.moreTransitionName,Pr=Te.style,cr=Te.className,Wn=Te.editable,Fn=Te.tabBarGutter,$n=Te.rtl,rr=Te.removeAriaLabel,Ir=Te.onTabClick,gr=Te.getPopupContainer,fr=Te.popupClassName,wr=(0,Ne.useState)(!1),Sr=(0,me.Z)(wr,2),Nr=Sr[0],Fe=Sr[1],We=(0,Ne.useState)(null),Wt=(0,me.Z)(We,2),bt=Wt[0],sn=Wt[1],Ln="".concat(Ge,"-more-popup"),zn="".concat(Ke,"-dropdown"),ar=bt!==null?"".concat(Ln,"-").concat(bt):null,ot=vt==null?void 0:vt.dropdownAriaLabel;function Ye(ir,xr){ir.preventDefault(),ir.stopPropagation(),Wn.onEdit("remove",{key:xr,event:ir})}var yt=Ne.createElement(ti.ZP,{onClick:function(xr){var er=xr.key,Tn=xr.domEvent;Ir(er,Tn),Fe(!1)},prefixCls:"".concat(zn,"-menu"),id:Ln,tabIndex:-1,role:"listbox","aria-activedescendant":ar,selectedKeys:[bt],"aria-label":ot!==void 0?ot:"expanded dropdown"},ut.map(function(ir){var xr=ir.closable,er=ir.disabled,Tn=ir.closeIcon,Er=ir.key,zr=ir.label,Br=ue(xr,Tn,Wn,er);return Ne.createElement(ti.sN,{key:Er,id:"".concat(Ln,"-").concat(Er),role:"option","aria-controls":Ge&&"".concat(Ge,"-panel-").concat(Er),disabled:er},Ne.createElement("span",null,zr),Br&&Ne.createElement("button",{type:"button","aria-label":rr||"remove",tabIndex:0,className:"".concat(zn,"-menu-item-remove"),onClick:function(Dr){Dr.stopPropagation(),Ye(Dr,Er)}},Tn||Wn.removeIcon||"\xD7"))}));function Qt(ir){for(var xr=ut.filter(function(Br){return!Br.disabled}),er=xr.findIndex(function(Br){return Br.key===bt})||0,Tn=xr.length,Er=0;Er1&&arguments[1]!==void 0?arguments[1]:1;nt+=1;var Ge=nt;function ut(vt){if(vt===0)Bt(Ge),He();else{var Kt=Gn(function(){ut(vt-1)});mt.set(Ge,Kt)}}return ut(Ke),Ge};rn.cancel=function(Te){var He=mt.get(Te);return Bt(He),jn(He)};var Ze=rn,St=function(He){var Ke=He.activeTabOffset,Ge=He.horizontal,ut=He.rtl,vt=He.indicatorSize,Kt=(0,Ne.useState)(),vn=(0,me.Z)(Kt,2),kn=vn[0],yr=vn[1],Pr=(0,Ne.useRef)(),cr=function($n){return typeof vt=="function"?vt($n):typeof vt=="number"?vt:$n};function Wn(){Ze.cancel(Pr.current)}return(0,Ne.useEffect)(function(){var Fn={};return Ke&&(Ge?(ut?(Fn.right=Ke.right+Ke.width/2,Fn.transform="translateX(50%)"):(Fn.left=Ke.left+Ke.width/2,Fn.transform="translateX(-50%)"),Fn.width=cr(Ke.width)):(Fn.top=Ke.top+Ke.height/2,Fn.transform="translateY(-50%)",Fn.height=cr(Ke.height))),Wn(),Pr.current=Ze(function(){yr(Fn)}),Wn},[Ke,Ge,ut,vt]),{style:kn}},Vt=St,Nt=function(He){var Ke=He.current||{},Ge=Ke.offsetWidth,ut=Ge===void 0?0:Ge,vt=Ke.offsetHeight,Kt=vt===void 0?0:vt;return[ut,Kt]},cn=function(He,Ke){return He[Ke?0:1]};function on(Te,He){var Ke,Ge=Ne.useContext(je),ut=Ge.prefixCls,vt=Ge.tabs,Kt=Te.className,vn=Te.style,kn=Te.id,yr=Te.animated,Pr=Te.activeKey,cr=Te.rtl,Wn=Te.extra,Fn=Te.editable,$n=Te.locale,rr=Te.tabPosition,Ir=Te.tabBarGutter,gr=Te.children,fr=Te.onTabClick,wr=Te.onTabScroll,Sr=Te.indicatorSize,Nr=(0,Ne.useRef)(),Fe=(0,Ne.useRef)(),We=(0,Ne.useRef)(),Wt=(0,Ne.useRef)(),bt=(0,Ne.useRef)(),sn=(0,Ne.useRef)(),Ln=(0,Ne.useRef)(),zn=rr==="top"||rr==="bottom",ar=At(0,function(ia,Vi){zn&&wr&&wr({direction:ia>Vi?"left":"right"})}),ot=(0,me.Z)(ar,2),Ye=ot[0],yt=ot[1],Qt=At(0,function(ia,Vi){!zn&&wr&&wr({direction:ia>Vi?"top":"bottom"})}),_n=(0,me.Z)(Qt,2),mn=_n[0],ln=_n[1],sr=(0,Ne.useState)([0,0]),ir=(0,me.Z)(sr,2),xr=ir[0],er=ir[1],Tn=(0,Ne.useState)([0,0]),Er=(0,me.Z)(Tn,2),zr=Er[0],Br=Er[1],Cr=(0,Ne.useState)([0,0]),Dr=(0,me.Z)(Cr,2),ui=Dr[0],ei=Dr[1],ii=(0,Ne.useState)([0,0]),Ti=(0,me.Z)(ii,2),ea=Ti[0],Si=Ti[1],zi=bn(new Map),ai=(0,me.Z)(zi,2),vi=ai[0],_i=ai[1],Ki=we(vt,vi,zr[0]),Ea=cn(xr,zn),Ta=cn(zr,zn),va=cn(ui,zn),ra=cn(ea,zn),Yi=Easi?si:ia}var ua=(0,Ne.useRef)(),ta=(0,Ne.useState)(),oa=(0,me.Z)(ta,2),Bi=oa[0],pa=oa[1];function wa(){pa(Date.now())}function fa(){window.clearTimeout(ua.current)}qt(Wt,function(ia,Vi){function Oa(Da,co){Da(function(ao){var hs=Ui(ao+co);return hs})}return Yi?(zn?Oa(yt,ia):Oa(ln,Vi),fa(),wa(),!0):!1}),(0,Ne.useEffect)(function(){return fa(),Bi&&(ua.current=window.setTimeout(function(){pa(0)},100)),fa},[Bi]);var Sa=nn(Ki,ki,zn?Ye:mn,Ta,va,ra,(0,xe.Z)((0,xe.Z)({},Te),{},{tabs:vt})),La=(0,me.Z)(Sa,2),Va=La[0],ha=La[1],Ba=pt(function(){var ia=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pr,Vi=Ki.get(ia)||{width:0,height:0,left:0,right:0,top:0};if(zn){var Oa=Ye;cr?Vi.rightYe+ki&&(Oa=Vi.right+Vi.width-ki):Vi.left<-Ye?Oa=-Vi.left:Vi.left+Vi.width>-Ye+ki&&(Oa=-(Vi.left+Vi.width-ki)),ln(0),yt(Ui(Oa))}else{var Da=mn;Vi.top<-mn?Da=-Vi.top:Vi.top+Vi.height>-mn+ki&&(Da=-(Vi.top+Vi.height-ki)),yt(0),ln(Ui(Da))}}),qa={};rr==="top"||rr==="bottom"?qa[cr?"marginRight":"marginLeft"]=Ir:qa.marginTop=Ir;var Ya=vt.map(function(ia,Vi){var Oa=ia.key;return Ne.createElement(lr,{id:kn,prefixCls:ut,key:Oa,tab:ia,style:Vi===0?void 0:qa,closable:ia.closable,editable:Fn,active:Oa===Pr,renderWrapper:gr,removeAriaLabel:$n==null?void 0:$n.removeAriaLabel,onClick:function(co){fr(Oa,co)},onFocus:function(){Ba(Oa),wa(),Wt.current&&(cr||(Wt.current.scrollLeft=0),Wt.current.scrollTop=0)}})}),so=function(){return _i(function(){var Vi=new Map;return vt.forEach(function(Oa){var Da,co=Oa.key,ao=(Da=bt.current)===null||Da===void 0?void 0:Da.querySelector('[data-node-key="'.concat(De(co),'"]'));ao&&Vi.set(co,{width:ao.offsetWidth,height:ao.offsetHeight,left:ao.offsetLeft,top:ao.offsetTop})}),Vi})};(0,Ne.useEffect)(function(){so()},[vt.map(function(ia){return ia.key}).join("_")]);var _a=Xn(function(){var ia=Nt(Nr),Vi=Nt(Fe),Oa=Nt(We);er([ia[0]-Vi[0]-Oa[0],ia[1]-Vi[1]-Oa[1]]);var Da=Nt(Ln);ei(Da);var co=Nt(sn);Si(co);var ao=Nt(bt);Br([ao[0]-Da[0],ao[1]-Da[1]]),so()}),Aa=vt.slice(0,Va),Wi=vt.slice(ha+1),Xi=[].concat((0,tt.Z)(Aa),(0,tt.Z)(Wi)),da=Ki.get(Pr),Ca=Vt({activeTabOffset:da,horizontal:zn,rtl:cr,indicatorSize:Sr}),Ka=Ca.style;(0,Ne.useEffect)(function(){Ba()},[Pr,Ri,si,xn(da),xn(Ki),zn]),(0,Ne.useEffect)(function(){_a()},[cr]);var io=!!Xi.length,ho="".concat(ut,"-nav-wrap"),Po,No,lo,Bo;return zn?cr?(No=Ye>0,Po=Ye!==si):(Po=Ye<0,No=Ye!==Ri):(lo=mn<0,Bo=mn!==Ri),Ne.createElement(Jt.Z,{onResize:_a},Ne.createElement("div",{ref:Yn(He,Nr),role:"tablist",className:ve()("".concat(ut,"-nav"),Kt),style:vn,onKeyDown:function(){wa()}},Ne.createElement(le,{ref:Fe,position:"left",extra:Wn,prefixCls:ut}),Ne.createElement(Jt.Z,{onResize:_a},Ne.createElement("div",{className:ve()(ho,(Ke={},(0,Le.Z)(Ke,"".concat(ho,"-ping-left"),Po),(0,Le.Z)(Ke,"".concat(ho,"-ping-right"),No),(0,Le.Z)(Ke,"".concat(ho,"-ping-top"),lo),(0,Le.Z)(Ke,"".concat(ho,"-ping-bottom"),Bo),Ke)),ref:Wt},Ne.createElement(Jt.Z,{onResize:_a},Ne.createElement("div",{ref:bt,className:"".concat(ut,"-nav-list"),style:{transform:"translate(".concat(Ye,"px, ").concat(mn,"px)"),transition:Bi?"none":void 0}},Ya,Ne.createElement(he,{ref:Ln,prefixCls:ut,locale:$n,editable:Fn,style:(0,xe.Z)((0,xe.Z)({},Ya.length===0?void 0:qa),{},{visibility:io?"hidden":null})}),Ne.createElement("div",{className:ve()("".concat(ut,"-ink-bar"),(0,Le.Z)({},"".concat(ut,"-ink-bar-animated"),yr.inkBar)),style:Ka}))))),Ne.createElement(an,(0,ke.Z)({},Te,{removeAriaLabel:$n==null?void 0:$n.removeAriaLabel,ref:sn,prefixCls:ut,tabs:Xi,className:!io&&Ma,tabMoving:!!Bi})),Ne.createElement(le,{ref:We,position:"right",extra:Wn,prefixCls:ut})))}var Kn=Ne.forwardRef(on),Hr=["renderTabBar"],hr=["label","key"];function or(Te){var He=Te.renderTabBar,Ke=(0,st.Z)(Te,Hr),Ge=Ne.useContext(je),ut=Ge.tabs;if(He){var vt=(0,xe.Z)((0,xe.Z)({},Ke),{},{panes:ut.map(function(Kt){var vn=Kt.label,kn=Kt.key,yr=(0,st.Z)(Kt,hr);return Ne.createElement(Mt,(0,ke.Z)({tab:vn,key:kn,tabKey:kn},yr))})});return He(vt,Kn)}return Ne.createElement(Kn,Ke)}var Ar={},Lr=[],kt=function(He){Lr.push(He)};function gt(Te,He){if(0)var Ke}function Dt(Te,He){if(0)var Ke}function En(){Ar={}}function qn(Te,He,Ke){!He&&!Ar[Ke]&&(Te(!1,Ke),Ar[Ke]=!0)}function Cn(Te,He){qn(gt,Te,He)}function Dn(Te,He){qn(Dt,Te,He)}Cn.preMessage=kt,Cn.resetWarned=En,Cn.noteOnce=Dn;var In=null;function Un(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},He;return Te===!1?He={inkBar:!1,tabPane:!1}:Te===!0?He={inkBar:!0,tabPane:!1}:He=(0,xe.Z)({inkBar:!0},(0,Ie.Z)(Te)==="object"?Te:{}),He.tabPaneMotion&&He.tabPane===void 0&&(He.tabPane=!0),!He.tabPaneMotion&&He.tabPane&&(He.tabPane=!1),He}var kr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],pn=0;function di(Te,He){var Ke,Ge=Te.id,ut=Te.prefixCls,vt=ut===void 0?"rc-tabs":ut,Kt=Te.className,vn=Te.items,kn=Te.direction,yr=Te.activeKey,Pr=Te.defaultActiveKey,cr=Te.editable,Wn=Te.animated,Fn=Te.tabPosition,$n=Fn===void 0?"top":Fn,rr=Te.tabBarGutter,Ir=Te.tabBarStyle,gr=Te.tabBarExtraContent,fr=Te.locale,wr=Te.moreIcon,Sr=Te.moreTransitionName,Nr=Te.destroyInactiveTabPane,Fe=Te.renderTabBar,We=Te.onChange,Wt=Te.onTabClick,bt=Te.onTabScroll,sn=Te.getPopupContainer,Ln=Te.popupClassName,zn=Te.indicatorSize,ar=(0,st.Z)(Te,kr),ot=Ne.useMemo(function(){return(vn||[]).filter(function(Si){return Si&&(0,Ie.Z)(Si)==="object"&&"key"in Si})},[vn]),Ye=kn==="rtl",yt=Un(Wn),Qt=(0,Ne.useState)(!1),_n=(0,me.Z)(Qt,2),mn=_n[0],ln=_n[1];(0,Ne.useEffect)(function(){ln(xt())},[]);var sr=Se(function(){var Si;return(Si=ot[0])===null||Si===void 0?void 0:Si.key},{value:yr,defaultValue:Pr}),ir=(0,me.Z)(sr,2),xr=ir[0],er=ir[1],Tn=(0,Ne.useState)(function(){return ot.findIndex(function(Si){return Si.key===xr})}),Er=(0,me.Z)(Tn,2),zr=Er[0],Br=Er[1];(0,Ne.useEffect)(function(){var Si=ot.findIndex(function(ai){return ai.key===xr});if(Si===-1){var zi;Si=Math.max(0,Math.min(zr,ot.length-1)),er((zi=ot[Si])===null||zi===void 0?void 0:zi.key)}Br(Si)},[ot.map(function(Si){return Si.key}).join("_"),xr,zr]);var Cr=Se(null,{value:Ge}),Dr=(0,me.Z)(Cr,2),ui=Dr[0],ei=Dr[1];(0,Ne.useEffect)(function(){Ge||(ei("rc-tabs-".concat(pn)),pn+=1)},[]);function ii(Si,zi){Wt==null||Wt(Si,zi);var ai=Si!==xr;er(Si),ai&&(We==null||We(Si))}var Ti={id:ui,activeKey:xr,animated:yt,tabPosition:$n,rtl:Ye,mobile:mn},ea=(0,xe.Z)((0,xe.Z)({},Ti),{},{editable:cr,locale:fr,moreIcon:wr,moreTransitionName:Sr,tabBarGutter:rr,onTabClick:ii,onTabScroll:bt,extra:gr,style:Ir,panes:null,getPopupContainer:sn,popupClassName:Ln,indicatorSize:zn});return Ne.createElement(je.Provider,{value:{tabs:ot,prefixCls:vt}},Ne.createElement("div",(0,ke.Z)({ref:He,id:Ge,className:ve()(vt,"".concat(vt,"-").concat($n),(Ke={},(0,Le.Z)(Ke,"".concat(vt,"-mobile"),mn),(0,Le.Z)(Ke,"".concat(vt,"-editable"),cr),(0,Le.Z)(Ke,"".concat(vt,"-rtl"),Ye),Ke),Kt)},ar),Ne.createElement(or,(0,ke.Z)({},ea,{renderTabBar:Fe})),Ne.createElement(Ft,(0,ke.Z)({destroyInactiveTabPane:Nr},Ti,{animated:yt}))))}var Qr=Ne.forwardRef(di),Fi=Qr,Ni=Fi,Ci=se(53124),Qi=se(98675),pi=()=>null,Hi=se(33603);const $i={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ci(Te){let He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ke;return He===!1?Ke={inkBar:!1,tabPane:!1}:He===!0?Ke={inkBar:!0,tabPane:!0}:Ke=Object.assign({inkBar:!0},typeof He=="object"?He:{}),Ke.tabPane&&(Ke.tabPaneMotion=Object.assign(Object.assign({},$i),{motionName:(0,Hi.m)(Te,"switch")})),Ke}var Mi=se(37419),Ji=function(Te,He){var Ke={};for(var Ge in Te)Object.prototype.hasOwnProperty.call(Te,Ge)&&He.indexOf(Ge)<0&&(Ke[Ge]=Te[Ge]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ge=Object.getOwnPropertySymbols(Te);utHe)}function na(Te,He){if(Te)return Te;const Ke=(0,Mi.Z)(He).map(Ge=>{if(Ne.isValidElement(Ge)){const{key:ut,props:vt}=Ge,Kt=vt||{},{tab:vn}=Kt,kn=Ji(Kt,["tab"]);return Object.assign(Object.assign({key:String(ut)},kn),{label:vn})}return null});return ca(Ke)}var hi=se(14747),zt=se(67968),Tt=se(45503),fn=se(67771),Qn=Te=>{const{componentCls:He,motionDurationSlow:Ke}=Te;return[{[He]:{[`${He}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ke}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ke}`}}}}},[(0,fn.oN)(Te,"slide-up"),(0,fn.oN)(Te,"slide-down")]]};const Or=Te=>{const{componentCls:He,tabsCardPadding:Ke,cardBg:Ge,cardGutter:ut,colorBorderSecondary:vt,itemSelectedColor:Kt}=Te;return{[`${He}-card`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{margin:0,padding:Ke,background:Ge,border:`${Te.lineWidth}px ${Te.lineType} ${vt}`,transition:`all ${Te.motionDurationSlow} ${Te.motionEaseInOut}`},[`${He}-tab-active`]:{color:Kt,background:Te.colorBgContainer},[`${He}-ink-bar`]:{visibility:"hidden"}},[`&${He}-top, &${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab + ${He}-tab`]:{marginLeft:{_skip_check_:!0,value:`${ut}px`}}}},[`&${He}-top`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:`${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0 0`},[`${He}-tab-active`]:{borderBottomColor:Te.colorBgContainer}}},[`&${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:`0 0 ${Te.borderRadiusLG}px ${Te.borderRadiusLG}px`},[`${He}-tab-active`]:{borderTopColor:Te.colorBgContainer}}},[`&${He}-left, &${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab + ${He}-tab`]:{marginTop:`${ut}px`}}},[`&${He}-left`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Te.borderRadiusLG}px 0 0 ${Te.borderRadiusLG}px`}},[`${He}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Te.colorBgContainer}}}},[`&${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0`}},[`${He}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Te.colorBgContainer}}}}}}},Zr=Te=>{const{componentCls:He,itemHoverColor:Ke,dropdownEdgeChildVerticalPadding:Ge}=Te;return{[`${He}-dropdown`]:Object.assign(Object.assign({},(0,hi.Wf)(Te)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Te.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${He}-dropdown-menu`]:{maxHeight:Te.tabsDropdownHeight,margin:0,padding:`${Ge}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Te.colorBgContainer,backgroundClip:"padding-box",borderRadius:Te.borderRadiusLG,outline:"none",boxShadow:Te.boxShadowSecondary,"&-item":Object.assign(Object.assign({},hi.vS),{display:"flex",alignItems:"center",minWidth:Te.tabsDropdownWidth,margin:0,padding:`${Te.paddingXXS}px ${Te.paddingSM}px`,color:Te.colorText,fontWeight:"normal",fontSize:Te.fontSize,lineHeight:Te.lineHeight,cursor:"pointer",transition:`all ${Te.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Te.marginSM},color:Te.colorTextDescription,fontSize:Te.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ke}},"&:hover":{background:Te.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Te.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Jr=Te=>{const{componentCls:He,margin:Ke,colorBorderSecondary:Ge,horizontalMargin:ut,verticalItemPadding:vt,verticalItemMargin:Kt}=Te;return{[`${He}-top, ${He}-bottom`]:{flexDirection:"column",[`> ${He}-nav, > div > ${He}-nav`]:{margin:ut,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Te.lineWidth}px ${Te.lineType} ${Ge}`,content:"''"},[`${He}-ink-bar`]:{height:Te.lineWidthBold,"&-animated":{transition:`width ${Te.motionDurationSlow}, left ${Te.motionDurationSlow}, right ${Te.motionDurationSlow}`}},[`${He}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Te.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Te.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Te.boxShadowTabsOverflowRight},[`&${He}-nav-wrap-ping-left::before`]:{opacity:1},[`&${He}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${He}-top`]:{[`> ${He}-nav, > div > ${He}-nav`]:{"&::before":{bottom:0},[`${He}-ink-bar`]:{bottom:0}}},[`${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{order:1,marginTop:`${Ke}px`,marginBottom:0,"&::before":{top:0},[`${He}-ink-bar`]:{top:0}},[`> ${He}-content-holder, > div > ${He}-content-holder`]:{order:0}},[`${He}-left, ${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{flexDirection:"column",minWidth:Te.controlHeight*1.25,[`${He}-tab`]:{padding:vt,textAlign:"center"},[`${He}-tab + ${He}-tab`]:{margin:Kt},[`${He}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Te.controlHeight},"&::before":{top:0,boxShadow:Te.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Te.boxShadowTabsOverflowBottom},[`&${He}-nav-wrap-ping-top::before`]:{opacity:1},[`&${He}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${He}-ink-bar`]:{width:Te.lineWidthBold,"&-animated":{transition:`height ${Te.motionDurationSlow}, top ${Te.motionDurationSlow}`}},[`${He}-nav-list, ${He}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${He}-left`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${He}-content-holder, > div > ${He}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Te.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Te.lineWidth}px ${Te.lineType} ${Te.colorBorder}`},[`> ${He}-content > ${He}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Te.paddingLG}}}},[`${He}-right`]:{[`> ${He}-nav, > div > ${He}-nav`]:{order:1,[`${He}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${He}-content-holder, > div > ${He}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Te.lineWidth},borderRight:{_skip_check_:!0,value:`${Te.lineWidth}px ${Te.lineType} ${Te.colorBorder}`},[`> ${He}-content > ${He}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Te.paddingLG}}}}}},ri=Te=>{const{componentCls:He,cardPaddingSM:Ke,cardPaddingLG:Ge,horizontalItemPaddingSM:ut,horizontalItemPaddingLG:vt}=Te;return{[He]:{"&-small":{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:ut,fontSize:Te.titleFontSizeSM}}},"&-large":{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:vt,fontSize:Te.titleFontSizeLG}}}},[`${He}-card`]:{[`&${He}-small`]:{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:Ke}},[`&${He}-bottom`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:`0 0 ${Te.borderRadius}px ${Te.borderRadius}px`}},[`&${He}-top`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:`${Te.borderRadius}px ${Te.borderRadius}px 0 0`}},[`&${He}-right`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Te.borderRadius}px ${Te.borderRadius}px 0`}}},[`&${He}-left`]:{[`> ${He}-nav ${He}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Te.borderRadius}px 0 0 ${Te.borderRadius}px`}}}},[`&${He}-large`]:{[`> ${He}-nav`]:{[`${He}-tab`]:{padding:Ge}}}}}},qr=Te=>{const{componentCls:He,itemActiveColor:Ke,itemHoverColor:Ge,iconCls:ut,tabsHorizontalItemMargin:vt,horizontalItemPadding:Kt,itemSelectedColor:vn,itemColor:kn}=Te,yr=`${He}-tab`;return{[yr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Kt,fontSize:Te.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:kn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ke}},(0,hi.Qy)(Te)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Te.marginXXS},marginLeft:{_skip_check_:!0,value:Te.marginXS},color:Te.colorTextDescription,fontSize:Te.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Te.motionDurationSlow}`,"&:hover":{color:Te.colorTextHeading}},"&:hover":{color:Ge},[`&${yr}-active ${yr}-btn`]:{color:vn,textShadow:Te.tabsActiveTextShadow},[`&${yr}-disabled`]:{color:Te.colorTextDisabled,cursor:"not-allowed"},[`&${yr}-disabled ${yr}-btn, &${yr}-disabled ${He}-remove`]:{"&:focus, &:active":{color:Te.colorTextDisabled}},[`& ${yr}-remove ${ut}`]:{margin:0},[ut]:{marginRight:{_skip_check_:!0,value:Te.marginSM}}},[`${yr} + ${yr}`]:{margin:{_skip_check_:!0,value:vt}}}},fi=Te=>{const{componentCls:He,tabsHorizontalItemMarginRTL:Ke,iconCls:Ge,cardGutter:ut}=Te;return{[`${He}-rtl`]:{direction:"rtl",[`${He}-nav`]:{[`${He}-tab`]:{margin:{_skip_check_:!0,value:Ke},[`${He}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ge]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Te.marginSM}px`}},[`${He}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Te.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Te.marginXXS}px`},[Ge]:{margin:0}}}},[`&${He}-left`]:{[`> ${He}-nav`]:{order:1},[`> ${He}-content-holder`]:{order:0}},[`&${He}-right`]:{[`> ${He}-nav`]:{order:0},[`> ${He}-content-holder`]:{order:1}},[`&${He}-card${He}-top, &${He}-card${He}-bottom`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-tab + ${He}-tab`]:{marginRight:{_skip_check_:!0,value:ut},marginLeft:{_skip_check_:!0,value:0}}}}},[`${He}-dropdown-rtl`]:{direction:"rtl"},[`${He}-menu-item`]:{[`${He}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ai=Te=>{const{componentCls:He,tabsCardPadding:Ke,cardHeight:Ge,cardGutter:ut,itemHoverColor:vt,itemActiveColor:Kt,colorBorderSecondary:vn}=Te;return{[He]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,hi.Wf)(Te)),{display:"flex",[`> ${He}-nav, > div > ${He}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${He}-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 ${Te.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${He}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Te.motionDurationSlow}`},[`${He}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${He}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${He}-nav-more`]:{position:"relative",padding:Ke,background:"transparent",border:0,color:Te.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Te.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${He}-nav-add`]:Object.assign({minWidth:Ge,marginLeft:{_skip_check_:!0,value:ut},padding:`0 ${Te.paddingXS}px`,background:"transparent",border:`${Te.lineWidth}px ${Te.lineType} ${vn}`,borderRadius:`${Te.borderRadiusLG}px ${Te.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Te.colorText,transition:`all ${Te.motionDurationSlow} ${Te.motionEaseInOut}`,"&:hover":{color:vt},"&:active, &:focus:not(:focus-visible)":{color:Kt}},(0,hi.Qy)(Te))},[`${He}-extra-content`]:{flex:"none"},[`${He}-ink-bar`]:{position:"absolute",background:Te.inkBarColor,pointerEvents:"none"}}),qr(Te)),{[`${He}-content`]:{position:"relative",width:"100%"},[`${He}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${He}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${He}-centered`]:{[`> ${He}-nav, > div > ${He}-nav`]:{[`${He}-nav-wrap`]:{[`&:not([class*='${He}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var jr=(0,zt.Z)("Tabs",Te=>{const He=(0,Tt.TS)(Te,{tabsCardPadding:Te.cardPadding||`${(Te.cardHeight-Math.round(Te.fontSize*Te.lineHeight))/2-Te.lineWidth}px ${Te.padding}px`,dropdownEdgeChildVerticalPadding:Te.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Te.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Te.horizontalItemGutter}px`});return[ri(He),fi(He),Jr(He),Zr(He),Or(He),Ai(He),Qn(He)]},Te=>{const He=Te.controlHeightLG;return{zIndexPopup:Te.zIndexPopupBase+50,cardBg:Te.colorFillAlter,cardHeight:He,cardPadding:"",cardPaddingSM:`${Te.paddingXXS*1.5}px ${Te.padding}px`,cardPaddingLG:`${Te.paddingXS}px ${Te.padding}px ${Te.paddingXXS*1.5}px`,titleFontSize:Te.fontSize,titleFontSizeLG:Te.fontSizeLG,titleFontSizeSM:Te.fontSize,inkBarColor:Te.colorPrimary,horizontalMargin:`0 0 ${Te.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Te.paddingSM}px 0`,horizontalItemPaddingSM:`${Te.paddingXS}px 0`,horizontalItemPaddingLG:`${Te.padding}px 0`,verticalItemPadding:`${Te.paddingXS}px ${Te.paddingLG}px`,verticalItemMargin:`${Te.margin}px 0 0 0`,itemColor:Te.colorText,itemSelectedColor:Te.colorPrimary,itemHoverColor:Te.colorPrimaryHover,itemActiveColor:Te.colorPrimaryActive,cardGutter:Te.marginXXS/2}}),wi=function(Te,He){var Ke={};for(var Ge in Te)Object.prototype.hasOwnProperty.call(Te,Ge)&&He.indexOf(Ge)<0&&(Ke[Ge]=Te[Ge]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ge=Object.getOwnPropertySymbols(Te);ut{const{type:He,className:Ke,rootClassName:Ge,size:ut,onEdit:vt,hideAdd:Kt,centered:vn,addIcon:kn,popupClassName:yr,children:Pr,items:cr,animated:Wn,style:Fn,indicatorSize:$n}=Te,rr=wi(Te,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Ir,moreIcon:gr=Ne.createElement(Pe.Z,null)}=rr,{direction:fr,tabs:wr,getPrefixCls:Sr,getPopupContainer:Nr}=Ne.useContext(Ci.E_),Fe=Sr("tabs",Ir),[We,Wt]=jr(Fe);let bt;He==="editable-card"&&(bt={onEdit:(Ye,yt)=>{let{key:Qt,event:_n}=yt;vt==null||vt(Ye==="add"?_n:Qt,Ye)},removeIcon:Ne.createElement(ae.Z,null),addIcon:kn||Ne.createElement(Re.Z,null),showAdd:Kt!==!0});const sn=Sr(),Ln=na(cr,Pr),zn=ci(Fe,Wn),ar=(0,Qi.Z)(ut),ot=Object.assign(Object.assign({},wr==null?void 0:wr.style),Fn);return We(Ne.createElement(Ni,Object.assign({direction:fr,getPopupContainer:Nr,moreTransitionName:`${sn}-slide-up`},rr,{items:Ln,className:ve()({[`${Fe}-${ar}`]:ar,[`${Fe}-card`]:["card","editable-card"].includes(He),[`${Fe}-editable-card`]:He==="editable-card",[`${Fe}-centered`]:vn},wr==null?void 0:wr.className,Ke,Ge,Wt),popupClassName:ve()(yr,Wt),style:ot,editable:bt,moreIcon:gr,prefixCls:Fe,animated:zn,indicatorSize:$n!=null?$n:wr==null?void 0:wr.indicatorSize})))};Di.TabPane=pi;var Li=Di},59810:function(dn,en,se){"use strict";se.d(en,{default:function(){return Lr}});var ae=se(67294),Pe=se(74902),Re=se(94184),qe=se.n(Re),ve=se(87462),ke=se(15671),Le=se(43144),xe=se(60136),me=se(51630),Ie=se(4942),st=se(45987),Ne=se(74165),xt=se(71002),pt=se(15861),ct=se(64217);function rt(kt,gt){var Dt="cannot ".concat(kt.method," ").concat(kt.action," ").concat(gt.status,"'"),En=new Error(Dt);return En.status=gt.status,En.method=kt.method,En.url=kt.action,En}function Ee(kt){var gt=kt.responseText||kt.response;if(!gt)return gt;try{return JSON.parse(gt)}catch(Dt){return gt}}function at(kt){var gt=new XMLHttpRequest;kt.onProgress&>.upload&&(gt.upload.onprogress=function(Cn){Cn.total>0&&(Cn.percent=Cn.loaded/Cn.total*100),kt.onProgress(Cn)});var Dt=new FormData;kt.data&&Object.keys(kt.data).forEach(function(qn){var Cn=kt.data[qn];if(Array.isArray(Cn)){Cn.forEach(function(Dn){Dt.append("".concat(qn,"[]"),Dn)});return}Dt.append(qn,Cn)}),kt.file instanceof Blob?Dt.append(kt.filename,kt.file,kt.file.name):Dt.append(kt.filename,kt.file),gt.onerror=function(Cn){kt.onError(Cn)},gt.onload=function(){return gt.status<200||gt.status>=300?kt.onError(rt(kt,gt),Ee(gt)):kt.onSuccess(Ee(gt),gt)},gt.open(kt.method,kt.action,!0),kt.withCredentials&&"withCredentials"in gt&&(gt.withCredentials=!0);var En=kt.headers||{};return En["X-Requested-With"]!==null&>.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(En).forEach(function(qn){En[qn]!==null&>.setRequestHeader(qn,En[qn])}),gt.send(Dt),{abort:function(){gt.abort()}}}var Yt=+new Date,Xe=0;function lt(){return"rc-upload-".concat(Yt,"-").concat(++Xe)}var Se=se(80334),Ce=function(kt,gt){if(kt&>){var Dt=Array.isArray(gt)?gt:gt.split(","),En=kt.name||"",qn=kt.type||"",Cn=qn.replace(/\/.*$/,"");return Dt.some(function(Dn){var In=Dn.trim();if(/^\*(\/\*)?$/.test(Dn))return!0;if(In.charAt(0)==="."){var Un=En.toLowerCase(),kr=In.toLowerCase(),pn=[kr];return(kr===".jpg"||kr===".jpeg")&&(pn=[".jpg",".jpeg"]),pn.some(function(di){return Un.endsWith(di)})}return/\/\*$/.test(In)?Cn===In.replace(/\/.*$/,""):qn===In?!0:/^\w+$/.test(In)?((0,Se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(In,"'.Skip for check.")),!0):!1})}return!0};function je(kt,gt){var Dt=kt.createReader(),En=[];function qn(){Dt.readEntries(function(Cn){var Dn=Array.prototype.slice.apply(Cn);En=En.concat(Dn);var In=!Dn.length;In?gt(En):qn()})}qn()}var Ue=function(gt,Dt,En){var qn=function Cn(Dn,In){Dn&&(Dn.path=In||"",Dn.isFile?Dn.file(function(Un){En(Un)&&(Dn.fullPath&&!Un.webkitRelativePath&&(Object.defineProperties(Un,{webkitRelativePath:{writable:!0}}),Un.webkitRelativePath=Dn.fullPath.replace(/^\//,""),Object.defineProperties(Un,{webkitRelativePath:{writable:!1}})),Dt([Un]))}):Dn.isDirectory&&je(Dn,function(Un){Un.forEach(function(kr){Cn(kr,"".concat(In).concat(Dn.name,"/"))})}))};gt.forEach(function(Cn){qn(Cn.webkitGetAsEntry())})},Mt=Ue,ht=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ft=function(kt){(0,xe.Z)(Dt,kt);var gt=(0,me.Z)(Dt);function Dt(){var En;(0,ke.Z)(this,Dt);for(var qn=arguments.length,Cn=new Array(qn),Dn=0;Dn{let{uid:Cn}=qn;return Cn===kt.uid});return En===-1?Dt.push(kt):Dt[En]=kt,Dt}function Zt(kt,gt){const Dt=kt.uid!==void 0?"uid":"name";return gt.filter(En=>En[Dt]===kt[Dt])[0]}function jt(kt,gt){const Dt=kt.uid!==void 0?"uid":"name",En=gt.filter(qn=>qn[Dt]!==kt[Dt]);return En.length===gt.length?null:En}const $t=function(){const gt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),En=gt[gt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(En)||[""])[0]},Je=kt=>kt.indexOf("image/")===0,Et=kt=>{if(kt.type&&!kt.thumbUrl)return Je(kt.type);const gt=kt.thumbUrl||kt.url||"",Dt=$t(gt);return/^data:image\//.test(gt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Dt)?!0:!(/^data:/.test(gt)||Dt)},Lt=200;function Xt(kt){return new Promise(gt=>{if(!kt.type||!Je(kt.type)){gt("");return}const Dt=document.createElement("canvas");Dt.width=Lt,Dt.height=Lt,Dt.style.cssText=`position: fixed; left: 0; top: 0; width: ${Lt}px; height: ${Lt}px; z-index: 9999; display: none;`,document.body.appendChild(Dt);const En=Dt.getContext("2d"),qn=new Image;if(qn.onload=()=>{const{width:Cn,height:Dn}=qn;let In=Lt,Un=Lt,kr=0,pn=0;Cn>Dn?(Un=Dn*(Lt/Cn),pn=-(Un-In)/2):(In=Cn*(Lt/Dn),kr=-(In-Un)/2),En.drawImage(qn,kr,pn,In,Un);const di=Dt.toDataURL();document.body.removeChild(Dt),window.URL.revokeObjectURL(qn.src),gt(di)},qn.crossOrigin="anonymous",kt.type.startsWith("image/svg+xml")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&&(qn.src=Cn.result)},Cn.readAsDataURL(kt)}else if(kt.type.startsWith("image/gif")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&>(Cn.result)},Cn.readAsDataURL(kt)}else qn.src=window.URL.createObjectURL(kt)})}var wt=se(84249),Nn=se(90674),et=se(99569),It=se(38703),gn=se(83062),An=ae.forwardRef((kt,gt)=>{let{prefixCls:Dt,className:En,style:qn,locale:Cn,listType:Dn,file:In,items:Un,progress:kr,iconRender:pn,actionIconRender:di,itemRender:Qr,isImgUrl:Fi,showPreviewIcon:Ni,showRemoveIcon:Ci,showDownloadIcon:Qi,previewIcon:Ei,removeIcon:pi,downloadIcon:Hi,onPreview:$i,onDownload:ci,onClose:Mi}=kt;var Ji,ca;const{status:na}=In,[hi,zt]=ae.useState(na);ae.useEffect(()=>{na!=="removed"&&zt(na)},[na]);const[Tt,fn]=ae.useState(!1);ae.useEffect(()=>{const ut=setTimeout(()=>{fn(!0)},300);return()=>{clearTimeout(ut)}},[]);const Bn=pn(In);let Qn=ae.createElement("div",{className:`${Dt}-icon`},Bn);if(Dn==="picture"||Dn==="picture-card"||Dn==="picture-circle")if(hi==="uploading"||!In.thumbUrl&&!In.url){const ut=qe()(`${Dt}-list-item-thumbnail`,{[`${Dt}-list-item-file`]:hi!=="uploading"});Qn=ae.createElement("div",{className:ut},Bn)}else{const ut=Fi!=null&&Fi(In)?ae.createElement("img",{src:In.thumbUrl||In.url,alt:In.name,className:`${Dt}-list-item-image`,crossOrigin:In.crossOrigin}):Bn,vt=qe()(`${Dt}-list-item-thumbnail`,{[`${Dt}-list-item-file`]:Fi&&!Fi(In)});Qn=ae.createElement("a",{className:vt,onClick:Kt=>$i(In,Kt),href:In.url||In.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ut)}const Or=qe()(`${Dt}-list-item`,`${Dt}-list-item-${hi}`),Zr=typeof In.linkProps=="string"?JSON.parse(In.linkProps):In.linkProps,Jr=Ci?di((typeof pi=="function"?pi(In):pi)||ae.createElement(wt.Z,null),()=>Mi(In),Dt,Cn.removeFile):null,ri=Qi&&hi==="done"?di((typeof Hi=="function"?Hi(In):Hi)||ae.createElement(Nn.Z,null),()=>ci(In),Dt,Cn.downloadFile):null,qr=Dn!=="picture-card"&&Dn!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:qe()(`${Dt}-list-item-actions`,{picture:Dn==="picture"})},ri,Jr),fi=qe()(`${Dt}-list-item-name`),Ai=In.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:fi,title:In.name},Zr,{href:In.url,onClick:ut=>$i(In,ut)}),In.name),qr]:[ae.createElement("span",{key:"view",className:fi,onClick:ut=>$i(In,ut),title:In.name},In.name),qr],jr={pointerEvents:"none",opacity:.5},wi=Ni?ae.createElement("a",{href:In.url||In.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:In.url||In.thumbUrl?void 0:jr,onClick:ut=>$i(In,ut),title:Cn.previewFile},typeof Ei=="function"?Ei(In):Ei||ae.createElement(et.Z,null)):null,Di=(Dn==="picture-card"||Dn==="picture-circle")&&hi!=="uploading"&&ae.createElement("span",{className:`${Dt}-list-item-actions`},wi,hi==="done"&&ri,Jr),{getPrefixCls:Li}=ae.useContext(tr.E_),Te=Li(),He=ae.createElement("div",{className:Or},Qn,Ai,Di,Tt&&ae.createElement(he.default,{motionName:`${Te}-fade`,visible:hi==="uploading",motionDeadline:2e3},ut=>{let{className:vt}=ut;const Kt="percent"in In?ae.createElement(It.Z,Object.assign({},kr,{type:"line",percent:In.percent,"aria-label":In["aria-label"],"aria-labelledby":In["aria-labelledby"]})):null;return ae.createElement("div",{className:qe()(`${Dt}-list-item-progress`,vt)},Kt)})),Ke=In.response&&typeof In.response=="string"?In.response:((Ji=In.error)===null||Ji===void 0?void 0:Ji.statusText)||((ca=In.error)===null||ca===void 0?void 0:ca.message)||Cn.uploadError,Ge=hi==="error"?ae.createElement(gn.Z,{title:Ke,getPopupContainer:ut=>ut.parentNode},He):He;return ae.createElement("div",{className:qe()(`${Dt}-list-item-container`,En),style:qn,ref:gt},Qr?Qr(Ge,In,Un,{download:ci.bind(null,In),preview:$i.bind(null,In),remove:Mi.bind(null,In)}):Ge)});const Vn=(kt,gt)=>{const{listType:Dt="text",previewFile:En=Xt,onPreview:qn,onDownload:Cn,onRemove:Dn,locale:In,iconRender:Un,isImageUrl:kr=Et,prefixCls:pn,items:di=[],showPreviewIcon:Qr=!0,showRemoveIcon:Fi=!0,showDownloadIcon:Ni=!1,removeIcon:Ci,previewIcon:Qi,downloadIcon:Ei,progress:pi={size:[-1,2],showInfo:!1},appendAction:Hi,appendActionVisible:$i=!0,itemRender:ci,disabled:Mi}=kt,Ji=(0,fe.Z)(),[ca,na]=ae.useState(!1);ae.useEffect(()=>{Dt!=="picture"&&Dt!=="picture-card"&&Dt!=="picture-circle"||(di||[]).forEach(jr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(jr.originFileObj instanceof File||jr.originFileObj instanceof Blob)||jr.thumbUrl!==void 0||(jr.thumbUrl="",En&&En(jr.originFileObj).then(wi=>{jr.thumbUrl=wi||"",Ji()}))})},[Dt,di,En]),ae.useEffect(()=>{na(!0)},[]);const hi=(jr,wi)=>{if(qn)return wi==null||wi.preventDefault(),qn(jr)},zt=jr=>{typeof Cn=="function"?Cn(jr):jr.url&&window.open(jr.url)},Tt=jr=>{Dn==null||Dn(jr)},fn=jr=>{if(Un)return Un(jr,Dt);const wi=jr.status==="uploading",Di=kr&&kr(jr)?ae.createElement(ce,null):ae.createElement(qt,null);let Li=wi?ae.createElement(Xn.Z,null):ae.createElement(xn,null);return Dt==="picture"?Li=wi?ae.createElement(Xn.Z,null):Di:(Dt==="picture-card"||Dt==="picture-circle")&&(Li=wi?In.uploading:Di),Li},Bn=(jr,wi,Di,Li)=>{const Te={type:"text",size:"small",title:Li,onClick:He=>{wi(),(0,Me.l$)(jr)&&jr.props.onClick&&jr.props.onClick(He)},className:`${Di}-list-item-action`,disabled:Mi};if((0,Me.l$)(jr)){const He=(0,Me.Tm)(jr,Object.assign(Object.assign({},jr.props),{onClick:()=>{}}));return ae.createElement(Ve.ZP,Object.assign({},Te,{icon:He}))}return ae.createElement(Ve.ZP,Object.assign({},Te),ae.createElement("span",null,jr))};ae.useImperativeHandle(gt,()=>({handlePreview:hi,handleDownload:zt}));const{getPrefixCls:Qn}=ae.useContext(tr.E_),Or=Qn("upload",pn),Zr=Qn(),Jr=qe()(`${Or}-list`,`${Or}-list-${Dt}`),ri=(0,Pe.Z)(di.map(jr=>({key:jr.uid,file:jr})));let fi={motionDeadline:2e3,motionName:`${Or}-${Dt==="picture-card"||Dt==="picture-circle"?"animate-inline":"animate"}`,keys:ri,motionAppear:ca};const Ai=ae.useMemo(()=>{const jr=Object.assign({},(0,le.Z)(Zr));return delete jr.onAppearEnd,delete jr.onEnterEnd,delete jr.onLeaveEnd,jr},[Zr]);return Dt!=="picture-card"&&Dt!=="picture-circle"&&(fi=Object.assign(Object.assign({},Ai),fi)),ae.createElement("div",{className:Jr},ae.createElement(he.CSSMotionList,Object.assign({},fi,{component:!1}),jr=>{let{key:wi,file:Di,className:Li,style:Te}=jr;return ae.createElement(An,{key:wi,locale:In,prefixCls:Or,className:Li,style:Te,file:Di,items:di,progress:pi,listType:Dt,isImgUrl:kr,showPreviewIcon:Qr,showRemoveIcon:Fi,showDownloadIcon:Ni,removeIcon:Ci,previewIcon:Qi,downloadIcon:Ei,iconRender:fn,actionIconRender:Bn,itemRender:ci,onPreview:hi,onDownload:zt,onClose:Tt})}),Hi&&ae.createElement(he.default,Object.assign({},fi,{visible:$i,forceRender:!0}),jr=>{let{className:wi,style:Di}=jr;return(0,Me.Tm)(Hi,Li=>({className:qe()(Li.className,wi),style:Object.assign(Object.assign(Object.assign({},Di),{pointerEvents:wi?"none":void 0}),Li.style)}))}))};var ur=ae.forwardRef(Vn),dr=se(14747),Fr=se(33507),nr=se(67968),_r=se(45503),Wr=kt=>{const{componentCls:gt,iconCls:Dt}=kt;return{[`${gt}-wrapper`]:{[`${gt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:kt.colorFillAlter,border:`${kt.lineWidth}px dashed ${kt.colorBorder}`,borderRadius:kt.borderRadiusLG,cursor:"pointer",transition:`border-color ${kt.motionDurationSlow}`,[gt]:{padding:`${kt.padding}px 0`},[`${gt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${gt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${gt}-disabled):hover`]:{borderColor:kt.colorPrimaryHover},[`p${gt}-drag-icon`]:{marginBottom:kt.margin,[Dt]:{color:kt.colorPrimary,fontSize:kt.uploadThumbnailSize}},[`p${gt}-text`]:{margin:`0 0 ${kt.marginXXS}px`,color:kt.colorTextHeading,fontSize:kt.fontSizeLG},[`p${gt}-hint`]:{color:kt.colorTextDescription,fontSize:kt.fontSize},[`&${gt}-disabled`]:{cursor:"not-allowed",[`p${gt}-drag-icon ${Dt}, p${gt}-text, p${gt}-hint `]:{color:kt.colorTextDisabled}}}}}},ti=kt=>{const{componentCls:gt,antCls:Dt,iconCls:En,fontSize:qn,lineHeight:Cn}=kt,Dn=`${gt}-list-item`,In=`${Dn}-actions`,Un=`${Dn}-action`,kr=Math.round(qn*Cn);return{[`${gt}-wrapper`]:{[`${gt}-list`]:Object.assign(Object.assign({},(0,dr.dF)()),{lineHeight:kt.lineHeight,[Dn]:{position:"relative",height:kt.lineHeight*qn,marginTop:kt.marginXS,fontSize:qn,display:"flex",alignItems:"center",transition:`background-color ${kt.motionDurationSlow}`,"&:hover":{backgroundColor:kt.controlItemBgHover},[`${Dn}-name`]:Object.assign(Object.assign({},dr.vS),{padding:`0 ${kt.paddingXS}px`,lineHeight:Cn,flex:"auto",transition:`all ${kt.motionDurationSlow}`}),[In]:{[Un]:{opacity:0},[`${Un}${Dt}-btn-sm`]:{height:kr,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${Un}:focus-visible, &.picture ${Un} `]:{opacity:1},[En]:{color:kt.actionsColor,transition:`all ${kt.motionDurationSlow}`},[`&:hover ${En}`]:{color:kt.colorText}},[`${gt}-icon ${En}`]:{color:kt.colorTextDescription,fontSize:qn},[`${Dn}-progress`]:{position:"absolute",bottom:-kt.uploadProgressOffset,width:"100%",paddingInlineStart:qn+kt.paddingXS,fontSize:qn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Dn}:hover ${Un}`]:{opacity:1,color:kt.colorText},[`${Dn}-error`]:{color:kt.colorError,[`${Dn}-name, ${gt}-icon ${En}`]:{color:kt.colorError},[In]:{[`${En}, ${En}:hover`]:{color:kt.colorError},[Un]:{opacity:1}}},[`${gt}-list-item-container`]:{transition:`opacity ${kt.motionDurationSlow}, height ${kt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ct=se(45930),wn=se(16932);const Rn=new Ct.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),an=new Ct.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var lr=kt=>{const{componentCls:gt}=kt,Dt=`${gt}-animate-inline`;return[{[`${gt}-wrapper`]:{[`${Dt}-appear, ${Dt}-enter, ${Dt}-leave`]:{animationDuration:kt.motionDurationSlow,animationTimingFunction:kt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Dt}-appear, ${Dt}-enter`]:{animationName:Rn},[`${Dt}-leave`]:{animationName:an}}},{[`${gt}-wrapper`]:(0,wn.J$)(kt)},Rn,an]},Gn=se(47448),jn=se(84780);const nt=kt=>{const{componentCls:gt,iconCls:Dt,uploadThumbnailSize:En,uploadProgressOffset:qn}=kt,Cn=`${gt}-list`,Dn=`${Cn}-item`;return{[`${gt}-wrapper`]:{[` ${Cn}${Cn}-picture, ${Cn}${Cn}-picture-card, ${Cn}${Cn}-picture-circle `]:{[Dn]:{position:"relative",height:En+kt.lineWidth*2+kt.paddingXS*2,padding:kt.paddingXS,border:`${kt.lineWidth}px ${kt.lineType} ${kt.colorBorder}`,borderRadius:kt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Dn}-thumbnail`]:Object.assign(Object.assign({},dr.vS),{width:En,height:En,lineHeight:`${En+kt.paddingSM}px`,textAlign:"center",flex:"none",[Dt]:{fontSize:kt.fontSizeHeading2,color:kt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Dn}-progress`]:{bottom:qn,width:`calc(100% - ${kt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:En+kt.paddingXS}},[`${Dn}-error`]:{borderColor:kt.colorError,[`${Dn}-thumbnail ${Dt}`]:{[`svg path[fill='${Gn.blue[0]}']`]:{fill:kt.colorErrorBg},[`svg path[fill='${Gn.blue.primary}']`]:{fill:kt.colorError}}},[`${Dn}-uploading`]:{borderStyle:"dashed",[`${Dn}-name`]:{marginBottom:qn}}},[`${Cn}${Cn}-picture-circle ${Dn}`]:{[`&, &::before, ${Dn}-thumbnail`]:{borderRadius:"50%"}}}}},mt=kt=>{const{componentCls:gt,iconCls:Dt,fontSizeLG:En,colorTextLightSolid:qn}=kt,Cn=`${gt}-list`,Dn=`${Cn}-item`,In=kt.uploadPicCardSize;return{[` ${gt}-wrapper${gt}-picture-card-wrapper, ${gt}-wrapper${gt}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,dr.dF)()),{display:"inline-block",width:"100%",[`${gt}${gt}-select`]:{width:In,height:In,marginInlineEnd:kt.marginXS,marginBottom:kt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:kt.colorFillAlter,border:`${kt.lineWidth}px dashed ${kt.colorBorder}`,borderRadius:kt.borderRadiusLG,cursor:"pointer",transition:`border-color ${kt.motionDurationSlow}`,[`> ${gt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${gt}-disabled):hover`]:{borderColor:kt.colorPrimary}},[`${Cn}${Cn}-picture-card, ${Cn}${Cn}-picture-circle`]:{[`${Cn}-item-container`]:{display:"inline-block",width:In,height:In,marginBlock:`0 ${kt.marginXS}px`,marginInline:`0 ${kt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Dn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${kt.paddingXS*2}px)`,height:`calc(100% - ${kt.paddingXS*2}px)`,backgroundColor:kt.colorBgMask,opacity:0,transition:`all ${kt.motionDurationSlow}`,content:'" "'}},[`${Dn}:hover`]:{[`&::before, ${Dn}-actions`]:{opacity:1}},[`${Dn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${kt.motionDurationSlow}`,[`${Dt}-eye, ${Dt}-download, ${Dt}-delete`]:{zIndex:10,width:En,margin:`0 ${kt.marginXXS}px`,fontSize:En,cursor:"pointer",transition:`all ${kt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Dn}-actions, ${Dn}-actions:hover`]:{[`${Dt}-eye, ${Dt}-download, ${Dt}-delete`]:{color:new jn.C(qn).setAlpha(.65).toRgbString(),"&:hover":{color:qn}}},[`${Dn}-thumbnail, ${Dn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Dn}-name`]:{display:"none",textAlign:"center"},[`${Dn}-file + ${Dn}-name`]:{position:"absolute",bottom:kt.margin,display:"block",width:`calc(100% - ${kt.paddingXS*2}px)`},[`${Dn}-uploading`]:{[`&${Dn}`]:{backgroundColor:kt.colorFillAlter},[`&::before, ${Dt}-eye, ${Dt}-download, ${Dt}-delete`]:{display:"none"}},[`${Dn}-progress`]:{bottom:kt.marginXL,width:`calc(100% - ${kt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${gt}-wrapper${gt}-picture-circle-wrapper`]:{[`${gt}${gt}-select`]:{borderRadius:"50%"}}}};var rn=kt=>{const{componentCls:gt}=kt;return{[`${gt}-rtl`]:{direction:"rtl"}}};const Ze=kt=>{const{componentCls:gt,colorTextDisabled:Dt}=kt;return{[`${gt}-wrapper`]:Object.assign(Object.assign({},(0,dr.Wf)(kt)),{[gt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${gt}-select`]:{display:"inline-block"},[`${gt}-disabled`]:{color:Dt,cursor:"not-allowed"}})}};var St=(0,nr.Z)("Upload",kt=>{const{fontSizeHeading3:gt,fontSize:Dt,lineHeight:En,lineWidth:qn,controlHeightLG:Cn}=kt,Dn=Math.round(Dt*En),In=(0,_r.TS)(kt,{uploadThumbnailSize:gt*2,uploadProgressOffset:Dn/2+qn,uploadPicCardSize:Cn*2.55});return[Ze(In),Wr(In),nt(In),mt(In),ti(In),lr(In),rn(In),(0,Fr.Z)(In)]},kt=>({actionsColor:kt.colorTextDescription})),Vt=function(kt,gt,Dt,En){function qn(Cn){return Cn instanceof Dt?Cn:new Dt(function(Dn){Dn(Cn)})}return new(Dt||(Dt=Promise))(function(Cn,Dn){function In(pn){try{kr(En.next(pn))}catch(di){Dn(di)}}function Un(pn){try{kr(En.throw(pn))}catch(di){Dn(di)}}function kr(pn){pn.done?Cn(pn.value):qn(pn.value).then(In,Un)}kr((En=En.apply(kt,gt||[])).next())})};const Nt=`__LIST_IGNORE_${Date.now()}__`,cn=(kt,gt)=>{const{fileList:Dt,defaultFileList:En,onRemove:qn,showUploadList:Cn=!0,listType:Dn="text",onPreview:In,onDownload:Un,onChange:kr,onDrop:pn,previewFile:di,disabled:Qr,locale:Fi,iconRender:Ni,isImageUrl:Ci,progress:Qi,prefixCls:Ei,className:pi,type:Hi="select",children:$i,style:ci,itemRender:Mi,maxCount:Ji,data:ca={},multiple:na=!1,action:hi="",accept:zt="",supportServerRender:Tt=!0,rootClassName:fn}=kt,Bn=ae.useContext(Qe.Z),Qn=Qr!=null?Qr:Bn,[Or,Zr]=(0,Hn.Z)(En||[],{value:Dt,postState:Fe=>Fe!=null?Fe:[]}),[Jr,ri]=ae.useState("drop"),qr=ae.useRef(null);ae.useMemo(()=>{const Fe=Date.now();(Dt||[]).forEach((We,Wt)=>{!We.uid&&!Object.isFrozen(We)&&(We.uid=`__AUTO__${Fe}_${Wt}__`)})},[Dt]);const fi=(Fe,We,Wt)=>{let bt=(0,Pe.Z)(We),sn=!1;Ji===1?bt=bt.slice(-1):Ji&&(sn=bt.length>Ji,bt=bt.slice(0,Ji)),(0,Yn.flushSync)(()=>{Zr(bt)});const Ln={file:Fe,fileList:bt};Wt&&(Ln.event=Wt),(!sn||bt.some(zn=>zn.uid===Fe.uid))&&(0,Yn.flushSync)(()=>{kr==null||kr(Ln)})},Ai=(Fe,We)=>Vt(void 0,void 0,void 0,function*(){const{beforeUpload:Wt,transformFile:bt}=kt;let sn=Fe;if(Wt){const Ln=yield Wt(Fe,We);if(Ln===!1)return!1;if(delete Fe[Nt],Ln===Nt)return Object.defineProperty(Fe,Nt,{value:!0,configurable:!0}),!1;typeof Ln=="object"&&Ln&&(sn=Ln)}return bt&&(sn=yield bt(sn)),sn}),jr=Fe=>{const We=Fe.filter(sn=>!sn.file[Nt]);if(!We.length)return;const Wt=We.map(sn=>ft(sn.file));let bt=(0,Pe.Z)(Or);Wt.forEach(sn=>{bt=Ht(sn,bt)}),Wt.forEach((sn,Ln)=>{let zn=sn;if(We[Ln].parsedFile)sn.status="uploading";else{const{originFileObj:ar}=sn;let ot;try{ot=new File([ar],ar.name,{type:ar.type})}catch(Ye){ot=new Blob([ar],{type:ar.type}),ot.name=ar.name,ot.lastModifiedDate=new Date,ot.lastModified=new Date().getTime()}ot.uid=sn.uid,zn=ot}fi(zn,bt)})},wi=(Fe,We,Wt)=>{try{typeof Fe=="string"&&(Fe=JSON.parse(Fe))}catch(Ln){}if(!Zt(We,Or))return;const bt=ft(We);bt.status="done",bt.percent=100,bt.response=Fe,bt.xhr=Wt;const sn=Ht(bt,Or);fi(bt,sn)},Di=(Fe,We)=>{if(!Zt(We,Or))return;const Wt=ft(We);Wt.status="uploading",Wt.percent=Fe.percent;const bt=Ht(Wt,Or);fi(Wt,bt,Fe)},Li=(Fe,We,Wt)=>{if(!Zt(Wt,Or))return;const bt=ft(Wt);bt.error=Fe,bt.response=We,bt.status="error";const sn=Ht(bt,Or);fi(bt,sn)},Te=Fe=>{let We;Promise.resolve(typeof qn=="function"?qn(Fe):qn).then(Wt=>{var bt;if(Wt===!1)return;const sn=jt(Fe,Or);sn&&(We=Object.assign(Object.assign({},Fe),{status:"removed"}),Or==null||Or.forEach(Ln=>{const zn=We.uid!==void 0?"uid":"name";Ln[zn]===We[zn]&&!Object.isFrozen(Ln)&&(Ln.status="removed")}),(bt=qr.current)===null||bt===void 0||bt.abort(We),fi(We,sn))})},He=Fe=>{ri(Fe.type),Fe.type==="drop"&&(pn==null||pn(Fe))};ae.useImperativeHandle(gt,()=>({onBatchStart:jr,onSuccess:wi,onProgress:Di,onError:Li,fileList:Or,upload:qr.current}));const{getPrefixCls:Ke,direction:Ge,upload:ut}=ae.useContext(tr.E_),vt=Ke("upload",Ei),Kt=Object.assign(Object.assign({onBatchStart:jr,onError:Li,onProgress:Di,onSuccess:wi},kt),{data:ca,multiple:na,action:hi,accept:zt,supportServerRender:Tt,prefixCls:vt,disabled:Qn,beforeUpload:Ai,onChange:void 0});delete Kt.className,delete Kt.style,(!$i||Qn)&&delete Kt.id;const[vn,kn]=St(vt),[yr]=(0,we.Z)("Upload",At.Z.Upload),{showRemoveIcon:Pr,showPreviewIcon:cr,showDownloadIcon:Wn,removeIcon:Fn,previewIcon:$n,downloadIcon:rr}=typeof Cn=="boolean"?{}:Cn,Ir=(Fe,We)=>Cn?ae.createElement(ur,{prefixCls:vt,listType:Dn,items:Or,previewFile:di,onPreview:In,onDownload:Un,onRemove:Te,showRemoveIcon:!Qn&&Pr,showPreviewIcon:cr,showDownloadIcon:Wn,removeIcon:Fn,previewIcon:$n,downloadIcon:rr,iconRender:Ni,locale:Object.assign(Object.assign({},yr),Fi),isImageUrl:Ci,progress:Qi,appendAction:Fe,appendActionVisible:We,itemRender:Mi,disabled:Qn}):Fe,gr=qe()(`${vt}-wrapper`,pi,fn,kn,ut==null?void 0:ut.className,{[`${vt}-rtl`]:Ge==="rtl",[`${vt}-picture-card-wrapper`]:Dn==="picture-card",[`${vt}-picture-circle-wrapper`]:Dn==="picture-circle"}),fr=Object.assign(Object.assign({},ut==null?void 0:ut.style),ci);if(Hi==="drag"){const Fe=qe()(kn,vt,`${vt}-drag`,{[`${vt}-drag-uploading`]:Or.some(We=>We.status==="uploading"),[`${vt}-drag-hover`]:Jr==="dragover",[`${vt}-disabled`]:Qn,[`${vt}-rtl`]:Ge==="rtl"});return vn(ae.createElement("span",{className:gr},ae.createElement("div",{className:Fe,style:fr,onDrop:He,onDragOver:He,onDragLeave:He},ae.createElement(tn,Object.assign({},Kt,{ref:qr,className:`${vt}-btn`}),ae.createElement("div",{className:`${vt}-drag-container`},$i))),Ir()))}const wr=qe()(vt,`${vt}-select`,{[`${vt}-disabled`]:Qn}),Nr=(Fe=>ae.createElement("div",{className:wr,style:Fe},ae.createElement(tn,Object.assign({},Kt,{ref:qr}))))($i?void 0:{display:"none"});return vn(Dn==="picture-card"||Dn==="picture-circle"?ae.createElement("span",{className:gr},Ir(Nr,!!$i)):ae.createElement("span",{className:gr},Nr,Ir()))};var Kn=ae.forwardRef(cn),Hr=function(kt,gt){var Dt={};for(var En in kt)Object.prototype.hasOwnProperty.call(kt,En)&>.indexOf(En)<0&&(Dt[En]=kt[En]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qn=0,En=Object.getOwnPropertySymbols(kt);qn{var{style:Dt,height:En}=kt,qn=Hr(kt,["style","height"]);return ae.createElement(Kn,Object.assign({ref:gt},qn,{type:"drag",style:Object.assign(Object.assign({},Dt),{height:En})}))});const Ar=Kn;Ar.Dragger=or,Ar.LIST_IGNORE=Nt;var Lr=Ar},72665:function(dn,en){"use strict";var se;var ae=typeof Symbol=="function"&&Symbol.for,Pe=ae?Symbol.for("react.element"):60103,Re=ae?Symbol.for("react.portal"):60106,qe=ae?Symbol.for("react.fragment"):60107,ve=ae?Symbol.for("react.strict_mode"):60108,ke=ae?Symbol.for("react.profiler"):60114,Le=ae?Symbol.for("react.provider"):60109,xe=ae?Symbol.for("react.context"):60110,me=ae?Symbol.for("react.async_mode"):60111,Ie=ae?Symbol.for("react.concurrent_mode"):60111,st=ae?Symbol.for("react.forward_ref"):60112,Ne=ae?Symbol.for("react.suspense"):60113,xt=ae?Symbol.for("react.suspense_list"):60120,pt=ae?Symbol.for("react.memo"):60115,ct=ae?Symbol.for("react.lazy"):60116,rt=ae?Symbol.for("react.block"):60121,Ee=ae?Symbol.for("react.fundamental"):60117,at=ae?Symbol.for("react.responder"):60118,Yt=ae?Symbol.for("react.scope"):60119;function Xe(Se){if(typeof Se=="object"&&Se!==null){var Ce=Se.$$typeof;switch(Ce){case Pe:switch(Se=Se.type,Se){case me:case Ie:case qe:case ke:case ve:case Ne:return Se;default:switch(Se=Se&&Se.$$typeof,Se){case xe:case st:case ct:case pt:case Le:return Se;default:return Ce}}case Re:return Ce}}}function lt(Se){return Xe(Se)===Ie}se=me,se=Ie,se=xe,se=Le,se=Pe,se=st,se=qe,se=ct,se=pt,se=Re,se=ke,se=ve,se=Ne,se=function(Se){return lt(Se)||Xe(Se)===me},se=lt,se=function(Se){return Xe(Se)===xe},se=function(Se){return Xe(Se)===Le},se=function(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===Pe},se=function(Se){return Xe(Se)===st},se=function(Se){return Xe(Se)===qe},se=function(Se){return Xe(Se)===ct},en.isMemo=function(Se){return Xe(Se)===pt},se=function(Se){return Xe(Se)===Re},se=function(Se){return Xe(Se)===ke},se=function(Se){return Xe(Se)===ve},se=function(Se){return Xe(Se)===Ne},se=function(Se){return typeof Se=="string"||typeof Se=="function"||Se===qe||Se===Ie||Se===ke||Se===ve||Se===Ne||Se===xt||typeof Se=="object"&&Se!==null&&(Se.$$typeof===ct||Se.$$typeof===pt||Se.$$typeof===Le||Se.$$typeof===xe||Se.$$typeof===st||Se.$$typeof===Ee||Se.$$typeof===at||Se.$$typeof===Yt||Se.$$typeof===rt)},se=Xe},12060:function(dn,en,se){"use strict";dn.exports=se(72665)},41771:function(dn,en){"use strict";var se;var ae=typeof Symbol=="function"&&Symbol.for,Pe=ae?Symbol.for("react.element"):60103,Re=ae?Symbol.for("react.portal"):60106,qe=ae?Symbol.for("react.fragment"):60107,ve=ae?Symbol.for("react.strict_mode"):60108,ke=ae?Symbol.for("react.profiler"):60114,Le=ae?Symbol.for("react.provider"):60109,xe=ae?Symbol.for("react.context"):60110,me=ae?Symbol.for("react.async_mode"):60111,Ie=ae?Symbol.for("react.concurrent_mode"):60111,st=ae?Symbol.for("react.forward_ref"):60112,Ne=ae?Symbol.for("react.suspense"):60113,xt=ae?Symbol.for("react.suspense_list"):60120,pt=ae?Symbol.for("react.memo"):60115,ct=ae?Symbol.for("react.lazy"):60116,rt=ae?Symbol.for("react.block"):60121,Ee=ae?Symbol.for("react.fundamental"):60117,at=ae?Symbol.for("react.responder"):60118,Yt=ae?Symbol.for("react.scope"):60119;function Xe(Se){if(typeof Se=="object"&&Se!==null){var Ce=Se.$$typeof;switch(Ce){case Pe:switch(Se=Se.type,Se){case me:case Ie:case qe:case ke:case ve:case Ne:return Se;default:switch(Se=Se&&Se.$$typeof,Se){case xe:case st:case ct:case pt:case Le:return Se;default:return Ce}}case Re:return Ce}}}function lt(Se){return Xe(Se)===Ie}se=me,se=Ie,se=xe,se=Le,se=Pe,se=st,se=qe,se=ct,se=pt,se=Re,se=ke,se=ve,se=Ne,se=function(Se){return lt(Se)||Xe(Se)===me},se=lt,se=function(Se){return Xe(Se)===xe},se=function(Se){return Xe(Se)===Le},se=function(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===Pe},se=function(Se){return Xe(Se)===st},en.isFragment=function(Se){return Xe(Se)===qe},se=function(Se){return Xe(Se)===ct},se=function(Se){return Xe(Se)===pt},se=function(Se){return Xe(Se)===Re},se=function(Se){return Xe(Se)===ke},se=function(Se){return Xe(Se)===ve},se=function(Se){return Xe(Se)===Ne},se=function(Se){return typeof Se=="string"||typeof Se=="function"||Se===qe||Se===Ie||Se===ke||Se===ve||Se===Ne||Se===xt||typeof Se=="object"&&Se!==null&&(Se.$$typeof===ct||Se.$$typeof===pt||Se.$$typeof===Le||Se.$$typeof===xe||Se.$$typeof===st||Se.$$typeof===Ee||Se.$$typeof===at||Se.$$typeof===Yt||Se.$$typeof===rt)},se=Xe},47655:function(dn,en,se){"use strict";dn.exports=se(41771)},64701:function(dn,en,se){"use strict";se.r(en),se.d(en,{ResizableTextArea:function(){return Mn},default:function(){return bn}});var ae=se(87462),Pe=se(1413),Re=se(4942),qe=se(71002),ve=se(97685),ke=se(45987),Le=se(74902),xe=se(94184),me=se.n(xe),Ie=se(67656),st=se(87887),Ne=se(67294);function xt(un){var nn=Ne.useRef();nn.current=un;var xn=Ne.useCallback(function(){for(var Pn,De=arguments.length,ue=new Array(De),ce=0;ce1&&arguments[1]!==void 0?arguments[1]:1;je+=1;var Pn=je;function De(ue){if(ue===0)Mt(Pn),nn();else{var ce=Se(function(){De(ue-1)});Ue.set(Pn,ce)}}return De(xn),Pn};ht.cancel=function(un){var nn=Ue.get(un);return Mt(nn),Ce(nn)};var Ft=ht,tt=` 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; `,Jt=["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"],Rt={},yn;function tn(un){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xn=un.getAttribute("id")||un.getAttribute("data-reactid")||un.getAttribute("name");if(nn&&Rt[xn])return Rt[xn];var Pn=window.getComputedStyle(un),De=Pn.getPropertyValue("box-sizing")||Pn.getPropertyValue("-moz-box-sizing")||Pn.getPropertyValue("-webkit-box-sizing"),ue=parseFloat(Pn.getPropertyValue("padding-bottom"))+parseFloat(Pn.getPropertyValue("padding-top")),ce=parseFloat(Pn.getPropertyValue("border-bottom-width"))+parseFloat(Pn.getPropertyValue("border-top-width")),he=Jt.map(function(le){return"".concat(le,":").concat(Pn.getPropertyValue(le))}).join(";"),fe={sizingStyle:he,paddingSize:ue,borderSize:ce,boxSizing:De};return nn&&xn&&(Rt[xn]=fe),fe}function Hn(un){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Pn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;yn||(yn=document.createElement("textarea"),yn.setAttribute("tab-index","-1"),yn.setAttribute("aria-hidden","true"),document.body.appendChild(yn)),un.getAttribute("wrap")?yn.setAttribute("wrap",un.getAttribute("wrap")):yn.removeAttribute("wrap");var De=tn(un,nn),ue=De.paddingSize,ce=De.borderSize,he=De.boxSizing,fe=De.sizingStyle;yn.setAttribute("style","".concat(fe,";").concat(tt)),yn.value=un.value||un.placeholder||"";var le=void 0,Me=void 0,Ve,ft=yn.scrollHeight;if(he==="border-box"?ft+=ce:he==="content-box"&&(ft-=ue),xn!==null||Pn!==null){yn.value=" ";var Ht=yn.scrollHeight-ue;xn!==null&&(le=Ht*xn,he==="border-box"&&(le=le+ue+ce),ft=Math.max(le,ft)),Pn!==null&&(Me=Ht*Pn,he==="border-box"&&(Me=Me+ue+ce),Ve=ft>Me?"":"hidden",ft=Math.min(Me,ft))}var Zt={height:ft,overflowY:Ve,resize:"none"};return le&&(Zt.minHeight=le),Me&&(Zt.maxHeight=Me),Zt}var Yn=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],tr=0,Qe=1,we=2,At=Ne.forwardRef(function(un,nn){var xn=un,Pn=xn.prefixCls,De=xn.onPressEnter,ue=xn.defaultValue,ce=xn.value,he=xn.autoSize,fe=xn.onResize,le=xn.className,Me=xn.style,Ve=xn.disabled,ft=xn.onChange,Ht=xn.onInternalAutoSize,Zt=(0,ke.Z)(xn,Yn),jt=Xe(ue,{value:ce,postState:function(an){return an!=null?an:""}}),$t=(0,ve.Z)(jt,2),Je=$t[0],Et=$t[1],Lt=function(an){Et(an.target.value),ft==null||ft(an)},Xt=Ne.useRef();Ne.useImperativeHandle(nn,function(){return{textArea:Xt.current}});var wt=Ne.useMemo(function(){return he&&(0,qe.Z)(he)==="object"?[he.minRows,he.maxRows]:[]},[he]),Nn=(0,ve.Z)(wt,2),et=Nn[0],It=Nn[1],gn=!!he,hn=function(){try{if(document.activeElement===Xt.current){var an=Xt.current,vr=an.selectionStart,lr=an.selectionEnd,Gn=an.scrollTop;Xt.current.setSelectionRange(vr,lr),Xt.current.scrollTop=Gn}}catch(jn){}},An=Ne.useState(we),Vn=(0,ve.Z)(An,2),mr=Vn[0],ur=Vn[1],dr=Ne.useState(),Fr=(0,ve.Z)(dr,2),nr=Fr[0],_r=Fr[1],oi=function(){ur(tr)};rt(function(){gn&&oi()},[ce,et,It,gn]),rt(function(){if(mr===tr)ur(Qe);else if(mr===Qe){var Rn=Hn(Xt.current,!1,et,It);ur(we),_r(Rn)}else hn()},[mr]);var Wr=Ne.useRef(),xi=function(){Ft.cancel(Wr.current)},ti=function(an){mr===we&&(fe==null||fe(an),he&&(xi(),Wr.current=Ft(function(){oi()})))};Ne.useEffect(function(){return xi},[]);var Ct=gn?nr:null,wn=(0,Pe.Z)((0,Pe.Z)({},Me),Ct);return(mr===tr||mr===Qe)&&(wn.overflowY="hidden",wn.overflowX="hidden"),Ne.createElement(lt.Z,{onResize:ti,disabled:!(he||fe)},Ne.createElement("textarea",(0,ae.Z)({},Zt,{ref:Xt,style:wn,className:me()(Pn,le,(0,Re.Z)({},"".concat(Pn,"-disabled"),Ve)),disabled:Ve,value:Je,onChange:Lt})))}),Mn=At,_t=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function $e(un,nn){return(0,Le.Z)(un||"").slice(0,nn).join("")}function dt(un,nn,xn,Pn){var De=xn;return un?De=$e(xn,Pn):(0,Le.Z)(nn||"").lengthPn&&(De=nn),De}var qt=Ne.forwardRef(function(un,nn){var xn,Pn=un.defaultValue,De=un.value,ue=un.onFocus,ce=un.onBlur,he=un.onChange,fe=un.allowClear,le=un.maxLength,Me=un.onCompositionStart,Ve=un.onCompositionEnd,ft=un.suffix,Ht=un.prefixCls,Zt=Ht===void 0?"rc-textarea":Ht,jt=un.classes,$t=un.showCount,Je=un.className,Et=un.style,Lt=un.disabled,Xt=un.hidden,wt=un.classNames,Nn=un.styles,et=un.onResize,It=(0,ke.Z)(un,_t),gn=Xe(Pn,{value:De,defaultValue:Pn}),hn=(0,ve.Z)(gn,2),An=hn[0],Vn=hn[1],mr=(0,Ne.useRef)(null),ur=Ne.useState(!1),dr=(0,ve.Z)(ur,2),Fr=dr[0],nr=dr[1],_r=Ne.useState(!1),oi=(0,ve.Z)(_r,2),Wr=oi[0],xi=oi[1],ti=Ne.useRef(),Ct=Ne.useRef(0),wn=Ne.useState(null),Rn=(0,ve.Z)(wn,2),an=Rn[0],vr=Rn[1],lr=function(){var Ar;(Ar=mr.current)===null||Ar===void 0||Ar.textArea.focus()};(0,Ne.useImperativeHandle)(nn,function(){return{resizableTextArea:mr.current,focus:lr,blur:function(){var Ar;(Ar=mr.current)===null||Ar===void 0||Ar.textArea.blur()}}}),(0,Ne.useEffect)(function(){nr(function(or){return!Lt&&or})},[Lt]);var Gn=Number(le)>0,jn=function(Ar){xi(!0),ti.current=An,Ct.current=Ar.currentTarget.selectionStart,Me==null||Me(Ar)},nt=function(Ar){xi(!1);var Lr=Ar.currentTarget.value;if(Gn){var kt,gt=Ct.current>=le+1||Ct.current===((kt=ti.current)===null||kt===void 0?void 0:kt.length);Lr=dt(gt,ti.current,Lr,le)}Lr!==An&&(Vn(Lr),(0,st.rJ)(Ar.currentTarget,Ar,he,Lr)),Ve==null||Ve(Ar)},mt=function(Ar){var Lr=Ar.target.value;if(!Wr&&Gn){var kt=Ar.target.selectionStart>=le+1||Ar.target.selectionStart===Lr.length||!Ar.target.selectionStart;Lr=dt(kt,An,Lr,le)}Vn(Lr),(0,st.rJ)(Ar.currentTarget,Ar,he,Lr)},Bt=function(Ar){var Lr=It.onPressEnter,kt=It.onKeyDown;Ar.key==="Enter"&&Lr&&Lr(Ar),kt==null||kt(Ar)},rn=function(Ar){nr(!0),ue==null||ue(Ar)},Ze=function(Ar){nr(!1),ce==null||ce(Ar)},St=function(Ar){var Lr;Vn(""),lr(),(0,st.rJ)((Lr=mr.current)===null||Lr===void 0?void 0:Lr.textArea,Ar,he)},Vt=(0,st.D7)(An);!Wr&&Gn&&De==null&&(Vt=$e(Vt,le));var Nt=ft,cn;if($t){var on=(0,Le.Z)(Vt).length;(0,qe.Z)($t)==="object"?cn=$t.formatter({value:Vt,count:on,maxLength:le}):cn="".concat(on).concat(Gn?" / ".concat(le):""),Nt=Ne.createElement(Ne.Fragment,null,Nt,Ne.createElement("span",{className:me()("".concat(Zt,"-data-count"),wt==null?void 0:wt.count),style:Nn==null?void 0:Nn.count},cn))}var Kn=function(Ar){var Lr;et==null||et(Ar),(Lr=mr.current)!==null&&Lr!==void 0&&Lr.textArea.style.height&&vr(!0)},Hr=!It.autoSize&&!$t&&!fe,hr=Ne.createElement(Ie.BaseInput,{value:Vt,allowClear:fe,handleReset:St,suffix:Nt,prefixCls:Zt,classes:{affixWrapper:me()(jt==null?void 0:jt.affixWrapper,(xn={},(0,Re.Z)(xn,"".concat(Zt,"-show-count"),$t),(0,Re.Z)(xn,"".concat(Zt,"-textarea-allow-clear"),fe),xn))},disabled:Lt,focused:Fr,className:Je,style:(0,Pe.Z)((0,Pe.Z)({},Et),an&&!Hr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof cn=="string"?cn:void 0}},hidden:Xt,inputElement:Ne.createElement(Mn,(0,ae.Z)({},It,{onKeyDown:Bt,onChange:mt,onFocus:rn,onBlur:Ze,onCompositionStart:jn,onCompositionEnd:nt,className:wt==null?void 0:wt.textarea,style:(0,Pe.Z)((0,Pe.Z)({},Nn==null?void 0:Nn.textarea),{},{resize:Et==null?void 0:Et.resize}),disabled:Lt,prefixCls:Zt,onResize:Kn,ref:mr}))});return hr}),Xn=qt,bn=Xn},1337:function(dn,en,se){"use strict";se.d(en,{Z:function(){return xe}});var ae=se(1413),Pe=`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`,Re=`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`,qe="".concat(Pe," ").concat(Re).split(/[\s\n]+/),ve="aria-",ke="data-";function Le(me,Ie){return me.indexOf(Ie)===0}function xe(me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st;Ie===!1?st={aria:!0,data:!0,attr:!0}:Ie===!0?st={aria:!0}:st=(0,ae.Z)({},Ie);var Ne={};return Object.keys(me).forEach(function(xt){(st.aria&&(xt==="role"||Le(xt,ve))||st.data&&Le(xt,ke)||st.attr&&qe.includes(xt))&&(Ne[xt]=me[xt])}),Ne}},88386:function(dn,en,se){(function(ae){ae(se(4631))})(function(ae){ae.defineOption("placeholder","",function(xe,me,Ie){var st=Ie&&Ie!=ae.Init;if(me&&!st)xe.on("blur",ve),xe.on("change",ke),xe.on("swapDoc",ke),ae.on(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose=function(){qe(xe)}),ke(xe);else if(!me&&st){xe.off("blur",ve),xe.off("change",ke),xe.off("swapDoc",ke),ae.off(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose),Pe(xe);var Ne=xe.getWrapperElement();Ne.className=Ne.className.replace(" CodeMirror-empty","")}me&&!xe.hasFocus()&&ve(xe)});function Pe(xe){xe.state.placeholder&&(xe.state.placeholder.parentNode.removeChild(xe.state.placeholder),xe.state.placeholder=null)}function Re(xe){Pe(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 qe(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?Re(xe):Pe(xe)},20)}function ve(xe){Le(xe)&&Re(xe)}function ke(xe){var me=xe.getWrapperElement(),Ie=Le(xe);me.className=me.className.replace(" CodeMirror-empty","")+(Ie?" CodeMirror-empty":""),Ie?Re(xe):Pe(xe)}function Le(xe){return xe.lineCount()===1&&xe.getLine(0)===""}})},82801:function(dn,en,se){(function(ae){ae(se(4631))})(function(ae){var Pe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Re=ae.Pos;ae.defineOption("autoCloseBrackets",!1,function(ct,rt,Ee){Ee&&Ee!=ae.Init&&(ct.removeKeyMap(ve),ct.state.closeBrackets=null),rt&&(ke(qe(rt,"pairs")),ct.state.closeBrackets=rt,ct.addKeyMap(ve))});function qe(ct,rt){return rt=="pairs"&&typeof ct=="string"?ct:typeof ct=="object"&&ct[rt]!=null?ct[rt]:Pe[rt]}var ve={Backspace:me,Enter:Ie};function ke(ct){for(var rt=0;rt=0;Yt--){var lt=at[Yt].head;ct.replaceRange("",Re(lt.line,lt.ch-1),Re(lt.line,lt.ch+1),"+delete")}}function Ie(ct){var rt=xe(ct),Ee=rt&&qe(rt,"explode");if(!Ee||ct.getOption("disableInput"))return ae.Pass;for(var at=ct.listSelections(),Yt=0;Yt0;return{anchor:new Re(ct.anchor.line,ct.anchor.ch+(rt?-1:1)),head:new Re(ct.head.line,ct.head.ch+(rt?1:-1))}}function Ne(ct,rt){var Ee=xe(ct);if(!Ee||ct.getOption("disableInput"))return ae.Pass;var at=qe(Ee,"pairs"),Yt=at.indexOf(rt);if(Yt==-1)return ae.Pass;for(var Xe=qe(Ee,"closeBefore"),lt=qe(Ee,"triples"),Se=at.charAt(Yt+1)==rt,Ce=ct.listSelections(),je=Yt%2==0,Ue,Mt=0;Mt=0&&ct.getRange(Ft,Re(Ft.line,Ft.ch+3))==rt+rt+rt?tt="skipThree":tt="skip";else if(Se&&Ft.ch>1&<.indexOf(rt)>=0&&ct.getRange(Re(Ft.line,Ft.ch-2),Ft)==rt+rt){if(Ft.ch>2&&/\bstring/.test(ct.getTokenTypeAt(Re(Ft.line,Ft.ch-2))))return ae.Pass;tt="addFour"}else if(Se){var Rt=Ft.ch==0?" ":ct.getRange(Re(Ft.line,Ft.ch-1),Ft);if(!ae.isWordChar(Jt)&&Rt!=rt&&!ae.isWordChar(Rt))tt="both";else return ae.Pass}else if(je&&(Jt.length===0||/\s/.test(Jt)||Xe.indexOf(Jt)>-1))tt="both";else return ae.Pass;if(!Ue)Ue=tt;else if(Ue!=tt)return ae.Pass}var yn=Yt%2?at.charAt(Yt-1):rt,tn=Yt%2?rt:at.charAt(Yt+1);ct.operation(function(){if(Ue=="skip")ct.execCommand("goCharRight");else if(Ue=="skipThree")for(var Hn=0;Hn<3;Hn++)ct.execCommand("goCharRight");else if(Ue=="surround"){for(var Yn=ct.getSelections(),Hn=0;Hn'"]=function(xt){return qe(xt)}),me.addKeyMap(Ne)}});var Pe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Re=["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 qe(me){if(me.getOption("disableInput"))return ae.Pass;for(var Ie=me.listSelections(),st=[],Ne=me.getOption("autoCloseTags"),xt=0;xtpt.ch&&(Yt=Yt.slice(0,Yt.length-ct.end+pt.ch));var Ce=Yt.toLowerCase();if(!Yt||ct.type=="string"&&(ct.end!=pt.ch||!/[\"\']/.test(ct.string.charAt(ct.string.length-1))||ct.string.length==1)||ct.type=="tag"&&at.close||ct.string.indexOf("/")==pt.ch-ct.start-1||lt&&Le(lt,Ce)>-1||xe(me,rt.mode.xmlCurrentContext&&rt.mode.xmlCurrentContext(Ee)||[],Yt,pt,!0))return ae.Pass;var je=typeof Ne=="object"&&Ne.emptyTags;if(je&&Le(je,Yt)>-1){st[xt]={text:"/>",newPos:ae.Pos(pt.line,pt.ch+2)};continue}var Ue=Se&&Le(Se,Ce)>-1;st[xt]={indent:Ue,text:">"+(Ue?` `:"")+"",newPos:Ue?ae.Pos(pt.line+1,0):ae.Pos(pt.line,pt.ch+1)}}for(var Mt=typeof Ne=="object"&&Ne.dontIndentOnAutoClose,xt=Ie.length-1;xt>=0;xt--){var ht=st[xt];me.replaceRange(ht.text,Ie[xt].head,Ie[xt].anchor,"+insert");var Ft=me.listSelections().slice(0);Ft[xt]={head:ht.newPos,anchor:ht.newPos},me.setSelections(Ft),!Mt&&ht.indent&&(me.indentLine(ht.newPos.line,null,!0),me.indentLine(ht.newPos.line+1,null,!0))}}function ve(me,Ie){for(var st=me.listSelections(),Ne=[],xt=Ie?"/":""&&(lt+=">"),Ne[rt]=lt}if(me.replaceSelections(Ne),st=me.listSelections(),!ct)for(var rt=0;rt=0&&Ie[Ee]==st;Ee--)++rt;Ne=ct.to;for(var Ee=1;Ee=Ee.max))return Ee.ch=0,Ee.text=Ee.cm.getLine(++Ee.line),!0}function Ie(Ee){if(!(Ee.line<=Ee.min))return Ee.text=Ee.cm.getLine(--Ee.line),Ee.ch=Ee.text.length,!0}function st(Ee){for(;;){var at=Ee.text.indexOf(">",Ee.ch);if(at==-1){if(me(Ee))continue;return}if(!xe(Ee,at+1)){Ee.ch=at+1;continue}var Yt=Ee.text.lastIndexOf("/",at),Xe=Yt>-1&&!/\S/.test(Ee.text.slice(Yt+1,at));return Ee.ch=at+1,Xe?"selfClose":"regular"}}function Ne(Ee){for(;;){var at=Ee.ch?Ee.text.lastIndexOf("<",Ee.ch-1):-1;if(at==-1){if(Ie(Ee))continue;return}if(!xe(Ee,at+1)){Ee.ch=at;continue}ke.lastIndex=at,Ee.ch=at;var Yt=ke.exec(Ee.text);if(Yt&&Yt.index==at)return Yt}}function xt(Ee){for(;;){ke.lastIndex=Ee.ch;var at=ke.exec(Ee.text);if(!at){if(me(Ee))continue;return}if(!xe(Ee,at.index+1)){Ee.ch=at.index+1;continue}return Ee.ch=at.index+at[0].length,at}}function pt(Ee){for(;;){var at=Ee.ch?Ee.text.lastIndexOf(">",Ee.ch-1):-1;if(at==-1){if(Ie(Ee))continue;return}if(!xe(Ee,at+1)){Ee.ch=at;continue}var Yt=Ee.text.lastIndexOf("/",at),Xe=Yt>-1&&!/\S/.test(Ee.text.slice(Yt+1,at));return Ee.ch=at+1,Xe?"selfClose":"regular"}}function ct(Ee,at){for(var Yt=[];;){var Xe=xt(Ee),lt,Se=Ee.line,Ce=Ee.ch-(Xe?Xe[0].length:0);if(!Xe||!(lt=st(Ee)))return;if(lt!="selfClose")if(Xe[1]){for(var je=Yt.length-1;je>=0;--je)if(Yt[je]==Xe[2]){Yt.length=je;break}if(je<0&&(!at||at==Xe[2]))return{tag:Xe[2],from:Pe(Se,Ce),to:Pe(Ee.line,Ee.ch)}}else Yt.push(Xe[2])}}function rt(Ee,at){for(var Yt=[];;){var Xe=pt(Ee);if(!Xe)return;if(Xe=="selfClose"){Ne(Ee);continue}var lt=Ee.line,Se=Ee.ch,Ce=Ne(Ee);if(!Ce)return;if(Ce[1])Yt.push(Ce[2]);else{for(var je=Yt.length-1;je>=0;--je)if(Yt[je]==Ce[2]){Yt.length=je;break}if(je<0&&(!at||at==Ce[2]))return{tag:Ce[2],from:Pe(Ee.line,Ee.ch),to:Pe(lt,Se)}}}}ae.registerHelper("fold","xml",function(Ee,at){for(var Yt=new Le(Ee,at.line,0);;){var Xe=xt(Yt);if(!Xe||Yt.line!=at.line)return;var lt=st(Yt);if(!lt)return;if(!Xe[1]&<!="selfClose"){var Se=Pe(Yt.line,Yt.ch),Ce=ct(Yt,Xe[2]);return Ce&&Re(Ce.from,Se)>0?{from:Se,to:Ce.from}:null}}}),ae.findMatchingTag=function(Ee,at,Yt){var Xe=new Le(Ee,at.line,at.ch,Yt);if(!(Xe.text.indexOf(">")==-1&&Xe.text.indexOf("<")==-1)){var lt=st(Xe),Se=lt&&Pe(Xe.line,Xe.ch),Ce=lt&&Ne(Xe);if(!(!lt||!Ce||Re(Xe,at)>0)){var je={from:Pe(Xe.line,Xe.ch),to:Se,tag:Ce[2]};return lt=="selfClose"?{open:je,close:null,at:"open"}:Ce[1]?{open:rt(Xe,Ce[2]),close:je,at:"close"}:(Xe=new Le(Ee,Se.line,Se.ch,Yt),{open:je,close:ct(Xe,Ce[2]),at:"open"})}}},ae.findEnclosingTag=function(Ee,at,Yt,Xe){for(var lt=new Le(Ee,at.line,at.ch,Yt);;){var Se=rt(lt,Xe);if(!Se)break;var Ce=new Le(Ee,at.line,at.ch,Yt),je=ct(Ce,Se.tag);if(je)return{open:Se,close:je}}},ae.scanForClosingTag=function(Ee,at,Yt,Xe){var lt=new Le(Ee,at.line,at.ch,Xe?{from:0,to:Xe}:null);return ct(lt,Yt)}})},4631:function(dn){(function(en,se){dn.exports=se()})(this,function(){"use strict";var en=navigator.userAgent,se=navigator.platform,ae=/gecko\/\d/i.test(en),Pe=/MSIE \d/.test(en),Re=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(en),qe=/Edge\/(\d+)/.exec(en),ve=Pe||Re||qe,ke=ve&&(Pe?document.documentMode||6:+(qe||Re)[1]),Le=!qe&&/WebKit\//.test(en),xe=Le&&/Qt\/\d+\.\d+/.test(en),me=!qe&&/Chrome\//.test(en),Ie=/Opera\//.test(en),st=/Apple Computer/.test(navigator.vendor),Ne=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(en),xt=/PhantomJS/.test(en),pt=!qe&&/AppleWebKit/.test(en)&&/Mobile\/\w+/.test(en),ct=/Android/.test(en),rt=pt||ct||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(en),Ee=pt||/Mac/.test(se),at=/\bCrOS\b/.test(en),Yt=/win/i.test(se),Xe=Ie&&en.match(/Version\/(\d*\.\d*)/);Xe&&(Xe=Number(Xe[1])),Xe&&Xe>=15&&(Ie=!1,Le=!0);var lt=Ee&&(xe||Ie&&(Xe==null||Xe<12.11)),Se=ae||ve&&ke>=9;function Ce(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var je=function(x,z){var ne=x.className,te=Ce(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 Ue(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function Mt(x,z){return Ue(x).appendChild(z)}function ht(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 de=0;de=z)return ye+(z-de);ye+=Be-de,ye+=ne-ye%ne,de=Be+1}}var we=function(){this.id=null,this.f=null,this.time=0,this.handler=Yn(this.onTimeout,this)};we.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},we.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+=de-te,ie+=ne-ie%ne,te=de+1,ie>=z)return te}}var bn=[""];function un(x){for(;bn.length<=x;)bn.push(nn(bn)+" ");return bn[x]}function nn(x){return x[x.length-1]}function xn(x,z){for(var ne=[],te=0;te"\x80"&&(x.toUpperCase()!=x.toLowerCase()||ce.test(x))}function fe(x,z){return z?z.source.indexOf("\\w")>-1&&he(x)?!0:z.test(x):he(x)}function le(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Me=/[\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 Ve(x){return x.charCodeAt(0)>=768&&Me.test(x)}function ft(x,z,ne){for(;(ne<0?z>0:zne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,de=te<0?Math.ceil(ie):Math.floor(ie);if(de==z)return x(de)?z:ne;x(de)?ne=de:z=de+te}}function Zt(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,de=0;dez||z==ne&&ye.to==z)&&(te(Math.max(ye.from,z),Math.min(ye.to,ne),ye.level==1?"rtl":"ltr",de),ie=!0)}ie||te(z,ne,"ltr")}var jt=null;function $t(x,z,ne){var te;jt=null;for(var ie=0;iez)return ie;de.to==z&&(de.from!=de.to&&ne=="before"?te=ie:jt=ie),de.from==z&&(de.from!=de.to&&ne!="before"?te=ie:jt=ie)}return te!=null?te:jt}var Je=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(ze){return ze<=247?x.charAt(ze):1424<=ze&&ze<=1524?"R":1536<=ze&&ze<=1785?z.charAt(ze-1536):1774<=ze&&ze<=2220?"r":8192<=ze&&ze<=8203?"w":ze==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,de=/[LRr]/,ye=/[Lb1n]/,Be=/[1n]/;function Oe(ze,Ot,Gt){this.level=ze,this.from=Ot,this.to=Gt}return function(ze,Ot){var Gt=Ot=="ltr"?"L":"R";if(ze.length==0||Ot=="ltr"&&!te.test(ze))return!1;for(var On=ze.length,Sn=[],br=0;br-1&&(te[z]=ie.slice(0,de).concat(ie.slice(de+1)))}}}function et(x,z){var ne=wt(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie0}function An(x){x.prototype.on=function(z,ne){Xt(this,z,ne)},x.prototype.off=function(z,ne){Nn(this,z,ne)}}function Vn(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function mr(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function ur(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function dr(x){Vn(x),mr(x)}function Fr(x){return x.target||x.srcElement}function nr(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),Ee&&x.ctrlKey&&z==1&&(z=3),z}var _r=function(){if(ve&&ke<9)return!1;var x=ht("div");return"draggable"in x||"dragDrop"in x}(),oi;function Wr(x){if(oi==null){var z=ht("span","\u200B");Mt(x,ht("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(oi=z.offsetWidth<=1&&z.offsetHeight>2&&!(ve&&ke<8))}var ne=oi?ht("span","\u200B"):ht("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var xi;function ti(x){if(xi!=null)return xi;var z=Mt(x,document.createTextNode("A\u062EA")),ne=tt(z,0,1).getBoundingClientRect(),te=tt(z,1,2).getBoundingClientRect();return Ue(x),!ne||ne.left==ne.right?!1:xi=te.right-ne.right<3}var Ct=` 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 de=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),ye=de.indexOf("\r");ye!=-1?(ne.push(de.slice(0,ye)),z+=ye+1):(ne.push(de),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},wn=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},Rn=function(){var x=ht("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),an=null;function vr(x){if(an!=null)return an;var z=Mt(x,ht("span","x")),ne=z.getBoundingClientRect(),te=tt(z,0,1).getBoundingClientRect();return an=Math.abs(ne.left-te.left)>1}var lr={},Gn={};function jn(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),lr[x]=z}function nt(x,z){Gn[x]=z}function mt(x){if(typeof x=="string"&&Gn.hasOwnProperty(x))x=Gn[x];else if(x&&typeof x.name=="string"&&Gn.hasOwnProperty(x.name)){var z=Gn[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 mt("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return mt("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Bt(x,z){z=mt(z);var ne=lr[z.name];if(!ne)return Bt(x,"text/plain");var te=ne(x,z);if(rn.hasOwnProperty(z.name)){var ie=rn[z.name];for(var de in ie)ie.hasOwnProperty(de)&&(te.hasOwnProperty(de)&&(te["_"+de]=te[de]),te[de]=ie[de])}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 rn={};function Ze(x,z){var ne=rn.hasOwnProperty(x)?rn[x]:rn[x]={};tr(z,ne)}function St(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 Vt(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 Nt(x,z,ne){return x.startState?x.startState(z,ne):!0}var cn=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};cn.prototype.eol=function(){return this.pos>=this.string.length},cn.prototype.sol=function(){return this.pos==this.lineStart},cn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},cn.prototype.next=function(){if(this.posz},cn.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},cn.prototype.skipToEnd=function(){this.pos=this.string.length},cn.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},cn.prototype.backUp=function(x){this.pos-=x},cn.prototype.column=function(){return this.lastColumnPos0?null:(de&&z!==!1&&(this.pos+=de[0].length),de)}},cn.prototype.current=function(){return this.string.slice(this.start,this.pos)},cn.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},cn.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},cn.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function on(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],de=ie.chunkSize();if(z=x.first&&zne?gt(ne,on(x,ne).text.length):kr(z,on(x,z.line).text.length)}function kr(x,z){var ne=x.ch;return ne==null||ne>z?gt(x.line,z):ne<0?gt(x.line,0):x}function pn(x,z){for(var ne=[],te=0;tethis.maxLookAhead&&(this.maxLookAhead=x),z},Qr.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}},Qr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Qr.fromSaved=function(x,z,ne){return z instanceof di?new Qr(x,St(x.mode,z.state),ne,z.lookAhead):new Qr(x,St(x.mode,z),ne)},Qr.prototype.save=function(x){var z=x!==!1?St(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new di(z,this.maxLookAhead):z};function Fi(x,z,ne,te){var ie=[x.state.modeGen],de={};Mi(x,z.text,x.doc.mode,ne,function(ze,Ot){return ie.push(ze,Ot)},de,te);for(var ye=ne.state,Be=function(ze){ne.baseTokens=ie;var Ot=x.state.overlays[ze],Gt=1,On=0;ne.state=!0,Mi(x,z.text,Ot.mode,ne,function(Sn,br){for(var Rr=Gt;OnSn&&ie.splice(Gt,1,Sn,ie[Gt+1],Xr),Gt+=2,On=Math.min(Sn,Xr)}if(br)if(Ot.opaque)ie.splice(Rr,Gt-Rr,Sn,"overlay "+br),Gt=Rr+2;else for(;Rrx.options.maxHighlightLength&&St(x.doc.mode,te.state),de=Fi(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=de.styles,de.classes?z.styleClasses=de.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 Ci(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new Qr(te,!0,z);var de=Ji(x,z,ne),ye=de>te.first&&on(te,de-1).stateAfter,Be=ye?Qr.fromSaved(te,ye,de):new Qr(te,Nt(te.mode),de);return te.iter(de,z,function(Oe){Qi(x,Oe.text,Be);var ze=Be.line;Oe.stateAfter=ze==z-1||ze%5==0||ze>=ie.viewFrom&&zez.start)return de}throw new Error("Mode "+x.name+" failed to advance stream.")}var Hi=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function $i(x,z,ne,te){var ie=x.doc,de=ie.mode,ye;z=Un(ie,z);var Be=on(ie,z.line),Oe=Ci(x,z.line,ne),ze=new cn(Be.text,x.options.tabSize,Oe),Ot;for(te&&(Ot=[]);(te||ze.posx.options.maxHighlightLength?(Be=!1,ye&&Qi(x,z,te,Ot.pos),Ot.pos=z.length,Gt=null):Gt=ci(pi(ne,Ot,te.state,On),de),On){var Sn=On[0].name;Sn&&(Gt="m-"+(Gt?Sn+" "+Gt:Sn))}if(!Be||ze!=Gt){for(;Oeye;--Be){if(Be<=de.first)return de.first;var Oe=on(de,Be-1),ze=Oe.stateAfter;if(ze&&(!ne||Be+(ze instanceof di?ze.lookAhead:0)<=de.modeFrontier))return Be;var Ot=Qe(Oe.text,null,x.options.tabSize);(ie==null||te>Ot)&&(ie=Be-1,te=Ot)}return ie}function ca(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontierne;te--){var ie=on(x,te).stateAfter;if(ie&&(!(ie instanceof di)||te+ie.lookAhead=z:de.to>z);(te||(te=[])).push(new fn(ye,de.from,Oe?null:de.to))}}return te}function Jr(x,z,ne){var te;if(x)for(var ie=0;ie=z:de.to>z);if(Be||de.from==z&&ye.type=="bookmark"&&(!ne||de.marker.insertLeft)){var Oe=de.from==null||(ye.inclusiveLeft?de.from<=z:de.from0&&Be)for(var gi=0;gi0)){var Ot=[Oe,1],Gt=Dt(ze.from,Be.from),On=Dt(ze.to,Be.to);(Gt<0||!ye.inclusiveLeft&&!Gt)&&Ot.push({from:ze.from,to:Be.from}),(On>0||!ye.inclusiveRight&&!On)&&Ot.push({from:Be.to,to:ze.to}),ie.splice.apply(ie,Ot),Oe+=Ot.length-3}}return ie}function Ai(x){var z=x.markedSpans;if(z){for(var ne=0;nez)&&(!te||Li(te,de.marker)<0)&&(te=de.marker)}return te}function ut(x,z,ne,te,ie){var de=on(x,z),ye=hi&&de.markedSpans;if(ye)for(var Be=0;Be=0&&Gt<=0||Ot<=0&&Gt>=0)&&(Ot<=0&&(Oe.marker.inclusiveRight&&ie.inclusiveLeft?Dt(ze.to,ne)>=0:Dt(ze.to,ne)>0)||Ot>=0&&(Oe.marker.inclusiveRight&&ie.inclusiveLeft?Dt(ze.from,te)<=0:Dt(ze.from,te)<0)))return!0}}}function vt(x){for(var z;z=He(x);)x=z.find(-1,!0).line;return x}function Kt(x){for(var z;z=Ke(x);)x=z.find(1,!0).line;return x}function vn(x){for(var z,ne;z=Ke(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function kn(x,z){var ne=on(x,z),te=vt(ne);return ne==te?z:or(te)}function yr(x,z){if(z>x.lastLine())return z;var ne=on(x,z),te;if(!Pr(x,ne))return z;for(;te=Ke(ne);)ne=te.find(1,!0).line;return or(ne)+1}function Pr(x,z){var ne=hi&&z.markedSpans;if(ne){for(var te=void 0,ie=0;iez.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var rr=function(x,z,ne){this.text=x,jr(this,z),this.height=ne?ne(this):1};rr.prototype.lineNo=function(){return or(this)},An(rr);function Ir(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),Ai(x),jr(x,ne);var ie=te?te(x):1;ie!=x.height&&hr(x,ie)}function gr(x){x.parent=null,Ai(x)}var fr={},wr={};function Sr(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?wr:fr;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function Nr(x,z){var ne=Ft("span",null,null,Le?"padding-right: .1px":null),te={pre:Ft("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 de=ie?z.rest[ie-1]:z.line,ye=void 0;te.pos=0,te.addToken=We,ti(x.display.measure)&&(ye=Et(de,x.doc.direction))&&(te.addToken=bt(te.addToken,ye)),te.map=[];var Be=z!=x.display.externalMeasured&&or(de);Ln(de,te,Ni(x,de,Be)),de.styleClasses&&(de.styleClasses.bgClass&&(te.bgClass=tn(de.styleClasses.bgClass,te.bgClass||"")),de.styleClasses.textClass&&(te.textClass=tn(de.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(Wr(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(Le){var Oe=te.content.lastChild;(/\bcm-tab\b/.test(Oe.className)||Oe.querySelector&&Oe.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return et(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=tn(te.pre.className,te.textClass||"")),te}function Fe(x){var z=ht("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function We(x,z,ne,te,ie,de,ye){if(z){var Be=x.splitSpaces?Wt(z,x.trailingSpace):z,Oe=x.cm.state.specialChars,ze=!1,Ot;if(!Oe.test(z))x.col+=z.length,Ot=document.createTextNode(Be),x.map.push(x.pos,x.pos+z.length,Ot),ve&&ke<9&&(ze=!0),x.pos+=z.length;else{Ot=document.createDocumentFragment();for(var Gt=0;;){Oe.lastIndex=Gt;var On=Oe.exec(z),Sn=On?On.index-Gt:z.length-Gt;if(Sn){var br=document.createTextNode(Be.slice(Gt,Gt+Sn));ve&&ke<9?Ot.appendChild(ht("span",[br])):Ot.appendChild(br),x.map.push(x.pos,x.pos+Sn,br),x.col+=Sn,x.pos+=Sn}if(!On)break;Gt+=Sn+1;var Rr=void 0;if(On[0]==" "){var Xr=x.cm.options.tabSize,li=Xr-x.col%Xr;Rr=Ot.appendChild(ht("span",un(li),"cm-tab")),Rr.setAttribute("role","presentation"),Rr.setAttribute("cm-text"," "),x.col+=li}else On[0]=="\r"||On[0]==` `?(Rr=Ot.appendChild(ht("span",On[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Rr.setAttribute("cm-text",On[0]),x.col+=1):(Rr=x.cm.options.specialCharPlaceholder(On[0]),Rr.setAttribute("cm-text",On[0]),ve&&ke<9?Ot.appendChild(ht("span",[Rr])):Ot.appendChild(Rr),x.col+=1);x.map.push(x.pos,x.pos+1,Rr),x.pos++}}if(x.trailingSpace=Be.charCodeAt(z.length-1)==32,ne||te||ie||ze||de||ye){var mi=ne||"";te&&(mi+=te),ie&&(mi+=ie);var ni=ht("span",[Ot],mi,de);if(ye)for(var gi in ye)ye.hasOwnProperty(gi)&&gi!="style"&&gi!="class"&&ni.setAttribute(gi,ye[gi]);return x.content.appendChild(ni)}x.content.appendChild(Ot)}}function Wt(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ieze&&Gt.from<=ze));On++);if(Gt.to>=Ot)return x(ne,te,ie,de,ye,Be,Oe);x(ne,te.slice(0,Gt.to-ze),ie,de,null,Be,Oe),de=null,te=te.slice(Gt.to-ze),ze=Gt.to}}}function sn(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 Ln(x,z,ne){var te=x.markedSpans,ie=x.text,de=0;if(!te){for(var ye=1;yeOe||xa.collapsed&&qi.to==Oe&&qi.from==Oe)){if(qi.to!=null&&qi.to!=Oe&&Sn>qi.to&&(Sn=qi.to,Rr=""),xa.className&&(br+=" "+xa.className),xa.css&&(On=(On?On+";":"")+xa.css),xa.startStyle&&qi.from==Oe&&(Xr+=" "+xa.startStyle),xa.endStyle&&qi.to==Sn&&(gi||(gi=[])).push(xa.endStyle,qi.to),xa.title&&((mi||(mi={})).title=xa.title),xa.attributes)for(var to in xa.attributes)(mi||(mi={}))[to]=xa.attributes[to];xa.collapsed&&(!li||Li(li.marker,xa)<0)&&(li=qi)}else qi.from>Oe&&Sn>qi.from&&(Sn=qi.from)}if(gi)for(var jo=0;jo=Be)break;for(var us=Math.min(Be,Sn);;){if(Ot){var ds=Oe+Ot.length;if(!li){var To=ds>us?Ot.slice(0,us-Oe):Ot;z.addToken(z,To,Gt?Gt+br:br,Xr,Oe+To.length==Sn?Rr:"",On,mi)}if(ds>=us){Ot=Ot.slice(us-Oe),Oe=us;break}Oe=ds,Xr=""}Ot=ie.slice(de,de=ne[ze++]),Gt=Sr(ne[ze++],z.cm.options)}}}function zn(x,z,ne){this.line=z,this.rest=vn(z),this.size=this.rest?or(nn(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=Pr(x,z)}function ar(x,z,ne){for(var te=[],ie,de=z;de2&&de.push((Oe.bottom+ze.top)/2-ne.top)}}de.push(ne.bottom-ne.top)}}function Ea(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 Ta(x,z){z=vt(z);var ne=or(z),te=x.display.externalMeasured=new zn(x.doc,z,ne);te.lineN=ne;var ie=te.built=Nr(x,te);return te.text=ie.pre,Mt(x.display.lineMeasure,ie.pre),te}function va(x,z,ne,te){return ki(x,Yi(x,z),ne,te)}function ra(x,z){if(z>=x.display.viewFrom&&z=ne.lineN&&zz)&&(de=Oe-Be,ie=de-1,z>=Oe&&(ye="right")),ie!=null){if(te=x[ze+2],Be==Oe&&ne==(te.insertLeft?"left":"right")&&(ye=ne),ne=="left"&&ie==0)for(;ze&&x[ze-2]==x[ze-3]&&x[ze-1].insertLeft;)te=x[(ze-=3)+2],ye="left";if(ne=="right"&&ie==Oe-Be)for(;ze=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function Ui(x,z,ne,te){var ie=Ri(z.map,ne,te),de=ie.node,ye=ie.start,Be=ie.end,Oe=ie.collapse,ze;if(de.nodeType==3){for(var Ot=0;Ot<4;Ot++){for(;ye&&Ve(z.line.text.charAt(ie.coverStart+ye));)--ye;for(;ie.coverStart+Be0&&(Oe=te="right");var Gt;x.options.lineWrapping&&(Gt=de.getClientRects()).length>1?ze=Gt[te=="right"?Gt.length-1:0]:ze=de.getBoundingClientRect()}if(ve&&ke<9&&!ye&&(!ze||!ze.left&&!ze.right)){var On=de.parentNode.getClientRects()[0];On?ze={left:On.left,right:On.left+io(x.display),top:On.top,bottom:On.bottom}:ze=Ma}for(var Sn=ze.top-z.rect.top,br=ze.bottom-z.rect.top,Rr=(Sn+br)/2,Xr=z.view.measure.heights,li=0;li=te.text.length?(Oe=te.text.length,ze="before"):Oe<=0&&(Oe=0,ze="after"),!Be)return ye(ze=="before"?Oe-1:Oe,ze=="before");function Ot(br,Rr,Xr){var li=Be[Rr],mi=li.level==1;return ye(Xr?br-1:br,mi!=Xr)}var Gt=$t(Be,Oe,ze),On=jt,Sn=Ot(Oe,Gt,ze=="before");return On!=null&&(Sn.other=Ot(Oe,On,ze!="before")),Sn}function Ba(x,z){var ne=0;z=Un(x.doc,z),x.options.lineWrapping||(ne=io(x.display)*z.ch);var te=on(x.doc,z.line),ie=Wn(te)+ea(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function qa(x,z,ne,te,ie){var de=gt(x,z,ne);return de.xRel=ie,te&&(de.outside=te),de}function Ya(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return qa(te.first,0,null,-1,-1);var ie=Ar(te,ne),de=te.first+te.size-1;if(ie>de)return qa(te.first+te.size-1,on(te,de).text.length,null,1,1);z<0&&(z=0);for(var ye=on(te,ie);;){var Be=Wi(x,ye,ie,z,ne),Oe=Ge(ye,Be.ch+(Be.xRel>0||Be.outside>0?1:0));if(!Oe)return Be;var ze=Oe.find(1);if(ze.line==ie)return ze;ye=on(te,ie=ze.line)}}function so(x,z,ne,te){te-=fa(z);var ie=z.text.length,de=Ht(function(ye){return ki(x,ne,ye-1).bottom<=te},ie,0);return ie=Ht(function(ye){return ki(x,ne,ye).top>te},de,ie),{begin:de,end:ie}}function _a(x,z,ne,te){ne||(ne=Yi(x,z));var ie=Sa(x,z,ki(x,ne,te),"line").top;return so(x,z,ne,ie)}function Aa(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function Wi(x,z,ne,te,ie){ie-=Wn(z);var de=Yi(x,z),ye=fa(z),Be=0,Oe=z.text.length,ze=!0,Ot=Et(z,x.doc.direction);if(Ot){var Gt=(x.options.lineWrapping?da:Xi)(x,z,ne,de,Ot,te,ie);ze=Gt.level!=1,Be=ze?Gt.from:Gt.to-1,Oe=ze?Gt.to:Gt.from-1}var On=null,Sn=null,br=Ht(function(Gi){var qi=ki(x,de,Gi);return qi.top+=ye,qi.bottom+=ye,Aa(qi,te,ie,!1)?(qi.top<=ie&&qi.left<=te&&(On=Gi,Sn=qi),!0):!1},Be,Oe),Rr,Xr,li=!1;if(Sn){var mi=te-Sn.left=gi.bottom?1:0}return br=ft(z.text,br,1),qa(ne,br,Xr,li,te-Rr)}function Xi(x,z,ne,te,ie,de,ye){var Be=Ht(function(Gt){var On=ie[Gt],Sn=On.level!=1;return Aa(ha(x,gt(ne,Sn?On.to:On.from,Sn?"before":"after"),"line",z,te),de,ye,!0)},0,ie.length-1),Oe=ie[Be];if(Be>0){var ze=Oe.level!=1,Ot=ha(x,gt(ne,ze?Oe.from:Oe.to,ze?"after":"before"),"line",z,te);Aa(Ot,de,ye,!0)&&Ot.top>ye&&(Oe=ie[Be-1])}return Oe}function da(x,z,ne,te,ie,de,ye){var Be=so(x,z,te,ye),Oe=Be.begin,ze=Be.end;/\s/.test(z.text.charAt(ze-1))&&ze--;for(var Ot=null,Gt=null,On=0;On=ze||Sn.to<=Oe)){var br=Sn.level!=1,Rr=ki(x,te,br?Math.min(ze,Sn.to)-1:Math.max(Oe,Sn.from)).right,Xr=RrXr)&&(Ot=Sn,Gt=Xr)}}return Ot||(Ot=ie[ie.length-1]),Ot.fromze&&(Ot={from:Ot.from,to:ze,level:Ot.level}),Ot}var Ca;function Ka(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(Ca==null){Ca=ht("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Ca.appendChild(document.createTextNode("x")),Ca.appendChild(ht("br"));Ca.appendChild(document.createTextNode("x"))}Mt(x.measure,Ca);var ne=Ca.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Ue(x.measure),ne||1}function io(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=ht("span","xxxxxxxxxx"),ne=ht("pre",[z],"CodeMirror-line-like");Mt(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,de=z.gutters.firstChild,ye=0;de;de=de.nextSibling,++ye){var Be=x.display.gutterSpecs[ye].className;ne[Be]=de.offsetLeft+de.clientLeft+ie,te[Be]=de.clientWidth}return{fixedPos:Po(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Po(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function No(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(Pr(x.doc,ie))return 0;var de=0;if(ie.widgets)for(var ye=0;ye0&&(ze=on(x.doc,Oe.line).text).length==Oe.ch){var Ot=Qe(ze,ze.length,x.options.tabSize)-ze.length;Oe=gt(Oe.line,Math.max(0,Math.round((de-zi(x.display).left)/io(x.display))-Ot))}return Oe}function ia(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)hi&&kn(x.doc,z)ie.viewFrom?Da(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)Da(x);else if(z<=ie.viewFrom){var de=co(x,ne,ne+te,1);de?(ie.view=ie.view.slice(de.index),ie.viewFrom=de.lineN,ie.viewTo+=te):Da(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):Da(x)}else{var Be=co(x,z,z,-1),Oe=co(x,ne,ne+te,1);Be&&Oe?(ie.view=ie.view.slice(0,Be.index).concat(ar(x,Be.lineN,Oe.lineN)).concat(ie.view.slice(Oe.index)),ie.viewTo+=te):Da(x)}var ze=ie.externalMeasured;ze&&(ne=ie.lineN&&z=te.viewTo)){var de=te.view[ia(x,z)];if(de.node!=null){var ye=de.changes||(de.changes=[]);At(ye,ne)==-1&&ye.push(ne)}}}function Da(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=ia(x,z),de,ye=x.display.view;if(!hi||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var Be=x.display.viewFrom,Oe=0;Oe0){if(ie==ye.length-1)return null;de=Be+ye[ie].size-z,ie++}else de=Be-z;z+=de,ne+=de}for(;kn(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=ar(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=ar(x,z,te.viewFrom).concat(te.view):te.viewFromne&&(te.view=te.view.slice(0,ia(x,ne)))),te.viewTo=ne}function hs(x){for(var z=x.display.view,ne=0,te=0;te=x.display.viewTo||Be.to().line0?z.blinker=setInterval(function(){x.hasFocus()||_o(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function ji(x){x.state.focused||(x.display.input.focus(),Ga(x))}function Wa(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,_o(x))},100)}function Ga(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(et(x,"focus",x,z),x.state.focused=!0,yn(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),Le&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Pi(x))}function _o(x,z){x.state.delayingBlurEvent||(x.state.focused&&(et(x,"blur",x,z),x.state.focused=!1,je(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Zo(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te.005||Ot<-.005)&&(hr(ie.line,ye),ls(ie.line),ie.rest))for(var Gt=0;Gtx.display.sizerWidth){var On=Math.ceil(Be/io(x.display));On>x.display.maxLineLength&&(x.display.maxLineLength=On,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function ls(x){if(x.widgets)for(var z=0;z=ye&&(de=Ar(z,Wn(on(z,Oe))-x.wrapper.clientHeight),ye=Oe)}return{from:de,to:Math.max(ye,de+1)}}function Ro(x,z){if(!It(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&&!xt){var de=ht("div","\u200B",null,`position: absolute; top: `+(z.top-ne.viewOffset-ea(x.display))+`px; height: `+(z.bottom-z.top+ai(x)+ne.barHeight)+`px; left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(de),de.scrollIntoView(ie),x.display.lineSpace.removeChild(de)}}}function cs(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?gt(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?gt(z.line,z.ch+1,"before"):z);for(var de=0;de<5;de++){var ye=!1,Be=ha(x,z),Oe=!ne||ne==z?Be:ha(x,ne);ie={left:Math.min(Be.left,Oe.left),top:Math.min(Be.top,Oe.top)-te,right:Math.max(Be.left,Oe.left),bottom:Math.max(Be.bottom,Oe.bottom)+te};var ze=Bs(x,ie),Ot=x.doc.scrollTop,Gt=x.doc.scrollLeft;if(ze.scrollTop!=null&&(Pa(x,ze.scrollTop),Math.abs(x.doc.scrollTop-Ot)>1&&(ye=!0)),ze.scrollLeft!=null&&(go(x,ze.scrollLeft),Math.abs(x.doc.scrollLeft-Gt)>1&&(ye=!0)),!ye)break}return ie}function ul(x,z){var ne=Bs(x,z);ne.scrollTop!=null&&Pa(x,ne.scrollTop),ne.scrollLeft!=null&&go(x,ne.scrollLeft)}function Bs(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,de=_i(x),ye={};z.bottom-z.top>de&&(z.bottom=z.top+de);var Be=x.doc.height+Si(ne),Oe=z.topBe-te;if(z.topie+de){var Ot=Math.min(z.top,(ze?Be:z.bottom)-de);Ot!=ie&&(ye.scrollTop=Ot)}var Gt=x.options.fixedGutter?0:ne.gutters.offsetWidth,On=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-Gt,Sn=vi(x)-ne.gutters.offsetWidth,br=z.right-z.left>Sn;return br&&(z.right=z.left+Sn),z.left<10?ye.scrollLeft=0:z.leftSn+On-3&&(ye.scrollLeft=z.right+(br?0:10)-Sn),ye}function ms(x,z){z!=null&&(Js(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function Ho(x){Js(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function Ds(x,z,ne){(z!=null||ne!=null)&&Js(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Is(x,z){Js(x),x.curOp.scrollToPos=z}function Js(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=Ba(x,z.from),te=Ba(x,z.to);oo(x,ne,te,z.margin)}}function oo(x,z,ne,te){var ie=Bs(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});Ds(x,ie.scrollLeft,ie.scrollTop)}function Pa(x,z){Math.abs(x.doc.scrollTop-z)<2||(ae||Jc(x,{top:z}),Xa(x,z,!0),ae&&Jc(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,Vu(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+Si(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+ai(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Ko=function(x,z,ne){this.cm=ne;var te=this.vert=ht("div",[ht("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=ht("div",[ht("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),Xt(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),Xt(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ve&&ke<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 de=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+de)+"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=Ee&&!Ne?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new we,this.disableVert=new we},Ko.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),de=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);de!=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&&Zo(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 Ql={native:Ko,null:wo};function vc(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&je(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Ql[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),Xt(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):Pa(x,z)},x),x.display.scrollbars.addClass&&yn(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},Ye(x.curOp)}function Ts(x){var z=x.curOp;z&&Qt(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 Na(x){x.updatedDisplay=x.mustUpdate&&Qc(x.cm,x.update)}function ma(x){var z=x.cm,ne=z.display;x.updatedDisplay&&Zo(z),x.barMeasure=yo(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=va(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+ai(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-vi(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Wo(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=Ci(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(de){if(te.line>=x.display.viewFrom){var ye=de.styles,Be=de.text.length>x.options.maxHighlightLength?St(z.mode,te.state):null,Oe=Fi(x,de,te,!0);Be&&(te.state=Be),de.styles=Oe.styles;var ze=de.styleClasses,Ot=Oe.classes;Ot?de.styleClasses=Ot:ze&&(de.styleClasses=null);for(var Gt=!ye||ye.length!=de.styles.length||ze!=Ot&&(!ze||!Ot||ze.bgClass!=Ot.bgClass||ze.textClass!=Ot.textClass),On=0;!Gt&&Onne)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 de=0;de=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)&&(Da(x),z.dims=ho(x));var ie=te.first+te.size,de=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)),hi&&(de=kn(x.doc,de),ye=yr(x.doc,ye));var Be=de!=ne.viewFrom||ye!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;ao(x,de,ye),ne.viewOffset=Wn(on(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var Oe=hs(x);if(!Be&&Oe==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var ze=Ud(x);return Oe>4&&(ne.lineDiv.style.display="none"),Gd(x,ne.updateLineNumbers,z.dims),Oe>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Vd(ze),Ue(ne.cursorDiv),Ue(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Be&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,is(x,400)),ne.updateLineNumbers=null,!0}function Uu(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==vi(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+Si(x.display)-_i(x),ne.top)}),z.visible=ya(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=ya(x.display,x.doc,ne));if(!Qc(x,z))break;Zo(x);var ie=yo(x);$o(x),xs(x,ie),$c(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 Jc(x,z){var ne=new gs(x,z);if(Qc(x,ne)){Zo(x),Uu(x,ne);var te=yo(x);$o(x),xs(x,te),$c(x,te),ne.finish()}}function Gd(x,z,ne){var te=x.display,ie=x.options.lineNumbers,de=te.lineDiv,ye=de.firstChild;function Be(br){var Rr=br.nextSibling;return Le&&Ee&&x.display.currentWheelTarget==br?br.style.display="none":br.parentNode.removeChild(br),Rr}for(var Oe=te.view,ze=te.viewFrom,Ot=0;Ot-1&&(Sn=!1),sr(x,Gt,ze,ne)),Sn&&(Ue(Gt.lineNumber),Gt.lineNumber.appendChild(document.createTextNode(kt(x.options,ze)))),ye=Gt.node.nextSibling}ze+=Gt.size}for(;ye;)ye=Be(ye)}function qc(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function $c(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+ai(x)+"px"}function Vu(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Po(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,de=te+"px",ye=0;yeye.clientWidth,Oe=ye.scrollHeight>ye.clientHeight;if(te&&Be||ie&&Oe){if(ie&&Ee&&Le){e:for(var ze=z.target,Ot=de.view;ze!=ye;ze=ze.parentNode)for(var Gt=0;Gt=0&&Dt(x,te.to())<=0)return ne}return-1};var Ua=function(x,z){this.anchor=x,this.head=z};Ua.prototype.from=function(){return Dn(this.anchor,this.head)},Ua.prototype.to=function(){return Cn(this.anchor,this.head)},Ua.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(On,Sn){return Dt(On.from(),Sn.from())}),ne=At(z,ie);for(var de=1;de0:Oe>=0){var ze=Dn(Be.from(),ye.from()),Ot=Cn(Be.to(),ye.to()),Gt=Be.empty()?ye.from()==ye.head:Be.from()==Be.head;de<=ne&&--ne,z.splice(--de,2,new Ua(Gt?Ot:ze,Gt?ze:Ot))}}return new vs(z,ne)}function Os(x,z){return new vs([new Ua(x,z||x)],0)}function qs(x){return x.text?gt(x.from.line+x.text.length-1,nn(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Qu(x,z){if(Dt(x,z.from)<0)return x;if(Dt(x,z.to)<=0)return qs(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+=qs(z).ch-z.to.ch),gt(ne,te)}function tu(x,z){for(var ne=[],te=0;te1&&x.remove(Be.line+1,br-1),x.insert(Be.line+1,li)}mn(x,"change",x,z)}function $s(x,z,ne){function te(ie,de,ye){if(ie.linked)for(var Be=0;Be1&&!x.done[x.done.length-2].ranges)return x.done.pop(),nn(x.done)}function Ec(x,z,ne,te){var ie=x.history;ie.undone.length=0;var de=+new Date,ye,Be;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>de-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(ye=su(ie,ie.lastOp==te)))Be=nn(ye.changes),Dt(z.from,z.to)==0&&Dt(z.from,Be.to)==0?Be.to=qs(z):ye.changes.push(ou(x,z));else{var Oe=nn(ie.done);for((!Oe||!Oe.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=de,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,Be||et(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,de=te&&te.origin;ne==ie.lastSelOp||de&&ie.lastSelOrigin==de&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==de||lu(x,de,nn(ie.done),z))?ie.done[ie.done.length-1]=z:Mc(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=de,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&qu(ie.undone)}function Mc(x,z){var ne=nn(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function uu(x,z,ne,te){var ie=z["spans_"+x.id],de=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]={}))[de]=ye.markedSpans),++de})}function du(x){if(!x)return null;for(var z,ne=0;ne-1&&(nn(Be)[Gt]=ze[Gt],delete ze[Gt])}}return te}function fu(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var de=Dt(z,ie)<0;de!=Dt(ne,ie)<0?(ie=z,z=ne):de!=Dt(z,ne)<0&&(z=ne)}return new Ua(ie,z)}else return new Ua(ne||z,z)}function Fl(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),Do(x,new vs([fu(x.sel.primary(),z,ne,ie)],0),te)}function yi(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),de=0;de=z.ch:Be.to>z.ch))){if(ie&&(et(Oe,"beforeCursorEnter"),Oe.explicitlyCleared))if(de.markedSpans){--ye;continue}else break;if(!Oe.atomic)continue;if(ne){var Gt=Oe.find(te<0?1:-1),On=void 0;if((te<0?Ot:ze)&&(Gt=el(x,Gt,-te,Gt&&Gt.line==z.line?de:null)),Gt&&Gt.line==z.line&&(On=Dt(Gt,ne))&&(te<0?On<0:On>0))return os(x,Gt,z,te,ie)}var Sn=Oe.find(te<0?-1:1);return(te<0?ze:Ot)&&(Sn=el(x,Sn,te,Sn.line==z.line?de:null)),Sn?os(x,Sn,z,te,ie):null}}return z}function hu(x,z,ne,te,ie){var de=te||1,ye=os(x,z,ne,de,ie)||!ie&&os(x,z,ne,de,!0)||os(x,z,ne,-de,ie)||!ie&&os(x,z,ne,-de,!0);return ye||(x.cantEdit=!0,gt(x.first,0))}function el(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?Un(x,gt(z.line-1)):null:ne>0&&z.ch==(te||on(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]==""&&Dt(z.from,z.to)==0)){var ne=tu(x,z);Ec(x,z,ne,x.cm?x.cm.curOp.id:NaN),_l(x,z,ne,ri(x,z));var te=[];$s(x,function(ie,de){!de&&At(te,ie.history)==-1&&(kc(ie.history,z),te.push(ie.history)),_l(ie,z,null,ri(ie,z))})}}function tl(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,de,ye=x.sel,Be=z=="undo"?ie.done:ie.undone,Oe=z=="undo"?ie.undone:ie.done,ze=0;ze=0;--Sn){var br=On(Sn);if(br)return br.v}}}}function mu(x,z){if(z!=0&&(x.first+=z,x.sel=new vs(xn(x.sel.ranges,function(ie){return new Ua(gt(ie.anchor.line+z,ie.anchor.ch),gt(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){Vi(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;tex.lastLine())){if(z.from.linede&&(z={from:z.from,to:gt(de,on(x,de).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Kn(x,z.from,z.to),ne||(ne=tu(x,z)),x.cm?$d(x.cm,z,te):iu(x,z,te),Ac(x,ne,$e),x.cantEdit&&hu(x,gt(x.firstLine(),0))&&(x.cantEdit=!1)}}function $d(x,z,ne){var te=x.doc,ie=x.display,de=z.from,ye=z.to,Be=!1,Oe=de.line;x.options.lineWrapping||(Oe=or(vt(on(te,de.line))),te.iter(Oe,ye.line+1,function(Sn){if(Sn==ie.maxLine)return Be=!0,!0})),te.sel.contains(z.from,z.to)>-1&&gn(x),iu(te,z,ne,No(x)),x.options.lineWrapping||(te.iter(Oe,de.line+z.text.length,function(Sn){var br=Fn(Sn);br>ie.maxLineLength&&(ie.maxLine=Sn,ie.maxLineLength=br,ie.maxLineChanged=!0,Be=!1)}),Be&&(x.curOp.updateMaxLine=!0)),ca(te,de.line),is(x,400);var ze=z.text.length-(ye.line-de.line)-1;z.full?Vi(x):de.line==ye.line&&z.text.length==1&&!Ju(x.doc,z)?Oa(x,de.line,"text"):Vi(x,de.line,ye.line+1,ze);var Ot=hn(x,"changes"),Gt=hn(x,"change");if(Gt||Ot){var On={from:de,to:ye,text:z.text,removed:z.removed,origin:z.origin};Gt&&mn(x,"change",x,On),Ot&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(On)}x.display.selForContextMenu=null}function ec(x,z,ne,te,ie){var de;te||(te=ne),Dt(te,ne)<0&&(de=[te,ne],ne=de[0],te=de[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 Be=[];this.collapse(Be),this.children=[new fl(Be)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z50){for(var ye=ie.lines.length%25+25,Be=ye;Be10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;tex.display.maxLineLength&&(x.display.maxLine=ze,x.display.maxLineLength=Ot,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&Vi(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&qd(x.doc)),x&&mn(x,"markerCleared",x,this,te,ie),z&&Ts(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&&de.clearWhenEmpty!==!1)return de;if(de.replacedWith&&(de.collapsed=!0,de.widgetNode=Ft("span",[de.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||de.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(de.widgetNode.insertLeft=!0)),de.collapsed){if(ut(x,z.line,z,ne,de)||z.line!=ne.line&&ut(x,ne.line,z,ne,de))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tt()}de.addToHistory&&Ec(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Be=z.line,Oe=x.cm,ze;if(x.iter(Be,ne.line+1,function(Gt){Oe&&de.collapsed&&!Oe.options.lineWrapping&&vt(Gt)==Oe.display.maxLine&&(ze=!0),de.collapsed&&Be!=z.line&&hr(Gt,0),Or(Gt,new fn(de,Be==z.line?z.ch:null,Be==ne.line?ne.ch:null)),++Be}),de.collapsed&&x.iter(z.line,ne.line+1,function(Gt){Pr(x,Gt)&&hr(Gt,0)}),de.clearOnEnter&&Xt(de,"beforeCursorEnter",function(){return de.clear()}),de.readOnly&&(zt(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),de.collapsed&&(de.id=++af,de.atomic=!0),Oe){if(ze&&(Oe.curOp.updateMaxLine=!0),de.collapsed)Vi(Oe,z.line,ne.line+1);else if(de.className||de.startStyle||de.endStyle||de.css||de.attributes||de.title)for(var Ot=z.line;Ot<=ne.line;Ot++)Oa(Oe,Ot,"text");de.atomic&&qd(Oe.doc),mn(Oe,"markerAdded",Oe,de)}return de}var ba=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne=0;Oe--)dl(this,te[Oe]);Be?as(this,Be):this.cm&&Ho(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=Un(this,x),z=Un(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(de){var ye=de.markedSpans;if(ye)for(var Be=0;Be=Oe.to||Oe.from==null&&ie!=x.line||Oe.from!=null&&ie==z.line&&Oe.from>=z.ch)&&(!ne||ne(Oe.marker))&&te.push(Oe.marker.parent||Oe.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-=de,++ne}),Un(this,gt(ne,z))},indexFromPos:function(x){x=Un(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 Ot=x.dataTransfer.getData("Text");if(Ot){var Gt;if(z.state.draggingText&&!z.state.draggingText.copy&&(Gt=z.listSelections()),Ac(z.doc,Os(ne,ne)),Gt)for(var On=0;On=0;Be--)ec(x.doc,"",te[Be].from,te[Be].to,"+delete");Ho(x)})}function Vo(x,z,ne){var te=ft(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function js(x,z,ne){var te=Vo(x,z.ch,ne);return te==null?null:new gt(z.line,te,ne<0?"after":"before")}function Kl(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var de=Et(ne,z.doc.direction);if(de){var ye=ie<0?nn(de):de[0],Be=ie<0==(ye.level==1),Oe=Be?"after":"before",ze;if(ye.level>0||z.doc.direction=="rtl"){var Ot=Yi(z,ne);ze=ie<0?ne.text.length-1:0;var Gt=ki(z,Ot,ze).top;ze=Ht(function(On){return ki(z,Ot,On).top==Gt},ie<0==(ye.level==1)?ye.from:ye.to-1,ze),Oe=="before"&&(ze=Vo(ne,ze,1))}else ze=ie<0?ye.to:ye.from;return new gt(te,ze,Oe)}}return new gt(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Zs(x,z,ne,te){var ie=Et(z,x.doc.direction);if(!ie)return js(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 de=$t(ie,ne.ch,ne.sticky),ye=ie[de];if(x.doc.direction=="ltr"&&ye.level%2==0&&(te>0?ye.to>ne.ch:ye.from=ye.from&&On>=Ot.begin)){var Sn=Gt?"before":"after";return new gt(ne.line,On,Sn)}}var br=function(li,mi,ni){for(var gi=function(to,jo){return jo?new gt(ne.line,Be(to,1),"before"):new gt(ne.line,to,"after")};li>=0&&li0==(Gi.level!=1),xa=qi?ni.begin:Be(ni.end,-1);if(Gi.from<=xa&&xa0?Ot.end:Be(Ot.begin,-1);return Xr!=null&&!(te>0&&Xr==z.text.length)&&(Rr=br(te>0?0:ie.length-1,te,ze(Xr)),Rr)?Rr:null}var ac={selectAll:td,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),$e)},killLine:function(x){return As(x,function(z){if(z.empty()){var ne=on(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line0)ie=new gt(ie.line,ie.ch+1),x.replaceRange(de.charAt(ie.ch-1)+de.charAt(ie.ch-2),gt(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var ye=on(x.doc,ie.line-1).text;ye&&(ie=new gt(ie.line,1),x.replaceRange(de.charAt(0)+x.doc.lineSeparator()+ye.charAt(ye.length-1),gt(ie.line-1,ye.length-1),ie,"+transpose"))}}ne.push(new Ua(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&&Dt(z,this.pos)==0&&ne==this.button};var al,Oc;function ih(x,z){var ne=+new Date;return Oc&&Oc.compare(ne,x,z)?(al=Oc=null,"triple"):al&&al.compare(ne,x,z)?(Oc=new ud(ne,x,z),al=null,"double"):(al=new ud(ne,x,z),Oc=null,"single")}function Go(x){var z=this,ne=z.display;if(!(It(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,Ti(ne,x)){Le||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!ts(z,x)){var te=Bo(z,x),ie=nr(x),de=te?ih(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&gl(z,ie,te,de,x))&&(ie==1?te?wu(z,te,de,x):Fr(x)==ne.scroller&&Vn(x):ie==2?(te&&Fl(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(Se?z.display.input.onContextMenu(x):Wa(z)))}}}function gl(x,z,ne,te,ie){var de="Click";return te=="double"?de="Double"+de:te=="triple"&&(de="Triple"+de),de=(z==1?"Left":z==2?"Middle":"Right")+de,oc(x,ml(de,ie),ie,function(ye){if(typeof ye=="string"&&(ye=ac[ye]),!ye)return!1;var Be=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Be=ye(x,ne)!=_t}finally{x.state.suppressEdits=!1}return Be})}function xu(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var de=at?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=de?"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=Ee?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(Ee?ne.altKey:ne.ctrlKey)),ie}function wu(x,z,ne,te){ve?setTimeout(Yn(ji,x),0):x.curOp.focus=Rt();var ie=xu(x,ne,te),de=x.doc.sel,ye;x.options.dragDrop&&_r&&!x.isReadOnly()&&ne=="single"&&(ye=de.contains(z))>-1&&(Dt((ye=de.ranges[ye]).from(),z)<0||z.xRel>0)&&(Dt(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,de=!1,ye=Ha(x,function(ze){Le&&(ie.scroller.draggable=!1),x.state.draggingText=!1,Nn(ie.wrapper.ownerDocument,"mouseup",ye),Nn(ie.wrapper.ownerDocument,"mousemove",Be),Nn(ie.scroller,"dragstart",Oe),Nn(ie.scroller,"drop",ye),de||(Vn(ze),te.addNew||Fl(x.doc,ne,null,null,te.extend),Le&&!st||ve&&ke==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Be=function(ze){de=de||Math.abs(z.clientX-ze.clientX)+Math.abs(z.clientY-ze.clientY)>=10},Oe=function(){return de=!0};Le&&(ie.scroller.draggable=!0),x.state.draggingText=ye,ye.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),Xt(ie.wrapper.ownerDocument,"mouseup",ye),Xt(ie.wrapper.ownerDocument,"mousemove",Be),Xt(ie.scroller,"dragstart",Oe),Xt(ie.scroller,"drop",ye),Wa(x),setTimeout(function(){return ie.input.focus()},20)}function df(x,z,ne){if(ne=="char")return new Ua(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Ua(gt(z.line,0),Un(x.doc,gt(z.line+1,0)));var te=ne(x,z);return new Ua(te.from,te.to)}function dd(x,z,ne,te){var ie=x.display,de=x.doc;Vn(z);var ye,Be,Oe=de.sel,ze=Oe.ranges;if(te.addNew&&!te.extend?(Be=de.sel.contains(ne),Be>-1?ye=ze[Be]:ye=new Ua(ne,ne)):(ye=de.sel.primary(),Be=de.sel.primIndex),te.unit=="rectangle")te.addNew||(ye=new Ua(ne,ne)),ne=Bo(x,z,!0,!0),Be=-1;else{var Ot=df(x,ne,te.unit);te.extend?ye=fu(ye,Ot.anchor,Ot.head,te.extend):ye=Ot}te.addNew?Be==-1?(Be=ze.length,Do(de,Ms(x,ze.concat([ye]),Be),{scroll:!1,origin:"*mouse"})):ze.length>1&&ze[Be].empty()&&te.unit=="char"&&!te.extend?(Do(de,Ms(x,ze.slice(0,Be).concat(ze.slice(Be+1)),0),{scroll:!1,origin:"*mouse"}),Oe=de.sel):ws(de,Be,ye,dt):(Be=0,Do(de,new vs([ye],0),dt),Oe=de.sel);var Gt=ne;function On(ni){if(Dt(Gt,ni)!=0)if(Gt=ni,te.unit=="rectangle"){for(var gi=[],Gi=x.options.tabSize,qi=Qe(on(de,ne.line).text,ne.ch,Gi),xa=Qe(on(de,ni.line).text,ni.ch,Gi),to=Math.min(qi,xa),jo=Math.max(qi,xa),bo=Math.min(ne.line,ni.line),us=Math.min(x.lastLine(),Math.max(ne.line,ni.line));bo<=us;bo++){var ds=on(de,bo).text,To=Xn(ds,to,Gi);to==jo?gi.push(new Ua(gt(bo,To),gt(bo,To))):ds.length>To&&gi.push(new Ua(gt(bo,To),gt(bo,Xn(ds,jo,Gi))))}gi.length||gi.push(new Ua(ne,ne)),Do(de,Ms(x,Oe.ranges.slice(0,Be).concat(gi),Be),{origin:"*mouse",scroll:!1}),x.scrollIntoView(ni)}else{var fs=ye,la=df(x,ni,te.unit),So=fs.anchor,xo;Dt(la.anchor,So)>0?(xo=la.head,So=Dn(fs.from(),la.anchor)):(xo=la.anchor,So=Cn(fs.to(),la.head));var Co=Oe.ranges.slice(0);Co[Be]=ff(x,new Ua(Un(de,So),xo)),Do(de,Ms(x,Co,Be),dt)}}var Sn=ie.wrapper.getBoundingClientRect(),br=0;function Rr(ni){var gi=++br,Gi=Bo(x,ni,!0,te.unit=="rectangle");if(Gi)if(Dt(Gi,Gt)!=0){x.curOp.focus=Rt(),On(Gi);var qi=ya(ie,de);(Gi.line>=qi.to||Gi.lineSn.bottom?20:0;xa&&setTimeout(Ha(x,function(){br==gi&&(ie.scroller.scrollTop+=xa,Rr(ni))}),50)}}function Xr(ni){x.state.selectingText=!1,br=1/0,ni&&(Vn(ni),ie.input.focus()),Nn(ie.wrapper.ownerDocument,"mousemove",li),Nn(ie.wrapper.ownerDocument,"mouseup",mi),de.history.lastSelOrigin=null}var li=Ha(x,function(ni){ni.buttons===0||!nr(ni)?Xr(ni):Rr(ni)}),mi=Ha(x,Xr);x.state.selectingText=mi,Xt(ie.wrapper.ownerDocument,"mousemove",li),Xt(ie.wrapper.ownerDocument,"mouseup",mi)}function ff(x,z){var ne=z.anchor,te=z.head,ie=on(x.doc,ne.line);if(Dt(ne,te)==0&&ne.sticky==te.sticky)return z;var de=Et(ie);if(!de)return z;var ye=$t(de,ne.ch,ne.sticky),Be=de[ye];if(Be.from!=ne.ch&&Be.to!=ne.ch)return z;var Oe=ye+(Be.from==ne.ch==(Be.level!=1)?0:1);if(Oe==0||Oe==de.length)return z;var ze;if(te.line!=ne.line)ze=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var Ot=$t(de,te.ch,te.sticky),Gt=Ot-ye||(te.ch-ne.ch)*(Be.level==1?-1:1);Ot==Oe-1||Ot==Oe?ze=Gt<0:ze=Gt>0}var On=de[Oe+(ze?-1:0)],Sn=ze==(On.level==1),br=Sn?On.from:On.to,Rr=Sn?"after":"before";return ne.ch==br&&ne.sticky==Rr?z:new Ua(new gt(ne.line,br,Rr),te)}function Pc(x,z,ne,te){var ie,de;if(z.touches)ie=z.touches[0].clientX,de=z.touches[0].clientY;else try{ie=z.clientX,de=z.clientY}catch(On){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Vn(z);var ye=x.display,Be=ye.lineDiv.getBoundingClientRect();if(de>Be.bottom||!hn(x,ne))return ur(z);de-=Be.top-ye.viewOffset;for(var Oe=0;Oe=ie){var Ot=Ar(x.doc,de),Gt=x.display.gutterSpecs[Oe];return et(x,ne,x,Ot,Gt.className,z),ur(z)}}}function ts(x,z){return Pc(x,z,"gutterClick",!0)}function vl(x,z){Ti(x.display,z)||hf(x,z)||It(x,z,"contextmenu")||Se||x.display.input.onContextMenu(z)}function hf(x,z){return hn(x,"gutterContextMenu")?Pc(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-"),Bi(x)}var yl={toString:function(){return"CodeMirror.Init"}},pf={},Su={};function oh(x){var z=x.optionHandlers;function ne(te,ie,de,ye){x.defaults[te]=ie,de&&(z[te]=ye?function(Be,Oe,ze){ze!=yl&&de(Be,Oe,ze)}:de)}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){Nl(te),Bi(te),Vi(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var de=[],ye=te.doc.first;te.doc.iter(function(Oe){for(var ze=0;;){var Ot=Oe.text.indexOf(ie,ze);if(Ot==-1)break;ze=Ot+ie.length,de.push(gt(ye,Ot))}ye++});for(var Be=de.length-1;Be>=0;Be--)ec(te.doc,ie,de[Be],gt(de[Be].line,de[Be].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,de){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),de!=yl&&te.refresh()}),ne("specialCharPlaceholder",Fe,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",rt?"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",!Yt),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){fd(te),$l(te)},!0),ne("keyMap","default",function(te,ie,de){var ye=ss(ie),Be=de!=yl&&ss(de);Be&&Be.detach&&Be.detach(te,ye),ye.attach&&ye.attach(te,Be||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),$l(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Po(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),$l(te)},!0),ne("firstLineNumber",1,$l,!0),ne("lineNumberFormatter",function(te){return te},$l,!0),ne("showCursorWhenSelecting",!1,$o,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(_o(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,$o,!0),ne("singleCursorHeightPerLine",!0,$o,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Nl,!0),ne("addModeClass",!1,Nl,!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,Nl,!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,de=z?Xt:Nn;de(x.display.scroller,"dragstart",ie.start),de(x.display.scroller,"dragenter",ie.enter),de(x.display.scroller,"dragover",ie.over),de(x.display.scroller,"dragleave",ie.leave),de(x.display.scroller,"drop",ie.drop)}}function mf(x){x.options.lineWrapping?(yn(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(je(x.display.wrapper,"CodeMirror-wrap"),$n(x)),lo(x),Vi(x),Bi(x),setTimeout(function(){return xs(x)},100)}function aa(x,z){var ne=this;if(!(this instanceof aa))return new aa(x,z);this.options=z=z?tr(z):{},tr(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 aa.inputStyles[z.inputStyle](this),de=this.display=new Yd(x,te,ie,z);de.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 we,keySeq:null,specialChars:null},z.autofocus&&!rt&&de.input.focus(),ve&&ke<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),ad(),Ks(this),this.curOp.forceUpdate=!0,wc(this,te),z.autofocus&&!rt||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Ga(ne)},20):_o(this);for(var ye in Su)Su.hasOwnProperty(ye)&&Su[ye](this,z[ye],yl);bc(this),z.finishInit&&z.finishInit(this);for(var Be=0;Be20*20}Xt(z.scroller,"touchstart",function(Oe){if(!It(x,Oe)&&!de(Oe)&&!ts(x,Oe)){z.input.ensurePolled(),clearTimeout(ne);var ze=+new Date;z.activeTouch={start:ze,moved:!1,prev:ze-te.end<=300?te:null},Oe.touches.length==1&&(z.activeTouch.left=Oe.touches[0].pageX,z.activeTouch.top=Oe.touches[0].pageY)}}),Xt(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),Xt(z.scroller,"touchend",function(Oe){var ze=z.activeTouch;if(ze&&!Ti(z,Oe)&&ze.left!=null&&!ze.moved&&new Date-ze.start<300){var Ot=x.coordsChar(z.activeTouch,"page"),Gt;!ze.prev||ye(ze,ze.prev)?Gt=new Ua(Ot,Ot):!ze.prev.prev||ye(ze,ze.prev.prev)?Gt=x.findWordAt(Ot):Gt=new Ua(gt(Ot.line,0),Un(x.doc,gt(Ot.line+1,0))),x.setSelection(Gt.anchor,Gt.head),x.focus(),Vn(Oe)}ie()}),Xt(z.scroller,"touchcancel",ie),Xt(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Pa(x,z.scroller.scrollTop),go(x,z.scroller.scrollLeft,!0),et(x,"scroll",x))}),Xt(z.scroller,"mousewheel",function(Oe){return Xu(x,Oe)}),Xt(z.scroller,"DOMMouseScroll",function(Oe){return Xu(x,Oe)}),Xt(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(Oe){It(x,Oe)||dr(Oe)},over:function(Oe){It(x,Oe)||(id(x,Oe),dr(Oe))},start:function(Oe){return th(x,Oe)},drop:Ha(x,eh),leave:function(Oe){It(x,Oe)||rc(x)}};var Be=z.input.getField();Xt(Be,"keyup",function(Oe){return cf.call(x,Oe)}),Xt(Be,"keydown",Ha(x,Tc)),Xt(Be,"keypress",Ha(x,uf)),Xt(Be,"focus",function(Oe){return Ga(x,Oe)}),Xt(Be,"blur",function(Oe){return _o(x,Oe)})}var hd=[];aa.defineInitHook=function(x){return hd.push(x)};function Ns(x,z,ne,te){var ie=x.doc,de;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?de=Ci(x,z).state:ne="prev");var ye=x.options.tabSize,Be=on(ie,z),Oe=Qe(Be.text,null,ye);Be.stateAfter&&(Be.stateAfter=null);var ze=Be.text.match(/^\s*/)[0],Ot;if(!te&&!/\S/.test(Be.text))Ot=0,ne="not";else if(ne=="smart"&&(Ot=ie.mode.indent(de,Be.text.slice(ze.length),Be.text),Ot==_t||Ot>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?Ot=Qe(on(ie,z-1).text,null,ye):Ot=0:ne=="add"?Ot=Oe+x.options.indentUnit:ne=="subtract"?Ot=Oe-x.options.indentUnit:typeof ne=="number"&&(Ot=Oe+ne),Ot=Math.max(0,Ot);var Gt="",On=0;if(x.options.indentWithTabs)for(var Sn=Math.floor(Ot/ye);Sn;--Sn)On+=ye,Gt+=" ";if(Onye,Oe=Ct(z),ze=null;if(Be&&te.ranges.length>1)if(Rs&&Rs.text.join(` `)==z){if(te.ranges.length%Rs.text.length==0){ze=[];for(var Ot=0;Ot=0;On--){var Sn=te.ranges[On],br=Sn.from(),Rr=Sn.to();Sn.empty()&&(ne&&ne>0?br=gt(br.line,br.ch-ne):x.state.overwrite&&!Be?Rr=gt(Rr.line,Math.min(on(de,Rr.line).text.length,Rr.ch+nn(Oe).length)):Be&&Rs&&Rs.lineWise&&Rs.text.join(` `)==Oe.join(` `)&&(br=Rr=gt(br.line,0)));var Xr={from:br,to:Rr,text:ze?ze[On%ze.length]:Oe,origin:ie||(Be?"paste":x.state.cutIncoming>ye?"cut":"+input")};dl(x.doc,Xr),mn(x,"inputRead",x,Xr)}z&&!Be&&gd(x,z),Ho(x),x.curOp.updateInput<2&&(x.curOp.updateInput=Gt),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 de=x.getModeAt(ie.head),ye=!1;if(de.electricChars){for(var Be=0;Be-1){ye=Ns(x,ie.head.line,"smart");break}}else de.electricInput&&de.electricInput.test(on(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(ye=Ns(x,ie.head.line,"smart"));ye&&mn(x,"electricInput",x,ie.head.line)}}}function lc(x){for(var z=[],ne=[],te=0;tede&&(Ns(this,Be.head.line,te,!0),de=Be.head.line,ye==this.doc.sel.primIndex&&Ho(this));else{var Oe=Be.from(),ze=Be.to(),Ot=Math.max(de,Oe.line);de=Math.min(this.lastLine(),ze.line-(ze.ch?0:1))+1;for(var Gt=Ot;Gt0&&ws(this.doc,ye,new Ua(Oe,On[ye].to()),$e)}}}),getTokenAt:function(te,ie){return $i(this,te,ie)},getLineTokens:function(te,ie){return $i(this,gt(te),ie,!0)},getTokenTypeAt:function(te){te=Un(this.doc,te);var ie=Ni(this,on(this.doc,te.line)),de=0,ye=(ie.length-1)/2,Be=te.ch,Oe;if(Be==0)Oe=ie[2];else for(;;){var ze=de+ye>>1;if((ze?ie[ze*2-1]:0)>=Be)ye=ze;else if(ie[ze*2+1]Oe&&(te=Oe,ye=!0),Be=on(this.doc,te)}else Be=te;return Sa(this,Be,{top:0,left:0},ie||"page",de||ye).top+(ye?this.doc.height-Wn(Be):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,de,ye,Be){var Oe=this.display;te=ha(this,Un(this.doc,te));var ze=te.bottom,Ot=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),Oe.sizer.appendChild(ie),ye=="over")ze=te.top;else if(ye=="above"||ye=="near"){var Gt=Math.max(Oe.wrapper.clientHeight,this.doc.height),On=Math.max(Oe.sizer.clientWidth,Oe.lineSpace.clientWidth);(ye=="above"||te.bottom+ie.offsetHeight>Gt)&&te.top>ie.offsetHeight?ze=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=Gt&&(ze=te.bottom),Ot+ie.offsetWidth>On&&(Ot=On-ie.offsetWidth)}ie.style.top=ze+"px",ie.style.left=ie.style.right="",Be=="right"?(Ot=Oe.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(Be=="left"?Ot=0:Be=="middle"&&(Ot=(Oe.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=Ot+"px"),de&&ul(this,{left:Ot,top:ze,right:Ot+ie.offsetWidth,bottom:ze+ie.offsetHeight})},triggerOnKeyDown:Fa(Tc),triggerOnKeyPress:Fa(uf),triggerOnKeyUp:cf,triggerOnMouseDown:Fa(Go),execCommand:function(te){if(ac.hasOwnProperty(te))return ac[te].call(null,this)},triggerElectric:Fa(function(te){gd(this,te)}),findPosH:function(te,ie,de,ye){var Be=1;ie<0&&(Be=-1,ie=-ie);for(var Oe=Un(this.doc,te),ze=0;ze0&&Ot(de.charAt(ye-1));)--ye;for(;Be.5||this.options.lineWrapping)&&lo(this),et(this,"refresh",this)}),swapDoc:Fa(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),wc(this,te),Bi(this),this.display.input.reset(),Ds(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,mn(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}},An(x),x.registerHelper=function(te,ie,de){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=de},x.registerGlobalHelper=function(te,ie,de,ye){x.registerHelper(te,ie,ye),ne[te]._global.push({pred:de,val:ye})}}function Cu(x,z,ne,te,ie){var de=z,ye=ne,Be=on(x,z.line),Oe=ie&&x.direction=="rtl"?-ne:ne;function ze(){var mi=z.line+Oe;return mi=x.first+x.size?!1:(z=new gt(mi,z.ch,z.sticky),Be=on(x,mi))}function Ot(mi){var ni;if(te=="codepoint"){var gi=Be.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(gi)?ni=null:ni=new gt(z.line,Math.max(0,Math.min(Be.text.length,z.ch+ne*(gi>=55296&&gi<56320?2:1))),-ne)}else ie?ni=Zs(x.cm,Be,z,ne):ni=js(Be,z,ne);if(ni==null)if(!mi&&ze())z=Kl(ie,x.cm,Be,z.line,Oe);else return!1;else z=ni;return!0}if(te=="char"||te=="codepoint")Ot();else if(te=="column")Ot(!0);else if(te=="word"||te=="group")for(var Gt=null,On=te=="group",Sn=x.cm&&x.cm.getHelper(z,"wordChars"),br=!0;!(ne<0&&!Ot(!br));br=!1){var Rr=Be.text.charAt(z.ch)||` `,Xr=fe(Rr,Sn)?"w":On&&Rr==` `?"n":!On||/\s/.test(Rr)?null:"p";if(On&&!br&&!Xr&&(Xr="s"),Gt&&Gt!=Xr){ne<0&&(ne=1,Ot(),z.sticky="after");break}if(Xr&&(Gt=Xr),ne>0&&!Ot(!br))break}var li=hu(x,z,de,ye,!0);return En(de,li)&&(li.hitSide=!0),li}function vf(x,z,ne,te){var ie=x.doc,de=z.left,ye;if(te=="page"){var Be=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Oe=Math.max(Be-.5*Ka(x.display),3);ye=(ne>0?z.bottom:z.top)+ne*Oe}else te=="line"&&(ye=ne>0?z.bottom+3:z.top-3);for(var ze;ze=Ya(x,de,ye),!!ze.outside;){if(ne<0?ye<=0:ye>=ie.height){ze.hitSide=!0;break}ye+=ne*5}return ze}var Qa=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new we,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Qa.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 de(Be){for(var Oe=Be.target;Oe;Oe=Oe.parentNode){if(Oe==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Oe.className))break}return!1}Xt(ie,"paste",function(Be){!de(Be)||It(te,Be)||md(Be,te)||ke<=11&&setTimeout(Ha(te,function(){return z.updateFromDOM()}),20)}),Xt(ie,"compositionstart",function(Be){z.composing={data:Be.data,done:!1}}),Xt(ie,"compositionupdate",function(Be){z.composing||(z.composing={data:Be.data,done:!1})}),Xt(ie,"compositionend",function(Be){z.composing&&(Be.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),Xt(ie,"touchstart",function(){return ne.forceCompositionEnd()}),Xt(ie,"input",function(){z.composing||z.readFromDOMSoon()});function ye(Be){if(!(!de(Be)||It(te,Be))){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()}),Be.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var Oe=lc(te);bl({lineWise:!0,text:Oe.text}),Be.type=="cut"&&te.operation(function(){te.setSelections(Oe.ranges,0,$e),te.replaceSelection("",null,"cut")})}else return;if(Be.clipboardData){Be.clipboardData.clearData();var ze=Rs.text.join(` `);if(Be.clipboardData.setData("Text",ze),Be.clipboardData.getData("Text")==ze){Be.preventDefault();return}}var Ot=vd(),Gt=Ot.firstChild;te.display.lineSpace.insertBefore(Ot,te.display.lineSpace.firstChild),Gt.value=Rs.text.join(` `);var On=document.activeElement;Hn(Gt),setTimeout(function(){te.display.lineSpace.removeChild(Ot),On.focus(),On==ie&&ne.showPrimarySelection()},50)}}Xt(ie,"copy",ye),Xt(ie,"cut",ye)},Qa.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Qa.prototype.prepareSelection=function(){var x=ps(this.cm,!1);return x.focus=document.activeElement==this.div,x},Qa.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Qa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qa.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:Be[0].measure.map[2],offset:0},ze=ie.linex.firstLine()&&(te=gt(te.line-1,on(x.doc,te.line-1).length)),ie.ch==on(x.doc,ie.line).text.length&&ie.linez.viewTo-1)return!1;var de,ye,Be;te.line==z.viewFrom||(de=ia(x,te.line))==0?(ye=or(z.view[0].line),Be=z.view[0].node):(ye=or(z.view[de].line),Be=z.view[de-1].node.nextSibling);var Oe=ia(x,ie.line),ze,Ot;if(Oe==z.view.length-1?(ze=z.viewTo-1,Ot=z.lineDiv.lastChild):(ze=or(z.view[Oe+1].line)-1,Ot=z.view[Oe+1].node.previousSibling),!Be)return!1;for(var Gt=x.doc.splitLines(uh(x,Be,Ot,ye,ze)),On=Kn(x.doc,gt(ye,0),gt(ze,on(x.doc,ze).text.length));Gt.length>1&&On.length>1;)if(nn(Gt)==nn(On))Gt.pop(),On.pop(),ze--;else if(Gt[0]==On[0])Gt.shift(),On.shift(),ye++;else break;for(var Sn=0,br=0,Rr=Gt[0],Xr=On[0],li=Math.min(Rr.length,Xr.length);Snte.ch&&mi.charCodeAt(mi.length-br-1)==ni.charCodeAt(ni.length-br-1);)Sn--,br++;Gt[Gt.length-1]=mi.slice(0,mi.length-br).replace(/^\u200b+/,""),Gt[0]=Gt[0].slice(Sn).replace(/\u200b+$/,"");var Gi=gt(ye,Sn),qi=gt(ze,On.length?nn(On).length-br:0);if(Gt.length>1||Gt[0]||Dt(Gi,qi))return ec(x.doc,Gt,Gi,qi,"+input"),!0},Qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qa.prototype.reset=function(){this.forceCompositionEnd()},Qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qa.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))},Qa.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&ga(this.cm,function(){return Vi(x.cm)})},Qa.prototype.setUneditable=function(x){x.contentEditable="false"},Qa.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||Ha(this.cm,pd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Qa.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Qa.prototype.onContextMenu=function(){},Qa.prototype.resetPosition=function(){},Qa.prototype.needsContentAttribute=!0;function yf(x,z){var ne=ra(x,z.line);if(!ne||ne.hidden)return null;var te=on(x.doc,z.line),ie=Ea(ne,te,z.line),de=Et(te,x.doc.direction),ye="left";if(de){var Be=$t(de,z.ch);ye=Be%2?"right":"left"}var Oe=Ri(ie.map,z.ch,ye);return Oe.offset=Oe.collapse=="right"?Oe.end:Oe.start,Oe}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 de="",ye=!1,Be=x.doc.lineSeparator(),Oe=!1;function ze(Sn){return function(br){return br.id==Sn}}function Ot(){ye&&(de+=Be,Oe&&(de+=Be),ye=Oe=!1)}function Gt(Sn){Sn&&(Ot(),de+=Sn)}function On(Sn){if(Sn.nodeType==1){var br=Sn.getAttribute("cm-text");if(br){Gt(br);return}var Rr=Sn.getAttribute("cm-marker"),Xr;if(Rr){var li=x.findMarks(gt(te,0),gt(ie+1,0),ze(+Rr));li.length&&(Xr=li[0].find(0))&&Gt(Kn(x.doc,Xr.from,Xr.to).join(Be));return}if(Sn.getAttribute("contenteditable")=="false")return;var mi=/^(pre|div|p|li|table|br)$/i.test(Sn.nodeName);if(!/^br$/i.test(Sn.nodeName)&&Sn.textContent.length==0)return;mi&&Ot();for(var ni=0;ni=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),Xt(ie,"paste",function(ye){It(te,ye)||md(ye,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function de(ye){if(!It(te,ye)){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Be=lc(te);bl({lineWise:!0,text:Be.text}),ye.type=="cut"?te.setSelections(Be.ranges,null,$e):(ne.prevInput="",ie.value=Be.text.join(` `),Hn(ie))}else return;ye.type=="cut"&&(te.state.cutIncoming=+new Date)}}Xt(ie,"cut",de),Xt(ie,"copy",de),Xt(x.scroller,"paste",function(ye){if(!(Ti(x,ye)||It(te,ye))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Be=new Event("paste");Be.clipboardData=ye.clipboardData,ie.dispatchEvent(Be)}}),Xt(x.lineSpace,"selectstart",function(ye){Ti(x,ye)||Vn(ye)}),Xt(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"})}}),Xt(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"),de=z.wrapper.getBoundingClientRect(),ye=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+ye.top-de.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+ye.left-de.left))}return te},eo.prototype.showSelection=function(x){var z=this.cm,ne=z.display;Mt(ne.cursorDiv,x.cursors),Mt(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&&Hn(this.textarea),ve&&ke>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",ve&&ke>=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"&&(!rt||Rt()!=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||wn(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&&ke>=9&&this.hasSelection===ie||Ee&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var de=ie.charCodeAt(0);if(de==8203&&!te&&(te="\u200B"),de==8666)return this.reset(),this.cm.execCommand("undo")}for(var ye=0,Be=Math.min(te.length,ie.length);ye1e3||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&&ke>=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 de=Bo(ne,x),ye=te.scroller.scrollTop;if(!de||Ie)return;var Be=ne.options.resetSelectionOnContextMenu;Be&&ne.doc.sel.contains(de)==-1&&Ha(ne,Do)(ne.doc,Os(de),$e);var Oe=ie.style.cssText,ze=z.wrapper.style.cssText,Ot=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(x.clientY-Ot.top-5)+"px; left: "+(x.clientX-Ot.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 Gt;Le&&(Gt=window.scrollY),te.input.focus(),Le&&window.scrollTo(null,Gt),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=Sn,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function On(){if(ie.selectionStart!=null){var Rr=ne.somethingSelected(),Xr="\u200B"+(Rr?ie.value:"");ie.value="\u21DA",ie.value=Xr,z.prevInput=Rr?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=Xr.length,te.selForContextMenu=ne.doc.sel}}function Sn(){if(z.contextMenuPending==Sn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=ze,ie.style.cssText=Oe,ve&&ke<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=ye),ie.selectionStart!=null)){(!ve||ve&&ke<9)&&On();var Rr=0,Xr=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?Ha(ne,td)(ne):Rr++<10?te.detectingSelectAll=setTimeout(Xr,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(Xr,200)}}if(ve&&ke>=9&&On(),Se){dr(x);var br=function(){Nn(window,"mouseup",br),setTimeout(Sn,20)};Xt(window,"mouseup",br)}else setTimeout(Sn,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 Wl(x,z){if(z=z?tr(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=Rt();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Be.getValue()}var ie;if(x.form&&(Xt(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var de=x.form;ie=de.submit;try{var ye=de.submit=function(){te(),de.submit=ie,de.submit(),de.submit=ye}}catch(Oe){}}z.finishInit=function(Oe){Oe.save=te,Oe.getTextArea=function(){return x},Oe.toTextArea=function(){Oe.toTextArea=isNaN,te(),x.parentNode.removeChild(Oe.getWrapperElement()),x.style.display="",x.form&&(Nn(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var Be=aa(function(Oe){return x.parentNode.insertBefore(Oe,x.nextSibling)},z);return Be}function uc(x){x.off=Nn,x.on=Xt,x.wheelEventPixels=Yu,x.Doc=Mo,x.splitLines=Ct,x.countColumn=Qe,x.findColumn=Xn,x.isWordChar=he,x.Pass=_t,x.signal=et,x.Line=rr,x.changeEnd=qs,x.scrollbarModel=Ql,x.Pos=gt,x.cmpPos=Dt,x.modes=lr,x.mimeModes=Gn,x.resolveMode=mt,x.getMode=Bt,x.modeExtensions=rn,x.extendMode=Ze,x.copyState=St,x.startState=Nt,x.innerMode=Vt,x.commands=ac,x.keyMap=$a,x.keyName=Hl,x.isModifierKey=Ic,x.lookupKey=rl,x.normalizeKeyMap=od,x.StringStream=cn,x.SharedTextMarker=ba,x.TextMarker=hl,x.LineWidget=nc,x.e_preventDefault=Vn,x.e_stopPropagation=mr,x.e_stop=dr,x.addClass=yn,x.contains=Jt,x.rmClass=je,x.keyNames=Ps}oh(aa),yd(aa);var ol="iter insert remove copy getEditor constructor".split(" ");for(var ks in Mo.prototype)Mo.prototype.hasOwnProperty(ks)&&At(ol,ks)<0&&(aa.prototype[ks]=function(x){return function(){return x.apply(this.doc,arguments)}}(Mo.prototype[ks]));return An(Mo),aa.inputStyles={textarea:eo,contenteditable:Qa},aa.defineMode=function(x){!aa.defaults.mode&&x!="null"&&(aa.defaults.mode=x),jn.apply(this,arguments)},aa.defineMIME=nt,aa.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),aa.defineMIME("text/plain","null"),aa.defineExtension=function(x,z){aa.prototype[x]=z},aa.defineDocExtension=function(x,z){Mo.prototype[x]=z},aa.fromTextArea=Wl,uc(aa),aa.version="5.58.2",aa})},49047:function(dn,en,se){(function(ae){ae(se(4631),se(29589),se(52539))})(function(ae){"use strict";ae.defineMode("markdown",function(Pe,Re){var qe=ae.getMode(Pe,"text/html"),ve=qe.name=="null";function ke(Qe){if(ae.findModeByName){var we=ae.findModeByName(Qe);we&&(Qe=we.mime||we.mimes[0])}var At=ae.getMode(Pe,Qe);return At.name=="null"?null:At}Re.highlightFormatting===void 0&&(Re.highlightFormatting=!1),Re.maxBlockquoteDepth===void 0&&(Re.maxBlockquoteDepth=0),Re.taskLists===void 0&&(Re.taskLists=!1),Re.strikethrough===void 0&&(Re.strikethrough=!1),Re.emoji===void 0&&(Re.emoji=!1),Re.fencedCodeBlockHighlighting===void 0&&(Re.fencedCodeBlockHighlighting=!0),Re.fencedCodeBlockDefaultMode===void 0&&(Re.fencedCodeBlockDefaultMode="text/plain"),Re.xml===void 0&&(Re.xml=!0),Re.tokenTypeOverrides===void 0&&(Re.tokenTypeOverrides={});var Le={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 Le)Le.hasOwnProperty(xe)&&Re.tokenTypeOverrides[xe]&&(Le[xe]=Re.tokenTypeOverrides[xe]);var me=/^([*\-_])(?:\s*\1){2,}\s*$/,Ie=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,st=/^\[(x| )\](?=\s)/i,Ne=Re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,xt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,pt=/^[^#!\[\]*_\\<>` "'(~:]+/,ct=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,rt=/^\s*\[[^\]]+?\]:.*$/,Ee=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,at=" ";function Yt(Qe,we,At){return we.f=we.inline=At,At(Qe,we)}function Xe(Qe,we,At){return we.f=we.block=At,At(Qe,we)}function lt(Qe){return!Qe||!/\S/.test(Qe.string)}function Se(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==je){var we=ve;if(!we){var At=ae.innerMode(qe,Qe.htmlState);we=At.mode.name=="xml"&&At.state.tagStart===null&&!At.state.context&&At.state.tokenize.isInText}we&&(Qe.f=Ft,Qe.block=Ce,Qe.htmlState=null)}return Qe.trailingSpace=0,Qe.trailingSpaceNewLine=!1,Qe.prevLine=Qe.thisLine,Qe.thisLine={stream:null},null}function Ce(Qe,we){var At=Qe.column()===we.indentation,Mn=lt(we.prevLine.stream),_t=we.indentedCode,$e=we.prevLine.hr,dt=we.list!==!1,qt=(we.listStack[we.listStack.length-1]||0)+3;we.indentedCode=!1;var Xn=we.indentation;if(we.indentationDiff===null&&(we.indentationDiff=we.indentation,dt)){for(we.list=null;Xn=4&&(_t||we.prevLine.fencedCodeEnd||we.prevLine.header||Mn))return Qe.skipToEnd(),we.indentedCode=!0,Le.code;if(Qe.eatSpace())return null;if(At&&we.indentation<=qt&&(nn=Qe.match(Ne))&&nn[1].length<=6)return we.quote=0,we.header=nn[1].length,we.thisLine.header=!0,Re.highlightFormatting&&(we.formatting="header"),we.f=we.inline,Mt(we);if(we.indentation<=qt&&Qe.eat(">"))return we.quote=At?1:we.quote+1,Re.highlightFormatting&&(we.formatting="quote"),Qe.eatSpace(),Mt(we);if(!un&&!we.setext&&At&&we.indentation<=qt&&(nn=Qe.match(Ie))){var xn=nn[1]?"ol":"ul";return we.indentation=Xn+Qe.current().length,we.list=!0,we.quote=0,we.listStack.push(we.indentation),we.em=!1,we.strong=!1,we.code=!1,we.strikethrough=!1,Re.taskLists&&Qe.match(st,!1)&&(we.taskList=!0),we.f=we.inline,Re.highlightFormatting&&(we.formatting=["list","list-"+xn]),Mt(we)}else{if(At&&we.indentation<=qt&&(nn=Qe.match(ct,!0)))return we.quote=0,we.fencedEndRE=new RegExp(nn[1]+"+ *$"),we.localMode=Re.fencedCodeBlockHighlighting&&ke(nn[2]||Re.fencedCodeBlockDefaultMode),we.localMode&&(we.localState=ae.startState(we.localMode)),we.f=we.block=Ue,Re.highlightFormatting&&(we.formatting="code-block"),we.code=-1,Mt(we);if(we.setext||(!bn||!dt)&&!we.quote&&we.list===!1&&!we.code&&!un&&!rt.test(Qe.string)&&(nn=Qe.lookAhead(1))&&(nn=nn.match(xt)))return we.setext?(we.header=we.setext,we.setext=0,Qe.skipToEnd(),Re.highlightFormatting&&(we.formatting="header")):(we.header=nn[0].charAt(0)=="="?1:2,we.setext=we.header),we.thisLine.header=!0,we.f=we.inline,Mt(we);if(un)return Qe.skipToEnd(),we.hr=!0,we.thisLine.hr=!0,Le.hr;if(Qe.peek()==="[")return Yt(Qe,we,tn)}return Yt(Qe,we,we.inline)}function je(Qe,we){var At=qe.token(Qe,we.htmlState);if(!ve){var Mn=ae.innerMode(qe,we.htmlState);(Mn.mode.name=="xml"&&Mn.state.tagStart===null&&!Mn.state.context&&Mn.state.tokenize.isInText||we.md_inside&&Qe.current().indexOf(">")>-1)&&(we.f=Ft,we.block=Ce,we.htmlState=null)}return At}function Ue(Qe,we){var At=we.listStack[we.listStack.length-1]||0,Mn=we.indentation=Qe.quote?we.push(Le.formatting+"-"+Qe.formatting[At]+"-"+Qe.quote):we.push("error"))}if(Qe.taskOpen)return we.push("meta"),we.length?we.join(" "):null;if(Qe.taskClosed)return we.push("property"),we.length?we.join(" "):null;if(Qe.linkHref?we.push(Le.linkHref,"url"):(Qe.strong&&we.push(Le.strong),Qe.em&&we.push(Le.em),Qe.strikethrough&&we.push(Le.strikethrough),Qe.emoji&&we.push(Le.emoji),Qe.linkText&&we.push(Le.linkText),Qe.code&&we.push(Le.code),Qe.image&&we.push(Le.image),Qe.imageAltText&&we.push(Le.imageAltText,"link"),Qe.imageMarker&&we.push(Le.imageMarker)),Qe.header&&we.push(Le.header,Le.header+"-"+Qe.header),Qe.quote&&(we.push(Le.quote),!Re.maxBlockquoteDepth||Re.maxBlockquoteDepth>=Qe.quote?we.push(Le.quote+"-"+Qe.quote):we.push(Le.quote+"-"+Re.maxBlockquoteDepth)),Qe.list!==!1){var Mn=(Qe.listStack.length-1)%3;Mn?Mn===1?we.push(Le.list2):we.push(Le.list3):we.push(Le.list1)}return Qe.trailingSpaceNewLine?we.push("trailing-space-new-line"):Qe.trailingSpace&&we.push("trailing-space-"+(Qe.trailingSpace%2?"a":"b")),we.length?we.join(" "):null}function ht(Qe,we){if(Qe.match(pt,!0))return Mt(we)}function Ft(Qe,we){var At=we.text(Qe,we);if(typeof At!="undefined")return At;if(we.list)return we.list=null,Mt(we);if(we.taskList){var Mn=Qe.match(st,!0)[1]===" ";return Mn?we.taskOpen=!0:we.taskClosed=!0,Re.highlightFormatting&&(we.formatting="task"),we.taskList=!1,Mt(we)}if(we.taskOpen=!1,we.taskClosed=!1,we.header&&Qe.match(/^#+$/,!0))return Re.highlightFormatting&&(we.formatting="header"),Mt(we);var _t=Qe.next();if(we.linkTitle){we.linkTitle=!1;var $e=_t;_t==="("&&($e=")"),$e=($e+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var dt="^\\s*(?:[^"+$e+"\\\\]+|\\\\\\\\|\\\\.)"+$e;if(Qe.match(new RegExp(dt),!0))return Le.linkHref}if(_t==="`"){var qt=we.formatting;Re.highlightFormatting&&(we.formatting="code"),Qe.eatWhile("`");var Xn=Qe.current().length;if(we.code==0&&(!we.quote||Xn==1))return we.code=Xn,Mt(we);if(Xn==we.code){var bn=Mt(we);return we.code=0,bn}else return we.formatting=qt,Mt(we)}else if(we.code)return Mt(we);if(_t==="\\"&&(Qe.next(),Re.highlightFormatting)){var un=Mt(we),nn=Le.formatting+"-escape";return un?un+" "+nn:nn}if(_t==="!"&&Qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return we.imageMarker=!0,we.image=!0,Re.highlightFormatting&&(we.formatting="image"),Mt(we);if(_t==="["&&we.imageMarker&&Qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return we.imageMarker=!1,we.imageAltText=!0,Re.highlightFormatting&&(we.formatting="image"),Mt(we);if(_t==="]"&&we.imageAltText){Re.highlightFormatting&&(we.formatting="image");var un=Mt(we);return we.imageAltText=!1,we.image=!1,we.inline=we.f=Jt,un}if(_t==="["&&!we.image)return we.linkText&&Qe.match(/^.*?\]/)||(we.linkText=!0,Re.highlightFormatting&&(we.formatting="link")),Mt(we);if(_t==="]"&&we.linkText){Re.highlightFormatting&&(we.formatting="link");var un=Mt(we);return we.linkText=!1,we.inline=we.f=Qe.match(/\(.*?\)| ?\[.*?\]/,!1)?Jt:Ft,un}if(_t==="<"&&Qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){we.f=we.inline=tt,Re.highlightFormatting&&(we.formatting="link");var un=Mt(we);return un?un+=" ":un="",un+Le.linkInline}if(_t==="<"&&Qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){we.f=we.inline=tt,Re.highlightFormatting&&(we.formatting="link");var un=Mt(we);return un?un+=" ":un="",un+Le.linkEmail}if(Re.xml&&_t==="<"&&Qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var xn=Qe.string.indexOf(">",Qe.pos);if(xn!=-1){var Pn=Qe.string.substring(Qe.start,xn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Pn)&&(we.md_inside=!0)}return Qe.backUp(1),we.htmlState=ae.startState(qe),Xe(Qe,we,je)}if(Re.xml&&_t==="<"&&Qe.match(/^\/\w*?>/))return we.md_inside=!1,"tag";if(_t==="*"||_t==="_"){for(var De=1,ue=Qe.pos==1?" ":Qe.string.charAt(Qe.pos-2);De<3&&Qe.eat(_t);)De++;var ce=Qe.peek()||" ",he=!/\s/.test(ce)&&(!Ee.test(ce)||/\s/.test(ue)||Ee.test(ue)),fe=!/\s/.test(ue)&&(!Ee.test(ue)||/\s/.test(ce)||Ee.test(ce)),le=null,Me=null;if(De%2&&(!we.em&&he&&(_t==="*"||!fe||Ee.test(ue))?le=!0:we.em==_t&&fe&&(_t==="*"||!he||Ee.test(ce))&&(le=!1)),De>1&&(!we.strong&&he&&(_t==="*"||!fe||Ee.test(ue))?Me=!0:we.strong==_t&&fe&&(_t==="*"||!he||Ee.test(ce))&&(Me=!1)),Me!=null||le!=null){Re.highlightFormatting&&(we.formatting=le==null?"strong":Me==null?"em":"strong em"),le===!0&&(we.em=_t),Me===!0&&(we.strong=_t);var bn=Mt(we);return le===!1&&(we.em=!1),Me===!1&&(we.strong=!1),bn}}else if(_t===" "&&(Qe.eat("*")||Qe.eat("_"))){if(Qe.peek()===" ")return Mt(we);Qe.backUp(1)}if(Re.strikethrough){if(_t==="~"&&Qe.eatWhile(_t)){if(we.strikethrough){Re.highlightFormatting&&(we.formatting="strikethrough");var bn=Mt(we);return we.strikethrough=!1,bn}else if(Qe.match(/^[^\s]/,!1))return we.strikethrough=!0,Re.highlightFormatting&&(we.formatting="strikethrough"),Mt(we)}else if(_t===" "&&Qe.match(/^~~/,!0)){if(Qe.peek()===" ")return Mt(we);Qe.backUp(2)}}if(Re.emoji&&_t===":"&&Qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){we.emoji=!0,Re.highlightFormatting&&(we.formatting="emoji");var Ve=Mt(we);return we.emoji=!1,Ve}return _t===" "&&(Qe.match(/^ +$/,!1)?we.trailingSpace++:we.trailingSpace&&(we.trailingSpaceNewLine=!0)),Mt(we)}function tt(Qe,we){var At=Qe.next();if(At===">"){we.f=we.inline=Ft,Re.highlightFormatting&&(we.formatting="link");var Mn=Mt(we);return Mn?Mn+=" ":Mn="",Mn+Le.linkInline}return Qe.match(/^[^>]+/,!0),Le.linkInline}function Jt(Qe,we){if(Qe.eatSpace())return null;var At=Qe.next();return At==="("||At==="["?(we.f=we.inline=yn(At==="("?")":"]"),Re.highlightFormatting&&(we.formatting="link-string"),we.linkHref=!0,Mt(we)):"error"}var Rt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function yn(Qe){return function(we,At){var Mn=we.next();if(Mn===Qe){At.f=At.inline=Ft,Re.highlightFormatting&&(At.formatting="link-string");var _t=Mt(At);return At.linkHref=!1,_t}return we.match(Rt[Qe]),At.linkHref=!0,Mt(At)}}function tn(Qe,we){return Qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(we.f=Hn,Qe.next(),Re.highlightFormatting&&(we.formatting="link"),we.linkText=!0,Mt(we)):Yt(Qe,we,Ft)}function Hn(Qe,we){if(Qe.match(/^\]:/,!0)){we.f=we.inline=Yn,Re.highlightFormatting&&(we.formatting="link");var At=Mt(we);return we.linkText=!1,At}return Qe.match(/^([^\]\\]|\\.)+/,!0),Le.linkText}function Yn(Qe,we){return Qe.eatSpace()?null:(Qe.match(/^[^\s]+/,!0),Qe.peek()===void 0?we.linkTitle=!0:Qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),we.f=we.inline=Ft,Le.linkHref+" url")}var tr={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:Ft,text:ht,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&&ae.copyState(qe,Qe.htmlState),indentation:Qe.indentation,localMode:Qe.localMode,localState:Qe.localMode?ae.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,we){if(we.formatting=!1,Qe!=we.thisLine.stream){if(we.header=0,we.hr=!1,Qe.match(/^\s*$/,!0))return Se(we),null;if(we.prevLine=we.thisLine,we.thisLine={stream:Qe},we.taskList=!1,we.trailingSpace=0,we.trailingSpaceNewLine=!1,!we.localState&&(we.f=we.block,we.f!=je)){var At=Qe.match(/^\s*/,!0)[0].replace(/\t/g,at).length;if(we.indentation=At,we.indentationDiff=null,At>0)return null}}return we.f(Qe,we)},innerMode:function(Qe){return Qe.block==je?{state:Qe.htmlState,mode:qe}:Qe.localState?{state:Qe.localState,mode:Qe.localMode}:{state:Qe,mode:tr}},indent:function(Qe,we,At){return Qe.block==je&&qe.indent?qe.indent(Qe.htmlState,we,At):Qe.localState&&Qe.localMode.indent?Qe.localMode.indent(Qe.localState,we,At):ae.Pass},blankLine:Se,getType:Mt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return tr},"xml"),ae.defineMIME("text/markdown","markdown"),ae.defineMIME("text/x-markdown","markdown")})},52539:function(dn,en,se){(function(ae){ae(se(4631))})(function(ae){"use strict";ae.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 Pe=0;Pe-1&&qe.substring(Le+1,qe.length);if(xe)return ae.findModeByExtension(xe)},ae.findModeByName=function(qe){qe=qe.toLowerCase();for(var ve=0;ve0?pt.cmdState[pt.cmdState.length-1]:null}function ke(pt){var ct=pt.cmdState.pop();ct&&ct.closeBracket()}function Le(pt){for(var ct=pt.cmdState,rt=ct.length-1;rt>=0;rt--){var Ee=ct[rt];if(Ee.name!="DEFAULT")return Ee}return{styleIdentifier:function(){return null}}}function xe(pt,ct,rt){return function(){this.name=pt,this.bracketNo=0,this.style=ct,this.styles=rt,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(pt,ct){pt.f=ct}function st(pt,ct){var rt;if(pt.match(/^\\[a-zA-Z@]+/)){var Ee=pt.current().slice(1);return rt=me.hasOwnProperty(Ee)?me[Ee]:me.DEFAULT,rt=new rt,qe(ct,rt),Ie(ct,xt),rt.style}if(pt.match(/^\\[$&%#{}_]/)||pt.match(/^\\[,;!\/\\]/))return"tag";if(pt.match("\\["))return Ie(ct,function(Yt,Xe){return Ne(Yt,Xe,"\\]")}),"keyword";if(pt.match("\\("))return Ie(ct,function(Yt,Xe){return Ne(Yt,Xe,"\\)")}),"keyword";if(pt.match("$$"))return Ie(ct,function(Yt,Xe){return Ne(Yt,Xe,"$$")}),"keyword";if(pt.match("$"))return Ie(ct,function(Yt,Xe){return Ne(Yt,Xe,"$")}),"keyword";var at=pt.next();if(at=="%")return pt.skipToEnd(),"comment";if(at=="}"||at=="]"){if(rt=ve(ct),rt)rt.closeBracket(at),Ie(ct,xt);else return"error";return"bracket"}else return at=="{"||at=="["?(rt=me.DEFAULT,rt=new rt,qe(ct,rt),"bracket"):/\d/.test(at)?(pt.eatWhile(/[\w.%]/),"atom"):(pt.eatWhile(/[\w\-_]/),rt=Le(ct),rt.name=="begin"&&(rt.argument=pt.current()),rt.styleIdentifier())}function Ne(pt,ct,rt){if(pt.eatSpace())return null;if(rt&&pt.match(rt))return Ie(ct,st),"keyword";if(pt.match(/^\\[a-zA-Z@]+/))return"tag";if(pt.match(/^[a-zA-Z]+/))return"variable-2";if(pt.match(/^\\[$&%#{}_]/)||pt.match(/^\\[,;!\/]/)||pt.match(/^[\^_&]/))return"tag";if(pt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(pt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ee=pt.next();return Ee=="{"||Ee=="}"||Ee=="["||Ee=="]"||Ee=="("||Ee==")"?"bracket":Ee=="%"?(pt.skipToEnd(),"comment"):"error"}function xt(pt,ct){var rt=pt.peek(),Ee;return rt=="{"||rt=="["?(Ee=ve(ct),Ee.openBracket(rt),pt.eat(rt),Ie(ct,st),"bracket"):/[ \t\r]/.test(rt)?(pt.eat(rt),null):(Ie(ct,st),ke(ct),st(pt,ct))}return{startState:function(){var pt=Re.inMathMode?function(ct,rt){return Ne(ct,rt)}:st;return{cmdState:[],f:pt}},copyState:function(pt){return{cmdState:pt.cmdState.slice(),f:pt.f}},token:function(pt,ct){return ct.f(pt,ct)},blankLine:function(pt){pt.f=st,pt.cmdState.length=0},lineComment:"%"}}),ae.defineMIME("text/x-stex","stex"),ae.defineMIME("text/x-latex","stex")})},29589:function(dn,en,se){(function(ae){ae(se(4631))})(function(ae){"use strict";var Pe={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},Re={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ae.defineMode("xml",function(qe,ve){var ke=qe.indentUnit,Le={},xe=ve.htmlMode?Pe:Re;for(var me in xe)Le[me]=xe[me];for(var me in ve)Le[me]=ve[me];var Ie,st;function Ne(tt,Jt){function Rt(Hn){return Jt.tokenize=Hn,Hn(tt,Jt)}var yn=tt.next();if(yn=="<")return tt.eat("!")?tt.eat("[")?tt.match("CDATA[")?Rt(ct("atom","]]>")):null:tt.match("--")?Rt(ct("comment","-->")):tt.match("DOCTYPE",!0,!0)?(tt.eatWhile(/[\w\._\-]/),Rt(rt(1))):null:tt.eat("?")?(tt.eatWhile(/[\w\._\-]/),Jt.tokenize=ct("meta","?>"),"meta"):(Ie=tt.eat("/")?"closeTag":"openTag",Jt.tokenize=xt,"tag bracket");if(yn=="&"){var tn;return tt.eat("#")?tt.eat("x")?tn=tt.eatWhile(/[a-fA-F\d]/)&&tt.eat(";"):tn=tt.eatWhile(/[\d]/)&&tt.eat(";"):tn=tt.eatWhile(/[\w\.\-:]/)&&tt.eat(";"),tn?"atom":"error"}else return tt.eatWhile(/[^&<]/),null}Ne.isInText=!0;function xt(tt,Jt){var Rt=tt.next();if(Rt==">"||Rt=="/"&&tt.eat(">"))return Jt.tokenize=Ne,Ie=Rt==">"?"endTag":"selfcloseTag","tag bracket";if(Rt=="=")return Ie="equals",null;if(Rt=="<"){Jt.tokenize=Ne,Jt.state=Xe,Jt.tagName=Jt.tagStart=null;var yn=Jt.tokenize(tt,Jt);return yn?yn+" tag error":"tag error"}else return/[\'\"]/.test(Rt)?(Jt.tokenize=pt(Rt),Jt.stringStartCol=tt.column(),Jt.tokenize(tt,Jt)):(tt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function pt(tt){var Jt=function(Rt,yn){for(;!Rt.eol();)if(Rt.next()==tt){yn.tokenize=xt;break}return"string"};return Jt.isInAttribute=!0,Jt}function ct(tt,Jt){return function(Rt,yn){for(;!Rt.eol();){if(Rt.match(Jt)){yn.tokenize=Ne;break}Rt.next()}return tt}}function rt(tt){return function(Jt,Rt){for(var yn;(yn=Jt.next())!=null;){if(yn=="<")return Rt.tokenize=rt(tt+1),Rt.tokenize(Jt,Rt);if(yn==">")if(tt==1){Rt.tokenize=Ne;break}else return Rt.tokenize=rt(tt-1),Rt.tokenize(Jt,Rt)}return"meta"}}function Ee(tt,Jt,Rt){this.prev=tt.context,this.tagName=Jt,this.indent=tt.indented,this.startOfLine=Rt,(Le.doNotIndent.hasOwnProperty(Jt)||tt.context&&tt.context.noIndent)&&(this.noIndent=!0)}function at(tt){tt.context&&(tt.context=tt.context.prev)}function Yt(tt,Jt){for(var Rt;;){if(!tt.context||(Rt=tt.context.tagName,!Le.contextGrabbers.hasOwnProperty(Rt)||!Le.contextGrabbers[Rt].hasOwnProperty(Jt)))return;at(tt)}}function Xe(tt,Jt,Rt){return tt=="openTag"?(Rt.tagStart=Jt.column(),lt):tt=="closeTag"?Se:Xe}function lt(tt,Jt,Rt){return tt=="word"?(Rt.tagName=Jt.current(),st="tag",Ue):Le.allowMissingTagName&&tt=="endTag"?(st="tag bracket",Ue(tt,Jt,Rt)):(st="error",lt)}function Se(tt,Jt,Rt){if(tt=="word"){var yn=Jt.current();return Rt.context&&Rt.context.tagName!=yn&&Le.implicitlyClosed.hasOwnProperty(Rt.context.tagName)&&at(Rt),Rt.context&&Rt.context.tagName==yn||Le.matchClosing===!1?(st="tag",Ce):(st="tag error",je)}else return Le.allowMissingTagName&&tt=="endTag"?(st="tag bracket",Ce(tt,Jt,Rt)):(st="error",je)}function Ce(tt,Jt,Rt){return tt!="endTag"?(st="error",Ce):(at(Rt),Xe)}function je(tt,Jt,Rt){return st="error",Ce(tt,Jt,Rt)}function Ue(tt,Jt,Rt){if(tt=="word")return st="attribute",Mt;if(tt=="endTag"||tt=="selfcloseTag"){var yn=Rt.tagName,tn=Rt.tagStart;return Rt.tagName=Rt.tagStart=null,tt=="selfcloseTag"||Le.autoSelfClosers.hasOwnProperty(yn)?Yt(Rt,yn):(Yt(Rt,yn),Rt.context=new Ee(Rt,yn,tn==Rt.indented)),Xe}return st="error",Ue}function Mt(tt,Jt,Rt){return tt=="equals"?ht:(Le.allowMissing||(st="error"),Ue(tt,Jt,Rt))}function ht(tt,Jt,Rt){return tt=="string"?Ft:tt=="word"&&Le.allowUnquoted?(st="string",Ue):(st="error",Ue(tt,Jt,Rt))}function Ft(tt,Jt,Rt){return tt=="string"?Ft:Ue(tt,Jt,Rt)}return{startState:function(tt){var Jt={tokenize:Ne,state:Xe,indented:tt||0,tagName:null,tagStart:null,context:null};return tt!=null&&(Jt.baseIndent=tt),Jt},token:function(tt,Jt){if(!Jt.tagName&&tt.sol()&&(Jt.indented=tt.indentation()),tt.eatSpace())return null;Ie=null;var Rt=Jt.tokenize(tt,Jt);return(Rt||Ie)&&Rt!="comment"&&(st=null,Jt.state=Jt.state(Ie||Rt,tt,Jt),st&&(Rt=st=="error"?Rt+" error":st)),Rt},indent:function(tt,Jt,Rt){var yn=tt.context;if(tt.tokenize.isInAttribute)return tt.tagStart==tt.indented?tt.stringStartCol+1:tt.indented+ke;if(yn&&yn.noIndent)return ae.Pass;if(tt.tokenize!=xt&&tt.tokenize!=Ne)return Rt?Rt.match(/^(\s*)/)[0].length:0;if(tt.tagName)return Le.multilineTagIndentPastTag!==!1?tt.tagStart+tt.tagName.length+2:tt.tagStart+ke*(Le.multilineTagIndentFactor||1);if(Le.alignCDATA&&/$/,blockCommentStart:"",configuration:Le.htmlMode?"html":"xml",helperType:Le.htmlMode?"html":"xml",skipAttribute:function(tt){tt.state==ht&&(tt.state=Ue)},xmlCurrentTag:function(tt){return tt.tagName?{name:tt.tagName,close:tt.type=="closeTag"}:null},xmlCurrentContext:function(tt){for(var Jt=[],Rt=tt.context;Rt;Rt=Rt.prev)Rt.tagName&&Jt.push(Rt.tagName);return Jt.reverse()}}}),ae.defineMIME("text/xml","xml"),ae.defineMIME("application/xml","xml"),ae.mimeModes.hasOwnProperty("text/html")||ae.defineMIME("text/html",{name:"xml",htmlMode:!0})})},15979:function(dn,en,se){"use strict";se.d(en,{hP:function(){return Pn}});var ae=function(De,ue){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,he){ce.__proto__=he}||function(ce,he){for(var fe in he)Object.prototype.hasOwnProperty.call(he,fe)&&(ce[fe]=he[fe])})(De,ue)};function Pe(De,ue){function ce(){this.constructor=De}ae(De,ue),De.prototype=ue===null?Object.create(ue):(ce.prototype=ue.prototype,new ce)}function Re(De,ue,ce,he){return new(ce||(ce=Promise))(function(fe,le){function Me(Ht){try{ft(he.next(Ht))}catch(Zt){le(Zt)}}function Ve(Ht){try{ft(he.throw(Ht))}catch(Zt){le(Zt)}}function ft(Ht){var Zt;Ht.done?fe(Ht.value):(Zt=Ht.value,Zt instanceof ce?Zt:new ce(function(jt){jt(Zt)})).then(Me,Ve)}ft((he=he.apply(De,ue||[])).next())})}function qe(De,ue){var ce,he,fe,le,Me={label:0,sent:function(){if(1&fe[0])throw fe[1];return fe[1]},trys:[],ops:[]};return le={next:Ve(0),throw:Ve(1),return:Ve(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Ve(ft){return function(Ht){return function(Zt){if(ce)throw new TypeError("Generator is already executing.");for(;Me;)try{if(ce=1,he&&(fe=2&Zt[0]?he.return:Zt[0]?he.throw||((fe=he.return)&&fe.call(he),0):he.next)&&!(fe=fe.call(he,Zt[1])).done)return fe;switch(he=0,fe&&(Zt=[2&Zt[0],fe.value]),Zt[0]){case 0:case 1:fe=Zt;break;case 4:return Me.label++,{value:Zt[1],done:!1};case 5:Me.label++,he=Zt[1],Zt=[0];continue;case 7:Zt=Me.ops.pop(),Me.trys.pop();continue;default:if(fe=Me.trys,!((fe=fe.length>0&&fe[fe.length-1])||Zt[0]!==6&&Zt[0]!==2)){Me=0;continue}if(Zt[0]===3&&(!fe||Zt[1]>fe[0]&&Zt[1]',"select"),this.addActionButton(he,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(he,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(he,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(he,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(he,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(he,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(he,'',"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(le){var Me=document.createElement("div");Me.className=""+ce.toolbarButtonStyleClass.name,Me.setAttribute("data-type-name",le.typeName),Me.innerHTML=le.icon,Me.addEventListener("click",function(){ce.markerToolbarButtonClicked(Me,le)}),ce.buttons.push(Me),ce.markerButtons.push(Me)}),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 fe=document.createElement("div");fe.className=this.toolbarBlockStyleClass.name,fe.style.whiteSpace="nowrap",fe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(fe),this.addActionButton(fe,'',"render"),this.addActionButton(fe,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},De.prototype.addButtonClickListener=function(ue){this.buttonClickListeners.push(ue)},De.prototype.removeButtonClickListener=function(ue){this.buttonClickListeners.indexOf(ue)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ue),1)},De.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},De.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 ce=0;ce0&&this.buttonClickListeners.forEach(function(he){return he("marker",ce)}),this.markerButtonOverflowBlock.style.display="none"},De.prototype.actionToolbarButtonClicked=function(ue,ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(he){return he("action",ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},De.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)},De.prototype.setActiveMarkerButton=function(ue){var ce=this.markerButtons.find(function(he){return he.getAttribute("data-type-name")===ue});ce&&this.setActiveButton(ce)},De.prototype.setCurrentMarker=function(ue){var ce=this;this.currentMarker=ue,this.buttons.filter(function(he){return/delete|notes/.test(he.getAttribute("data-action"))}).forEach(function(he){ce.currentMarker===void 0?(he.style.fillOpacity="0.4",he.style.pointerEvents="none"):(he.style.fillOpacity="1",he.style.pointerEvents="all")})},De}(),pt=function(){function De(ue,ce,he,fe){this.panels=[],this.panelButtons=[],this.markerjsContainer=ue,this.displayMode=ce,this.uiStyleSettings=he,this.styles=fe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return De.prototype.addStyles=function(){var ue;this.toolboxStyleClass=this.styles.addClass(new Ne("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 Ne("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ne("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ne("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ne("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 Ne("toolbox-panel-row_colors",` background-color: `+((ue=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ue!==void 0?ue:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Ne("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px; padding: `+ce+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ne("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ne("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new st("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new st("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},De.prototype.show=function(ue){var ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},De.prototype.setPanelButtons=function(ue){var ce,he,fe=this;this.panels=ue,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((he=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&he!==void 0?he:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Me;le.uiStyleSettings=fe.uiStyleSettings;var Ve=document.createElement("div");Ve.className=fe.toolboxButtonStyleClass.name+" "+((Me=fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Me!==void 0?Me:fe.toolboxButtonStyleColorsClass.name),Ve.innerHTML=le.icon,Ve.title=le.title,Ve.addEventListener("click",function(){fe.panelButtonClick(le)}),fe.panelButtons.push(Ve),fe.buttonRow.appendChild(Ve)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},De.prototype.panelButtonClick=function(ue){var ce=this,he=-1;if(ue!==this.activePanel){he=this.panels.indexOf(ue),this.panelRow.innerHTML="";var fe=ue.getUi();fe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(fe),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(){ce.displayMode==="inline"?ce.panelRow.style.display="none":ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Me){var Ve,ft;le.className=ce.toolboxButtonStyleClass.name+" "+(Me===he?""+((Ve=ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ve!==void 0?Ve:ce.toolboxActiveButtonStyleColorsClass.name):""+((ft=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ft!==void 0?ft:ce.toolboxButtonStyleColorsClass.name))})},De}(),ct=function(De,ue){this.title=De,this.icon=ue},rt=function(De){function ue(ce,he,fe,le){var Me=De.call(this,ce,le||'')||this;return Me.colors=[],Me.addTransparent=!1,Me.colorBoxes=[],Me.colors=he,Me.currentColor=fe,Me.setCurrentColor=Me.setCurrentColor.bind(Me),Me.getColorBox=Me.getColorBox.bind(Me),Me}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.whiteSpace="nowrap",this.colors.forEach(function(fe){var le=ce.getColorBox(fe);he.appendChild(le),ce.colorBoxes.push(le)}),he},ue.prototype.getColorBox=function(ce){var he=this,fe=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-fe,Me=document.createElement("div");Me.style.display="inline-block",Me.style.boxSizing="content-box",Me.style.width=le-2+"px",Me.style.height=le-2+"px",Me.style.padding="1px",Me.style.marginRight="2px",Me.style.marginBottom="2px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.borderRadius=(le+2)/2+"px",Me.style.borderColor=ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){he.setCurrentColor(ce,Me)});var Ve=document.createElement("div");return Ve.style.display="inline-block",Ve.style.width=le-2+"px",Ve.style.height=le-2+"px",Ve.style.backgroundColor=ce,Ve.style.borderRadius=le/2+"px",ce==="transparent"&&(Ve.style.fill=this.uiStyleSettings.toolboxAccentColor,Ve.innerHTML=` `),Me.appendChild(Ve),Me},ue.prototype.setCurrentColor=function(ce,he){var fe=this;this.currentColor=ce,this.colorBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ce)},ue}(ct),Ee=function(){function De(ue,ce,he){this._state="new",this._isSelected=!1,this._container=ue,this._overlayContainer=ce,this.globalSettings=he,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(De.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),De.prototype.ownsTarget=function(ue){return!1},Object.defineProperty(De.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),De.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},De.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},De.prototype.pointerDown=function(ue,ce){},De.prototype.dblClick=function(ue,ce){},De.prototype.manipulate=function(ue){},De.prototype.pointerUp=function(ue){this.stateChanged()},De.prototype.dispose=function(){},De.prototype.addMarkerVisualToContainer=function(ue){this.container.childNodes.length>0?this.container.insertBefore(ue,this.container.childNodes[0]):this.container.appendChild(ue)},De.prototype.getState=function(){return{typeName:De.typeName,state:this.state,notes:this.notes}},De.prototype.restoreState=function(ue){this._state=ue.state,this.notes=ue.notes},De.prototype.scale=function(ue,ce){},De.prototype.colorChanged=function(ue){this.onColorChanged&&this.onColorChanged(ue),this.stateChanged()},De.prototype.fillColorChanged=function(ue){this.onFillColorChanged&&this.onFillColorChanged(ue),this.stateChanged()},De.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)}},De.typeName="MarkerBase",De}(),at=function(){function De(){this.findGripByVisual=this.findGripByVisual.bind(this)}return De.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},De}(),Yt=function(){function De(){this.GRIP_SIZE=10,this.visual=ke.createGroup(),this.visual.appendChild(ke.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ke.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return De.prototype.ownsTarget=function(ue){return ue===this.visual||ue===this.visual.childNodes[0]||ue===this.visual.childNodes[1]},De}(),Xe=function(){function De(){}return De.toITransformMatrix=function(ue){return{a:ue.a,b:ue.b,c:ue.c,d:ue.d,e:ue.e,f:ue.f}},De.toSVGMatrix=function(ue,ce){return ue.a=ce.a,ue.b=ce.b,ue.c=ce.c,ue.d=ce.d,ue.e=ce.e,ue.f=ce.f,ue},De}(),lt=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(ke.createTransform()),le.setupControlBox(),le}return Pe(ue,De),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(ce){this._visual=ce;var he=ke.createTransform();this._visual.transform.baseVal.appendItem(he)},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(ce){return!!De.prototype.ownsTarget.call(this,ce)||!!(this.controlGrips.findGripByVisual(ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce))},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.left=ce.x,this.top=ce.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var fe=this.unrotatePoint(ce);if(this.manipulationStartX=fe.x,this.manipulationStartY=fe.y,this.offsetX=fe.x-this.left,this.offsetY=fe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(he),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(he)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Me=this.container.transform.baseVal.getItem(0);Me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Me,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ue.prototype.pointerUp=function(ce){var he=this.state;De.prototype.pointerUp.call(this,ce),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ce),this._state="select",he==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ue.prototype.moveVisual=function(ce){this.visual.style.transform="translate("+ce.x+"px, "+ce.y+"px)"},ue.prototype.manipulate=function(ce){var he=this.unrotatePoint(ce);this.state==="creating"?this.resize(ce):this.state==="move"?(this.left=this.manipulationStartLeft+(he.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(he.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(he):this.state==="rotate"&&this.rotate(ce)},ue.prototype.resize=function(ce){var he=this.manipulationStartLeft,fe=this.manipulationStartWidth,le=this.manipulationStartTop,Me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:he=this.manipulationStartLeft+ce.x-this.manipulationStartX,fe=this.manipulationStartWidth+this.manipulationStartLeft-he;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:fe=this.manipulationStartWidth+ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ce.y-this.manipulationStartY,Me=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Me=this.manipulationStartHeight+ce.y-this.manipulationStartY}fe>=0?(this.left=he,this.width=fe):(this.left=he+fe,this.width=-fe),Me>=0?(this.top=le,this.height=Me):(this.top=le+Me,this.height=-Me),this.setSize()},ue.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ue.prototype.rotate=function(ce){if(Math.abs(ce.x-this.centerX)>.1){var he=Math.sign(ce.x-this.centerX);this.rotationAngle=180*Math.atan((ce.y-this.centerY)/(ce.x-this.centerX))/Math.PI+90*he,this.applyRotation()}},ue.prototype.applyRotation=function(){var ce=this.container.transform.baseVal.getItem(0);ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ce,0)},ue.prototype.rotatePoint=function(ce){if(this.rotationAngle===0)return ce;var he=this.container.getCTM(),fe=ke.createPoint(ce.x,ce.y);return{x:(fe=fe.matrixTransform(he)).x,y:fe.y}},ue.prototype.unrotatePoint=function(ce){if(this.rotationAngle===0)return ce;var he=this.container.getCTM();he=he.inverse();var fe=ke.createPoint(ce.x,ce.y);return{x:(fe=fe.matrixTransform(he)).x,y:fe.y}},ue.prototype.select=function(){De.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){De.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=ke.createGroup();var ce=ke.createTransform();ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ce),this.container.appendChild(this.controlBox),this.controlRect=ke.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=ke.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 at,this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){var ce=this.controlBox.transform.baseVal.getItem(0);ce.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ce,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 ce=new Yt;return ce.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(ce.visual),ce},ue.prototype.positionGrips=function(){var ce=this.controlGrips.topLeft.GRIP_SIZE,he=-ce/2,fe=he,le=(this.width+this.CB_DISTANCE)/2-ce/2,Me=(this.height+this.CB_DISTANCE)/2-ce/2,Ve=this.height+this.CB_DISTANCE-ce/2,ft=this.width+this.CB_DISTANCE-ce/2;this.positionGrip(this.controlGrips.topLeft.visual,he,fe),this.positionGrip(this.controlGrips.topCenter.visual,le,fe),this.positionGrip(this.controlGrips.topRight.visual,ft,fe),this.positionGrip(this.controlGrips.centerLeft.visual,he,Me),this.positionGrip(this.controlGrips.centerRight.visual,ft,Me),this.positionGrip(this.controlGrips.bottomLeft.visual,he,Ve),this.positionGrip(this.controlGrips.bottomCenter.visual,le,Ve),this.positionGrip(this.controlGrips.bottomRight.visual,ft,Ve),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,fe-3*this.CB_DISTANCE)},ue.prototype.positionGrip=function(ce,he,fe){var le=ce.transform.baseVal.getItem(0);le.setTranslate(he,fe),ce.transform.baseVal.replaceItem(le,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:Xe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Xe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},De.prototype.getState.call(this))},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.left=he.left,this.top=he.top,this.width=he.width,this.height=he.height,this.rotationAngle=he.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Xe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,he.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Xe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,he.containerTransformMatrix))},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he);var fe=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:fe.x*ce,y:fe.y*he});this.left=le.x,this.top=le.y,this.width=this.width*ce,this.height=this.height*he,this.adjustControlBox()},ue}(Ee),Se=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},ue.prototype.createVisual=function(){this.visual=ke.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(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ue.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce)},ue.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.setSize()},ue.prototype.setSize=function(){De.prototype.setSize.call(this),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(ce){De.prototype.pointerUp.call(this,ce),this.setSize()},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},ue.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&ke.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},De.prototype.getState.call(this))},ue.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.opacity=he.opacity,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setSize()},ue.title="Rectangle marker",ue}(lt),Ce=function(De){function ue(ce,he,fe,le){var Me=De.call(this,ce,le||'')||this;return Me.widths=[],Me.widthBoxes=[],Me.widths=he,Me.currentWidth=fe,Me.setCurrentWidth=Me.setCurrentWidth.bind(Me),Me}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.widths.forEach(function(fe){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=fe===ce.currentWidth?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentWidth(fe,le)}),he.appendChild(le);var Me=document.createElement("div");Me.innerText=fe.toString(),Me.style.marginRight="5px",le.appendChild(Me);var Ve=document.createElement("div");Ve.style.minHeight="20px",Ve.style.flexGrow="2",Ve.style.display="flex",Ve.style.alignItems="center";var ft=document.createElement("hr");ft.style.minWidth="20px",ft.style.border="0px",ft.style.borderTop=fe+"px solid "+ce.uiStyleSettings.toolboxColor,ft.style.flexGrow="2",Ve.appendChild(ft),le.appendChild(Ve),ce.widthBoxes.push(le)}),he},ue.prototype.setCurrentWidth=function(ce,he){var fe=this;this.currentWidth=ce,this.widthBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ue}(ct),je=function(De){function ue(ce,he,fe,le){var Me=De.call(this,ce,le||'')||this;return Me.styles=[],Me.styleBoxes=[],Me.styles=he,Me.currentStyle=fe,Me.setCurrentStyle=Me.setCurrentStyle.bind(Me),Me}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.styles.forEach(function(fe){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.styles.length-5+"%",le.style.borderColor=fe===ce.currentStyle?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentStyle(fe,le)}),he.appendChild(le);var Me=document.createElement("div");Me.style.minHeight="20px",Me.style.flexGrow="2",Me.style.overflow="hidden";var Ve=` `;Me.innerHTML=Ve,le.appendChild(Me),ce.styleBoxes.push(le)}),he},ue.prototype.setCurrentStyle=function(ce,he){var fe=this;this.currentStyle=ce,this.styleBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ue}(ct),Ue=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.strokeColor=fe.defaultColor,le.strokeWidth=fe.defaultStrokeWidth,le.strokeDasharray=fe.defaultStrokeDasharray,le.strokePanel=new rt("Line color",fe.defaultColorSet,fe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Pe(ue,De),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="FrameMarker",ue.title="Frame marker",ue.icon='',ue}(Se),Mt=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"},ht=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!!De.prototype.ownsTarget.call(this,ce)||!(!this.grip1.ownsTarget(ce)&&!this.grip2.ownsTarget(ce))},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.state==="new"&&(this.x1=ce.x,this.y1=ce.y,this.x2=ce.x,this.y2=ce.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(he)?this.activeGrip=this.grip1:this.grip2.ownsTarget(he)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ue.prototype.pointerUp=function(ce){var he=this.state;De.prototype.pointerUp.call(this,ce),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(ce),this._state="select",he==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ue.prototype.adjustVisual=function(){},ue.prototype.manipulate=function(ce){this.state==="creating"?this.resize(ce):this.state==="move"?(this.x1=this.manipulationStartX1+ce.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ce.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ce.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ce.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ce)},ue.prototype.resize=function(ce){switch(this.activeGrip){case this.grip1:this.x1=ce.x,this.y1=ce.y;break;case this.grip2:case void 0:this.x2=ce.x,this.y2=ce.y}this.adjustVisual(),this.adjustControlBox()},ue.prototype.select=function(){De.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){De.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=ke.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 ce=new Yt;return ce.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(ce.visual),ce},ue.prototype.positionGrips=function(){var ce=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ce/2,this.y1-ce/2),this.positionGrip(this.grip2.visual,this.x2-ce/2,this.y2-ce/2)},ue.prototype.positionGrip=function(ce,he,fe){var le=ce.transform.baseVal.getItem(0);le.setTranslate(he,fe),ce.transform.baseVal.replaceItem(le,0)},ue.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},De.prototype.getState.call(this))},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.x1=he.x1,this.y1=he.y1,this.x2=he.x2,this.y2=he.y2},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.x1=this.x1*ce,this.y1=this.y1*he,this.x2=this.x2*ce,this.y2=this.y2*he,this.adjustVisual(),this.adjustControlBox()},ue}(Ee),Ft=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=fe.defaultColor,le.strokeWidth=fe.defaultStrokeWidth,le.strokeDasharray=fe.defaultStrokeDasharray,le.strokePanel=new rt("Line color",fe.defaultColorSet,fe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorLine&&ce!==this.visibleLine)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorLine=ke.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ke.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(ce,he){De.prototype.pointerDown.call(this,ce,he),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()),ke.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,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 ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.createVisual(),this.adjustVisual()},ue.typeName="LineMarker",ue.title="Line marker",ue.icon='',ue}(ht),tt=function(De){function ue(ce,he,fe,le){var Me=De.call(this,ce,le||'')||this;return Me.fonts=[],Me.fontBoxes=[],Me.fonts=he,Me.currentFont=fe,Me.setCurrentFont=Me.setCurrentFont.bind(Me),Me}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.flexGrow="2",this.fonts.forEach(function(fe){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.fonts.length-5+"%",le.style.borderColor=fe===ce.currentFont?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentFont(fe,le)}),he.appendChild(le);var Me=document.createElement("div");Me.style.display="flex",Me.style.minHeight="20px",Me.style.flexGrow="2",Me.style.fontFamily=fe,Me.style.overflow="hidden";var Ve=document.createElement("div");Ve.style.whiteSpace="nowrap",Ve.style.overflow="hidden",Ve.style.textOverflow="ellipsis",Ve.innerHTML="The quick brown fox jumps over the lazy dog",Me.appendChild(Ve),le.appendChild(Me),ce.fontBoxes.push(le)}),he},ue.prototype.setCurrentFont=function(ce,he){var fe=this;this.currentFont=ce,this.fontBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ue}(ct),Jt=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=fe.defaultColor,le.fontFamily=fe.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new rt("Color",fe.defaultColorSet,fe.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new tt("Font",fe.defaultFontFamilies,fe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){if(De.prototype.ownsTarget.call(this,ce)||ce===this.visual||ce===this.textElement||ce===this.bgRectangle)return!0;var he=!1;return this.textElement.childNodes.forEach(function(fe){fe===ce&&(he=!0)}),he},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.bgRectangle=ke.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ke.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ue.prototype.renderText=function(){var ce=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(he){ce.textElement.appendChild(ke.createTSpan(he.trim()===""?" ":he.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ue.prototype.getTextScale=function(){var ce=this.textElement.getBBox(),he=1;if(ce.width>0&&ce.height>0){var fe=(1*this.width-this.width*this.padding*2/100)/ce.width,le=(1*this.height-this.height*this.padding*2/100)/ce.height;he=Math.min(fe,le)}return he},ue.prototype.getTextPosition=function(ce){var he=this.textElement.getBBox(),fe=0,le=0;return he.width>0&&he.height>0&&(fe=(this.width-he.width*ce)/2,le=this.height/2-he.height*ce/2),{x:fe,y:le}},ue.prototype.sizeText=function(){var ce=this.textElement.getBBox(),he=this.getTextScale(),fe=this.getTextPosition(he);fe.y-=ce.y*he,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+fe.x+"px, "+fe.y+"px) scale("+he+", "+he+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(fe.x,fe.y),this.textElement.transform.baseVal.getItem(1).setScale(he,he))},ue.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.isMoved=!0,this.setSize(),this.sizeText()},ue.prototype.setSize=function(){De.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ue.prototype.pointerUp=function(ce){var he=this.state;he==="creating"&&(this._suppressMarkerCreateEvent=!0),De.prototype.pointerUp.call(this,ce),this.setSize(),(he==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.showTextEditor=function(){var ce=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(he){he.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var he=Number.parseFloat(ce.textEditor.style.fontSize);ce.textEditor.clientWidth>=Number.parseInt(ce.textEditor.style.maxWidth)&&he>.9;)he-=.1,ce.textEditor.style.fontSize=Math.max(he,.9)+"em"}),this.textEditor.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(he){if(he.clipboardData){var fe=he.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(fe)),he.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ce.textEditDivClicked(ce.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 ce=this.getTextScale(),he=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),fe=this.textElement.getBBox(),le={x:fe.width*ce,y:fe.height*ce};he.x-=le.x/2,he.y-=le.y/2,this.textEditor.style.top=he.y+"px",this.textEditor.style.left=he.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-he.x+"px",this.textEditor.style.fontSize=Math.max(16*ce,12)+"px",this.textElement.style.display="none"}},ue.prototype.textEditDivClicked=function(ce){this.text=ce.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ue.prototype.select=function(){De.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ue.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),De.prototype.deselect.call(this)},ue.prototype.dblClick=function(ce,he){De.prototype.dblClick.call(this,ce,he),this.showTextEditor()},ue.prototype.setColor=function(ce){this.textElement&&ke.setAttributes(this.textElement,[["fill",ce]]),this.color=ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ce)},ue.prototype.setFont=function(ce){this.textElement&&ke.setAttributes(this.textElement,[["font-family",ce]]),this.fontFamily=ce,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 ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){var he=ce;this.color=he.color,this.fontFamily=he.fontFamily,this.padding=he.padding,this.text=he.text,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setSize(),this.sizeText(),this.positionTextEditor()},ue.typeName="TextMarker",ue.title="Text marker",ue.icon='',ue}(lt),Rt=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=fe.defaultColor,le.lineWidth=fe.defaultStrokeWidth,le.pixelRatio=fe.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new rt("Color",fe.defaultColorSet,fe.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new Ce("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.drawingImage)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.drawingImage=ke.createImage(),this.visual.appendChild(this.drawingImage);var ce=ke.createTransform();this.visual.transform.baseVal.appendItem(ce),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ce,he){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(ce.x,ce.y),this.drawing=!0):De.prototype.pointerDown.call(this,ce,he)},ue.prototype.manipulate=function(ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ce.x,ce.y),this.canvasContext.stroke()):De.prototype.manipulate.call(this,ce)},ue.prototype.resize=function(ce){De.prototype.resize.call(this,ce),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):De.prototype.pointerUp.call(this,ce)},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(),De.prototype.select.call(this)},ue.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),De.prototype.deselect.call(this)},ue.prototype.finishCreation=function(){for(var ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),he=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],fe=he[0],le=he[1],Me=he[2],Ve=he[3],ft=!1,Ht=0;Ht0&&(ft=!0,HtVe&&(Ve=Ht),Zt>Me&&(Me=Zt));if(ft){this.left=fe/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Me-fe)/this.pixelRatio,this.height=(Ve-le)/this.pixelRatio;var jt=document.createElement("canvas");jt.width=Me-fe,jt.height=Ve-le,jt.getContext("2d").putImageData(this.canvasContext.getImageData(fe,le,Me-fe,Ve-le),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(){ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ue.prototype.setColor=function(ce){this.color=ce,this.colorChanged(ce)},ue.prototype.setLineWidth=function(ce){this.lineWidth=ce},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 ce=Object.assign({drawingImgUrl:this.drawingImgUrl},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){this.createVisual(),De.prototype.restoreState.call(this,ce),this.drawingImgUrl=ce.drawingImgUrl,this.setDrawingImage()},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setDrawingImage()},ue.typeName="FreehandMarker",ue.title="Freehand marker",ue.icon='',ue}(lt),yn=function(De){function ue(ce,he,fe){var le=De.call(this,ce,fe||'')||this;return le.typeBoxes=[],le.currentType=he,le.setCurrentType=le.setCurrentType.bind(le),le}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2";for(var fe=function(Ve){var ft="both";switch(Ve){case 0:ft="both";break;case 1:ft="start";break;case 2:ft="end";break;case 3:ft="none"}var Ht=document.createElement("div");if(Ht.style.display="flex",Ht.style.flexGrow="2",Ht.style.alignItems="center",Ht.style.justifyContent="space-between",Ht.style.padding="5px",Ht.style.borderWidth="2px",Ht.style.borderStyle="solid",Ht.style.borderColor=ft===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",Ht.addEventListener("click",function(){ce.setCurrentType(ft,Ht)}),he.appendChild(Ht),ft==="both"||ft==="start"){var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.alignItems="center",Zt.style.minHeight="20px",Zt.innerHTML=` `,Zt.style.marginLeft="5px",Ht.appendChild(Zt)}var jt=document.createElement("div");jt.style.display="flex",jt.style.alignItems="center",jt.style.minHeight="20px",jt.style.flexGrow="2";var $t=document.createElement("hr");if($t.style.minWidth="20px",$t.style.border="0px",$t.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),$t.style.flexGrow="2",jt.appendChild($t),Ht.appendChild(jt),ft==="both"||ft==="end"){var Je=document.createElement("div");Je.style.display="flex",Je.style.alignItems="center",Je.style.minHeight="20px",Je.innerHTML=` `,Je.style.marginRight="5px",Ht.appendChild(Je)}le.typeBoxes.push(Ht)},le=this,Me=0;Me<4;Me++)fe(Me);return he},ue.prototype.setCurrentType=function(ce,he){var fe=this;this.currentType=ce,this.typeBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ue}(ct),tn=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new yn("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.arrow1&&ce!==this.arrow2)},ue.prototype.getArrowPoints=function(ce,he){var fe=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ce-fe/2+","+(he+le/2)+" "+ce+","+(he-le/2)+" "+(ce+fe/2)+","+(he+le/2)},ue.prototype.createTips=function(){this.arrow1=ke.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ke.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow2)},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(De.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",ke.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ke.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ce=0;Math.abs(this.x1-this.x2)>.1&&(ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var he=this.arrow1.transform.baseVal.getItem(0);he.setRotate(ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(he,0);var fe=this.arrow2.transform.baseVal.getItem(0);fe.setRotate(ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(fe,0)}},ue.prototype.setArrowType=function(ce){this.arrowType=ce,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 ce=Object.assign({arrowType:this.arrowType},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.arrowType=he.arrowType,this.createTips(),this.adjustVisual()},ue.typeName="ArrowMarker",ue.title="Arrow marker",ue.icon='',ue}(Ft),Hn=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.fillColor=fe.defaultFillColor,le.strokeWidth=0,le.fillPanel=new rt("Color",fe.defaultColorSet,fe.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return Pe(ue,De),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="CoverMarker",ue.title="Cover marker",ue.icon='',ue}(Se),Yn=function(De){function ue(ce,he,fe,le){var Me=De.call(this,ce,le||'')||this;return Me.opacities=[],Me.opacityBoxes=[],Me.opacities=he,Me.currentOpacity=fe,Me.setCurrentOpacity=Me.setCurrentOpacity.bind(Me),Me}return Pe(ue,De),ue.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",he.style.justifyContent="space-between",this.opacities.forEach(function(fe){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=fe===ce.currentOpacity?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentOpacity(fe,le)}),he.appendChild(le);var Me=document.createElement("div");Me.innerText=100*fe+"%",le.appendChild(Me),ce.opacityBoxes.push(le)}),he},ue.prototype.setCurrentOpacity=function(ce,he){var fe=this;this.currentOpacity=ce,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===he?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ue}(ct),tr=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=fe.defaultHighlightColor,le.strokeWidth=0,le.opacity=fe.defaultHighlightOpacity,le.fillPanel=new rt("Color",fe.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new Yn("Opacity",fe.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return Pe(ue,De),ue.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&ke.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 ce=De.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="HighlightMarker",ue.title="Highlight marker",ue.icon='',ue}(Hn),Qe='',we='',At=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=fe.defaultStrokeColor,le.bgColor=fe.defaultFillColor,le.fontFamily=fe.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new rt("Text color",fe.defaultColorSet,le.color,Qe),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new rt("Fill color",fe.defaultColorSet,le.bgColor,we),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new tt("Font",fe.defaultFontFamilies,fe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new Yt,le.tipGrip.visual.transform.baseVal.appendItem(ke.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return De.prototype.ownsTarget.call(this,ce)||this.tipGrip.ownsTarget(ce)||this.tip===ce},ue.prototype.createTip=function(){ke.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ke.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ue.prototype.pointerDown=function(ce,he){this.state==="new"&&De.prototype.pointerDown.call(this,ce,he),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(he)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):De.prototype.pointerDown.call(this,ce,he)},ue.prototype.pointerUp=function(ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,De.prototype.pointerUp.call(this,ce);else{var he=this.state==="creating";De.prototype.pointerUp.call(this,ce),this.setTipPoints(he),this.positionTip()}},ue.prototype.manipulate=function(ce){if(this.tipMoving){var he=this.unrotatePoint(ce);this.tipPosition={x:he.x-this.manipulationStartLeft,y:he.y-this.manipulationStartTop},this.positionTip()}else De.prototype.manipulate.call(this,ce)},ue.prototype.setBgColor=function(ce){this.bgRectangle&&this.tip&&(ke.setAttributes(this.bgRectangle,[["fill",ce]]),ke.setAttributes(this.tip,[["fill",ce]])),this.bgColor=ce,this.fillColorChanged(ce)},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(ce){ce===void 0&&(ce=!1);var he=Math.min(this.height/2,15),fe=this.height/5;ce&&(this.tipPosition={x:he+fe/2,y:this.height+20});var le=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?le.1)){var ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),he=this.tip1.transform.baseVal.getItem(0);he.setRotate(ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(he,0);var fe=this.tip2.transform.baseVal.getItem(0);fe.setRotate(ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(fe,0)}},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce),this.createTips(),this.adjustVisual()},ue.typeName="MeasurementMarker",ue.title="Measurement marker",ue.icon='',ue}(Ft),$e=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.strokePanel.colors=fe.defaultColorSet,le.fillColor="transparent",le}return Pe(ue,De),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="EllipseFrameMarker",ue.title="Ellipse frame marker",ue.icon='',ue}(Mn),dt=function(){function De(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(De.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),De.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))},De.prototype.replaceLastUndoStep=function(ue){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ue)},De.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},De.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}},De.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},De}(),qt=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=fe.defaultColor,le.strokeWidth=fe.defaultStrokeWidth,le.strokeDasharray=fe.defaultStrokeDasharray,le.strokePanel=new rt("Line color",fe.defaultColorSet,fe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorCurve&&ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(ce))},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=ke.createGroup(),this.selectorCurve=ke.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ke.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(ce,he){De.prototype.pointerDown.call(this,ce,he),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ce.x,this.curveY=ce.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(he)&&(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()),ke.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setupControlBox=function(){De.prototype.setupControlBox.call(this),this.curveControlLine1=ke.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ke.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,De.prototype.addControlGrips.call(this)},ue.prototype.positionGrips=function(){De.prototype.positionGrips.call(this);var ce=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ce/2,this.curveY-ce/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(ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ce.y-this.manipulationStartY),De.prototype.manipulate.call(this,ce)},ue.prototype.resize=function(ce){this.activeGrip===this.curveGrip&&(this.curveX=ce.x,this.curveY=ce.y),De.prototype.resize.call(this,ce),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(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual()},ue.prototype.scale=function(ce,he){this.curveX=this.curveX*ce,this.curveY=this.curveY*he,De.prototype.scale.call(this,ce,he)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},De.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var he=ce;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.curveX=he.curveX,this.curveY=he.curveY,this.createVisual(),this.adjustVisual()},ue.typeName="CurveMarker",ue.title="Curve marker",ue.icon='',ue}(ht),Xn=function(De){function ue(ce,he,fe){var le=De.call(this,ce,he,fe)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=fe.defaultColor,le.strokeWidth=fe.defaultStrokeWidth,le.strokeDasharray=fe.defaultStrokeDasharray,le.fillColor=fe.defaultFillColor,le.textColor=fe.defaultStrokeColor,le.fontFamily=fe.defaultFontFamily,le.fontSize=fe.defaultCaptionFontSize,le.captionText=fe.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new rt("Line color",ve(fe.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new rt("Fill color",ve(fe.defaultColorSet,["transparent"]),le.fillColor,we),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Ce("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new je("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new tt("Font",fe.defaultFontFamilies,fe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new rt("Text color",fe.defaultColorSet,le.textColor,Qe),le.textColorPanel.onColorChanged=le.setTextColor,le}return Pe(ue,De),ue.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.frame&&ce!==this.captionBg&&ce!==this.captionElement)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ke.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ke.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=ke.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(ce){this.captionText=ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},ue.prototype.pointerDown=function(ce,he){De.prototype.pointerDown.call(this,ce,he),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ue.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.setSize()},ue.prototype.sizeCaption=function(){var ce=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ce.width+2*this.PADDING,this.captionBoxHeight=ce.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ke.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')"]]),ke.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 ce=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(he){he.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(he){he.key==="Enter"&&ce.finishTextEditing(ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ce.finishTextEditing(ce.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(ce){this.setCaptionText(ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ue.prototype.setFont=function(ce){this.captionElement&&ke.setAttributes(this.captionElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ue.prototype.setTextColor=function(ce){this.captionElement&&ke.setAttributes(this.captionElement,[["fill",ce]]),this.textColor=ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ue.prototype.setSize=function(){De.prototype.setSize.call(this),ke.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ue.prototype.pointerUp=function(ce){De.prototype.pointerUp.call(this,ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.dblClick=function(ce,he){De.prototype.dblClick.call(this,ce,he),this.showTextEditor()},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.frame&&ke.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},ue.prototype.setFillColor=function(ce){this.fillColor=ce,this.captionBg&&ke.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.frame&&ke.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.frame&&ke.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 ce=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},De.prototype.getState.call(this));return ce.typeName=this.typeName,ce},ue.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.textColor=he.textColor,this.fontFamily=he.fontFamily,this.captionText=he.captionText,this.fontSize=he.fontSize,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},ue.prototype.scale=function(ce,he){De.prototype.scale.call(this,ce,he),this.setSize()},ue.typeName="CaptionFrameMarker",ue.title="Caption frame marker",ue.icon='',ue}(lt),bn=function(){function De(ue,ce){ce===void 0&&(ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ue,this.cancelable=ce}return Object.defineProperty(De.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),De.prototype.preventDefault=function(){this._defaultPrevented=!0},De}(),un=function(De){function ue(ce,he,fe){var le=De.call(this,ce,!1)||this;return le.dataUrl=he,le.state=fe,le}return Pe(ue,De),ue}(bn),nn=function(De){function ue(ce,he,fe){fe===void 0&&(fe=!1);var le=De.call(this,ce,fe)||this;return le.marker=he,le}return Pe(ue,De),ue}(bn),xn=function(){function De(){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 De.prototype.addEventListener=function(ue,ce){this[ue].push(ce)},De.prototype.removeEventListener=function(ue,ce){var he=this[ue].indexOf(ce);he>-1&&this[ue].splice(he,1)},De}(),Pn=function(){function De(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 Mt,this._isOpen=!1,this.undoRedoManager=new dt,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 xn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=De.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(De.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ue,Rt,tn,Jt,$e,Mn,tr,At,_t,Hn,Ft,qt,Xn]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ue,Rt,tn,Jt,Mn,tr,At]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ue,Rt,tn,Jt,tr]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ue){var ce=this;this._availableMarkerTypes.splice(0),ue.forEach(function(he){if(typeof he=="string"){var fe=ce.ALL_MARKER_TYPES.find(function(le){return le.typeName===he});fe!==void 0&&ce._availableMarkerTypes.push(fe)}else ce._availableMarkerTypes.push(he)})},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(De.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(De.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),De.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Le.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},De.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(ce){return ce(new bn(ue))})},De.prototype.render=function(){return Re(this,void 0,void 0,function(){var ue;return qe(this,function(ce){switch(ce.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 ce.sent(),[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ce.sent()]}})})},De.prototype.close=function(ue){var ce=this;if(ue===void 0&&(ue=!1),this.isOpen){var he=!1;ue||this.eventListeners.beforeclose.forEach(function(fe){var le=new bn(ce,!0);fe(le),le.defaultPrevented&&(he=!0)}),he||(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(fe){return fe(new bn(ce))}),this.detachEvents(),this._isOpen=!1)}},De.prototype.addMarkersToToolbar=function(){for(var ue,ce=[],he=0;hethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ue:this.editorCanvas.clientWidth,he=ce',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()},De.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")},De.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"},De.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},De.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 xt(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()},De.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())},De.prototype.toolbarButtonClicked=function(ue,ce){if(ue==="marker"&&ce!==void 0)this.createNewMarker(ce);else if(ue==="action")switch(ce){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()}},De.prototype.deleteSelectedMarker=function(){var ue=this;if(this._currentMarker!==void 0){var ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(fe){var le=new nn(ue,ue._currentMarker,!0);fe(le),le.defaultPrevented&&(ce=!0)}),!ce){var he=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(fe){return fe(new nn(ue,he))})}}},De.prototype.clear=function(){var ue=this,ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Me){var Ve=new nn(ue,void 0,!0);Me(Ve),Ve.defaultPrevented&&(ce=!0)}),!ce)){this.setCurrentMarker();for(var he=function(Me){var Ve=fe.markers[Me];fe.setCurrentMarker(fe.markers[Me]),fe._currentMarker.dispose(),fe.markerImage.removeChild(fe._currentMarker.container),fe.markers.splice(fe.markers.indexOf(fe._currentMarker),1),fe.eventListeners.markerdelete.forEach(function(ft){return ft(new nn(ue,Ve))})},fe=this,le=this.markers.length-1;le>=0;le--)he(le);this.addUndoStep()}},Object.defineProperty(De.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),De.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))},De.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)},De.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},De.prototype.addUndoStep=function(){var ue=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ce=this.getState(),he=this.undoRedoManager.getLastUndoStep();if(!he||he.width===ce.width&&he.height===ce.height){var fe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ce),fe1&&this.panTo({x:ue.clientX,y:ue.clientY}))},De.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()},De.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},De.prototype.onKeyUp=function(ue){this._currentMarker===void 0||this.notesArea!==void 0||ue.key!=="Delete"&&ue.key!=="Backspace"||this.deleteSelectedMarker()},De.prototype.clientToLocalCoordinates=function(ue,ce){var he=this.markerImage.getBoundingClientRect();return{x:(ue-he.left)/this.zoomLevel,y:(ce-he.top)/this.zoomLevel}},De.prototype.onWindowResize=function(){this.positionUI()},De.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()},De.prototype.addLicenseKey=function(ue){Le.addKey(ue)},De.prototype.addEventListener=function(ue,ce){this.eventListeners.addEventListener(ue,ce)},De.prototype.removeEventListener=function(ue,ce){this.eventListeners.removeEventListener(ue,ce)},De.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(De.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),De.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(ce){return ce(new bn(ue))}))},De.prototype.blur=function(){var ue=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ce){return ce(new bn(ue))}))},De.instanceCounter=0,De}()},95860:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Xe}});var ae=se(87462),Pe=se(1413),Re=se(4942),qe=se(97685),ve=se(45987),ke=se(94184),Le=se.n(ke),xe=se(67294);function me(lt){var Se=xe.useRef();Se.current=lt;var Ce=xe.useCallback(function(){for(var je,Ue=arguments.length,Mt=new Array(Ue),ht=0;ht0;if(Hn||Yn){var Zt=(0,xe.D7)(qt),jt=(0,st.Z)(Zt).length,$t=(0,qe.Z)(Yn)==="object"?Yn.formatter({value:Zt,count:jt,maxLength:tn}):"".concat(jt).concat(Ht?" / ".concat(tn):"");return Le.createElement(Le.Fragment,null,!!Yn&&Le.createElement("span",{className:ke()("".concat(tt,"-show-count-suffix"),(0,Re.Z)({},"".concat(tt,"-show-count-has-suffix"),!!Hn),At==null?void 0:At.count),style:(0,Pe.Z)({},Mn==null?void 0:Mn.count)},$t),Hn)}return null};return Le.createElement(Ie,(0,ae.Z)({},_t,{prefixCls:tt,className:yn,inputElement:Me(),handleReset:le,value:(0,xe.D7)(qt),focused:nn,triggerFocus:De,suffix:Ve(),disabled:Jt,classes:we,classNames:At,styles:Mn}))}),at=Ee,Yt=at},87887:function(dn,en,se){"use strict";se.d(en,{D7:function(){return ve},He:function(){return ae},X3:function(){return Pe},nH:function(){return qe},rJ:function(){return Re}});function ae(ke){return!!(ke.addonBefore||ke.addonAfter)}function Pe(ke){return!!(ke.prefix||ke.suffix||ke.allowClear)}function Re(ke,Le,xe,me){if(xe){var Ie=Le;if(Le.type==="click"){var st=ke.cloneNode(!0);Ie=Object.create(Le,{target:{value:st},currentTarget:{value:st}}),st.value="",xe(Ie);return}if(me!==void 0){Ie=Object.create(Le,{target:{value:ke},currentTarget:{value:ke}}),ke.value=me,xe(Ie);return}xe(Ie)}}function qe(ke,Le){if(ke){ke.focus(Le);var xe=Le||{},me=xe.cursor;if(me){var Ie=ke.value.length;switch(me){case"start":ke.setSelectionRange(0,0);break;case"end":ke.setSelectionRange(Ie,Ie);break;default:ke.setSelectionRange(0,Ie)}}}}function ve(ke){return typeof ke=="undefined"||ke===null?"":String(ke)}},78595:function(dn,en,se){"use strict";se.d(en,{iz:function(){return ri},ck:function(){return kr},BW:function(){return Jr},sN:function(){return kr},Wd:function(){return fn},ZP:function(){return He},Xl:function(){return $t}});var ae=se(87462),Pe=se(4942),Re=se(1413),qe=se(74902),ve=se(97685),ke=se(45987),Le=se(94184),xe=se.n(Le),me=se(67294),Ie=se(48555);function st(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ne=st()?me.useLayoutEffect:me.useEffect,xt=function(Ge,ut){var vt=me.useRef(!0);Ne(function(){return Ge(vt.current)},ut),Ne(function(){return vt.current=!1,function(){vt.current=!0}},[])},pt=function(Ge,ut){xt(function(vt){if(!vt)return Ge()},ut)},ct=xt,rt=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ee=void 0;function at(Ke,Ge){var ut=Ke.prefixCls,vt=Ke.invalidate,Kt=Ke.item,vn=Ke.renderItem,kn=Ke.responsive,yr=Ke.responsiveDisabled,Pr=Ke.registerSize,cr=Ke.itemKey,Wn=Ke.className,Fn=Ke.style,$n=Ke.children,rr=Ke.display,Ir=Ke.order,gr=Ke.component,fr=gr===void 0?"div":gr,wr=(0,ke.Z)(Ke,rt),Sr=kn&&!rr;function Nr(sn){Pr(cr,sn)}me.useEffect(function(){return function(){Nr(null)}},[]);var Fe=vn&&Kt!==Ee?vn(Kt):$n,We;vt||(We={opacity:Sr?0:1,height:Sr?0:Ee,overflowY:Sr?"hidden":Ee,order:kn?Ir:Ee,pointerEvents:Sr?"none":Ee,position:Sr?"absolute":Ee});var Wt={};Sr&&(Wt["aria-hidden"]=!0);var bt=me.createElement(fr,(0,ae.Z)({className:xe()(!vt&&ut,Wn),style:(0,Re.Z)((0,Re.Z)({},We),Fn)},Wt,wr,{ref:Ge}),Fe);return kn&&(bt=me.createElement(Ie.Z,{onResize:function(Ln){var zn=Ln.offsetWidth;Nr(zn)},disabled:yr},bt)),bt}var Yt=me.forwardRef(at);Yt.displayName="Item";var Xe=Yt;function lt(Ke){var Ge=me.useRef();Ge.current=Ke;var ut=me.useCallback(function(){for(var vt,Kt=arguments.length,vn=new Array(Kt),kn=0;kn1&&arguments[1]!==void 0?arguments[1]:1;Ue+=1;var vt=Ue;function Kt(vn){if(vn===0)ht(vt),Ge();else{var kn=Ce(function(){Kt(vn-1)});Mt.set(vt,kn)}}return Kt(ut),vt};Ft.cancel=function(Ke){var Ge=Mt.get(Ke);return ht(Ge),je(Ge)};var tt=Ft;function Jt(Ke){if(typeof MessageChannel=="undefined")tt(Ke);else{var Ge=new MessageChannel;Ge.port1.onmessage=function(){return Ke()},Ge.port2.postMessage(void 0)}}function Rt(){var Ke=me.useRef(null),Ge=function(vt){Ke.current||(Ke.current=[],Jt(function(){(0,Se.unstable_batchedUpdates)(function(){Ke.current.forEach(function(Kt){Kt()}),Ke.current=null})})),Ke.current.push(vt)};return Ge}function yn(Ke,Ge){var ut=me.useState(Ge),vt=(0,ve.Z)(ut,2),Kt=vt[0],vn=vt[1],kn=lt(function(yr){Ke(function(){vn(yr)})});return[Kt,kn]}var tn=me.createContext(null),Hn=["component"],Yn=["className"],tr=["className"],Qe=function(Ge,ut){var vt=me.useContext(tn);if(!vt){var Kt=Ge.component,vn=Kt===void 0?"div":Kt,kn=(0,ke.Z)(Ge,Hn);return me.createElement(vn,(0,ae.Z)({},kn,{ref:ut}))}var yr=vt.className,Pr=(0,ke.Z)(vt,Yn),cr=Ge.className,Wn=(0,ke.Z)(Ge,tr);return me.createElement(tn.Provider,{value:null},me.createElement(Xe,(0,ae.Z)({ref:ut,className:xe()(yr,cr)},Pr,Wn)))},we=me.forwardRef(Qe);we.displayName="RawItem";var At=we,Mn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],_t="responsive",$e="invalidate";function dt(Ke){return"+ ".concat(Ke.length," ...")}function qt(Ke,Ge){var ut=Ke.prefixCls,vt=ut===void 0?"rc-overflow":ut,Kt=Ke.data,vn=Kt===void 0?[]:Kt,kn=Ke.renderItem,yr=Ke.renderRawItem,Pr=Ke.itemKey,cr=Ke.itemWidth,Wn=cr===void 0?10:cr,Fn=Ke.ssr,$n=Ke.style,rr=Ke.className,Ir=Ke.maxCount,gr=Ke.renderRest,fr=Ke.renderRawRest,wr=Ke.suffix,Sr=Ke.component,Nr=Sr===void 0?"div":Sr,Fe=Ke.itemComponent,We=Ke.onVisibleChange,Wt=(0,ke.Z)(Ke,Mn),bt=Fn==="full",sn=Rt(),Ln=yn(sn,null),zn=(0,ve.Z)(Ln,2),ar=zn[0],ot=zn[1],Ye=ar||0,yt=yn(sn,new Map),Qt=(0,ve.Z)(yt,2),_n=Qt[0],mn=Qt[1],ln=yn(sn,0),sr=(0,ve.Z)(ln,2),ir=sr[0],xr=sr[1],er=yn(sn,0),Tn=(0,ve.Z)(er,2),Er=Tn[0],zr=Tn[1],Br=yn(sn,0),Cr=(0,ve.Z)(Br,2),Dr=Cr[0],ui=Cr[1],ei=(0,me.useState)(null),ii=(0,ve.Z)(ei,2),Ti=ii[0],ea=ii[1],Si=(0,me.useState)(null),zi=(0,ve.Z)(Si,2),ai=zi[0],vi=zi[1],_i=me.useMemo(function(){return ai===null&&bt?Number.MAX_SAFE_INTEGER:ai||0},[ai,ar]),Ki=(0,me.useState)(!1),Ea=(0,ve.Z)(Ki,2),Ta=Ea[0],va=Ea[1],ra="".concat(vt,"-item"),Yi=Math.max(ir,Er),ki=Ir===_t,Ma=vn.length&&ki,Ri=Ir===$e,si=Ma||typeof Ir=="number"&&vn.length>Ir,Ui=(0,me.useMemo)(function(){var Wi=vn;return Ma?ar===null&&bt?Wi=vn:Wi=vn.slice(0,Math.min(vn.length,Ye/Wn)):typeof Ir=="number"&&(Wi=vn.slice(0,Ir)),Wi},[vn,Wn,ar,Ir,Ma]),ua=(0,me.useMemo)(function(){return Ma?vn.slice(_i+1):vn.slice(Ui.length)},[vn,Ui,Ma,_i]),ta=(0,me.useCallback)(function(Wi,Xi){var da;return typeof Pr=="function"?Pr(Wi):(da=Pr&&(Wi==null?void 0:Wi[Pr]))!==null&&da!==void 0?da:Xi},[Pr]),oa=(0,me.useCallback)(kn||function(Wi){return Wi},[kn]);function Bi(Wi,Xi,da){ai===Wi&&(Xi===void 0||Xi===Ti)||(vi(Wi),da||(va(WiYe){Bi(Ca-1,Wi-Ka-Dr+Er);break}}wr&&La(0)+Dr>Ye&&ea(null)}},[Ye,_n,Er,Dr,ta,Ui]);var Va=Ta&&!!ua.length,ha={};Ti!==null&&Ma&&(ha={position:"absolute",left:Ti,top:0});var Ba={prefixCls:ra,responsive:Ma,component:Fe,invalidate:Ri},qa=yr?function(Wi,Xi){var da=ta(Wi,Xi);return me.createElement(tn.Provider,{key:da,value:(0,Re.Z)((0,Re.Z)({},Ba),{},{order:Xi,item:Wi,itemKey:da,registerSize:wa,display:Xi<=_i})},yr(Wi,Xi))}:function(Wi,Xi){var da=ta(Wi,Xi);return me.createElement(Xe,(0,ae.Z)({},Ba,{order:Xi,key:da,item:Wi,renderItem:oa,itemKey:da,registerSize:wa,display:Xi<=_i}))},Ya,so={order:Va?_i:Number.MAX_SAFE_INTEGER,className:"".concat(ra,"-rest"),registerSize:fa,display:Va};if(fr)fr&&(Ya=me.createElement(tn.Provider,{value:(0,Re.Z)((0,Re.Z)({},Ba),so)},fr(ua)));else{var _a=gr||dt;Ya=me.createElement(Xe,(0,ae.Z)({},Ba,so),typeof _a=="function"?_a(ua):_a)}var Aa=me.createElement(Nr,(0,ae.Z)({className:xe()(!Ri&&vt,rr),style:$n,ref:Ge},Wt),Ui.map(qa),si?Ya:null,wr&&me.createElement(Xe,(0,ae.Z)({},Ba,{responsive:ki,responsiveDisabled:!Ma,order:_i,className:"".concat(ra,"-suffix"),registerSize:Sa,display:!0,style:ha}),wr));return ki&&(Aa=me.createElement(Ie.Z,{onResize:pa,disabled:!Ma},Aa)),Aa}var Xn=me.forwardRef(qt);Xn.displayName="Overflow",Xn.Item=At,Xn.RESPONSIVE=_t,Xn.INVALIDATE=$e;var bn=Xn,un=bn,nn=se(21770),xn=se(80334),Pn=se(91881),De=me.createContext(null);function ue(Ke,Ge){return Ke===void 0?null:"".concat(Ke,"-").concat(Ge)}function ce(Ke){var Ge=me.useContext(De);return ue(Ge,Ke)}var he=se(56982),fe=["children","locked"],le=me.createContext(null);function Me(Ke,Ge){var ut=(0,Re.Z)({},Ke);return Object.keys(Ge).forEach(function(vt){var Kt=Ge[vt];Kt!==void 0&&(ut[vt]=Kt)}),ut}function Ve(Ke){var Ge=Ke.children,ut=Ke.locked,vt=(0,ke.Z)(Ke,fe),Kt=me.useContext(le),vn=(0,he.Z)(function(){return Me(Kt,vt)},[Kt,vt],function(kn,yr){return!ut&&(kn[0]!==yr[0]||!(0,Pn.Z)(kn[1],yr[1],!0))});return me.createElement(le.Provider,{value:vn},Ge)}var ft=[],Ht=me.createContext(null);function Zt(){return me.useContext(Ht)}var jt=me.createContext(ft);function $t(Ke){var Ge=me.useContext(jt);return me.useMemo(function(){return Ke!==void 0?[].concat((0,qe.Z)(Ge),[Ke]):Ge},[Ge,Ke])}var Je=me.createContext(null),Et=me.createContext({}),Lt=Et,Xt=se(15105),wt=se(75164),Nn=function(Ke){if(!Ke)return!1;if(Ke instanceof Element){if(Ke.offsetParent)return!0;if(Ke.getBBox){var Ge=Ke.getBBox(),ut=Ge.width,vt=Ge.height;if(ut||vt)return!0}if(Ke.getBoundingClientRect){var Kt=Ke.getBoundingClientRect(),vn=Kt.width,kn=Kt.height;if(vn||kn)return!0}}return!1};function et(Ke){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Nn(Ke)){var ut=Ke.nodeName.toLowerCase(),vt=["input","select","textarea","button"].includes(ut)||Ke.isContentEditable||ut==="a"&&!!Ke.getAttribute("href"),Kt=Ke.getAttribute("tabindex"),vn=Number(Kt),kn=null;return Kt&&!Number.isNaN(vn)?kn=vn:vt&&kn===null&&(kn=0),vt&&Ke.disabled&&(kn=null),kn!==null&&(kn>=0||Ge&&kn<0)}return!1}function It(Ke){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=(0,qe.Z)(Ke.querySelectorAll("*")).filter(function(vt){return et(vt,Ge)});return et(Ke,Ge)&&ut.unshift(Ke),ut}var gn=null;function hn(){gn=document.activeElement}function An(){gn=null}function Vn(){if(gn)try{gn.focus()}catch(Ke){}}function mr(Ke,Ge){if(Ge.keyCode===9){var ut=It(Ke),vt=ut[Ge.shiftKey?0:ut.length-1],Kt=vt===document.activeElement||Ke===document.activeElement;if(Kt){var vn=ut[Ge.shiftKey?ut.length-1:0];vn.focus(),Ge.preventDefault()}}}var ur=Xt.Z.LEFT,dr=Xt.Z.RIGHT,Fr=Xt.Z.UP,nr=Xt.Z.DOWN,_r=Xt.Z.ENTER,oi=Xt.Z.ESC,Wr=Xt.Z.HOME,xi=Xt.Z.END,ti=[Fr,nr,ur,dr];function Ct(Ke,Ge,ut,vt){var Kt,vn,kn,yr,Pr="prev",cr="next",Wn="children",Fn="parent";if(Ke==="inline"&&vt===_r)return{inlineTrigger:!0};var $n=(Kt={},(0,Pe.Z)(Kt,Fr,Pr),(0,Pe.Z)(Kt,nr,cr),Kt),rr=(vn={},(0,Pe.Z)(vn,ur,ut?cr:Pr),(0,Pe.Z)(vn,dr,ut?Pr:cr),(0,Pe.Z)(vn,nr,Wn),(0,Pe.Z)(vn,_r,Wn),vn),Ir=(kn={},(0,Pe.Z)(kn,Fr,Pr),(0,Pe.Z)(kn,nr,cr),(0,Pe.Z)(kn,_r,Wn),(0,Pe.Z)(kn,oi,Fn),(0,Pe.Z)(kn,ur,ut?Wn:Fn),(0,Pe.Z)(kn,dr,ut?Fn:Wn),kn),gr={inline:$n,horizontal:rr,vertical:Ir,inlineSub:$n,horizontalSub:Ir,verticalSub:Ir},fr=(yr=gr["".concat(Ke).concat(Ge?"":"Sub")])===null||yr===void 0?void 0:yr[vt];switch(fr){case Pr:return{offset:-1,sibling:!0};case cr:return{offset:1,sibling:!0};case Fn:return{offset:-1,sibling:!1};case Wn:return{offset:1,sibling:!1};default:return null}}function wn(Ke){for(var Ge=Ke;Ge;){if(Ge.getAttribute("data-menu-list"))return Ge;Ge=Ge.parentElement}return null}function Rn(Ke,Ge){for(var ut=Ke||document.activeElement;ut;){if(Ge.has(ut))return ut;ut=ut.parentElement}return null}function an(Ke,Ge){var ut=It(Ke,!0);return ut.filter(function(vt){return Ge.has(vt)})}function vr(Ke,Ge,ut){var vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ke)return null;var Kt=an(Ke,Ge),vn=Kt.length,kn=Kt.findIndex(function(yr){return ut===yr});return vt<0?kn===-1?kn=vn-1:kn-=1:vt>0&&(kn+=1),kn=(kn+vn)%vn,Kt[kn]}function lr(Ke,Ge,ut,vt,Kt,vn,kn,yr,Pr,cr){var Wn=me.useRef(),Fn=me.useRef();Fn.current=Ge;var $n=function(){wt.Z.cancel(Wn.current)};return me.useEffect(function(){return function(){$n()}},[]),function(rr){var Ir=rr.which;if([].concat(ti,[_r,oi,Wr,xi]).includes(Ir)){var gr,fr,wr,Sr=function(){gr=new Set,fr=new Map,wr=new Map;var Qt=vn();return Qt.forEach(function(_n){var mn=document.querySelector("[data-menu-id='".concat(ue(vt,_n),"']"));mn&&(gr.add(mn),wr.set(mn,_n),fr.set(_n,mn))}),gr};Sr();var Nr=fr.get(Ge),Fe=Rn(Nr,gr),We=wr.get(Fe),Wt=Ct(Ke,kn(We,!0).length===1,ut,Ir);if(!Wt&&Ir!==Wr&&Ir!==xi)return;(ti.includes(Ir)||[Wr,xi].includes(Ir))&&rr.preventDefault();var bt=function(Qt){if(Qt){var _n=Qt,mn=Qt.querySelector("a");mn!=null&&mn.getAttribute("href")&&(_n=mn);var ln=wr.get(Qt);yr(ln),$n(),Wn.current=(0,wt.Z)(function(){Fn.current===ln&&_n.focus()})}};if([Wr,xi].includes(Ir)||Wt.sibling||!Fe){var sn;!Fe||Ke==="inline"?sn=Kt.current:sn=wn(Fe);var Ln,zn=an(sn,gr);Ir===Wr?Ln=zn[0]:Ir===xi?Ln=zn[zn.length-1]:Ln=vr(sn,gr,Fe,Wt.offset),bt(Ln)}else if(Wt.inlineTrigger)Pr(We);else if(Wt.offset>0)Pr(We,!0),$n(),Wn.current=(0,wt.Z)(function(){Sr();var yt=Fe.getAttribute("aria-controls"),Qt=document.getElementById(yt),_n=vr(Qt,gr);bt(_n)},5);else if(Wt.offset<0){var ar=kn(We,!0),ot=ar[ar.length-2],Ye=fr.get(ot);Pr(ot,!1),bt(Ye)}}cr==null||cr(rr)}}function Gn(Ke){Promise.resolve().then(Ke)}var jn="__RC_UTIL_PATH_SPLIT__",nt=function(Ge){return Ge.join(jn)},mt=function(Ge){return Ge.split(jn)},Bt="rc-menu-more";function rn(){var Ke=me.useState({}),Ge=(0,ve.Z)(Ke,2),ut=Ge[1],vt=(0,me.useRef)(new Map),Kt=(0,me.useRef)(new Map),vn=me.useState([]),kn=(0,ve.Z)(vn,2),yr=kn[0],Pr=kn[1],cr=(0,me.useRef)(0),Wn=(0,me.useRef)(!1),Fn=function(){Wn.current||ut({})},$n=(0,me.useCallback)(function(Nr,Fe){var We=nt(Fe);Kt.current.set(We,Nr),vt.current.set(Nr,We),cr.current+=1;var Wt=cr.current;Gn(function(){Wt===cr.current&&Fn()})},[]),rr=(0,me.useCallback)(function(Nr,Fe){var We=nt(Fe);Kt.current.delete(We),vt.current.delete(Nr)},[]),Ir=(0,me.useCallback)(function(Nr){Pr(Nr)},[]),gr=(0,me.useCallback)(function(Nr,Fe){var We=vt.current.get(Nr)||"",Wt=mt(We);return Fe&&yr.includes(Wt[0])&&Wt.unshift(Bt),Wt},[yr]),fr=(0,me.useCallback)(function(Nr,Fe){return Nr.some(function(We){var Wt=gr(We,!0);return Wt.includes(Fe)})},[gr]),wr=function(){var Fe=(0,qe.Z)(vt.current.keys());return yr.length&&Fe.push(Bt),Fe},Sr=(0,me.useCallback)(function(Nr){var Fe="".concat(vt.current.get(Nr)).concat(jn),We=new Set;return(0,qe.Z)(Kt.current.keys()).forEach(function(Wt){Wt.startsWith(Fe)&&We.add(Kt.current.get(Wt))}),We},[]);return me.useEffect(function(){return function(){Wn.current=!0}},[]),{registerPath:$n,unregisterPath:rr,refreshOverflowKeys:Ir,isSubPathKey:fr,getKeyPath:gr,getKeys:wr,getSubPathKeys:Sr}}function Ze(Ke){var Ge=me.useRef(Ke);Ge.current=Ke;var ut=me.useCallback(function(){for(var vt,Kt=arguments.length,vn=new Array(Kt),kn=0;kn1&&(Sr.motionAppear=!1);var Nr=Sr.onVisibleChanged;return Sr.onVisibleChanged=function(Fe){return!$n.current&&!Fe&&fr(!0),Nr==null?void 0:Nr(Fe)},gr?null:me.createElement(Ve,{mode:vn,locked:!$n.current},me.createElement(ca.Z,(0,ae.Z)({visible:wr},Sr,{forceRender:Pr,removeOnLeave:!1,leavedClassName:"".concat(yr,"-hidden")}),function(Fe){var We=Fe.className,Wt=Fe.style;return me.createElement(Fi,{id:Ge,className:We,style:Wt},Kt)}))}var hi=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],zt=["active"],Tt=function(Ge){var ut,vt=Ge.style,Kt=Ge.className,vn=Ge.title,kn=Ge.eventKey,yr=Ge.warnKey,Pr=Ge.disabled,cr=Ge.internalPopupClose,Wn=Ge.children,Fn=Ge.itemIcon,$n=Ge.expandIcon,rr=Ge.popupClassName,Ir=Ge.popupOffset,gr=Ge.popupStyle,fr=Ge.onClick,wr=Ge.onMouseEnter,Sr=Ge.onMouseLeave,Nr=Ge.onTitleClick,Fe=Ge.onTitleMouseEnter,We=Ge.onTitleMouseLeave,Wt=(0,ke.Z)(Ge,hi),bt=ce(kn),sn=me.useContext(le),Ln=sn.prefixCls,zn=sn.mode,ar=sn.openKeys,ot=sn.disabled,Ye=sn.overflowDisabled,yt=sn.activeKey,Qt=sn.selectedKeys,_n=sn.itemIcon,mn=sn.expandIcon,ln=sn.onItemClick,sr=sn.onOpenChange,ir=sn.onActive,xr=me.useContext(Lt),er=xr._internalRenderSubMenuItem,Tn=me.useContext(Je),Er=Tn.isSubPathKey,zr=$t(),Br="".concat(Ln,"-submenu"),Cr=ot||Pr,Dr=me.useRef(),ui=me.useRef(),ei=Fn!=null?Fn:_n,ii=$n!=null?$n:mn,Ti=ar.includes(kn),ea=!Ye&&Ti,Si=Er(Qt,kn),zi=Ar(kn,Cr,Fe,We),ai=zi.active,vi=(0,ke.Z)(zi,zt),_i=me.useState(!1),Ki=(0,ve.Z)(_i,2),Ea=Ki[0],Ta=Ki[1],va=function(Sa){Cr||Ta(Sa)},ra=function(Sa){va(!0),wr==null||wr({key:kn,domEvent:Sa})},Yi=function(Sa){va(!1),Sr==null||Sr({key:kn,domEvent:Sa})},ki=me.useMemo(function(){return ai||(zn!=="inline"?Ea||Er([yt],kn):!1)},[zn,ai,yt,Ea,kn,Er]),Ma=Lr(zr.length),Ri=function(Sa){Cr||(Nr==null||Nr({key:kn,domEvent:Sa}),zn==="inline"&&sr(kn,!Ti))},si=Ze(function(fa){fr==null||fr(Dt(fa)),ln(fa)}),Ui=function(Sa){zn!=="inline"&&sr(kn,Sa)},ua=function(){ir(kn)},ta=bt&&"".concat(bt,"-popup"),oa=me.createElement("div",(0,ae.Z)({role:"menuitem",style:Ma,className:"".concat(Br,"-title"),tabIndex:Cr?null:-1,ref:Dr,title:typeof vn=="string"?vn:null,"data-menu-id":Ye&&bt?null:bt,"aria-expanded":ea,"aria-haspopup":!0,"aria-controls":ta,"aria-disabled":Cr,onClick:Ri,onFocus:ua},vi),vn,me.createElement(kt,{icon:zn!=="horizontal"?ii:void 0,props:(0,Re.Z)((0,Re.Z)({},Ge),{},{isOpen:ea,isSubMenu:!0})},me.createElement("i",{className:"".concat(Br,"-arrow")}))),Bi=me.useRef(zn);if(zn!=="inline"&&zr.length>1?Bi.current="vertical":Bi.current=zn,!Ye){var pa=Bi.current;oa=me.createElement(Ji,{mode:pa,prefixCls:Br,visible:!cr&&ea&&zn!=="inline",popupClassName:rr,popupOffset:Ir,popupStyle:gr,popup:me.createElement(Ve,{mode:pa==="horizontal"?"vertical":pa},me.createElement(Fi,{id:ta,ref:ui},Wn)),disabled:Cr,onVisibleChange:Ui},oa)}var wa=me.createElement(un.Item,(0,ae.Z)({role:"none"},Wt,{component:"li",style:vt,className:xe()(Br,"".concat(Br,"-").concat(zn),Kt,(ut={},(0,Pe.Z)(ut,"".concat(Br,"-open"),ea),(0,Pe.Z)(ut,"".concat(Br,"-active"),ki),(0,Pe.Z)(ut,"".concat(Br,"-selected"),Si),(0,Pe.Z)(ut,"".concat(Br,"-disabled"),Cr),ut)),onMouseEnter:ra,onMouseLeave:Yi}),oa,!Ye&&me.createElement(na,{id:ta,open:ea,keyPath:zr},Wn));return er&&(wa=er(wa,Ge,{selected:Si,active:ki,open:ea,disabled:Cr})),me.createElement(Ve,{onItemClick:si,mode:zn==="horizontal"?"vertical":zn,itemIcon:ei,expandIcon:ii},wa)};function fn(Ke){var Ge=Ke.eventKey,ut=Ke.children,vt=$t(Ge),Kt=Ci(ut,vt),vn=Zt();me.useEffect(function(){if(vn)return vn.registerPath(Ge,vt),function(){vn.unregisterPath(Ge,vt)}},[vt]);var kn;return vn?kn=Kt:kn=me.createElement(Tt,Ke,Kt),me.createElement(jt.Provider,{value:vt},kn)}var Bn=se(71002),Qn=["className","title","eventKey","children"],Or=["children"],Zr=function(Ge){var ut=Ge.className,vt=Ge.title,Kt=Ge.eventKey,vn=Ge.children,kn=(0,ke.Z)(Ge,Qn),yr=me.useContext(le),Pr=yr.prefixCls,cr="".concat(Pr,"-item-group");return me.createElement("li",(0,ae.Z)({role:"presentation"},kn,{onClick:function(Fn){return Fn.stopPropagation()},className:xe()(cr,ut)}),me.createElement("div",{role:"presentation",className:"".concat(cr,"-title"),title:typeof vt=="string"?vt:void 0},vt),me.createElement("ul",{role:"group",className:"".concat(cr,"-list")},vn))};function Jr(Ke){var Ge=Ke.children,ut=(0,ke.Z)(Ke,Or),vt=$t(ut.eventKey),Kt=Ci(Ge,vt),vn=Zt();return vn?Kt:me.createElement(Zr,(0,hr.Z)(ut,["warnKey"]),Kt)}function ri(Ke){var Ge=Ke.className,ut=Ke.style,vt=me.useContext(le),Kt=vt.prefixCls,vn=Zt();return vn?null:me.createElement("li",{role:"separator",className:xe()("".concat(Kt,"-item-divider"),Ge),style:ut})}var qr=["label","children","key","type"];function fi(Ke){return(Ke||[]).map(function(Ge,ut){if(Ge&&(0,Bn.Z)(Ge)==="object"){var vt=Ge,Kt=vt.label,vn=vt.children,kn=vt.key,yr=vt.type,Pr=(0,ke.Z)(vt,qr),cr=kn!=null?kn:"tmp-".concat(ut);return vn||yr==="group"?yr==="group"?me.createElement(Jr,(0,ae.Z)({key:cr},Pr,{title:Kt}),fi(vn)):me.createElement(fn,(0,ae.Z)({key:cr},Pr,{title:Kt}),fi(vn)):yr==="divider"?me.createElement(ri,(0,ae.Z)({key:cr},Pr)):me.createElement(kr,(0,ae.Z)({key:cr},Pr),Kt)}return null}).filter(function(Ge){return Ge})}function Ai(Ke,Ge,ut){var vt=Ke;return Ge&&(vt=fi(Ge)),Ci(vt,ut)}var jr=["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"],wi=[],Di=me.forwardRef(function(Ke,Ge){var ut,vt,Kt=Ke,vn=Kt.prefixCls,kn=vn===void 0?"rc-menu":vn,yr=Kt.rootClassName,Pr=Kt.style,cr=Kt.className,Wn=Kt.tabIndex,Fn=Wn===void 0?0:Wn,$n=Kt.items,rr=Kt.children,Ir=Kt.direction,gr=Kt.id,fr=Kt.mode,wr=fr===void 0?"vertical":fr,Sr=Kt.inlineCollapsed,Nr=Kt.disabled,Fe=Kt.disabledOverflow,We=Kt.subMenuOpenDelay,Wt=We===void 0?.1:We,bt=Kt.subMenuCloseDelay,sn=bt===void 0?.1:bt,Ln=Kt.forceSubMenuRender,zn=Kt.defaultOpenKeys,ar=Kt.openKeys,ot=Kt.activeKey,Ye=Kt.defaultActiveFirst,yt=Kt.selectable,Qt=yt===void 0?!0:yt,_n=Kt.multiple,mn=_n===void 0?!1:_n,ln=Kt.defaultSelectedKeys,sr=Kt.selectedKeys,ir=Kt.onSelect,xr=Kt.onDeselect,er=Kt.inlineIndent,Tn=er===void 0?24:er,Er=Kt.motion,zr=Kt.defaultMotions,Br=Kt.triggerSubMenuAction,Cr=Br===void 0?"hover":Br,Dr=Kt.builtinPlacements,ui=Kt.itemIcon,ei=Kt.expandIcon,ii=Kt.overflowedIndicator,Ti=ii===void 0?"...":ii,ea=Kt.overflowedIndicatorPopupClassName,Si=Kt.getPopupContainer,zi=Kt.onClick,ai=Kt.onOpenChange,vi=Kt.onKeyDown,_i=Kt.openAnimation,Ki=Kt.openTransitionName,Ea=Kt._internalRenderMenuItem,Ta=Kt._internalRenderSubMenuItem,va=(0,ke.Z)(Kt,jr),ra=me.useMemo(function(){return Ai(rr,$n,wi)},[rr,$n]),Yi=me.useState(!1),ki=(0,ve.Z)(Yi,2),Ma=ki[0],Ri=ki[1],si=me.useRef(),Ui=Nt(gr),ua=Ir==="rtl",ta=(0,nn.Z)(zn,{value:ar,postState:function(Pa){return Pa||wi}}),oa=(0,ve.Z)(ta,2),Bi=oa[0],pa=oa[1],wa=function(Pa){var Xa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function go(){pa(Pa),ai==null||ai(Pa)}Xa?(0,Se.flushSync)(go):go()},fa=me.useState(Bi),Sa=(0,ve.Z)(fa,2),La=Sa[0],Va=Sa[1],ha=me.useRef(!1),Ba=me.useMemo(function(){return(wr==="inline"||wr==="vertical")&&Sr?["vertical",Sr]:[wr,!1]},[wr,Sr]),qa=(0,ve.Z)(Ba,2),Ya=qa[0],so=qa[1],_a=Ya==="inline",Aa=me.useState(Ya),Wi=(0,ve.Z)(Aa,2),Xi=Wi[0],da=Wi[1],Ca=me.useState(so),Ka=(0,ve.Z)(Ca,2),io=Ka[0],ho=Ka[1];me.useEffect(function(){da(Ya),ho(so),ha.current&&(_a?pa(La):wa(wi))},[Ya,so]);var Po=me.useState(0),No=(0,ve.Z)(Po,2),lo=No[0],Bo=No[1],ia=lo>=ra.length-1||Xi!=="horizontal"||Fe;me.useEffect(function(){_a&&Va(Bi)},[Bi]),me.useEffect(function(){return ha.current=!0,function(){ha.current=!1}},[]);var Vi=rn(),Oa=Vi.registerPath,Da=Vi.unregisterPath,co=Vi.refreshOverflowKeys,ao=Vi.isSubPathKey,hs=Vi.getKeyPath,$o=Vi.getKeys,ps=Vi.getSubPathKeys,sa=me.useMemo(function(){return{registerPath:Oa,unregisterPath:Da}},[Oa,Da]),Yr=me.useMemo(function(){return{isSubPathKey:ao}},[ao]);me.useEffect(function(){co(ia?wi:ra.slice(lo+1).map(function(oo){return oo.key}))},[lo,ia]);var Oi=(0,nn.Z)(ot||Ye&&((ut=ra[0])===null||ut===void 0?void 0:ut.key),{value:ot}),Pi=(0,ve.Z)(Oi,2),ji=Pi[0],Wa=Pi[1],Ga=Ze(function(oo){Wa(oo)}),_o=Ze(function(){Wa(void 0)});(0,me.useImperativeHandle)(Ge,function(){return{list:si.current,focus:function(Pa){var Xa,go=ji!=null?ji:(Xa=ra.find(function(xs){return!xs.props.disabled}))===null||Xa===void 0?void 0:Xa.key;if(go){var yo,Ko,wo;(yo=si.current)===null||yo===void 0||(Ko=yo.querySelector("li[data-menu-id='".concat(ue(Ui,go),"']")))===null||Ko===void 0||(wo=Ko.focus)===null||wo===void 0||wo.call(Ko,Pa)}}}});var Zo=(0,nn.Z)(ln||[],{value:sr,postState:function(Pa){return Array.isArray(Pa)?Pa:Pa==null?wi:[Pa]}}),ls=(0,ve.Z)(Zo,2),ya=ls[0],Ro=ls[1],cs=function(Pa){if(Qt){var Xa=Pa.key,go=ya.includes(Xa),yo;mn?go?yo=ya.filter(function(wo){return wo!==Xa}):yo=[].concat((0,qe.Z)(ya),[Xa]):yo=[Xa],Ro(yo);var Ko=(0,Re.Z)((0,Re.Z)({},Pa),{},{selectedKeys:yo});go?xr==null||xr(Ko):ir==null||ir(Ko)}!mn&&Bi.length&&Xi!=="inline"&&wa(wi)},ul=Ze(function(oo){zi==null||zi(Dt(oo)),cs(oo)}),Bs=Ze(function(oo,Pa){var Xa=Bi.filter(function(yo){return yo!==oo});if(Pa)Xa.push(oo);else if(Xi!=="inline"){var go=ps(oo);Xa=Xa.filter(function(yo){return!go.has(yo)})}(0,Pn.Z)(Bi,Xa,!0)||wa(Xa,!0)}),ms=function(Pa,Xa){var go=Xa!=null?Xa:!Bi.includes(Pa);Bs(Pa,go)},Ho=lr(Xi,ji,ua,Ui,si,$o,hs,Wa,ms,vi);me.useEffect(function(){Ri(!0)},[]);var Ds=me.useMemo(function(){return{_internalRenderMenuItem:Ea,_internalRenderSubMenuItem:Ta}},[Ea,Ta]),Is=Xi!=="horizontal"||Fe?ra:ra.map(function(oo,Pa){return me.createElement(Ve,{key:oo.key,overflowDisabled:Pa>lo},oo)}),Js=me.createElement(un,(0,ae.Z)({id:gr,ref:si,prefixCls:"".concat(kn,"-overflow"),component:"ul",itemComponent:kr,className:xe()(kn,"".concat(kn,"-root"),"".concat(kn,"-").concat(Xi),cr,(vt={},(0,Pe.Z)(vt,"".concat(kn,"-inline-collapsed"),io),(0,Pe.Z)(vt,"".concat(kn,"-rtl"),ua),vt),yr),dir:Ir,style:Pr,role:"menu",tabIndex:Fn,data:Is,renderRawItem:function(Pa){return Pa},renderRawRest:function(Pa){var Xa=Pa.length,go=Xa?ra.slice(-Xa):null;return me.createElement(fn,{eventKey:Bt,title:Ti,disabled:ia,internalPopupClose:Xa===0,popupClassName:ea},go)},maxCount:Xi!=="horizontal"||Fe?un.INVALIDATE:un.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Pa){Bo(Pa)},onKeyDown:Ho},va));return me.createElement(Lt.Provider,{value:Ds},me.createElement(De.Provider,{value:Ui},me.createElement(Ve,{prefixCls:kn,rootClassName:yr,mode:Xi,openKeys:Bi,rtl:ua,disabled:Nr,motion:Ma?Er:null,defaultMotions:Ma?zr:null,activeKey:ji,onActive:Ga,onInactive:_o,selectedKeys:ya,inlineIndent:Tn,subMenuOpenDelay:Wt,subMenuCloseDelay:sn,forceSubMenuRender:Ln,builtinPlacements:Dr,triggerSubMenuAction:Cr,getPopupContainer:Si,itemIcon:ui,expandIcon:ei,onItemClick:ul,onOpenChange:Bs},me.createElement(Je.Provider,{value:Yr},Js),me.createElement("div",{style:{display:"none"},"aria-hidden":!0},me.createElement(Ht.Provider,{value:sa},ra)))))}),Li=Di,Te=Li;Te.Item=kr,Te.SubMenu=fn,Te.ItemGroup=Jr,Te.Divider=ri;var He=Te},81626:function(dn,en){"use strict";en.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},66680:function(dn,en,se){"use strict";se.d(en,{Z:function(){return Pe}});var ae=se(67294);function Pe(Re){var qe=ae.useRef();qe.current=Re;var ve=ae.useCallback(function(){for(var ke,Le=arguments.length,xe=new Array(Le),me=0;me2&&arguments[2]!==void 0?arguments[2]:!1,Le=new Set;function xe(me,Ie){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ne=Le.has(me);if((0,Pe.ZP)(!Ne,"Warning: There may be circular references"),Ne)return!1;if(me===Ie)return!0;if(ke&&st>1)return!1;Le.add(me);var xt=st+1;if(Array.isArray(me)){if(!Array.isArray(Ie)||me.length!==Ie.length)return!1;for(var pt=0;pt