(self.webpackChunk=self.webpackChunk||[]).push([[5888],{40001:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={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"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},26227:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={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"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},41464:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={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"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},73331:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={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"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},15277:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={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"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},61481:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},33853:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={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"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},12893:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},32134:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},61485:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={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"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},47472:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={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"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},87395:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),me={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"},_e=me,xe=ie(7657),Ce=function(fe,Je){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Je,icon:_e}))},Oe=qe.forwardRef(Ce),Be=Oe},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(tn,Wt){"use strict";Wt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},84915: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 tn={},Wt="5.0",ie={},z=null,qe=!1,me=!1,_e=null,xe=!1,Ce=null,Oe=null,Be=0;Be4?parseFloat(we):5};tn.setHTML5Codebase=function(we,Ze){Oe=we,Le(we,Ze)},tn.setJavaCodebase=tn.setJavaCodebaseVersion=tn.isCompiledInstalled=tn.setPreCompiledScriptPath=tn.setPreCompiledResourcePath=function(){},tn.setHTML5CodebaseVersion=function(we,Ze){var Ue=parseFloat(we);if(Ue!==NaN&&Ue<5){console.log("The GeoGebra HTML5 codebase version "+Ue+" is deprecated. Using version latest instead.");return}Ce=we,se(we,Ze)},tn.getHTML5CodebaseVersion=function(){return nt},tn.getParameters=function(){return ie},tn.setFontsCSSURL=function(we){zt=we},tn.setGiacJSURL=function(we){},tn.setJNLPFile=function(we){fe=we},tn.setJNLPBaseDir=function(we){},tn.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ze="auto",Ue=ie.id,Kt,kt=!1,Tt=0;Tt=5)return!0;var we=tn.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},tn.startAnimation=function(){var we=tn.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},tn.stopAnimation=function(){var we=tn.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},tn.getAppletObject=function(){var we=ie.id!==void 0?ie.id:"ggbApplet";return window[we]},tn.resize=function(){};var bt=function(we,Ze,Ue){var Kt=document.createElement("param");Kt.setAttribute("name",Ze),Kt.setAttribute("value",Ue),we.appendChild(Kt)},Ne=function(we){return we&&we!=="false"},rt=function(we,Ze,Ue){xt(nt)<=4.2&&(Ue=!0);var Kt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==nt||ggbHTML5LoadedCodebaseIsWebSimple&&!Ve)&&(Kt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var kt=document.createElement("div");kt.classList.add("appletParameters","notranslate");var Tt=Ze.width,Re=Ze.height;if(Ze.disableAutoScale=Ze.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ze.disableAutoScale,Ze.width!==void 0)if(xt(nt)<=4.4)Ne(Ze.showToolBar)&&(Ze.height-=7),Ne(Ze.showAlgebraInput)&&(Ze.height-=37),Ze.width<605&&Ne(Ze.showToolBar)&&(Ze.width=605,Tt=605);else{var $t=100;(Ne(Ze.showToolBar)||Ne(Ze.showMenuBar))&&(Ze.hasOwnProperty("customToolBar")&&(Ze.customToolbar=Ze.customToolBar),$t=Ne(Ze.showMenuBar)?245:155),Tt<$t&&(Ze.width=$t,Tt=$t)}kt.style.border="none",kt.style.display="inline-block";for(var lt in Ze)Ze.hasOwnProperty(lt)&<!=="appletOnLoad"&&kt.setAttribute("data-param-"+lt,Ze[lt]);zt&&kt.setAttribute("data-param-fontscssurl",zt),tn.resize=function(){GGBAppletUtils.responsiveResize(we,Ze)},window.addEventListener("resize",function(Mt){tn.resize()});var ae=typeof Ze.appletOnLoad=="function"?Ze.appletOnLoad:function(){};if(!Ue&&Ze.width!==void 0){Ze.hasOwnProperty("showSplash")||kt.setAttribute("data-param-showSplash","false");var te=we.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=Te(Tt,Re,Ze.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=Tt+"px",te.style.height=Re+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),xt(nt)>=5?(Ze.appletOnLoad=function(Mt){var mt=we.querySelector(".ggb_preview");mt&&mt.parentNode.removeChild(mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Mt)},ee||te.appendChild(oe)):kt.appendChild(oe),te.appendChild(kt),ee||we.appendChild(te),setTimeout(function(){tn.resize()},1)}else{var ue=document.createElement("div");ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.appendChild(kt),we.appendChild(ue),Ze.appletOnLoad=function(Mt){tn.resize(),ae(Mt)}}function ne(Mt,mt){mt&&typeof mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Mt,mt.appletOnLoad):renderGGBElement(Mt),ht("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",mt)}function he(Mt,mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Mt,params:mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Lt){ne(Lt.article,Lt.params)}),html5AppletsToProcess=null)},xt(nt)<5&&(Mt.className+=" geogebraweb")):ne(Mt,mt)}if(Kt){scriptLoadStarted=!0;for(var be=0;be0?(lt.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):rt(lt,Ze,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Dt=Kt,rt(we,Ze,!1);if(!window.GGBT_wsf_view)for(Re=0;Re<$t.length;Re++)we.removeChild($t[Re])},Tt=we.getElementsByClassName("ggb_preview_play"),Re=0;Rewe/4*3&&(lt=we/4*3),ae=lt/5.8,$t.setAttribute("src",Et),$t.setAttribute("width",lt),$t.setAttribute("height",ae);var te=(we-lt)/2,ee=(Ze-ae)/2;$t.style.left=te+"px",$t.style.top=ee+"px",kt.appendChild($t)}}return kt.appendChild(Re),kt},Ot=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},ve=["web","webSimple","web3d","tablet","tablet3d","phone"],se=function(we,Ze){if(nt=we,Ze){Le(nt,!0);return}var Ue=!qe;if(Ue){var Kt=xt(nt);!isNaN(Kt)&&Kt<4.4&&(Ue=!1)}var kt,Tt;window.location.protocol.substr(0,4)==="http"?kt=window.location.protocol:kt="http:";var Re=nt.indexOf("//");Re>0?Tt=nt:Re===0?Tt=kt+nt:Tt="https://www.geogebra.org/apps/5.2.814.0/";for(var $t in ve)if(nt.slice(ve[$t].length*-1)===ve[$t]||nt.slice((ve[$t].length+1)*-1)===ve[$t]+"/"){Le(Tt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ue&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Ne(ie.showToolBar)&&!Ne(ie.showMenuBar)&&!Ne(ie.showAlgebraInput)&&!Ne(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?Tt+="webSimple/":Tt+="web3d/",Le(Tt,!1)},Le=function(we,Ze){if(we.requirejs){Je=we;return}we.slice(-1)!=="/"&&(we+="/"),Je=we,Ze===null&&(Ze=we.indexOf("http")===-1),Se=Ze,$e="web.nocache.js",Ve=!1;var Ue=Je.split("/");Ue.length>1&&(!Ze&&Ue[Ue.length-2]==="webSimple"?($e="webSimple.nocache.js",Ve=!0):ve.indexOf(Ue[Ue.length-2])>=0&&($e=Ue[Ue.length-2]+".nocache.js")),Ue=we.split("/"),nt=Ue[Ue.length-3],nt.substr(0,4)==="test"?nt=nt.substr(4,1)+"."+nt.substr(5,1):(nt.substr(0,3)==="war"||nt.substr(0,4)==="beta")&&(nt="5.0");var Kt=parseFloat(nt);Kt!==NaN&&Kt<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Kt+" is deprecated. Using version latest instead."),se("5.0",Ze))},ht=function(we,Ze){window.console&&window.console.log&&(!Ze||typeof Ze.showLogging=="undefined"||Ze.showLogging&&Ze.showLogging!=="false")&&console.log(we)};ie.material_id!==void 0?Ft(yt):yt();function yt(){var we=Wt;Ce!==null?we=Ce:parseFloat(we)<5&&(we="5.0"),se(we,!1),Oe!==null&&Le(Oe,Se),xe=!0}return tn},GGBAppletUtils=function(){"use strict";function tn(){return window.GGBT_wsf_edit!==void 0}function Wt(xe,Ce){Ce!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Ce+","+Ce+")",xe.style.webkitTransform="scale("+Ce+","+Ce+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function ie(xe,Ce,Oe,Be,Pe,fe){var Je=null;if(fe!=null&&fe!="")for(var Se=xe.parentNode;Se!=null;)if((" "+Se.className+" ").indexOf(" "+fe+" ")>-1){Je=Se;break}else Se=Se.parentNode;var Dt=0,nt=0,$e=0,Ve=0,je=0,Et=0,Bt=0;if(Je)Dt=Je.offsetWidth,nt=Math.max(Be?Je.offsetWidth:0,Je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Dt=Math.min(window.innerWidth,document.documentElement.clientWidth),nt=Math.min(window.innerHeight,document.documentElement.clientHeight),$e=Dt):(Dt=window.innerWidth,nt=window.innerHeight,$e=window.innerWidth),xe){var zt=xe.getBoundingClientRect();zt.left>0&&zt.left<=Dt&&(Pe===void 0||!Pe)&&(document.dir==="rtl"?(je=Dt-zt.width-zt.left,Et=$e<=480?10:30):(Et=zt.left,je=$e<=480?10:30),Ve=Et+je)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Pt=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ve=40,Bt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ve=0,Bt=40)}}return xe&&((Oe===void 0||!Oe)&&Ce>0&&Ce+Ve1&&(fe=!0)),Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Pe=z(xe,Ce,fe,Oe,xe.scaleContainerClass);else return Be;return fe&&(!xe.hasOwnProperty("scale")||Be===1)?Pe:Math.min(Be,Pe)}function me(xe){var Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),Oe=Math.min(window.innerHeight,document.documentElement.clientHeight),Be=xe.getBoundingClientRect(),Pe=(Ce-Be.width)/2,fe=(Oe-Be.height)/2;fe<0&&(fe=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Pe<40?xe.style.left="40px":xe.style.left=Pe+"px",xe.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?xe.style.top="40px":xe.style.top=fe+"px",xe.style.left=Pe+"px")}function _e(xe,Ce){var Oe=xe.querySelector(".appletParameters");if(Oe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!==Oe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(Oe.parentElement&&/fullscreen/.test(Oe.parentElement.className))return;var Be=qe(Ce,xe);tn()&&Oe.setAttribute("data-param-scale",Be);for(var Pe=null,fe=0;fe=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(tn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(tn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(tn){var Wt=c[tn];return Wt==null?null:Wt},r=d,webModule.__errFn=e}function B(){function tn(xe){var Ce=xe.lastIndexOf(rb);Ce==-1&&(Ce=xe.length);var Oe=xe.indexOf(sb);Oe==-1&&(Oe=xe.length);var Be=xe.lastIndexOf(tb,Math.min(Oe,Ce));return Be>=O?xe.substring(O,Be+P):W}function Wt(xe){if(!xe.match(/^\w+:\/\//)){var Ce=o.createElement(ub);Ce.src=xe+vb,xe=tn(Ce.src)}return xe}function ie(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function z(){for(var xe=o.getElementsByTagName(_),Ce=O;CeO?xe[xe.length-P].href:W}function me(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var _e=ie();return _e==W&&(_e=z()),_e==W&&(_e=qe()),_e==W&&me()&&(_e=tn(o.location.href)),_e=Wt(_e),_e}function C(tn){return tn.match(/^\//)||tn.match(/^[a-zA-Z]+:\/\//)?tn:webModule.__moduleBase+tn}function D(){var tn=[],Wt=O,ie=[],z=[];function qe(xe){var Ce=z[xe](),Oe=ie[xe];if(Ce in Oe)return Ce;var Be=[];for(var Pe in Oe)Be[Oe[Pe]]=Pe;throw r&&r(xe,Be,Ce),null}if(__gwt_isKnownPropertyValue=function(xe,Ce){return Ce in ie[xe]},webModule.__getPropMap=function(){var xe={};for(var Ce in ie)ie.hasOwnProperty(Ce)&&(xe[Ce]=qe(Ce));return xe},webModule.__computePropValue=qe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var me;try{me=Cb;var _e=me.indexOf(Db);_e!=-1&&(Wt=parseInt(me.substring(_e+P),$),me=me.substring(O,_e))}catch(xe){}return webModule.__softPermutationId=Wt,C(me+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/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})()},23216:function(tn,Wt,ie){"use strict";ie.d(Wt,{Ax:function(){return _e},Ds:function(){return xe},KI:function(){return Oe},SI:function(){return me},f1:function(){return qe}});var z=ie(14185);function qe(Be){let Pe=!0;if(Be.length>0){for(let fe=0;feke in wt?fe(wt,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):wt[ke]=Te,$e=(wt,ke)=>{for(var Te in ke||(ke={}))Se.call(ke,Te)&&nt(wt,Te,ke[Te]);if(Je)for(var Te of Je(ke))Dt.call(ke,Te)&&nt(wt,Te,ke[Te]);return wt},Ve=(wt,ke,Te)=>new Promise((Ot,ve)=>{var se=yt=>{try{ht(Te.next(yt))}catch(we){ve(we)}},Le=yt=>{try{ht(Te.throw(yt))}catch(we){ve(we)}},ht=yt=>yt.done?Ot(yt.value):Promise.resolve(yt.value).then(se,Le);ht((Te=Te.apply(wt,ke)).next())});const je=me.default.Group,Et=({classroomList:wt,loading:ke,user:Te,exercise_id:Ot=null,homework_common_id:ve=null,setitem:se,item:Le,type:ht,rz:yt,dispatch:we})=>{var Ze,Ue,Kt,kt,Tt,Re,$t,lt;const[ae,te]=(0,z.useState)([]);let[ee,oe]=(0,z.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const ue=(0,qe.useParams)(),[ne,he]=(0,z.useState)(!1),[be,pt]=(0,z.useState)(!1),[Me]=Oe.default.useForm();(0,z.useEffect)(()=>{yt&&(ee.zydatas=yt,oe($e({},ee)),Le!=null&&Le.ec_course_id&&Ke())},[Le,yt]);function Ke(){return Ve(this,null,function*(){console.log("----",Le),yield dt(Le==null?void 0:Le.ec_major_school_id),yield Mt(Le==null?void 0:Le.ec_year_id),yield mt(Le==null?void 0:Le.ec_course_id),Me.setFieldsValue({ec_course_id:Le==null?void 0:Le.ec_course_id,ec_major_school_id:Le==null?void 0:Le.ec_major_school_id,ec_point_ids:Le==null?void 0:Le.ec_point_ids,ec_year_id:Le==null?void 0:Le.ec_year_id})})}function dt(Lt){return Ve(this,null,function*(){const Ht=yield(0,Ce.ZP)(`/api/ec_major_schools/${Lt}/ec_years/get_year_list.json`,{method:"get"});ee.jbdatas=Ht==null?void 0:Ht.data,oe($e({},ee)),Me.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Mt(Lt){return Ve(this,null,function*(){const Ht=yield(0,Ce.ZP)(`/api/ec_years/${Lt}/ec_courses/get_courses.json`,{method:"get"});ee.kcdatas=Ht==null?void 0:Ht.data,oe($e({},ee)),Me.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const mt=Lt=>Ve(void 0,null,function*(){const Ht=yield(0,Ce.ZP)(`/api/ec_courses/${Lt}/ec_points.json`,{method:"get",params:{ec_course_id:Lt}});ee.zsdatas=Ht==null?void 0:Ht.data,oe($e({},ee))});return z.createElement("div",{className:Pe.from},z.createElement(Oe.default,{form:Me,layout:"inline",onValuesChange:Lt=>{console.log("----",Lt),Lt.ec_major_school_id&&(ee.jbdatas=[],ee.kcdatas=[],ee.zsdatas=[],oe($e({},ee)),dt(Lt.ec_major_school_id)),Lt.ec_year_id&&(ee.kcdatas=[],ee.zsdatas=[],oe($e({},ee)),Mt(Lt.ec_year_id)),Lt.ec_course_id&&(ee.zsdatas=[],oe($e({},ee)),mt(Lt.ec_course_id))},onFinish:Lt=>Ve(void 0,null,function*(){se(Lt)})},z.createElement(Oe.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},z.createElement(Be.default,{style:{width:150},disabled:((Ze=ee.zydatas)==null?void 0:Ze.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Ue=ee==null?void 0:ee.zydatas)==null?void 0:Ue.map((Lt,Ht)=>z.createElement(Be.default.Option,{key:Ht,value:Lt==null?void 0:Lt.ec_major_school_id},Lt==null?void 0:Lt.name)))),z.createElement(Oe.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},z.createElement(Be.default,{style:{width:150},disabled:((Kt=ee.jbdatas)==null?void 0:Kt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(kt=ee==null?void 0:ee.jbdatas)==null?void 0:kt.map((Lt,Ht)=>z.createElement(Be.default.Option,{key:Ht,value:Lt==null?void 0:Lt.ec_year_id},Lt==null?void 0:Lt.year)))),z.createElement(Oe.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},z.createElement(Be.default,{style:{width:150},disabled:((Tt=ee.kcdatas)==null?void 0:Tt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(Re=ee==null?void 0:ee.kcdatas)==null?void 0:Re.map((Lt,Ht)=>z.createElement(Be.default.Option,{key:Ht,value:Lt==null?void 0:Lt.id},Lt==null?void 0:Lt.name)))),z.createElement(Oe.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},z.createElement(Be.default,{onChange:()=>{Me.submit()},style:{width:150},mode:"multiple",disabled:(($t=ee.zsdatas)==null?void 0:$t.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(lt=ee==null?void 0:ee.zsdatas)==null?void 0:lt.map((Lt,Ht)=>z.createElement(Be.default.Option,{key:Ht,value:Lt==null?void 0:Lt.id},Lt==null?void 0:Lt.name))))))};var Bt=(0,qe.connect)(({classroomList:wt,loading:ke,globalSetting:Te,user:Ot})=>({classroomList:wt,globalSetting:Te,loading:ke.effects,user:Ot}))(Et),zt=Object.defineProperty,Pt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Ct=(wt,ke,Te)=>ke in wt?zt(wt,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):wt[ke]=Te,Xe=(wt,ke)=>{for(var Te in ke||(ke={}))tt.call(ke,Te)&&Ct(wt,Te,ke[Te]);if(St)for(var Te of St(ke))Ft.call(ke,Te)&&Ct(wt,Te,ke[Te]);return wt},bt=(wt,ke)=>Pt(wt,xt(ke)),Ne=(wt,ke,Te)=>new Promise((Ot,ve)=>{var se=yt=>{try{ht(Te.next(yt))}catch(we){ve(we)}},Le=yt=>{try{ht(Te.throw(yt))}catch(we){ve(we)}},ht=yt=>yt.done?Ot(yt.value):Promise.resolve(yt.value).then(se,Le);ht((Te=Te.apply(wt,ke)).next())});const rt=me.default.Group,at=({classroomList:wt,loading:ke,user:Te,exercise_id:Ot=null,homework_common_id:ve=null,setitem:se,type:Le,dispatch:ht})=>{var yt,we,Ze;let[Ue,Kt]=(0,z.useState)([{}]),[kt,Tt]=(0,z.useState)([]);function Re(){return Ne(this,null,function*(){var lt,ae,te;let ee=yield(0,Ce.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Ot,homework_common_id:ve}});if(((lt=ee==null?void 0:ee.data)==null?void 0:lt.length)>0){let oe=[];(ae=ee==null?void 0:ee.data)==null||ae.map(ue=>{var ne;(ne=ue==null?void 0:ue.ec_point_ids)==null||ne.map(he=>{oe.push(he)})}),se(bt(Xe({},(te=ee==null?void 0:ee.data)==null?void 0:te[0]),{ec_point_ids:oe})),Kt(ee==null?void 0:ee.data)}})}(0,z.useEffect)(()=>{var lt,ae;(ae=(lt=Te==null?void 0:Te.userInfo)==null?void 0:lt.course)!=null&&ae.course_school_id&&$t()},[(we=(yt=Te==null?void 0:Te.userInfo)==null?void 0:yt.course)==null?void 0:we.course_school_id]);function $t(){return Ne(this,null,function*(){var lt,ae;const te=yield(0,Ce.ZP)(`/api/schools/${(ae=(lt=Te==null?void 0:Te.userInfo)==null?void 0:lt.course)==null?void 0:ae.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Tt(te==null?void 0:te.data),(ve||Ot)&&Re()})}return z.createElement("div",{style:{display:(Ze=Te.userInfo.course)!=null&&Ze.is_openengineering?"":"none"}},z.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Ue==null?void 0:Ue.map((lt,ae)=>z.createElement("div",{key:ae,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},z.createElement(Bt,{rz:kt,item:lt,type:ae,setitem:te=>{Ue.splice(ae,1,te),Kt([...Ue]);let ee=[];Ue==null||Ue.map(oe=>{var ue;(ue=oe==null?void 0:oe.ec_point_ids)==null||ue.map(ne=>{ee.push(ne)})}),se(bt(Xe({},te),{ec_point_ids:ee}))}}),ae!=0&&z.createElement(_e.Z,{onClick:()=>{Ue.splice(ae,1),Kt([...Ue])},style:{marginLeft:10,fontSize:"20px"}}),z.createElement(xe.Z,{onClick:()=>{Ue.push({}),Kt([...Ue])},style:{marginLeft:10,fontSize:"20px"}}))))};var pe=(0,qe.connect)(({classroomList:wt,loading:ke,globalSetting:Te,user:Ot})=>({classroomList:wt,globalSetting:Te,loading:ke.effects,user:Ot}))(at)},40254:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Je}});var z=ie(59301),qe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},me=ie(92310),_e=ie.n(me),xe=ie(29787),Ce=ie(2859),Oe=ie(49317),Be=ie(76406),Pe=(Se,Dt,nt)=>new Promise(($e,Ve)=>{var je=zt=>{try{Bt(nt.next(zt))}catch(Pt){Ve(Pt)}},Et=zt=>{try{Bt(nt.throw(zt))}catch(Pt){Ve(Pt)}},Bt=zt=>zt.done?$e(zt.value):Promise.resolve(zt.value).then(je,Et);Bt((nt=nt.apply(Se,Dt)).next())}),Je=({data:Se,className:Dt,fullWidth:nt,style:$e={},onClose:Ve,onOk:je,showFullTools:Et,noAssociationId:Bt})=>{const zt=(0,z.useRef)(null),Pt=(0,z.useRef)(null),xt=(0,z.useRef)(null),St=(0,z.useRef)(null),[tt,Ft]=(0,z.useState)(!1),[Ct,Xe]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(xt.current||(xt.current=document.createElement("style"),document.head.appendChild(xt.current)),Se!=null&&Se.visible?(document.body.setAttribute("data-custom","y-hidden"),xt.current.innerHTML=" html { overflow-y: hidden; }",Se!=null&&Se.src&&bt()):(document.body.removeAttribute("data-custom"),xt.current&&(document.head.removeChild(xt.current),xt.current=null)),()=>{document.body.removeAttribute("data-custom"),xt.current&&(document.head.removeChild(xt.current),xt.current=null)}),[Se==null?void 0:Se.visible]);const bt=()=>Pe(void 0,null,function*(){Ft(!0),Xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pe=yield(0,Be.ZJ)(Se==null?void 0:Se.src);zt.current.src="",zt.current.src=pe,zt.current.onload=function(){at()},Ft(!1),Xe("")}),Ne=pe=>Pe(void 0,null,function*(){Ft(!0),Xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const wt=yield(0,Oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Se.title,file:pe.dataUrl}});wt!=null&&wt.id&&!Bt?(yield(0,Oe.ZP)(`/api/attachments/${Se.id}/add_subitem.json`,{method:"post",body:{subitem_id:wt==null?void 0:wt.id,settings:JSON.stringify(pe.state)}})).status===0&&je():wt!=null&&wt.id&&je(wt),Ft(!1),Xe("")}),rt=()=>{const pe=document.querySelector('a[href="https://markerjs.com/"]');pe&&pe.parentNode&&(pe.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(ke=>{const Te=document.querySelector(ke.name);Te&&Te.setAttribute("title",ke.title)})},at=()=>{Pt.current=new Ce.hP(zt.current),Pt.current.targetRoot=St.current,Pt.current.addEventListener("render",Ne),Pt.current.addEventListener("beforeclose",Ve),Et&&(Pt.current.availableMarkerTypes=Pt.current.ALL_MARKER_TYPES,Pt.current.uiStyleSettings.redoButtonVisible=!0,Pt.current.uiStyleSettings.notesButtonVisible=!0,Pt.current.uiStyleSettings.zoomButtonVisible=!0,Pt.current.uiStyleSettings.zoomOutButtonVisible=!0,Pt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Pt.current.uiStyleSettings,Pt.current.show(),Se!=null&&Se.snapshotData&&Pt.current.restoreState(Se.snapshotData),setTimeout(()=>{window.scrollTo(0,0),rt()},300)};return z.createElement(z.Fragment,null,(Se==null?void 0:Se.visible)&&z.createElement(xe.Z,{spinning:tt,tip:Ct,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:St,className:_e()(qe.imageDimensions,Dt,nt?qe.fullWidth:""),style:$e},z.createElement("img",{className:qe.img,ref:zt}))))}},9057:function(tn,Wt,ie){"use strict";var z=ie(59301),qe=ie(77019),me=ie(5269),_e=ie(31691),xe=ie(7939),Ce=ie(35883),Oe=ie(74501),Be=ie(48136),Pe=ie(59301);const fe=(0,z.forwardRef)(({callback:Je,showSaveButton:Se,value:Dt=""},nt)=>{const $e=(0,z.useRef)(),Ve=[{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 "}]}]}],je=[{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}`}]}]}],Et=Pt=>{$e.current.setValue($e.current.getValue()+" "+Pt.value+" ")},Bt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Pe.createElement(qe.Z,{className:Oe.Z.lists,gutter:[10,10]},Ve.map((Pt,xt)=>Pe.createElement(me.Z,{flex:"110px",className:Oe.Z.item},Pe.createElement("div",null,Pe.createElement(Ce.Z,{value:`$$${Pt.value}$$`}),Pt.name),Pe.createElement("div",{className:Oe.Z.children},Pt.children.map((St,tt)=>Pe.createElement("div",{key:tt},Pe.createElement("h1",null,St.name),Pe.createElement(qe.Z,{gutter:[10,10]},St.data.map((Ft,Ct)=>Pe.createElement(me.Z,{key:Ct,onClick:()=>Et(Ft),className:Oe.Z.diamond},Pe.createElement(Ce.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Pe.createElement(qe.Z,{className:Oe.Z.lists,gutter:[10,10]},je.map((Pt,xt)=>Pe.createElement(me.Z,{flex:"110px",className:Oe.Z.item},Pe.createElement("div",null,Pe.createElement(Ce.Z,{value:"`$$"+Pt.value+"$$`"}),Pt.name),Pe.createElement("div",{className:Oe.Z.children},Pt.children.map((St,tt)=>Pe.createElement("div",{key:tt},St.name&&Pe.createElement("h1",null,St.name),Pe.createElement(qe.Z,{gutter:[10,10]},St.data.map((Ft,Ct)=>Pe.createElement(me.Z,{key:Ct,onClick:()=>Et(Ft),className:Oe.Z.diamond},Pe.createElement(Ce.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))}],zt=()=>{var Pt=document.createElement("div");Pt.innerHTML=$e.current.getValue();var xt=Pt.innerText;return Je&&Je(xt),xt};return(0,z.useImperativeHandle)(nt,()=>({getData:zt})),Pe.createElement("div",{className:Oe.Z.mathWrap},Pe.createElement(_e.default,{defaultActiveKey:"1",items:Bt}),Pe.createElement("math-field",{locale:"zh_cn",className:Oe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:$e,style:{width:800,marginTop:30,fontSize:18}},Dt||""),Se&&Pe.createElement("div",{className:Oe.Z.button},Pe.createElement(xe.ZP,{size:"large",onClick:zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Wt.Z=fe},57940:function(tn,Wt,ie){"use strict";ie.d(Wt,{z:function(){return Ot},Z:function(){return ve}});var z=ie(59301),qe=ie(94968),me=ie(6767),_e=ie(62957),xe=ie(7939),Ce=ie(14185),Oe=ie(6755),Be=Object.defineProperty,Pe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Se=(se,Le,ht)=>Le in se?Be(se,Le,{enumerable:!0,configurable:!0,writable:!0,value:ht}):se[Le]=ht,Dt=(se,Le)=>{for(var ht in Le||(Le={}))fe.call(Le,ht)&&Se(se,ht,Le[ht]);if(Pe)for(var ht of Pe(Le))Je.call(Le,ht)&&Se(se,ht,Le[ht]);return se},nt=(se,Le,ht)=>new Promise((yt,we)=>{var Ze=kt=>{try{Kt(ht.next(kt))}catch(Tt){we(Tt)}},Ue=kt=>{try{Kt(ht.throw(kt))}catch(Tt){we(Tt)}},Kt=kt=>kt.done?yt(kt.value):Promise.resolve(kt.value).then(Ze,Ue);Kt((ht=ht.apply(se,Le)).next())});const $e="\u3000\u3000";function Ve(se){var Le=["Bytes","KB","MB","GB","TB"];if(se==0)return"0 Byte";var ht=parseInt(""+Math.floor(Math.log(se)/Math.log(1024)),10);return(se/Math.pow(1024,ht)).toFixed(1)+" "+Le[ht]}var je=({value:se=[],action:Le,onChange:ht,className:yt,maxSize:we=150,title:Ze="\u6587\u4EF6\u4E0A\u4F20",accept:Ue=null})=>{const Kt={multiple:!1,fileList:se,accept:Ue,withCredentials:!0,beforeUpload:Tt=>Tt.size/1024/1024(ee.name.indexOf($e)===-1&&(ee.name=`${ee.name}${$e}${Ve(ee.size)}`),Dt({},ee))),Tt.file.status==="done"&&(($t=(Re=Tt.file)==null?void 0:Re.response)==null?void 0:$t.status)===-1){message.error((ae=(lt=Tt.file)==null?void 0:lt.response)==null?void 0:ae.message),ht([]);return}ht(te)},onRemove:Tt=>nt(void 0,null,function*(){const Re=Tt.size/1024/1024;return Tt.status==="uploading"?!0:Re0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:se.length>0,ghost:!0},Ze),React.createElement("span",{onClick:kt,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",we,"M)"," ")))},Et=ie(61481),Bt=ie(78267),zt=Object.defineProperty,Pt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,tt=(se,Le,ht)=>Le in se?zt(se,Le,{enumerable:!0,configurable:!0,writable:!0,value:ht}):se[Le]=ht,Ft=(se,Le)=>{for(var ht in Le||(Le={}))xt.call(Le,ht)&&tt(se,ht,Le[ht]);if(Pt)for(var ht of Pt(Le))St.call(Le,ht)&&tt(se,ht,Le[ht]);return se};const Ct=se=>React.createElement("svg",Ft({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},se),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var Xe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",bt=Object.defineProperty,Ne=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,pe=(se,Le,ht)=>Le in se?bt(se,Le,{enumerable:!0,configurable:!0,writable:!0,value:ht}):se[Le]=ht,wt=(se,Le)=>{for(var ht in Le||(Le={}))rt.call(Le,ht)&&pe(se,ht,Le[ht]);if(Ne)for(var ht of Ne(Le))at.call(Le,ht)&&pe(se,ht,Le[ht]);return se},ke=(se,Le,ht)=>new Promise((yt,we)=>{var Ze=kt=>{try{Kt(ht.next(kt))}catch(Tt){we(Tt)}},Ue=kt=>{try{Kt(ht.throw(kt))}catch(Tt){we(Tt)}},Kt=kt=>kt.done?yt(kt.value):Promise.resolve(kt.value).then(Ze,Ue);Kt((ht=ht.apply(se,Le)).next())});const{Dragger:Te}=qe.default;function Ot(se){let Le=[];return se&&se.length>0&&(Le=se.map(ht=>({uid:ht.id,id:ht.id,name:ht.title+$e+ht.filesize,url:ht.url,filesize:ht.filesize,status:"done",response:{id:ht.id}}))),Le}var ve=({value:se,onChange:Le,action:ht,data:yt,className:we,maxSize:Ze=150,title:Ue="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Kt=!1,accept:kt="",additionalText:Tt,isDragger:Re,number:$t=1e3,aloneClear:lt=!1,realTimeRemove:ae=!0,uploadText:te,setFileProgress:ee,showFileProgress:oe})=>{const[ue,ne]=(0,z.useState)(!1);let[he,be]=(0,z.useState)(se||[]),[pt,Me]=(0,z.useState)(1);(0,z.useEffect)(()=>{se&&(pt===1&&be([...se]),Me(2),$t===(se==null?void 0:se.length)&&ne(!0))},[se]);const Ke=()=>{setTimeout(()=>{he.pop(),be([...he])},500)};oe&&ee(he.some(mt=>mt.status==="uploading"));const dt={multiple:!0,disabled:ue,accept:kt,withCredentials:!0,fileList:he,beforeUpload:(mt,Lt)=>{const Ht=mt.size/1024/1024;return he.concat(Lt).length>$t?(he.pop(),be([...he]),me.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${$t}\u4E2A\u6587\u4EF6`),lt?Promise.reject():(Ke(),!1)):Ht=$t?ne(!0):ne(!1),be([...he]),he=he.map(Yt=>{var an,It;return(an=Yt==null?void 0:Yt.response)!=null&&an.id&&(Yt.url=(It=Yt==null?void 0:Yt.response)==null?void 0:It.url),Yt.name.indexOf($e)===-1&&(Yt.name=`${Yt.name}${$e}${Ve(Yt.size)}`),wt({},Yt)}),console.log("info:",mt,he),Le(he)},onRemove:mt=>ke(void 0,null,function*(){if(!ae)return!0;const Lt=()=>ke(void 0,null,function*(){if(mt.response?mt.response.id:mt.id){let Zt=yield(0,Oe.JZ)(mt.response?mt.response.id:mt.uid);return Promise.resolve(Zt)}else return!0});return Kt?new Promise((Ht,Zt)=>{_e.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:z.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>ke(void 0,null,function*(){const ln=yield Lt();me.ZP.success("\u5220\u9664\u6210\u529F"),Ht(!0)}),onCancel:()=>Ht(!1)})}):yield Lt()})};function Mt(mt){mt.preventDefault(),mt.stopPropagation()}return z.createElement("div",{className:`multi-upload ${we||""}`},Re&&z.createElement(Te,wt({},dt),z.createElement("p",{className:"ant-upload-drag-icon"},z.createElement(Et.Z,null)),z.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",z.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ze,"MB)"," "),Tt),!Re&&z.createElement(qe.default,wt({},dt),z.createElement(xe.ZP,{disabled:ue,className:"upload_button"},z.createElement("img",{className:"aBtn_img",src:Xe}),Ue),z.createElement("span",{onClick:Mt,className:"upload_text"},te||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ze}MB)`)))}},90736:function(tn,Wt,ie){"use strict";var z=ie(59301),qe=ie(4977),me=ie(7939),_e=Object.defineProperty,xe=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,fe=(nt,$e,Ve)=>$e in nt?_e(nt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):nt[$e]=Ve,Je=(nt,$e)=>{for(var Ve in $e||($e={}))Be.call($e,Ve)&&fe(nt,Ve,$e[Ve]);if(Oe)for(var Ve of Oe($e))Pe.call($e,Ve)&&fe(nt,Ve,$e[Ve]);return nt},Se=(nt,$e)=>xe(nt,Ce($e));const Dt=({img:nt,buttonProps:$e={},styles:Ve={},customText:je,ButtonText:Et,ButtonClick:Bt,Buttonclass:zt,ButtonTwo:Pt,imgStyles:xt,loading:St=!1,className:tt=""})=>z.createElement("section",{className:`tc animated fadeIn ${tt}`,style:Je({color:"#999",margin:"100px auto",visibility:St?"hidden":"visible"},Ve)},z.createElement("img",{src:nt||qe,style:Se(Je({},xt),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},je||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Et&&z.createElement(me.ZP,Je({className:zt,onClick:Bt},$e),Et),Pt&&Pt);Wt.Z=Dt},86974:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return zt}});var z=ie(59301),qe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},me=ie(7939),_e=ie(70557),xe=ie(34728),Ce=ie(25399),Oe=ie(76406),Be=ie(84849),Pe=ie(90736),fe=ie(14185),Je=ie(52078),Se=ie(59301),Dt=Object.defineProperty,nt=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,je=(Pt,xt,St)=>xt in Pt?Dt(Pt,xt,{enumerable:!0,configurable:!0,writable:!0,value:St}):Pt[xt]=St,Et=(Pt,xt)=>{for(var St in xt||(xt={}))$e.call(xt,St)&&je(Pt,St,xt[St]);if(nt)for(var St of nt(xt))Ve.call(xt,St)&&je(Pt,St,xt[St]);return Pt},Bt=(Pt,xt,St)=>new Promise((tt,Ft)=>{var Ct=Ne=>{try{bt(St.next(Ne))}catch(rt){Ft(rt)}},Xe=Ne=>{try{bt(St.throw(Ne))}catch(rt){Ft(rt)}},bt=Ne=>Ne.done?tt(Ne.value):Promise.resolve(Ne.value).then(Ct,Xe);bt((St=St.apply(Pt,xt)).next())}),zt=({editOffice:Pt="view",data:xt,issaver:St,onSaver:tt,theme:Ft,type:Ct,filename:Xe,monacoEditor:bt,className:Ne,style:rt,close:at,onClose:pe,hasMask:wt,disabledDownload:ke,onImgDimensions:Te,showNodata:Ot,recordInfo:ve})=>{const[se,Le]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ht,yt]=(0,z.useState)(""),[we,Ze]=(0,z.useState)(),Ue=window.ENV==="build"?"/react/build":"",Kt=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,Tt=10*(1024*1024),Re=(0,z.useRef)();xt!=null&&xt.startsWith("/api")&&Ct!=="txt"&&(xt=fe.Z.API_SERVER+xt);const $t=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();Xe&&bt&&(bt.filename=Xe),(0,z.useEffect)(()=>{var ue,ne;const he=(ne=(ue=document.cookie)==null?void 0:ue.replace(/\s/g,""))==null?void 0:ne.split(";");he==null||he.map(be=>{let pt=be.split("=");pt[0]==="_educoder_session"&&yt(pt[1])})},[]),(0,z.useEffect)(()=>{Ct==="office"&&(xt.indexOf("bigfilescdn.")>-1||xt.indexOf("bigfiles1")>-1?Ze({url:xt,fileType:$t(xt),model:xt.indexOf("model=edit")?"edit":"view"}):xt.indexOf("coze")>-1?Ze({url:xt,fileType:"doc",model:"view"}):ae())},[Ct,xt]);function lt(ue){return Bt(this,null,function*(){ue.data.type==="pdfdata"&&(tt(ue.data.data),window.removeEventListener("message",lt,!1)),console.log("mess---:",ue.data)})}const ae=()=>Bt(void 0,null,function*(){console.log("data:",xt);let ue=xt;xt.startsWith("http")||(ue=location.origin+ue);let ne=new URL(ue).pathname.split("/").pop();const he=yield(0,Be.gJ)({attachment_id:ne});he.url=Kt+he.url,Ze(he)}),te=()=>{if(xt.startsWith("http")||xt.startsWith("blob:")){ee();return}(0,Oe.Sv)(Xe||"educoder",xt,Xe)},ee=()=>{ve&&(0,Je.fc)({id:ve==null?void 0:ve.id,watch_type:1,course_id:ve==null?void 0:ve.course_id}),(0,Oe.Nd)(Xe||"educoder",decodeURIComponent(xt))};(0,z.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=ue=>{var ne;((ne=ue==null?void 0:ue.data)==null?void 0:ne.type)==="closePop"&&pe()};return Se.createElement("div",{style:Et({},rt||{}),className:`${wt&&qe.bgBlack} ${Ct?qe.wrp:"hide"}`},!!Ct&&at&&Se.createElement("div",{id:"closePop",className:qe.close,ref:Re},!!Te&&Se.createElement(Ce.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Re.current},Se.createElement("span",{onClick:()=>{pe(),Te()}},Se.createElement("i",{className:"icon-yulanpizhu"}))),!ke&&window.parent===window&&Se.createElement(Ce.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Re.current},Se.createElement("span",{onClick:ee},Se.createElement("i",{className:"icon-quxiaozhiding"}))),St&&Se.createElement(Ce.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Re.current},Se.createElement("span",{className:"",onClick:()=>{const ue=document.getElementById("pdfiframe");window.addEventListener("message",lt,!1),setTimeout(()=>{ue.contentWindow.postMessage("getData","*")},300)}},Se.createElement("i",{className:"icon-baocun"}))),Se.createElement(Ce.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Re.current},Se.createElement("span",{className:"",onClick:()=>{pe()}},Se.createElement("i",{className:"icon-guanbi1"})))),Se.createElement("div",{className:`${qe[Ne]} ${Ne} ${qe.monaco} ${Ct==="txt"?"show":"hide"}`},Ct==="txt"&&Se.createElement(Se.Fragment,null,Se.createElement(xe.ZP,Et({},bt)))),Ct==="audio"&&Se.createElement("audio",{controls:!0,src:`${(xt==null?void 0:xt.indexOf("http://"))>-1||(xt==null?void 0:xt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${xt}`,autoPlay:!0}),Ct==="video"&&Se.createElement(Se.Fragment,null,(xt==null?void 0:xt.indexOf("http"))>-1?Se.createElement("video",{controls:!0,src:`${xt}`,autoPlay:!0}):Se.createElement("video",{controls:!0,src:`data:video/mp4;base64,${xt}`,autoPlay:!0})),Ct==="office"&&we&&Se.createElement("iframe",{src:`${Ue}/office.html?key=${we.key}&url=${btoa(we.url)}&callbackUrl=${Kt+(we.callbackUrl||"")}&fileType=${we.fileType}&title=${we.title||""}&model=${Pt}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!ke}`}),Ct==="html"&&Se.createElement("iframe",{src:xt+"&disposition=inline"}),Ct==="pdf"&&Se.createElement("iframe",{id:"pdfiframe",src:`${Ue}/js/pdf/index.html?filename=${Xe||"educoder.pdf"}&url=${encodeURIComponent(xt)}&disabledDownload=${!!ke}&model=${Pt}`}),Ct==="image"&&Se.createElement("img",{src:`${(xt==null?void 0:xt.indexOf("http://"))>-1||(xt==null?void 0:xt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${xt}`}),(Ct==="other"||Ct==="download")&&Se.createElement(Se.Fragment,null,Ot?Se.createElement(Pe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Se.createElement(me.ZP,{icon:Se.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:ke},"\u4E0B\u8F7D")}):Se.createElement(me.ZP,{type:"primary",size:"middle",onClick:te,disabled:ke},Se.createElement(_e.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ct==="flowChart"&&Se.createElement("div",{className:"embed"},Se.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${xt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(tn,Wt,ie){"use strict";ie.d(Wt,{z:function(){return bt},Z:function(){return Ne}});var z=ie(59301),qe=ie(46214),me=ie(20047),_e=ie(64018),xe=ie(16471),Ce=ie(14185),Oe=ie(76406),Be=ie(15342),Pe=ie(44104),fe=ie(7939),Je=ie(1012),Se=ie(86974),Dt=ie(59301),$e=({html:rt})=>{const at=(0,z.useRef)(null),pe=(0,z.useRef)(null),wt=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 56px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,z.useEffect)(()=>{const ke=at.current.attachShadow({mode:"open"});pe.current=document.createElement("div"),pe.current.className="markdown-body",pe.current.innerHTML=rt,ke.appendChild(pe.current);const Te=document.createElement("style");return Te.textContent=wt,ke.appendChild(Te),()=>{ke.innerHTML=""}},[]),(0,z.useEffect)(()=>{pe.current&&(pe.current.innerHTML=rt)},[rt]),Dt.createElement("div",{ref:at})};function Ve(rt){const at=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],pe=new RegExp(`\\b(${at.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),wt=/]*>/gi;return rt.replace(pe,"").replace(wt,"").trim()}var je={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Et=Object.defineProperty,Bt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,xt=(rt,at,pe)=>at in rt?Et(rt,at,{enumerable:!0,configurable:!0,writable:!0,value:pe}):rt[at]=pe,St=(rt,at)=>{for(var pe in at||(at={}))zt.call(at,pe)&&xt(rt,pe,at[pe]);if(Bt)for(var pe of Bt(at))Pt.call(at,pe)&&xt(rt,pe,at[pe]);return rt};const tt="@\u2581\u2581@",Ft="@\u2581@",Ct=/]*>/g;function Xe(rt){let at=document.createElement("div");return at.innerHTML=rt,at.childNodes.length===0?"":at.childNodes[0].nodeValue}const bt=(rt,at)=>{rt=rt||"";const pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,wt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ke=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Te=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return at?rt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pe,(Ot,ve,se,Le,ht,yt,we)=>{const Ze=ve||Le||yt,Ue=se||ht||we||"?";return Ce.Z.API_SERVER+"/api/attachments/"+Ze+Ue+"&t="+(0,Oe.Jn)(Ze,Date.now())+(Ot.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(rt=rt.replace(Te,(Ot,ve,se,Le,ht,yt,we)=>{const Ze=ve||Le||yt,Ue=se||ht||we||"?";return Ce.Z.API_SERVER+"/attachments/download/"+Ze+Ue+"&t="+(0,Oe.Jn)(Ze,Date.now())+(Ot.indexOf(")")>-1?")":"&")}).replace(pe,(Ot,ve,se,Le,ht,yt,we)=>{const Ze=ve||Le||yt,Ue=se||ht||we||"?";return Ce.Z.API_SERVER+"/api/attachments/"+Ze+Ue+"&t="+(0,Oe.Jn)(Ze,Date.now())+(Ot.indexOf(")")>-1?")":"&")}).replace(wt,(Ot,ve,se,Le,ht)=>{const yt=ve||Le,we=se||ht||"";return'"'+Ce.Z.API_SERVER+"/api/attachments/"+yt+we+yt+we+"&t="+(0,Oe.Jn)(yt,Date.now())}).replace(ke,(Ot,ve,se,Le,ht)=>{const yt=ve||Le,we=se||ht||"";return"("+Ce.Z.API_SERVER+"/files/uploads/"+yt+we+yt+we+"&t="+(0,Oe.Jn)(yt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),rt)};var Ne=({value:rt="",edit:at=!1,className:pe,showTextOnly:wt,showLines:ke,style:Te={},stylesPrev:Ot={},highlightKeywords:ve,showProgramFill:se,isProgramFill:Le,disabledFill:ht=!1,programFillValue:yt,openEditor:we=()=>{},onFillChange:Ze=kt=>{},onFillBlur:Ue=()=>{},onFillFocus:Kt=()=>{}})=>{let kt=Ve(String(rt||""));const Tt=(0,z.useRef)(),Re=(0,z.useRef)(),[$t,lt]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),ue=(0,z.useRef)("a"+(0,Je.Z)()),ne={},he=It=>//i.test(It||""),be=(It,Qt,Ut)=>{const Ae=document.createElement(It===Ft?"input":"textarea");Ae.style.width="100%",Ae.style.height=It===Ft?"40px":"151px",Ae.rows=5,Ae.spellcheck=!1,Ae.name="edu-program-fill",Ae.placeholder="\u8BF7\u8F93\u5165",Ae.dataset.id=Qt;const ut=Object.keys(ne).length;return ne[ut]=Ae,`${Ae.outerHTML}`};function pt(It){return It=It.replace(/!\[.*?\]\(.*?\)/g,""),It=It.replace(/\[.*?\]\(.*?\)/g,""),It=It.replace(new RegExp("","gs"),""),It=It.replace(//g,""),It=It.replace(//g,""),It=It.replace(new RegExp(".*?<\\/video>","gs"),""),It=It.replace(new RegExp(".*?<\\/audio>","gs"),""),It=It.replace(new RegExp(".*?<\\/style>","gs"),""),It=It.replace(new RegExp(".*?<\\/script>","gs"),""),It}const Me=It=>!wt&&he(kt)?It:It.replace(/([\s\S]+?)<\/style>/gim,function(Qt,Ut){let Ae=Ut.replace(/(\n|\r)/g,"").split("}"),ut=[];return Ae.map(At=>{At!=""&&ut.push(`.${ue.current} ${At}`)}),``}),Ke=(0,z.useMemo)(()=>{(0,me.Iy)();try{const Ae=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ut=/\"\/api\/attachments\/|\"\/attachments\/download\//g,At=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Gt=/\(\/attachments\/download\//g;kt=kt.replace(Gt,"("+Ce.Z.API_SERVER+"/attachments/download/").replace(Ae,"("+Ce.Z.API_SERVER+"/api/attachments/").replace(ut,'"'+Ce.Z.API_SERVER+"/api/attachments/").replace(At,'"'+Ce.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),Tt.current.style.display="none"}catch(Ae){}if(se){let Ae=-1;return kt=kt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ut,At,Gt){var De;return++Ae,be(ut,Ae,(De=yt==null?void 0:yt[Ae])==null?void 0:De.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Me(kt||"")}
`}let It=Me(kt);It=(0,me.ZP)(It);const Qt=(0,me.ez)();kt.match(/\[TOC\]/)&&(It=It.replace("

[TOC]

",(0,me.Qv)()),(0,me.Iy)()),It=It.replace(/(__special_katext_id_\d+__)/g,(Ae,ut)=>{const{type:At,expression:Gt}=Qt[ut];return(0,Be.renderToString)(Xe(Gt)||"",{displayMode:At==="block",throwOnError:!1,output:"html"})}),It=It.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,me.AL)();const Ut=document.createElement("div");if(Ut.innerHTML=It,wt)return Ut.innerText;if(ve){const Ae=ve.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Lt(Ut,Ae),Ut.innerHTML}return setTimeout(()=>ln(),500),Ut.innerHTML},[kt,ve]);(0,z.useEffect)(()=>{Ht.current&&Ht.current.querySelectorAll(["input","textarea"]).forEach(Qt=>{Qt.oninput=dt,Qt.onblur=Mt,Qt.onfocus=mt})},[ee]),(0,z.useEffect)(()=>{var It,Qt,Ut,Ae,ut;if(yt!=null&&yt.length)try{const At=Ht.current.querySelectorAll(".edu-program-fill-score"),Gt=Ht.current.querySelectorAll('[name="edu-program-fill"]');for(const[De,et]of Gt.entries())et.value=((It=yt==null?void 0:yt[De])==null?void 0:It.value)||"",((Qt=yt==null?void 0:yt[De])==null?void 0:Qt.type)==="warning"?et.className="program-fill-warning":((Ut=yt==null?void 0:yt[De])==null?void 0:Ut.type)==="success"?et.className="program-fill-success":et.className="";for(const[De,et]of At.entries())et.innerHTML=(Ae=yt==null?void 0:yt[De])!=null&&Ae.score?`${(ut=yt==null?void 0:yt[De])==null?void 0:ut.score}\u5206`:"";oe(yt)}catch(At){console.log(At,"error")}},[yt]);const dt=It=>{ee[It.target.dataset.id]=ee[It.target.dataset.id]||{},ee[It.target.dataset.id].value=It.target.value,oe([...ee]),Ze(ee,It.target.dataset.id)},Mt=It=>{ee[It.target.dataset.id]=ee[It.target.dataset.id]||{},ee[It.target.dataset.id].value=It.target.value,oe([...ee]),Ue(ee,It.target.dataset.id)},mt=It=>{ee[It.target.dataset.id]=ee[It.target.dataset.id]||{},ee[It.target.dataset.id].value=It.target.value,oe([...ee]),Kt(ee,It.target.dataset.id)};function Lt(It,Qt){return It.childNodes.forEach(Ut=>{var Ae;if(Ut.childNodes.length>0)Lt(Ut,Qt);else if(Ut.nodeName!=="IMG")if(Ut.innerHTML)Ut.innerHTML=(Ae=Ut.innerHTML)==null?void 0:Ae.replace(new RegExp(Qt,"gi"),'$&');else{const ut=document.createElement("span");ut.innerHTML=Ut.textContent.replace(new RegExp(Qt,"gi"),'$&'),Ut.replaceWith(ut)}})}const Ht=(0,z.useRef)();me.jb.WebkitLineClamp=ke,ke&&(Te=St(St({},Te),me.jb));function Zt(It){let Qt=It.target;if(Qt.tagName.toUpperCase()==="A"){let Ut=Qt.getAttribute("href");if(Ut.indexOf("office")>-1)It.preventDefault(),lt(Ut),te("office");else if(Ut.indexOf("application/pdf")>-1)It.preventDefault(),lt(Ut),te("pdf");else if(Ut.indexOf("text/html")>-1)It.preventDefault(),lt(Ut),te("html");else if(Ut.startsWith("#")){It.preventDefault();let Ae=document.getElementById(Ut.replace("#",""));Ae&&Ae.scrollIntoView(!0)}}}const ln=()=>{var It;const Qt=(It=Ht.current)==null?void 0:It.querySelectorAll("video");Qt==null||Qt.forEach(Ut=>{if(Ut.oncontextmenu=()=>!1,Ut.src.indexOf(".m3u8")>-1&&!Ut.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var Ae=new xe.ZP;Ae.loadSource(Ut.src),Ae.attachMedia(Ut)}}})};(0,z.useEffect)(()=>{if(Ht.current&&Ke&&Ke.match(Ct)&&window.PR.prettyPrint(),Ht.current)return Ht.current.addEventListener("click",Zt),()=>{var It;(It=Ht.current)==null||It.removeEventListener("click",Zt),(0,me.AL)(),(0,me.Iy)()}},[Ke,Ht.current,Zt]);const Yt=It=>{It.target.nodeName==="IMG"&&It.target.className.indexOf("draw-flowchart")>-1?(Tt.current.style.zIndex=1,Tt.current.style.display="flex",Tt.current.style.width=It.target.clientWidth+"px",Tt.current.style.height=It.target.clientHeight+"px",Tt.current.style.top=It.target.offsetTop+"px",Tt.current.style.left=It.target.offsetLeft+"px",It.target.id&&(Re.current=It.target.id)):Tt.current.style.display="none"},an=()=>{Tt.current.style.display="none"};return(0,z.useEffect)(()=>{var It;const Qt=Ut=>{Ut.preventDefault(),Ut.clipboardData.setData("text",window.getSelection().toString())};return(It=Ht.current)==null||It.addEventListener("copy",Qt),()=>{var Ut;(Ut=Ht.current)==null||Ut.removeEventListener("copy",Qt)}},[Ht.current]),z.createElement("div",{style:{position:"relative"},onMouseLeave:an},wt&&z.createElement("div",{ref:Ht,className:`${je.mdBody} `},Ke),!wt&&!he(Ke)&&z.createElement("div",{ref:Ht,style:St({},Te),onMouseOver:Yt,className:`${pe||""} ${ht?"disabled-fill":""} markdown-body ${je.mdBody} ${ue.current}`,dangerouslySetInnerHTML:{__html:Ke}}),!wt&&he(Ke)&&z.createElement($e,{html:Ke}),z.createElement("div",{ref:Tt,className:`${je.button} ${at?"":je.previewFlowChart}`},z.createElement(Pe.Z,null,z.createElement(fe.ZP,{onClick:()=>{at?we(Re.current):(lt(Re.current),te("flowChart"))}},at?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(Se.Z,{close:!0,data:$t,type:$t!=null&&$t.length?ae:"",style:St({},Ot),onClose:()=>lt("")}))}},28267:function(tn,Wt,ie){"use strict";ie.d(Wt,{h:function(){return Pt}});var z=ie(59301),qe=ie(82326),me=ie(28284),_e=ie(7939),xe=ie(89780),Ce=ie.n(xe),Oe=ie(88319),Be=ie(94896),Pe=Object.defineProperty,fe=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,$e=(xt,St,tt)=>St in xt?Pe(xt,St,{enumerable:!0,configurable:!0,writable:!0,value:tt}):xt[St]=tt,Ve=(xt,St)=>{for(var tt in St||(St={}))Dt.call(St,tt)&&$e(xt,tt,St[tt]);if(Se)for(var tt of Se(St))nt.call(St,tt)&&$e(xt,tt,St[tt]);return xt},je=(xt,St)=>fe(xt,Je(St));const Et=qe.default.Option,Bt={labelCol:{span:4},wrapperCol:{span:20}},zt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Wt.Z=({callback:xt,onCancel:St})=>{const[tt,Ft]=(0,z.useState)("python");function Ct(bt){Ft(zt[bt][1])}function Xe(bt){xt(bt)}return z.createElement(me.default,je(Ve({},Bt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Xe,style:{width:500}}),z.createElement(me.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(qe.default,{getPopupContainer:bt=>bt.parentNode,onChange:Ct},Object.keys(zt).map(bt=>z.createElement(Et,{key:bt,value:bt},zt[bt][0])))),z.createElement(me.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(Pt,{mode:tt})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(_e.ZP,{type:"ghost",onClick:St},"\u53D6\u6D88")))};function Pt({value:xt,onChange:St,mode:tt,options:Ft={}}){const Ct=(0,z.useRef)(),[Xe,bt]=(0,z.useState)();return(0,z.useEffect)(()=>{if(Xe){let Ne=function(rt){const at=rt.getValue();St&&St(at)};return Xe.on("change",Ne),()=>{Xe.off("change",Ne)}}},[Xe,St]),(0,z.useEffect)(()=>{Xe&&Xe.setOption("mode",tt)},[Xe,tt]),(0,z.useEffect)(()=>{Xe&&(xt!==Xe.getValue()||xt==="")&&setTimeout(()=>{Xe.setValue(xt||"")},300)},[Xe,xt]),(0,z.useEffect)(()=>{if(Ct.current&&!Xe){const Ne=Ce().fromTextArea(Ct.current,Ve({mode:tt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ft));bt(Ne)}},[Ct.current,Xe]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:Ct}))}},39116:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return vn}});var z=ie(59301),qe=ie(44283),me=ie(89780),_e=ie.n(me),xe=ie(76374),Ce=ie(88319),Oe=ie(6313),Be=ie(25717),Pe=ie(99498),fe=ie(25419),Je=ie(67549),Se=ie(35883),Dt=({value:Jt="",className:On,showTextOnly:mn,showLines:kn,style:jn={}})=>{const Zn=(0,z.useMemo)(()=>"",[Jt]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:Zn}}))},nt=Object.defineProperty,$e=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,zt=(Jt,On,mn)=>On in Jt?nt(Jt,On,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Jt[On]=mn,Pt=(Jt,On)=>{for(var mn in On||(On={}))Et.call(On,mn)&&zt(Jt,mn,On[mn]);if(je)for(var mn of je(On))Bt.call(On,mn)&&zt(Jt,mn,On[mn]);return Jt},xt=(Jt,On)=>$e(Jt,Ve(On));let St=[{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\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",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 tt({onActionCallback:Jt,title:On,icon:mn,actionName:kn,className:jn="",children:Zn}){function An(){Jt(kn)}return z.createElement("a",{title:On,className:jn,onClick:An},z.createElement("i",{className:`${mn}`}),Zn)}var Ft=({watch:Jt,showNullButton:On,showNullProgramButton:mn,onActionCallback:kn,fullScreen:jn,insertTemp:Zn,hidetoolBar:An,extraUse:Xn})=>{const Nn=[...St,{title:`${Jt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Jt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return z.createElement("ul",{className:"markdown-toolbar-container"},!An&&Nn.map((ar,qn)=>z.createElement("li",{key:qn},ar.actionName?z.createElement(tt,xt(Pt({},ar),{onActionCallback:kn})):z.createElement("span",{className:"v-line"}))),On?z.createElement("li",null,z.createElement(tt,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,mn?z.createElement(z.Fragment,null,z.createElement("li",null,z.createElement(tt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),z.createElement("li",null,z.createElement(tt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Zn&&z.createElement("li",null,z.createElement(tt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Zn}`,onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Xn&&z.createElement("li",null,Xn),z.createElement("li",{className:"btn-full-screen"},z.createElement(tt,{icon:`${jn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:jn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:kn})))},Ct=ie(88487),Xe=ie(28284),bt=ie(37568),Ne=ie(7939),rt=Object.defineProperty,at=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,Ot=(Jt,On,mn)=>On in Jt?rt(Jt,On,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Jt[On]=mn,ve=(Jt,On)=>{for(var mn in On||(On={}))ke.call(On,mn)&&Ot(Jt,mn,On[mn]);if(wt)for(var mn of wt(On))Te.call(On,mn)&&Ot(Jt,mn,On[mn]);return Jt},se=(Jt,On)=>at(Jt,pe(On));const Le={labelCol:{span:4},wrapperCol:{span:20}};var ht=({callback:Jt,onCancel:On})=>{function mn(kn){Jt(kn)}return z.createElement(Xe.default,se(ve({},Le),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:mn,style:{width:500}}),z.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(bt.default,null)),z.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(bt.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Ne.ZP,{type:"ghost",onClick:On},"\u53D6\u6D88")))},yt=ie(28267),we=ie(53332),Ze=ie(62957),Ue=ie(77019),Kt=ie(40254),kt=ie(59301),Tt=({callback:Jt,onCancel:On})=>{const mn=document.createElement("canvas"),kn=mn.getContext("2d");mn.width=1e3,mn.height=800,kn.fillStyle="#ffffff",kn.fillRect(0,0,mn.width,mn.height);const jn=mn.toDataURL("image/png");return kt.createElement(Ze.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},kt.createElement(Ue.Z,{style:{height:"100vh"}},kt.createElement(Kt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:jn,visible:!0,title:String(Date.now())},onOk:Zn=>{Jt({src:Zn.url})},onClose:On})))},Re=ie(36207),$t=ie(5269),lt=ie(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ie(59301),oe=(0,z.forwardRef)(({onCancel:Jt,editImgId:On,callback:mn},kn)=>{let jn=(0,z.useRef)(),Zn=(0,z.useRef)(),An=(0,z.useRef)(),Xn=(0,z.useRef)(!1);const Nn=(0,z.useRef)(!1);console.log("ref:",kn);const[ar,qn]=(0,z.useState)(0),[jt,on]=(0,z.useState)("100vh");return(0,z.useEffect)(()=>{qn(1)},[]),(0,z.useImperativeHandle)(kn,()=>({setHeight:on})),te.createElement("div",{ref:Nn,className:"body-overflow-initial"},te.createElement(Re.Z,{width:"100vw",height:jt,footer:null,closable:!0,placement:"bottom",open:!!ar,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(zn=>{mn({src:`/api/attachments/${zn}`,id:zn})})},title:te.createElement(Ue.Z,{align:"middle"},te.createElement($t.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement($t.Z,{onClick:()=>{on(jt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement($t.Z,{onClick:()=>{window.saveDrawData(zn=>{if(zn===null){lt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}lt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),mn({src:`/api/attachments/${zn}`,id:zn,disabledClose:!0})})}},te.createElement(Ne.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${On||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Zn})))}),ue=ie(14185),ne=ie(47889),he=ie(4875);const be=ne.ZP.Group,pt={margin:"0 8px"};var Me=({callback:Jt,onCancel:On})=>{function mn(kn){Jt(kn)}return z.createElement(Xe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:mn},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:pt},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:pt},"\u884C\u6570"),z.createElement(Xe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(he.Z,null)),z.createElement("span",{style:pt},"\u5217\u6570"),z.createElement(Xe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(he.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:pt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(Xe.default.Item,{name:"align"},z.createElement(be,null,z.createElement(ne.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(ne.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(ne.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(ne.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Ne.ZP,{type:"ghost",onClick:On},"\u53D6\u6D88")))},Ke=ie(58755),dt=ie(84915),Mt=ie.n(dt),Lt=(0,z.forwardRef)(({use3d:Jt,width:On,height:mn,callback:kn,showSaveButton:jn},Zn)=>{const An=(0,z.useRef)(),Xn=(0,z.useRef)(),[Nn,ar]=(0,z.useState)(!1),qn=(0,z.useRef)({id:An,appName:"graphing",width:On||1e3,height:mn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,z.useEffect)(()=>{Xn.current=new(Mt())(qn.current,!0),window.onload=function(){Xn.current.inject("applet_container")}},[]);const jt=()=>{var on=window.ggbApplet.getPNGBase64(1,!0,72);return kn&&kn(on),on};return(0,z.useEffect)(()=>{qn.current.appName=Nn?"3D":"graphing",Xn.current.inject("applet_container")},[Nn]),(0,z.useEffect)(()=>{ar(Jt)},[Jt]),(0,z.useImperativeHandle)(Zn,()=>({getImgData:jt})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:An}),z.createElement(Ue.Z,{align:"middle"},z.createElement($t.Z,{flex:1},z.createElement(Ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Nn,onChange:on=>ar(on)})),z.createElement($t.Z,null,z.createElement(Ne.ZP,{size:"large",onClick:jt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ht=ie(9057);const Zt="link",ln="upload-image",Yt="add-flowchart",an="draw-image",It="add-flowchart",Qt="code-block",Ut="add-table",Ae="------------",ut={default:Ae,left:`:${Ae}`,center:`:${Ae}:`,right:`${Ae}:`};var At=ie(79006),Gt=ie(76406);function De(){}let et=0;const gt=1e4,Nt="\u2581",_t="@\u2581\u2581@",cn="@\u2581@",Sn=` **\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`,Cn=["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 sn(Jt){return/^\d+$/.test(Jt)?`${Jt}px`:Jt}const gn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",$n={[gn+"-B"]:"bold",[gn+"-I"]:"italic"},bn={[Zt]:"\u6DFB\u52A0\u94FE\u63A5",[Qt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ln]:"\u6DFB\u52A0\u56FE\u7247",[an]:"\u6DFB\u52A0\u753B\u56FE",[Yt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ut]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var vn=({defaultValue:Jt="",onChange:On,width:mn="100%",height:kn=400,miniToolbar:jn=!1,isFocus:Zn=!1,watch:An,insertTemp:Xn,mode:Nn="markdown",id:ar="markdown-editor-id",showResizeBar:qn=!1,noStorage:jt=!1,showNullButton:on=!1,showNullProgramButton:zn=!1,hidetoolBar:nr=!1,fullScreen:ze=!1,onBlur:ct,onCMBeforeChange:Ee,onFullScreen:Fe,className:Ie="",disablePaste:He=!1,disabled:ye=!1,disabledFill:Qe=!1,placeholder:it="",values:vt="",extraUse:ot,onAddBlank:We})=>{const[Ge,st]=(0,z.useState)(null),[en,Xt]=(0,z.useState)(Jt),[qt,Dn]=(0,z.useState)(An),[Ln,Hn]=(0,z.useState)(ze),[Mn,xn]=(0,z.useState)(""),[Pn,Fn]=(0,z.useState)(0),[Yn,Gn]=(0,z.useState)(kn),[_n,wn]=(0,z.useState)(!1),[er,Wn]=(0,z.useState)(0),[dr,pr]=(0,z.useState)(0),sr=(0,z.useRef)(),ur=(0,z.useRef)(),yr=(0,z.useRef)(),lr=(0,z.useRef)(),fr=(0,z.useRef)(),Qn=(0,z.useRef)(),mr=(0,qe.useDispatch)();(0,z.useEffect)(()=>{const dn=window.scrollY||window.pageYOffset;Xt(vt),Ge==null||Ge.setValue(vt),window.scrollTo(0,dn)},[vt]),(0,z.useEffect)(()=>{Fe==null||Fe(Ln)},[Ln]),(0,z.useEffect)(()=>{if(sr.current){let dn=function(En,Tn){var cr;if(He){Tn.preventDefault();return}const kr=Tn.clipboardData;if(kr){const Pr=kr.types.toString(),Rr=kr.items;if(Pr==="Files"||kr.types.indexOf("Files")>-1){if(Tn.preventDefault(),Nn=="stex")return;try{let Ar=Rr[1];((cr=Rr[0])==null?void 0:cr.kind)==="file"&&(Ar=Rr[0]);const Fr=Ar.getAsFile(),Gr=Fr.name.split(".").pop();(0,we.I)(Fr,Hr=>{var _r,ti,Ei;Hr.id?((_r=Fr==null?void 0:Fr.type)==null?void 0:_r.indexOf("image"))>-1?rn.replaceSelection(``):((ti=Fr==null?void 0:Fr.type)==null?void 0:ti.indexOf("video"))>-1?rn.replaceSelection(``):((Ei=Fr==null?void 0:Fr.type)==null?void 0:Ei.indexOf("pdf"))>-1?rn.replaceSelection(`${Fr.name}`):Cn.includes(Gr)?rn.replaceSelection(`${Fr.name}`):rn.replaceSelection(`[${Fr.name}](/api/attachments/${Hr.id}?type=${Hr.content_type})`):(Hr==null?void 0:Hr.status)===401&&(document.location.href="/user/login")})}catch(Ar){lt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const rn=_e().fromTextArea(sr.current,{mode:Nn,lineNumbers:!jn,lineWrapping:!0,value:Jt,autoCloseTags:!0,autoCloseBrackets:!0});return rn.on("keyup",function(En,Tn){Tn.keyCode===8&&(En.getValue()==""?rn.setOption("placeholder",it):rn.setOption("placeholder",null))}),rn.on("keydown",function(En,Tn){if(Tn.keyCode===8){var cr=zr(En);cr&&Tn.preventDefault()}}),Zn&&rn.focus(),rn.on("paste",dn),ye&&rn.on("beforeChange",function(En,Tn){(Tn.origin==="paste"||Tn.origin==="+input")&&Tn.cancel()}),st(rn),()=>{rn.off("paste",dn)}}},[]);const br=(0,z.useCallback)(()=>{if(ur.current)try{}catch(dn){console.log(dn,"---- to set md editor body height")}},[Yn,ur,Ln]);(0,z.useEffect)(()=>{function dn(){let rn=new xe.Z(En=>{for(let Tn of En)(Tn.target.offsetHeight>0||Tn.target.offsetWidth>0)&&(br(),Ge.setSize("100%","100%"),Ge.refresh())});return rn.observe(sr.current.parentElement),rn}if(Ge){const rn=dn();return()=>{var En,Tn;(En=sr.current)!=null&&En.parentElement&&rn.unobserve((Tn=sr.current)==null?void 0:Tn.parentElement)}}},[Ge,br]),(0,z.useEffect)(()=>{if(Ge){let dn=[];for(const[rn,En]of Object.entries($n)){let Tn={[rn]:()=>{Er(En)}};dn.push(Tn),Ge.addKeyMap(Tn)}return()=>{for(let rn of dn)Ge.removeKeyMap(rn)}}},[Ge]),(0,z.useEffect)(()=>{ze!==Ln&&Hn(ze)},[ze]),(0,At.Z)(()=>{if(!jt&&Pn>0){let dn=new Date().getTime(),rn=window.sessionStorage.getItem(ar);dn>=Pn+gt&&(!rn||rn!==en)&&(window.sessionStorage.setItem(ar,en),wn(!0))}},gt),(0,z.useEffect)(()=>{Dn(An)},[Ge,An]),(0,z.useEffect)(()=>{Ge&&Zn&&Ge.focus()},[Ge,Zn]),(0,z.useEffect)(()=>{if(qt&&Ge){let dn=function(En){let Tn=En.target;if(lr.current){let cr=Tn.scrollTop/Tn.scrollHeight;lr.current.scrollTop=lr.current.scrollHeight*cr}};const rn=Ge.getScrollerElement();return rn.addEventListener("scroll",dn),()=>{rn.removeEventListener("scroll",dn)}}},[Ge,qt]),(0,z.useEffect)(()=>{if(Ge&&Ee){let dn=function(rn,En){Ee(rn,En)};return Ge.on("beforeChange",dn),()=>{Ge.off("beforeChange",dn)}}},[Ge,Ee]),(0,z.useEffect)(()=>{if(Ge&&ct){let dn=function(){ct(Ge.getValue())};return Ge.on("blur",dn),()=>{Ge.off("blur",dn)}}},[Ge,ct]);function zr(dn,rn){var En=dn.getDoc(),Tn=En.getCursor(),cr=En.getLine(Tn.line),kr=cr.charAt(Tn.ch-1),Pr=cr.lastIndexOf("@\u2581@",Tn.ch),Rr=cr.lastIndexOf("@\u2581\u2581@",Tn.ch),Ar=Pr>Rr?Pr:Rr,Fr=Pr>Rr?3:4;if(_t.indexOf(kr)===-1)return null;if(console.log("change1:",rn,dn,cr,Tn,Ar,Pr,Rr,kr),Ar>=0&&Tn.ch-Ar<5){var Gr=Ar+Fr;return En.replaceRange("",{line:Tn.line,ch:Ar},{line:Tn.line,ch:Gr}),{line:Tn.line,ch:Gr}}return null}(0,z.useEffect)(()=>{if(Ge){let dn=function(rn,En){const Tn=rn.getValue();Xt(Tn),Fn(new Date().getTime()),rn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),On&&(zn?On(Tn,pn(Tn)):On(Tn))};return Ge.on("change",dn),()=>{Ge.off("change",dn)}}},[Ge,On]),(0,z.useEffect)(()=>{if(Ge)if(Jt==null)Ge.setValue(""),Xt("");else{const dn=window.scrollY||window.pageYOffset;Jt!==Ge.getValue()&&(Ge.setValue(Jt),Xt(Jt),Ge.setCursor(ye?1:Ge.lineCount(),0),window.scrollTo(0,dn))}},[Ge,Jt]);const Er=(0,z.useCallback)(dn=>{const rn=Ge.getCursor(),En=Ge.getSelection();let Tn=En.split(` `);switch(dn){case"bold":return Ge.replaceSelection("**"+En+"**"),En===""&&Ge.setCursor(rn.line,rn.ch+2),Ge.focus();case"italic":return Ge.replaceSelection("*"+En+"*"),En===""&&Ge.setCursor(rn.line,rn.ch+1),Ge.focus();case"code":return Ge.replaceSelection("`"+En+"`"),En===""&&Ge.setCursor(rn.line,rn.ch+1),Ge.focus();case"inline-latex":return(0,Gt.Ye)(mr)?void 0:(xn("inline-latex"),Ge.focus());case"latex":return Ge.replaceSelection("```latex\n"+En+"\n```"),Ge.setCursor(rn.line+1,En.length+1),Ge.focus();case"line-break":return Ge.replaceSelection(`
`),Ge.focus();case"list-ul":return En===""?Ge.replaceSelection("- "+En):Ge.replaceSelection(Tn.map(cr=>cr===""?"":`- ${cr}`).join(` `)),Ge.focus();case"list-ol":return En===""?Ge.replaceSelection("1. "+En):Ge.replaceSelection(Tn.map((cr,kr)=>cr===""?"":`${kr+1}. ${cr}`).join(` `)),Ge.focus();case"add-null-ch":We==null||We();return;case"add-signal":return En===""&&Ge.setCursor(rn.line,rn.ch),Ge.replaceSelection(cn),Ge.focus();case"add-multiple":return En===""&&Ge.setCursor(rn.line,rn.ch),Ge.replaceSelection(_t),Ge.focus();case"inster-template-1":return En===""&&Ge.setCursor(rn.line,rn.ch),Ge.replaceSelection(Sn),Ge.focus();case"eraser":return Ge.setValue(""),Ge.focus();case"trigger-watch":return Dn(!qt),Ge.focus();case"trigger-full-screen":return Hn(!Ln),Ge.focus();case Zt:xn(Zt);return;case Qt:xn(Qt);return;case ln:xn(ln);return;case an:xn(an);return;case"maths-latex":if((0,Gt.Ye)(mr))return;xn("maths-latex");return;case Yt:fr.current="",sessionStorage.removeItem("file_id"),xn(Yt);return;case Ut:xn(Ut);return;default:throw new Error}},[Ge,qt,Ln]),Br=(0,z.useCallback)((dn,rn)=>{var En,Tn,cr,kr,Pr,Rr;dn!=null&&dn.disabledClose||xn("");const{src:Ar,alt:Fr,id:Gr}=dn||{};switch(Mn){case Zt:const{title:Ni,link:xi}=dn;return Ge.replaceSelection(`[${Ni}](${xi})`),Ge.focus();case Qt:const{language:si,content:Ri}=dn;return Ge.replaceSelection(["```"+si,Ri,"```"].join(` `)),Ge.focus();case"maths-latex":for(var Hr=atob(dn),_r=new Uint8Array(Hr.length),ti=0;ti{Sr.id?Ge.replaceSelection(`![,](/api/attachments/${Sr.id}?type=${Sr.content_type})`):(Sr==null?void 0:Sr.status)===401&&(document.location.href="/user/login")}),Ge.focus();case"inline-latex":return(0,Gt.Ye)(mr)?void 0:(Ge.replaceSelection("`$$"+dn+"$$`"),Ge.focus());case It:return Gr?(Ge.getValue().indexOf(Ar)===-1?Ge.replaceSelection(`
${Fr||
`):document.getElementById(Gr).src=ue.Z.API_SERVER+Ar+"?t="+Date.now(),Ge.focus()):void 0;case ln:case an:const jr=rn,Ki=(cr=(Tn=(En=jr==null?void 0:jr.name)==null?void 0:En.split("."))==null?void 0:Tn.pop)==null?void 0:cr.call(Tn);return((kr=jr==null?void 0:jr.type)==null?void 0:kr.indexOf("image"))>-1||!(jr!=null&&jr.type)?jr!=null&&jr.align||jr!=null&&jr.width?Ge.replaceSelection(`

${Fr||

`):Ge.replaceSelection(`${Fr||`):((Pr=jr==null?void 0:jr.type)==null?void 0:Pr.indexOf("video"))>-1?Ge.replaceSelection(``):((Rr=jr==null?void 0:jr.type)==null?void 0:Rr.indexOf("pdf"))>-1?Ge.replaceSelection(`${jr.name}`):Cn.includes(Ki)?Ge.replaceSelection(`${jr.name}`):Ge.replaceSelection(`[${jr.name}](${Ar})`),Ge.focus();case Ut:const{row:qr,col:xr,align:$r}=dn;let Vr=` `;for(let Sr=0;Sr{switch(Mn){case Zt:return z.createElement(ht,{callback:Br,onCancel:Mr});case Qt:return z.createElement(yt.Z,{callback:Br,onCancel:Mr});case ln:return z.createElement(we.Z,{callback:Br,onCancel:Mr});case Yt:return z.createElement(oe,{editImgId:fr.current,callback:Br,onCancel:Mr});case Ut:return z.createElement(Me,{callback:Br,onCancel:Mr});case"maths-latex":return z.createElement(Lt,{showSaveButton:!0,callback:Br});case"inline-latex":return z.createElement(Ht.Z,{showSaveButton:!0,callback:Br});default:return null}},[Mn]);function Mr(){xn("")}(0,z.useEffect)(()=>{if(yr.current){let dn=function(Pr){cr=!0,kr=Pr.pageY},rn=function(){cr=!1},En=function(Pr){if(cr){let Rr=Pr.pageY-kr;Rr<0&&(Rr=0),Rr>300&&(Rr=300);let Ar=kn+Rr+"px";Gn(Ar)}},Tn=yr.current,cr=!1,kr=0;return Tn.addEventListener("mousedown",dn),document.addEventListener("mousemove",En),document.addEventListener("mouseup",rn),()=>{Tn.removeEventListener("mousedown",dn),document.removeEventListener("mousemove",En),document.removeEventListener("mouseup",rn)}}},[Ge,yr]),(0,z.useEffect)(()=>{Gn(kn)},[kn]);const ir=sn(mn),rr=sn(Yn),Jn={width:ir,height:rr},un=(0,z.useMemo)(()=>{if(Pn){let dn=new Date(Pn),rn=dn.getHours(),En=dn.getMinutes(),Tn=dn.getSeconds();return rn=rn<10?"0"+rn:rn,En=En<10?"0"+En:En,Tn=Tn<10?"0"+Tn:Tn,`${rn}:${En}:${Tn}`}return 0},[Pn]),pn=dn=>{const rn=[];if(zn){let En=-1;dn=dn.replace(/(@▁▁@|@▁@)/g,function(Tn,cr,kr){rn.push({multiLine:Tn!==cn})})}return rn};function hn(){window.sessionStorage.removeItem(ar),wn(!1),Fn(0)}function nn(){wn(!1),Fn(0),Ge.setValue(window.sessionStorage.getItem(ar))}(0,z.useEffect)(()=>{bn[Mn]&&Mn!==an&&Mn!==Yt&&setTimeout(()=>{const dn=document.getElementsByClassName("markdown-popup-form")[0],rn=window.innerWidth/2-dn.offsetWidth/2,En=window.innerHeight/2-dn.offsetHeight/2;Wn(rn),pr(En)},0)},[Mn]);const Bn=dn=>{dn.preventDefault();const rn=dn.clientX-er,En=dn.clientY-dr;document.body.onmousemove=Tn=>{let cr=Tn.clientX-rn,kr=Tn.clientY-En;const Pr=document.getElementsByClassName("markdown-popup-form")[0],Rr=window.innerWidth-Pr.offsetWidth,Ar=window.innerHeight-Pr.offsetHeight;cr=Math.max(0,Math.min(cr,Rr)),kr=Math.max(0,Math.min(kr,Ar)),Vn(Tn.clientX,Tn.clientY,rn,En)&&(Wn(cr),pr(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Vn=(dn,rn,En,Tn)=>{const cr=document.body.clientHeight,kr=document.body.clientWidth;return dn<20&&En>dn||dn>kr-20&&Enrn||rn>cr-20&&Tn{var rn;fr.current=dn,(rn=Qn.current)==null||rn.setHeight("100vh"),setTimeout(()=>{xn("add-flowchart")},150)}})):null))),qn?z.createElement("a",{ref:yr,className:"editor-resize"}):null,Mn===an&&z.createElement(Tt,{callback:Br,onCancel:Mr}),Mn===Yt&&z.createElement(oe,{ref:Qn,editImgId:fr.current,callback:Br,onCancel:Mr}),z.createElement(Ct.Z,null,bn[Mn]&&Mn!==an&&Mn!==Yt?z.createElement(Ze.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:dr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:Bn},bn[Mn]),open:!0,onCancel:Mr,footer:null,destroyOnClose:!0,width:Mn===Yt?"1200px":null,height:Mn===Yt?"80vh":null,className:"markdown-popup-form"},Ir):null))}},53332:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return St},I:function(){return Ft}});var z=ie(28284),qe=ie(6767),me=ie(37568),_e=ie(44104),xe=ie(4875),Ce=ie(47889),Oe=ie(7939),Be=ie(23216),Pe=ie(59301),fe=ie(59301),Je=Object.defineProperty,Se=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,je=(Ct,Xe,bt)=>Xe in Ct?Je(Ct,Xe,{enumerable:!0,configurable:!0,writable:!0,value:bt}):Ct[Xe]=bt,Et=(Ct,Xe)=>{for(var bt in Xe||(Xe={}))$e.call(Xe,bt)&&je(Ct,bt,Xe[bt]);if(nt)for(var bt of nt(Xe))Ve.call(Xe,bt)&&je(Ct,bt,Xe[bt]);return Ct},Bt=(Ct,Xe)=>Se(Ct,Dt(Xe));const{useForm:zt}=z.default,Pt={width:280,marginRight:10},xt={labelCol:{span:5},wrapperCol:{span:19}};var St=({callback:Ct,onCancel:Xe})=>{const[bt]=zt();let Ne=(0,Pe.useRef)();function rt(wt){Ne.current.width=bt.getFieldValue("width"),Ne.current.align=bt.getFieldValue("align"),Ct(wt,Ne.current)}function at(wt,ke){if(wt.status===-1){qe.ZP.error(wt.message);return}bt.setFieldsValue({src:`/api/attachments/${wt.id}`,type:ke.type})}function pe(wt){let ke=wt.target.files[0];Ne.current=ke,Ft(ke,at)}return fe.createElement(z.default,Bt(Et({form:bt},xt),{className:"upload-image-panel",onFinish:rt,style:{width:470,overflow:"hidden"}}),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},fe.createElement("div",{className:"flex-container"},fe.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},fe.createElement(me.default,{style:Pt})),fe.createElement(tt,{onFileChange:pe}))),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(me.default,{style:{width:264}})),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},fe.createElement(_e.Z,null,fe.createElement(z.default.Item,{name:"width",style:{margin:0}},fe.createElement(xe.Z,{style:{width:264}})),fe.createElement("span",{className:"ml8"},"%"))),fe.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},fe.createElement(Ce.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"}]})),fe.createElement("aside",null,fe.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},fe.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Oe.ZP,{type:"default",onClick:Xe},"\u53D6\u6D88"))))};function tt({onFileChange:Ct}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:Ct}))}function Ft(Ct,Xe){if(!Ct)throw new String("\u6CA1\u6709\u6587\u4EF6");let bt=new FormData;bt.append("editormd-image-file",Ct),bt.append("file_param_name","editormd-image-file"),bt.append("byxhr","true");var Ne=new window.XMLHttpRequest;Ne.withCredentials=!0,Ne.addEventListener("load",function(rt){Xe(JSON.parse(rt.target.responseText),Ct)},!1),Ne.addEventListener("error",function(rt){console.error(rt)},!1),Ne.open("POST",`${Be.KI}/api/attachments.json`),Ne.send(bt)}},88487:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return me}});var z=ie(59301),qe=ie(4676);class me extends z.Component{constructor(xe){super(xe);const Ce=window.document;this.node=Ce.createElement("div"),Ce.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,qe.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(tn,Wt,ie){"use strict";ie.d(Wt,{SV:function(){return Tt},ZP:function(){return kt}});var z=ie(59301),qe=ie(76374);const me={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},_e={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},xe={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std",content:["using namespace std"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},Ce={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},Oe={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var Be=ie(53184),Pe=ie.n(Be),fe=(Re,$t,lt)=>new Promise((ae,te)=>{var ee=ne=>{try{ue(lt.next(ne))}catch(he){te(he)}},oe=ne=>{try{ue(lt.throw(ne))}catch(he){te(he)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);ue((lt=lt.apply(Re,$t)).next())});const Je={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Se=(Re,$t,lt,ae)=>{const te=$t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:lt.lineNumber,endColumn:lt.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:Re.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},Dt=(Re,$t,lt,ae)=>{Re.languages.registerCompletionItemProvider($t,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),ue={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Se(Re,te,ee,ue),...lt.map(be=>({label:be,kind:Re.languages.CompletionItemKind.Keyword,documentation:be,insertText:be,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue})),...ae.map(be=>({label:be.label,kind:Re.languages.CompletionItemKind.Snippet,documentation:be.content,insertText:ne.startsWith("#")?be.content.replace(/#/,""):be.content,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue}))]}}})};var nt=Re=>{Je.languages.forEach($t=>{Re.languages.registerDocumentFormattingEditProvider($t,{provideDocumentFormattingEdits(lt){return fe(this,null,function*(){const ae=Pe()(lt.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:lt.getFullModelRange(),text:ae}]})}})}),Dt(Re,"java",_e.keywords,_e.quickKey),Dt(Re,"cpp",xe.keywords,xe.quickKey),Dt(Re,"c",me.keywords,[]),Dt(Re,"python",Ce.keywords,Ce.quickKey),Dt(Re,"scala",Oe.keywords,Oe.quickKey)};const $e="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ve=Object.defineProperty,je=(Re,$t,lt)=>$t in Re?Ve(Re,$t,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Re[$t]=lt,Et=(Re,$t,lt)=>je(Re,typeof $t!="symbol"?$t+"":$t,lt);const Bt=class $s{constructor($t,lt,ae){this.placeholder=$t,this.editor=lt,this.monaco=ae,lt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return $s.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Et(Bt,"ID","editor.widget.placeholderHint");var Pt=Bt,xt=ie(96236),St=ie(6767),tt=ie(25399),Ft=ie(78267),Ct=ie(33156),Xe=ie(56102),bt=Object.defineProperty,Ne=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,ke=(Re,$t,lt)=>$t in Re?bt(Re,$t,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Re[$t]=lt,Te=(Re,$t)=>{for(var lt in $t||($t={}))pe.call($t,lt)&&ke(Re,lt,$t[lt]);if(at)for(var lt of at($t))wt.call($t,lt)&&ke(Re,lt,$t[lt]);return Re},Ot=(Re,$t)=>Ne(Re,rt($t)),ve=(Re,$t)=>{var lt={};for(var ae in Re)pe.call(Re,ae)&&$t.indexOf(ae)<0&&(lt[ae]=Re[ae]);if(Re!=null&&at)for(var ae of at(Re))$t.indexOf(ae)<0&&wt.call(Re,ae)&&(lt[ae]=Re[ae]);return lt},se=(Re,$t,lt)=>new Promise((ae,te)=>{var ee=ne=>{try{ue(lt.next(ne))}catch(he){te(he)}},oe=ne=>{try{ue(lt.throw(ne))}catch(he){te(he)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);ue((lt=lt.apply(Re,$t)).next())});function Le(Re){return/^\d+$/.test(Re)?`${Re}px`:Re}function ht(){}let yt=!1;const we={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Ze(Re=[]){let $t=Re;if(Array.isArray(Re)){for(let lt=0;ltse(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Re){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Re)}});var kt=Re=>{var $t=Re,{width:lt="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:ue={},overrideServices:ne={},theme:he="vs-dark",onEditBlur:be,isCopy:pt=!1,onSave:Me,autoHeight:Ke=!1,forbidCopy:dt=!1,forbidCopyTips:Mt,onChange:mt=ht,editorDidMount:Lt=ht,onFocus:Ht=ht,onBreakPoint:Zt=ht,breakPointValue:ln=[],filename:Yt="educoder.txt",errorLine:an,errorContent:It="",highlightLine:Qt,openBreakPoint:Ut=!1,placeholder:Ae="",showMiniMap:ut=!0}=$t,At=ve($t,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Gt=(0,z.useRef)(),De=(0,z.useRef)({}),et=(0,z.useRef)(),gt=(0,z.useRef)(),Nt=(0,z.useRef)([]),_t=(0,z.useRef)(!1),cn=(0,z.useRef)(),Sn=(0,z.useRef)(),Cn=(0,z.useRef)(!1),[sn,yn]=(0,z.useState)(!1);function gn(){let jt;return Gt.current&&(jt=new qe.Z(on=>{for(let zn of on)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&De.current.instance.layout()}),jt.observe(Gt.current)),jt}function $n(){St.ZP.warning({content:decodeURIComponent(Mt||$e),key:"monaco-editor-tip"})}const bn=()=>{let jt=De.current.instance;if(te!=null&&jt&&sn){const on=jt.getModel();on&&te!==on.getValue()&&(yt=!0,on.setValue(te),jt.layout(),yt=!1)}};(0,z.useEffect)(()=>{const jt=Ct.Z.subscribe("formatDocument",on=>{var zn;let nr=De.current.instance;(zn=nr==null?void 0:nr.getAction)==null||zn.call(nr,"editor.action.formatDocument").run()});return window.updateMonacoValue=on=>{mt(on)},jt},[]),(0,z.useEffect)(()=>{var jt;let on=De.current.instance;gt.current&&clearTimeout(gt.current),gt.current=setTimeout(()=>{bn()},500),te&&(te!=null&&te.length)&&((jt=on==null?void 0:on.updateOptions)==null||jt.call(on,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,sn,De.current]),(0,z.useEffect)(()=>{if(an&&De.current&&De.current.instance){let on=De.current.instance;on.changeViewZones(function(zn){var nr=document.createElement("div");nr.style.padding="10px 20px",nr.style.width="calc(100% - 20px)",nr.className="my-error-line-wrp",nr.innerHTML=It,zn.addZone({afterLineNumber:an||11,heightInLines:3,domNode:nr})});var jt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};on.addOverlayWidget(jt),on.revealPositionInCenter({lineNumber:20,column:1})}},[an,De.current,sn]);const vn=(jt="",on)=>{if(!jt||jt.trim()==="")return!0;const nr=De.current.instance.getModel().getLineTokens(on);let ze=!1;for(let ct=0;ct<2;ct++)nr.getStandardTokenType(ct)===1&&(ze=!0);return ze};(0,z.useEffect)(()=>{var jt;const on=(jt=De.current)==null?void 0:jt.instance;if(on&&sn&&dt){const zn=on.onDidBlurEditorWidget(()=>{Cn.current=!1}),nr=on.onDidFocusEditorText(()=>{Cn.current=!0});return()=>{zn.dispose(),nr.dispose()}}},[De.current,sn,dt]),(0,z.useEffect)(()=>{var jt;if((jt=De.current)!=null&&jt.instance&&sn&&Ut){let on=De.current.instance,zn=on.getModel();if(!zn)return;(()=>{var ot;let We=[],Ge=[];const st=zn.getAllDecorations();for(let Xt of st)Xt.options.className==="highlighted-line"&&(We.push((ot=Xt==null?void 0:Xt.range)==null?void 0:ot.startLineNumber),Ge.push(Xt==null?void 0:Xt.id));if(Qt===We[0])return;zn.deltaDecorations(Ge,[]);const en=zn.getLineCount();Qt&&Qt<=en&&(on.deltaDecorations([],[{range:new Ue.Range(Qt,1,Qt,zn.getLineMaxColumn(Qt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),on.revealLineInCenter(Qt))})();const ze=(ot=!1)=>{var We;let Ge=[],st=[];const en=zn.getAllDecorations();for(let Xt of en)Xt.options.linesDecorationsClassName==="breakpoints-select"&&(Ge.push((We=Xt==null?void 0:Xt.range)==null?void 0:We.startLineNumber),st.push(Xt==null?void 0:Xt.id));if(ot)return{lines:Ge,ids:st};Zt(Ge)},ct=ot=>se(void 0,null,function*(){let We={range:new Ue.Range(ot,1,ot,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield zn.deltaDecorations([],[We]),ze()}),Ee=ot=>se(void 0,null,function*(){let We=[];const Ge=on.getLineDecorations(ot);for(let st of Ge)st.options.linesDecorationsClassName==="breakpoints-select"&&We.push(st.id);yield zn.deltaDecorations(We,[]),ze()}),Fe=ot=>{let We=on.getLineDecorations(ot);for(let Ge of We)if(Ge.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ft.isEqual)(ln,ze(!0).lines)){zn.deltaDecorations(ze(!0).ids,[]);const ot=ln.map(We=>({range:new Ue.Range(We,1,We,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));zn.deltaDecorations([],ot)}const Ie=on.onDidChangeModelContent(ot=>{let We=on.getPosition();if(We){let Ge=We.lineNumber;clearTimeout(Sn.current),Sn.current=setTimeout(()=>{vn(zn.getLineContent(Ge),Ge)?Ee(Ge):Fe(Ge)?(Ee(Ge),ct(Ge)):ze()},100)}}),He=on.onMouseDown(ot=>{var We,Ge,st;if(ot.target.detail&&((st=(Ge=(We=ot.target)==null?void 0:We.element)==null?void 0:Ge.className)!=null&&st.includes("line-numbers"))){let en=ot.target.position.lineNumber;if(vn(zn.getLineContent(en),en))return;Fe(en)?Ee(en):ct(en)}}),ye=ot=>{let We={range:new Ue.Range(ot,1,ot,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Nt.current=on.deltaDecorations(Nt.current,[We])},Qe=()=>{Nt.current=on.deltaDecorations(Nt.current,[])},it=on.onMouseMove(ot=>{var We,Ge,st;if(Qe(),ot.target.detail&&((st=(Ge=(We=ot.target)==null?void 0:We.element)==null?void 0:Ge.className)!=null&&st.includes("line-numbers"))){let en=ot.target.position.lineNumber;if(vn(zn.getLineContent(en),en))return;ye(en)}}),vt=on.onMouseLeave(()=>{Qe()});return()=>{Ie.dispose(),He.dispose(),it.dispose(),vt.dispose()}}},[De.current,sn,ln,Qt,Ut,ee]),(0,z.useEffect)(()=>{var jt;(jt=De.current)!=null&&jt.instance&&Ut&&De.current.instance.setPosition({lineNumber:0,column:0})},[Qt]);function Jt(){let jt=De.current.instance;if(jt){const on=jt.getSelection(),zn=De.current.pastePos||{},nr=new Ue.Range(zn.startLineNumber||on.endLineNumber,zn.startColumn||on.endColumn,zn.endLineNumber||on.endLineNumber,zn.endColumn||on.endColumn);setTimeout(()=>{jt.executeEdits("",[{range:nr,text:""}])},300)}}function On(jt){(window.navigator.platform.match("Mac")?jt.metaKey:jt.ctrlKey)&&jt.keyCode==83&&(jt.preventDefault(),Me())}const mn=()=>{if(Ke&&De.current.instance){const jt=De.current.instance.getContentHeight();ar(jt{if(!Cn.current)return;const{keyCode:on,ctrlKey:zn,metaKey:nr,target:ze,type:ct}=jt;return(ct==="paste"||(on===67||on===86)&&(nr||zn))&&ze.nodeName==="TEXTAREA"&&($n(),jt.preventDefault()),!1};function Zn(jt,on){var zn=window.URL||window.webkitURL||window,nr=new Blob([on]),ze=document.createElementNS("http://www.w3.org/1999/xhtml","a");ze.href=zn.createObjectURL(nr),ze.download=jt,kn(ze)}(0,z.useEffect)(()=>{mn()},[mn]),(0,z.useEffect)(()=>{Gt.current&&!sn&&Promise.all([ie.e(8909),ie.e(5977)]).then(ie.bind(ie,71448)).then(jt=>{try{Ue=jt,De.current.instance=Ue.editor.create(Gt.current,{value:te,language:Ze(ee),theme:he,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:ut||!1}},ne);const on=De.current.instance;let ze=[...xt.BH._menuItems].find(Ie=>Ie[0]._debugName=="EditorContext")[1],ct=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ee=(Ie,He)=>{var ye,Qe;let it=Ie._first;do He.includes((Qe=(ye=it.element)==null?void 0:ye.command)==null?void 0:Qe.id)&&Ie._remove(it);while(it=it.next)};if(Lt(on,Ue),setTimeout(()=>{mn(),De.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Zn(Yt||"educoder.txt",on.getValue())}})},500),De.current.subscription=on.onDidChangeModelContent(Ie=>{_t.current?clearTimeout(cn.current):(mn(),mt(on.getValue(),Ie)),cn.current=setTimeout(()=>{_t.current=!1},500)}),window.Monaco||nt(Ue,Ze(ee)),dt&&(Ee(ze,ct),Gt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",jn),window.removeEventListener("paste",jn),window.addEventListener("keydown",jn),window.addEventListener("paste",jn)),window.Monaco=Ue,be&&on.onDidBlurEditorWidget(()=>{be(on.getValue())}),Ht&&on.onDidFocusEditorText(()=>{dt&&Kt(),Ht(on.getValue())}),dt){Kt();try{on.onDidPaste(Ie=>{const He=on.getSelection(),ye=De.current.pastePos||{},Qe=new Ue.Range(ye.startLineNumber||He.endLineNumber,ye.startColumn||He.endColumn,ye.endLineNumber||He.endLineNumber,ye.endColumn||He.endColumn);on.executeEdits("",[{range:Ie.range,text:""}])})}catch(Ie){}}let Fe=gn();return Ae&&typeof Ae=="string"&&new Pt(Ae,on,Ue),yn(!0),()=>{const Ie=De.current.instance;Ie.dispose();const He=Ie.getModel();He&&He.dispose(),De.current.subscription&&De.current.subscription.dispose(),Fe.unobserve(Gt.current)}}catch(on){}})},[]),(0,z.useEffect)(()=>{if(De.current.instance&&sn)return document.addEventListener("keydown",On,!1),()=>{document.removeEventListener("keydown",On)}},[Me,sn]),(0,z.useEffect)(()=>{let jt=De.current.instance;if(jt&&sn){let on=Ze(ee);Ue.editor.setModelLanguage(jt.getModel(),on)}},[ee,sn]),(0,z.useEffect)(()=>{De.current.instance&&sn&&Ue.editor.setTheme(he)},[he,sn]),(0,z.useEffect)(()=>{let jt=De.current.instance;et.current=ue,jt&&sn&&(jt.updateOptions(Te({},ue)),setTimeout(()=>{jt.getModel().updateOptions(Te({},ue))},200))},[JSON.stringify(ue),sn]),(0,z.useEffect)(()=>{let jt=De.current.instance;jt&&sn&&jt.layout()},[lt,ae,sn]);const[An,Xn]=(0,z.useState)(Le(lt)),[Nn,ar]=(0,z.useState)(Le(ae)),qn=Ot(Te({},oe),{width:An,height:Nn,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:Gt,style:qn,onFocus:()=>{dt&&Kt()}},pt&&z.createElement(Xe.CopyToClipboard,{text:te,onCopy:()=>St.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(tt.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Tt({width:Re="100%",height:$t="100%",original:lt,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[ue,ne]=(0,z.useState)(null);function he(Ke){let dt;return oe.current&&(dt=new qe.Z(Mt=>{for(let mt of Mt)(mt.target.offsetHeight>0||mt.target.offsetWidth>0)&&Ke.layout()}),dt.observe(oe.current)),dt}(0,z.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(Ke=>{Ue=Ke;const dt=Ue.editor.createDiffEditor(oe.current,Ot(Te({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));ne(dt);let Mt=he(dt);return()=>{dt.dispose();const mt=dt.getModel();mt&&mt.dispose(),Mt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{ue&&ue.setModel({original:Ue.editor.createModel(lt,te),modified:Ue.editor.createModel(ae,te)})},[lt,ae,te,ue]);const be=Le(Re),pt=Le($t),Me={width:be,height:pt};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:Me})}},79006:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return qe}});var z=ie(59301);function qe(me,_e){const xe=(0,z.useRef)();(0,z.useEffect)(()=>{xe.current=me}),(0,z.useEffect)(()=>{function Ce(){xe.current()}if(_e!==null){let Oe=setInterval(Ce,_e);return()=>clearInterval(Oe)}},[_e])}},74442:function(tn,Wt,ie){"use strict";ie.r(Wt),ie.d(Wt,{default:function(){return Ct}});var z=ie(59301),qe=ie(44283),me=ie(28284),_e=ie(91882),xe=ie(37568),Ce=ie(7939),Oe=ie(39116),Be=ie(9657),Pe={bg:"bg___mk00l",flexRow:"flexRow___cF86d",flexJustifyCenter:"flexJustifyCenter___xffJH",flexAlignEnd:"flexAlignEnd___XZNbd",flexAlignCenter:"flexAlignCenter___rBycD",flexColumn:"flexColumn___bvZmC",formWrap:"formWrap___IeMB8",titleWrap:"titleWrap___jBULn",fieldWrap:"fieldWrap___mRoj3",mdWrap:"mdWrap___XC6AD",backgroundFa:"backgroundFa___dCgV1",button:"button___ga1Ue"},fe=ie(57940),Je=ie(76406),Se=ie(23337),Dt=ie(49317),nt=ie(78267),$e=Object.defineProperty,Ve=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Pt=(Xe,bt,Ne)=>bt in Xe?$e(Xe,bt,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Xe[bt]=Ne,xt=(Xe,bt)=>{for(var Ne in bt||(bt={}))Bt.call(bt,Ne)&&Pt(Xe,Ne,bt[Ne]);if(Et)for(var Ne of Et(bt))zt.call(bt,Ne)&&Pt(Xe,Ne,bt[Ne]);return Xe},St=(Xe,bt)=>Ve(Xe,je(bt)),tt=(Xe,bt,Ne)=>new Promise((rt,at)=>{var pe=Te=>{try{ke(Ne.next(Te))}catch(Ot){at(Ot)}},wt=Te=>{try{ke(Ne.throw(Te))}catch(Ot){at(Ot)}},ke=Te=>Te.done?rt(Te.value):Promise.resolve(Te.value).then(pe,wt);ke((Ne=Ne.apply(Xe,bt)).next())});const Ft=({shixunHomeworks:Xe,newCourse:bt,globalSetting:Ne,loading:rt,dispatch:at})=>{var pe;const wt=(0,qe.useParams)(),[ke]=me.default.useForm(),[Te,Ot]=(0,z.useState)({}),[ve,se]=(0,z.useState)(),Le=(0,z.useRef)(),{commonHomeWorkAddDefaultData:ht}=Xe;let[yt,we]=(0,z.useState)({});(0,z.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:Tt,categoryId:Re}=wt;Le.current=wt==null?void 0:wt.courseId,se(!!Le.current),Le.current&&Ze(),at({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:Re,coursesId:Tt,type:1}})},[]);const Ze=()=>tt(void 0,null,function*(){const Tt=yield at({type:"newCourse/getEditCourseData",payload:{id:Le.current}});Tt&&(ke.setFieldsValue({name:Tt.name}),ke.setFieldsValue({intro:Tt.description}),ke.setFieldsValue({notice:Tt.learning_notes}),Ot({name:Tt.name,intro:Tt.description,notice:Tt.learning_notes}))}),Ue=Tt=>tt(void 0,null,function*(){var Re,$t;const lt=xt({},Te);lt.attachment_ids&&(lt.attachment_ids=(Re=lt==null?void 0:lt.attachment_ids)==null?void 0:Re.map(oe=>oe.response.id)),lt.reference_attachment_ids&&(lt.reference_attachment_ids=($t=lt==null?void 0:lt.reference_attachment_ids)==null?void 0:$t.map(oe=>oe.response.id));const{coursesId:ae,categoryId:te}=wt,ee=yield(0,Be.H1)(St(xt({coursesId:ae,category:te},lt),{base_on_project:!0,type:1}));(ee==null?void 0:ee.status)===0&&(Kt(ee.homework_id),(0,Je.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"]),qe.history.push(`/classrooms/${wt.coursesId}/common_homework/${ee.homework_id}/detail`))});function Kt(Tt){return tt(this,null,function*(){if(!(yt!=null&&yt.ec_point_ids))return;let Re=yield(0,Dt.ZP)(`/api/ec_courses/${yt==null?void 0:yt.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:xt({homework_common_id:Tt},yt)})})}const kt=(0,nt.debounce)(()=>{ke.submit()},300,{leading:!0,trailing:!1});return z.createElement("section",{className:Pe.bg},ht.course_name&&z.createElement("section",{className:"animated fadeIn"},z.createElement("aside",{className:"mt10"},ht.category&&z.createElement(_e.Z,{separator:">"},z.createElement(_e.Z.Item,null,z.createElement(qe.Link,{to:`/classrooms/${ht.course_id}/common_homework`},ht.course_name)),z.createElement(_e.Z.Item,null,z.createElement(qe.Link,{to:`/classrooms/${ht.course_id}/common_homework`},ht.category.category_name)),z.createElement(_e.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),z.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"),z.createElement(me.default,{form:ke,className:Pe.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",ke.getFieldsValue()),Ot(xt({},ke.getFieldsValue()))},onFinish:Ue},z.createElement("div",{className:Pe.fieldWrap},z.createElement(me.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},z.createElement(xe.default,{maxLength:120,suffix:`${((pe=Te.name)==null?void 0:pe.length)||0}/120`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),z.createElement("div",{className:Pe.mdWrap},z.createElement(me.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},z.createElement(Oe.Z,{watch:!0,defaultValue:Te.intro})),z.createElement("div",null,z.createElement(me.default.Item,{name:"attachment_ids"},z.createElement(fe.Z,null)))),z.createElement("div",{className:Pe.mdWrap},z.createElement(me.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},z.createElement(Oe.Z,{watch:!0,defaultValue:Te.notice})),z.createElement("div",null,z.createElement(me.default.Item,{name:"reference_attachment_ids"},z.createElement(fe.Z,null))))),z.createElement("div",{className:Pe.mdWrap},z.createElement(Se.Z,{setitem:Tt=>we(xt({},Tt))})),z.createElement("div",{className:Pe.backgroundFa},z.createElement("div",{className:"pt40 mb30"},z.createElement(me.default.Item,null,z.createElement(Ce.ZP,{size:"middle",type:"primary",className:`${Pe.button} mr20`,htmlType:"submit",onClick:kt,loading:rt["newCourse/editCourse"]||rt["newCourse/submitCourse"]},"\u63D0\u4EA4"),z.createElement(Ce.ZP,{size:"middle",type:"primary",ghost:!0,className:Pe.button,onClick:()=>qe.history.push(`/classrooms/${wt.coursesId}/common_homework`)},"\u53D6\u6D88")))))};var Ct=(0,qe.connect)(({shixunHomeworks:Xe,newCourse:bt,loading:Ne,globalSetting:rt})=>({shixunHomeworks:Xe,newCourse:bt,globalSetting:rt,loading:Ne.effects}))(Ft)},6755:function(tn,Wt,ie){"use strict";ie.d(Wt,{$J:function(){return me},JZ:function(){return xe},bN:function(){return Oe},jP:function(){return Ce},rO:function(){return _e}});var z=ie(49317),qe=(Be,Pe,fe)=>new Promise((Je,Se)=>{var Dt=Ve=>{try{$e(fe.next(Ve))}catch(je){Se(je)}},nt=Ve=>{try{$e(fe.throw(Ve))}catch(je){Se(je)}},$e=Ve=>Ve.done?Je(Ve.value):Promise.resolve(Ve.value).then(Dt,nt);$e((fe=fe.apply(Be,Pe)).next())});function me(Be){return(0,z.U2)(`libraries/${Be}.json`)}function _e(){return(0,z.U2)("library_tags.json")}function xe(Be){return qe(this,null,function*(){return(yield(0,z.IV)(`attachments/${Be}.json`)).status===0})}function Ce(Be){return(0,z.v_)("libraries.json",Be)}function Oe(Be,Pe){return(0,z.gz)(`libraries/${Be}.json`,Pe)}},20047:function(tn,Wt,ie){"use strict";ie.d(Wt,{AL:function(){return Pt},Iy:function(){return Je},Qv:function(){return nt},ez:function(){return zt},jb:function(){return Se}});var z=ie(32834),qe=ie.n(z),me=ie(11690),_e=ie.n(me);let xe=1;function Ce(Ct,Xe){const bt=Ct.match(/^(\s+)(?:```)/);if(bt===null)return Xe;const Ne=bt[1];return Xe.split(` `).map(rt=>{const at=rt.match(/^\s+/);if(at===null)return rt;const[pe]=at;return pe.length>=Ne.length?rt.slice(Ne.length):rt}).join(` `)}let Oe=[],Be=["
    "];const Pe=new(qe()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Je(){Oe.length=0,Be=["
      "]}const Se={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Dt(Ct,Xe,bt,Ne){if(Xe>=Ct.length||Ct[Xe].level<=bt)return Xe;var rt=Ct[Xe];Ne.push("
    • "+rt.text+""),Xe++;var at=[];return Xe=Dt(Ct,Xe,rt.level,at),at.length>0&&(Ne.push("
        "),at.forEach(function(pe){Ne.push(pe)}),Ne.push("
      ")),Ne.push("
    • "),Xe=Dt(Ct,Xe,bt,Ne),Xe}function nt(){return Dt(Oe,0,0,Be),Be.push("
    "),Be.join("")}const $e={heading(Ct){const Xe=fe.exec(Ct);if(xe+=1,Xe)return{type:"heading",raw:Xe[0],depth:Xe[1].length,text:Xe[2]}},fences(Ct){const Xe=this.rules.block.fences.exec(Ct);if(Xe){const bt=Xe[0];let Ne=Ce(bt,Xe[3]||"");const rt=Xe[2]?Xe[2].trim():Xe[2];if(["latex","katex","math"].indexOf(rt)>=0){const at=Et(),pe=Ne;Ne=at,Bt[at]={type:"block",expression:pe}}return{type:"code",raw:bt,lang:rt,text:Ne}}}},Ve=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let je=0;const Et=()=>`__special_katext_id_${je++}__`;let Bt={};function zt(){return Bt}function Pt(){je=0,Bt={}}function xt(Ct){return Ct=Ct.replace(Ve,(Xe,bt)=>{const Ne=Et();return Bt[Ne]={type:"inline",expression:bt},Ne}),Ct}const St=Pe.listitem;Pe.listitem=function(Ct){return St(xt(Ct))};const tt=Pe.paragraph;Pe.paragraph=function(Ct){return tt(xt(Ct))};const Ft=Pe.tablecell;Pe.tablecell=function(Ct,Xe){return Ft(xt(Ct),Xe)},Pe.code=function(Ct,Xe,bt){const Ne=(Xe||"").match(/\S*/)[0];return Ne?["latex","katex","math"].indexOf(Ne)>=0?`

    ${Ct}

    `:`
    ${bt?Ct:(0,me.escape)(Ct,!0)}
    `:'
    '+(bt?Ct:(0,me.escape)(Ct,!0))+"
    "},Pe.heading=function(Ct,Xe,bt){let Ne=this.options.headerPrefix+bt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Oe.push({anchor:Ne,level:Xe,text:Ct}),"'+Ct+""},qe().setOptions({silent:!0,gfm:!0,pedantic:!1}),qe().use({tokenizer:$e,renderer:Pe}),Wt.ZP=qe()},86013:function(tn,Wt,ie){"use strict";var z=ie(59301),qe=ie(19248);const me=_e=>{let xe;return typeof _e=="object"&&(_e!=null&&_e.clearIcon)?xe=_e:_e&&(xe={clearIcon:z.createElement(qe.Z,null)}),xe};Wt.Z=me},91882:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return ke}});var z=ie(59301),qe=ie(92310),me=ie.n(qe),_e=ie(11592),xe=ie(26112),Ce=ie(22703),Oe=ie(48755),Be=ie(84105),Pe=ie(19563);const fe=Te=>{let{children:Ot}=Te;const{getPrefixCls:ve}=z.useContext(Oe.E_),se=ve("breadcrumb");return z.createElement("li",{className:`${se}-separator`,"aria-hidden":"true"},Ot===""?Ot:Ot||"/")};fe.__ANT_BREADCRUMB_SEPARATOR=!0;var Je=fe,Se=function(Te,Ot){var ve={};for(var se in Te)Object.prototype.hasOwnProperty.call(Te,se)&&Ot.indexOf(se)<0&&(ve[se]=Te[se]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(Te);LeOt[Le]||se)}function nt(Te,Ot,ve,se){if(ve==null)return null;const{className:Le,onClick:ht}=Ot,yt=Se(Ot,["className","onClick"]),we=Object.assign(Object.assign({},(0,xe.Z)(yt,{data:!0,aria:!0})),{onClick:ht});return se!==void 0?z.createElement("a",Object.assign({},we,{className:me()(`${Te}-link`,Le),href:se}),ve):z.createElement("span",Object.assign({},we,{className:me()(`${Te}-link`,Le)}),ve)}function $e(Te,Ot){return(se,Le,ht,yt,we)=>{if(Ot)return Ot(se,Le,ht,yt);const Ze=Dt(se,Le);return nt(Te,se,Ze,we)}}var Ve=function(Te,Ot){var ve={};for(var se in Te)Object.prototype.hasOwnProperty.call(Te,se)&&Ot.indexOf(se)<0&&(ve[se]=Te[se]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(Te);Le{const{prefixCls:Ot,separator:ve="/",children:se,menu:Le,overlay:ht,dropdownProps:yt,href:we}=Te,Ue=(Kt=>{if(Le||ht){const kt=Object.assign({},yt);if(Le){const Tt=Le||{},{items:Re}=Tt,$t=Ve(Tt,["items"]);kt.menu=Object.assign(Object.assign({},$t),{items:Re==null?void 0:Re.map((lt,ae)=>{var{key:te,title:ee,label:oe,path:ue}=lt,ne=Ve(lt,["key","title","label","path"]);let he=oe!=null?oe:ee;return ue&&(he=z.createElement("a",{href:`${we}${ue}`},he)),Object.assign(Object.assign({},ne),{key:te!=null?te:ae,label:he})})})}else ht&&(kt.overlay=ht);return z.createElement(Pe.Z,Object.assign({placement:"bottom"},kt),z.createElement("span",{className:`${Ot}-overlay-link`},Kt,z.createElement(Be.Z,null)))}return Kt})(se);return Ue!=null?z.createElement(z.Fragment,null,z.createElement("li",null,Ue),ve&&z.createElement(Je,null,ve)):null},Et=Te=>{const{prefixCls:Ot,children:ve,href:se}=Te,Le=Ve(Te,["prefixCls","children","href"]),{getPrefixCls:ht}=z.useContext(Oe.E_),yt=ht("breadcrumb",Ot);return z.createElement(je,Object.assign({},Le,{prefixCls:yt}),nt(yt,Le,ve,se))};Et.__ANT_BREADCRUMB_ITEM=!0;var Bt=Et,zt=ie(36237),Pt=ie(63356),xt=ie(16931),St=ie(51636);const tt=Te=>{const{componentCls:Ot,iconCls:ve,calc:se}=Te;return{[Ot]:Object.assign(Object.assign({},(0,Pt.Wf)(Te)),{color:Te.itemColor,fontSize:Te.fontSize,[ve]:{fontSize:Te.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Te.linkColor,transition:`color ${Te.motionDurationMid}`,padding:`0 ${(0,zt.unit)(Te.paddingXXS)}`,borderRadius:Te.borderRadiusSM,height:Te.fontHeight,display:"inline-block",marginInline:se(Te.marginXXS).mul(-1).equal(),"&:hover":{color:Te.linkHoverColor,backgroundColor:Te.colorBgTextHover}},(0,Pt.Qy)(Te)),"li:last-child":{color:Te.lastItemColor},[`${Ot}-separator`]:{marginInline:Te.separatorMargin,color:Te.separatorColor},[`${Ot}-link`]:{[` > ${ve} + span, > ${ve} + a `]:{marginInlineStart:Te.marginXXS}},[`${Ot}-overlay-link`]:{borderRadius:Te.borderRadiusSM,height:Te.fontHeight,display:"inline-block",padding:`0 ${(0,zt.unit)(Te.paddingXXS)}`,marginInline:se(Te.marginXXS).mul(-1).equal(),[`> ${ve}`]:{marginInlineStart:Te.marginXXS,fontSize:Te.fontSizeIcon},"&:hover":{color:Te.linkHoverColor,backgroundColor:Te.colorBgTextHover,a:{color:Te.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Te.componentCls}-rtl`]:{direction:"rtl"}})}},Ft=Te=>({itemColor:Te.colorTextDescription,lastItemColor:Te.colorText,iconFontSize:Te.fontSize,linkColor:Te.colorTextDescription,linkHoverColor:Te.colorText,separatorColor:Te.colorTextDescription,separatorMargin:Te.marginXS});var Ct=(0,xt.I$)("Breadcrumb",Te=>{const Ot=(0,St.mergeToken)(Te,{});return tt(Ot)},Ft),Xe=function(Te,Ot){var ve={};for(var se in Te)Object.prototype.hasOwnProperty.call(Te,se)&&Ot.indexOf(se)<0&&(ve[se]=Te[se]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(Te);Le{var{breadcrumbName:yt}=ht,we=Xe(ht,["breadcrumbName"]);return Object.assign(Object.assign({},we),{title:yt})})}),Le}function Ne(Te,Ot){return(0,z.useMemo)(()=>Te||(Ot?Ot.map(bt):null),[Te,Ot])}var rt=function(Te,Ot){var ve={};for(var se in Te)Object.prototype.hasOwnProperty.call(Te,se)&&Ot.indexOf(se)<0&&(ve[se]=Te[se]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(Te);Le{if(Ot===void 0)return Ot;let ve=(Ot||"").replace(/^\//,"");return Object.keys(Te).forEach(se=>{ve=ve.replace(`:${se}`,Te[se])}),ve},pe=Te=>{const{prefixCls:Ot,separator:ve="/",style:se,className:Le,rootClassName:ht,routes:yt,items:we,children:Ze,itemRender:Ue,params:Kt={}}=Te,kt=rt(Te,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Tt,direction:Re,breadcrumb:$t}=z.useContext(Oe.E_);let lt;const ae=Tt("breadcrumb",Ot),[te,ee,oe]=Ct(ae),ue=Ne(we,yt),ne=$e(ae,Ue);if(ue&&ue.length>0){const pt=[],Me=we||yt;lt=ue.map((Ke,dt)=>{const{path:Mt,key:mt,type:Lt,menu:Ht,overlay:Zt,onClick:ln,className:Yt,separator:an,dropdownProps:It}=Ke,Qt=at(Kt,Mt);Qt!==void 0&&pt.push(Qt);const Ut=mt!=null?mt:dt;if(Lt==="separator")return z.createElement(Je,{key:Ut},an);const Ae={},ut=dt===ue.length-1;Ht?Ae.menu=Ht:Zt&&(Ae.overlay=Zt);let{href:At}=Ke;return pt.length&&Qt!==void 0&&(At=`#/${pt.join("/")}`),z.createElement(je,Object.assign({key:Ut},Ae,(0,xe.Z)(Ke,{data:!0,aria:!0}),{className:Yt,dropdownProps:It,href:At,separator:ut?"":ve,onClick:ln,prefixCls:ae}),ne(Ke,Kt,Me,pt,At))})}else if(Ze){const pt=(0,_e.Z)(Ze).length;lt=(0,_e.Z)(Ze).map((Me,Ke)=>{if(!Me)return Me;const dt=Ke===pt-1;return(0,Ce.Tm)(Me,{separator:dt?"":ve,key:Ke})})}const he=me()(ae,$t==null?void 0:$t.className,{[`${ae}-rtl`]:Re==="rtl"},Le,ht,ee,oe),be=Object.assign(Object.assign({},$t==null?void 0:$t.style),se);return te(z.createElement("nav",Object.assign({className:he,style:be},kt),z.createElement("ol",null,lt)))};pe.Item=Bt,pe.Separator=Je;var wt=pe,ke=wt},62673:function(tn,Wt,ie){"use strict";ie.d(Wt,{default:function(){return Ct}});var z=ie(59301),qe=ie(92310),me=ie.n(qe),_e=ie(16632),xe=ie(8654),Ce=ie(12919),Oe=ie(63872),Be=ie(48755),Pe=ie(2171),fe=ie(83397),Je=ie(56553),Dt=z.createContext(null),nt=ie(36170),$e=ie(74632),Ve=function(Xe,bt){var Ne={};for(var rt in Xe)Object.prototype.hasOwnProperty.call(Xe,rt)&&bt.indexOf(rt)<0&&(Ne[rt]=Xe[rt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,rt=Object.getOwnPropertySymbols(Xe);at{var Ne;const{prefixCls:rt,className:at,rootClassName:pe,children:wt,indeterminate:ke=!1,style:Te,onMouseEnter:Ot,onMouseLeave:ve,skipGroup:se=!1,disabled:Le}=Xe,ht=Ve(Xe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:yt,direction:we,checkbox:Ze}=z.useContext(Be.E_),Ue=z.useContext(Dt),{isFormItemInput:Kt}=z.useContext(Je.aM),kt=z.useContext(Pe.Z),Tt=(Ne=(Ue==null?void 0:Ue.disabled)||Le)!==null&&Ne!==void 0?Ne:kt,Re=z.useRef(ht.value),$t=z.useRef(null),lt=(0,xe.sQ)(bt,$t);z.useEffect(()=>{Ue==null||Ue.registerValue(ht.value)},[]),z.useEffect(()=>{if(!se)return ht.value!==Re.current&&(Ue==null||Ue.cancelValue(Re.current),Ue==null||Ue.registerValue(ht.value),Re.current=ht.value),()=>Ue==null?void 0:Ue.cancelValue(ht.value)},[ht.value]),z.useEffect(()=>{var Ke;!((Ke=$t.current)===null||Ke===void 0)&&Ke.input&&($t.current.input.indeterminate=ke)},[ke]);const ae=yt("checkbox",rt),te=(0,fe.Z)(ae),[ee,oe,ue]=(0,nt.ZP)(ae,te),ne=Object.assign({},ht);Ue&&!se&&(ne.onChange=function(){ht.onChange&&ht.onChange.apply(ht,arguments),Ue.toggleOption&&Ue.toggleOption({label:wt,value:ht.value})},ne.name=Ue.name,ne.checked=Ue.value.includes(ht.value));const he=me()(`${ae}-wrapper`,{[`${ae}-rtl`]:we==="rtl",[`${ae}-wrapper-checked`]:ne.checked,[`${ae}-wrapper-disabled`]:Tt,[`${ae}-wrapper-in-form-item`]:Kt},Ze==null?void 0:Ze.className,at,pe,ue,te,oe),be=me()({[`${ae}-indeterminate`]:ke},Oe.A,oe),[pt,Me]=(0,$e.Z)(ne.onClick);return ee(z.createElement(Ce.Z,{component:"Checkbox",disabled:Tt},z.createElement("label",{className:he,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Te),onMouseEnter:Ot,onMouseLeave:ve,onClick:pt},z.createElement(_e.Z,Object.assign({},ne,{onClick:Me,prefixCls:ae,className:be,disabled:Tt,ref:lt})),wt!==void 0&&z.createElement("span",{className:`${ae}-label`},wt))))};var Bt=z.forwardRef(je),zt=ie(77654),Pt=ie(2738),xt=function(Xe,bt){var Ne={};for(var rt in Xe)Object.prototype.hasOwnProperty.call(Xe,rt)&&bt.indexOf(rt)<0&&(Ne[rt]=Xe[rt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,rt=Object.getOwnPropertySymbols(Xe);at{const{defaultValue:Ne,children:rt,options:at=[],prefixCls:pe,className:wt,rootClassName:ke,style:Te,onChange:Ot}=Xe,ve=xt(Xe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:se,direction:Le}=z.useContext(Be.E_),[ht,yt]=z.useState(ve.value||Ne||[]),[we,Ze]=z.useState([]);z.useEffect(()=>{"value"in ve&&yt(ve.value||[])},[ve.value]);const Ue=z.useMemo(()=>at.map(be=>typeof be=="string"||typeof be=="number"?{label:be,value:be}:be),[at]),Kt=be=>{Ze(pt=>pt.filter(Me=>Me!==be))},kt=be=>{Ze(pt=>[].concat((0,zt.Z)(pt),[be]))},Tt=be=>{const pt=ht.indexOf(be.value),Me=(0,zt.Z)(ht);pt===-1?Me.push(be.value):Me.splice(pt,1),"value"in ve||yt(Me),Ot==null||Ot(Me.filter(Ke=>we.includes(Ke)).sort((Ke,dt)=>{const Mt=Ue.findIndex(Lt=>Lt.value===Ke),mt=Ue.findIndex(Lt=>Lt.value===dt);return Mt-mt}))},Re=se("checkbox",pe),$t=`${Re}-group`,lt=(0,fe.Z)(Re),[ae,te,ee]=(0,nt.ZP)(Re,lt),oe=(0,Pt.Z)(ve,["value","disabled"]),ue=at.length?Ue.map(be=>z.createElement(Bt,{prefixCls:Re,key:be.value.toString(),disabled:"disabled"in be?be.disabled:ve.disabled,value:be.value,checked:ht.includes(be.value),onChange:be.onChange,className:`${$t}-item`,style:be.style,title:be.title,id:be.id,required:be.required},be.label)):rt,ne={toggleOption:Tt,value:ht,disabled:ve.disabled,name:ve.name,registerValue:kt,cancelValue:Kt},he=me()($t,{[`${$t}-rtl`]:Le==="rtl"},wt,ke,ee,lt,te);return ae(z.createElement("div",Object.assign({className:he,style:Te},oe,{ref:bt}),z.createElement(Dt.Provider,{value:ne},ue)))});const Ft=Bt;Ft.Group=tt,Ft.__ANT_CHECKBOX=!0;var Ct=Ft},36170:function(tn,Wt,ie){"use strict";ie.d(Wt,{C2:function(){return Ce}});var z=ie(36237),qe=ie(63356),me=ie(51636),_e=ie(16931);const xe=Oe=>{const{checkboxCls:Be}=Oe,Pe=`${Be}-wrapper`;return[{[`${Be}-group`]:Object.assign(Object.assign({},(0,qe.Wf)(Oe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Oe.marginXS,[`> ${Oe.antCls}-row`]:{flex:1}}),[Pe]:Object.assign(Object.assign({},(0,qe.Wf)(Oe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Pe}`]:{marginInlineStart:0},[`&${Pe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Be]:Object.assign(Object.assign({},(0,qe.Wf)(Oe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Oe.borderRadiusSM,alignSelf:"center",[`${Be}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Be}-inner`]:Object.assign({},(0,qe.oN)(Oe))},[`${Be}-inner`]:{boxSizing:"border-box",display:"block",width:Oe.checkboxSize,height:Oe.checkboxSize,direction:"ltr",backgroundColor:Oe.colorBgContainer,border:`${(0,z.unit)(Oe.lineWidth)} ${Oe.lineType} ${Oe.colorBorder}`,borderRadius:Oe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Oe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Oe.calc(Oe.checkboxSize).div(14).mul(5).equal(),height:Oe.calc(Oe.checkboxSize).div(14).mul(8).equal(),border:`${(0,z.unit)(Oe.lineWidthBold)} solid ${Oe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Oe.motionDurationFast} ${Oe.motionEaseInBack}, opacity ${Oe.motionDurationFast}`}},"& + span":{paddingInlineStart:Oe.paddingXS,paddingInlineEnd:Oe.paddingXS}})},{[` ${Pe}:not(${Pe}-disabled), ${Be}:not(${Be}-disabled) `]:{[`&:hover ${Be}-inner`]:{borderColor:Oe.colorPrimary}},[`${Pe}:not(${Pe}-disabled)`]:{[`&:hover ${Be}-checked:not(${Be}-disabled) ${Be}-inner`]:{backgroundColor:Oe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Be}-checked:not(${Be}-disabled):after`]:{borderColor:Oe.colorPrimaryHover}}},{[`${Be}-checked`]:{[`${Be}-inner`]:{backgroundColor:Oe.colorPrimary,borderColor:Oe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Oe.motionDurationMid} ${Oe.motionEaseOutBack} ${Oe.motionDurationFast}`}}},[` ${Pe}-checked:not(${Pe}-disabled), ${Be}-checked:not(${Be}-disabled) `]:{[`&:hover ${Be}-inner`]:{backgroundColor:Oe.colorPrimaryHover,borderColor:"transparent"}}},{[Be]:{"&-indeterminate":{[`${Be}-inner`]:{backgroundColor:`${Oe.colorBgContainer} !important`,borderColor:`${Oe.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Oe.calc(Oe.fontSizeLG).div(2).equal(),height:Oe.calc(Oe.fontSizeLG).div(2).equal(),backgroundColor:Oe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Be}-inner`]:{backgroundColor:`${Oe.colorBgContainer} !important`,borderColor:`${Oe.colorPrimary} !important`}}}},{[`${Pe}-disabled`]:{cursor:"not-allowed"},[`${Be}-disabled`]:{[`&, ${Be}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Be}-inner`]:{background:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,"&:after":{borderColor:Oe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Oe.colorTextDisabled},[`&${Be}-indeterminate ${Be}-inner::after`]:{background:Oe.colorTextDisabled}}}]};function Ce(Oe,Be){const Pe=(0,me.mergeToken)(Be,{checkboxCls:`.${Oe}`,checkboxSize:Be.controlInteractiveSize});return[xe(Pe)]}Wt.ZP=(0,_e.I$)("Checkbox",(Oe,Be)=>{let{prefixCls:Pe}=Be;return[Ce(Pe,Oe)]})},38406:function(tn,Wt,ie){"use strict";var z=ie(59301),qe=ie(48755),me=ie(584);const _e=xe=>{const{componentName:Ce}=xe,{getPrefixCls:Oe}=(0,z.useContext)(qe.E_),Be=Oe("empty");switch(Ce){case"Table":case"List":return z.createElement(me.Z,{image:me.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(me.Z,{image:me.Z.PRESENTED_IMAGE_SIMPLE,className:`${Be}-small`});case"Table.filter":return null;default:return z.createElement(me.Z,null)}};Wt.Z=_e},36207:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return pt}});var z=ie(59301),qe=ie(92310),me=ie.n(qe),_e=ie(85899),xe=ie(72190),Ce=ie(43403),Oe=ie(34280),Be=z.createContext(null),Pe=z.createContext({}),fe=Be,Je=ie(18642),Se=ie(60499),Dt=ie(77900),nt=ie(10228),$e=ie(26112),Ve=ie(42244),je=ie(8654),Et=["prefixCls","className","containerRef"],Bt=function(Ke){var dt=Ke.prefixCls,Mt=Ke.className,mt=Ke.containerRef,Lt=(0,Ve.Z)(Ke,Et),Ht=z.useContext(Pe),Zt=Ht.panel,ln=(0,je.x1)(Zt,mt);return z.createElement("div",(0,Se.Z)({className:me()("".concat(dt,"-content"),Mt),role:"dialog",ref:ln},(0,$e.Z)(Ke,{aria:!0}),{"aria-modal":"true"},Lt))},zt=Bt,Pt=ie(48736);function xt(Me){return typeof Me=="string"&&String(Number(Me))===Me?((0,Pt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Me)):Me}function St(Me){warning(!("wrapperClassName"in Me),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Me.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var tt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ft(Me,Ke){var dt,Mt,mt,Lt=Me.prefixCls,Ht=Me.open,Zt=Me.placement,ln=Me.inline,Yt=Me.push,an=Me.forceRender,It=Me.autoFocus,Qt=Me.keyboard,Ut=Me.classNames,Ae=Me.rootClassName,ut=Me.rootStyle,At=Me.zIndex,Gt=Me.className,De=Me.id,et=Me.style,gt=Me.motion,Nt=Me.width,_t=Me.height,cn=Me.children,Sn=Me.mask,Cn=Me.maskClosable,sn=Me.maskMotion,yn=Me.maskClassName,gn=Me.maskStyle,$n=Me.afterOpenChange,bn=Me.onClose,vn=Me.onMouseEnter,Jt=Me.onMouseOver,On=Me.onMouseLeave,mn=Me.onClick,kn=Me.onKeyDown,jn=Me.onKeyUp,Zn=Me.styles,An=Me.drawerRender,Xn=z.useRef(),Nn=z.useRef(),ar=z.useRef();z.useImperativeHandle(Ke,function(){return Xn.current});var qn=function(We){var Ge=We.keyCode,st=We.shiftKey;switch(Ge){case nt.Z.TAB:{if(Ge===nt.Z.TAB){if(!st&&document.activeElement===ar.current){var en;(en=Nn.current)===null||en===void 0||en.focus({preventScroll:!0})}else if(st&&document.activeElement===Nn.current){var Xt;(Xt=ar.current)===null||Xt===void 0||Xt.focus({preventScroll:!0})}}break}case nt.Z.ESC:{bn&&Qt&&(We.stopPropagation(),bn(We));break}}};z.useEffect(function(){if(Ht&&It){var ot;(ot=Xn.current)===null||ot===void 0||ot.focus({preventScroll:!0})}},[Ht]);var jt=z.useState(!1),on=(0,xe.Z)(jt,2),zn=on[0],nr=on[1],ze=z.useContext(fe),ct;typeof Yt=="boolean"?ct=Yt?{}:{distance:0}:ct=Yt||{};var Ee=(dt=(Mt=(mt=ct)===null||mt===void 0?void 0:mt.distance)!==null&&Mt!==void 0?Mt:ze==null?void 0:ze.pushDistance)!==null&&dt!==void 0?dt:180,Fe=z.useMemo(function(){return{pushDistance:Ee,push:function(){nr(!0)},pull:function(){nr(!1)}}},[Ee]);z.useEffect(function(){if(Ht){var ot;ze==null||(ot=ze.push)===null||ot===void 0||ot.call(ze)}else{var We;ze==null||(We=ze.pull)===null||We===void 0||We.call(ze)}},[Ht]),z.useEffect(function(){return function(){var ot;ze==null||(ot=ze.pull)===null||ot===void 0||ot.call(ze)}},[]);var Ie=Sn&&z.createElement(Dt.default,(0,Se.Z)({key:"mask"},sn,{visible:Ht}),function(ot,We){var Ge=ot.className,st=ot.style;return z.createElement("div",{className:me()("".concat(Lt,"-mask"),Ge,Ut==null?void 0:Ut.mask,yn),style:(0,_e.Z)((0,_e.Z)((0,_e.Z)({},st),gn),Zn==null?void 0:Zn.mask),onClick:Cn&&Ht?bn:void 0,ref:We})}),He=typeof gt=="function"?gt(Zt):gt,ye={};if(zn&&Ee)switch(Zt){case"top":ye.transform="translateY(".concat(Ee,"px)");break;case"bottom":ye.transform="translateY(".concat(-Ee,"px)");break;case"left":ye.transform="translateX(".concat(Ee,"px)");break;default:ye.transform="translateX(".concat(-Ee,"px)");break}Zt==="left"||Zt==="right"?ye.width=xt(Nt):ye.height=xt(_t);var Qe={onMouseEnter:vn,onMouseOver:Jt,onMouseLeave:On,onClick:mn,onKeyDown:kn,onKeyUp:jn},it=z.createElement(Dt.default,(0,Se.Z)({key:"panel"},He,{visible:Ht,forceRender:an,onVisibleChanged:function(We){$n==null||$n(We)},removeOnLeave:!1,leavedClassName:"".concat(Lt,"-content-wrapper-hidden")}),function(ot,We){var Ge=ot.className,st=ot.style,en=z.createElement(zt,(0,Se.Z)({id:De,containerRef:We,prefixCls:Lt,className:me()(Gt,Ut==null?void 0:Ut.content),style:(0,_e.Z)((0,_e.Z)({},et),Zn==null?void 0:Zn.content)},(0,$e.Z)(Me,{aria:!0}),Qe),cn);return z.createElement("div",(0,Se.Z)({className:me()("".concat(Lt,"-content-wrapper"),Ut==null?void 0:Ut.wrapper,Ge),style:(0,_e.Z)((0,_e.Z)((0,_e.Z)({},ye),st),Zn==null?void 0:Zn.wrapper)},(0,$e.Z)(Me,{data:!0})),An?An(en):en)}),vt=(0,_e.Z)({},ut);return At&&(vt.zIndex=At),z.createElement(fe.Provider,{value:Fe},z.createElement("div",{className:me()(Lt,"".concat(Lt,"-").concat(Zt),Ae,(0,Je.Z)((0,Je.Z)({},"".concat(Lt,"-open"),Ht),"".concat(Lt,"-inline"),ln)),style:vt,tabIndex:-1,ref:Xn,onKeyDown:qn},Ie,z.createElement("div",{tabIndex:0,ref:Nn,style:tt,"aria-hidden":"true","data-sentinel":"start"}),it,z.createElement("div",{tabIndex:0,ref:ar,style:tt,"aria-hidden":"true","data-sentinel":"end"})))}var Ct=z.forwardRef(Ft),Xe=Ct,bt=function(Ke){var dt=Ke.open,Mt=dt===void 0?!1:dt,mt=Ke.prefixCls,Lt=mt===void 0?"rc-drawer":mt,Ht=Ke.placement,Zt=Ht===void 0?"right":Ht,ln=Ke.autoFocus,Yt=ln===void 0?!0:ln,an=Ke.keyboard,It=an===void 0?!0:an,Qt=Ke.width,Ut=Qt===void 0?378:Qt,Ae=Ke.mask,ut=Ae===void 0?!0:Ae,At=Ke.maskClosable,Gt=At===void 0?!0:At,De=Ke.getContainer,et=Ke.forceRender,gt=Ke.afterOpenChange,Nt=Ke.destroyOnClose,_t=Ke.onMouseEnter,cn=Ke.onMouseOver,Sn=Ke.onMouseLeave,Cn=Ke.onClick,sn=Ke.onKeyDown,yn=Ke.onKeyUp,gn=Ke.panelRef,$n=z.useState(!1),bn=(0,xe.Z)($n,2),vn=bn[0],Jt=bn[1],On=z.useState(!1),mn=(0,xe.Z)(On,2),kn=mn[0],jn=mn[1];(0,Oe.Z)(function(){jn(!0)},[]);var Zn=kn?Mt:!1,An=z.useRef(),Xn=z.useRef();(0,Oe.Z)(function(){Zn&&(Xn.current=document.activeElement)},[Zn]);var Nn=function(zn){var nr;if(Jt(zn),gt==null||gt(zn),!zn&&Xn.current&&!((nr=An.current)!==null&&nr!==void 0&&nr.contains(Xn.current))){var ze;(ze=Xn.current)===null||ze===void 0||ze.focus({preventScroll:!0})}},ar=z.useMemo(function(){return{panel:gn}},[gn]);if(!et&&!vn&&!Zn&&Nt)return null;var qn={onMouseEnter:_t,onMouseOver:cn,onMouseLeave:Sn,onClick:Cn,onKeyDown:sn,onKeyUp:yn},jt=(0,_e.Z)((0,_e.Z)({},Ke),{},{open:Zn,prefixCls:Lt,placement:Zt,autoFocus:Yt,keyboard:It,width:Ut,mask:ut,maskClosable:Gt,inline:De===!1,afterOpenChange:Nn,ref:An},qn);return z.createElement(Pe.Provider,{value:ar},z.createElement(Ce.Z,{open:Zn||et||vn,autoDestroy:!1,getContainer:De,autoLock:ut&&(Zn||vn)},z.createElement(Xe,jt)))},Ne=bt,rt=Ne,at=ie(62487),pe=ie(75030),wt=ie(86641),ke=ie(55743),Te=ie(48755),Ot=ie(91190),ve=ie(78776),se=ie(458),ht=Me=>{var Ke,dt;const{prefixCls:Mt,title:mt,footer:Lt,extra:Ht,loading:Zt,onClose:ln,headerStyle:Yt,bodyStyle:an,footerStyle:It,children:Qt,classNames:Ut,styles:Ae}=Me,ut=(0,Te.dj)("drawer"),At=z.useCallback(Nt=>z.createElement("button",{type:"button",onClick:ln,"aria-label":"Close",className:`${Mt}-close`},Nt),[ln]),[Gt,De]=(0,ve.Z)((0,ve.w)(Me),(0,ve.w)(ut),{closable:!0,closeIconRender:At}),et=z.useMemo(()=>{var Nt,_t;return!mt&&!Gt?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Nt=ut.styles)===null||Nt===void 0?void 0:Nt.header),Yt),Ae==null?void 0:Ae.header),className:me()(`${Mt}-header`,{[`${Mt}-header-close-only`]:Gt&&!mt&&!Ht},(_t=ut.classNames)===null||_t===void 0?void 0:_t.header,Ut==null?void 0:Ut.header)},z.createElement("div",{className:`${Mt}-header-title`},De,mt&&z.createElement("div",{className:`${Mt}-title`},mt)),Ht&&z.createElement("div",{className:`${Mt}-extra`},Ht))},[Gt,De,Ht,Yt,Mt,mt]),gt=z.useMemo(()=>{var Nt,_t;if(!Lt)return null;const cn=`${Mt}-footer`;return z.createElement("div",{className:me()(cn,(Nt=ut.classNames)===null||Nt===void 0?void 0:Nt.footer,Ut==null?void 0:Ut.footer),style:Object.assign(Object.assign(Object.assign({},(_t=ut.styles)===null||_t===void 0?void 0:_t.footer),It),Ae==null?void 0:Ae.footer)},Lt)},[Lt,It,Mt]);return z.createElement(z.Fragment,null,et,z.createElement("div",{className:me()(`${Mt}-body`,Ut==null?void 0:Ut.body,(Ke=ut.classNames)===null||Ke===void 0?void 0:Ke.body),style:Object.assign(Object.assign(Object.assign({},(dt=ut.styles)===null||dt===void 0?void 0:dt.body),an),Ae==null?void 0:Ae.body)},Zt?z.createElement(se.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Mt}-body-skeleton`}):Qt),gt)},yt=ie(36237),we=ie(63356),Ze=ie(16931),Ue=ie(51636);const Kt=Me=>{const Ke="100%";return{left:`translateX(-${Ke})`,right:`translateX(${Ke})`,top:`translateY(-${Ke})`,bottom:`translateY(${Ke})`}[Me]},kt=(Me,Ke)=>({"&-enter, &-appear":Object.assign(Object.assign({},Me),{"&-active":Ke}),"&-leave":Object.assign(Object.assign({},Ke),{"&-active":Me})}),Tt=(Me,Ke)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ke}`}}},kt({opacity:Me},{opacity:1})),Re=(Me,Ke)=>[Tt(.7,Ke),kt({transform:Kt(Me)},{transform:"none"})];var lt=Me=>{const{componentCls:Ke,motionDurationSlow:dt}=Me;return{[Ke]:{[`${Ke}-mask-motion`]:Tt(0,dt),[`${Ke}-panel-motion`]:["left","right","top","bottom"].reduce((Mt,mt)=>Object.assign(Object.assign({},Mt),{[`&-${mt}`]:Re(mt,dt)}),{})}}};const ae=Me=>{const{borderRadiusSM:Ke,componentCls:dt,zIndexPopup:Mt,colorBgMask:mt,colorBgElevated:Lt,motionDurationSlow:Ht,motionDurationMid:Zt,paddingXS:ln,padding:Yt,paddingLG:an,fontSizeLG:It,lineHeightLG:Qt,lineWidth:Ut,lineType:Ae,colorSplit:ut,marginXS:At,colorIcon:Gt,colorIconHover:De,colorBgTextHover:et,colorBgTextActive:gt,colorText:Nt,fontWeightStrong:_t,footerPaddingBlock:cn,footerPaddingInline:Sn,calc:Cn}=Me,sn=`${dt}-content-wrapper`;return{[dt]:{position:"fixed",inset:0,zIndex:Mt,pointerEvents:"none",color:Nt,"&-pure":{position:"relative",background:Lt,display:"flex",flexDirection:"column",[`&${dt}-left`]:{boxShadow:Me.boxShadowDrawerLeft},[`&${dt}-right`]:{boxShadow:Me.boxShadowDrawerRight},[`&${dt}-top`]:{boxShadow:Me.boxShadowDrawerUp},[`&${dt}-bottom`]:{boxShadow:Me.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dt}-mask`]:{position:"absolute",inset:0,zIndex:Mt,background:mt,pointerEvents:"auto"},[sn]:{position:"absolute",zIndex:Mt,maxWidth:"100vw",transition:`all ${Ht}`,"&-hidden":{display:"none"}},[`&-left > ${sn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Me.boxShadowDrawerLeft},[`&-right > ${sn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Me.boxShadowDrawerRight},[`&-top > ${sn}`]:{top:0,insetInline:0,boxShadow:Me.boxShadowDrawerUp},[`&-bottom > ${sn}`]:{bottom:0,insetInline:0,boxShadow:Me.boxShadowDrawerDown},[`${dt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Lt,pointerEvents:"auto"},[`${dt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,yt.unit)(Yt)} ${(0,yt.unit)(an)}`,fontSize:It,lineHeight:Qt,borderBottom:`${(0,yt.unit)(Ut)} ${Ae} ${ut}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dt}-extra`]:{flex:"none"},[`${dt}-close`]:Object.assign({display:"inline-flex",width:Cn(It).add(ln).equal(),height:Cn(It).add(ln).equal(),borderRadius:Ke,justifyContent:"center",alignItems:"center",marginInlineEnd:At,color:Gt,fontWeight:_t,fontSize:It,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Zt}`,textRendering:"auto","&:hover":{color:De,backgroundColor:et,textDecoration:"none"},"&:active":{backgroundColor:gt}},(0,we.Qy)(Me)),[`${dt}-title`]:{flex:1,margin:0,fontWeight:Me.fontWeightStrong,fontSize:It,lineHeight:Qt},[`${dt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:an,overflow:"auto",[`${dt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${dt}-footer`]:{flexShrink:0,padding:`${(0,yt.unit)(cn)} ${(0,yt.unit)(Sn)}`,borderTop:`${(0,yt.unit)(Ut)} ${Ae} ${ut}`},"&-rtl":{direction:"rtl"}}}},te=Me=>({zIndexPopup:Me.zIndexPopupBase,footerPaddingBlock:Me.paddingXS,footerPaddingInline:Me.padding});var ee=(0,Ze.I$)("Drawer",Me=>{const Ke=(0,Ue.mergeToken)(Me,{});return[ae(Ke),lt(Ke)]},te),oe=function(Me,Ke){var dt={};for(var Mt in Me)Object.prototype.hasOwnProperty.call(Me,Mt)&&Ke.indexOf(Mt)<0&&(dt[Mt]=Me[Mt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Mt=Object.getOwnPropertySymbols(Me);mt{var Ke;const{rootClassName:dt,width:Mt,height:mt,size:Lt="default",mask:Ht=!0,push:Zt=ne,open:ln,afterOpenChange:Yt,onClose:an,prefixCls:It,getContainer:Qt,style:Ut,className:Ae,visible:ut,afterVisibleChange:At,maskStyle:Gt,drawerStyle:De,contentWrapperStyle:et}=Me,gt=oe(Me,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Nt,getPrefixCls:_t,direction:cn,className:Sn,style:Cn,classNames:sn,styles:yn}=(0,Te.dj)("drawer"),gn=_t("drawer",It),[$n,bn,vn]=ee(gn),Jt=Qt===void 0&&Nt?()=>Nt(document.body):Qt,On=me()({"no-mask":!Ht,[`${gn}-rtl`]:cn==="rtl"},dt,bn,vn),mn=z.useMemo(()=>Mt!=null?Mt:Lt==="large"?736:378,[Mt,Lt]),kn=z.useMemo(()=>mt!=null?mt:Lt==="large"?736:378,[mt,Lt]),jn={motionName:(0,wt.m)(gn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Zn=jt=>({motionName:(0,wt.m)(gn,`panel-motion-${jt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),An=(0,Ot.H)(),[Xn,Nn]=(0,pe.Cn)("Drawer",gt.zIndex),{classNames:ar={},styles:qn={}}=gt;return $n(z.createElement(at.Z,{form:!0,space:!0},z.createElement(ke.Z.Provider,{value:Nn},z.createElement(rt,Object.assign({prefixCls:gn,onClose:an,maskMotion:jn,motion:Zn},gt,{classNames:{mask:me()(ar.mask,sn.mask),content:me()(ar.content,sn.content),wrapper:me()(ar.wrapper,sn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},qn.mask),Gt),yn.mask),content:Object.assign(Object.assign(Object.assign({},qn.content),De),yn.content),wrapper:Object.assign(Object.assign(Object.assign({},qn.wrapper),et),yn.wrapper)},open:ln!=null?ln:ut,mask:Ht,push:Zt,width:mn,height:kn,style:Object.assign(Object.assign({},Cn),Ut),className:me()(Sn,Ae),rootClassName:On,getContainer:Jt,afterOpenChange:Yt!=null?Yt:At,panelRef:An,zIndex:Xn}),z.createElement(ht,Object.assign({prefixCls:gn},gt,{onClose:an}))))))},be=Me=>{const{prefixCls:Ke,style:dt,className:Mt,placement:mt="right"}=Me,Lt=oe(Me,["prefixCls","style","className","placement"]),{getPrefixCls:Ht}=z.useContext(Te.E_),Zt=Ht("drawer",Ke),[ln,Yt,an]=ee(Zt),It=me()(Zt,`${Zt}-pure`,`${Zt}-${mt}`,Yt,an,Mt);return ln(z.createElement("div",{className:It,style:dt},z.createElement(ht,Object.assign({prefixCls:Zt},Lt))))};he._InternalPanelDoNotUseOrYouWillBeFired=be;var pt=he},19563:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return yt}});var z=ie(59301),qe=ie(33853),me=ie(38819),_e=ie(92310),xe=ie.n(_e),Ce=ie(96478),Oe=ie(6089),Be=ie(18929),Pe=ie(2738),fe=ie(75030),Se=we=>typeof we!="object"&&typeof we!="function"||we===null,Dt=ie(52838),nt=ie(45915),$e=ie(22703),Ve=ie(32383),je=ie(55743),Et=ie(48755),Bt=ie(83397),zt=ie(93041),Pt=ie(78857),xt=ie(57700),St=ie(36237),tt=ie(63356),Ft=ie(46e3),Ct=ie(93873),Xe=ie(34925),bt=ie(37645),Ne=ie(36305),rt=ie(16931),at=ie(51636),wt=we=>{const{componentCls:Ze,menuCls:Ue,colorError:Kt,colorTextLightSolid:kt}=we,Tt=`${Ue}-item`;return{[`${Ze}, ${Ze}-menu-submenu`]:{[`${Ue} ${Tt}`]:{[`&${Tt}-danger:not(${Tt}-disabled)`]:{color:Kt,"&:hover":{color:kt,backgroundColor:Kt}}}}}};const ke=we=>{const{componentCls:Ze,menuCls:Ue,zIndexPopup:Kt,dropdownArrowDistance:kt,sizePopupArrow:Tt,antCls:Re,iconCls:$t,motionDurationMid:lt,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:ue,controlPaddingHorizontal:ne,colorBgElevated:he}=we;return[{[Ze]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Kt,display:"block","&::before":{position:"absolute",insetBlock:we.calc(Tt).div(2).sub(kt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Re}-btn`]:{[`& > ${$t}-down, & > ${Re}-btn-icon > ${$t}-down`]:{fontSize:ue}},[`${Ze}-wrap`]:{position:"relative",[`${Re}-btn > ${$t}-down`]:{fontSize:ue},[`${$t}-down::before`]:{transition:`transform ${lt}`}},[`${Ze}-wrap-open`]:{[`${$t}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Re}-slide-down-enter${Re}-slide-down-enter-active${Ze}-placement-bottomLeft, &${Re}-slide-down-appear${Re}-slide-down-appear-active${Ze}-placement-bottomLeft, &${Re}-slide-down-enter${Re}-slide-down-enter-active${Ze}-placement-bottom, &${Re}-slide-down-appear${Re}-slide-down-appear-active${Ze}-placement-bottom, &${Re}-slide-down-enter${Re}-slide-down-enter-active${Ze}-placement-bottomRight, &${Re}-slide-down-appear${Re}-slide-down-appear-active${Ze}-placement-bottomRight`]:{animationName:Ft.fJ},[`&${Re}-slide-up-enter${Re}-slide-up-enter-active${Ze}-placement-topLeft, &${Re}-slide-up-appear${Re}-slide-up-appear-active${Ze}-placement-topLeft, &${Re}-slide-up-enter${Re}-slide-up-enter-active${Ze}-placement-top, &${Re}-slide-up-appear${Re}-slide-up-appear-active${Ze}-placement-top, &${Re}-slide-up-enter${Re}-slide-up-enter-active${Ze}-placement-topRight, &${Re}-slide-up-appear${Re}-slide-up-appear-active${Ze}-placement-topRight`]:{animationName:Ft.Qt},[`&${Re}-slide-down-leave${Re}-slide-down-leave-active${Ze}-placement-bottomLeft, &${Re}-slide-down-leave${Re}-slide-down-leave-active${Ze}-placement-bottom, &${Re}-slide-down-leave${Re}-slide-down-leave-active${Ze}-placement-bottomRight`]:{animationName:Ft.Uw},[`&${Re}-slide-up-leave${Re}-slide-up-leave-active${Ze}-placement-topLeft, &${Re}-slide-up-leave${Re}-slide-up-leave-active${Ze}-placement-top, &${Re}-slide-up-leave${Re}-slide-up-leave-active${Ze}-placement-topRight`]:{animationName:Ft.ly}}},(0,bt.ZP)(we,he,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ze} ${Ue}`]:{position:"relative",margin:0},[`${Ue}-submenu-popup`]:{position:"absolute",zIndex:Kt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ze}, ${Ze}-menu-submenu`]:Object.assign(Object.assign({},(0,tt.Wf)(we)),{[Ue]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:he,backgroundClip:"padding-box",borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary},(0,tt.Qy)(we)),{"&:empty":{padding:0,boxShadow:"none"},[`${Ue}-item-group-title`]:{padding:`${(0,St.unit)(ae)} ${(0,St.unit)(ne)}`,color:we.colorTextDescription,transition:`all ${lt}`},[`${Ue}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ue}-item-icon`]:{minWidth:te,marginInlineEnd:we.marginXS,fontSize:we.fontSizeSM},[`${Ue}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${lt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Ue}-item-extra`]:{paddingInlineStart:we.padding,marginInlineStart:"auto",fontSize:we.fontSizeSM,color:we.colorTextDescription}},[`${Ue}-item, ${Ue}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,St.unit)(ae)} ${(0,St.unit)(ne)}`,color:we.colorText,fontWeight:"normal",fontSize:te,lineHeight:we.lineHeight,cursor:"pointer",transition:`all ${lt}`,borderRadius:we.borderRadiusSM,"&:hover, &-active":{backgroundColor:we.controlItemBgHover}},(0,tt.Qy)(we)),{"&-selected":{color:we.colorPrimary,backgroundColor:we.controlItemBgActive,"&:hover, &-active":{backgroundColor:we.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:he,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,St.unit)(we.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:we.colorSplit},[`${Ze}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:we.paddingXS,[`${Ze}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:we.colorTextDescription,fontSize:ue,fontStyle:"normal"}}}),[`${Ue}-item-group-list`]:{margin:`0 ${(0,St.unit)(we.marginXS)}`,padding:0,listStyle:"none"},[`${Ue}-submenu-title`]:{paddingInlineEnd:we.calc(ne).add(we.fontSizeSM).equal()},[`${Ue}-submenu-vertical`]:{position:"relative"},[`${Ue}-submenu${Ue}-submenu-disabled ${Ze}-menu-submenu-title`]:{[`&, ${Ze}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:he,cursor:"not-allowed"}},[`${Ue}-submenu-selected ${Ze}-menu-submenu-title`]:{color:we.colorPrimary}})})},[(0,Ft.oN)(we,"slide-up"),(0,Ft.oN)(we,"slide-down"),(0,Ct.Fm)(we,"move-up"),(0,Ct.Fm)(we,"move-down"),(0,Xe._y)(we,"zoom-big")]]},Te=we=>Object.assign(Object.assign({zIndexPopup:we.zIndexPopupBase+50,paddingBlock:(we.controlHeight-we.fontSize*we.lineHeight)/2},(0,bt.wZ)({contentRadius:we.borderRadiusLG,limitVerticalRadius:!0})),(0,Ne.w)(we));var Ot=(0,rt.I$)("Dropdown",we=>{const{marginXXS:Ze,sizePopupArrow:Ue,paddingXXS:Kt,componentCls:kt}=we,Tt=(0,at.mergeToken)(we,{menuCls:`${kt}-menu`,dropdownArrowDistance:we.calc(Ue).div(2).add(Ze).equal(),dropdownEdgeChildPadding:Kt});return[ke(Tt),wt(Tt)]},Te,{resetStyle:!1});const ve=null,se=we=>{var Ze;const{menu:Ue,arrow:Kt,prefixCls:kt,children:Tt,trigger:Re,disabled:$t,dropdownRender:lt,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:ue,onOpenChange:ne,visible:he,onVisibleChange:be,mouseEnterDelay:pt=.15,mouseLeaveDelay:Me=.1,autoAdjustOverflow:Ke=!0,placement:dt="",overlay:Mt,transitionName:mt}=we,{getPopupContainer:Lt,getPrefixCls:Ht,direction:Zt,dropdown:ln}=z.useContext(Et.E_),Yt=(0,Ve.ln)("Dropdown"),an=z.useMemo(()=>{const Jt=Ht();return mt!==void 0?mt:dt.includes("top")?`${Jt}-slide-down`:`${Jt}-slide-up`},[Ht,dt,mt]),It=z.useMemo(()=>dt?dt.includes("Center")?dt.slice(0,dt.indexOf("Center")):dt:Zt==="rtl"?"bottomRight":"bottomLeft",[dt,Zt]),Qt=Ht("dropdown",kt),Ut=(0,Bt.Z)(Qt),[Ae,ut,At]=Ot(Qt,Ut),[,Gt]=(0,xt.ZP)(),De=z.Children.only(Se(Tt)?z.createElement("span",null,Tt):Tt),et=(0,$e.Tm)(De,{className:xe()(`${Qt}-trigger`,{[`${Qt}-rtl`]:Zt==="rtl"},De.props.className),disabled:(Ze=De.props.disabled)!==null&&Ze!==void 0?Ze:$t}),gt=$t?[]:Re,Nt=!!(gt!=null&>.includes("contextMenu")),[_t,cn]=(0,Be.Z)(!1,{value:ue!=null?ue:he}),Sn=(0,Oe.Z)(Jt=>{ne==null||ne(Jt,{source:"trigger"}),be==null||be(Jt),cn(Jt)}),Cn=xe()(te,ee,ut,At,Ut,ln==null?void 0:ln.className,{[`${Qt}-rtl`]:Zt==="rtl"}),sn=(0,Dt.Z)({arrowPointAtCenter:typeof Kt=="object"&&Kt.pointAtCenter,autoAdjustOverflow:Ke,offset:Gt.marginXXS,arrowWidth:Kt?Gt.sizePopupArrow:0,borderRadius:Gt.borderRadius}),yn=z.useCallback(()=>{Ue!=null&&Ue.selectable&&(Ue!=null&&Ue.multiple)||(ne==null||ne(!1,{source:"menu"}),cn(!1))},[Ue==null?void 0:Ue.selectable,Ue==null?void 0:Ue.multiple]),gn=()=>{let Jt;return Ue!=null&&Ue.items?Jt=z.createElement(zt.default,Object.assign({},Ue)):typeof Mt=="function"?Jt=Mt():Jt=Mt,lt&&(Jt=lt(Jt)),Jt=z.Children.only(typeof Jt=="string"?z.createElement("span",null,Jt):Jt),z.createElement(Pt.J,{prefixCls:`${Qt}-menu`,rootClassName:xe()(At,Ut),expandIcon:z.createElement("span",{className:`${Qt}-menu-submenu-arrow`},Zt==="rtl"?z.createElement(qe.Z,{className:`${Qt}-menu-submenu-arrow-icon`}):z.createElement(me.Z,{className:`${Qt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:yn,validator:On=>{let{mode:mn}=On}},Jt)},[$n,bn]=(0,fe.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let vn=z.createElement(Ce.Z,Object.assign({alignPoint:Nt},(0,Pe.Z)(we,["rootClassName"]),{mouseEnterDelay:pt,mouseLeaveDelay:Me,visible:_t,builtinPlacements:sn,arrow:!!Kt,overlayClassName:Cn,prefixCls:Qt,getPopupContainer:ae||Lt,transitionName:an,trigger:gt,overlay:gn,placement:It,onVisibleChange:Sn,overlayStyle:Object.assign(Object.assign(Object.assign({},ln==null?void 0:ln.style),oe),{zIndex:$n})}),et);return $n&&(vn=z.createElement(je.Z.Provider,{value:bn},vn)),Ae(vn)},Le=(0,nt.Z)(se,"align",void 0,"dropdown",we=>we),ht=we=>z.createElement(Le,Object.assign({},we),z.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=ht;var yt=se},584:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return zt}});var z=ie(59301),qe=ie(92310),me=ie.n(qe),_e=ie(9017),xe=ie(17835),Ce=ie(57700),Be=()=>{const[,Pt]=(0,Ce.ZP)(),[xt]=(0,_e.Z)("Empty"),tt=new xe.FastColor(Pt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:tt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(xt==null?void 0:xt.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.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"}),z.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)"}),z.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"}),z.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"})),z.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"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},fe=()=>{const[,Pt]=(0,Ce.ZP)(),[xt]=(0,_e.Z)("Empty"),{colorFill:St,colorFillTertiary:tt,colorFillQuaternary:Ft,colorBgContainer:Ct}=Pt,{borderColor:Xe,shadowColor:bt,contentColor:Ne}=(0,z.useMemo)(()=>({borderColor:new xe.FastColor(St).onBackground(Ct).toHexString(),shadowColor:new xe.FastColor(tt).onBackground(Ct).toHexString(),contentColor:new xe.FastColor(Ft).onBackground(Ct).toHexString()}),[St,tt,Ft,Ct]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(xt==null?void 0:xt.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:bt,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:Xe},z.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"}),z.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:Ne}))))},Je=ie(16931),Se=ie(51636);const Dt=Pt=>{const{componentCls:xt,margin:St,marginXS:tt,marginXL:Ft,fontSize:Ct,lineHeight:Xe}=Pt;return{[xt]:{marginInline:tt,fontSize:Ct,lineHeight:Xe,textAlign:"center",[`${xt}-image`]:{height:Pt.emptyImgHeight,marginBottom:tt,opacity:Pt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${xt}-description`]:{color:Pt.colorTextDescription},[`${xt}-footer`]:{marginTop:St},"&-normal":{marginBlock:Ft,color:Pt.colorTextDescription,[`${xt}-description`]:{color:Pt.colorTextDescription},[`${xt}-image`]:{height:Pt.emptyImgHeightMD}},"&-small":{marginBlock:tt,color:Pt.colorTextDescription,[`${xt}-image`]:{height:Pt.emptyImgHeightSM}}}}};var nt=(0,Je.I$)("Empty",Pt=>{const{componentCls:xt,controlHeightLG:St,calc:tt}=Pt,Ft=(0,Se.mergeToken)(Pt,{emptyImgCls:`${xt}-img`,emptyImgHeight:tt(St).mul(2.5).equal(),emptyImgHeightMD:St,emptyImgHeightSM:tt(St).mul(.875).equal()});return[Dt(Ft)]}),$e=ie(48755),Ve=function(Pt,xt){var St={};for(var tt in Pt)Object.prototype.hasOwnProperty.call(Pt,tt)&&xt.indexOf(tt)<0&&(St[tt]=Pt[tt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,tt=Object.getOwnPropertySymbols(Pt);Ft{const{className:xt,rootClassName:St,prefixCls:tt,image:Ft=je,description:Ct,children:Xe,imageStyle:bt,style:Ne,classNames:rt,styles:at}=Pt,pe=Ve(Pt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:wt,direction:ke,className:Te,style:Ot,classNames:ve,styles:se}=(0,$e.dj)("empty"),Le=wt("empty",tt),[ht,yt,we]=nt(Le),[Ze]=(0,_e.Z)("Empty"),Ue=typeof Ct!="undefined"?Ct:Ze==null?void 0:Ze.description,Kt=typeof Ue=="string"?Ue:"empty";let kt=null;return typeof Ft=="string"?kt=z.createElement("img",{alt:Kt,src:Ft}):kt=Ft,ht(z.createElement("div",Object.assign({className:me()(yt,we,Le,Te,{[`${Le}-normal`]:Ft===Et,[`${Le}-rtl`]:ke==="rtl"},xt,St,ve.root,rt==null?void 0:rt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},se.root),Ot),at==null?void 0:at.root),Ne)},pe),z.createElement("div",{className:me()(`${Le}-image`,ve.image,rt==null?void 0:rt.image),style:Object.assign(Object.assign(Object.assign({},bt),se.image),at==null?void 0:at.image)},kt),Ue&&z.createElement("div",{className:me()(`${Le}-description`,ve.description,rt==null?void 0:rt.description),style:Object.assign(Object.assign({},se.description),at==null?void 0:at.description)},Ue),Xe&&z.createElement("div",{className:me()(`${Le}-footer`,ve.footer,rt==null?void 0:rt.footer),style:Object.assign(Object.assign({},se.footer),at==null?void 0:at.footer)},Xe)))};Bt.PRESENTED_IMAGE_DEFAULT=je,Bt.PRESENTED_IMAGE_SIMPLE=Et;var zt=Bt},28284:function(tn,Wt,ie){"use strict";ie.d(Wt,{default:function(){return ct}});var z=ie(56553),qe=ie(77654),me=ie(59301),_e=ie(92310),xe=ie.n(_e),Ce=ie(77900),Oe=ie(86641),Be=ie(83397);function Pe(Ee){const[Fe,Ie]=me.useState(Ee);return me.useEffect(()=>{const He=setTimeout(()=>{Ie(Ee)},Ee.length?0:10);return()=>{clearTimeout(He)}},[Ee]),Fe}var fe=ie(36237),Je=ie(63356),Se=ie(34925),Dt=ie(34961),nt=ie(51636),$e=ie(16931),je=Ee=>{const{componentCls:Fe}=Ee,Ie=`${Fe}-show-help`,He=`${Fe}-show-help-item`;return{[Ie]:{transition:`opacity ${Ee.motionDurationFast} ${Ee.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[He]:{overflow:"hidden",transition:`height ${Ee.motionDurationFast} ${Ee.motionEaseInOut}, opacity ${Ee.motionDurationFast} ${Ee.motionEaseInOut}, transform ${Ee.motionDurationFast} ${Ee.motionEaseInOut} !important`,[`&${He}-appear, &${He}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${He}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Et=Ee=>({legend:{display:"block",width:"100%",marginBottom:Ee.marginLG,padding:0,color:Ee.colorTextDescription,fontSize:Ee.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,fe.unit)(Ee.controlOutlineWidth)} ${Ee.controlOutline}`},output:{display:"block",paddingTop:15,color:Ee.colorText,fontSize:Ee.fontSize,lineHeight:Ee.lineHeight}}),Bt=(Ee,Fe)=>{const{formItemCls:Ie}=Ee;return{[Ie]:{[`${Ie}-label > label`]:{height:Fe},[`${Ie}-control-input`]:{minHeight:Fe}}}},zt=Ee=>{const{componentCls:Fe}=Ee;return{[Ee.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(Ee)),Et(Ee)),{[`${Fe}-text`]:{display:"inline-block",paddingInlineEnd:Ee.paddingSM},"&-small":Object.assign({},Bt(Ee,Ee.controlHeightSM)),"&-large":Object.assign({},Bt(Ee,Ee.controlHeightLG))})}},Pt=Ee=>{const{formItemCls:Fe,iconCls:Ie,rootPrefixCls:He,antCls:ye,labelRequiredMarkColor:Qe,labelColor:it,labelFontSize:vt,labelHeight:ot,labelColonMarginInlineStart:We,labelColonMarginInlineEnd:Ge,itemMarginBottom:st}=Ee;return{[Fe]:Object.assign(Object.assign({},(0,Je.Wf)(Ee)),{marginBottom:st,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${ye}-row`]:{display:"none"},"&-has-warning":{[`${Fe}-split`]:{color:Ee.colorError}},"&-has-error":{[`${Fe}-split`]:{color:Ee.colorWarning}},[`${Fe}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Ee.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:ot,color:it,fontSize:vt,[`> ${Ie}`]:{fontSize:Ee.fontSize,verticalAlign:"top"},[`&${Fe}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Ee.marginXXS,color:Qe,fontSize:Ee.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Fe}-required-mark-hidden, &${Fe}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Fe}-optional`]:{display:"inline-block",marginInlineStart:Ee.marginXXS,color:Ee.colorTextDescription,[`&${Fe}-required-mark-hidden`]:{display:"none"}},[`${Fe}-tooltip`]:{color:Ee.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ee.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:We,marginInlineEnd:Ge},[`&${Fe}-no-colon::after`]:{content:'"\\a0"'}}},[`${Fe}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${He}-col-'"]):not([class*="' ${He}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ee.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Fe]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Ee.colorTextDescription,fontSize:Ee.fontSize,lineHeight:Ee.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ee.controlHeightSM,transition:`color ${Ee.motionDurationMid} ${Ee.motionEaseOut}`},"&-explain":{"&-error":{color:Ee.colorError},"&-warning":{color:Ee.colorWarning}}},[`&-with-help ${Fe}-explain`]:{height:"auto",opacity:1},[`${Fe}-feedback-icon`]:{fontSize:Ee.fontSize,textAlign:"center",visibility:"visible",animationName:Se.kr,animationDuration:Ee.motionDurationMid,animationTimingFunction:Ee.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ee.colorSuccess},"&-error":{color:Ee.colorError},"&-warning":{color:Ee.colorWarning},"&-validating":{color:Ee.colorPrimary}}})}},xt=(Ee,Fe)=>{const{formItemCls:Ie}=Ee;return{[`${Fe}-horizontal`]:{[`${Ie}-label`]:{flexGrow:0},[`${Ie}-control`]:{flex:"1 1 0",minWidth:0},[`${Ie}-label[class$='-24'], ${Ie}-label[class*='-24 ']`]:{[`& + ${Ie}-control`]:{minWidth:"unset"}}}}},St=Ee=>{const{componentCls:Fe,formItemCls:Ie,inlineItemMarginBottom:He}=Ee;return{[`${Fe}-inline`]:{display:"flex",flexWrap:"wrap",[Ie]:{flex:"none",marginInlineEnd:Ee.margin,marginBottom:He,"&-row":{flexWrap:"nowrap"},[`> ${Ie}-label, > ${Ie}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ie}-label`]:{flex:"none"},[`${Fe}-text`]:{display:"inline-block"},[`${Ie}-has-feedback`]:{display:"inline-block"}}}}},tt=Ee=>({padding:Ee.verticalLabelPadding,margin:Ee.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ft=Ee=>{const{componentCls:Fe,formItemCls:Ie,rootPrefixCls:He}=Ee;return{[`${Ie} ${Ie}-label`]:tt(Ee),[`${Fe}:not(${Fe}-inline)`]:{[Ie]:{flexWrap:"wrap",[`${Ie}-label, ${Ie}-control`]:{[`&:not([class*=" ${He}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ct=Ee=>{const{componentCls:Fe,formItemCls:Ie,antCls:He}=Ee;return{[`${Fe}-vertical`]:{[`${Ie}:not(${Ie}-horizontal)`]:{[`${Ie}-row`]:{flexDirection:"column"},[`${Ie}-label > label`]:{height:"auto"},[`${Ie}-control`]:{width:"100%"},[`${Ie}-label, ${He}-col-24${Ie}-label, ${He}-col-xl-24${Ie}-label`]:tt(Ee)}},[`@media (max-width: ${(0,fe.unit)(Ee.screenXSMax)})`]:[Ft(Ee),{[Fe]:{[`${Ie}:not(${Ie}-horizontal)`]:{[`${He}-col-xs-24${Ie}-label`]:tt(Ee)}}}],[`@media (max-width: ${(0,fe.unit)(Ee.screenSMMax)})`]:{[Fe]:{[`${Ie}:not(${Ie}-horizontal)`]:{[`${He}-col-sm-24${Ie}-label`]:tt(Ee)}}},[`@media (max-width: ${(0,fe.unit)(Ee.screenMDMax)})`]:{[Fe]:{[`${Ie}:not(${Ie}-horizontal)`]:{[`${He}-col-md-24${Ie}-label`]:tt(Ee)}}},[`@media (max-width: ${(0,fe.unit)(Ee.screenLGMax)})`]:{[Fe]:{[`${Ie}:not(${Ie}-horizontal)`]:{[`${He}-col-lg-24${Ie}-label`]:tt(Ee)}}}}},Xe=Ee=>{const{formItemCls:Fe,antCls:Ie}=Ee;return{[`${Fe}-vertical`]:{[`${Fe}-row`]:{flexDirection:"column"},[`${Fe}-label > label`]:{height:"auto"},[`${Fe}-control`]:{width:"100%"}},[`${Fe}-vertical ${Fe}-label, ${Ie}-col-24${Fe}-label, ${Ie}-col-xl-24${Fe}-label`]:tt(Ee),[`@media (max-width: ${(0,fe.unit)(Ee.screenXSMax)})`]:[Ft(Ee),{[Fe]:{[`${Ie}-col-xs-24${Fe}-label`]:tt(Ee)}}],[`@media (max-width: ${(0,fe.unit)(Ee.screenSMMax)})`]:{[Fe]:{[`${Ie}-col-sm-24${Fe}-label`]:tt(Ee)}},[`@media (max-width: ${(0,fe.unit)(Ee.screenMDMax)})`]:{[Fe]:{[`${Ie}-col-md-24${Fe}-label`]:tt(Ee)}},[`@media (max-width: ${(0,fe.unit)(Ee.screenLGMax)})`]:{[Fe]:{[`${Ie}-col-lg-24${Fe}-label`]:tt(Ee)}}}},bt=Ee=>({labelRequiredMarkColor:Ee.colorError,labelColor:Ee.colorTextHeading,labelFontSize:Ee.fontSize,labelHeight:Ee.controlHeight,labelColonMarginInlineStart:Ee.marginXXS/2,labelColonMarginInlineEnd:Ee.marginXS,itemMarginBottom:Ee.marginLG,verticalLabelPadding:`0 0 ${Ee.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Ne=(Ee,Fe)=>(0,nt.mergeToken)(Ee,{formItemCls:`${Ee.componentCls}-item`,rootPrefixCls:Fe});var rt=(0,$e.I$)("Form",(Ee,Fe)=>{let{rootPrefixCls:Ie}=Fe;const He=Ne(Ee,Ie);return[zt(He),Pt(He),je(He),xt(He,He.componentCls),xt(He,He.formItemCls),St(He),Ct(He),Xe(He),(0,Dt.Z)(He),Se.kr]},bt,{order:-1e3});const at=[];function pe(Ee,Fe,Ie){let He=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ee=="string"?Ee:`${Fe}-${He}`,error:Ee,errorStatus:Ie}}var ke=Ee=>{let{help:Fe,helpStatus:Ie,errors:He=at,warnings:ye=at,className:Qe,fieldId:it,onVisibleChanged:vt}=Ee;const{prefixCls:ot}=me.useContext(z.Rk),We=`${ot}-item-explain`,Ge=(0,Be.Z)(ot),[st,en,Xt]=rt(ot,Ge),qt=me.useMemo(()=>(0,Oe.Z)(ot),[ot]),Dn=Pe(He),Ln=Pe(ye),Hn=me.useMemo(()=>Fe!=null?[pe(Fe,"help",Ie)]:[].concat((0,qe.Z)(Dn.map((Pn,Fn)=>pe(Pn,"error","error",Fn))),(0,qe.Z)(Ln.map((Pn,Fn)=>pe(Pn,"warning","warning",Fn)))),[Fe,Ie,Dn,Ln]),Mn=me.useMemo(()=>{const Pn={};return Hn.forEach(Fn=>{let{key:Yn}=Fn;Pn[Yn]=(Pn[Yn]||0)+1}),Hn.map((Fn,Yn)=>Object.assign(Object.assign({},Fn),{key:Pn[Fn.key]>1?`${Fn.key}-fallback-${Yn}`:Fn.key}))},[Hn]),xn={};return it&&(xn.id=`${it}_help`),st(me.createElement(Ce.default,{motionDeadline:qt.motionDeadline,motionName:`${ot}-show-help`,visible:!!Mn.length,onVisibleChanged:vt},Pn=>{const{className:Fn,style:Yn}=Pn;return me.createElement("div",Object.assign({},xn,{className:xe()(We,Fn,Xt,Ge,Qe,en),style:Yn}),me.createElement(Ce.CSSMotionList,Object.assign({keys:Mn},(0,Oe.Z)(ot),{motionName:`${ot}-show-help-item`,component:!1}),Gn=>{const{key:_n,error:wn,errorStatus:er,className:Wn,style:dr}=Gn;return me.createElement("div",{key:_n,className:xe()(Wn,{[`${We}-${er}`]:er}),style:dr},wn)}))}))},Te=ie(69180),Ot=ie(48755),ve=ie(2171),se=ie(31756),Le=ie(23069),ht=ie(76846),yt=ie(16722);const we=["parentNode"],Ze="form_item";function Ue(Ee){return Ee===void 0||Ee===!1?[]:Array.isArray(Ee)?Ee:[Ee]}function Kt(Ee,Fe){if(!Ee.length)return;const Ie=Ee.join("_");return Fe?`${Fe}_${Ie}`:we.includes(Ie)?`${Ze}_${Ie}`:Ie}function kt(Ee,Fe,Ie,He,ye,Qe){let it=He;return Qe!==void 0?it=Qe:Ie.validating?it="validating":Ee.length?it="error":Fe.length?it="warning":(Ie.touched||ye&&Ie.validated)&&(it="success"),it}var Tt=function(Ee,Fe){var Ie={};for(var He in Ee)Object.prototype.hasOwnProperty.call(Ee,He)&&Fe.indexOf(He)<0&&(Ie[He]=Ee[He]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,He=Object.getOwnPropertySymbols(Ee);yeEe!=null?Ee:Object.assign(Object.assign({},Fe),{__INTERNAL__:{itemRef:ye=>Qe=>{const it=Re(ye);Qe?Ie.current[it]=Qe:delete Ie.current[it]}},scrollToField:function(ye){let Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:it}=Qe,vt=Tt(Qe,["focus"]),ot=$t(ye,He);ot&&((0,yt.Z)(ot,Object.assign({scrollMode:"if-needed",block:"nearest"},vt)),it&&He.focusField(ye))},focusField:ye=>{var Qe,it;const vt=He.getFieldInstance(ye);typeof(vt==null?void 0:vt.focus)=="function"?vt.focus():(it=(Qe=$t(ye,He))===null||Qe===void 0?void 0:Qe.focus)===null||it===void 0||it.call(Qe)},getFieldInstance:ye=>{const Qe=Re(ye);return Ie.current[Qe]}}),[Ee,Fe]);return[He]}var ae=ie(98350),te=function(Ee,Fe){var Ie={};for(var He in Ee)Object.prototype.hasOwnProperty.call(Ee,He)&&Fe.indexOf(He)<0&&(Ie[He]=Ee[He]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,He=Object.getOwnPropertySymbols(Ee);ye{const Ie=me.useContext(ve.Z),{getPrefixCls:He,direction:ye,requiredMark:Qe,colon:it,scrollToFirstError:vt,className:ot,style:We}=(0,Ot.dj)("form"),{prefixCls:Ge,className:st,rootClassName:en,size:Xt,disabled:qt=Ie,form:Dn,colon:Ln,labelAlign:Hn,labelWrap:Mn,labelCol:xn,wrapperCol:Pn,hideRequiredMark:Fn,layout:Yn="horizontal",scrollToFirstError:Gn,requiredMark:_n,onFinishFailed:wn,name:er,style:Wn,feedbackIcons:dr,variant:pr}=Ee,sr=te(Ee,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),ur=(0,se.Z)(Xt),yr=me.useContext(ae.Z),lr=me.useMemo(()=>_n!==void 0?_n:Fn?!1:Qe!==void 0?Qe:!0,[Fn,_n,Qe]),fr=Ln!=null?Ln:it,Qn=He("form",Ge),mr=(0,Be.Z)(Qn),[br,zr,Er]=rt(Qn,mr),Br=xe()(Qn,`${Qn}-${Yn}`,{[`${Qn}-hide-required-mark`]:lr===!1,[`${Qn}-rtl`]:ye==="rtl",[`${Qn}-${ur}`]:ur},Er,mr,zr,ot,st,en),[Ir]=lt(Dn),{__INTERNAL__:Mr}=Ir;Mr.name=er;const ir=me.useMemo(()=>({name:er,labelAlign:Hn,labelCol:xn,labelWrap:Mn,wrapperCol:Pn,vertical:Yn==="vertical",colon:fr,requiredMark:lr,itemRef:Mr.itemRef,form:Ir,feedbackIcons:dr}),[er,Hn,xn,Pn,Yn,fr,lr,Ir,dr]),rr=me.useRef(null);me.useImperativeHandle(Fe,()=>{var pn;return Object.assign(Object.assign({},Ir),{nativeElement:(pn=rr.current)===null||pn===void 0?void 0:pn.nativeElement})});const Jn=(pn,hn)=>{if(pn){let nn={block:"nearest"};typeof pn=="object"&&(nn=Object.assign(Object.assign({},nn),pn)),Ir.scrollToField(hn,nn)}},un=pn=>{if(wn==null||wn(pn),pn.errorFields.length){const hn=pn.errorFields[0].name;if(Gn!==void 0){Jn(Gn,hn);return}vt!==void 0&&Jn(vt,hn)}};return br(me.createElement(z.pg.Provider,{value:pr},me.createElement(ve.n,{disabled:qt},me.createElement(Le.Z.Provider,{value:ur},me.createElement(z.RV,{validateMessages:yr},me.createElement(z.q3.Provider,{value:ir},me.createElement(Te.default,Object.assign({id:er},sr,{name:er,onFinishFailed:un,form:Ir,ref:rr,style:Object.assign(Object.assign({},We),Wn),className:Br}))))))))};var ue=me.forwardRef(ee),ne=ie(41799),he=ie(8654),be=ie(22703),pt=ie(32383),Me=ie(11592);function Ke(Ee){if(typeof Ee=="function")return Ee;const Fe=(0,Me.Z)(Ee);return Fe.length<=1?Fe[0]:Fe}const dt=()=>{const{status:Ee,errors:Fe=[],warnings:Ie=[]}=me.useContext(z.aM);return{status:Ee,errors:Fe,warnings:Ie}};dt.Context=z.aM;var Mt=dt,mt=ie(16089);function Lt(Ee){const[Fe,Ie]=me.useState(Ee),He=me.useRef(null),ye=me.useRef([]),Qe=me.useRef(!1);me.useEffect(()=>(Qe.current=!1,()=>{Qe.current=!0,mt.Z.cancel(He.current),He.current=null}),[]);function it(vt){Qe.current||(He.current===null&&(ye.current=[],He.current=(0,mt.Z)(()=>{He.current=null,Ie(ot=>{let We=ot;return ye.current.forEach(Ge=>{We=Ge(We)}),We})})),ye.current.push(vt))}return[Fe,it]}function Ht(){const{itemRef:Ee}=me.useContext(z.q3),Fe=me.useRef({});function Ie(He,ye){const Qe=ye&&typeof ye=="object"&&(0,he.C4)(ye),it=He.join("_");return(Fe.current.name!==it||Fe.current.originRef!==Qe)&&(Fe.current.name=it,Fe.current.originRef=Qe,Fe.current.ref=(0,he.sQ)(Ee(He),Qe)),Fe.current.ref}return Ie}var Zt=ie(29194),ln=ie(34280),Yt=ie(2738),an=ie(65970),It=ie(70425),Qt=ie(5472);const Ut=Ee=>{const{formItemCls:Fe}=Ee;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Fe}-control`]:{display:"flex"}}}};var Ae=(0,$e.bk)(["Form","item-item"],(Ee,Fe)=>{let{rootPrefixCls:Ie}=Fe;const He=Ne(Ee,Ie);return[Ut(He)]}),ut=function(Ee,Fe){var Ie={};for(var He in Ee)Object.prototype.hasOwnProperty.call(Ee,He)&&Fe.indexOf(He)<0&&(Ie[He]=Ee[He]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,He=Object.getOwnPropertySymbols(Ee);ye{const{prefixCls:Fe,status:Ie,labelCol:He,wrapperCol:ye,children:Qe,errors:it,warnings:vt,_internalItemRender:ot,extra:We,help:Ge,fieldId:st,marginBottom:en,onErrorVisibleChanged:Xt,label:qt}=Ee,Dn=`${Fe}-item`,Ln=me.useContext(z.q3),Hn=me.useMemo(()=>{let sr=Object.assign({},ye||Ln.wrapperCol||{});return qt===null&&!He&&!ye&&Ln.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(yr=>{const lr=yr?[yr]:[],fr=(0,It.U2)(Ln.labelCol,lr),Qn=typeof fr=="object"?fr:{},mr=(0,It.U2)(sr,lr),br=typeof mr=="object"?mr:{};"span"in Qn&&!("offset"in br)&&Qn.span{const{labelCol:sr,wrapperCol:ur}=Ln;return ut(Ln,["labelCol","wrapperCol"])},[Ln]),Pn=me.useRef(null),[Fn,Yn]=me.useState(0);(0,ln.Z)(()=>{We&&Pn.current?Yn(Pn.current.clientHeight):Yn(0)},[We]);const Gn=me.createElement("div",{className:`${Dn}-control-input`},me.createElement("div",{className:`${Dn}-control-input-content`},Qe)),_n=me.useMemo(()=>({prefixCls:Fe,status:Ie}),[Fe,Ie]),wn=en!==null||it.length||vt.length?me.createElement(z.Rk.Provider,{value:_n},me.createElement(ke,{fieldId:st,errors:it,warnings:vt,help:Ge,helpStatus:Ie,className:`${Dn}-explain-connected`,onVisibleChanged:Xt})):null,er={};st&&(er.id=`${st}_extra`);const Wn=We?me.createElement("div",Object.assign({},er,{className:`${Dn}-extra`,ref:Pn}),We):null,dr=wn||Wn?me.createElement("div",{className:`${Dn}-additional`,style:en?{minHeight:en+Fn}:{}},wn,Wn):null,pr=ot&&ot.mark==="pro_table_render"&&ot.render?ot.render(Ee,{input:Gn,errorList:wn,extra:Wn}):me.createElement(me.Fragment,null,Gn,dr);return me.createElement(z.q3.Provider,{value:xn},me.createElement(Qt.Z,Object.assign({},Hn,{className:Mn}),pr),me.createElement(Ae,{prefixCls:Fe}))},et=ie(61485),gt=ie(9017),Nt=ie(85981),_t=ie(25399),cn=function(Ee,Fe){var Ie={};for(var He in Ee)Object.prototype.hasOwnProperty.call(Ee,He)&&Fe.indexOf(He)<0&&(Ie[He]=Ee[He]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,He=Object.getOwnPropertySymbols(Ee);ye{let{prefixCls:Fe,label:Ie,htmlFor:He,labelCol:ye,labelAlign:Qe,colon:it,required:vt,requiredMark:ot,tooltip:We,vertical:Ge}=Ee;var st;const[en]=(0,gt.Z)("Form"),{labelAlign:Xt,labelCol:qt,labelWrap:Dn,colon:Ln}=me.useContext(z.q3);if(!Ie)return null;const Hn=ye||qt||{},Mn=Qe||Xt,xn=`${Fe}-item-label`,Pn=xe()(xn,Mn==="left"&&`${xn}-left`,Hn.className,{[`${xn}-wrap`]:!!Dn});let Fn=Ie;const Yn=it===!0||Ln!==!1&&it!==!1;Yn&&!Ge&&typeof Ie=="string"&&Ie.trim()&&(Fn=Ie.replace(/[:|:]\s*$/,""));const _n=Sn(We);if(_n){const{icon:sr=me.createElement(et.Z,null)}=_n,ur=cn(_n,["icon"]),yr=me.createElement(_t.Z,Object.assign({},ur),me.cloneElement(sr,{className:`${Fe}-item-tooltip`,title:"",onClick:lr=>{lr.preventDefault()},tabIndex:null}));Fn=me.createElement(me.Fragment,null,Fn,yr)}const wn=ot==="optional",er=typeof ot=="function",Wn=ot===!1;er?Fn=ot(Fn,{required:!!vt}):wn&&!vt&&(Fn=me.createElement(me.Fragment,null,Fn,me.createElement("span",{className:`${Fe}-item-optional`,title:""},(en==null?void 0:en.optional)||((st=Nt.Z.Form)===null||st===void 0?void 0:st.optional))));let dr;Wn?dr="hidden":(wn||er)&&(dr="optional");const pr=xe()({[`${Fe}-item-required`]:vt,[`${Fe}-item-required-mark-${dr}`]:dr,[`${Fe}-item-no-colon`]:!Yn});return me.createElement(Qt.Z,Object.assign({},Hn,{className:Pn}),me.createElement("label",{htmlFor:He,className:pr,title:typeof Ie=="string"?Ie:""},Fn))},yn=ie(29679),gn=ie(19248),$n=ie(96512),bn=ie(58617);const vn={success:yn.Z,warning:$n.Z,error:gn.Z,validating:bn.Z};function Jt(Ee){let{children:Fe,errors:Ie,warnings:He,hasFeedback:ye,validateStatus:Qe,prefixCls:it,meta:vt,noStyle:ot}=Ee;const We=`${it}-item`,{feedbackIcons:Ge}=me.useContext(z.q3),st=kt(Ie,He,vt,null,!!ye,Qe),{isFormItemInput:en,status:Xt,hasFeedback:qt,feedbackIcon:Dn}=me.useContext(z.aM),Ln=me.useMemo(()=>{var Hn;let Mn;if(ye){const Pn=ye!==!0&&ye.icons||Ge,Fn=st&&((Hn=Pn==null?void 0:Pn({status:st,errors:Ie,warnings:He}))===null||Hn===void 0?void 0:Hn[st]),Yn=st&&vn[st];Mn=Fn!==!1&&Yn?me.createElement("span",{className:xe()(`${We}-feedback-icon`,`${We}-feedback-icon-${st}`)},Fn||me.createElement(Yn,null)):null}const xn={status:st||"",errors:Ie,warnings:He,hasFeedback:!!ye,feedbackIcon:Mn,isFormItemInput:!0};return ot&&(xn.status=(st!=null?st:Xt)||"",xn.isFormItemInput=en,xn.hasFeedback=!!(ye!=null?ye:qt),xn.feedbackIcon=ye!==void 0?xn.feedbackIcon:Dn),xn},[st,ye,ot,en,Xt]);return me.createElement(z.aM.Provider,{value:Ln},Fe)}var On=function(Ee,Fe){var Ie={};for(var He in Ee)Object.prototype.hasOwnProperty.call(Ee,He)&&Fe.indexOf(He)<0&&(Ie[He]=Ee[He]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,He=Object.getOwnPropertySymbols(Ee);ye{if(Wn&&Gn.current){const Qn=getComputedStyle(Gn.current);sr(parseInt(Qn.marginBottom,10))}},[Wn,dr]);const ur=Qn=>{Qn||sr(null)},lr=function(){let Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mr=Qn?_n:We.errors,br=Qn?wn:We.warnings;return kt(mr,br,We,"",!!Ge,ot)}(),fr=xe()(xn,Ie,He,{[`${xn}-with-help`]:er||_n.length||wn.length,[`${xn}-has-feedback`]:lr&&Ge,[`${xn}-has-success`]:lr==="success",[`${xn}-has-warning`]:lr==="warning",[`${xn}-has-error`]:lr==="error",[`${xn}-is-validating`]:lr==="validating",[`${xn}-hidden`]:st,[`${xn}-${Hn}`]:Hn});return me.createElement("div",{className:fr,style:ye,ref:Gn},me.createElement(an.Z,Object.assign({className:`${xn}-row`},(0,Yt.Z)(Mn,["_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"])),me.createElement(sn,Object.assign({htmlFor:Xt},Ee,{requiredMark:Pn,required:qt!=null?qt:Dn,prefixCls:Fe,vertical:Yn})),me.createElement(De,Object.assign({},Ee,We,{errors:_n,warnings:wn,prefixCls:Fe,status:lr,help:Qe,marginBottom:pr,onErrorVisibleChanged:ur}),me.createElement(z.qI.Provider,{value:Ln},me.createElement(Jt,{prefixCls:Fe,meta:We,errors:We.errors,warnings:We.warnings,hasFeedback:Ge,validateStatus:lr},en)))),!!pr&&me.createElement("div",{className:`${xn}-margin-offset`,style:{marginBottom:-pr}}))}const kn="__SPLIT__",jn=null;function Zn(Ee,Fe){const Ie=Object.keys(Ee),He=Object.keys(Fe);return Ie.length===He.length&&Ie.every(ye=>{const Qe=Ee[ye],it=Fe[ye];return Qe===it||typeof Qe=="function"||typeof it=="function"})}const An=me.memo(Ee=>{let{children:Fe}=Ee;return Fe},(Ee,Fe)=>Zn(Ee.control,Fe.control)&&Ee.update===Fe.update&&Ee.childProps.length===Fe.childProps.length&&Ee.childProps.every((Ie,He)=>Ie===Fe.childProps[He]));function Xn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Nn(Ee){const{name:Fe,noStyle:Ie,className:He,dependencies:ye,prefixCls:Qe,shouldUpdate:it,rules:vt,children:ot,required:We,label:Ge,messageVariables:st,trigger:en="onChange",validateTrigger:Xt,hidden:qt,help:Dn,layout:Ln}=Ee,{getPrefixCls:Hn}=me.useContext(Ot.E_),{name:Mn}=me.useContext(z.q3),xn=Ke(ot),Pn=typeof xn=="function",Fn=me.useContext(z.qI),{validateTrigger:Yn}=me.useContext(Te.FieldContext),Gn=Xt!==void 0?Xt:Yn,_n=Fe!=null,wn=Hn("form",Qe),er=(0,Be.Z)(wn),[Wn,dr,pr]=rt(wn,er),sr=(0,pt.ln)("Form.Item"),ur=me.useContext(Te.ListContext),yr=me.useRef(null),[lr,fr]=Lt({}),[Qn,mr]=(0,ne.Z)(()=>Xn()),br=rr=>{const Jn=ur==null?void 0:ur.getKey(rr.name);if(mr(rr.destroy?Xn():rr,!0),Ie&&Dn!==!1&&Fn){let un=rr.name;if(rr.destroy)un=yr.current||un;else if(Jn!==void 0){const[pn,hn]=Jn;un=[pn].concat((0,qe.Z)(hn)),yr.current=un}Fn(rr,un)}},zr=(rr,Jn)=>{fr(un=>{const pn=Object.assign({},un),nn=[].concat((0,qe.Z)(rr.name.slice(0,-1)),(0,qe.Z)(Jn)).join(kn);return rr.destroy?delete pn[nn]:pn[nn]=rr,pn})},[Er,Br]=me.useMemo(()=>{const rr=(0,qe.Z)(Qn.errors),Jn=(0,qe.Z)(Qn.warnings);return Object.values(lr).forEach(un=>{rr.push.apply(rr,(0,qe.Z)(un.errors||[])),Jn.push.apply(Jn,(0,qe.Z)(un.warnings||[]))}),[rr,Jn]},[lr,Qn.errors,Qn.warnings]),Ir=Ht();function Mr(rr,Jn,un){return Ie&&!qt?me.createElement(Jt,{prefixCls:wn,hasFeedback:Ee.hasFeedback,validateStatus:Ee.validateStatus,meta:Qn,errors:Er,warnings:Br,noStyle:!0},rr):me.createElement(mn,Object.assign({key:"row"},Ee,{className:xe()(He,pr,er,dr),prefixCls:wn,fieldId:Jn,isRequired:un,errors:Er,warnings:Br,meta:Qn,onSubItemMetaChange:zr,layout:Ln}),rr)}if(!_n&&!Pn&&!ye)return Wn(Mr(xn));let ir={};return typeof Ge=="string"?ir.label=Ge:Fe&&(ir.label=String(Fe)),st&&(ir=Object.assign(Object.assign({},ir),st)),Wn(me.createElement(Te.Field,Object.assign({},Ee,{messageVariables:ir,trigger:en,validateTrigger:Gn,onMetaChange:br}),(rr,Jn,un)=>{const pn=Ue(Fe).length&&Jn?Jn.name:[],hn=Kt(pn,Mn),nn=We!==void 0?We:!!(vt!=null&&vt.some(dn=>{if(dn&&typeof dn=="object"&&dn.required&&!dn.warningOnly)return!0;if(typeof dn=="function"){const rn=dn(un);return(rn==null?void 0:rn.required)&&!(rn!=null&&rn.warningOnly)}return!1})),Bn=Object.assign({},rr);let Vn=null;if(Array.isArray(xn)&&_n)Vn=xn;else if(!(Pn&&(!(it||ye)||_n))){if(!(ye&&!Pn&&!_n))if(me.isValidElement(xn)){const dn=Object.assign(Object.assign({},xn.props),Bn);if(dn.id||(dn.id=hn),Dn||Er.length>0||Br.length>0||Ee.extra){const Tn=[];(Dn||Er.length>0)&&Tn.push(`${hn}_help`),Ee.extra&&Tn.push(`${hn}_extra`),dn["aria-describedby"]=Tn.join(" ")}Er.length>0&&(dn["aria-invalid"]="true"),nn&&(dn["aria-required"]="true"),(0,he.Yr)(xn)&&(dn.ref=Ir(pn,xn)),new Set([].concat((0,qe.Z)(Ue(en)),(0,qe.Z)(Ue(Gn)))).forEach(Tn=>{dn[Tn]=function(){for(var cr,kr,Pr,Rr,Ar,Fr=arguments.length,Gr=new Array(Fr),Hr=0;Hr{var{prefixCls:Fe,children:Ie}=Ee,He=jt(Ee,["prefixCls","children"]);const{getPrefixCls:ye}=me.useContext(Ot.E_),Qe=ye("form",Fe),it=me.useMemo(()=>({prefixCls:Qe,status:"error"}),[Qe]);return me.createElement(Te.List,Object.assign({},He),(vt,ot,We)=>me.createElement(z.Rk.Provider,{value:it},Ie(vt.map(Ge=>Object.assign(Object.assign({},Ge),{fieldKey:Ge.key})),ot,{errors:We.errors,warnings:We.warnings})))};function nr(){const{form:Ee}=me.useContext(z.q3);return Ee}const ze=ue;ze.Item=qn,ze.List=zn,ze.ErrorList=ke,ze.useForm=lt,ze.useFormInstance=nr,ze.useWatch=Te.useWatch,ze.Provider=z.RV,ze.create=()=>{};var ct=ze},4875:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Gt}});var z=ie(59301),qe=ie(84105),me=ie(87395),_e=ie(92310),xe=ie.n(_e),Ce=ie(60499),Oe=ie(18642),Be=ie(43749),Pe=ie(72190),fe=ie(42244),Je=ie(38705),Se=ie(17212);function Dt(){return typeof BigInt=="function"}function nt(De){return!De&&De!==0&&!Number.isNaN(De)||!String(De).trim()}function $e(De){var et=De.trim(),gt=et.startsWith("-");gt&&(et=et.slice(1)),et=et.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),et.startsWith(".")&&(et="0".concat(et));var Nt=et||"0",_t=Nt.split("."),cn=_t[0]||"0",Sn=_t[1]||"0";cn==="0"&&Sn==="0"&&(gt=!1);var Cn=gt?"-":"";return{negative:gt,negativeStr:Cn,trimStr:Nt,integerStr:cn,decimalStr:Sn,fullStr:"".concat(Cn).concat(Nt)}}function Ve(De){var et=String(De);return!Number.isNaN(Number(et))&&et.includes("e")}function je(De){var et=String(De);if(Ve(De)){var gt=Number(et.slice(et.indexOf("e-")+2)),Nt=et.match(/\.(\d+)/);return Nt!=null&&Nt[1]&&(gt+=Nt[1].length),gt}return et.includes(".")&&Bt(et)?et.length-et.indexOf(".")-1:0}function Et(De){var et=String(De);if(Ve(De)){if(De>Number.MAX_SAFE_INTEGER)return String(Dt()?BigInt(De).toString():Number.MAX_SAFE_INTEGER);if(De0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":$e("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),De}(),Pt=function(){function De(et){if((0,Je.Z)(this,De),(0,Oe.Z)(this,"origin",""),(0,Oe.Z)(this,"number",void 0),(0,Oe.Z)(this,"empty",void 0),nt(et)){this.empty=!0;return}this.origin=String(et),this.number=Number(et)}return(0,Se.Z)(De,[{key:"negate",value:function(){return new De(-this.toNumber())}},{key:"add",value:function(gt){if(this.isInvalidate())return new De(gt);var Nt=Number(gt);if(Number.isNaN(Nt))return this;var _t=this.number+Nt;if(_t>Number.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(_tNumber.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(_t0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":Et(this.number):this.origin}}]),De}();function xt(De){return Dt()?new zt(De):new Pt(De)}function St(De,et,gt){var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(De==="")return"";var _t=$e(De),cn=_t.negativeStr,Sn=_t.integerStr,Cn=_t.decimalStr,sn="".concat(et).concat(Cn),yn="".concat(cn).concat(Sn);if(gt>=0){var gn=Number(Cn[gt]);if(gn>=5&&!Nt){var $n=xt(De).add("".concat(cn,"0.").concat("0".repeat(gt)).concat(10-gn));return St($n.toString(),et,gt,Nt)}return gt===0?yn:"".concat(yn).concat(et).concat(Cn.padEnd(gt,"0").slice(0,gt))}return sn===".0"?yn:"".concat(yn).concat(sn)}var tt=xt,Ft=ie(36901),Ct=ie(34280);function Xe(De,et){return typeof Proxy!="undefined"&&De?new Proxy(De,{get:function(Nt,_t){if(et[_t])return et[_t];var cn=Nt[_t];return typeof cn=="function"?cn.bind(Nt):cn}}):De}var bt=ie(8654),Ne=ie(48736);function rt(De,et){var gt=(0,z.useRef)(null);function Nt(){try{var cn=De.selectionStart,Sn=De.selectionEnd,Cn=De.value,sn=Cn.substring(0,cn),yn=Cn.substring(Sn);gt.current={start:cn,end:Sn,value:Cn,beforeTxt:sn,afterTxt:yn}}catch(gn){}}function _t(){if(De&>.current&&et)try{var cn=De.value,Sn=gt.current,Cn=Sn.beforeTxt,sn=Sn.afterTxt,yn=Sn.start,gn=cn.length;if(cn.startsWith(Cn))gn=Cn.length;else if(cn.endsWith(sn))gn=cn.length-gt.current.afterTxt.length;else{var $n=Cn[yn-1],bn=cn.indexOf($n,yn-1);bn!==-1&&(gn=bn+1)}De.setSelectionRange(gn,gn)}catch(vn){(0,Ne.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(vn.message))}}return[Nt,_t]}var at=ie(49658),pe=function(){var et=(0,z.useState)(!1),gt=(0,Pe.Z)(et,2),Nt=gt[0],_t=gt[1];return(0,Ct.Z)(function(){_t((0,at.Z)())},[]),Nt},wt=pe,ke=ie(16089),Te=200,Ot=600;function ve(De){var et=De.prefixCls,gt=De.upNode,Nt=De.downNode,_t=De.upDisabled,cn=De.downDisabled,Sn=De.onStep,Cn=z.useRef(),sn=z.useRef([]),yn=z.useRef();yn.current=Sn;var gn=function(){clearTimeout(Cn.current)},$n=function(Zn,An){Zn.preventDefault(),gn(),yn.current(An);function Xn(){yn.current(An),Cn.current=setTimeout(Xn,Te)}Cn.current=setTimeout(Xn,Ot)};z.useEffect(function(){return function(){gn(),sn.current.forEach(function(jn){return ke.Z.cancel(jn)})}},[]);var bn=wt();if(bn)return null;var vn="".concat(et,"-handler"),Jt=xe()(vn,"".concat(vn,"-up"),(0,Oe.Z)({},"".concat(vn,"-up-disabled"),_t)),On=xe()(vn,"".concat(vn,"-down"),(0,Oe.Z)({},"".concat(vn,"-down-disabled"),cn)),mn=function(){return sn.current.push((0,ke.Z)(gn))},kn={unselectable:"on",role:"button",onMouseUp:mn,onMouseLeave:mn};return z.createElement("div",{className:"".concat(vn,"-wrap")},z.createElement("span",(0,Ce.Z)({},kn,{onMouseDown:function(Zn){$n(Zn,!0)},"aria-label":"Increase Value","aria-disabled":_t,className:Jt}),gt||z.createElement("span",{unselectable:"on",className:"".concat(et,"-handler-up-inner")})),z.createElement("span",(0,Ce.Z)({},kn,{onMouseDown:function(Zn){$n(Zn,!1)},"aria-label":"Decrease Value","aria-disabled":cn,className:On}),Nt||z.createElement("span",{unselectable:"on",className:"".concat(et,"-handler-down-inner")})))}function se(De){var et=typeof De=="number"?Et(De):$e(De).fullStr,gt=et.includes(".");return gt?$e(et.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:De+"0"}var Le=ie(30292),ht=function(){var De=(0,z.useRef)(0),et=function(){ke.Z.cancel(De.current)};return(0,z.useEffect)(function(){return et},[]),function(gt){et(),De.current=(0,ke.Z)(function(){gt()})}},yt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],we=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ze=function(et,gt){return et||gt.isEmpty()?gt.toString():gt.toNumber()},Ue=function(et){var gt=tt(et);return gt.isInvalidate()?null:gt},Kt=z.forwardRef(function(De,et){var gt=De.prefixCls,Nt=De.className,_t=De.style,cn=De.min,Sn=De.max,Cn=De.step,sn=Cn===void 0?1:Cn,yn=De.defaultValue,gn=De.value,$n=De.disabled,bn=De.readOnly,vn=De.upHandler,Jt=De.downHandler,On=De.keyboard,mn=De.changeOnWheel,kn=mn===void 0?!1:mn,jn=De.controls,Zn=jn===void 0?!0:jn,An=De.classNames,Xn=De.stringMode,Nn=De.parser,ar=De.formatter,qn=De.precision,jt=De.decimalSeparator,on=De.onChange,zn=De.onInput,nr=De.onPressEnter,ze=De.onStep,ct=De.changeOnBlur,Ee=ct===void 0?!0:ct,Fe=De.domRef,Ie=(0,fe.Z)(De,yt),He="".concat(gt,"-input"),ye=z.useRef(null),Qe=z.useState(!1),it=(0,Pe.Z)(Qe,2),vt=it[0],ot=it[1],We=z.useRef(!1),Ge=z.useRef(!1),st=z.useRef(!1),en=z.useState(function(){return tt(gn!=null?gn:yn)}),Xt=(0,Pe.Z)(en,2),qt=Xt[0],Dn=Xt[1];function Ln(hn){gn===void 0&&Dn(hn)}var Hn=z.useCallback(function(hn,nn){if(!nn)return qn>=0?qn:Math.max(je(hn),je(sn))},[qn,sn]),Mn=z.useCallback(function(hn){var nn=String(hn);if(Nn)return Nn(nn);var Bn=nn;return jt&&(Bn=Bn.replace(jt,".")),Bn.replace(/[^\w.-]+/g,"")},[Nn,jt]),xn=z.useRef(""),Pn=z.useCallback(function(hn,nn){if(ar)return ar(hn,{userTyping:nn,input:String(xn.current)});var Bn=typeof hn=="number"?Et(hn):hn;if(!nn){var Vn=Hn(Bn,nn);if(Bt(Bn)&&(jt||Vn>=0)){var dn=jt||".";Bn=St(Bn,dn,Vn)}}return Bn},[ar,Hn,jt]),Fn=z.useState(function(){var hn=yn!=null?yn:gn;return qt.isInvalidate()&&["string","number"].includes((0,Be.Z)(hn))?Number.isNaN(hn)?"":hn:Pn(qt.toString(),!1)}),Yn=(0,Pe.Z)(Fn,2),Gn=Yn[0],_n=Yn[1];xn.current=Gn;function wn(hn,nn){_n(Pn(hn.isInvalidate()?hn.toString(!1):hn.toString(!nn),nn))}var er=z.useMemo(function(){return Ue(Sn)},[Sn,qn]),Wn=z.useMemo(function(){return Ue(cn)},[cn,qn]),dr=z.useMemo(function(){return!er||!qt||qt.isInvalidate()?!1:er.lessEquals(qt)},[er,qt]),pr=z.useMemo(function(){return!Wn||!qt||qt.isInvalidate()?!1:qt.lessEquals(Wn)},[Wn,qt]),sr=rt(ye.current,vt),ur=(0,Pe.Z)(sr,2),yr=ur[0],lr=ur[1],fr=function(nn){return er&&!nn.lessEquals(er)?er:Wn&&!Wn.lessEquals(nn)?Wn:null},Qn=function(nn){return!fr(nn)},mr=function(nn,Bn){var Vn=nn,dn=Qn(Vn)||Vn.isEmpty();if(!Vn.isEmpty()&&!Bn&&(Vn=fr(Vn)||Vn,dn=!0),!bn&&!$n&&dn){var rn=Vn.toString(),En=Hn(rn,Bn);return En>=0&&(Vn=tt(St(rn,".",En)),Qn(Vn)||(Vn=tt(St(rn,".",En,!0)))),Vn.equals(qt)||(Ln(Vn),on==null||on(Vn.isEmpty()?null:Ze(Xn,Vn)),gn===void 0&&wn(Vn,Bn)),Vn}return qt},br=ht(),zr=function hn(nn){if(yr(),xn.current=nn,_n(nn),!Ge.current){var Bn=Mn(nn),Vn=tt(Bn);Vn.isNaN()||mr(Vn,!0)}zn==null||zn(nn),br(function(){var dn=nn;Nn||(dn=nn.replace(/。/g,".")),dn!==nn&&hn(dn)})},Er=function(){Ge.current=!0},Br=function(){Ge.current=!1,zr(ye.current.value)},Ir=function(nn){zr(nn.target.value)},Mr=function(nn){var Bn;if(!(nn&&dr||!nn&&pr)){We.current=!1;var Vn=tt(st.current?se(sn):sn);nn||(Vn=Vn.negate());var dn=(qt||tt(0)).add(Vn.toString()),rn=mr(dn,!1);ze==null||ze(Ze(Xn,rn),{offset:st.current?se(sn):sn,type:nn?"up":"down"}),(Bn=ye.current)===null||Bn===void 0||Bn.focus()}},ir=function(nn){var Bn=tt(Mn(Gn)),Vn;Bn.isNaN()?Vn=mr(qt,nn):Vn=mr(Bn,nn),gn!==void 0?wn(qt,!1):Vn.isNaN()||wn(Vn,!1)},rr=function(){We.current=!0},Jn=function(nn){var Bn=nn.key,Vn=nn.shiftKey;We.current=!0,st.current=Vn,Bn==="Enter"&&(Ge.current||(We.current=!1),ir(!1),nr==null||nr(nn)),On!==!1&&!Ge.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Bn)&&(Mr(Bn==="Up"||Bn==="ArrowUp"),nn.preventDefault())},un=function(){We.current=!1,st.current=!1};z.useEffect(function(){if(kn&&vt){var hn=function(Vn){Mr(Vn.deltaY<0),Vn.preventDefault()},nn=ye.current;if(nn)return nn.addEventListener("wheel",hn,{passive:!1}),function(){return nn.removeEventListener("wheel",hn)}}});var pn=function(){Ee&&ir(!1),ot(!1),We.current=!1};return(0,Ct.o)(function(){qt.isInvalidate()||wn(qt,!1)},[qn,ar]),(0,Ct.o)(function(){var hn=tt(gn);Dn(hn);var nn=tt(Mn(Gn));(!hn.equals(nn)||!We.current||ar)&&wn(hn,We.current)},[gn]),(0,Ct.o)(function(){ar&&lr()},[Gn]),z.createElement("div",{ref:Fe,className:xe()(gt,Nt,(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},"".concat(gt,"-focused"),vt),"".concat(gt,"-disabled"),$n),"".concat(gt,"-readonly"),bn),"".concat(gt,"-not-a-number"),qt.isNaN()),"".concat(gt,"-out-of-range"),!qt.isInvalidate()&&!Qn(qt))),style:_t,onFocus:function(){ot(!0)},onBlur:pn,onKeyDown:Jn,onKeyUp:un,onCompositionStart:Er,onCompositionEnd:Br,onBeforeInput:rr},Zn&&z.createElement(ve,{prefixCls:gt,upNode:vn,downNode:Jt,upDisabled:dr,downDisabled:pr,onStep:Mr}),z.createElement("div",{className:"".concat(He,"-wrap")},z.createElement("input",(0,Ce.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":cn,"aria-valuemax":Sn,"aria-valuenow":qt.isInvalidate()?null:qt.toString(),step:sn},Ie,{ref:(0,bt.sQ)(ye,et),className:He,value:Gn,onChange:Ir,disabled:$n,readOnly:bn}))))}),kt=z.forwardRef(function(De,et){var gt=De.disabled,Nt=De.style,_t=De.prefixCls,cn=_t===void 0?"rc-input-number":_t,Sn=De.value,Cn=De.prefix,sn=De.suffix,yn=De.addonBefore,gn=De.addonAfter,$n=De.className,bn=De.classNames,vn=(0,fe.Z)(De,we),Jt=z.useRef(null),On=z.useRef(null),mn=z.useRef(null),kn=function(Zn){mn.current&&(0,Le.nH)(mn.current,Zn)};return z.useImperativeHandle(et,function(){return Xe(mn.current,{focus:kn,nativeElement:Jt.current.nativeElement||On.current})}),z.createElement(Ft.BaseInput,{className:$n,triggerFocus:kn,prefixCls:cn,value:Sn,disabled:gt,style:Nt,prefix:Cn,suffix:sn,addonAfter:gn,addonBefore:yn,classNames:bn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Jt},z.createElement(Kt,(0,Ce.Z)({prefixCls:cn,disabled:gt,ref:mn,domRef:On,className:bn==null?void 0:bn.input},vn)))}),Tt=kt,Re=Tt,$t=ie(62487),lt=ie(82855),ae=ie(48755),te=ie(60840),ee=ie(2171),oe=ie(83397),ue=ie(31756),ne=ie(56553),he=ie(24971),be=ie(70045),pt=ie(36237),Me=ie(53075),Ke=ie(64910),dt=ie(39082),Mt=ie(63356),mt=ie(56119),Lt=ie(16931),Ht=ie(51636),Zt=ie(17835);const ln=De=>{var et;const gt=(et=De.handleVisible)!==null&&et!==void 0?et:"auto",Nt=De.controlHeightSM-De.lineWidth*2;return Object.assign(Object.assign({},(0,Ke.T)(De)),{controlWidth:90,handleWidth:Nt,handleFontSize:De.fontSize/2,handleVisible:gt,handleActiveBg:De.colorFillAlter,handleBg:De.colorBgContainer,filledHandleBg:new Zt.FastColor(De.colorFillSecondary).onBackground(De.colorBgContainer).toHexString(),handleHoverColor:De.colorPrimary,handleBorderColor:De.colorBorder,handleOpacity:gt===!0?1:0,handleVisibleWidth:gt===!0?Nt:0})},Yt=(De,et)=>{let{componentCls:gt,borderRadiusSM:Nt,borderRadiusLG:_t}=De;const cn=et==="lg"?_t:Nt;return{[`&-${et}`]:{[`${gt}-handler-wrap`]:{borderStartEndRadius:cn,borderEndEndRadius:cn},[`${gt}-handler-up`]:{borderStartEndRadius:cn},[`${gt}-handler-down`]:{borderEndEndRadius:cn}}}},an=De=>{const{componentCls:et,lineWidth:gt,lineType:Nt,borderRadius:_t,inputFontSizeSM:cn,inputFontSizeLG:Sn,controlHeightLG:Cn,controlHeightSM:sn,colorError:yn,paddingInlineSM:gn,paddingBlockSM:$n,paddingBlockLG:bn,paddingInlineLG:vn,colorTextDescription:Jt,motionDurationMid:On,handleHoverColor:mn,handleOpacity:kn,paddingInline:jn,paddingBlock:Zn,handleBg:An,handleActiveBg:Xn,colorTextDisabled:Nn,borderRadiusSM:ar,borderRadiusLG:qn,controlWidth:jt,handleBorderColor:on,filledHandleBg:zn,lineHeightLG:nr,calc:ze}=De;return[{[et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(De)),(0,Me.ik)(De)),{display:"inline-block",width:jt,margin:0,padding:0,borderRadius:_t}),(0,dt.qG)(De,{[`${et}-handler-wrap`]:{background:An,[`${et}-handler-down`]:{borderBlockStart:`${(0,pt.unit)(gt)} ${Nt} ${on}`}}})),(0,dt.H8)(De,{[`${et}-handler-wrap`]:{background:zn,[`${et}-handler-down`]:{borderBlockStart:`${(0,pt.unit)(gt)} ${Nt} ${on}`}},"&:focus-within":{[`${et}-handler-wrap`]:{background:An}}})),(0,dt.vc)(De,{[`${et}-handler-wrap`]:{background:An,[`${et}-handler-down`]:{borderBlockStart:`${(0,pt.unit)(gt)} ${Nt} ${on}`}}})),(0,dt.Mu)(De)),{"&-rtl":{direction:"rtl",[`${et}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Sn,lineHeight:nr,borderRadius:qn,[`input${et}-input`]:{height:ze(Cn).sub(ze(gt).mul(2)).equal(),padding:`${(0,pt.unit)(bn)} ${(0,pt.unit)(vn)}`}},"&-sm":{padding:0,fontSize:cn,borderRadius:ar,[`input${et}-input`]:{height:ze(sn).sub(ze(gt).mul(2)).equal(),padding:`${(0,pt.unit)($n)} ${(0,pt.unit)(gn)}`}},"&-out-of-range":{[`${et}-input-wrap`]:{input:{color:yn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(De)),(0,Me.s7)(De)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${et}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${et}-group-addon`]:{borderRadius:qn,fontSize:De.fontSizeLG}},"&-sm":{[`${et}-group-addon`]:{borderRadius:ar}}},(0,dt.ir)(De)),(0,dt.S5)(De)),{[`&:not(${et}-compact-first-item):not(${et}-compact-last-item)${et}-compact-item`]:{[`${et}, ${et}-group-addon`]:{borderRadius:0}},[`&:not(${et}-compact-last-item)${et}-compact-first-item`]:{[`${et}, ${et}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${et}-compact-first-item)${et}-compact-last-item`]:{[`${et}, ${et}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${et}-input`]:{cursor:"not-allowed"},[et]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(De)),{width:"100%",padding:`${(0,pt.unit)(Zn)} ${(0,pt.unit)(jn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:_t,outline:0,transition:`all ${On} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Me.nz)(De.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${et}-handler-wrap, &-focused ${et}-handler-wrap`]:{width:De.handleWidth,opacity:1}})},{[et]:Object.assign(Object.assign(Object.assign({[`${et}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:De.handleVisibleWidth,opacity:kn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:_t,borderEndEndRadius:_t,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${On}`,overflow:"hidden",[`${et}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${et}-handler-up-inner, ${et}-handler-down-inner `]:{marginInlineEnd:0,fontSize:De.handleFontSize}}},[`${et}-handler`]:{height:"50%",overflow:"hidden",color:Jt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,pt.unit)(gt)} ${Nt} ${on}`,transition:`all ${On} linear`,"&:active":{background:Xn},"&:hover":{height:"60%",[` ${et}-handler-up-inner, ${et}-handler-down-inner `]:{color:mn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Mt.Ro)()),{color:Jt,transition:`all ${On} linear`,userSelect:"none"})},[`${et}-handler-up`]:{borderStartEndRadius:_t},[`${et}-handler-down`]:{borderEndEndRadius:_t}},Yt(De,"lg")),Yt(De,"sm")),{"&-disabled, &-readonly":{[`${et}-handler-wrap`]:{display:"none"},[`${et}-input`]:{color:"inherit"}},[` ${et}-handler-up-disabled, ${et}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${et}-handler-up-disabled:hover &-handler-up-inner, ${et}-handler-down-disabled:hover &-handler-down-inner `]:{color:Nn}})}]},It=De=>{const{componentCls:et,paddingBlock:gt,paddingInline:Nt,inputAffixPadding:_t,controlWidth:cn,borderRadiusLG:Sn,borderRadiusSM:Cn,paddingInlineLG:sn,paddingInlineSM:yn,paddingBlockLG:gn,paddingBlockSM:$n,motionDurationMid:bn}=De;return{[`${et}-affix-wrapper`]:Object.assign(Object.assign({[`input${et}-input`]:{padding:`${(0,pt.unit)(gt)} 0`}},(0,Me.ik)(De)),{position:"relative",display:"inline-flex",alignItems:"center",width:cn,padding:0,paddingInlineStart:Nt,"&-lg":{borderRadius:Sn,paddingInlineStart:sn,[`input${et}-input`]:{padding:`${(0,pt.unit)(gn)} 0`}},"&-sm":{borderRadius:Cn,paddingInlineStart:yn,[`input${et}-input`]:{padding:`${(0,pt.unit)($n)} 0`}},[`&:not(${et}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${et}-disabled`]:{background:"transparent"},[`> div${et}`]:{width:"100%",border:"none",outline:"none",[`&${et}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${et}-handler-wrap`]:{zIndex:2},[et]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:_t},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Nt,marginInlineStart:_t,transition:`margin ${bn}`}},[`&:hover ${et}-handler-wrap, &-focused ${et}-handler-wrap`]:{width:De.handleWidth,opacity:1},[`&:not(${et}-affix-wrapper-without-controls):hover ${et}-suffix`]:{marginInlineEnd:De.calc(De.handleWidth).add(Nt).equal()}})}};var Qt=(0,Lt.I$)("InputNumber",De=>{const et=(0,Ht.mergeToken)(De,(0,Ke.e)(De));return[an(et),It(et),(0,mt.c)(et)]},ln,{unitless:{handleOpacity:!0}}),Ut=function(De,et){var gt={};for(var Nt in De)Object.prototype.hasOwnProperty.call(De,Nt)&&et.indexOf(Nt)<0&&(gt[Nt]=De[Nt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Nt=Object.getOwnPropertySymbols(De);_t{const{getPrefixCls:gt,direction:Nt}=z.useContext(ae.E_),_t=z.useRef(null);z.useImperativeHandle(et,()=>_t.current);const{className:cn,rootClassName:Sn,size:Cn,disabled:sn,prefixCls:yn,addonBefore:gn,addonAfter:$n,prefix:bn,suffix:vn,bordered:Jt,readOnly:On,status:mn,controls:kn,variant:jn}=De,Zn=Ut(De,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),An=gt("input-number",yn),Xn=(0,oe.Z)(An),[Nn,ar,qn]=Qt(An,Xn),{compactSize:jt,compactItemClassnames:on}=(0,be.ri)(An,Nt);let zn=z.createElement(me.Z,{className:`${An}-handler-up-inner`}),nr=z.createElement(qe.Z,{className:`${An}-handler-down-inner`});const ze=typeof kn=="boolean"?kn:void 0;typeof kn=="object"&&(zn=typeof kn.upIcon=="undefined"?zn:z.createElement("span",{className:`${An}-handler-up-inner`},kn.upIcon),nr=typeof kn.downIcon=="undefined"?nr:z.createElement("span",{className:`${An}-handler-down-inner`},kn.downIcon));const{hasFeedback:ct,status:Ee,isFormItemInput:Fe,feedbackIcon:Ie}=z.useContext(ne.aM),He=(0,lt.F)(Ee,mn),ye=(0,ue.Z)(Xt=>{var qt;return(qt=Cn!=null?Cn:jt)!==null&&qt!==void 0?qt:Xt}),Qe=z.useContext(ee.Z),it=sn!=null?sn:Qe,[vt,ot]=(0,he.Z)("inputNumber",jn,Jt),We=ct&&z.createElement(z.Fragment,null,Ie),Ge=xe()({[`${An}-lg`]:ye==="large",[`${An}-sm`]:ye==="small",[`${An}-rtl`]:Nt==="rtl",[`${An}-in-form-item`]:Fe},ar),st=`${An}-group`,en=z.createElement(Re,Object.assign({ref:_t,disabled:it,className:xe()(qn,Xn,cn,Sn,on),upHandler:zn,downHandler:nr,prefixCls:An,readOnly:On,controls:ze,prefix:bn,suffix:We||vn,addonBefore:gn&&z.createElement($t.Z,{form:!0,space:!0},gn),addonAfter:$n&&z.createElement($t.Z,{form:!0,space:!0},$n),classNames:{input:Ge,variant:xe()({[`${An}-${vt}`]:ot},(0,lt.Z)(An,He,ct)),affixWrapper:xe()({[`${An}-affix-wrapper-sm`]:ye==="small",[`${An}-affix-wrapper-lg`]:ye==="large",[`${An}-affix-wrapper-rtl`]:Nt==="rtl",[`${An}-affix-wrapper-without-controls`]:kn===!1||it},ar),wrapper:xe()({[`${st}-rtl`]:Nt==="rtl"},ar),groupWrapper:xe()({[`${An}-group-wrapper-sm`]:ye==="small",[`${An}-group-wrapper-lg`]:ye==="large",[`${An}-group-wrapper-rtl`]:Nt==="rtl",[`${An}-group-wrapper-${vt}`]:ot},(0,lt.Z)(`${An}-group-wrapper`,He,ct),ar)}},Zn));return Nn(en)}),ut=Ae,At=De=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(Ae,Object.assign({},De)));ut._InternalPanelDoNotUseOrYouWillBeFired=At;var Gt=ut},49397:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Pt}});var z=ie(59301),qe=ie(92310),me=ie.n(qe),_e=ie(36901),xe=ie(8654),Ce=ie(62487),Oe=ie(86013),Be=ie(82855),Pe=ie(48755),fe=ie(2171),Je=ie(83397),Se=ie(31756),Dt=ie(56553),nt=ie(24971),$e=ie(70045),Ve=ie(23826),je=ie(53075);function Et(xt){return!!(xt.prefix||xt.suffix||xt.allowClear||xt.showCount)}var Bt=function(xt,St){var tt={};for(var Ft in xt)Object.prototype.hasOwnProperty.call(xt,Ft)&&St.indexOf(Ft)<0&&(tt[Ft]=xt[Ft]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ft=Object.getOwnPropertySymbols(xt);Ct{const{prefixCls:tt,bordered:Ft=!0,status:Ct,size:Xe,disabled:bt,onBlur:Ne,onFocus:rt,suffix:at,allowClear:pe,addonAfter:wt,addonBefore:ke,className:Te,style:Ot,styles:ve,rootClassName:se,onChange:Le,classNames:ht,variant:yt}=xt,we=Bt(xt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ze,direction:Ue,allowClear:Kt,autoComplete:kt,className:Tt,style:Re,classNames:$t,styles:lt}=(0,Pe.dj)("input"),ae=Ze("input",tt),te=(0,z.useRef)(null),ee=(0,Je.Z)(ae),[oe,ue,ne]=(0,je.TI)(ae,se),[he]=(0,je.ZP)(ae,ee),{compactSize:be,compactItemClassnames:pt}=(0,$e.ri)(ae,Ue),Me=(0,Se.Z)(Gt=>{var De;return(De=Xe!=null?Xe:be)!==null&&De!==void 0?De:Gt}),Ke=z.useContext(fe.Z),dt=bt!=null?bt:Ke,{status:Mt,hasFeedback:mt,feedbackIcon:Lt}=(0,z.useContext)(Dt.aM),Ht=(0,Be.F)(Mt,Ct),Zt=Et(xt)||!!mt,ln=(0,z.useRef)(Zt),Yt=(0,Ve.Z)(te,!0),an=Gt=>{Yt(),Ne==null||Ne(Gt)},It=Gt=>{Yt(),rt==null||rt(Gt)},Qt=Gt=>{Yt(),Le==null||Le(Gt)},Ut=(mt||at)&&z.createElement(z.Fragment,null,at,mt&&Lt),Ae=(0,Oe.Z)(pe!=null?pe:Kt),[ut,At]=(0,nt.Z)("input",yt,Ft);return oe(he(z.createElement(_e.default,Object.assign({ref:(0,xe.sQ)(St,te),prefixCls:ae,autoComplete:kt},we,{disabled:dt,onBlur:an,onFocus:It,style:Object.assign(Object.assign({},Re),Ot),styles:Object.assign(Object.assign({},lt),ve),suffix:Ut,allowClear:Ae,className:me()(Te,se,ne,ee,pt,Tt),onChange:Qt,addonBefore:ke&&z.createElement(Ce.Z,{form:!0,space:!0},ke),addonAfter:wt&&z.createElement(Ce.Z,{form:!0,space:!0},wt),classNames:Object.assign(Object.assign(Object.assign({},ht),$t),{input:me()({[`${ae}-sm`]:Me==="small",[`${ae}-lg`]:Me==="large",[`${ae}-rtl`]:Ue==="rtl"},ht==null?void 0:ht.input,$t.input,ue),variant:me()({[`${ae}-${ut}`]:At},(0,Be.Z)(ae,Ht)),affixWrapper:me()({[`${ae}-affix-wrapper-sm`]:Me==="small",[`${ae}-affix-wrapper-lg`]:Me==="large",[`${ae}-affix-wrapper-rtl`]:Ue==="rtl"},ue),wrapper:me()({[`${ae}-group-rtl`]:Ue==="rtl"},ue),groupWrapper:me()({[`${ae}-group-wrapper-sm`]:Me==="small",[`${ae}-group-wrapper-lg`]:Me==="large",[`${ae}-group-wrapper-rtl`]:Ue==="rtl",[`${ae}-group-wrapper-${ut}`]:At},(0,Be.Z)(`${ae}-group-wrapper`,Ht,mt),ue)})}))))})},79809:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return St}});var z=ie(59301),qe=ie(92310),me=ie.n(qe),_e=ie(22711),xe=ie(86013),Ce=ie(82855),Oe=ie(48755),Be=ie(2171),Pe=ie(83397),fe=ie(31756),Je=ie(56553),Se=ie(24971),Dt=ie(70045),nt=ie(30292),$e=ie(53075),Ve=ie(16931),je=ie(51636),Et=ie(64910);const Bt=tt=>{const{componentCls:Ft,paddingLG:Ct}=tt,Xe=`${Ft}-textarea`;return{[`textarea${Ft}`]:{maxWidth:"100%",height:"auto",minHeight:tt.controlHeight,lineHeight:tt.lineHeight,verticalAlign:"bottom",transition:`all ${tt.motionDurationSlow}`,resize:"vertical",[`&${Ft}-mouse-active`]:{transition:`all ${tt.motionDurationSlow}, height 0s, width 0s`}},[`${Ft}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Xe]:{position:"relative","&-show-count":{[`> ${Ft}`]:{height:"100%"},[`${Ft}-data-count`]:{position:"absolute",bottom:tt.calc(tt.fontSize).mul(tt.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:tt.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${Ft}, &-affix-wrapper${Xe}-has-feedback ${Ft} `]:{paddingInlineEnd:Ct},[`&-affix-wrapper${Ft}-affix-wrapper`]:{padding:0,[`> textarea${Ft}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:tt.calc(tt.controlHeight).sub(tt.calc(tt.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Ft}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ft}-clear-icon`]:{position:"absolute",insetInlineEnd:tt.paddingInline,insetBlockStart:tt.paddingXS},[`${Xe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:tt.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Ft}-affix-wrapper-sm`]:{[`${Ft}-suffix`]:{[`${Ft}-clear-icon`]:{insetInlineEnd:tt.paddingInlineSM}}}}}};var zt=(0,Ve.I$)(["Input","TextArea"],tt=>{const Ft=(0,je.mergeToken)(tt,(0,Et.e)(tt));return[Bt(Ft)]},Et.T,{resetFont:!1}),Pt=function(tt,Ft){var Ct={};for(var Xe in tt)Object.prototype.hasOwnProperty.call(tt,Xe)&&Ft.indexOf(Xe)<0&&(Ct[Xe]=tt[Xe]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Xe=Object.getOwnPropertySymbols(tt);bt{var Ct;const{prefixCls:Xe,bordered:bt=!0,size:Ne,disabled:rt,status:at,allowClear:pe,classNames:wt,rootClassName:ke,className:Te,style:Ot,styles:ve,variant:se,showCount:Le,onMouseDown:ht,onResize:yt}=tt,we=Pt(tt,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ze,direction:Ue,allowClear:Kt,autoComplete:kt,className:Tt,style:Re,classNames:$t,styles:lt}=(0,Oe.dj)("textArea"),ae=z.useContext(Be.Z),te=rt!=null?rt:ae,{status:ee,hasFeedback:oe,feedbackIcon:ue}=z.useContext(Je.aM),ne=(0,Ce.F)(ee,at),he=z.useRef(null);z.useImperativeHandle(Ft,()=>{var At;return{resizableTextArea:(At=he.current)===null||At===void 0?void 0:At.resizableTextArea,focus:Gt=>{var De,et;(0,nt.nH)((et=(De=he.current)===null||De===void 0?void 0:De.resizableTextArea)===null||et===void 0?void 0:et.textArea,Gt)},blur:()=>{var Gt;return(Gt=he.current)===null||Gt===void 0?void 0:Gt.blur()}}});const be=Ze("input",Xe),pt=(0,Pe.Z)(be),[Me,Ke,dt]=(0,$e.TI)(be,ke),[Mt]=zt(be,pt),{compactSize:mt,compactItemClassnames:Lt}=(0,Dt.ri)(be,Ue),Ht=(0,fe.Z)(At=>{var Gt;return(Gt=Ne!=null?Ne:mt)!==null&&Gt!==void 0?Gt:At}),[Zt,ln]=(0,Se.Z)("textArea",se,bt),Yt=(0,xe.Z)(pe!=null?pe:Kt),[an,It]=z.useState(!1),[Qt,Ut]=z.useState(!1),Ae=At=>{It(!0),ht==null||ht(At);const Gt=()=>{It(!1),document.removeEventListener("mouseup",Gt)};document.addEventListener("mouseup",Gt)},ut=At=>{var Gt,De;if(yt==null||yt(At),an&&typeof getComputedStyle=="function"){const et=(De=(Gt=he.current)===null||Gt===void 0?void 0:Gt.nativeElement)===null||De===void 0?void 0:De.querySelector("textarea");et&&getComputedStyle(et).resize==="both"&&Ut(!0)}};return Me(Mt(z.createElement(_e.default,Object.assign({autoComplete:kt},we,{style:Object.assign(Object.assign({},Re),Ot),styles:Object.assign(Object.assign({},lt),ve),disabled:te,allowClear:Yt,className:me()(dt,pt,Te,ke,Lt,Tt,Qt&&`${be}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},wt),$t),{textarea:me()({[`${be}-sm`]:Ht==="small",[`${be}-lg`]:Ht==="large"},Ke,wt==null?void 0:wt.textarea,$t.textarea,an&&`${be}-mouse-active`),variant:me()({[`${be}-${Zt}`]:ln},(0,Ce.Z)(be,ne)),affixWrapper:me()(`${be}-textarea-affix-wrapper`,{[`${be}-affix-wrapper-rtl`]:Ue==="rtl",[`${be}-affix-wrapper-sm`]:Ht==="small",[`${be}-affix-wrapper-lg`]:Ht==="large",[`${be}-textarea-show-count`]:Le||((Ct=tt.count)===null||Ct===void 0?void 0:Ct.show)},Ke)}),prefixCls:be,suffix:oe&&z.createElement("span",{className:`${be}-textarea-suffix`},ue),showCount:Le,ref:he,onResize:ut,onMouseDown:Ae}))))})},23826:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return qe}});var z=ie(59301);function qe(me,_e){const xe=(0,z.useRef)([]),Ce=()=>{xe.current.push(setTimeout(()=>{var Oe,Be,Pe,fe;!((Oe=me.current)===null||Oe===void 0)&&Oe.input&&((Be=me.current)===null||Be===void 0?void 0:Be.input.getAttribute("type"))==="password"&&(!((Pe=me.current)===null||Pe===void 0)&&Pe.input.hasAttribute("value"))&&((fe=me.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(_e&&Ce(),()=>xe.current.forEach(Oe=>{Oe&&clearTimeout(Oe)})),[]),Ce}},37568:function(tn,Wt,ie){"use strict";ie.d(Wt,{default:function(){return $t}});var z=ie(59301),qe=ie(92310),me=ie.n(qe),_e=ie(48755),xe=ie(56553),Ce=ie(53075),Be=lt=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(_e.E_),{prefixCls:ee,className:oe}=lt,ue=ae("input-group",ee),ne=ae("input"),[he,be,pt]=(0,Ce.ZP)(ne),Me=me()(ue,pt,{[`${ue}-lg`]:lt.size==="large",[`${ue}-sm`]:lt.size==="small",[`${ue}-compact`]:lt.compact,[`${ue}-rtl`]:te==="rtl"},be,oe),Ke=(0,z.useContext)(xe.aM),dt=(0,z.useMemo)(()=>Object.assign(Object.assign({},Ke),{isFormItemInput:!1}),[Ke]);return he(z.createElement("span",{className:Me,style:lt.style,onMouseEnter:lt.onMouseEnter,onMouseLeave:lt.onMouseLeave,onFocus:lt.onFocus,onBlur:lt.onBlur},z.createElement(xe.aM.Provider,{value:dt},lt.children)))},Pe=ie(49397),fe=ie(77654),Je=ie(6089),Se=ie(26112),Dt=ie(82855),nt=ie(31756),$e=ie(16931),Ve=ie(51636),je=ie(64910);const Et=lt=>{const{componentCls:ae,paddingXS:te}=lt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:lt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:lt.calc(lt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:lt.paddingXS}}}};var Bt=(0,$e.I$)(["Input","OTP"],lt=>{const ae=(0,Ve.mergeToken)(lt,(0,je.e)(lt));return[Et(ae)]},je.T),zt=ie(16089),Pt=function(lt,ae){var te={};for(var ee in lt)Object.prototype.hasOwnProperty.call(lt,ee)&&ae.indexOf(ee)<0&&(te[ee]=lt[ee]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(lt);oe{const{value:te,onChange:ee,onActiveChange:oe,index:ue,mask:ne}=lt,he=Pt(lt,["value","onChange","onActiveChange","index","mask"]),be=te&&typeof ne=="string"?ne:te,pt=mt=>{ee(ue,mt.target.value)},Me=z.useRef(null);z.useImperativeHandle(ae,()=>Me.current);const Ke=()=>{(0,zt.Z)(()=>{var mt;const Lt=(mt=Me.current)===null||mt===void 0?void 0:mt.input;document.activeElement===Lt&&Lt&&Lt.select()})},dt=mt=>{const{key:Lt,ctrlKey:Ht,metaKey:Zt}=mt;Lt==="ArrowLeft"?oe(ue-1):Lt==="ArrowRight"?oe(ue+1):Lt==="z"&&(Ht||Zt)&&mt.preventDefault(),Ke()},Mt=mt=>{mt.key==="Backspace"&&!te&&oe(ue-1),Ke()};return z.createElement(Pe.Z,Object.assign({type:ne===!0?"password":"text"},he,{ref:Me,value:be,onInput:pt,onFocus:Ke,onKeyDown:dt,onKeyUp:Mt,onMouseDown:Ke,onMouseUp:Ke}))}),tt=function(lt,ae){var te={};for(var ee in lt)Object.prototype.hasOwnProperty.call(lt,ee)&&ae.indexOf(ee)<0&&(te[ee]=lt[ee]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(lt);oe{const{index:ae,prefixCls:te,separator:ee}=lt,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var bt=z.forwardRef((lt,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:ue,value:ne,onChange:he,formatter:be,separator:pt,variant:Me,disabled:Ke,status:dt,autoFocus:Mt,mask:mt,type:Lt,onInput:Ht,inputMode:Zt}=lt,ln=tt(lt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Yt,direction:an}=z.useContext(_e.E_),It=Yt("otp",te),Qt=(0,Se.Z)(ln,{aria:!0,data:!0,attr:!0}),[Ut,Ae,ut]=Bt(It),At=(0,nt.Z)(bn=>oe!=null?oe:bn),Gt=z.useContext(xe.aM),De=(0,Dt.F)(Gt.status,dt),et=z.useMemo(()=>Object.assign(Object.assign({},Gt),{status:De,hasFeedback:!1,feedbackIcon:null}),[Gt,De]),gt=z.useRef(null),Nt=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var bn;(bn=Nt.current[0])===null||bn===void 0||bn.focus()},blur:()=>{var bn;for(let vn=0;vnbe?be(bn):bn,[cn,Sn]=z.useState(()=>Ft(_t(ue||"")));z.useEffect(()=>{ne!==void 0&&Sn(Ft(ne))},[ne]);const Cn=(0,Je.Z)(bn=>{Sn(bn),Ht&&Ht(bn),he&&bn.length===ee&&bn.every(vn=>vn)&&bn.some((vn,Jt)=>cn[Jt]!==vn)&&he(bn.join(""))}),sn=(0,Je.Z)((bn,vn)=>{let Jt=(0,fe.Z)(cn);for(let mn=0;mn=0&&!Jt[mn];mn-=1)Jt.pop();const On=_t(Jt.map(mn=>mn||" ").join(""));return Jt=Ft(On).map((mn,kn)=>mn===" "&&!Jt[kn]?Jt[kn]:mn),Jt}),yn=(bn,vn)=>{var Jt;const On=sn(bn,vn),mn=Math.min(bn+vn.length,ee-1);mn!==bn&&On[bn]!==void 0&&((Jt=Nt.current[mn])===null||Jt===void 0||Jt.focus()),Cn(On)},gn=bn=>{var vn;(vn=Nt.current[bn])===null||vn===void 0||vn.focus()},$n={variant:Me,disabled:Ke,status:De,mask:mt,type:Lt,inputMode:Zt};return Ut(z.createElement("div",Object.assign({},Qt,{ref:gt,className:me()(It,{[`${It}-sm`]:At==="small",[`${It}-lg`]:At==="large",[`${It}-rtl`]:an==="rtl"},ut,Ae)}),z.createElement(xe.aM.Provider,{value:et},Array.from({length:ee}).map((bn,vn)=>{const Jt=`otp-${vn}`,On=cn[vn]||"";return z.createElement(z.Fragment,{key:Jt},z.createElement(St,Object.assign({ref:mn=>{Nt.current[vn]=mn},index:vn,size:At,htmlSize:1,className:`${It}-input`,onChange:yn,value:On,onActiveChange:gn,autoFocus:vn===0&&Mt},$n)),vnlt?z.createElement(rt.Z,null):z.createElement(Ne.Z,null),ve={click:"onClick",hover:"onMouseOver"};var Le=z.forwardRef((lt,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:ue=Ot}=lt,ne=z.useContext(wt.Z),he=te!=null?te:ne,be=typeof oe=="object"&&oe.visible!==void 0,[pt,Me]=(0,z.useState)(()=>be?oe.visible:!1),Ke=(0,z.useRef)(null);z.useEffect(()=>{be&&Me(oe.visible)},[be,oe]);const dt=(0,ke.Z)(Ke),Mt=()=>{var At;if(he)return;pt&&dt();const Gt=!pt;Me(Gt),typeof oe=="object"&&((At=oe.onVisibleChange)===null||At===void 0||At.call(oe,Gt))},mt=At=>{const Gt=ve[ee]||"",De=ue(pt),et={[Gt]:Mt,className:`${At}-icon`,key:"passwordIcon",onMouseDown:gt=>{gt.preventDefault()},onMouseUp:gt=>{gt.preventDefault()}};return z.cloneElement(z.isValidElement(De)?De:z.createElement("span",null,De),et)},{className:Lt,prefixCls:Ht,inputPrefixCls:Zt,size:ln}=lt,Yt=Te(lt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:an}=z.useContext(_e.E_),It=an("input",Zt),Qt=an("input-password",Ht),Ut=oe&&mt(Qt),Ae=me()(Qt,Lt,{[`${Qt}-${ln}`]:!!ln}),ut=Object.assign(Object.assign({},(0,at.Z)(Yt,["suffix","iconRender","visibilityToggle"])),{type:pt?"text":"password",className:Ae,prefixCls:It,suffix:Ut});return ln&&(ut.size=ln),z.createElement(Pe.Z,Object.assign({ref:(0,pe.sQ)(ae,Ke)},ut))}),ht=ie(47472),yt=ie(22703),we=ie(7939),Ze=ie(70045),Ue=function(lt,ae){var te={};for(var ee in lt)Object.prototype.hasOwnProperty.call(lt,ee)&&ae.indexOf(ee)<0&&(te[ee]=lt[ee]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(lt);oe{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:ue,suffix:ne,enterButton:he=!1,addonAfter:be,loading:pt,disabled:Me,onSearch:Ke,onChange:dt,onCompositionStart:Mt,onCompositionEnd:mt}=lt,Lt=Ue(lt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ht,direction:Zt}=z.useContext(_e.E_),ln=z.useRef(!1),Yt=Ht("input-search",te),an=Ht("input",ee),{compactSize:It}=(0,Ze.ri)(Yt,Zt),Qt=(0,nt.Z)(yn=>{var gn;return(gn=ue!=null?ue:It)!==null&&gn!==void 0?gn:yn}),Ut=z.useRef(null),Ae=yn=>{yn!=null&&yn.target&&yn.type==="click"&&Ke&&Ke(yn.target.value,yn,{source:"clear"}),dt==null||dt(yn)},ut=yn=>{var gn;document.activeElement===((gn=Ut.current)===null||gn===void 0?void 0:gn.input)&&yn.preventDefault()},At=yn=>{var gn,$n;Ke&&Ke(($n=(gn=Ut.current)===null||gn===void 0?void 0:gn.input)===null||$n===void 0?void 0:$n.value,yn,{source:"input"})},Gt=yn=>{ln.current||pt||At(yn)},De=typeof he=="boolean"?z.createElement(ht.Z,null):null,et=`${Yt}-button`;let gt;const Nt=he||{},_t=Nt.type&&Nt.type.__ANT_BUTTON===!0;_t||Nt.type==="button"?gt=(0,yt.Tm)(Nt,Object.assign({onMouseDown:ut,onClick:yn=>{var gn,$n;($n=(gn=Nt==null?void 0:Nt.props)===null||gn===void 0?void 0:gn.onClick)===null||$n===void 0||$n.call(gn,yn),At(yn)},key:"enterButton"},_t?{className:et,size:Qt}:{})):gt=z.createElement(we.ZP,{className:et,type:he?"primary":void 0,size:Qt,disabled:Me,key:"enterButton",onMouseDown:ut,onClick:At,loading:pt,icon:De},he),be&&(gt=[gt,(0,yt.Tm)(be,{key:"addonAfter"})]);const cn=me()(Yt,{[`${Yt}-rtl`]:Zt==="rtl",[`${Yt}-${Qt}`]:!!Qt,[`${Yt}-with-button`]:!!he},oe),Sn=Object.assign(Object.assign({},Lt),{className:cn,prefixCls:an,type:"search"}),Cn=yn=>{ln.current=!0,Mt==null||Mt(yn)},sn=yn=>{ln.current=!1,mt==null||mt(yn)};return z.createElement(Pe.Z,Object.assign({ref:(0,pe.sQ)(Ut,ae),onPressEnter:Gt},Sn,{size:Qt,onCompositionStart:Cn,onCompositionEnd:sn,addonAfter:gt,suffix:ne,onChange:Ae,disabled:Me}))}),Tt=ie(79809);const Re=Pe.Z;Re.Group=Be,Re.Search=kt,Re.TextArea=Tt.Z,Re.Password=Le,Re.OTP=bt;var $t=Re},24303:function(tn,Wt,ie){"use strict";ie.d(Wt,{D:function(){return tt},Z:function(){return Xe}});var z=ie(59301),qe=ie(60499),me={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"},_e=me,xe=ie(7657),Ce=function(Ne,rt){return z.createElement(xe.Z,(0,qe.Z)({},Ne,{ref:rt,icon:_e}))},Oe=z.forwardRef(Ce),Be=Oe,Pe=ie(33853),fe=ie(38819),Je=ie(92310),Se=ie.n(Je),Dt=ie(2738),nt=ie(48755),$e=ie(6989),Ve=ie(36237),je=ie(48923),Et=ie(16931);const Bt=bt=>{const{componentCls:Ne,siderBg:rt,motionDurationMid:at,motionDurationSlow:pe,antCls:wt,triggerHeight:ke,triggerColor:Te,triggerBg:Ot,headerHeight:ve,zeroTriggerWidth:se,zeroTriggerHeight:Le,borderRadiusLG:ht,lightSiderBg:yt,lightTriggerColor:we,lightTriggerBg:Ze,bodyBg:Ue}=bt;return{[Ne]:{position:"relative",minWidth:0,background:rt,transition:`all ${at}, background 0s`,"&-has-trigger":{paddingBottom:ke},"&-right":{order:1},[`${Ne}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${wt}-menu${wt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Ne}-children`]:{overflow:"hidden"},[`${Ne}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:ke,color:Te,lineHeight:(0,Ve.unit)(ke),textAlign:"center",background:Ot,cursor:"pointer",transition:`all ${at}`},[`${Ne}-zero-width-trigger`]:{position:"absolute",top:ve,insetInlineEnd:bt.calc(se).mul(-1).equal(),zIndex:1,width:se,height:Le,color:Te,fontSize:bt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderRadius:`0 ${(0,Ve.unit)(ht)} ${(0,Ve.unit)(ht)} 0`,cursor:"pointer",transition:`background ${pe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${pe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:bt.calc(se).mul(-1).equal(),borderRadius:`${(0,Ve.unit)(ht)} 0 0 ${(0,Ve.unit)(ht)}`}},"&-light":{background:yt,[`${Ne}-trigger`]:{color:we,background:Ze},[`${Ne}-zero-width-trigger`]:{color:we,background:Ze,border:`1px solid ${Ue}`,borderInlineStart:0}}}}};var zt=(0,Et.I$)(["Layout","Sider"],bt=>[Bt(bt)],je.eh,{deprecatedTokens:je.jn}),Pt=function(bt,Ne){var rt={};for(var at in bt)Object.prototype.hasOwnProperty.call(bt,at)&&Ne.indexOf(at)<0&&(rt[at]=bt[at]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,at=Object.getOwnPropertySymbols(bt);pe!Number.isNaN(Number.parseFloat(bt))&&isFinite(bt),tt=z.createContext({}),Ft=(()=>{let bt=0;return function(){let Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return bt+=1,`${Ne}${bt}`}})();var Xe=z.forwardRef((bt,Ne)=>{const{prefixCls:rt,className:at,trigger:pe,children:wt,defaultCollapsed:ke=!1,theme:Te="dark",style:Ot={},collapsible:ve=!1,reverseArrow:se=!1,width:Le=200,collapsedWidth:ht=80,zeroWidthTriggerStyle:yt,breakpoint:we,onCollapse:Ze,onBreakpoint:Ue}=bt,Kt=Pt(bt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:kt}=(0,z.useContext)($e.V),[Tt,Re]=(0,z.useState)("collapsed"in bt?bt.collapsed:ke),[$t,lt]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in bt&&Re(bt.collapsed)},[bt.collapsed]);const ae=(Qt,Ut)=>{"collapsed"in bt||Re(Qt),Ze==null||Ze(Qt,Ut)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(nt.E_),oe=te("layout-sider",rt),[ue,ne,he]=zt(oe),be=(0,z.useRef)(null);be.current=Qt=>{lt(Qt.matches),Ue==null||Ue(Qt.matches),Tt!==Qt.matches&&ae(Qt.matches,"responsive")},(0,z.useEffect)(()=>{function Qt(Ae){return be.current(Ae)}let Ut;if(typeof window!="undefined"){const{matchMedia:Ae}=window;if(Ae&&we&&we in xt){Ut=Ae(`screen and (max-width: ${xt[we]})`);try{Ut.addEventListener("change",Qt)}catch(ut){Ut.addListener(Qt)}Qt(Ut)}}return()=>{try{Ut==null||Ut.removeEventListener("change",Qt)}catch(Ae){Ut==null||Ut.removeListener(Qt)}}},[we]),(0,z.useEffect)(()=>{const Qt=Ft("ant-sider-");return kt.addSider(Qt),()=>kt.removeSider(Qt)},[]);const pt=()=>{ae(!Tt,"clickTrigger")},Me=(0,Dt.Z)(Kt,["collapsed"]),Ke=Tt?ht:Le,dt=St(Ke)?`${Ke}px`:String(Ke),Mt=parseFloat(String(ht||0))===0?z.createElement("span",{onClick:pt,className:Se()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${se?"right":"left"}`),style:yt},pe||z.createElement(Be,null)):null,mt=ee==="rtl"==!se,Zt={expanded:mt?z.createElement(fe.Z,null):z.createElement(Pe.Z,null),collapsed:mt?z.createElement(Pe.Z,null):z.createElement(fe.Z,null)}[Tt?"collapsed":"expanded"],ln=pe!==null?Mt||z.createElement("div",{className:`${oe}-trigger`,onClick:pt,style:{width:dt}},pe||Zt):null,Yt=Object.assign(Object.assign({},Ot),{flex:`0 0 ${dt}`,maxWidth:dt,minWidth:dt,width:dt}),an=Se()(oe,`${oe}-${Te}`,{[`${oe}-collapsed`]:!!Tt,[`${oe}-has-trigger`]:ve&&pe!==null&&!Mt,[`${oe}-below`]:!!$t,[`${oe}-zero-width`]:parseFloat(dt)===0},at,ne,he),It=z.useMemo(()=>({siderCollapsed:Tt}),[Tt]);return ue(z.createElement(tt.Provider,{value:It},z.createElement("aside",Object.assign({className:an},Me,{style:Yt,ref:Ne}),z.createElement("div",{className:`${oe}-children`},wt),ve||$t&&Mt?ln:null)))})},6989:function(tn,Wt,ie){"use strict";ie.d(Wt,{V:function(){return qe}});var z=ie(59301);const qe=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(tn,Wt,ie){"use strict";ie.d(Wt,{eh:function(){return _e},jn:function(){return xe}});var z=ie(36237),qe=ie(16931);const me=Ce=>{const{antCls:Oe,componentCls:Be,colorText:Pe,footerBg:fe,headerHeight:Je,headerPadding:Se,headerColor:Dt,footerPadding:nt,fontSize:$e,bodyBg:Ve,headerBg:je}=Ce;return{[Be]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ve,"&, *":{boxSizing:"border-box"},[`&${Be}-has-sider`]:{flexDirection:"row",[`> ${Be}, > ${Be}-content`]:{width:0}},[`${Be}-header, &${Be}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Be}-header`]:{height:Je,padding:Se,color:Dt,lineHeight:(0,z.unit)(Je),background:je,[`${Oe}-menu`]:{lineHeight:"inherit"}},[`${Be}-footer`]:{padding:nt,color:Pe,fontSize:$e,background:fe},[`${Be}-content`]:{flex:"auto",color:Pe,minHeight:0}}},_e=Ce=>{const{colorBgLayout:Oe,controlHeight:Be,controlHeightLG:Pe,colorText:fe,controlHeightSM:Je,marginXXS:Se,colorTextLightSolid:Dt,colorBgContainer:nt}=Ce,$e=Pe*1.25;return{colorBgHeader:"#001529",colorBgBody:Oe,colorBgTrigger:"#002140",bodyBg:Oe,headerBg:"#001529",headerHeight:Be*2,headerPadding:`0 ${$e}px`,headerColor:fe,footerPadding:`${Je}px ${$e}px`,footerBg:Oe,siderBg:"#001529",triggerHeight:Pe+Se*2,triggerBg:"#002140",triggerColor:Dt,zeroTriggerWidth:Pe,zeroTriggerHeight:Pe,lightSiderBg:nt,lightTriggerBg:nt,lightTriggerColor:fe}},xe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Wt.ZP=(0,qe.I$)("Layout",Ce=>[me(Ce)],_e,{deprecatedTokens:xe})},78857:function(tn,Wt,ie){"use strict";ie.d(Wt,{J:function(){return Ce}});var z=ie(59301),qe=ie(8654),me=ie(62487),_e=function(Oe,Be){var Pe={};for(var fe in Oe)Object.prototype.hasOwnProperty.call(Oe,fe)&&Be.indexOf(fe)<0&&(Pe[fe]=Oe[fe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,fe=Object.getOwnPropertySymbols(Oe);Je{const{children:Pe}=Oe,fe=_e(Oe,["children"]),Je=z.useContext(xe),Se=z.useMemo(()=>Object.assign(Object.assign({},Je),fe),[Je,fe.prefixCls,fe.mode,fe.selectable,fe.rootClassName]),Dt=(0,qe.t4)(Pe),nt=(0,qe.x1)(Be,Dt?(0,qe.C4)(Pe):null);return z.createElement(xe.Provider,{value:Se},z.createElement(me.Z,{space:!0},Dt?z.cloneElement(Pe,{ref:nt}):Pe))});Wt.Z=xe},93041:function(tn,Wt,ie){"use strict";ie.d(Wt,{default:function(){return ue}});var z=ie(59301),qe=ie(28321),me=ie(24303),_e=ie(18785),xe=ie(92310),Ce=ie.n(xe),Oe=ie(6089),Be=ie(2738),Pe=ie(86641),fe=ie(22703),Je=ie(48755),Se=ie(83397),nt=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),$e=function(ne,he){var be={};for(var pt in ne)Object.prototype.hasOwnProperty.call(ne,pt)&&he.indexOf(pt)<0&&(be[pt]=ne[pt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,pt=Object.getOwnPropertySymbols(ne);Me{const{prefixCls:he,className:be,dashed:pt}=ne,Me=$e(ne,["prefixCls","className","dashed"]),{getPrefixCls:Ke}=z.useContext(Je.E_),dt=Ke("menu",he),Mt=Ce()({[`${dt}-item-divider-dashed`]:!!pt},be);return z.createElement(qe.iz,Object.assign({className:Mt},Me))},Et=ie(11592),Bt=ie(25399),Pt=ne=>{var he;const{className:be,children:pt,icon:Me,title:Ke,danger:dt,extra:Mt}=ne,{prefixCls:mt,firstLevel:Lt,direction:Ht,disableMenuItemTitleTooltip:Zt,inlineCollapsed:ln}=z.useContext(nt),Yt=ut=>{const At=pt==null?void 0:pt[0],Gt=z.createElement("span",{className:Ce()(`${mt}-title-content`,{[`${mt}-title-content-with-extra`]:!!Mt||Mt===0})},pt);return(!Me||z.isValidElement(pt)&&pt.type==="span")&&pt&&ut&&Lt&&typeof At=="string"?z.createElement("div",{className:`${mt}-inline-collapsed-noicon`},At.charAt(0)):Gt},{siderCollapsed:an}=z.useContext(me.D);let It=Ke;typeof Ke=="undefined"?It=Lt?pt:"":Ke===!1&&(It="");const Qt={title:It};!an&&!ln&&(Qt.title=null,Qt.open=!1);const Ut=(0,Et.Z)(pt).length;let Ae=z.createElement(qe.ck,Object.assign({},(0,Be.Z)(ne,["title","icon","danger"]),{className:Ce()({[`${mt}-item-danger`]:dt,[`${mt}-item-only-child`]:(Me?Ut+1:Ut)===1},be),title:typeof Ke=="string"?Ke:void 0}),(0,fe.Tm)(Me,{className:Ce()(z.isValidElement(Me)?(he=Me.props)===null||he===void 0?void 0:he.className:"",`${mt}-item-icon`)}),Yt(ln));return Zt||(Ae=z.createElement(Bt.Z,Object.assign({},Qt,{placement:Ht==="rtl"?"left":"right",classNames:{root:`${mt}-inline-collapsed-tooltip`}}),Ae)),Ae},xt=ie(78857),St=ie(36237),tt=ie(17835),Ft=ie(63356),Ct=ie(34961),Xe=ie(46e3),bt=ie(34925),Ne=ie(16931),rt=ie(51636),pe=ne=>{const{componentCls:he,motionDurationSlow:be,horizontalLineHeight:pt,colorSplit:Me,lineWidth:Ke,lineType:dt,itemPaddingInline:Mt}=ne;return{[`${he}-horizontal`]:{lineHeight:pt,border:0,borderBottom:`${(0,St.unit)(Ke)} ${dt} ${Me}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Mt},[`> ${he}-item:hover, > ${he}-item-active, > ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${be}`,`background ${be}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},ke=ne=>{let{componentCls:he,menuArrowOffset:be,calc:pt}=ne;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(${(0,St.unit)(pt(be).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,St.unit)(be)})`}}}}};const Te=ne=>Object.assign({},(0,Ft.oN)(ne));var ve=(ne,he)=>{const{componentCls:be,itemColor:pt,itemSelectedColor:Me,subMenuItemSelectedColor:Ke,groupTitleColor:dt,itemBg:Mt,subMenuItemBg:mt,itemSelectedBg:Lt,activeBarHeight:Ht,activeBarWidth:Zt,activeBarBorderWidth:ln,motionDurationSlow:Yt,motionEaseInOut:an,motionEaseOut:It,itemPaddingInline:Qt,motionDurationMid:Ut,itemHoverColor:Ae,lineType:ut,colorSplit:At,itemDisabledColor:Gt,dangerItemColor:De,dangerItemHoverColor:et,dangerItemSelectedColor:gt,dangerItemActiveBg:Nt,dangerItemSelectedBg:_t,popupBg:cn,itemHoverBg:Sn,itemActiveBg:Cn,menuSubMenuBg:sn,horizontalItemSelectedColor:yn,horizontalItemSelectedBg:gn,horizontalItemBorderRadius:$n,horizontalItemHoverBg:bn}=ne;return{[`${be}-${he}, ${be}-${he} > ${be}`]:{color:pt,background:Mt,[`&${be}-root:focus-visible`]:Object.assign({},Te(ne)),[`${be}-item`]:{"&-group-title, &-extra":{color:dt}},[`${be}-submenu-selected > ${be}-submenu-title`]:{color:Ke},[`${be}-item, ${be}-submenu-title`]:{color:pt,[`&:not(${be}-item-disabled):focus-visible`]:Object.assign({},Te(ne))},[`${be}-item-disabled, ${be}-submenu-disabled`]:{color:`${Gt} !important`},[`${be}-item:not(${be}-item-selected):not(${be}-submenu-selected)`]:{[`&:hover, > ${be}-submenu-title:hover`]:{color:Ae}},[`&:not(${be}-horizontal)`]:{[`${be}-item:not(${be}-item-selected)`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:Cn}},[`${be}-submenu-title`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:Cn}}},[`${be}-item-danger`]:{color:De,[`&${be}-item:hover`]:{[`&:not(${be}-item-selected):not(${be}-submenu-selected)`]:{color:et}},[`&${be}-item:active`]:{background:Nt}},[`${be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${be}-item-selected`]:{color:Me,[`&${be}-item-danger`]:{color:gt},"a, a:hover":{color:"inherit"}},[`& ${be}-item-selected`]:{backgroundColor:Lt,[`&${be}-item-danger`]:{backgroundColor:_t}},[`&${be}-submenu > ${be}`]:{backgroundColor:sn},[`&${be}-popup > ${be}`]:{backgroundColor:cn},[`&${be}-submenu-popup > ${be}`]:{backgroundColor:cn},[`&${be}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${be}-item, > ${be}-submenu`]:{top:ln,marginTop:ne.calc(ln).mul(-1).equal(),marginBottom:0,borderRadius:$n,"&::after":{position:"absolute",insetInline:Qt,bottom:0,borderBottom:`${(0,St.unit)(Ht)} solid transparent`,transition:`border-color ${Yt} ${an}`,content:'""'},"&:hover, &-active, &-open":{background:bn,"&::after":{borderBottomWidth:Ht,borderBottomColor:yn}},"&-selected":{color:yn,backgroundColor:gn,"&:hover":{backgroundColor:gn},"&::after":{borderBottomWidth:Ht,borderBottomColor:yn}}}}),[`&${be}-root`]:{[`&${be}-inline, &${be}-vertical`]:{borderInlineEnd:`${(0,St.unit)(ln)} ${ut} ${At}`}},[`&${be}-inline`]:{[`${be}-sub${be}-inline`]:{background:mt},[`${be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,St.unit)(Zt)} solid ${Me}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ut} ${It}`,`opacity ${Ut} ${It}`].join(","),content:'""'},[`&${be}-item-danger`]:{"&::after":{borderInlineEndColor:gt}}},[`${be}-selected, ${be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ut} ${an}`,`opacity ${Ut} ${an}`].join(",")}}}}}};const se=ne=>{const{componentCls:he,itemHeight:be,itemMarginInline:pt,padding:Me,menuArrowSize:Ke,marginXS:dt,itemMarginBlock:Mt,itemWidth:mt,itemPaddingInline:Lt}=ne,Ht=ne.calc(Ke).add(Me).add(dt).equal();return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:be,lineHeight:(0,St.unit)(be),paddingInline:Lt,overflow:"hidden",textOverflow:"ellipsis",marginInline:pt,marginBlock:Mt,width:mt},[`> ${he}-item, > ${he}-submenu > ${he}-submenu-title`]:{height:be,lineHeight:(0,St.unit)(be)},[`${he}-item-group-list ${he}-submenu-title, ${he}-submenu-title`]:{paddingInlineEnd:Ht}}};var ht=ne=>{const{componentCls:he,iconCls:be,itemHeight:pt,colorTextLightSolid:Me,dropdownWidth:Ke,controlHeightLG:dt,motionEaseOut:Mt,paddingXL:mt,itemMarginInline:Lt,fontSizeLG:Ht,motionDurationFast:Zt,motionDurationSlow:ln,paddingXS:Yt,boxShadowSecondary:an,collapsedWidth:It,collapsedIconSize:Qt}=ne,Ut={height:pt,lineHeight:(0,St.unit)(pt),listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},se(ne))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},se(ne)),{boxShadow:an})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:Ke,maxHeight:`calc(100vh - ${(0,St.unit)(ne.calc(dt).mul(2.5).equal())})`,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 ${ln}`,`background ${ln}`,`padding ${Zt} ${Mt}`].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`]:Ut,[`& ${he}-item-group-title`]:{paddingInlineStart:mt}},[`${he}-item`]:Ut}},{[`${he}-inline-collapsed`]:{width:It,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:Ht,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% - ${(0,St.unit)(ne.calc(Qt).div(2).equal())} - ${(0,St.unit)(Lt)})`,textOverflow:"clip",[` ${he}-submenu-arrow, ${he}-submenu-expand-icon `]:{opacity:0},[`${he}-item-icon, ${be}`]:{margin:0,fontSize:Qt,lineHeight:(0,St.unit)(pt),"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${be}`]:{display:"none"},"a, a:hover":{color:Me}},[`${he}-item-group-title`]:Object.assign(Object.assign({},Ft.vS),{paddingInline:Yt})}}]};const yt=ne=>{const{componentCls:he,motionDurationSlow:be,motionDurationMid:pt,motionEaseInOut:Me,motionEaseOut:Ke,iconCls:dt,iconSize:Mt,iconMarginInlineEnd:mt}=ne;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${be}`,`background ${be}`,`padding calc(${be} + 0.1s) ${Me}`].join(","),[`${he}-item-icon, ${dt}`]:{minWidth:Mt,fontSize:Mt,transition:[`font-size ${pt} ${Ke}`,`margin ${be} ${Me}`,`color ${be}`].join(","),"+ span":{marginInlineStart:mt,opacity:1,transition:[`opacity ${be} ${Me}`,`margin ${be}`,`color ${be}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,Ft.Ro)()),[`&${he}-item-only-child`]:{[`> ${dt}, > ${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",cursor:"not-allowed",pointerEvents:"none"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},we=ne=>{const{componentCls:he,motionDurationSlow:be,motionEaseInOut:pt,borderRadius:Me,menuArrowSize:Ke,menuArrowOffset:dt}=ne;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:Ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${be} ${pt}, opacity ${be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(Ke).mul(.6).equal(),height:ne.calc(Ke).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Me,transition:[`background ${be} ${pt}`,`transform ${be} ${pt}`,`top ${be} ${pt}`,`color ${be} ${pt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,St.unit)(ne.calc(dt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,St.unit)(dt)})`}}}}},Ze=ne=>{const{antCls:he,componentCls:be,fontSize:pt,motionDurationSlow:Me,motionDurationMid:Ke,motionEaseInOut:dt,paddingXS:Mt,padding:mt,colorSplit:Lt,lineWidth:Ht,zIndexPopup:Zt,borderRadiusLG:ln,subMenuItemBorderRadius:Yt,menuArrowSize:an,menuArrowOffset:It,lineType:Qt,groupTitleLineHeight:Ut,groupTitleFontSize:Ae}=ne;return[{"":{[be]:Object.assign(Object.assign({},(0,Ft.dF)()),{"&-hidden":{display:"none"}})},[`${be}-submenu-hidden`]:{display:"none"}},{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(ne)),(0,Ft.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:pt,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",[`${be}-item`]:{flex:"none"}},[`${be}-item, ${be}-submenu, ${be}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${be}-item-group-title`]:{padding:`${(0,St.unit)(Mt)} ${(0,St.unit)(mt)}`,fontSize:Ae,lineHeight:Ut,transition:`all ${Me}`},[`&-horizontal ${be}-submenu`]:{transition:[`border-color ${Me} ${dt}`,`background ${Me} ${dt}`].join(",")},[`${be}-submenu, ${be}-submenu-inline`]:{transition:[`border-color ${Me} ${dt}`,`background ${Me} ${dt}`,`padding ${Ke} ${dt}`].join(",")},[`${be}-submenu ${be}-sub`]:{cursor:"initial",transition:[`background ${Me} ${dt}`,`padding ${Me} ${dt}`].join(",")},[`${be}-title-content`]:{transition:`color ${Me}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${he}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${be}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Lt,borderStyle:Qt,borderWidth:0,borderTopWidth:Ht,marginBlock:Ht,padding:0,"&-dashed":{borderStyle:"dashed"}}}),yt(ne)),{[`${be}-item-group`]:{[`${be}-item-group-list`]:{margin:0,padding:0,[`${be}-item, ${be}-submenu-title`]:{paddingInline:`${(0,St.unit)(ne.calc(pt).mul(2).equal())} ${(0,St.unit)(mt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Zt,borderRadius:ln,boxShadow:"none",transformOrigin:"0 0",[`&${be}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${be}`]:Object.assign(Object.assign(Object.assign({borderRadius:ln},yt(ne)),we(ne)),{[`${be}-item, ${be}-submenu > ${be}-submenu-title`]:{borderRadius:Yt},[`${be}-submenu-title::after`]:{transition:`transform ${Me} ${dt}`}})},"\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:ne.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ne.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ne.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ne.paddingXS}}}),we(ne)),{[`&-inline-collapsed ${be}-submenu-arrow, &-inline ${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,St.unit)(It)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,St.unit)(ne.calc(It).mul(-1).equal())})`}},[`${be}-submenu-open${be}-submenu-inline > ${be}-submenu-title > ${be}-submenu-arrow`]:{transform:`translateY(${(0,St.unit)(ne.calc(an).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,St.unit)(ne.calc(It).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,St.unit)(It)})`}}})},{[`${he}-layout-header`]:{[be]:{lineHeight:"inherit"}}}]},Ue=ne=>{var he,be,pt;const{colorPrimary:Me,colorError:Ke,colorTextDisabled:dt,colorErrorBg:Mt,colorText:mt,colorTextDescription:Lt,colorBgContainer:Ht,colorFillAlter:Zt,colorFillContent:ln,lineWidth:Yt,lineWidthBold:an,controlItemBgActive:It,colorBgTextHover:Qt,controlHeightLG:Ut,lineHeight:Ae,colorBgElevated:ut,marginXXS:At,padding:Gt,fontSize:De,controlHeightSM:et,fontSizeLG:gt,colorTextLightSolid:Nt,colorErrorHover:_t}=ne,cn=(he=ne.activeBarWidth)!==null&&he!==void 0?he:0,Sn=(be=ne.activeBarBorderWidth)!==null&&be!==void 0?be:Yt,Cn=(pt=ne.itemMarginInline)!==null&&pt!==void 0?pt:ne.marginXXS,sn=new tt.FastColor(Nt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:mt,itemColor:mt,colorItemTextHover:mt,itemHoverColor:mt,colorItemTextHoverHorizontal:Me,horizontalItemHoverColor:Me,colorGroupTitle:Lt,groupTitleColor:Lt,colorItemTextSelected:Me,itemSelectedColor:Me,subMenuItemSelectedColor:Me,colorItemTextSelectedHorizontal:Me,horizontalItemSelectedColor:Me,colorItemBg:Ht,itemBg:Ht,colorItemBgHover:Qt,itemHoverBg:Qt,colorItemBgActive:ln,itemActiveBg:It,colorSubItemBg:Zt,subMenuItemBg:Zt,colorItemBgSelected:It,itemSelectedBg:It,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:cn,colorActiveBarHeight:an,activeBarHeight:an,colorActiveBarBorderSize:Yt,activeBarBorderWidth:Sn,colorItemTextDisabled:dt,itemDisabledColor:dt,colorDangerItemText:Ke,dangerItemColor:Ke,colorDangerItemTextHover:Ke,dangerItemHoverColor:Ke,colorDangerItemTextSelected:Ke,dangerItemSelectedColor:Ke,colorDangerItemBgActive:Mt,dangerItemActiveBg:Mt,colorDangerItemBgSelected:Mt,dangerItemSelectedBg:Mt,itemMarginInline:Cn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ut,groupTitleLineHeight:Ae,collapsedWidth:Ut*2,popupBg:ut,itemMarginBlock:At,itemPaddingInline:Gt,horizontalLineHeight:`${Ut*1.15}px`,iconSize:De,iconMarginInlineEnd:et-De,collapsedIconSize:gt,groupTitleFontSize:De,darkItemDisabledColor:new tt.FastColor(Nt).setA(.25).toRgbString(),darkItemColor:sn,darkDangerItemColor:Ke,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Nt,darkItemSelectedBg:Me,darkDangerItemSelectedBg:Ke,darkItemHoverBg:"transparent",darkGroupTitleColor:sn,darkItemHoverColor:Nt,darkDangerItemHoverColor:_t,darkDangerItemSelectedColor:Nt,darkDangerItemActiveBg:Ke,itemWidth:cn?`calc(100% + ${Sn}px)`:`calc(100% - ${Cn*2}px)`}};var Kt=function(ne){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Ne.I$)("Menu",Me=>{const{colorBgElevated:Ke,controlHeightLG:dt,fontSize:Mt,darkItemColor:mt,darkDangerItemColor:Lt,darkItemBg:Ht,darkSubMenuItemBg:Zt,darkItemSelectedColor:ln,darkItemSelectedBg:Yt,darkDangerItemSelectedBg:an,darkItemHoverBg:It,darkGroupTitleColor:Qt,darkItemHoverColor:Ut,darkItemDisabledColor:Ae,darkDangerItemHoverColor:ut,darkDangerItemSelectedColor:At,darkDangerItemActiveBg:Gt,popupBg:De,darkPopupBg:et}=Me,gt=Me.calc(Mt).div(7).mul(5).equal(),Nt=(0,rt.mergeToken)(Me,{menuArrowSize:gt,menuHorizontalHeight:Me.calc(dt).mul(1.15).equal(),menuArrowOffset:Me.calc(gt).mul(.25).equal(),menuSubMenuBg:Ke,calc:Me.calc,popupBg:De}),_t=(0,rt.mergeToken)(Nt,{itemColor:mt,itemHoverColor:Ut,groupTitleColor:Qt,itemSelectedColor:ln,subMenuItemSelectedColor:ln,itemBg:Ht,popupBg:et,subMenuItemBg:Zt,itemActiveBg:"transparent",itemSelectedBg:Yt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:It,itemDisabledColor:Ae,dangerItemColor:Lt,dangerItemHoverColor:ut,dangerItemSelectedColor:At,dangerItemActiveBg:Gt,dangerItemSelectedBg:an,menuSubMenuBg:Zt,horizontalItemSelectedColor:ln,horizontalItemSelectedBg:Yt});return[Ze(Nt),pe(Nt),ht(Nt),ve(Nt,"light"),ve(_t,"dark"),ke(Nt),(0,Ct.Z)(Nt),(0,Xe.oN)(Nt,"slide-up"),(0,Xe.oN)(Nt,"slide-down"),(0,bt._y)(Nt,"zoom-big")]},Ue,{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"]],injectStyle:be,unitless:{groupTitleLineHeight:!0}})(ne,he)},kt=ie(75030),Re=ne=>{var he;const{popupClassName:be,icon:pt,title:Me,theme:Ke}=ne,dt=z.useContext(nt),{prefixCls:Mt,inlineCollapsed:mt,theme:Lt}=dt,Ht=(0,qe.Xl)();let Zt;if(!pt)Zt=mt&&!Ht.length&&Me&&typeof Me=="string"?z.createElement("div",{className:`${Mt}-inline-collapsed-noicon`},Me.charAt(0)):z.createElement("span",{className:`${Mt}-title-content`},Me);else{const an=z.isValidElement(Me)&&Me.type==="span";Zt=z.createElement(z.Fragment,null,(0,fe.Tm)(pt,{className:Ce()(z.isValidElement(pt)?(he=pt.props)===null||he===void 0?void 0:he.className:"",`${Mt}-item-icon`)}),an?Me:z.createElement("span",{className:`${Mt}-title-content`},Me))}const ln=z.useMemo(()=>Object.assign(Object.assign({},dt),{firstLevel:!1}),[dt]),[Yt]=(0,kt.Cn)("Menu");return z.createElement(nt.Provider,{value:ln},z.createElement(qe.Wd,Object.assign({},(0,Be.Z)(ne,["icon"]),{title:Zt,popupClassName:Ce()(Mt,be,`${Mt}-${Ke||Lt}`),popupStyle:Object.assign({zIndex:Yt},ne.popupStyle)})))},$t=function(ne,he){var be={};for(var pt in ne)Object.prototype.hasOwnProperty.call(ne,pt)&&he.indexOf(pt)<0&&(be[pt]=ne[pt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,pt=Object.getOwnPropertySymbols(ne);Me{var be;const pt=z.useContext(xt.Z),Me=pt||{},{getPrefixCls:Ke,getPopupContainer:dt,direction:Mt,menu:mt}=z.useContext(Je.E_),Lt=Ke(),{prefixCls:Ht,className:Zt,style:ln,theme:Yt="light",expandIcon:an,_internalDisableMenuItemTitleTooltip:It,inlineCollapsed:Qt,siderCollapsed:Ut,rootClassName:Ae,mode:ut,selectable:At,onClick:Gt,overflowedIndicatorPopupClassName:De}=ne,et=$t(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),gt=(0,Be.Z)(et,["collapsedWidth"]);(be=Me.validator)===null||be===void 0||be.call(Me,{mode:ut});const Nt=(0,Oe.Z)(function(){var mn;Gt==null||Gt.apply(void 0,arguments),(mn=Me.onClick)===null||mn===void 0||mn.call(Me)}),_t=Me.mode||ut,cn=At!=null?At:Me.selectable,Sn=Qt!=null?Qt:Ut,Cn={horizontal:{motionName:`${Lt}-slide-up`},inline:(0,Pe.Z)(Lt),other:{motionName:`${Lt}-zoom-big`}},sn=Ke("menu",Ht||Me.prefixCls),yn=(0,Se.Z)(sn),[gn,$n,bn]=Kt(sn,yn,!pt),vn=Ce()(`${sn}-${Yt}`,mt==null?void 0:mt.className,Zt),Jt=z.useMemo(()=>{var mn,kn;if(typeof an=="function"||lt(an))return an||null;if(typeof Me.expandIcon=="function"||lt(Me.expandIcon))return Me.expandIcon||null;if(typeof(mt==null?void 0:mt.expandIcon)=="function"||lt(mt==null?void 0:mt.expandIcon))return(mt==null?void 0:mt.expandIcon)||null;const jn=(mn=an!=null?an:Me==null?void 0:Me.expandIcon)!==null&&mn!==void 0?mn:mt==null?void 0:mt.expandIcon;return(0,fe.Tm)(jn,{className:Ce()(`${sn}-submenu-expand-icon`,z.isValidElement(jn)?(kn=jn.props)===null||kn===void 0?void 0:kn.className:void 0)})},[an,Me==null?void 0:Me.expandIcon,mt==null?void 0:mt.expandIcon,sn]),On=z.useMemo(()=>({prefixCls:sn,inlineCollapsed:Sn||!1,direction:Mt,firstLevel:!0,theme:Yt,mode:_t,disableMenuItemTitleTooltip:It}),[sn,Sn,Mt,It,Yt]);return gn(z.createElement(xt.Z.Provider,{value:null},z.createElement(nt.Provider,{value:On},z.createElement(qe.ZP,Object.assign({getPopupContainer:dt,overflowedIndicator:z.createElement(_e.Z,null),overflowedIndicatorPopupClassName:Ce()(sn,`${sn}-${Yt}`,De),mode:_t,selectable:cn,onClick:Nt},gt,{inlineCollapsed:Sn,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),ln),className:vn,prefixCls:sn,direction:Mt,defaultMotions:Cn,expandIcon:Jt,ref:he,rootClassName:Ce()(Ae,$n,Me.rootClassName,bn,yn),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((ne,he)=>{const be=(0,z.useRef)(null),pt=z.useContext(me.D);return(0,z.useImperativeHandle)(he,()=>({menu:be.current,focus:Me=>{var Ke;(Ke=be.current)===null||Ke===void 0||Ke.focus(Me)}})),z.createElement(ee,Object.assign({ref:be},ne,pt))});oe.Item=Pt,oe.SubMenu=Re,oe.Divider=je,oe.ItemGroup=qe.BW;var ue=oe},89787:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Ut}});var z=ie(59301),qe=ie(17835),me=ie(29679),_e=ie(40001),xe=ie(19248),Ce=ie(99267),Oe=ie(92310),Be=ie.n(Oe),Pe=ie(2738),fe=ie(48755),Je=ie(60499),Se=ie(85899),Dt=ie(42244),nt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$e=function(){var ut=(0,z.useRef)([]),At=(0,z.useRef)(null);return(0,z.useEffect)(function(){var Gt=Date.now(),De=!1;ut.current.forEach(function(et){if(et){De=!0;var gt=et.style;gt.transitionDuration=".3s, .3s, .3s, .06s",At.current&&Gt-At.current<100&&(gt.transitionDuration="0s, 0s")}}),De&&(At.current=Date.now())}),ut.current},Ve=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],je=function(ut){var At=(0,Se.Z)((0,Se.Z)({},nt),ut),Gt=At.className,De=At.percent,et=At.prefixCls,gt=At.strokeColor,Nt=At.strokeLinecap,_t=At.strokeWidth,cn=At.style,Sn=At.trailColor,Cn=At.trailWidth,sn=At.transition,yn=(0,Dt.Z)(At,Ve);delete yn.gapPosition;var gn=Array.isArray(De)?De:[De],$n=Array.isArray(gt)?gt:[gt],bn=$e(),vn=_t/2,Jt=100-_t/2,On="M ".concat(Nt==="round"?vn:0,",").concat(vn,` L `).concat(Nt==="round"?Jt:100,",").concat(vn),mn="0 0 100 ".concat(_t),kn=0;return z.createElement("svg",(0,Je.Z)({className:Be()("".concat(et,"-line"),Gt),viewBox:mn,preserveAspectRatio:"none",style:cn},yn),z.createElement("path",{className:"".concat(et,"-line-trail"),d:On,strokeLinecap:Nt,stroke:Sn,strokeWidth:Cn||_t,fillOpacity:"0"}),gn.map(function(jn,Zn){var An=1;switch(Nt){case"round":An=1-_t/100;break;case"square":An=1-_t/2/100;break;default:An=1;break}var Xn={strokeDasharray:"".concat(jn*An,"px, 100px"),strokeDashoffset:"-".concat(kn,"px"),transition:sn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Nn=$n[Zn]||$n[$n.length-1];return kn+=jn,z.createElement("path",{key:Zn,className:"".concat(et,"-line-path"),d:On,strokeLinecap:Nt,stroke:Nn,strokeWidth:_t,fillOpacity:"0",ref:function(qn){bn[Zn]=qn},style:Xn})}))},Et=je,Bt=ie(43749),zt=ie(72190),Pt=ie(47273),xt=0,St=(0,Pt.Z)();function tt(){var Ae;return St?(Ae=xt,xt+=1):Ae="TEST_OR_SSR",Ae}var Ft=function(Ae){var ut=z.useState(),At=(0,zt.Z)(ut,2),Gt=At[0],De=At[1];return z.useEffect(function(){De("rc_progress_".concat(tt()))},[]),Ae||Gt},Ct=function(ut){var At=ut.bg,Gt=ut.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:At}},Gt)};function Xe(Ae,ut){return Object.keys(Ae).map(function(At){var Gt=parseFloat(At),De="".concat(Math.floor(Gt*ut),"%");return"".concat(Ae[At]," ").concat(De)})}var bt=z.forwardRef(function(Ae,ut){var At=Ae.prefixCls,Gt=Ae.color,De=Ae.gradientId,et=Ae.radius,gt=Ae.style,Nt=Ae.ptg,_t=Ae.strokeLinecap,cn=Ae.strokeWidth,Sn=Ae.size,Cn=Ae.gapDegree,sn=Gt&&(0,Bt.Z)(Gt)==="object",yn=sn?"#FFF":void 0,gn=Sn/2,$n=z.createElement("circle",{className:"".concat(At,"-circle-path"),r:et,cx:gn,cy:gn,stroke:yn,strokeLinecap:_t,strokeWidth:cn,opacity:Nt===0?0:1,style:gt,ref:ut});if(!sn)return $n;var bn="".concat(De,"-conic"),vn=Cn?"".concat(180+Cn/2,"deg"):"0deg",Jt=Xe(Gt,(360-Cn)/360),On=Xe(Gt,1),mn="conic-gradient(from ".concat(vn,", ").concat(Jt.join(", "),")"),kn="linear-gradient(to ".concat(Cn?"bottom":"top",", ").concat(On.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:bn},$n),z.createElement("foreignObject",{x:0,y:0,width:Sn,height:Sn,mask:"url(#".concat(bn,")")},z.createElement(Ct,{bg:kn},z.createElement(Ct,{bg:mn}))))}),Ne=bt,rt=100,at=function(ut,At,Gt,De,et,gt,Nt,_t,cn,Sn){var Cn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,sn=Gt/100*360*((360-gt)/360),yn=gt===0?0:{bottom:0,top:180,left:90,right:-90}[Nt],gn=(100-De)/100*At;cn==="round"&&De!==100&&(gn+=Sn/2,gn>=At&&(gn=At-.01));var $n=rt/2;return{stroke:typeof _t=="string"?_t:void 0,strokeDasharray:"".concat(At,"px ").concat(ut),strokeDashoffset:gn+Cn,transform:"rotate(".concat(et+sn+yn,"deg)"),transformOrigin:"".concat($n,"px ").concat($n,"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}},pe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function wt(Ae){var ut=Ae!=null?Ae:[];return Array.isArray(ut)?ut:[ut]}var ke=function(ut){var At=(0,Se.Z)((0,Se.Z)({},nt),ut),Gt=At.id,De=At.prefixCls,et=At.steps,gt=At.strokeWidth,Nt=At.trailWidth,_t=At.gapDegree,cn=_t===void 0?0:_t,Sn=At.gapPosition,Cn=At.trailColor,sn=At.strokeLinecap,yn=At.style,gn=At.className,$n=At.strokeColor,bn=At.percent,vn=(0,Dt.Z)(At,pe),Jt=rt/2,On=Ft(Gt),mn="".concat(On,"-gradient"),kn=Jt-gt/2,jn=Math.PI*2*kn,Zn=cn>0?90+cn/2:-90,An=jn*((360-cn)/360),Xn=(0,Bt.Z)(et)==="object"?et:{count:et,gap:2},Nn=Xn.count,ar=Xn.gap,qn=wt(bn),jt=wt($n),on=jt.find(function(Ie){return Ie&&(0,Bt.Z)(Ie)==="object"}),zn=on&&(0,Bt.Z)(on)==="object",nr=zn?"butt":sn,ze=at(jn,An,0,100,Zn,cn,Sn,Cn,nr,gt),ct=$e(),Ee=function(){var He=0;return qn.map(function(ye,Qe){var it=jt[Qe]||jt[jt.length-1],vt=at(jn,An,He,ye,Zn,cn,Sn,it,nr,gt);return He+=ye,z.createElement(Ne,{key:Qe,color:it,ptg:ye,radius:kn,prefixCls:De,gradientId:mn,style:vt,strokeLinecap:nr,strokeWidth:gt,gapDegree:cn,ref:function(We){ct[Qe]=We},size:rt})}).reverse()},Fe=function(){var He=Math.round(Nn*(qn[0]/100)),ye=100/Nn,Qe=0;return new Array(Nn).fill(null).map(function(it,vt){var ot=vt<=He-1?jt[0]:Cn,We=ot&&(0,Bt.Z)(ot)==="object"?"url(#".concat(mn,")"):void 0,Ge=at(jn,An,Qe,ye,Zn,cn,Sn,ot,"butt",gt,ar);return Qe+=(An-Ge.strokeDashoffset+ar)*100/An,z.createElement("circle",{key:vt,className:"".concat(De,"-circle-path"),r:kn,cx:Jt,cy:Jt,stroke:We,strokeWidth:gt,opacity:1,style:Ge,ref:function(en){ct[vt]=en}})})};return z.createElement("svg",(0,Je.Z)({className:Be()("".concat(De,"-circle"),gn),viewBox:"0 0 ".concat(rt," ").concat(rt),style:yn,id:Gt,role:"presentation"},vn),!Nn&&z.createElement("circle",{className:"".concat(De,"-circle-trail"),r:kn,cx:Jt,cy:Jt,stroke:Cn,strokeLinecap:nr,strokeWidth:Nt||gt,style:ze}),Nn?Fe():Ee())},Te=ke,Ot={Line:Et,Circle:Te},ve=ie(25399),se=ie(68361);function Le(Ae){return!Ae||Ae<0?0:Ae>100?100:Ae}function ht(Ae){let{success:ut,successPercent:At}=Ae,Gt=At;return ut&&"progress"in ut&&(Gt=ut.progress),ut&&"percent"in ut&&(Gt=ut.percent),Gt}const yt=Ae=>{let{percent:ut,success:At,successPercent:Gt}=Ae;const De=Le(ht({success:At,successPercent:Gt}));return[De,Le(Le(ut)-De)]},we=Ae=>{let{success:ut={},strokeColor:At}=Ae;const{strokeColor:Gt}=ut;return[Gt||se.presetPrimaryColors.green,At||null]},Ze=(Ae,ut,At)=>{var Gt,De,et,gt;let Nt=-1,_t=-1;if(ut==="step"){const cn=At.steps,Sn=At.strokeWidth;typeof Ae=="string"||typeof Ae=="undefined"?(Nt=Ae==="small"?2:14,_t=Sn!=null?Sn:8):typeof Ae=="number"?[Nt,_t]=[Ae,Ae]:[Nt=14,_t=8]=Array.isArray(Ae)?Ae:[Ae.width,Ae.height],Nt*=cn}else if(ut==="line"){const cn=At==null?void 0:At.strokeWidth;typeof Ae=="string"||typeof Ae=="undefined"?_t=cn||(Ae==="small"?6:8):typeof Ae=="number"?[Nt,_t]=[Ae,Ae]:[Nt=-1,_t=8]=Array.isArray(Ae)?Ae:[Ae.width,Ae.height]}else(ut==="circle"||ut==="dashboard")&&(typeof Ae=="string"||typeof Ae=="undefined"?[Nt,_t]=Ae==="small"?[60,60]:[120,120]:typeof Ae=="number"?[Nt,_t]=[Ae,Ae]:Array.isArray(Ae)&&(Nt=(De=(Gt=Ae[0])!==null&&Gt!==void 0?Gt:Ae[1])!==null&&De!==void 0?De:120,_t=(gt=(et=Ae[0])!==null&&et!==void 0?et:Ae[1])!==null&>!==void 0?gt:120));return[Nt,_t]},Ue=3,Kt=Ae=>Ue/Ae*100;var Tt=Ae=>{const{prefixCls:ut,trailColor:At=null,strokeLinecap:Gt="round",gapPosition:De,gapDegree:et,width:gt=120,type:Nt,children:_t,success:cn,size:Sn=gt,steps:Cn}=Ae,[sn,yn]=Ze(Sn,"circle");let{strokeWidth:gn}=Ae;gn===void 0&&(gn=Math.max(Kt(sn),6));const $n={width:sn,height:yn,fontSize:sn*.15+6},bn=z.useMemo(()=>{if(et||et===0)return et;if(Nt==="dashboard")return 75},[et,Nt]),vn=yt(Ae),Jt=De||Nt==="dashboard"&&"bottom"||void 0,On=Object.prototype.toString.call(Ae.strokeColor)==="[object Object]",mn=we({success:cn,strokeColor:Ae.strokeColor}),kn=Be()(`${ut}-inner`,{[`${ut}-circle-gradient`]:On}),jn=z.createElement(Te,{steps:Cn,percent:Cn?vn[1]:vn,strokeWidth:gn,trailWidth:gn,strokeColor:Cn?mn[1]:mn,strokeLinecap:Gt,trailColor:At,prefixCls:ut,gapDegree:bn,gapPosition:Jt}),Zn=sn<=20,An=z.createElement("div",{className:kn,style:$n},jn,!Zn&&_t);return Zn?z.createElement(ve.Z,{title:_t},An):An},Re=ie(36237),$t=ie(63356),lt=ie(16931),ae=ie(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=Ae=>{const ut=Ae?"100%":"-100%";return new Re.Keyframes(`antProgress${Ae?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${ut}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${ut}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ue=Ae=>{const{componentCls:ut,iconCls:At}=Ae;return{[ut]:Object.assign(Object.assign({},(0,$t.Wf)(Ae)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ae.fontSize},[`${ut}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${ut}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ae.remainingColor,borderRadius:Ae.lineBorderRadius},[`${ut}-inner:not(${ut}-circle-gradient)`]:{[`${ut}-circle-path`]:{stroke:Ae.defaultColor}},[`${ut}-success-bg, ${ut}-bg`]:{position:"relative",background:Ae.defaultColor,borderRadius:Ae.lineBorderRadius,transition:`all ${Ae.motionDurationSlow} ${Ae.motionEaseInOutCirc}`},[`${ut}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${ut}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ae.marginXXS}},[`${ut}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${ut}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${ut}-text-inner`]:{color:Ae.colorWhite,[`&${ut}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${ut}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ae.colorSuccess},[`${ut}-text`]:{display:"inline-block",marginInlineStart:Ae.marginXS,color:Ae.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[At]:{fontSize:Ae.fontSize},[`&${ut}-text-outer`]:{width:"max-content"},[`&${ut}-text-outer${ut}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ae.marginXS}},[`${ut}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Re.unit)(Ae.paddingXXS)}`,[`&${ut}-text-start`]:{justifyContent:"start"},[`&${ut}-text-end`]:{justifyContent:"end"}},[`&${ut}-status-active`]:{[`${ut}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ae.colorBgContainer,borderRadius:Ae.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Ae.progressActiveMotionDuration,animationTimingFunction:Ae.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${ut}-rtl${ut}-status-active`]:{[`${ut}-bg::before`]:{animationName:oe(!0)}},[`&${ut}-status-exception`]:{[`${ut}-bg`]:{backgroundColor:Ae.colorError},[`${ut}-text`]:{color:Ae.colorError}},[`&${ut}-status-exception ${ut}-inner:not(${ut}-circle-gradient)`]:{[`${ut}-circle-path`]:{stroke:Ae.colorError}},[`&${ut}-status-success`]:{[`${ut}-bg`]:{backgroundColor:Ae.colorSuccess},[`${ut}-text`]:{color:Ae.colorSuccess}},[`&${ut}-status-success ${ut}-inner:not(${ut}-circle-gradient)`]:{[`${ut}-circle-path`]:{stroke:Ae.colorSuccess}}})}},ne=Ae=>{const{componentCls:ut,iconCls:At}=Ae;return{[ut]:{[`${ut}-circle-trail`]:{stroke:Ae.remainingColor},[`&${ut}-circle ${ut}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${ut}-circle ${ut}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ae.circleTextColor,fontSize:Ae.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[At]:{fontSize:Ae.circleIconFontSize}},[`${ut}-circle&-status-exception`]:{[`${ut}-text`]:{color:Ae.colorError}},[`${ut}-circle&-status-success`]:{[`${ut}-text`]:{color:Ae.colorSuccess}}},[`${ut}-inline-circle`]:{lineHeight:1,[`${ut}-inner`]:{verticalAlign:"bottom"}}}},he=Ae=>{const{componentCls:ut}=Ae;return{[ut]:{[`${ut}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ae.progressStepMinWidth,marginInlineEnd:Ae.progressStepMarginInlineEnd,backgroundColor:Ae.remainingColor,transition:`all ${Ae.motionDurationSlow}`,"&-active":{backgroundColor:Ae.defaultColor}}}}}},be=Ae=>{const{componentCls:ut,iconCls:At}=Ae;return{[ut]:{[`${ut}-small&-line, ${ut}-small&-line ${ut}-text ${At}`]:{fontSize:Ae.fontSizeSM}}}},pt=Ae=>({circleTextColor:Ae.colorText,defaultColor:Ae.colorInfo,remainingColor:Ae.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ae.fontSize/Ae.fontSizeSM}em`});var Me=(0,lt.I$)("Progress",Ae=>{const ut=Ae.calc(Ae.marginXXS).div(2).equal(),At=(0,ae.mergeToken)(Ae,{progressStepMarginInlineEnd:ut,progressStepMinWidth:ut,progressActiveMotionDuration:"2.4s"});return[ue(At),ne(At),he(At),be(At)]},pt),Ke=function(Ae,ut){var At={};for(var Gt in Ae)Object.prototype.hasOwnProperty.call(Ae,Gt)&&ut.indexOf(Gt)<0&&(At[Gt]=Ae[Gt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Gt=Object.getOwnPropertySymbols(Ae);De{let ut=[];return Object.keys(Ae).forEach(At=>{const Gt=parseFloat(At.replace(/%/g,""));Number.isNaN(Gt)||ut.push({key:Gt,value:Ae[At]})}),ut=ut.sort((At,Gt)=>At.key-Gt.key),ut.map(At=>{let{key:Gt,value:De}=At;return`${De} ${Gt}%`}).join(", ")},Mt=(Ae,ut)=>{const{from:At=se.presetPrimaryColors.blue,to:Gt=se.presetPrimaryColors.blue,direction:De=ut==="rtl"?"to left":"to right"}=Ae,et=Ke(Ae,["from","to","direction"]);if(Object.keys(et).length!==0){const Nt=dt(et),_t=`linear-gradient(${De}, ${Nt})`;return{background:_t,[te]:_t}}const gt=`linear-gradient(${De}, ${At}, ${Gt})`;return{background:gt,[te]:gt}};var Lt=Ae=>{const{prefixCls:ut,direction:At,percent:Gt,size:De,strokeWidth:et,strokeColor:gt,strokeLinecap:Nt="round",children:_t,trailColor:cn=null,percentPosition:Sn,success:Cn}=Ae,{align:sn,type:yn}=Sn,gn=gt&&typeof gt!="string"?Mt(gt,At):{[te]:gt,background:gt},$n=Nt==="square"||Nt==="butt"?0:void 0,bn=De!=null?De:[-1,et||(De==="small"?6:8)],[vn,Jt]=Ze(bn,"line",{strokeWidth:et}),On={backgroundColor:cn||void 0,borderRadius:$n},mn=Object.assign(Object.assign({width:`${Le(Gt)}%`,height:Jt,borderRadius:$n},gn),{[ee]:Le(Gt)/100}),kn=ht(Ae),jn={width:`${Le(kn)}%`,height:Jt,borderRadius:$n,backgroundColor:Cn==null?void 0:Cn.strokeColor},Zn={width:vn<0?"100%":vn},An=z.createElement("div",{className:`${ut}-inner`,style:On},z.createElement("div",{className:Be()(`${ut}-bg`,`${ut}-bg-${yn}`),style:mn},yn==="inner"&&_t),kn!==void 0&&z.createElement("div",{className:`${ut}-success-bg`,style:jn})),Xn=yn==="outer"&&sn==="start",Nn=yn==="outer"&&sn==="end";return yn==="outer"&&sn==="center"?z.createElement("div",{className:`${ut}-layout-bottom`},An,_t):z.createElement("div",{className:`${ut}-outer`,style:Zn},Xn&&_t,An,Nn&&_t)},Zt=Ae=>{const{size:ut,steps:At,rounding:Gt=Math.round,percent:De=0,strokeWidth:et=8,strokeColor:gt,trailColor:Nt=null,prefixCls:_t,children:cn}=Ae,Sn=Gt(At*(De/100)),Cn=ut==="small"?2:14,sn=ut!=null?ut:[Cn,et],[yn,gn]=Ze(sn,"step",{steps:At,strokeWidth:et}),$n=yn/At,bn=Array.from({length:At});for(let vn=0;vn{const{prefixCls:At,className:Gt,rootClassName:De,steps:et,strokeColor:gt,percent:Nt=0,size:_t="default",showInfo:cn=!0,type:Sn="line",status:Cn,format:sn,style:yn,percentPosition:gn={}}=Ae,$n=ln(Ae,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:bn="end",type:vn="outer"}=gn,Jt=Array.isArray(gt)?gt[0]:gt,On=typeof gt=="string"||Array.isArray(gt)?gt:void 0,mn=z.useMemo(()=>{if(Jt){const Ee=typeof Jt=="string"?Jt:Object.values(Jt)[0];return new qe.FastColor(Ee).isLight()}return!1},[gt]),kn=z.useMemo(()=>{var Ee,Fe;const Ie=ht(Ae);return parseInt(Ie!==void 0?(Ee=Ie!=null?Ie:0)===null||Ee===void 0?void 0:Ee.toString():(Fe=Nt!=null?Nt:0)===null||Fe===void 0?void 0:Fe.toString(),10)},[Nt,Ae.success,Ae.successPercent]),jn=z.useMemo(()=>!an.includes(Cn)&&kn>=100?"success":Cn||"normal",[Cn,kn]),{getPrefixCls:Zn,direction:An,progress:Xn}=z.useContext(fe.E_),Nn=Zn("progress",At),[ar,qn,jt]=Me(Nn),on=Sn==="line",zn=on&&!et,nr=z.useMemo(()=>{if(!cn)return null;const Ee=ht(Ae);let Fe;const Ie=sn||(ye=>`${ye}%`),He=on&&mn&&vn==="inner";return vn==="inner"||sn||jn!=="exception"&&jn!=="success"?Fe=Ie(Le(Nt),Le(Ee)):jn==="exception"?Fe=on?z.createElement(xe.Z,null):z.createElement(Ce.Z,null):jn==="success"&&(Fe=on?z.createElement(me.Z,null):z.createElement(_e.Z,null)),z.createElement("span",{className:Be()(`${Nn}-text`,{[`${Nn}-text-bright`]:He,[`${Nn}-text-${bn}`]:zn,[`${Nn}-text-${vn}`]:zn}),title:typeof Fe=="string"?Fe:void 0},Fe)},[cn,Nt,kn,jn,Sn,Nn,sn]);let ze;Sn==="line"?ze=et?z.createElement(Zt,Object.assign({},Ae,{strokeColor:On,prefixCls:Nn,steps:typeof et=="object"?et.count:et}),nr):z.createElement(Lt,Object.assign({},Ae,{strokeColor:Jt,prefixCls:Nn,direction:An,percentPosition:{align:bn,type:vn}}),nr):(Sn==="circle"||Sn==="dashboard")&&(ze=z.createElement(Tt,Object.assign({},Ae,{strokeColor:Jt,prefixCls:Nn,progressStatus:jn}),nr));const ct=Be()(Nn,`${Nn}-status-${jn}`,{[`${Nn}-${Sn==="dashboard"&&"circle"||Sn}`]:Sn!=="line",[`${Nn}-inline-circle`]:Sn==="circle"&&Ze(_t,"circle")[0]<=20,[`${Nn}-line`]:zn,[`${Nn}-line-align-${bn}`]:zn,[`${Nn}-line-position-${vn}`]:zn,[`${Nn}-steps`]:et,[`${Nn}-show-info`]:cn,[`${Nn}-${_t}`]:typeof _t=="string",[`${Nn}-rtl`]:An==="rtl"},Xn==null?void 0:Xn.className,Gt,De,qn,jt);return ar(z.createElement("div",Object.assign({ref:ut,style:Object.assign(Object.assign({},Xn==null?void 0:Xn.style),yn),className:ct,role:"progressbar","aria-valuenow":kn,"aria-valuemin":0,"aria-valuemax":100},(0,Pe.Z)($n,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ze))}),Ut=Qt},82326:function(tn,Wt,ie){"use strict";var z=ie(59301),qe=ie(92310),me=ie.n(qe),_e=ie(37463),xe=ie(2738),Ce=ie(75030),Oe=ie(86641),Be=ie(45915),Pe=ie(82855),fe=ie(48755),Je=ie(38406),Se=ie(2171),Dt=ie(83397),nt=ie(31756),$e=ie(56553),Ve=ie(24971),je=ie(70045),Et=ie(57700),Bt=ie(1722),zt=ie(90376),Pt=ie(68525),xt=ie(90005),St=function(bt,Ne){var rt={};for(var at in bt)Object.prototype.hasOwnProperty.call(bt,at)&&Ne.indexOf(at)<0&&(rt[at]=bt[at]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,at=Object.getOwnPropertySymbols(bt);pe{var rt;const{prefixCls:at,bordered:pe,className:wt,rootClassName:ke,getPopupContainer:Te,popupClassName:Ot,dropdownClassName:ve,listHeight:se=256,placement:Le,listItemHeight:ht,size:yt,disabled:we,notFoundContent:Ze,status:Ue,builtinPlacements:Kt,dropdownMatchSelectWidth:kt,popupMatchSelectWidth:Tt,direction:Re,style:$t,allowClear:lt,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:ue,prefix:ne}=bt,he=St(bt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:be,getPrefixCls:pt,renderEmpty:Me,direction:Ke,virtual:dt,popupMatchSelectWidth:Mt,popupOverflow:mt}=z.useContext(fe.E_),Lt=(0,fe.dj)("select"),[,Ht]=(0,Et.ZP)(),Zt=ht!=null?ht:Ht==null?void 0:Ht.controlHeight,ln=pt("select",at),Yt=pt(),an=Re!=null?Re:Ke,{compactSize:It,compactItemClassnames:Qt}=(0,je.ri)(ln,an),[Ut,Ae]=(0,Ve.Z)("select",ae,pe),ut=(0,Dt.Z)(ln),[At,Gt,De]=(0,zt.Z)(ln,ut),et=z.useMemo(()=>{const{mode:qn}=bt;if(qn!=="combobox")return qn===tt?"combobox":qn},[bt.mode]),gt=et==="multiple"||et==="tags",Nt=(0,xt.Z)(bt.suffixIcon,bt.showArrow),_t=(rt=Tt!=null?Tt:kt)!==null&&rt!==void 0?rt:Mt,{status:cn,hasFeedback:Sn,isFormItemInput:Cn,feedbackIcon:sn}=z.useContext($e.aM),yn=(0,Pe.F)(cn,Ue);let gn;Ze!==void 0?gn=Ze:et==="combobox"?gn=null:gn=(Me==null?void 0:Me("Select"))||z.createElement(Je.Z,{componentName:"Select"});const{suffixIcon:$n,itemIcon:bn,removeIcon:vn,clearIcon:Jt}=(0,Pt.Z)(Object.assign(Object.assign({},he),{multiple:gt,hasFeedback:Sn,feedbackIcon:sn,showSuffixIcon:Nt,prefixCls:ln,componentName:"Select"})),On=lt===!0?{clearIcon:Jt}:lt,mn=(0,xe.Z)(he,["suffixIcon","itemIcon"]),kn=me()(Ot||ve,{[`${ln}-dropdown-${an}`]:an==="rtl"},ke,De,ut,Gt),jn=(0,nt.Z)(qn=>{var jt;return(jt=yt!=null?yt:It)!==null&&jt!==void 0?jt:qn}),Zn=z.useContext(Se.Z),An=we!=null?we:Zn,Xn=me()({[`${ln}-lg`]:jn==="large",[`${ln}-sm`]:jn==="small",[`${ln}-rtl`]:an==="rtl",[`${ln}-${Ut}`]:Ae,[`${ln}-in-form-item`]:Cn},(0,Pe.Z)(ln,yn,Sn),Qt,Lt.className,wt,ke,De,ut,Gt),Nn=z.useMemo(()=>Le!==void 0?Le:an==="rtl"?"bottomRight":"bottomLeft",[Le,an]),[ar]=(0,Ce.Cn)("SelectLike",te==null?void 0:te.zIndex);return At(z.createElement(_e.ZP,Object.assign({ref:Ne,virtual:dt,showSearch:Lt.showSearch},mn,{style:Object.assign(Object.assign({},Lt.style),$t),dropdownMatchSelectWidth:_t,transitionName:(0,Oe.m)(Yt,"slide-up",ee),builtinPlacements:(0,Bt.Z)(Kt,mt),listHeight:se,listItemHeight:Zt,mode:et,prefixCls:ln,placement:Nn,direction:an,prefix:ne,suffixIcon:$n,menuItemSelectedIcon:bn,removeIcon:vn,allowClear:On,notFoundContent:gn,className:Xn,getPopupContainer:Te||be,dropdownClassName:kn,disabled:An,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:ar}),maxCount:gt?ue:void 0,tagRender:gt?oe:void 0})))},Ct=z.forwardRef(Ft),Xe=(0,Be.Z)(Ct,"dropdownAlign");Ct.SECRET_COMBOBOX_MODE_DO_NOT_USE=tt,Ct.Option=_e.Wx,Ct.OptGroup=_e.Xo,Ct._InternalPanelDoNotUseOrYouWillBeFired=Xe,Wt.default=Ct},1722:function(tn,Wt){"use strict";const ie=qe=>{const _e={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:qe==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},_e),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},_e),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},_e),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},_e),{points:["br","tr"],offset:[0,-4]})}};function z(qe,me){return qe||ie(me)}Wt.Z=z},90376:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return at}});var z=ie(63356),qe=ie(56119),me=ie(16931),_e=ie(51636),xe=ie(46e3),Ce=ie(93873);const Oe=pe=>{const{optionHeight:wt,optionFontSize:ke,optionLineHeight:Te,optionPadding:Ot}=pe;return{position:"relative",display:"block",minHeight:wt,padding:Ot,color:pe.colorText,fontWeight:"normal",fontSize:ke,lineHeight:Te,boxSizing:"border-box"}};var Pe=pe=>{const{antCls:wt,componentCls:ke}=pe,Te=`${ke}-item`,Ot=`&${wt}-slide-up-enter${wt}-slide-up-enter-active`,ve=`&${wt}-slide-up-appear${wt}-slide-up-appear-active`,se=`&${wt}-slide-up-leave${wt}-slide-up-leave-active`,Le=`${ke}-dropdown-placement-`,ht=`${Te}-option-selected`;return[{[`${ke}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"absolute",top:-9999,zIndex:pe.zIndexPopup,boxSizing:"border-box",padding:pe.paddingXXS,overflow:"hidden",fontSize:pe.fontSize,fontVariant:"initial",backgroundColor:pe.colorBgElevated,borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary,[` ${Ot}${Le}bottomLeft, ${ve}${Le}bottomLeft `]:{animationName:xe.fJ},[` ${Ot}${Le}topLeft, ${ve}${Le}topLeft, ${Ot}${Le}topRight, ${ve}${Le}topRight `]:{animationName:xe.Qt},[`${se}${Le}bottomLeft`]:{animationName:xe.Uw},[` ${se}${Le}topLeft, ${se}${Le}topRight `]:{animationName:xe.ly},"&-hidden":{display:"none"},[Te]:Object.assign(Object.assign({},Oe(pe)),{cursor:"pointer",transition:`background ${pe.motionDurationSlow} ease`,borderRadius:pe.borderRadiusSM,"&-group":{color:pe.colorTextDescription,fontSize:pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Te}-option-disabled)`]:{backgroundColor:pe.optionActiveBg},[`&-selected:not(${Te}-option-disabled)`]:{color:pe.optionSelectedColor,fontWeight:pe.optionSelectedFontWeight,backgroundColor:pe.optionSelectedBg,[`${Te}-option-state`]:{color:pe.colorPrimary}},"&-disabled":{[`&${Te}-option-selected`]:{backgroundColor:pe.colorBgContainerDisabled},color:pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:pe.calc(pe.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Oe(pe)),{color:pe.colorTextDisabled})}),[`${ht}:has(+ ${ht})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${ht}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,xe.oN)(pe,"slide-up"),(0,xe.oN)(pe,"slide-down"),(0,Ce.Fm)(pe,"move-up"),(0,Ce.Fm)(pe,"move-down")]},fe=ie(26743),Je=ie(36237);function Se(pe,wt){const{componentCls:ke,inputPaddingHorizontalBase:Te,borderRadius:Ot}=pe,ve=pe.calc(pe.controlHeight).sub(pe.calc(pe.lineWidth).mul(2)).equal(),se=wt?`${ke}-${wt}`:"";return{[`${ke}-single${se}`]:{fontSize:pe.fontSize,height:pe.controlHeight,[`${ke}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(pe,!0)),{display:"flex",borderRadius:Ot,flex:"1 1 auto",[`${ke}-selection-wrap:after`]:{lineHeight:(0,Je.unit)(ve)},[`${ke}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${ke}-selection-item, ${ke}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,Je.unit)(ve),transition:`all ${pe.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ke}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ke}-selection-item:empty:after`,`${ke}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${ke}-show-arrow ${ke}-selection-item, &${ke}-show-arrow ${ke}-selection-search, &${ke}-show-arrow ${ke}-selection-placeholder `]:{paddingInlineEnd:pe.showArrowPaddingInlineEnd},[`&${ke}-open ${ke}-selection-item`]:{color:pe.colorTextPlaceholder},[`&:not(${ke}-customize-input)`]:{[`${ke}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Je.unit)(Te)}`,[`${ke}-selection-search-input`]:{height:ve,fontSize:pe.fontSize},"&:after":{lineHeight:(0,Je.unit)(ve)}}},[`&${ke}-customize-input`]:{[`${ke}-selector`]:{"&:after":{display:"none"},[`${ke}-selection-search`]:{position:"static",width:"100%"},[`${ke}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Je.unit)(Te)}`,"&:after":{display:"none"}}}}}}}function Dt(pe){const{componentCls:wt}=pe,ke=pe.calc(pe.controlPaddingHorizontalSM).sub(pe.lineWidth).equal();return[Se(pe),Se((0,_e.mergeToken)(pe,{controlHeight:pe.controlHeightSM,borderRadius:pe.borderRadiusSM}),"sm"),{[`${wt}-single${wt}-sm`]:{[`&:not(${wt}-customize-input)`]:{[`${wt}-selector`]:{padding:`0 ${(0,Je.unit)(ke)}`},[`&${wt}-show-arrow ${wt}-selection-search`]:{insetInlineEnd:pe.calc(ke).add(pe.calc(pe.fontSize).mul(1.5)).equal()},[` &${wt}-show-arrow ${wt}-selection-item, &${wt}-show-arrow ${wt}-selection-placeholder `]:{paddingInlineEnd:pe.calc(pe.fontSize).mul(1.5).equal()}}}},Se((0,_e.mergeToken)(pe,{controlHeight:pe.singleItemHeightLG,fontSize:pe.fontSizeLG,borderRadius:pe.borderRadiusLG}),"lg")]}const nt=pe=>{const{fontSize:wt,lineHeight:ke,lineWidth:Te,controlHeight:Ot,controlHeightSM:ve,controlHeightLG:se,paddingXXS:Le,controlPaddingHorizontal:ht,zIndexPopupBase:yt,colorText:we,fontWeightStrong:Ze,controlItemBgActive:Ue,controlItemBgHover:Kt,colorBgContainer:kt,colorFillSecondary:Tt,colorBgContainerDisabled:Re,colorTextDisabled:$t,colorPrimaryHover:lt,colorPrimary:ae,controlOutline:te}=pe,ee=Le*2,oe=Te*2,ue=Math.min(Ot-ee,Ot-oe),ne=Math.min(ve-ee,ve-oe),he=Math.min(se-ee,se-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Le/2),zIndexPopup:yt+50,optionSelectedColor:we,optionSelectedFontWeight:Ze,optionSelectedBg:Ue,optionActiveBg:Kt,optionPadding:`${(Ot-wt*ke)/2}px ${ht}px`,optionFontSize:wt,optionLineHeight:ke,optionHeight:Ot,selectorBg:kt,clearBg:kt,singleItemHeightLG:se,multipleItemBg:Tt,multipleItemBorderColor:"transparent",multipleItemHeight:ue,multipleItemHeightSM:ne,multipleItemHeightLG:he,multipleSelectorBgDisabled:Re,multipleItemColorDisabled:$t,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(pe.fontSize*1.25),hoverBorderColor:lt,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:Le}},$e=(pe,wt)=>{const{componentCls:ke,antCls:Te,controlOutlineWidth:Ot}=pe;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${wt.borderColor}`,background:pe.selectorBg},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${Te}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{borderColor:wt.hoverBorderHover},[`${ke}-focused& ${ke}-selector`]:{borderColor:wt.activeBorderColor,boxShadow:`0 0 0 ${(0,Je.unit)(Ot)} ${wt.activeOutlineColor}`,outline:0},[`${ke}-prefix`]:{color:wt.color}}}},Ve=(pe,wt)=>({[`&${pe.componentCls}-status-${wt.status}`]:Object.assign({},$e(pe,wt))}),je=pe=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},$e(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),Ve(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),Ve(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})}),Et=(pe,wt)=>{const{componentCls:ke,antCls:Te}=pe;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{background:wt.bg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} transparent`,color:wt.color},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${Te}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{background:wt.hoverBg},[`${ke}-focused& ${ke}-selector`]:{background:pe.selectorBg,borderColor:wt.activeBorderColor,outline:0}}}},Bt=(pe,wt)=>({[`&${pe.componentCls}-status-${wt.status}`]:Object.assign({},Et(pe,wt))}),zt=pe=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Et(pe,{bg:pe.colorFillTertiary,hoverBg:pe.colorFillSecondary,activeBorderColor:pe.activeBorderColor,color:pe.colorText})),Bt(pe,{status:"error",bg:pe.colorErrorBg,hoverBg:pe.colorErrorBgHover,activeBorderColor:pe.colorError,color:pe.colorError})),Bt(pe,{status:"warning",bg:pe.colorWarningBg,hoverBg:pe.colorWarningBgHover,activeBorderColor:pe.colorWarning,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{borderColor:pe.colorBorder,background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.colorBgContainer,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.colorSplit}`}})}),Pt=pe=>({"&-borderless":{[`${pe.componentCls}-selector`]:{background:"transparent",border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} transparent`},[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`},[`&${pe.componentCls}-status-error`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorError}},[`&${pe.componentCls}-status-warning`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorWarning}}}}),xt=(pe,wt)=>{const{componentCls:ke,antCls:Te}=pe;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{borderWidth:`0 0 ${(0,Je.unit)(pe.lineWidth)} 0`,borderStyle:`none none ${pe.lineType} none`,borderColor:wt.borderColor,background:pe.selectorBg,borderRadius:0},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${Te}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{borderColor:wt.hoverBorderHover},[`${ke}-focused& ${ke}-selector`]:{borderColor:wt.activeBorderColor,outline:0},[`${ke}-prefix`]:{color:wt.color}}}},St=(pe,wt)=>({[`&${pe.componentCls}-status-${wt.status}`]:Object.assign({},xt(pe,wt))}),tt=pe=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},xt(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),St(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),St(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})});var Ct=pe=>({[pe.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},je(pe)),zt(pe)),Pt(pe)),tt(pe))});const Xe=pe=>{const{componentCls:wt}=pe;return{position:"relative",transition:`all ${pe.motionDurationMid} ${pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${wt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${wt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},bt=pe=>{const{componentCls:wt}=pe;return{[`${wt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Ne=pe=>{const{antCls:wt,componentCls:ke,inputPaddingHorizontalBase:Te,iconCls:Ot}=pe;return{[ke]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${ke}-customize-input) ${ke}-selector`]:Object.assign(Object.assign({},Xe(pe)),bt(pe)),[`${ke}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${wt}-typography`]:{display:"inline"}}),[`${ke}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:pe.colorTextPlaceholder,pointerEvents:"none"}),[`${ke}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Te,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${pe.motionDurationSlow} ease`,[Ot]:{verticalAlign:"top",transition:`transform ${pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ke}-suffix)`]:{pointerEvents:"auto"}},[`${ke}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ke}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${ke}-prefix`]:{flex:"none",marginInlineEnd:pe.selectAffixPadding},[`${ke}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Te,zIndex:1,display:"inline-block",width:pe.fontSizeIcon,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${pe.motionDurationMid} ease, opacity ${pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:pe.colorTextTertiary}},[`&:hover ${ke}-clear`]:{opacity:1,background:pe.colorBgBase,borderRadius:"50%"}}),[`${ke}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${ke}-has-feedback`]:{[`${ke}-clear`]:{insetInlineEnd:pe.calc(Te).add(pe.fontSize).add(pe.paddingXS).equal()}}}}}},rt=pe=>{const{componentCls:wt}=pe;return[{[wt]:{[`&${wt}-in-form-item`]:{width:"100%"}}},Ne(pe),Dt(pe),(0,fe.ZP)(pe),Pe(pe),{[`${wt}-rtl`]:{direction:"rtl"}},(0,qe.c)(pe,{borderElCls:`${wt}-selector`,focusElCls:`${wt}-focused`})]};var at=(0,me.I$)("Select",(pe,wt)=>{let{rootPrefixCls:ke}=wt;const Te=(0,_e.mergeToken)(pe,{rootPrefixCls:ke,inputPaddingHorizontalBase:pe.calc(pe.paddingSM).sub(1).equal(),multipleSelectItemHeight:pe.multipleItemHeight,selectHeight:pe.controlHeight});return[rt(Te),Ct(Te)]},nt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(tn,Wt,ie){"use strict";ie.d(Wt,{_z:function(){return Ce},gp:function(){return _e}});var z=ie(36237),qe=ie(63356),me=ie(51636);const _e=fe=>{const{multipleSelectItemHeight:Je,paddingXXS:Se,lineWidth:Dt,INTERNAL_FIXED_ITEM_MARGIN:nt}=fe,$e=fe.max(fe.calc(Se).sub(Dt).equal(),0),Ve=fe.max(fe.calc($e).sub(nt).equal(),0);return{basePadding:$e,containerPadding:Ve,itemHeight:(0,z.unit)(Je),itemLineHeight:(0,z.unit)(fe.calc(Je).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},xe=fe=>{const{multipleSelectItemHeight:Je,selectHeight:Se,lineWidth:Dt}=fe;return fe.calc(Se).sub(Je).div(2).sub(Dt).equal()},Ce=fe=>{const{componentCls:Je,iconCls:Se,borderRadiusSM:Dt,motionDurationSlow:nt,paddingXS:$e,multipleItemColorDisabled:Ve,multipleItemBorderColorDisabled:je,colorIcon:Et,colorIconHover:Bt,INTERNAL_FIXED_ITEM_MARGIN:zt}=fe;return{[`${Je}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Je}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:zt,borderRadius:Dt,cursor:"default",transition:`font-size ${nt}, line-height ${nt}, height ${nt}`,marginInlineEnd:fe.calc(zt).mul(2).equal(),paddingInlineStart:$e,paddingInlineEnd:fe.calc($e).div(2).equal(),[`${Je}-disabled&`]:{color:Ve,borderColor:je,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc($e).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,qe.Ro)()),{display:"inline-flex",alignItems:"center",color:Et,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Se}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Bt}})}}}},Oe=(fe,Je)=>{const{componentCls:Se,INTERNAL_FIXED_ITEM_MARGIN:Dt}=fe,nt=`${Se}-selection-overflow`,$e=fe.multipleSelectItemHeight,Ve=xe(fe),je=Je?`${Se}-${Je}`:"",Et=_e(fe);return{[`${Se}-multiple${je}`]:Object.assign(Object.assign({},Ce(fe)),{[`${Se}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Et.basePadding,paddingBlock:Et.containerPadding,borderRadius:fe.borderRadius,[`${Se}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(Dt)} 0`,lineHeight:(0,z.unit)($e),visibility:"hidden",content:'"\\a0"'}},[`${Se}-selection-item`]:{height:Et.itemHeight,lineHeight:(0,z.unit)(Et.itemLineHeight)},[`${Se}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)($e),marginBlock:Dt}},[`${Se}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Et.basePadding).equal()},[`${nt}-item + ${nt}-item, ${Se}-prefix + ${Se}-selection-wrap `]:{[`${Se}-selection-search`]:{marginInlineStart:0},[`${Se}-selection-placeholder`]:{insetInlineStart:0}},[`${nt}-item-suffix`]:{minHeight:Et.itemHeight,marginBlock:Dt},[`${Se}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Ve).equal(),"\n &-input,\n &-mirror\n ":{height:$e,fontFamily:fe.fontFamily,lineHeight:(0,z.unit)($e),transition:`all ${fe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Se}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Et.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function Be(fe,Je){const{componentCls:Se}=fe,Dt=Je?`${Se}-${Je}`:"",nt={[`${Se}-multiple${Dt}`]:{fontSize:fe.fontSize,[`${Se}-selector`]:{[`${Se}-show-search&`]:{cursor:"text"}},[` &${Se}-show-arrow ${Se}-selector, &${Se}-allow-clear ${Se}-selector `]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Oe(fe,Je),nt]}const Pe=fe=>{const{componentCls:Je}=fe,Se=(0,me.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),Dt=(0,me.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[Be(fe),Be(Se,"sm"),{[`${Je}-multiple${Je}-sm`]:{[`${Je}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${Je}-selection-search`]:{marginInlineStart:2}}},Be(Dt,"lg")]};Wt.ZP=Pe},68525:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});var z=ie(59301),qe=ie(40001),me=ie(19248),_e=ie(99267),xe=ie(84105),Ce=ie(58617),Oe=ie(47472);function Be(Pe){let{suffixIcon:fe,clearIcon:Je,menuItemSelectedIcon:Se,removeIcon:Dt,loading:nt,multiple:$e,hasFeedback:Ve,prefixCls:je,showSuffixIcon:Et,feedbackIcon:Bt,showArrow:zt,componentName:Pt}=Pe;const xt=Je!=null?Je:z.createElement(me.Z,null),St=Xe=>fe===null&&!Ve&&!zt?null:z.createElement(z.Fragment,null,Et!==!1&&Xe,Ve&&Bt);let tt=null;if(fe!==void 0)tt=St(fe);else if(nt)tt=St(z.createElement(Ce.Z,{spin:!0}));else{const Xe=`${je}-suffix`;tt=bt=>{let{open:Ne,showSearch:rt}=bt;return St(Ne&&rt?z.createElement(Oe.Z,{className:Xe}):z.createElement(xe.Z,{className:Xe}))}}let Ft=null;Se!==void 0?Ft=Se:$e?Ft=z.createElement(qe.Z,null):Ft=null;let Ct=null;return Dt!==void 0?Ct=Dt:Ct=z.createElement(_e.Z,null),{clearIcon:xt,suffixIcon:tt,itemIcon:Ft,removeIcon:Ct}}},90005:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return z}});function z(qe,me){return me!==void 0?me:qe!==null}},58755:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return wt}});var z=ie(59301),qe=ie(58617),me=ie(92310),_e=ie.n(me),xe=ie(60499),Ce=ie(18642),Oe=ie(72190),Be=ie(42244),Pe=ie(18929),fe=ie(10228),Je=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Se=z.forwardRef(function(ke,Te){var Ot,ve=ke.prefixCls,se=ve===void 0?"rc-switch":ve,Le=ke.className,ht=ke.checked,yt=ke.defaultChecked,we=ke.disabled,Ze=ke.loadingIcon,Ue=ke.checkedChildren,Kt=ke.unCheckedChildren,kt=ke.onClick,Tt=ke.onChange,Re=ke.onKeyDown,$t=(0,Be.Z)(ke,Je),lt=(0,Pe.Z)(!1,{value:ht,defaultValue:yt}),ae=(0,Oe.Z)(lt,2),te=ae[0],ee=ae[1];function oe(be,pt){var Me=te;return we||(Me=be,ee(Me),Tt==null||Tt(Me,pt)),Me}function ue(be){be.which===fe.Z.LEFT?oe(!1,be):be.which===fe.Z.RIGHT&&oe(!0,be),Re==null||Re(be)}function ne(be){var pt=oe(!te,be);kt==null||kt(pt,be)}var he=_e()(se,Le,(Ot={},(0,Ce.Z)(Ot,"".concat(se,"-checked"),te),(0,Ce.Z)(Ot,"".concat(se,"-disabled"),we),Ot));return z.createElement("button",(0,xe.Z)({},$t,{type:"button",role:"switch","aria-checked":te,disabled:we,className:he,ref:Te,onKeyDown:ue,onClick:ne}),Ze,z.createElement("span",{className:"".concat(se,"-inner")},z.createElement("span",{className:"".concat(se,"-inner-checked")},Ue),z.createElement("span",{className:"".concat(se,"-inner-unchecked")},Kt)))});Se.displayName="Switch";var Dt=Se,nt=ie(12919),$e=ie(48755),Ve=ie(2171),je=ie(31756),Et=ie(36237),Bt=ie(17835),zt=ie(63356),Pt=ie(16931),xt=ie(51636);const St=ke=>{const{componentCls:Te,trackHeightSM:Ot,trackPadding:ve,trackMinWidthSM:se,innerMinMarginSM:Le,innerMaxMarginSM:ht,handleSizeSM:yt,calc:we}=ke,Ze=`${Te}-inner`,Ue=(0,Et.unit)(we(yt).add(we(ve).mul(2)).equal()),Kt=(0,Et.unit)(we(ht).mul(2).equal());return{[Te]:{[`&${Te}-small`]:{minWidth:se,height:Ot,lineHeight:(0,Et.unit)(Ot),[`${Te}-inner`]:{paddingInlineStart:ht,paddingInlineEnd:Le,[`${Ze}-checked, ${Ze}-unchecked`]:{minHeight:Ot},[`${Ze}-checked`]:{marginInlineStart:`calc(-100% + ${Ue} - ${Kt})`,marginInlineEnd:`calc(100% - ${Ue} + ${Kt})`},[`${Ze}-unchecked`]:{marginTop:we(Ot).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Te}-handle`]:{width:yt,height:yt},[`${Te}-loading-icon`]:{top:we(we(yt).sub(ke.switchLoadingIconSize)).div(2).equal(),fontSize:ke.switchLoadingIconSize},[`&${Te}-checked`]:{[`${Te}-inner`]:{paddingInlineStart:Le,paddingInlineEnd:ht,[`${Ze}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ze}-unchecked`]:{marginInlineStart:`calc(100% - ${Ue} + ${Kt})`,marginInlineEnd:`calc(-100% + ${Ue} - ${Kt})`}},[`${Te}-handle`]:{insetInlineStart:`calc(100% - ${(0,Et.unit)(we(yt).add(ve).equal())})`}},[`&:not(${Te}-disabled):active`]:{[`&:not(${Te}-checked) ${Ze}`]:{[`${Ze}-unchecked`]:{marginInlineStart:we(ke.marginXXS).div(2).equal(),marginInlineEnd:we(ke.marginXXS).mul(-1).div(2).equal()}},[`&${Te}-checked ${Ze}`]:{[`${Ze}-checked`]:{marginInlineStart:we(ke.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:we(ke.marginXXS).div(2).equal()}}}}}}},tt=ke=>{const{componentCls:Te,handleSize:Ot,calc:ve}=ke;return{[Te]:{[`${Te}-loading-icon${ke.iconCls}`]:{position:"relative",top:ve(ve(Ot).sub(ke.fontSize)).div(2).equal(),color:ke.switchLoadingIconColor,verticalAlign:"top"},[`&${Te}-checked ${Te}-loading-icon`]:{color:ke.switchColor}}}},Ft=ke=>{const{componentCls:Te,trackPadding:Ot,handleBg:ve,handleShadow:se,handleSize:Le,calc:ht}=ke,yt=`${Te}-handle`;return{[Te]:{[yt]:{position:"absolute",top:Ot,insetInlineStart:Ot,width:Le,height:Le,transition:`all ${ke.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ve,borderRadius:ht(Le).div(2).equal(),boxShadow:se,transition:`all ${ke.switchDuration} ease-in-out`,content:'""'}},[`&${Te}-checked ${yt}`]:{insetInlineStart:`calc(100% - ${(0,Et.unit)(ht(Le).add(Ot).equal())})`},[`&:not(${Te}-disabled):active`]:{[`${yt}::before`]:{insetInlineEnd:ke.switchHandleActiveInset,insetInlineStart:0},[`&${Te}-checked ${yt}::before`]:{insetInlineEnd:0,insetInlineStart:ke.switchHandleActiveInset}}}}},Ct=ke=>{const{componentCls:Te,trackHeight:Ot,trackPadding:ve,innerMinMargin:se,innerMaxMargin:Le,handleSize:ht,calc:yt}=ke,we=`${Te}-inner`,Ze=(0,Et.unit)(yt(ht).add(yt(ve).mul(2)).equal()),Ue=(0,Et.unit)(yt(Le).mul(2).equal());return{[Te]:{[we]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Le,paddingInlineEnd:se,transition:`padding-inline-start ${ke.switchDuration} ease-in-out, padding-inline-end ${ke.switchDuration} ease-in-out`,[`${we}-checked, ${we}-unchecked`]:{display:"block",color:ke.colorTextLightSolid,fontSize:ke.fontSizeSM,transition:`margin-inline-start ${ke.switchDuration} ease-in-out, margin-inline-end ${ke.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Ot},[`${we}-checked`]:{marginInlineStart:`calc(-100% + ${Ze} - ${Ue})`,marginInlineEnd:`calc(100% - ${Ze} + ${Ue})`},[`${we}-unchecked`]:{marginTop:yt(Ot).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Te}-checked ${we}`]:{paddingInlineStart:se,paddingInlineEnd:Le,[`${we}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${we}-unchecked`]:{marginInlineStart:`calc(100% - ${Ze} + ${Ue})`,marginInlineEnd:`calc(-100% + ${Ze} - ${Ue})`}},[`&:not(${Te}-disabled):active`]:{[`&:not(${Te}-checked) ${we}`]:{[`${we}-unchecked`]:{marginInlineStart:yt(ve).mul(2).equal(),marginInlineEnd:yt(ve).mul(-1).mul(2).equal()}},[`&${Te}-checked ${we}`]:{[`${we}-checked`]:{marginInlineStart:yt(ve).mul(-1).mul(2).equal(),marginInlineEnd:yt(ve).mul(2).equal()}}}}}},Xe=ke=>{const{componentCls:Te,trackHeight:Ot,trackMinWidth:ve}=ke;return{[Te]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,zt.Wf)(ke)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ve,height:Ot,lineHeight:(0,Et.unit)(Ot),verticalAlign:"middle",background:ke.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ke.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Te}-disabled)`]:{background:ke.colorTextTertiary}}),(0,zt.Qy)(ke)),{[`&${Te}-checked`]:{background:ke.switchColor,[`&:hover:not(${Te}-disabled)`]:{background:ke.colorPrimaryHover}},[`&${Te}-loading, &${Te}-disabled`]:{cursor:"not-allowed",opacity:ke.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Te}-rtl`]:{direction:"rtl"}})}},bt=ke=>{const{fontSize:Te,lineHeight:Ot,controlHeight:ve,colorWhite:se}=ke,Le=Te*Ot,ht=ve/2,yt=2,we=Le-yt*2,Ze=ht-yt*2;return{trackHeight:Le,trackHeightSM:ht,trackMinWidth:we*2+yt*4,trackMinWidthSM:Ze*2+yt*2,trackPadding:yt,handleBg:se,handleSize:we,handleSizeSM:Ze,handleShadow:`0 2px 4px 0 ${new Bt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:we/2,innerMaxMargin:we+yt+yt*2,innerMinMarginSM:Ze/2,innerMaxMarginSM:Ze+yt+yt*2}};var Ne=(0,Pt.I$)("Switch",ke=>{const Te=(0,xt.mergeToken)(ke,{switchDuration:ke.motionDurationMid,switchColor:ke.colorPrimary,switchDisabledOpacity:ke.opacityLoading,switchLoadingIconSize:ke.calc(ke.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${ke.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Xe(Te),Ct(Te),Ft(Te),tt(Te),St(Te)]},bt),rt=function(ke,Te){var Ot={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&Te.indexOf(ve)<0&&(Ot[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ve=Object.getOwnPropertySymbols(ke);se{const{prefixCls:Ot,size:ve,disabled:se,loading:Le,className:ht,rootClassName:yt,style:we,checked:Ze,value:Ue,defaultChecked:Kt,defaultValue:kt,onChange:Tt}=ke,Re=rt(ke,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[$t,lt]=(0,Pe.Z)(!1,{value:Ze!=null?Ze:Ue,defaultValue:Kt!=null?Kt:kt}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext($e.E_),oe=z.useContext(Ve.Z),ue=(se!=null?se:oe)||Le,ne=ae("switch",Ot),he=z.createElement("div",{className:`${ne}-handle`},Le&&z.createElement(qe.Z,{className:`${ne}-loading-icon`})),[be,pt,Me]=Ne(ne),Ke=(0,je.Z)(ve),dt=_e()(ee==null?void 0:ee.className,{[`${ne}-small`]:Ke==="small",[`${ne}-loading`]:Le,[`${ne}-rtl`]:te==="rtl"},ht,yt,pt,Me),Mt=Object.assign(Object.assign({},ee==null?void 0:ee.style),we),mt=function(){lt(arguments.length<=0?void 0:arguments[0]),Tt==null||Tt.apply(void 0,arguments)};return be(z.createElement(nt.Z,{component:"Switch"},z.createElement(Dt,Object.assign({},Re,{checked:$t,onChange:mt,prefixCls:ne,className:dt,style:Mt,disabled:ue,ref:Te,loadingIcon:he}))))});pe.__ANT_SWITCH=!0;var wt=pe},94968:function(tn,Wt,ie){"use strict";ie.d(Wt,{default:function(){return He}});var z=ie(59301),qe=ie(77654),me=ie(4676),_e=ie(92310),xe=ie.n(_e),Ce=ie(60499),Oe=ie(38705),Be=ie(17212),Pe=ie(15793),fe=ie(39153),Je=ie(55401),Se=ie(18642),Dt=ie(85899),nt=ie(42244),$e=ie(43749),Ve=ie(73001),je=ie(11576),Et=ie(26112),Bt=ie(48736),zt=function(ye,Qe){if(ye&&Qe){var it=Array.isArray(Qe)?Qe:Qe.split(","),vt=ye.name||"",ot=ye.type||"",We=ot.replace(/\/.*$/,"");return it.some(function(Ge){var st=Ge.trim();if(/^\*(\/\*)?$/.test(Ge))return!0;if(st.charAt(0)==="."){var en=vt.toLowerCase(),Xt=st.toLowerCase(),qt=[Xt];return(Xt===".jpg"||Xt===".jpeg")&&(qt=[".jpg",".jpeg"]),qt.some(function(Dn){return en.endsWith(Dn)})}return/\/\*$/.test(st)?We===st.replace(/\/.*$/,""):ot===st?!0:/^\w+$/.test(st)?((0,Bt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(st,"'.Skip for check.")),!0):!1})}return!0};function Pt(ye,Qe){var it="cannot ".concat(ye.method," ").concat(ye.action," ").concat(Qe.status,"'"),vt=new Error(it);return vt.status=Qe.status,vt.method=ye.method,vt.url=ye.action,vt}function xt(ye){var Qe=ye.responseText||ye.response;if(!Qe)return Qe;try{return JSON.parse(Qe)}catch(it){return Qe}}function St(ye){var Qe=new XMLHttpRequest;ye.onProgress&&Qe.upload&&(Qe.upload.onprogress=function(We){We.total>0&&(We.percent=We.loaded/We.total*100),ye.onProgress(We)});var it=new FormData;ye.data&&Object.keys(ye.data).forEach(function(ot){var We=ye.data[ot];if(Array.isArray(We)){We.forEach(function(Ge){it.append("".concat(ot,"[]"),Ge)});return}it.append(ot,We)}),ye.file instanceof Blob?it.append(ye.filename,ye.file,ye.file.name):it.append(ye.filename,ye.file),Qe.onerror=function(We){ye.onError(We)},Qe.onload=function(){return Qe.status<200||Qe.status>=300?ye.onError(Pt(ye,Qe),xt(Qe)):ye.onSuccess(xt(Qe),Qe)},Qe.open(ye.method,ye.action,!0),ye.withCredentials&&"withCredentials"in Qe&&(Qe.withCredentials=!0);var vt=ye.headers||{};return vt["X-Requested-With"]!==null&&Qe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(vt).forEach(function(ot){vt[ot]!==null&&Qe.setRequestHeader(ot,vt[ot])}),Qe.send(it),{abort:function(){Qe.abort()}}}var tt=function(){var ye=(0,je.Z)((0,Ve.Z)().mark(function Qe(it,vt){var ot,We,Ge,st,en,Xt,qt,Dn;return(0,Ve.Z)().wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:Xt=function(){return Xt=(0,je.Z)((0,Ve.Z)().mark(function xn(Pn){return(0,Ve.Z)().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:return Yn.abrupt("return",new Promise(function(Gn){Pn.file(function(_n){vt(_n)?(Pn.fullPath&&!_n.webkitRelativePath&&(Object.defineProperties(_n,{webkitRelativePath:{writable:!0}}),_n.webkitRelativePath=Pn.fullPath.replace(/^\//,""),Object.defineProperties(_n,{webkitRelativePath:{writable:!1}})),Gn(_n)):Gn(null)})}));case 1:case"end":return Yn.stop()}},xn)})),Xt.apply(this,arguments)},en=function(xn){return Xt.apply(this,arguments)},st=function(){return st=(0,je.Z)((0,Ve.Z)().mark(function xn(Pn){var Fn,Yn,Gn,_n,wn;return(0,Ve.Z)().wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:Fn=Pn.createReader(),Yn=[];case 2:return Wn.next=5,new Promise(function(dr){Fn.readEntries(dr,function(){return dr([])})});case 5:if(Gn=Wn.sent,_n=Gn.length,_n){Wn.next=9;break}return Wn.abrupt("break",12);case 9:for(wn=0;wn<_n;wn++)Yn.push(Gn[wn]);Wn.next=2;break;case 12:return Wn.abrupt("return",Yn);case 13:case"end":return Wn.stop()}},xn)})),st.apply(this,arguments)},Ge=function(xn){return st.apply(this,arguments)},ot=[],We=[],it.forEach(function(Mn){return We.push(Mn.webkitGetAsEntry())}),qt=function(){var Mn=(0,je.Z)((0,Ve.Z)().mark(function xn(Pn,Fn){var Yn,Gn;return(0,Ve.Z)().wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(Pn){wn.next=2;break}return wn.abrupt("return");case 2:if(Pn.path=Fn||"",!Pn.isFile){wn.next=10;break}return wn.next=6,en(Pn);case 6:Yn=wn.sent,Yn&&ot.push(Yn),wn.next=15;break;case 10:if(!Pn.isDirectory){wn.next=15;break}return wn.next=13,Ge(Pn);case 13:Gn=wn.sent,We.push.apply(We,(0,qe.Z)(Gn));case 15:case"end":return wn.stop()}},xn)}));return function(Pn,Fn){return Mn.apply(this,arguments)}}(),Dn=0;case 9:if(!(Dn{const{componentCls:Qe,iconCls:it}=ye;return{[`${Qe}-wrapper`]:{[`${Qe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ye.colorFillAlter,border:`${(0,Kt.unit)(ye.lineWidth)} dashed ${ye.colorBorder}`,borderRadius:ye.borderRadiusLG,cursor:"pointer",transition:`border-color ${ye.motionDurationSlow}`,[Qe]:{padding:ye.padding},[`${Qe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:ye.borderRadiusLG,"&:focus-visible":{outline:`${(0,Kt.unit)(ye.lineWidthFocus)} solid ${ye.colorPrimaryBorder}`}},[`${Qe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${Qe}-disabled):hover, &-hover:not(${Qe}-disabled) `]:{borderColor:ye.colorPrimaryHover},[`p${Qe}-drag-icon`]:{marginBottom:ye.margin,[it]:{color:ye.colorPrimary,fontSize:ye.uploadThumbnailSize}},[`p${Qe}-text`]:{margin:`0 0 ${(0,Kt.unit)(ye.marginXXS)}`,color:ye.colorTextHeading,fontSize:ye.fontSizeLG},[`p${Qe}-hint`]:{color:ye.colorTextDescription,fontSize:ye.fontSize},[`&${Qe}-disabled`]:{[`p${Qe}-drag-icon ${it}, p${Qe}-text, p${Qe}-hint `]:{color:ye.colorTextDisabled}}}}}},$t=ye=>{const{componentCls:Qe,iconCls:it,fontSize:vt,lineHeight:ot,calc:We}=ye,Ge=`${Qe}-list-item`,st=`${Ge}-actions`,en=`${Ge}-action`;return{[`${Qe}-wrapper`]:{[`${Qe}-list`]:Object.assign(Object.assign({},(0,yt.dF)()),{lineHeight:ye.lineHeight,[Ge]:{position:"relative",height:We(ye.lineHeight).mul(vt).equal(),marginTop:ye.marginXS,fontSize:vt,display:"flex",alignItems:"center",transition:`background-color ${ye.motionDurationSlow}`,borderRadius:ye.borderRadiusSM,"&:hover":{backgroundColor:ye.controlItemBgHover},[`${Ge}-name`]:Object.assign(Object.assign({},yt.vS),{padding:`0 ${(0,Kt.unit)(ye.paddingXS)}`,lineHeight:ot,flex:"auto",transition:`all ${ye.motionDurationSlow}`}),[st]:{whiteSpace:"nowrap",[en]:{opacity:0},[it]:{color:ye.actionsColor,transition:`all ${ye.motionDurationSlow}`},[` ${en}:focus-visible, &.picture ${en} `]:{opacity:1}},[`${Qe}-icon ${it}`]:{color:ye.colorTextDescription,fontSize:vt},[`${Ge}-progress`]:{position:"absolute",bottom:ye.calc(ye.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:We(vt).add(ye.paddingXS).equal(),fontSize:vt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ge}:hover ${en}`]:{opacity:1},[`${Ge}-error`]:{color:ye.colorError,[`${Ge}-name, ${Qe}-icon ${it}`]:{color:ye.colorError},[st]:{[`${it}, ${it}:hover`]:{color:ye.colorError},[en]:{opacity:1}}},[`${Qe}-list-item-container`]:{transition:`opacity ${ye.motionDurationSlow}, height ${ye.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},lt=ie(99495),te=ye=>{const{componentCls:Qe}=ye,it=new Kt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:ye.calc(ye.marginXS).div(-2).equal()}}),vt=new Kt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:ye.calc(ye.marginXS).div(-2).equal()}}),ot=`${Qe}-animate-inline`;return[{[`${Qe}-wrapper`]:{[`${ot}-appear, ${ot}-enter, ${ot}-leave`]:{animationDuration:ye.motionDurationSlow,animationTimingFunction:ye.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ot}-appear, ${ot}-enter`]:{animationName:it},[`${ot}-leave`]:{animationName:vt}}},{[`${Qe}-wrapper`]:(0,lt.J$)(ye)},it,vt]},ee=ie(68361);const oe=ye=>{const{componentCls:Qe,iconCls:it,uploadThumbnailSize:vt,uploadProgressOffset:ot,calc:We}=ye,Ge=`${Qe}-list`,st=`${Ge}-item`;return{[`${Qe}-wrapper`]:{[` ${Ge}${Ge}-picture, ${Ge}${Ge}-picture-card, ${Ge}${Ge}-picture-circle `]:{[st]:{position:"relative",height:We(vt).add(We(ye.lineWidth).mul(2)).add(We(ye.paddingXS).mul(2)).equal(),padding:ye.paddingXS,border:`${(0,Kt.unit)(ye.lineWidth)} ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadiusLG,"&:hover":{background:"transparent"},[`${st}-thumbnail`]:Object.assign(Object.assign({},yt.vS),{width:vt,height:vt,lineHeight:(0,Kt.unit)(We(vt).add(ye.paddingSM).equal()),textAlign:"center",flex:"none",[it]:{fontSize:ye.fontSizeHeading2,color:ye.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${st}-progress`]:{bottom:ot,width:`calc(100% - ${(0,Kt.unit)(We(ye.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:We(vt).add(ye.paddingXS).equal()}},[`${st}-error`]:{borderColor:ye.colorError,[`${st}-thumbnail ${it}`]:{[`svg path[fill='${ee.blue[0]}']`]:{fill:ye.colorErrorBg},[`svg path[fill='${ee.blue.primary}']`]:{fill:ye.colorError}}},[`${st}-uploading`]:{borderStyle:"dashed",[`${st}-name`]:{marginBottom:ot}}},[`${Ge}${Ge}-picture-circle ${st}`]:{[`&, &::before, ${st}-thumbnail`]:{borderRadius:"50%"}}}}},ue=ye=>{const{componentCls:Qe,iconCls:it,fontSizeLG:vt,colorTextLightSolid:ot,calc:We}=ye,Ge=`${Qe}-list`,st=`${Ge}-item`,en=ye.uploadPicCardSize;return{[` ${Qe}-wrapper${Qe}-picture-card-wrapper, ${Qe}-wrapper${Qe}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,yt.dF)()),{display:"block",[`${Qe}${Qe}-select`]:{width:en,height:en,textAlign:"center",verticalAlign:"top",backgroundColor:ye.colorFillAlter,border:`${(0,Kt.unit)(ye.lineWidth)} dashed ${ye.colorBorder}`,borderRadius:ye.borderRadiusLG,cursor:"pointer",transition:`border-color ${ye.motionDurationSlow}`,[`> ${Qe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Qe}-disabled):hover`]:{borderColor:ye.colorPrimary}},[`${Ge}${Ge}-picture-card, ${Ge}${Ge}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:ye.marginXS,marginInlineEnd:ye.marginXS}},"@supports (gap: 1px)":{gap:ye.marginXS},[`${Ge}-item-container`]:{display:"inline-block",width:en,height:en,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[st]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Kt.unit)(We(ye.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Kt.unit)(We(ye.paddingXS).mul(2).equal())})`,backgroundColor:ye.colorBgMask,opacity:0,transition:`all ${ye.motionDurationSlow}`,content:'" "'}},[`${st}:hover`]:{[`&::before, ${st}-actions`]:{opacity:1}},[`${st}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ye.motionDurationSlow}`,[` ${it}-eye, ${it}-download, ${it}-delete `]:{zIndex:10,width:vt,margin:`0 ${(0,Kt.unit)(ye.marginXXS)}`,fontSize:vt,cursor:"pointer",transition:`all ${ye.motionDurationSlow}`,color:ot,"&:hover":{color:ot},svg:{verticalAlign:"baseline"}}},[`${st}-thumbnail, ${st}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${st}-name`]:{display:"none",textAlign:"center"},[`${st}-file + ${st}-name`]:{position:"absolute",bottom:ye.margin,display:"block",width:`calc(100% - ${(0,Kt.unit)(We(ye.paddingXS).mul(2).equal())})`},[`${st}-uploading`]:{[`&${st}`]:{backgroundColor:ye.colorFillAlter},[`&::before, ${it}-eye, ${it}-download, ${it}-delete`]:{display:"none"}},[`${st}-progress`]:{bottom:ye.marginXL,width:`calc(100% - ${(0,Kt.unit)(We(ye.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Qe}-wrapper${Qe}-picture-circle-wrapper`]:{[`${Qe}${Qe}-select`]:{borderRadius:"50%"}}}};var he=ye=>{const{componentCls:Qe}=ye;return{[`${Qe}-rtl`]:{direction:"rtl"}}};const be=ye=>{const{componentCls:Qe,colorTextDisabled:it}=ye;return{[`${Qe}-wrapper`]:Object.assign(Object.assign({},(0,yt.Wf)(ye)),{[Qe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Qe}-select`]:{display:"inline-block"},[`${Qe}-hidden`]:{display:"none"},[`${Qe}-disabled`]:{color:it,cursor:"not-allowed"}})}},pt=ye=>({actionsColor:ye.colorTextDescription});var Me=(0,Ze.I$)("Upload",ye=>{const{fontSizeHeading3:Qe,fontHeight:it,lineWidth:vt,controlHeightLG:ot,calc:We}=ye,Ge=(0,Ue.mergeToken)(ye,{uploadThumbnailSize:We(Qe).mul(2).equal(),uploadProgressOffset:We(We(it).div(2)).add(vt).equal(),uploadPicCardSize:We(ot).mul(2.55).equal()});return[be(Ge),Tt(Ge),oe(Ge),ue(Ge),$t(Ge),te(Ge),he(Ge),(0,we.Z)(Ge)]},pt),Ke={icon:function(Qe,it){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:it}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Qe}}]}},name:"file",theme:"twotone"},dt=Ke,Mt=ie(7657),mt=function(Qe,it){return z.createElement(Mt.Z,(0,Ce.Z)({},Qe,{ref:it,icon:dt}))},Lt=z.forwardRef(mt),Ht=Lt,Zt=ie(58617),ln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Yt=ln,an=function(Qe,it){return z.createElement(Mt.Z,(0,Ce.Z)({},Qe,{ref:it,icon:Yt}))},It=z.forwardRef(an),Qt=It,Ut={icon:function(Qe,it){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Qe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:it}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:it}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:it}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Qe}}]}},name:"picture",theme:"twotone"},Ae=Ut,ut=function(Qe,it){return z.createElement(Mt.Z,(0,Ce.Z)({},Qe,{ref:it,icon:Ae}))},At=z.forwardRef(ut),Gt=At,De=ie(77900),et=ie(2738),gt=ie(40192),Nt=ie(86641),_t=ie(22703),cn=ie(7939);function Sn(ye){return Object.assign(Object.assign({},ye),{lastModified:ye.lastModified,lastModifiedDate:ye.lastModifiedDate,name:ye.name,size:ye.size,type:ye.type,uid:ye.uid,percent:0,originFileObj:ye})}function Cn(ye,Qe){const it=(0,qe.Z)(Qe),vt=it.findIndex(ot=>{let{uid:We}=ot;return We===ye.uid});return vt===-1?it.push(ye):it[vt]=ye,it}function sn(ye,Qe){const it=ye.uid!==void 0?"uid":"name";return Qe.filter(vt=>vt[it]===ye[it])[0]}function yn(ye,Qe){const it=ye.uid!==void 0?"uid":"name",vt=Qe.filter(ot=>ot[it]!==ye[it]);return vt.length===Qe.length?null:vt}const gn=function(){const Qe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),vt=Qe[Qe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(vt)||[""])[0]},$n=ye=>ye.indexOf("image/")===0,bn=ye=>{if(ye.type&&!ye.thumbUrl)return $n(ye.type);const Qe=ye.thumbUrl||ye.url||"",it=gn(Qe);return/^data:image\//.test(Qe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(it)?!0:!(/^data:/.test(Qe)||it)},vn=200;function Jt(ye){return new Promise(Qe=>{if(!ye.type||!$n(ye.type)){Qe("");return}const it=document.createElement("canvas");it.width=vn,it.height=vn,it.style.cssText=`position: fixed; left: 0; top: 0; width: ${vn}px; height: ${vn}px; z-index: 9999; display: none;`,document.body.appendChild(it);const vt=it.getContext("2d"),ot=new Image;if(ot.onload=()=>{const{width:We,height:Ge}=ot;let st=vn,en=vn,Xt=0,qt=0;We>Ge?(en=Ge*(vn/We),qt=-(en-st)/2):(st=We*(vn/Ge),Xt=-(st-en)/2),vt.drawImage(ot,Xt,qt,st,en);const Dn=it.toDataURL();document.body.removeChild(it),window.URL.revokeObjectURL(ot.src),Qe(Dn)},ot.crossOrigin="anonymous",ye.type.startsWith("image/svg+xml")){const We=new FileReader;We.onload=()=>{We.result&&typeof We.result=="string"&&(ot.src=We.result)},We.readAsDataURL(ye)}else if(ye.type.startsWith("image/gif")){const We=new FileReader;We.onload=()=>{We.result&&Qe(We.result)},We.readAsDataURL(ye)}else ot.src=window.URL.createObjectURL(ye)})}var On=ie(26227),mn=ie(41464),kn=ie(15277),jn=ie(89787),Zn=ie(25399),Xn=z.forwardRef((ye,Qe)=>{let{prefixCls:it,className:vt,style:ot,locale:We,listType:Ge,file:st,items:en,progress:Xt,iconRender:qt,actionIconRender:Dn,itemRender:Ln,isImgUrl:Hn,showPreviewIcon:Mn,showRemoveIcon:xn,showDownloadIcon:Pn,previewIcon:Fn,removeIcon:Yn,downloadIcon:Gn,extra:_n,onPreview:wn,onDownload:er,onClose:Wn}=ye;var dr,pr;const{status:sr}=st,[ur,yr]=z.useState(sr);z.useEffect(()=>{sr!=="removed"&&yr(sr)},[sr]);const[lr,fr]=z.useState(!1);z.useEffect(()=>{const rn=setTimeout(()=>{fr(!0)},300);return()=>{clearTimeout(rn)}},[]);const Qn=qt(st);let mr=z.createElement("div",{className:`${it}-icon`},Qn);if(Ge==="picture"||Ge==="picture-card"||Ge==="picture-circle")if(ur==="uploading"||!st.thumbUrl&&!st.url){const rn=xe()(`${it}-list-item-thumbnail`,{[`${it}-list-item-file`]:ur!=="uploading"});mr=z.createElement("div",{className:rn},Qn)}else{const rn=Hn!=null&&Hn(st)?z.createElement("img",{src:st.thumbUrl||st.url,alt:st.name,className:`${it}-list-item-image`,crossOrigin:st.crossOrigin}):Qn,En=xe()(`${it}-list-item-thumbnail`,{[`${it}-list-item-file`]:Hn&&!Hn(st)});mr=z.createElement("a",{className:En,onClick:Tn=>wn(st,Tn),href:st.url||st.thumbUrl,target:"_blank",rel:"noopener noreferrer"},rn)}const br=xe()(`${it}-list-item`,`${it}-list-item-${ur}`),zr=typeof st.linkProps=="string"?JSON.parse(st.linkProps):st.linkProps,Er=(typeof xn=="function"?xn(st):xn)?Dn((typeof Yn=="function"?Yn(st):Yn)||z.createElement(On.Z,null),()=>Wn(st),it,We.removeFile,!0):null,Br=(typeof Pn=="function"?Pn(st):Pn)&&ur==="done"?Dn((typeof Gn=="function"?Gn(st):Gn)||z.createElement(mn.Z,null),()=>er(st),it,We.downloadFile):null,Ir=Ge!=="picture-card"&&Ge!=="picture-circle"&&z.createElement("span",{key:"download-delete",className:xe()(`${it}-list-item-actions`,{picture:Ge==="picture"})},Br,Er),Mr=typeof _n=="function"?_n(st):_n,ir=Mr&&z.createElement("span",{className:`${it}-list-item-extra`},Mr),rr=xe()(`${it}-list-item-name`),Jn=st.url?z.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:rr,title:st.name},zr,{href:st.url,onClick:rn=>wn(st,rn)}),st.name,ir):z.createElement("span",{key:"view",className:rr,onClick:rn=>wn(st,rn),title:st.name},st.name,ir),un=(typeof Mn=="function"?Mn(st):Mn)&&(st.url||st.thumbUrl)?z.createElement("a",{href:st.url||st.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:rn=>wn(st,rn),title:We.previewFile},typeof Fn=="function"?Fn(st):Fn||z.createElement(kn.Z,null)):null,pn=(Ge==="picture-card"||Ge==="picture-circle")&&ur!=="uploading"&&z.createElement("span",{className:`${it}-list-item-actions`},un,ur==="done"&&Br,Er),{getPrefixCls:hn}=z.useContext(ve.E_),nn=hn(),Bn=z.createElement("div",{className:br},mr,Jn,Ir,pn,lr&&z.createElement(De.default,{motionName:`${nn}-fade`,visible:ur==="uploading",motionDeadline:2e3},rn=>{let{className:En}=rn;const Tn="percent"in st?z.createElement(jn.Z,Object.assign({},Xt,{type:"line",percent:st.percent,"aria-label":st["aria-label"],"aria-labelledby":st["aria-labelledby"]})):null;return z.createElement("div",{className:xe()(`${it}-list-item-progress`,En)},Tn)})),Vn=st.response&&typeof st.response=="string"?st.response:((dr=st.error)===null||dr===void 0?void 0:dr.statusText)||((pr=st.error)===null||pr===void 0?void 0:pr.message)||We.uploadError,dn=ur==="error"?z.createElement(Zn.Z,{title:Vn,getPopupContainer:rn=>rn.parentNode},Bn):Bn;return z.createElement("div",{className:xe()(`${it}-list-item-container`,vt),style:ot,ref:Qe},Ln?Ln(dn,st,en,{download:er.bind(null,st),preview:wn.bind(null,st),remove:Wn.bind(null,st)}):dn)});const Nn=(ye,Qe)=>{const{listType:it="text",previewFile:vt=Jt,onPreview:ot,onDownload:We,onRemove:Ge,locale:st,iconRender:en,isImageUrl:Xt=bn,prefixCls:qt,items:Dn=[],showPreviewIcon:Ln=!0,showRemoveIcon:Hn=!0,showDownloadIcon:Mn=!1,removeIcon:xn,previewIcon:Pn,downloadIcon:Fn,extra:Yn,progress:Gn={size:[-1,2],showInfo:!1},appendAction:_n,appendActionVisible:wn=!0,itemRender:er,disabled:Wn}=ye,dr=(0,gt.Z)(),[pr,sr]=z.useState(!1),ur=["picture-card","picture-circle"].includes(it);z.useEffect(()=>{it.startsWith("picture")&&(Dn||[]).forEach(ir=>{!(ir.originFileObj instanceof File||ir.originFileObj instanceof Blob)||ir.thumbUrl!==void 0||(ir.thumbUrl="",vt==null||vt(ir.originFileObj).then(rr=>{ir.thumbUrl=rr||"",dr()}))})},[it,Dn,vt]),z.useEffect(()=>{sr(!0)},[]);const yr=(ir,rr)=>{if(ot)return rr==null||rr.preventDefault(),ot(ir)},lr=ir=>{typeof We=="function"?We(ir):ir.url&&window.open(ir.url)},fr=ir=>{Ge==null||Ge(ir)},Qn=ir=>{if(en)return en(ir,it);const rr=ir.status==="uploading";if(it.startsWith("picture")){const Jn=it==="picture"?z.createElement(Zt.Z,null):st.uploading,un=Xt!=null&&Xt(ir)?z.createElement(Gt,null):z.createElement(Ht,null);return rr?Jn:un}return rr?z.createElement(Zt.Z,null):z.createElement(Qt,null)},mr=(ir,rr,Jn,un,pn)=>{const hn={type:"text",size:"small",title:un,onClick:nn=>{var Bn,Vn;rr(),z.isValidElement(ir)&&((Vn=(Bn=ir.props).onClick)===null||Vn===void 0||Vn.call(Bn,nn))},className:`${Jn}-list-item-action`};return pn&&(hn.disabled=Wn),z.isValidElement(ir)?z.createElement(cn.ZP,Object.assign({},hn,{icon:(0,_t.Tm)(ir,Object.assign(Object.assign({},ir.props),{onClick:()=>{}}))})):z.createElement(cn.ZP,Object.assign({},hn),z.createElement("span",null,ir))};z.useImperativeHandle(Qe,()=>({handlePreview:yr,handleDownload:lr}));const{getPrefixCls:br}=z.useContext(ve.E_),zr=br("upload",qt),Er=br(),Br=xe()(`${zr}-list`,`${zr}-list-${it}`),Ir=z.useMemo(()=>(0,et.Z)((0,Nt.Z)(Er),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Er]),Mr=Object.assign(Object.assign({},ur?{}:Ir),{motionDeadline:2e3,motionName:`${zr}-${ur?"animate-inline":"animate"}`,keys:(0,qe.Z)(Dn.map(ir=>({key:ir.uid,file:ir}))),motionAppear:pr});return z.createElement("div",{className:Br},z.createElement(De.CSSMotionList,Object.assign({},Mr,{component:!1}),ir=>{let{key:rr,file:Jn,className:un,style:pn}=ir;return z.createElement(Xn,{key:rr,locale:st,prefixCls:zr,className:un,style:pn,file:Jn,items:Dn,progress:Gn,listType:it,isImgUrl:Xt,showPreviewIcon:Ln,showRemoveIcon:Hn,showDownloadIcon:Mn,removeIcon:xn,previewIcon:Pn,downloadIcon:Fn,extra:Yn,iconRender:Qn,actionIconRender:mr,itemRender:er,onPreview:yr,onDownload:lr,onClose:fr})}),_n&&z.createElement(De.default,Object.assign({},Mr,{visible:wn,forceRender:!0}),ir=>{let{className:rr,style:Jn}=ir;return(0,_t.Tm)(_n,un=>({className:xe()(un.className,rr),style:Object.assign(Object.assign(Object.assign({},Jn),{pointerEvents:rr?"none":void 0}),un.style)}))}))};var qn=z.forwardRef(Nn),jt=function(ye,Qe,it,vt){function ot(We){return We instanceof it?We:new it(function(Ge){Ge(We)})}return new(it||(it=Promise))(function(We,Ge){function st(qt){try{Xt(vt.next(qt))}catch(Dn){Ge(Dn)}}function en(qt){try{Xt(vt.throw(qt))}catch(Dn){Ge(Dn)}}function Xt(qt){qt.done?We(qt.value):ot(qt.value).then(st,en)}Xt((vt=vt.apply(ye,Qe||[])).next())})};const on=`__LIST_IGNORE_${Date.now()}__`,zn=(ye,Qe)=>{const{fileList:it,defaultFileList:vt,onRemove:ot,showUploadList:We=!0,listType:Ge="text",onPreview:st,onDownload:en,onChange:Xt,onDrop:qt,previewFile:Dn,disabled:Ln,locale:Hn,iconRender:Mn,isImageUrl:xn,progress:Pn,prefixCls:Fn,className:Yn,type:Gn="select",children:_n,style:wn,itemRender:er,maxCount:Wn,data:dr={},multiple:pr=!1,hasControlInside:sr=!0,action:ur="",accept:yr="",supportServerRender:lr=!0,rootClassName:fr}=ye,Qn=z.useContext(se.Z),mr=Ln!=null?Ln:Qn,[br,zr]=(0,Ot.Z)(vt||[],{value:it,postState:xr=>xr!=null?xr:[]}),[Er,Br]=z.useState("drop"),Ir=z.useRef(null),Mr=z.useRef(null);z.useMemo(()=>{const xr=Date.now();(it||[]).forEach(($r,Vr)=>{!$r.uid&&!Object.isFrozen($r)&&($r.uid=`__AUTO__${xr}_${Vr}__`)})},[it]);const ir=(xr,$r,Vr)=>{let Sr=(0,qe.Z)($r),Nr=!1;Wn===1?Sr=Sr.slice(-1):Wn&&(Nr=Sr.length>Wn,Sr=Sr.slice(0,Wn)),(0,me.flushSync)(()=>{zr(Sr)});const Tr={file:xr,fileList:Sr};Vr&&(Tr.event=Vr),(!Nr||xr.status==="removed"||Sr.some(ui=>ui.uid===xr.uid))&&(0,me.flushSync)(()=>{Xt==null||Xt(Tr)})},rr=(xr,$r)=>jt(void 0,void 0,void 0,function*(){const{beforeUpload:Vr,transformFile:Sr}=ye;let Nr=xr;if(Vr){const Tr=yield Vr(xr,$r);if(Tr===!1)return!1;if(delete xr[on],Tr===on)return Object.defineProperty(xr,on,{value:!0,configurable:!0}),!1;typeof Tr=="object"&&Tr&&(Nr=Tr)}return Sr&&(Nr=yield Sr(Nr)),Nr}),Jn=xr=>{const $r=xr.filter(Nr=>!Nr.file[on]);if(!$r.length)return;const Vr=$r.map(Nr=>Sn(Nr.file));let Sr=(0,qe.Z)(br);Vr.forEach(Nr=>{Sr=Cn(Nr,Sr)}),Vr.forEach((Nr,Tr)=>{let ui=Nr;if($r[Tr].parsedFile)Nr.status="uploading";else{const{originFileObj:Mi}=Nr;let fi;try{fi=new File([Mi],Mi.name,{type:Mi.type})}catch(ni){fi=new Blob([Mi],{type:Mi.type}),fi.name=Mi.name,fi.lastModifiedDate=new Date,fi.lastModified=new Date().getTime()}fi.uid=Nr.uid,ui=fi}ir(ui,Sr)})},un=(xr,$r,Vr)=>{try{typeof xr=="string"&&(xr=JSON.parse(xr))}catch(Tr){}if(!sn($r,br))return;const Sr=Sn($r);Sr.status="done",Sr.percent=100,Sr.response=xr,Sr.xhr=Vr;const Nr=Cn(Sr,br);ir(Sr,Nr)},pn=(xr,$r)=>{if(!sn($r,br))return;const Vr=Sn($r);Vr.status="uploading",Vr.percent=xr.percent;const Sr=Cn(Vr,br);ir(Vr,Sr,xr)},hn=(xr,$r,Vr)=>{if(!sn(Vr,br))return;const Sr=Sn(Vr);Sr.error=xr,Sr.response=$r,Sr.status="error";const Nr=Cn(Sr,br);ir(Sr,Nr)},nn=xr=>{let $r;Promise.resolve(typeof ot=="function"?ot(xr):ot).then(Vr=>{var Sr;if(Vr===!1)return;const Nr=yn(xr,br);Nr&&($r=Object.assign(Object.assign({},xr),{status:"removed"}),br==null||br.forEach(Tr=>{const ui=$r.uid!==void 0?"uid":"name";Tr[ui]===$r[ui]&&!Object.isFrozen(Tr)&&(Tr.status="removed")}),(Sr=Ir.current)===null||Sr===void 0||Sr.abort($r),ir($r,Nr))})},Bn=xr=>{Br(xr.type),xr.type==="drop"&&(qt==null||qt(xr))};z.useImperativeHandle(Qe,()=>({onBatchStart:Jn,onSuccess:un,onProgress:pn,onError:hn,fileList:br,upload:Ir.current,nativeElement:Mr.current}));const{getPrefixCls:Vn,direction:dn,upload:rn}=z.useContext(ve.E_),En=Vn("upload",Fn),Tn=Object.assign(Object.assign({onBatchStart:Jn,onError:hn,onProgress:pn,onSuccess:un},ye),{data:dr,multiple:pr,action:ur,accept:yr,supportServerRender:lr,prefixCls:En,disabled:mr,beforeUpload:rr,onChange:void 0,hasControlInside:sr});delete Tn.className,delete Tn.style,(!_n||mr)&&delete Tn.id;const cr=`${En}-wrapper`,[kr,Pr,Rr]=Me(En,cr),[Ar]=(0,Le.Z)("Upload",ht.Z.Upload),{showRemoveIcon:Fr,showPreviewIcon:Gr,showDownloadIcon:Hr,removeIcon:_r,previewIcon:ti,downloadIcon:Ei,extra:Ni}=typeof We=="boolean"?{}:We,xi=typeof Fr=="undefined"?!mr:Fr,si=(xr,$r)=>We?z.createElement(qn,{prefixCls:En,listType:Ge,items:br,previewFile:Dn,onPreview:st,onDownload:en,onRemove:nn,showRemoveIcon:xi,showPreviewIcon:Gr,showDownloadIcon:Hr,removeIcon:_r,previewIcon:ti,downloadIcon:Ei,iconRender:Mn,extra:Ni,locale:Object.assign(Object.assign({},Ar),Hn),isImageUrl:xn,progress:Pn,appendAction:xr,appendActionVisible:$r,itemRender:er,disabled:mr}):xr,Ri=xe()(cr,Yn,fr,Pr,Rr,rn==null?void 0:rn.className,{[`${En}-rtl`]:dn==="rtl",[`${En}-picture-card-wrapper`]:Ge==="picture-card",[`${En}-picture-circle-wrapper`]:Ge==="picture-circle"}),jr=Object.assign(Object.assign({},rn==null?void 0:rn.style),wn);if(Gn==="drag"){const xr=xe()(Pr,En,`${En}-drag`,{[`${En}-drag-uploading`]:br.some($r=>$r.status==="uploading"),[`${En}-drag-hover`]:Er==="dragover",[`${En}-disabled`]:mr,[`${En}-rtl`]:dn==="rtl"});return kr(z.createElement("span",{className:Ri,ref:Mr},z.createElement("div",{className:xr,style:jr,onDrop:Bn,onDragOver:Bn,onDragLeave:Bn},z.createElement(Te,Object.assign({},Tn,{ref:Ir,className:`${En}-btn`}),z.createElement("div",{className:`${En}-drag-container`},_n))),si()))}const Ki=xe()(En,`${En}-select`,{[`${En}-disabled`]:mr,[`${En}-hidden`]:!_n}),qr=z.createElement("div",{className:Ki},z.createElement(Te,Object.assign({},Tn,{ref:Ir})));return kr(Ge==="picture-card"||Ge==="picture-circle"?z.createElement("span",{className:Ri,ref:Mr},si(qr,!!_n)):z.createElement("span",{className:Ri,ref:Mr},qr,si()))};var ze=z.forwardRef(zn),ct=function(ye,Qe){var it={};for(var vt in ye)Object.prototype.hasOwnProperty.call(ye,vt)&&Qe.indexOf(vt)<0&&(it[vt]=ye[vt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,vt=Object.getOwnPropertySymbols(ye);ot{var{style:it,height:vt,hasControlInside:ot=!1}=ye,We=ct(ye,["style","height","hasControlInside"]);return z.createElement(ze,Object.assign({ref:Qe,hasControlInside:ot},We,{type:"drag",style:Object.assign(Object.assign({},it),{height:vt})}))});const Ie=ze;Ie.Dragger=Fe,Ie.LIST_IGNORE=on;var He=Ie},99498:function(tn,Wt,ie){(function(z){z(ie(89780))})(function(z){z.defineOption("placeholder","",function(Be,Pe,fe){var Je=fe&&fe!=z.Init;if(Pe&&!Je)Be.on("blur",xe),Be.on("change",Ce),Be.on("swapDoc",Ce),z.on(Be.getInputField(),"compositionupdate",Be.state.placeholderCompose=function(){_e(Be)}),Ce(Be);else if(!Pe&&Je){Be.off("blur",xe),Be.off("change",Ce),Be.off("swapDoc",Ce),z.off(Be.getInputField(),"compositionupdate",Be.state.placeholderCompose),qe(Be);var Se=Be.getWrapperElement();Se.className=Se.className.replace(" CodeMirror-empty","")}Pe&&!Be.hasFocus()&&xe(Be)});function qe(Be){Be.state.placeholder&&(Be.state.placeholder.parentNode.removeChild(Be.state.placeholder),Be.state.placeholder=null)}function me(Be){qe(Be);var Pe=Be.state.placeholder=document.createElement("pre");Pe.style.cssText="height: 0; overflow: visible",Pe.style.direction=Be.getOption("direction"),Pe.className="CodeMirror-placeholder CodeMirror-line-like";var fe=Be.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),Pe.appendChild(fe),Be.display.lineSpace.insertBefore(Pe,Be.display.lineSpace.firstChild)}function _e(Be){setTimeout(function(){var Pe=!1,fe=Be.getInputField();fe.nodeName=="TEXTAREA"?Pe=!fe.value:Be.lineCount()==1&&(Pe=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),Pe?me(Be):qe(Be)},20)}function xe(Be){Oe(Be)&&me(Be)}function Ce(Be){var Pe=Be.getWrapperElement(),fe=Oe(Be);Pe.className=Pe.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?me(Be):qe(Be)}function Oe(Be){return Be.lineCount()===1&&Be.getLine(0)===""}})},25717:function(tn,Wt,ie){(function(z){z(ie(89780))})(function(z){var qe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},me=z.Pos;z.defineOption("autoCloseBrackets",!1,function($e,Ve,je){je&&je!=z.Init&&($e.removeKeyMap(xe),$e.state.closeBrackets=null),Ve&&(Ce(_e(Ve,"pairs")),$e.state.closeBrackets=Ve,$e.addKeyMap(xe))});function _e($e,Ve){return Ve=="pairs"&&typeof $e=="string"?$e:typeof $e=="object"&&$e[Ve]!=null?$e[Ve]:qe[Ve]}var xe={Backspace:Pe,Enter:fe};function Ce($e){for(var Ve=0;Ve<$e.length;Ve++){var je=$e.charAt(Ve),Et="'"+je+"'";xe[Et]||(xe[Et]=Oe(je))}}Ce(qe.pairs+"`");function Oe($e){return function(Ve){return Se(Ve,$e)}}function Be($e){var Ve=$e.state.closeBrackets;if(!Ve||Ve.override)return Ve;var je=$e.getModeAt($e.getCursor());return je.closeBrackets||Ve}function Pe($e){var Ve=Be($e);if(!Ve||$e.getOption("disableInput"))return z.Pass;for(var je=_e(Ve,"pairs"),Et=$e.listSelections(),Bt=0;Bt=0;Bt--){var Pt=Et[Bt].head;$e.replaceRange("",me(Pt.line,Pt.ch-1),me(Pt.line,Pt.ch+1),"+delete")}}function fe($e){var Ve=Be($e),je=Ve&&_e(Ve,"explode");if(!je||$e.getOption("disableInput"))return z.Pass;for(var Et=$e.listSelections(),Bt=0;Bt0;return{anchor:new me($e.anchor.line,$e.anchor.ch+(Ve?-1:1)),head:new me($e.head.line,$e.head.ch+(Ve?1:-1))}}function Se($e,Ve){var je=Be($e);if(!je||$e.getOption("disableInput"))return z.Pass;var Et=_e(je,"pairs"),Bt=Et.indexOf(Ve);if(Bt==-1)return z.Pass;for(var zt=_e(je,"closeBefore"),Pt=_e(je,"triples"),xt=Et.charAt(Bt+1)==Ve,St=$e.listSelections(),tt=Bt%2==0,Ft,Ct=0;Ct=0&&$e.getRange(bt,me(bt.line,bt.ch+3))==Ve+Ve+Ve?Ne="skipThree":Ne="skip";else if(xt&&bt.ch>1&&Pt.indexOf(Ve)>=0&&$e.getRange(me(bt.line,bt.ch-2),bt)==Ve+Ve){if(bt.ch>2&&/\bstring/.test($e.getTokenTypeAt(me(bt.line,bt.ch-2))))return z.Pass;Ne="addFour"}else if(xt){var at=bt.ch==0?" ":$e.getRange(me(bt.line,bt.ch-1),bt);if(!z.isWordChar(rt)&&at!=Ve&&!z.isWordChar(at))Ne="both";else return z.Pass}else if(tt&&(rt.length===0||/\s/.test(rt)||zt.indexOf(rt)>-1))Ne="both";else return z.Pass;if(!Ft)Ft=Ne;else if(Ft!=Ne)return z.Pass}var pe=Bt%2?Et.charAt(Bt-1):Ve,wt=Bt%2?Ve:Et.charAt(Bt+1);$e.operation(function(){if(Ft=="skip")$e.execCommand("goCharRight");else if(Ft=="skipThree")for(var ke=0;ke<3;ke++)$e.execCommand("goCharRight");else if(Ft=="surround"){for(var Te=$e.getSelections(),ke=0;ke'"]=function(Dt){return _e(Dt)}),Pe.addKeyMap(Se)}});var qe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],me=["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 _e(Pe){if(Pe.getOption("disableInput"))return z.Pass;for(var fe=Pe.listSelections(),Je=[],Se=Pe.getOption("autoCloseTags"),Dt=0;Dtnt.ch&&(Bt=Bt.slice(0,Bt.length-$e.end+nt.ch));var St=Bt.toLowerCase();if(!Bt||$e.type=="string"&&($e.end!=nt.ch||!/[\"\']/.test($e.string.charAt($e.string.length-1))||$e.string.length==1)||$e.type=="tag"&&Et.close||$e.string.indexOf("/")==nt.ch-$e.start-1||Pt&&Oe(Pt,St)>-1||Be(Pe,Ve.mode.xmlCurrentContext&&Ve.mode.xmlCurrentContext(je)||[],Bt,nt,!0))return z.Pass;var tt=typeof Se=="object"&&Se.emptyTags;if(tt&&Oe(tt,Bt)>-1){Je[Dt]={text:"/>",newPos:z.Pos(nt.line,nt.ch+2)};continue}var Ft=xt&&Oe(xt,St)>-1;Je[Dt]={indent:Ft,text:">"+(Ft?` `:"")+"",newPos:Ft?z.Pos(nt.line+1,0):z.Pos(nt.line,nt.ch+1)}}for(var Ct=typeof Se=="object"&&Se.dontIndentOnAutoClose,Dt=fe.length-1;Dt>=0;Dt--){var Xe=Je[Dt];Pe.replaceRange(Xe.text,fe[Dt].head,fe[Dt].anchor,"+insert");var bt=Pe.listSelections().slice(0);bt[Dt]={head:Xe.newPos,anchor:Xe.newPos},Pe.setSelections(bt),!Ct&&Xe.indent&&(Pe.indentLine(Xe.newPos.line,null,!0),Pe.indentLine(Xe.newPos.line+1,null,!0))}}function xe(Pe,fe){for(var Je=Pe.listSelections(),Se=[],Dt=fe?"/":""&&(Pt+=">"),Se[Ve]=Pt}if(Pe.replaceSelections(Se),Je=Pe.listSelections(),!$e)for(var Ve=0;Ve=0&&fe[je]==Je;je--)++Ve;Se=$e.to;for(var je=1;je=je.max))return je.ch=0,je.text=je.cm.getLine(++je.line),!0}function fe(je){if(!(je.line<=je.min))return je.text=je.cm.getLine(--je.line),je.ch=je.text.length,!0}function Je(je){for(;;){var Et=je.text.indexOf(">",je.ch);if(Et==-1){if(Pe(je))continue;return}if(!Be(je,Et+1)){je.ch=Et+1;continue}var Bt=je.text.lastIndexOf("/",Et),zt=Bt>-1&&!/\S/.test(je.text.slice(Bt+1,Et));return je.ch=Et+1,zt?"selfClose":"regular"}}function Se(je){for(;;){var Et=je.ch?je.text.lastIndexOf("<",je.ch-1):-1;if(Et==-1){if(fe(je))continue;return}if(!Be(je,Et+1)){je.ch=Et;continue}Ce.lastIndex=Et,je.ch=Et;var Bt=Ce.exec(je.text);if(Bt&&Bt.index==Et)return Bt}}function Dt(je){for(;;){Ce.lastIndex=je.ch;var Et=Ce.exec(je.text);if(!Et){if(Pe(je))continue;return}if(!Be(je,Et.index+1)){je.ch=Et.index+1;continue}return je.ch=Et.index+Et[0].length,Et}}function nt(je){for(;;){var Et=je.ch?je.text.lastIndexOf(">",je.ch-1):-1;if(Et==-1){if(fe(je))continue;return}if(!Be(je,Et+1)){je.ch=Et;continue}var Bt=je.text.lastIndexOf("/",Et),zt=Bt>-1&&!/\S/.test(je.text.slice(Bt+1,Et));return je.ch=Et+1,zt?"selfClose":"regular"}}function $e(je,Et){for(var Bt=[];;){var zt=Dt(je),Pt,xt=je.line,St=je.ch-(zt?zt[0].length:0);if(!zt||!(Pt=Je(je)))return;if(Pt!="selfClose")if(zt[1]){for(var tt=Bt.length-1;tt>=0;--tt)if(Bt[tt]==zt[2]){Bt.length=tt;break}if(tt<0&&(!Et||Et==zt[2]))return{tag:zt[2],from:qe(xt,St),to:qe(je.line,je.ch)}}else Bt.push(zt[2])}}function Ve(je,Et){for(var Bt=[];;){var zt=nt(je);if(!zt)return;if(zt=="selfClose"){Se(je);continue}var Pt=je.line,xt=je.ch,St=Se(je);if(!St)return;if(St[1])Bt.push(St[2]);else{for(var tt=Bt.length-1;tt>=0;--tt)if(Bt[tt]==St[2]){Bt.length=tt;break}if(tt<0&&(!Et||Et==St[2]))return{tag:St[2],from:qe(je.line,je.ch),to:qe(Pt,xt)}}}}z.registerHelper("fold","xml",function(je,Et){for(var Bt=new Oe(je,Et.line,0);;){var zt=Dt(Bt);if(!zt||Bt.line!=Et.line)return;var Pt=Je(Bt);if(!Pt)return;if(!zt[1]&&Pt!="selfClose"){var xt=qe(Bt.line,Bt.ch),St=$e(Bt,zt[2]);return St&&me(St.from,xt)>0?{from:xt,to:St.from}:null}}}),z.findMatchingTag=function(je,Et,Bt){var zt=new Oe(je,Et.line,Et.ch,Bt);if(!(zt.text.indexOf(">")==-1&&zt.text.indexOf("<")==-1)){var Pt=Je(zt),xt=Pt&&qe(zt.line,zt.ch),St=Pt&&Se(zt);if(!(!Pt||!St||me(zt,Et)>0)){var tt={from:qe(zt.line,zt.ch),to:xt,tag:St[2]};return Pt=="selfClose"?{open:tt,close:null,at:"open"}:St[1]?{open:Ve(zt,St[2]),close:tt,at:"close"}:(zt=new Oe(je,xt.line,xt.ch,Bt),{open:tt,close:$e(zt,St[2]),at:"open"})}}},z.findEnclosingTag=function(je,Et,Bt,zt){for(var Pt=new Oe(je,Et.line,Et.ch,Bt);;){var xt=Ve(Pt,zt);if(!xt)break;var St=new Oe(je,Et.line,Et.ch,Bt),tt=$e(St,xt.tag);if(tt)return{open:xt,close:tt}}},z.scanForClosingTag=function(je,Et,Bt,zt){var Pt=new Oe(je,Et.line,Et.ch,zt?{from:0,to:zt}:null);return $e(Pt,Bt)}})},89780:function(tn){(function(Wt,ie){tn.exports=ie()})(this,function(){"use strict";var Wt=navigator.userAgent,ie=navigator.platform,z=/gecko\/\d/i.test(Wt),qe=/MSIE \d/.test(Wt),me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Wt),_e=/Edge\/(\d+)/.exec(Wt),xe=qe||me||_e,Ce=xe&&(qe?document.documentMode||6:+(_e||me)[1]),Oe=!_e&&/WebKit\//.test(Wt),Be=Oe&&/Qt\/\d+\.\d+/.test(Wt),Pe=!_e&&/Chrome\//.test(Wt),fe=/Opera\//.test(Wt),Je=/Apple Computer/.test(navigator.vendor),Se=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Wt),Dt=/PhantomJS/.test(Wt),nt=!_e&&/AppleWebKit/.test(Wt)&&/Mobile\/\w+/.test(Wt),$e=/Android/.test(Wt),Ve=nt||$e||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Wt),je=nt||/Mac/.test(ie),Et=/\bCrOS\b/.test(Wt),Bt=/win/i.test(ie),zt=fe&&Wt.match(/Version\/(\d*\.\d*)/);zt&&(zt=Number(zt[1])),zt&&zt>=15&&(fe=!1,Oe=!0);var Pt=je&&(Be||fe&&(zt==null||zt<12.11)),xt=z||xe&&Ce>=9;function St(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var tt=function(a,y){var x=a.className,b=St(y).exec(x);if(b){var E=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function Ft(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function Ct(a,y){return Ft(a).appendChild(y)}function Xe(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var re=0;re=y)return le+(y-re);le+=ce-re,le+=x-le%x,re=ce+1}}var se=function(){this.id=null,this.f=null,this.time=0,this.handler=Te(this.onTimeout,this)};se.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},se.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x=y)return b+Math.min(le,y-E);if(E+=re-b,E+=x-E%x,b=re+1,E>=y)return b}}var kt=[""];function Tt(a){for(;kt.length<=a;)kt.push(Re(kt)+" ");return kt[a]}function Re(a){return a[a.length-1]}function $t(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function ue(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function ne(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var he=/[\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 be(a){return a.charCodeAt(0)>=768&&he.test(a)}function pt(a,y,x){for(;(x<0?y>0:yx?-1:1;;){if(y==x)return y;var E=(y+x)/2,re=b<0?Math.ceil(E):Math.floor(E);if(re==y)return a(re)?y:x;a(re)?x=re:y=re+b}}function Ke(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,re=0;rey||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",re),E=!0)}E||b(y,x,"ltr")}var dt=null;function Mt(a,y,x){var b;dt=null;for(var E=0;Ey)return E;re.to==y&&(re.from!=re.to&&x=="before"?b=E:dt=E),re.from==y&&(re.from!=re.to&&x!="before"?b=E:dt=E)}return b!=null?b:dt}var mt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(ge){return ge<=247?a.charAt(ge):1424<=ge&&ge<=1524?"R":1536<=ge&&ge<=1785?y.charAt(ge-1536):1774<=ge&&ge<=2220?"r":8192<=ge&&ge<=8203?"w":ge==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,re=/[LRr]/,le=/[Lb1n]/,ce=/[1n]/;function de(ge,Ye,ft){this.level=ge,this.from=Ye,this.to=ft}return function(ge,Ye){var ft=Ye=="ltr"?"L":"R";if(ge.length==0||Ye=="ltr"&&!b.test(ge))return!1;for(var Vt=ge.length,Rt=[],fn=0;fn-1&&(b[y]=E.slice(0,re).concat(E.slice(re+1)))}}}function an(a,y){var x=ln(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E0}function Ae(a){a.prototype.on=function(y,x){Zt(this,y,x)},a.prototype.off=function(y,x){Yt(this,y,x)}}function ut(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function At(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Gt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function De(a){ut(a),At(a)}function et(a){return a.target||a.srcElement}function gt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),je&&a.ctrlKey&&y==1&&(y=3),y}var Nt=function(){if(xe&&Ce<9)return!1;var a=Xe("div");return"draggable"in a||"dragDrop"in a}(),_t;function cn(a){if(_t==null){var y=Xe("span","\u200B");Ct(a,Xe("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(_t=y.offsetWidth<=1&&y.offsetHeight>2&&!(xe&&Ce<8))}var x=_t?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Sn;function Cn(a){if(Sn!=null)return Sn;var y=Ct(a,document.createTextNode("A\u062EA")),x=Ne(y,0,1).getBoundingClientRect(),b=Ne(y,1,2).getBoundingClientRect();return Ft(a),!x||x.left==x.right?!1:Sn=b.right-x.right<3}var sn=` b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(` `,y);E==-1&&(E=a.length);var re=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=re.indexOf("\r");le!=-1?(x.push(re.slice(0,le)),y+=le+1):(x.push(re),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},yn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},gn=function(){var a=Xe("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),$n=null;function bn(a){if($n!=null)return $n;var y=Ct(a,Xe("span","x")),x=y.getBoundingClientRect(),b=Ne(y,0,1).getBoundingClientRect();return $n=Math.abs(x.left-b.left)>1}var vn={},Jt={};function On(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),vn[a]=y}function mn(a,y){Jt[a]=y}function kn(a){if(typeof a=="string"&&Jt.hasOwnProperty(a))a=Jt[a];else if(a&&typeof a.name=="string"&&Jt.hasOwnProperty(a.name)){var y=Jt[a.name];typeof y=="string"&&(y={name:y}),a=te(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return kn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return kn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function jn(a,y){y=kn(y);var x=vn[y.name];if(!x)return jn(a,"text/plain");var b=x(a,y);if(Zn.hasOwnProperty(y.name)){var E=Zn[y.name];for(var re in E)E.hasOwnProperty(re)&&(b.hasOwnProperty(re)&&(b["_"+re]=b[re]),b[re]=E[re])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var Zn={};function An(a,y){var x=Zn.hasOwnProperty(a)?Zn[a]:Zn[a]={};Ot(y,x)}function Xn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var E=y[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function Nn(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function ar(a,y,x){return a.startState?a.startState(y,x):!0}var qn=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};qn.prototype.eol=function(){return this.pos>=this.string.length},qn.prototype.sol=function(){return this.pos==this.lineStart},qn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qn.prototype.next=function(){if(this.posy},qn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},qn.prototype.skipToEnd=function(){this.pos=this.string.length},qn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},qn.prototype.backUp=function(a){this.pos-=a},qn.prototype.column=function(){return this.lastColumnPos0?null:(re&&y!==!1&&(this.pos+=re[0].length),re)}},qn.prototype.current=function(){return this.string.slice(this.start,this.pos)},qn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},qn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},qn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function jt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],re=E.chunkSize();if(y=a.first&&yx?Ie(x,jt(a,x).text.length):Ge(y,jt(a,y.line).text.length)}function Ge(a,y){var x=a.ch;return x==null||x>y?Ie(a.line,y):x<0?Ie(a.line,0):a}function st(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},Xt.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Xt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xt.fromSaved=function(a,y,x){return y instanceof en?new Xt(a,Xn(a.mode,y.state),x,y.lookAhead):new Xt(a,Xn(a.mode,y),x)},Xt.prototype.save=function(a){var y=a!==!1?Xn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new en(y,this.maxLookAhead):y};function qt(a,y,x,b){var E=[a.state.modeGen],re={};Gn(a,y.text,a.doc.mode,x,function(ge,Ye){return E.push(ge,Ye)},re,b);for(var le=x.state,ce=function(ge){x.baseTokens=E;var Ye=a.state.overlays[ge],ft=1,Vt=0;x.state=!0,Gn(a,y.text,Ye.mode,x,function(Rt,fn){for(var In=ft;VtRt&&E.splice(ft,1,Rt,E[ft+1],Rn),ft+=2,Vt=Math.min(Rt,Rn)}if(fn)if(Ye.opaque)E.splice(In,ft-In,Rt,"overlay "+fn),ft=In+2;else for(;Ina.options.maxHighlightLength&&Xn(a.doc.mode,b.state),re=qt(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=re.styles,re.classes?y.styleClasses=re.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Ln(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new Xt(b,!0,y);var re=_n(a,y,x),le=re>b.first&&jt(b,re-1).stateAfter,ce=le?Xt.fromSaved(b,le,re):new Xt(b,ar(b.mode),re);return b.iter(re,y,function(de){Hn(a,de.text,ce);var ge=ce.line;de.stateAfter=ge==y-1||ge%5==0||ge>=E.viewFrom&&gey.start)return re}throw new Error("Mode "+a.name+" failed to advance stream.")}var Pn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Fn(a,y,x,b){var E=a.doc,re=E.mode,le;y=We(E,y);var ce=jt(E,y.line),de=Ln(a,y.line,x),ge=new qn(ce.text,a.options.tabSize,de),Ye;for(b&&(Ye=[]);(b||ge.posa.options.maxHighlightLength?(ce=!1,le&&Hn(a,y,b,Ye.pos),Ye.pos=y.length,ft=null):ft=Yn(xn(x,Ye,b.state,Vt),re),Vt){var Rt=Vt[0].name;Rt&&(ft="m-"+(ft?Rt+" "+ft:Rt))}if(!ce||ge!=ft){for(;dele;--ce){if(ce<=re.first)return re.first;var de=jt(re,ce-1),ge=de.stateAfter;if(ge&&(!x||ce+(ge instanceof en?ge.lookAhead:0)<=re.modeFrontier))return ce;var Ye=ve(de.text,null,a.options.tabSize);(E==null||b>Ye)&&(E=ce-1,b=Ye)}return E}function wn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var E=jt(a,b).stateAfter;if(E&&(!(E instanceof en)||b+E.lookAhead=y:re.to>y);(b||(b=[])).push(new sr(le,re.from,de?null:re.to))}}return b}function Qn(a,y,x){var b;if(a)for(var E=0;E=y:re.to>y);if(ce||re.from==y&&le.type=="bookmark"&&(!x||re.marker.insertLeft)){var de=re.from==null||(le.inclusiveLeft?re.from<=y:re.from0&&ce)for(var or=0;or0)){var Ye=[de,1],ft=He(ge.from,ce.from),Vt=He(ge.to,ce.to);(ft<0||!le.inclusiveLeft&&!ft)&&Ye.push({from:ge.from,to:ce.from}),(Vt>0||!le.inclusiveRight&&!Vt)&&Ye.push({from:ce.to,to:ge.to}),E.splice.apply(E,Ye),de+=Ye.length-3}}return E}function Er(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||ir(b,re.marker)<0)&&(b=re.marker)}return b}function hn(a,y,x,b,E){var re=jt(a,y),le=Wn&&re.markedSpans;if(le)for(var ce=0;ce=0&&ft<=0||Ye<=0&&ft>=0)&&(Ye<=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?He(ge.to,x)>=0:He(ge.to,x)>0)||Ye>=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?He(ge.from,b)<=0:He(ge.from,b)<0)))return!0}}}function nn(a){for(var y;y=Jn(a);)a=y.find(-1,!0).line;return a}function Bn(a){for(var y;y=un(a);)a=y.find(1,!0).line;return a}function Vn(a){for(var y,x;y=un(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function dn(a,y){var x=jt(a,y),b=nn(x);return x==b?y:ze(b)}function rn(a,y){if(y>a.lastLine())return y;var x=jt(a,y),b;if(!En(a,x))return y;for(;b=un(x);)x=b.find(1,!0).line;return ze(x)+1}function En(a,y){var x=Wn&&y.markedSpans;if(x){for(var b=void 0,E=0;Ey.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Rr=function(a,y,x){this.text=a,Br(this,y),this.height=x?x(this):1};Rr.prototype.lineNo=function(){return ze(this)},Ae(Rr);function Ar(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Er(a),Br(a,x);var E=b?b(a):1;E!=a.height&&nr(a,E)}function Fr(a){a.parent=null,Er(a)}var Gr={},Hr={};function _r(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Hr:Gr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=bt("span",null,null,Oe?"padding-right: .1px":null),b={pre:bt("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var re=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Ni,Cn(a.display.measure)&&(le=Lt(re,a.doc.direction))&&(b.addToken=si(b.addToken,le)),b.map=[];var ce=y!=a.display.externalMeasured&&ze(re);jr(re,b,Dn(a,re,ce)),re.styleClasses&&(re.styleClasses.bgClass&&(b.bgClass=wt(re.styleClasses.bgClass,b.bgClass||"")),re.styleClasses.textClass&&(b.textClass=wt(re.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(cn(a.display.measure))),E==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Oe){var de=b.content.lastChild;(/\bcm-tab\b/.test(de.className)||de.querySelector&&de.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return an(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=wt(b.pre.className,b.textClass||"")),b}function Ei(a){var y=Xe("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Ni(a,y,x,b,E,re,le){if(y){var ce=a.splitSpaces?xi(y,a.trailingSpace):y,de=a.cm.state.specialChars,ge=!1,Ye;if(!de.test(y))a.col+=y.length,Ye=document.createTextNode(ce),a.map.push(a.pos,a.pos+y.length,Ye),xe&&Ce<9&&(ge=!0),a.pos+=y.length;else{Ye=document.createDocumentFragment();for(var ft=0;;){de.lastIndex=ft;var Vt=de.exec(y),Rt=Vt?Vt.index-ft:y.length-ft;if(Rt){var fn=document.createTextNode(ce.slice(ft,ft+Rt));xe&&Ce<9?Ye.appendChild(Xe("span",[fn])):Ye.appendChild(fn),a.map.push(a.pos,a.pos+Rt,fn),a.col+=Rt,a.pos+=Rt}if(!Vt)break;ft+=Rt+1;var In=void 0;if(Vt[0]==" "){var Rn=a.cm.options.tabSize,Un=Rn-a.col%Rn;In=Ye.appendChild(Xe("span",Tt(Un),"cm-tab")),In.setAttribute("role","presentation"),In.setAttribute("cm-text"," "),a.col+=Un}else Vt[0]=="\r"||Vt[0]==` `?(In=Ye.appendChild(Xe("span",Vt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),In.setAttribute("cm-text",Vt[0]),a.col+=1):(In=a.cm.options.specialCharPlaceholder(Vt[0]),In.setAttribute("cm-text",Vt[0]),xe&&Ce<9?Ye.appendChild(Xe("span",[In])):Ye.appendChild(In),a.col+=1);a.map.push(a.pos,a.pos+1,In),a.pos++}}if(a.trailingSpace=ce.charCodeAt(y.length-1)==32,x||b||E||ge||re||le){var tr=x||"";b&&(tr+=b),E&&(tr+=E);var Kn=Xe("span",[Ye],tr,re);if(le)for(var or in le)le.hasOwnProperty(or)&&or!="style"&&or!="class"&&Kn.setAttribute(or,le[or]);return a.content.appendChild(Kn)}a.content.appendChild(Ye)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;Ege&&ft.from<=ge));Vt++);if(ft.to>=Ye)return a(x,b,E,re,le,ce,de);a(x,b.slice(0,ft.to-ge),E,re,null,ce,de),re=null,b=b.slice(ft.to-ge),ge=ft.to}}}function Ri(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function jr(a,y,x){var b=a.markedSpans,E=a.text,re=0;if(!b){for(var le=1;lede||Lr.collapsed&&hr.to==de&&hr.from==de)){if(hr.to!=null&&hr.to!=de&&Rt>hr.to&&(Rt=hr.to,In=""),Lr.className&&(fn+=" "+Lr.className),Lr.css&&(Vt=(Vt?Vt+";":"")+Lr.css),Lr.startStyle&&hr.from==de&&(Rn+=" "+Lr.startStyle),Lr.endStyle&&hr.to==Rt&&(or||(or=[])).push(Lr.endStyle,hr.to),Lr.title&&((tr||(tr={})).title=Lr.title),Lr.attributes)for(var Yr in Lr.attributes)(tr||(tr={}))[Yr]=Lr.attributes[Yr];Lr.collapsed&&(!Un||ir(Un.marker,Lr)<0)&&(Un=hr)}else hr.from>de&&Rt>hr.from&&(Rt=hr.from)}if(or)for(var mi=0;mi=ce)break;for(var ji=Math.min(ce,Rt);;){if(Ye){var Li=de+Ye.length;if(!Un){var ai=Li>ji?Ye.slice(0,ji-de):Ye;y.addToken(y,ai,ft?ft+fn:fn,Rn,de+ai.length==Rt?In:"",Vt,tr)}if(Li>=ji){Ye=Ye.slice(ji-de),de=ji;break}de=Li,Rn=""}Ye=E.slice(re,re=x[ge++]),ft=_r(x[ge++],y.cm.options)}}}function Ki(a,y,x){this.line=y,this.rest=Vn(y),this.size=this.rest?ze(Re(this.rest))-x+1:1,this.node=this.text=null,this.hidden=En(a,y)}function qr(a,y,x){for(var b=[],E,re=y;re2&&re.push((de.bottom+ge.top)/2-x.top)}}re.push(x.bottom-x.top)}}function ko(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;bx)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Va(a,y){y=nn(y);var x=ze(y),b=a.display.externalMeasured=new Ki(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,Ct(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Gi(a,uo(a,y),x,b)}function no(a,y){if(y>=a.display.viewFrom&&y=x.lineN&&yy)&&(re=de-ce,E=re-1,y>=de&&(le="right")),E!=null){if(b=a[ge+2],ce==de&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;ge&&a[ge-2]==a[ge-3]&&a[ge-1].insertLeft;)b=a[(ge-=3)+2],le="left";if(x=="right"&&E==de-ce)for(;ge=0&&(x=a[E]).left==x.right;E--);return x}function Ca(a,y,x,b){var E=xa(y.map,x,b),re=E.node,le=E.start,ce=E.end,de=E.collapse,ge;if(re.nodeType==3){for(var Ye=0;Ye<4;Ye++){for(;le&&be(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ce0&&(de=b="right");var ft;a.options.lineWrapping&&(ft=re.getClientRects()).length>1?ge=ft[b=="right"?ft.length-1:0]:ge=re.getBoundingClientRect()}if(xe&&Ce<9&&!le&&(!ge||!ge.left&&!ge.right)){var Vt=re.parentNode.getClientRects()[0];Vt?ge={left:Vt.left,right:Vt.left+Ji(a.display),top:Vt.top,bottom:Vt.bottom}:ge=ba}for(var Rt=ge.top-y.rect.top,fn=ge.bottom-y.rect.top,In=(Rt+fn)/2,Rn=y.view.measure.heights,Un=0;Un=b.text.length?(de=b.text.length,ge="before"):de<=0&&(de=0,ge="after"),!ce)return le(ge=="before"?de-1:de,ge=="before");function Ye(fn,In,Rn){var Un=ce[In],tr=Un.level==1;return le(Rn?fn-1:fn,tr!=Rn)}var ft=Mt(ce,de,ge),Vt=dt,Rt=Ye(de,ft,ge=="before");return Vt!=null&&(Rt.other=Ye(de,Vt,ge!="before")),Rt}function Wr(a,y){var x=0;y=We(a.doc,y),a.options.lineWrapping||(x=Ji(a.display)*y.ch);var b=jt(a.doc,y.line),E=cr(b)+ri(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Dr(a,y,x,b,E){var re=Ie(a,y,x);return re.xRel=E,b&&(re.outside=b),re}function yi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Dr(b.first,0,null,-1,-1);var E=ct(b,x),re=b.first+b.size-1;if(E>re)return Dr(b.first+b.size-1,jt(b,re).text.length,null,1,1);y<0&&(y=0);for(var le=jt(b,E);;){var ce=Yi(a,le,E,y,x),de=pn(le,ce.ch+(ce.xRel>0||ce.outside>0?1:0));if(!de)return ce;var ge=de.find(1);if(ge.line==E)return ge;le=jt(b,E=ge.line)}}function Ci(a,y,x,b){b-=Yo(y);var E=y.text.length,re=Me(function(le){return Gi(a,x,le-1).bottom<=b},E,0);return E=Me(function(le){return Gi(a,x,le).top>b},re,E),{begin:re,end:E}}function ii(a,y,x,b){x||(x=uo(a,y));var E=To(a,y,Gi(a,x,b),"line").top;return Ci(a,y,x,E)}function ci(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Yi(a,y,x,b,E){E-=cr(y);var re=uo(a,y),le=Yo(y),ce=0,de=y.text.length,ge=!0,Ye=Lt(y,a.doc.direction);if(Ye){var ft=(a.options.lineWrapping?oo:Ui)(a,y,x,re,Ye,b,E);ge=ft.level!=1,ce=ge?ft.from:ft.to-1,de=ge?ft.to:ft.from-1}var Vt=null,Rt=null,fn=Me(function(vr){var hr=Gi(a,re,vr);return hr.top+=le,hr.bottom+=le,ci(hr,b,E,!1)?(hr.top<=E&&hr.left<=b&&(Vt=vr,Rt=hr),!0):!1},ce,de),In,Rn,Un=!1;if(Rt){var tr=b-Rt.left=or.bottom?1:0}return fn=pt(y.text,fn,1),Dr(x,fn,Rn,Un,b-In)}function Ui(a,y,x,b,E,re,le){var ce=Me(function(ft){var Vt=E[ft],Rt=Vt.level!=1;return ci(Di(a,Ie(x,Rt?Vt.to:Vt.from,Rt?"before":"after"),"line",y,b),re,le,!0)},0,E.length-1),de=E[ce];if(ce>0){var ge=de.level!=1,Ye=Di(a,Ie(x,ge?de.from:de.to,ge?"after":"before"),"line",y,b);ci(Ye,re,le,!0)&&Ye.top>le&&(de=E[ce-1])}return de}function oo(a,y,x,b,E,re,le){var ce=Ci(a,y,b,le),de=ce.begin,ge=ce.end;/\s/.test(y.text.charAt(ge-1))&&ge--;for(var Ye=null,ft=null,Vt=0;Vt=ge||Rt.to<=de)){var fn=Rt.level!=1,In=Gi(a,b,fn?Math.min(ge,Rt.to)-1:Math.max(de,Rt.from)).right,Rn=InRn)&&(Ye=Rt,ft=Rn)}}return Ye||(Ye=E[E.length-1]),Ye.fromge&&(Ye={from:Ye.from,to:ge,level:Ye.level}),Ye}var $i;function zi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if($i==null){$i=Xe("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)$i.appendChild(document.createTextNode("x")),$i.appendChild(Xe("br"));$i.appendChild(document.createTextNode("x"))}Ct(a.measure,$i);var x=$i.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Ft(a.measure),x||1}function Ji(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Xe("span","xxxxxxxxxx"),x=Xe("pre",[y],"CodeMirror-line-like");Ct(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,re=y.gutters.firstChild,le=0;re;re=re.nextSibling,++le){var ce=a.display.gutterSpecs[le].className;x[ce]=re.offsetLeft+re.clientLeft+E,b[ce]=re.clientWidth}return{fixedPos:Ka(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ka(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=zi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Ji(a.display)-3);return function(E){if(En(a.doc,E))return 0;var re=0;if(E.widgets)for(var le=0;le0&&(ge=jt(a.doc,de.line).text).length==de.ch){var Ye=ve(ge,ge.length,a.options.tabSize)-ge.length;de=Ie(de.line,Math.max(0,Math.round((re-eo(a.display).left)/Ji(a.display))-Ye))}return de}function wo(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;by)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)Wn&&dn(a.doc,y)E.viewFrom?ho(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)ho(a);else if(y<=E.viewFrom){var re=Ea(a,x,x+b,1);re?(E.view=E.view.slice(re.index),E.viewFrom=re.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var le=Ea(a,y,y,-1);le?(E.view=E.view.slice(0,le.index),E.viewTo=le.lineN):ho(a)}else{var ce=Ea(a,y,y,-1),de=Ea(a,x,x+b,1);ce&&de?(E.view=E.view.slice(0,ce.index).concat(qr(a,ce.lineN,de.lineN)).concat(E.view.slice(de.index)),E.viewTo+=b):ho(a)}var ge=E.externalMeasured;ge&&(x=E.lineN&&y=b.viewTo)){var re=b.view[wo(a,y)];if(re.node!=null){var le=re.changes||(re.changes=[]);Le(le,x)==-1&&le.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=wo(a,y),re,le=a.display.view;if(!Wn||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ce=a.display.viewFrom,de=0;de0){if(E==le.length-1)return null;re=ce+le[E].size-y,E++}else re=ce-y;y+=re,x+=re}for(;dn(a.doc,x)!=x;){if(E==(b<0?0:le.length-1))return null;x+=b*le[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function zs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=qr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=qr(a,y,b.viewFrom).concat(b.view):b.viewFromx&&(b.view=b.view.slice(0,wo(a,x)))),b.viewTo=x}function Sl(a){for(var y=a.display.view,x=0,b=0;b=a.display.viewTo||ce.to().line0?y.blinker=setInterval(function(){a.hasFocus()||Bo(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Il(a){a.state.focused||(a.display.input.focus(),Ya(a))}function Pl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Bo(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(an(a,"focus",a,y),a.state.focused=!0,pe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Oe&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Bo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(an(a,"blur",a,y),a.state.focused=!1,tt(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Pa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b.005||Ye<-.005)&&(nr(E.line,le),Ol(E.line),E.rest))for(var ft=0;fta.display.sizerWidth){var Vt=Math.ceil(ce/Ji(a.display));Vt>a.display.maxLineLength&&(a.display.maxLineLength=Vt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Ol(a){if(a.widgets)for(var y=0;y=le&&(re=ct(y,cr(jt(y,de))-a.wrapper.clientHeight),le=de)}return{from:re,to:Math.max(le,re+1)}}function js(a,y){if(!It(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),E=null;if(y.top+b.top<0?E=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!Dt){var re=Xe("div","\u200B",null,`position: absolute; top: `+(y.top-x.viewOffset-ri(a.display))+`px; height: `+(y.bottom-y.top+Fi(a)+x.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(re),re.scrollIntoView(E),a.display.lineSpace.removeChild(re)}}}function Ws(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Ie(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Ie(y.line,y.ch+1,"before"):y);for(var re=0;re<5;re++){var le=!1,ce=Di(a,y),de=!x||x==y?ce:Di(a,x);E={left:Math.min(ce.left,de.left),top:Math.min(ce.top,de.top)-b,right:Math.max(ce.left,de.left),bottom:Math.max(ce.bottom,de.bottom)+b};var ge=Ja(a,E),Ye=a.doc.scrollTop,ft=a.doc.scrollLeft;if(ge.scrollTop!=null&&(qo(a,ge.scrollTop),Math.abs(a.doc.scrollTop-Ye)>1&&(le=!0)),ge.scrollLeft!=null&&(Eo(a,ge.scrollLeft),Math.abs(a.doc.scrollLeft-ft)>1&&(le=!0)),!le)break}return E}function Zs(a,y){var x=Ja(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Ja(a,y){var x=a.display,b=zi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,re=io(a),le={};y.bottom-y.top>re&&(y.bottom=y.top+re);var ce=a.doc.height+Vi(x),de=y.topce-b;if(y.topE+re){var Ye=Math.min(y.top,(ge?ce:y.bottom)-re);Ye!=E&&(le.scrollTop=Ye)}var ft=a.options.fixedGutter?0:x.gutters.offsetWidth,Vt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-ft,Rt=to(a)-x.gutters.offsetWidth,fn=y.right-y.left>Rt;return fn&&(y.right=y.left+Rt),y.left<10?le.scrollLeft=0:y.leftRt+Vt-3&&(le.scrollLeft=y.right+(fn?0:10)-Rt),le}function Qa(a,y){y!=null&&(Ma(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Ao(a){Ma(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Qo(a,y,x){(y!=null||x!=null)&&Ma(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Vs(a,y){Ma(a),a.curOp.scrollToPos=y}function Ma(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Wr(a,y.from),b=Wr(a,y.to);Ml(a,x,b,y.margin)}}function Ml(a,y,x,b){var E=Ja(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Qo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),Dl(a,y,!0),z&&el(a),na(a,100))}function Dl(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Eo(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Al(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+Vi(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Fi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),Zt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Zt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&Ce<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Io.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var re=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Io.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Io.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Io.prototype.zeroWidthHack=function(){var a=je&&!Se?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new se,this.disableVert=new se},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),re=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);re!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Io.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function No(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;kl(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Pa(a),kl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function kl(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Tl={native:Io,null:ta};function Ll(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&tt(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Tl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Zt(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Eo(a,y):qo(a,y)},a),a.display.scrollbars.addClass&&pe(a.display.wrapper,a.display.scrollbars.addClass)}var Gs=0;function Po(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.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:++Gs},$r(a.curOp)}function Oo(a){var y=a.curOp;y&&Sr(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Da(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function _s(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Xs(a){var y=a.cm,x=y.display;a.updatedDisplay&&Pa(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Fi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-to(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Ln(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(re){if(b.line>=a.display.viewFrom){var le=re.styles,ce=re.text.length>a.options.maxHighlightLength?Xn(y.mode,b.state):null,de=qt(a,re,b,!0);ce&&(b.state=ce),re.styles=de.styles;var ge=re.styleClasses,Ye=de.classes;Ye?re.styleClasses=Ye:ge&&(re.styleClasses=null);for(var ft=!le||le.length!=re.styles.length||ge!=Ye&&(!ge||!Ye||ge.bgClass!=Ye.bgClass||ge.textClass!=Ye.textClass),Vt=0;!ft&&Vtx)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Hi(a,function(){for(var re=0;re=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Sl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,re=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFromle&&x.viewTo-le<20&&(le=Math.min(E,x.viewTo)),Wn&&(re=dn(a.doc,re),le=rn(a.doc,le));var ce=re!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,re,le),x.viewOffset=cr(jt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var de=Sl(a);if(!ce&&de==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var ge=eu(a);return de>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),de>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(ge),Ft(x.cursorDiv),Ft(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ce&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Bl(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==to(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Vi(a.display)-io(a),x.top)}),y.visible=Oa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Oa(a.display,a.doc,x));if(!qa(a,y))break;Pa(a);var E=ea(a);Jo(a),No(a,E),nl(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Da(a,y);if(qa(a,x)){Pa(a),Bl(a,x);var b=ea(a);Jo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,re=b.lineDiv,le=re.firstChild;function ce(fn){var In=fn.nextSibling;return Oe&&je&&a.display.currentWheelTarget==fn?fn.style.display="none":fn.parentNode.removeChild(fn),In}for(var de=b.view,ge=b.viewFrom,Ye=0;Ye-1&&(Rt=!1),Mi(a,ft,ge,x)),Rt&&(Ft(ft.lineNumber),ft.lineNumber.appendChild(document.createTextNode(Fe(a.options,ge)))),le=ft.node.nextSibling}ge+=ft.size}for(;le;)le=ce(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Fi(a)+"px"}function Al(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ka(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,re=b+"px",le=0;lele.clientWidth,de=le.scrollHeight>le.clientHeight;if(b&&ce||E&&de){if(E&&je&&Oe){e:for(var ge=y.target,Ye=re.view;ge!=le;ge=ge.parentNode)for(var ft=0;ft=0&&He(a,b.to())<=0)return x}return-1};var Ur=function(a,y){this.anchor=a,this.head=y};Ur.prototype.from=function(){return vt(this.anchor,this.head)},Ur.prototype.to=function(){return it(this.anchor,this.head)},Ur.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qi(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Vt,Rt){return He(Vt.from(),Rt.from())}),x=Le(y,E);for(var re=1;re0:de>=0){var ge=vt(ce.from(),le.from()),Ye=it(ce.to(),le.to()),ft=ce.empty()?le.from()==le.head:ce.from()==ce.head;re<=x&&--x,y.splice(--re,2,new Ur(ft?Ye:ge,ft?ge:Ye))}}return new Zi(y,x)}function po(a,y){return new Zi([new Ur(a,y||a)],0)}function mo(a){return a.text?Ie(a.from.line+a.text.length-1,Re(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function zl(a,y){if(He(a,y.from)<0)return a;if(He(a,y.to)<=0)return mo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=mo(y).ch-y.to.ch),Ie(x,b)}function il(a,y){for(var x=[],b=0;b1&&a.remove(ce.line+1,fn-1),a.insert(ce.line+1,Un)}Tr(a,"change",a,y)}function go(a,y,x){function b(E,re,le){if(E.linked)for(var ce=0;ce1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Re(a.done)}function Gl(a,y,x,b){var E=a.history;E.undone.length=0;var re=+new Date,le,ce;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>re-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ce=Re(le.changes),He(y.from,y.to)==0&&He(y.from,ce.to)==0?ce.to=mo(y):le.changes.push(ll(a,y));else{var de=Re(E.done);for((!de||!de.ranges)&&La(a.sel,E.done),le={changes:[ll(a,y)],generation:E.generation},E.done.push(le);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=re,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ce||an(a,"historyAdded")}function su(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,re=b&&b.origin;x==E.lastSelOp||re&&E.lastSelOrigin==re&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==re||su(a,re,Re(E.done),y))?E.done[E.done.length-1]=y:La(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=re,E.lastSelOp=x,b&&b.clearRedo!==!1&&Vl(E.undone)}function La(a,y){var x=Re(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Ul(a,y,x,b){var E=y["spans_"+a.id],re=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((E||(E=y["spans_"+a.id]={}))[re]=le.markedSpans),++re})}function cu(a){if(!a)return null;for(var y,x=0;x-1&&(Re(ce)[ft]=ge[ft],delete ge[ft])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var re=He(y,E)<0;re!=He(x,E)<0?(E=y,y=x):re!=He(y,x)<0&&(y=x)}return new Ur(E,y)}else return new Ur(x||y,y)}function Ba(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),Si(a,new Zi([sl(a.sel.primary(),y,x,E)],0),b)}function _l(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),re=0;re=y.ch:ce.to>y.ch))){if(E&&(an(de,"beforeCursorEnter"),de.explicitlyCleared))if(re.markedSpans){--le;continue}else break;if(!de.atomic)continue;if(x){var ft=de.find(b<0?1:-1),Vt=void 0;if((b<0?Ye:ge)&&(ft=es(a,ft,-b,ft&&ft.line==y.line?re:null)),ft&&ft.line==y.line&&(Vt=He(ft,x))&&(b<0?Vt<0:Vt>0))return Fo(a,ft,y,b,E)}var Rt=de.find(b<0?-1:1);return(b<0?ge:Ye)&&(Rt=es(a,Rt,b,Rt.line==y.line?re:null)),Rt?Fo(a,Rt,y,b,E):null}}return y}function Na(a,y,x,b,E){var re=b||1,le=Fo(a,y,x,re,E)||!E&&Fo(a,y,x,re,!0)||Fo(a,y,x,-re,E)||!E&&Fo(a,y,x,-re,!0);return le||(a.cantEdit=!0,Ie(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?We(a,Ie(y.line-1)):null:x>0&&y.ch==(b||jt(a,y.line)).text.length?y.line=0;--E)rs(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&He(y.from,y.to)==0)){var x=il(a,y);Gl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,mr(a,y));var b=[];go(a,function(E,re){!re&&Le(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,mr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,re,le=a.sel,ce=y=="undo"?E.done:E.undone,de=y=="undo"?E.undone:E.done,ge=0;ge=0;--Rt){var fn=Vt(Rt);if(fn)return fn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Zi($t(a.sel.ranges,function(E){return new Ur(Ie(E.anchor.line+y,E.anchor.ch),Ie(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){ki(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;ba.lastLine())){if(y.from.linere&&(y={from:y.from,to:Ie(re,jt(a,re).text.length),text:[y.text[0]],origin:y.origin}),y.removed=on(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Aa(a,x,we),a.cantEdit&&Na(a,Ie(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,re=y.from,le=y.to,ce=!1,de=re.line;a.options.lineWrapping||(de=ze(nn(jt(b,re.line))),b.iter(de,le.line+1,function(Rt){if(Rt==E.maxLine)return ce=!0,!0})),b.sel.contains(y.from,y.to)>-1&&Qt(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(de,re.line+y.text.length,function(Rt){var fn=kr(Rt);fn>E.maxLineLength&&(E.maxLine=Rt,E.maxLineLength=fn,E.maxLineChanged=!0,ce=!1)}),ce&&(a.curOp.updateMaxLine=!0)),wn(b,re.line),na(a,400);var ge=y.text.length-(le.line-re.line)-1;y.full?ki(a):re.line==le.line&&y.text.length==1&&!jl(a.doc,y)?fo(a,re.line,"text"):ki(a,re.line,le.line+1,ge);var Ye=Ut(a,"changes"),ft=Ut(a,"change");if(ft||Ye){var Vt={from:re,to:le,text:y.text,removed:y.removed,origin:y.origin};ft&&Tr(a,"change",a,Vt),Ye&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Vt)}a.display.selForContextMenu=null}function zo(a,y,x,b,E){var re;b||(b=x),He(b,x)<0&&(re=[b,x],x=re[0],b=re[1]),typeof y=="string"&&(y=a.splitLines(y)),$o(a,{from:x,to:b,text:y,origin:E})}function os(a,y,x,b){x1||!(this.children[0]instanceof la))){var ce=[];this.collapse(ce),this.children=[new la(ce)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var le=E.lines.length%25+25,ce=le;ce10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;ba.display.maxLineLength&&(a.display.maxLine=ge,a.display.maxLineLength=Ye,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&ki(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ql(a.doc)),a&&Tr(a,"markerCleared",a,this,b,E),y&&Oo(a),this.parent&&this.parent.clear()}},vo.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E0||le==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=bt("span",[re.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(hn(a,y.line,y,x,re)||y.line!=x.line&&hn(a,x.line,y,x,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");pr()}re.addToHistory&&Gl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ce=y.line,de=a.cm,ge;if(a.iter(ce,x.line+1,function(ft){de&&re.collapsed&&!de.options.lineWrapping&&nn(ft)==de.display.maxLine&&(ge=!0),re.collapsed&&ce!=y.line&&nr(ft,0),lr(ft,new sr(re,ce==y.line?y.ch:null,ce==x.line?x.ch:null)),++ce}),re.collapsed&&a.iter(y.line,x.line+1,function(ft){En(a,ft)&&nr(ft,0)}),re.clearOnEnter&&Zt(re,"beforeCursorEnter",function(){return re.clear()}),re.readOnly&&(dr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),re.collapsed&&(re.id=++us,re.atomic=!0),de){if(ge&&(de.curOp.updateMaxLine=!0),re.collapsed)ki(de,y.line,x.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var Ye=y.line;Ye<=x.line;Ye++)fo(de,Ye,"text");re.atomic&&Ql(de.doc),Tr(de,"markerAdded",de,re)}return re}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;de--)$o(this,b[de]);ce?Yl(this,ce):this.cm&&Ao(this.cm)}),undo:pi(function(){Ra(this,"undo")}),redo:pi(function(){Ra(this,"redo")}),undoSelection:pi(function(){Ra(this,"undo",!0)}),redoSelection:pi(function(){Ra(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,x){a=We(this,a),y=We(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(re){var le=re.markedSpans;if(le)for(var ce=0;ce=de.to||de.from==null&&E!=a.line||de.from!=null&&E==y.line&&de.from>=y.ch)&&(!x||x(de.marker))&&b.push(de.marker.parent||de.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;ba)return y=a,!0;a-=re,++x}),We(this,Ie(x,y))},indexFromPos:function(a){a=We(this,a);var y=a.ch;if(a.liney&&(y=a.from),a.to!=null&&a.to-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Ye=a.dataTransfer.getData("Text");if(Ye){var ft;if(y.state.draggingText&&!y.state.draggingText.copy&&(ft=y.listSelections()),Aa(y.doc,po(x,x)),ft)for(var Vt=0;Vt=0;ce--)zo(a.doc,"",b[ce].from,b[ce].to,"+delete");Ao(a)})}function cl(a,y,x){var b=pt(a.text,y+x,x);return b<0||b>a.text.length?null:b}function dl(a,y,x){var b=cl(a,y.ch,x);return b==null?null:new Ie(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var re=Lt(x,y.doc.direction);if(re){var le=E<0?Re(re):re[0],ce=E<0==(le.level==1),de=ce?"after":"before",ge;if(le.level>0||y.doc.direction=="rtl"){var Ye=uo(y,x);ge=E<0?x.text.length-1:0;var ft=Gi(y,Ye,ge).top;ge=Me(function(Vt){return Gi(y,Ye,Vt).top==ft},E<0==(le.level==1)?le.from:le.to-1,ge),de=="before"&&(ge=cl(x,ge,1))}else ge=E<0?le.to:le.from;return new Ie(b,ge,de)}}return new Ie(b,E<0?x.text.length:0,E<0?"before":"after")}function Ou(a,y,x,b){var E=Lt(y,a.doc.direction);if(!E)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var re=Mt(E,x.ch,x.sticky),le=E[re];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from=le.from&&Vt>=Ye.begin)){var Rt=ft?"before":"after";return new Ie(x.line,Vt,Rt)}}var fn=function(Un,tr,Kn){for(var or=function(Yr,mi){return mi?new Ie(x.line,ce(Yr,1),"before"):new Ie(x.line,Yr,"after")};Un>=0&&Un0==(vr.level!=1),Lr=hr?Kn.begin:ce(Kn.end,-1);if(vr.from<=Lr&&Lr0?Ye.end:ce(Ye.begin,-1);return Rn!=null&&!(b>0&&Rn==y.text.length)&&(In=fn(b>0?0:E.length-1,b,ge(Rn)),In)?In:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),we)},killLine:function(a){return Wo(a,function(y){if(y.empty()){var x=jt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)E=new Ie(E.line,E.ch+1),a.replaceRange(re.charAt(E.ch-1)+re.charAt(E.ch-2),Ie(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=jt(a.doc,E.line-1).text;le&&(E=new Ie(E.line,1),a.replaceRange(re.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Ie(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Ur(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Hi(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;ba&&He(y,this.pos)==0&&x==this.button};var ma,ga;function Au(a,y){var x=+new Date;return ga&&ga.compare(x,a,y)?(ma=ga=null,"triple"):ma&&ma.compare(x,a,y)?(ga=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),ga=null,"single")}function Is(a){var y=this,x=y.display;if(!(It(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,vi(x,a)){Oe||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),E=gt(a),re=b?Au(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,re,a))&&(E==1?b?Fu(y,b,re,a):et(a)==x.scroller&&ut(a):E==2?(b&&Ba(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(xt?y.display.input.onContextMenu(a):Pl(y)))}}}function Nu(a,y,x,b,E){var re="Click";return b=="double"?re="Double"+re:b=="triple"&&(re="Triple"+re),re=(y==1?"Left":y==2?"Middle":"Right")+re,pa(a,gs(re,E),E,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ce=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ce=le(a,x)!=yt}finally{a.state.suppressEdits=!1}return ce})}function Ru(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var re=Et?x.shiftKey&&x.metaKey:x.altKey;E.unit=re?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=je?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(je?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){xe?setTimeout(Te(Il,a),0):a.curOp.focus=at();var E=Ru(a,x,b),re=a.doc.sel,le;a.options.dragDrop&&Nt&&!a.isReadOnly()&&x=="single"&&(le=re.contains(y))>-1&&(He((le=re.ranges[le]).from(),y)<0||y.xRel>0)&&(He(le.to(),y)>0||y.xRel<0)?$u(a,b,y,E):zu(a,b,y,E)}function $u(a,y,x,b){var E=a.display,re=!1,le=hi(a,function(ge){Oe&&(E.scroller.draggable=!1),a.state.draggingText=!1,Yt(E.wrapper.ownerDocument,"mouseup",le),Yt(E.wrapper.ownerDocument,"mousemove",ce),Yt(E.scroller,"dragstart",de),Yt(E.scroller,"drop",le),re||(ut(ge),b.addNew||Ba(a.doc,x,null,null,b.extend),Oe&&!Je||xe&&Ce==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ce=function(ge){re=re||Math.abs(y.clientX-ge.clientX)+Math.abs(y.clientY-ge.clientY)>=10},de=function(){return re=!0};Oe&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),Zt(E.wrapper.ownerDocument,"mouseup",le),Zt(E.wrapper.ownerDocument,"mousemove",ce),Zt(E.scroller,"dragstart",de),Zt(E.scroller,"drop",le),Pl(a),setTimeout(function(){return E.input.focus()},20)}function Ps(a,y,x){if(x=="char")return new Ur(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Ur(Ie(y.line,0),We(a.doc,Ie(y.line+1,0)));var b=x(a,y);return new Ur(b.from,b.to)}function zu(a,y,x,b){var E=a.display,re=a.doc;ut(y);var le,ce,de=re.sel,ge=de.ranges;if(b.addNew&&!b.extend?(ce=re.sel.contains(x),ce>-1?le=ge[ce]:le=new Ur(x,x)):(le=re.sel.primary(),ce=re.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Ur(x,x)),x=So(a,y,!0,!0),ce=-1;else{var Ye=Ps(a,x,b.unit);b.extend?le=sl(le,Ye.anchor,Ye.head,b.extend):le=Ye}b.addNew?ce==-1?(ce=ge.length,Si(re,Qi(a,ge.concat([le]),ce),{scroll:!1,origin:"*mouse"})):ge.length>1&&ge[ce].empty()&&b.unit=="char"&&!b.extend?(Si(re,Qi(a,ge.slice(0,ce).concat(ge.slice(ce+1)),0),{scroll:!1,origin:"*mouse"}),de=re.sel):ul(re,ce,le,Ze):(ce=0,Si(re,new Zi([le],0),Ze),de=re.sel);var ft=x;function Vt(Kn){if(He(ft,Kn)!=0)if(ft=Kn,b.unit=="rectangle"){for(var or=[],vr=a.options.tabSize,hr=ve(jt(re,x.line).text,x.ch,vr),Lr=ve(jt(re,Kn.line).text,Kn.ch,vr),Yr=Math.min(hr,Lr),mi=Math.max(hr,Lr),Qr=Math.min(x.line,Kn.line),ji=Math.min(a.lastLine(),Math.max(x.line,Kn.line));Qr<=ji;Qr++){var Li=jt(re,Qr).text,ai=Kt(Li,Yr,vr);Yr==mi?or.push(new Ur(Ie(Qr,ai),Ie(Qr,ai))):Li.length>ai&&or.push(new Ur(Ie(Qr,ai),Ie(Qr,Kt(Li,mi,vr))))}or.length||or.push(new Ur(x,x)),Si(re,Qi(a,de.ranges.slice(0,ce).concat(or),ce),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Kn)}else{var Bi=le,bi=Ps(a,Kn,b.unit),di=Bi.anchor,li;He(bi.anchor,di)>0?(li=bi.head,di=vt(Bi.from(),bi.anchor)):(li=bi.anchor,di=it(Bi.to(),bi.head));var ei=de.ranges.slice(0);ei[ce]=Hu(a,new Ur(We(re,di),li)),Si(re,Qi(a,ei,ce),Ze)}}var Rt=E.wrapper.getBoundingClientRect(),fn=0;function In(Kn){var or=++fn,vr=So(a,Kn,!0,b.unit=="rectangle");if(vr)if(He(vr,ft)!=0){a.curOp.focus=at(),Vt(vr);var hr=Oa(E,re);(vr.line>=hr.to||vr.lineRt.bottom?20:0;Lr&&setTimeout(hi(a,function(){fn==or&&(E.scroller.scrollTop+=Lr,In(Kn))}),50)}}function Rn(Kn){a.state.selectingText=!1,fn=1/0,Kn&&(ut(Kn),E.input.focus()),Yt(E.wrapper.ownerDocument,"mousemove",Un),Yt(E.wrapper.ownerDocument,"mouseup",tr),re.history.lastSelOrigin=null}var Un=hi(a,function(Kn){Kn.buttons===0||!gt(Kn)?Rn(Kn):In(Kn)}),tr=hi(a,Rn);a.state.selectingText=tr,Zt(E.wrapper.ownerDocument,"mousemove",Un),Zt(E.wrapper.ownerDocument,"mouseup",tr)}function Hu(a,y){var x=y.anchor,b=y.head,E=jt(a.doc,x.line);if(He(x,b)==0&&x.sticky==b.sticky)return y;var re=Lt(E);if(!re)return y;var le=Mt(re,x.ch,x.sticky),ce=re[le];if(ce.from!=x.ch&&ce.to!=x.ch)return y;var de=le+(ce.from==x.ch==(ce.level!=1)?0:1);if(de==0||de==re.length)return y;var ge;if(b.line!=x.line)ge=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ye=Mt(re,b.ch,b.sticky),ft=Ye-le||(b.ch-x.ch)*(ce.level==1?-1:1);Ye==de-1||Ye==de?ge=ft<0:ge=ft>0}var Vt=re[de+(ge?-1:0)],Rt=ge==(Vt.level==1),fn=Rt?Vt.from:Vt.to,In=Rt?"after":"before";return x.ch==fn&&x.sticky==In?y:new Ur(new Ie(x.line,fn,In),b)}function Os(a,y,x,b){var E,re;if(y.touches)E=y.touches[0].clientX,re=y.touches[0].clientY;else try{E=y.clientX,re=y.clientY}catch(Vt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&ut(y);var le=a.display,ce=le.lineDiv.getBoundingClientRect();if(re>ce.bottom||!Ut(a,x))return Gt(y);re-=ce.top-le.viewOffset;for(var de=0;de=E){var Ye=ct(a.doc,re),ft=a.display.gutterSpecs[de];return an(a,x,a,Ye,ft.className,y),Gt(y)}}}function ml(a,y){return Os(a,y,"gutterClick",!0)}function Ms(a,y){vi(a.display,y)||ju(a,y)||It(a,y,"contextmenu")||xt||a.display.input.onContextMenu(y)}function ju(a,y){return Ut(a,"gutterContextMenu")?Os(a,y,"gutterContextMenu",!1):!1}function Ds(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Co(a)}var Zo={toString:function(){return"CodeMirror.Init"}},ks={},Ha={};function Wu(a){var y=a.optionHandlers;function x(b,E,re,le){a.defaults[b]=E,re&&(y[b]=le?function(ce,de,ge){ge!=Zo&&re(ce,de,ge)}:re)}a.defineOption=x,a.Init=Zo,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),ki(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var re=[],le=b.doc.first;b.doc.iter(function(de){for(var ge=0;;){var Ye=de.text.indexOf(E,ge);if(Ye==-1)break;ge=Ye+E.length,re.push(Ie(le,Ye))}le++});for(var ce=re.length-1;ce>=0;ce--)zo(b.doc,E,re[ce],Ie(re[ce].line,re[ce].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,re){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),re!=Zo&&b.refresh()}),x("specialCharPlaceholder",Ei,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ve?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,E){return b.getInputField().spellcheck=E},!0),x("autocorrect",!1,function(b,E){return b.getInputField().autocorrect=E},!0),x("autocapitalize",!1,function(b,E){return b.getInputField().autocapitalize=E},!0),x("rtlMoveVisually",!Bt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ds(b),ra(b)},!0),x("keyMap","default",function(b,E,re){var le=$a(E),ce=re!=Zo&&$a(re);ce&&ce.detach&&ce.detach(b,le),le.attach&&le.attach(b,ce||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Vu,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ka(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Ll(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Jo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Bo(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,Zu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Jo,!0),x("singleCursorHeightPerLine",!0,Jo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function Zu(a,y,x){var b=x&&x!=Zo;if(!y!=!b){var E=a.display.dragFunctions,re=y?Zt:Yt;re(a.display.scroller,"dragstart",E.start),re(a.display.scroller,"dragenter",E.enter),re(a.display.scroller,"dragover",E.over),re(a.display.scroller,"dragleave",E.leave),re(a.display.scroller,"drop",E.drop)}}function Vu(a){a.options.lineWrapping?(pe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(tt(a.display.wrapper,"CodeMirror-wrap"),Pr(a)),_a(a),ki(a),Co(a),setTimeout(function(){return No(a)},100)}function Jr(a,y){var x=this;if(!(this instanceof Jr))return new Jr(a,y);this.options=y=y?Ot(y):{},Ot(ks,y,!1);var b=y.value;typeof b=="string"?b=new Ti(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Jr.inputStyles[y.inputStyle](this),re=this.display=new ru(a,b,E,y);re.wrapper.CodeMirror=this,Ds(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ll(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 se,keySeq:null,specialChars:null},y.autofocus&&!Ve&&re.input.focus(),xe&&Ce<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Gu(this),Su(),Po(this),this.curOp.forceUpdate=!0,Wl(this,b),y.autofocus&&!Ve||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Bo(this);for(var le in Ha)Ha.hasOwnProperty(le)&&Ha[le](this,y[le],Zo);Nl(this),y.finishInit&&y.finishInit(this);for(var ce=0;ce20*20}Zt(y.scroller,"touchstart",function(de){if(!It(a,de)&&!re(de)&&!ml(a,de)){y.input.ensurePolled(),clearTimeout(x);var ge=+new Date;y.activeTouch={start:ge,moved:!1,prev:ge-b.end<=300?b:null},de.touches.length==1&&(y.activeTouch.left=de.touches[0].pageX,y.activeTouch.top=de.touches[0].pageY)}}),Zt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Zt(y.scroller,"touchend",function(de){var ge=y.activeTouch;if(ge&&!vi(y,de)&&ge.left!=null&&!ge.moved&&new Date-ge.start<300){var Ye=a.coordsChar(y.activeTouch,"page"),ft;!ge.prev||le(ge,ge.prev)?ft=new Ur(Ye,Ye):!ge.prev.prev||le(ge,ge.prev.prev)?ft=a.findWordAt(Ye):ft=new Ur(Ie(Ye.line,0),We(a.doc,Ie(Ye.line+1,0))),a.setSelection(ft.anchor,ft.head),a.focus(),ut(de)}E()}),Zt(y.scroller,"touchcancel",E),Zt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),an(a,"scroll",a))}),Zt(y.scroller,"mousewheel",function(de){return $l(a,de)}),Zt(y.scroller,"DOMMouseScroll",function(de){return $l(a,de)}),Zt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(de){It(a,de)||De(de)},over:function(de){It(a,de)||(Cu(a,de),De(de))},start:function(de){return xu(a,de)},drop:hi(a,bu),leave:function(de){It(a,de)||fs(a)}};var ce=y.input.getField();Zt(ce,"keyup",function(de){return ws.call(a,de)}),Zt(ce,"keydown",hi(a,Ss)),Zt(ce,"keypress",hi(a,Es)),Zt(ce,"focus",function(de){return Ya(a,de)}),Zt(ce,"blur",function(de){return Bo(a,de)})}var gl=[];Jr.defineInitHook=function(a){return gl.push(a)};function va(a,y,x,b){var E=a.doc,re;x==null&&(x="add"),x=="smart"&&(E.mode.indent?re=Ln(a,y).state:x="prev");var le=a.options.tabSize,ce=jt(E,y),de=ve(ce.text,null,le);ce.stateAfter&&(ce.stateAfter=null);var ge=ce.text.match(/^\s*/)[0],Ye;if(!b&&!/\S/.test(ce.text))Ye=0,x="not";else if(x=="smart"&&(Ye=E.mode.indent(re,ce.text.slice(ge.length),ce.text),Ye==yt||Ye>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Ye=ve(jt(E,y-1).text,null,le):Ye=0:x=="add"?Ye=de+a.options.indentUnit:x=="subtract"?Ye=de-a.options.indentUnit:typeof x=="number"&&(Ye=de+x),Ye=Math.max(0,Ye);var ft="",Vt=0;if(a.options.indentWithTabs)for(var Rt=Math.floor(Ye/le);Rt;--Rt)Vt+=le,ft+=" ";if(Vtle,de=sn(y),ge=null;if(ce&&b.ranges.length>1)if(qi&&qi.text.join(` `)==y){if(b.ranges.length%qi.text.length==0){ge=[];for(var Ye=0;Ye=0;Vt--){var Rt=b.ranges[Vt],fn=Rt.from(),In=Rt.to();Rt.empty()&&(x&&x>0?fn=Ie(fn.line,fn.ch-x):a.state.overwrite&&!ce?In=Ie(In.line,Math.min(jt(re,In.line).text.length,In.ch+Re(de).length)):ce&&qi&&qi.lineWise&&qi.text.join(` `)==de.join(` `)&&(fn=In=Ie(fn.line,0)));var Rn={from:fn,to:In,text:ge?ge[Vt%ge.length]:de,origin:E||(ce?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,Rn),Tr(a,"inputRead",a,Rn)}y&&!ce&&Ls(a,y),Ao(a),a.curOp.updateInput<2&&(a.curOp.updateInput=ft),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ts(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Hi(y,function(){return vl(y,x,0,null,"paste")}),!0}function Ls(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var re=a.getModeAt(E.head),le=!1;if(re.electricChars){for(var ce=0;ce-1){le=va(a,E.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(jt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=va(a,E.head.line,"smart"));le&&Tr(a,"electricInput",a,E.head.line)}}}function Bs(a){for(var y=[],x=[],b=0;bre&&(va(this,ce.head.line,b,!0),re=ce.head.line,le==this.doc.sel.primIndex&&Ao(this));else{var de=ce.from(),ge=ce.to(),Ye=Math.max(re,de.line);re=Math.min(this.lastLine(),ge.line-(ge.ch?0:1))+1;for(var ft=Ye;ft0&&ul(this.doc,le,new Ur(de,Vt[le].to()),we)}}}),getTokenAt:function(b,E){return Fn(this,b,E)},getLineTokens:function(b,E){return Fn(this,Ie(b),E,!0)},getTokenTypeAt:function(b){b=We(this.doc,b);var E=Dn(this,jt(this.doc,b.line)),re=0,le=(E.length-1)/2,ce=b.ch,de;if(ce==0)de=E[2];else for(;;){var ge=re+le>>1;if((ge?E[ge*2-1]:0)>=ce)le=ge;else if(E[ge*2+1]de&&(b=de,le=!0),ce=jt(this.doc,b)}else ce=b;return To(this,ce,{top:0,left:0},E||"page",re||le).top+(le?this.doc.height-cr(ce):0)},defaultTextHeight:function(){return zi(this.display)},defaultCharWidth:function(){return Ji(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,re,le,ce){var de=this.display;b=Di(this,We(this.doc,b));var ge=b.bottom,Ye=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),de.sizer.appendChild(E),le=="over")ge=b.top;else if(le=="above"||le=="near"){var ft=Math.max(de.wrapper.clientHeight,this.doc.height),Vt=Math.max(de.sizer.clientWidth,de.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>ft)&&b.top>E.offsetHeight?ge=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=ft&&(ge=b.bottom),Ye+E.offsetWidth>Vt&&(Ye=Vt-E.offsetWidth)}E.style.top=ge+"px",E.style.left=E.style.right="",ce=="right"?(Ye=de.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ce=="left"?Ye=0:ce=="middle"&&(Ye=(de.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ye+"px"),re&&Zs(this,{left:Ye,top:ge,right:Ye+E.offsetWidth,bottom:ge+E.offsetHeight})},triggerOnKeyDown:Pi(Ss),triggerOnKeyPress:Pi(Es),triggerOnKeyUp:ws,triggerOnMouseDown:Pi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Pi(function(b){Ls(this,b)}),findPosH:function(b,E,re,le){var ce=1;E<0&&(ce=-1,E=-E);for(var de=We(this.doc,b),ge=0;ge0&&Ye(re.charAt(le-1));)--le;for(;ce.5||this.options.lineWrapping)&&_a(this),an(this,"refresh",this)}),swapDoc:Pi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Wl(this,b),Co(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},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}},Ae(a),a.registerHelper=function(b,E,re){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=re},a.registerGlobalHelper=function(b,E,re,le){a.registerHelper(b,E,le),x[b]._global.push({pred:re,val:le})}}function yl(a,y,x,b,E){var re=y,le=x,ce=jt(a,y.line),de=E&&a.direction=="rtl"?-x:x;function ge(){var tr=y.line+de;return tr=a.first+a.size?!1:(y=new Ie(tr,y.ch,y.sticky),ce=jt(a,tr))}function Ye(tr){var Kn;if(b=="codepoint"){var or=ce.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(or)?Kn=null:Kn=new Ie(y.line,Math.max(0,Math.min(ce.text.length,y.ch+x*(or>=55296&&or<56320?2:1))),-x)}else E?Kn=Ou(a.cm,ce,y,x):Kn=dl(ce,y,x);if(Kn==null)if(!tr&&ge())y=fl(E,a.cm,ce,y.line,de);else return!1;else y=Kn;return!0}if(b=="char"||b=="codepoint")Ye();else if(b=="column")Ye(!0);else if(b=="word"||b=="group")for(var ft=null,Vt=b=="group",Rt=a.cm&&a.cm.getHelper(y,"wordChars"),fn=!0;!(x<0&&!Ye(!fn));fn=!1){var In=ce.text.charAt(y.ch)||` `,Rn=ue(In,Rt)?"w":Vt&&In==` `?"n":!Vt||/\s/.test(In)?null:"p";if(Vt&&!fn&&!Rn&&(Rn="s"),ft&&ft!=Rn){x<0&&(x=1,Ye(),y.sticky="after");break}if(Rn&&(ft=Rn),x>0&&!Ye(!fn))break}var Un=Na(a,y,re,le,!0);return ye(re,Un)&&(Un.hitSide=!0),Un}function Rs(a,y,x,b){var E=a.doc,re=y.left,le;if(b=="page"){var ce=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),de=Math.max(ce-.5*zi(a.display),3);le=(x>0?y.bottom:y.top)+x*de}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var ge;ge=yi(a,re,le),!!ge.outside;){if(x<0?le<=0:le>=E.height){ge.hitSide=!0;break}le+=x*5}return ge}var Kr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Kr.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;As(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function re(ce){for(var de=ce.target;de;de=de.parentNode){if(de==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(de.className))break}return!1}Zt(E,"paste",function(ce){!re(ce)||It(b,ce)||Ts(ce,b)||Ce<=11&&setTimeout(hi(b,function(){return y.updateFromDOM()}),20)}),Zt(E,"compositionstart",function(ce){y.composing={data:ce.data,done:!1}}),Zt(E,"compositionupdate",function(ce){y.composing||(y.composing={data:ce.data,done:!1})}),Zt(E,"compositionend",function(ce){y.composing&&(ce.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Zt(E,"touchstart",function(){return x.forceCompositionEnd()}),Zt(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ce){if(!(!re(ce)||It(b,ce))){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()}),ce.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var de=Bs(b);ja({lineWise:!0,text:de.text}),ce.type=="cut"&&b.operation(function(){b.setSelections(de.ranges,0,we),b.replaceSelection("",null,"cut")})}else return;if(ce.clipboardData){ce.clipboardData.clearData();var ge=qi.text.join(` `);if(ce.clipboardData.setData("Text",ge),ce.clipboardData.getData("Text")==ge){ce.preventDefault();return}}var Ye=Ns(),ft=Ye.firstChild;b.display.lineSpace.insertBefore(Ye,b.display.lineSpace.firstChild),ft.value=qi.text.join(` `);var Vt=document.activeElement;ke(ft),setTimeout(function(){b.display.lineSpace.removeChild(Ye),Vt.focus(),Vt==E&&x.showPrimarySelection()},50)}}Zt(E,"copy",le),Zt(E,"cut",le)},Kr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Kr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Kr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Kr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Kr.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line=y.display.viewFrom&&Fs(y,b)||{node:ce[0].measure.map[2],offset:0},ge=E.linea.firstLine()&&(b=Ie(b.line-1,jt(a.doc,b.line-1).length)),E.ch==jt(a.doc,E.line).text.length&&E.liney.viewTo-1)return!1;var re,le,ce;b.line==y.viewFrom||(re=wo(a,b.line))==0?(le=ze(y.view[0].line),ce=y.view[0].node):(le=ze(y.view[re].line),ce=y.view[re-1].node.nextSibling);var de=wo(a,E.line),ge,Ye;if(de==y.view.length-1?(ge=y.viewTo-1,Ye=y.lineDiv.lastChild):(ge=ze(y.view[de+1].line)-1,Ye=y.view[de+1].node.previousSibling),!ce)return!1;for(var ft=a.doc.splitLines(_u(a,ce,Ye,le,ge)),Vt=on(a.doc,Ie(le,0),Ie(ge,jt(a.doc,ge).text.length));ft.length>1&&Vt.length>1;)if(Re(ft)==Re(Vt))ft.pop(),Vt.pop(),ge--;else if(ft[0]==Vt[0])ft.shift(),Vt.shift(),le++;else break;for(var Rt=0,fn=0,In=ft[0],Rn=Vt[0],Un=Math.min(In.length,Rn.length);Rtb.ch&&tr.charCodeAt(tr.length-fn-1)==Kn.charCodeAt(Kn.length-fn-1);)Rt--,fn++;ft[ft.length-1]=tr.slice(0,tr.length-fn).replace(/^\u200b+/,""),ft[0]=ft[0].slice(Rt).replace(/\u200b+$/,"");var vr=Ie(le,Rt),hr=Ie(ge,Vt.length?Re(Vt).length-fn:0);if(ft.length>1||ft[0]||He(vr,hr))return zo(a.doc,ft,vr,hr,"+input"),!0},Kr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Kr.prototype.reset=function(){this.forceCompositionEnd()},Kr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Kr.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Kr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Hi(this.cm,function(){return ki(a.cm)})},Kr.prototype.setUneditable=function(a){a.contentEditable="false"},Kr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||hi(this.cm,vl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Kr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Kr.prototype.onContextMenu=function(){},Kr.prototype.resetPosition=function(){},Kr.prototype.needsContentAttribute=!0;function Fs(a,y){var x=no(a,y.line);if(!x||x.hidden)return null;var b=jt(a.doc,y.line),E=ko(x,b,y.line),re=Lt(b,a.doc.direction),le="left";if(re){var ce=Mt(re,y.ch);le=ce%2?"right":"left"}var de=xa(E.map,y.ch,le);return de.offset=de.collapse=="right"?de.end:de.start,de}function Ku(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Vo(a,y){return y&&(a.bad=!0),a}function _u(a,y,x,b,E){var re="",le=!1,ce=a.doc.lineSeparator(),de=!1;function ge(Rt){return function(fn){return fn.id==Rt}}function Ye(){le&&(re+=ce,de&&(re+=ce),le=de=!1)}function ft(Rt){Rt&&(Ye(),re+=Rt)}function Vt(Rt){if(Rt.nodeType==1){var fn=Rt.getAttribute("cm-text");if(fn){ft(fn);return}var In=Rt.getAttribute("cm-marker"),Rn;if(In){var Un=a.findMarks(Ie(b,0),Ie(E+1,0),ge(+In));Un.length&&(Rn=Un[0].find(0))&&ft(on(a.doc,Rn.from,Rn.to).join(ce));return}if(Rt.getAttribute("contenteditable")=="false")return;var tr=/^(pre|div|p|li|table|br)$/i.test(Rt.nodeName);if(!/^br$/i.test(Rt.nodeName)&&Rt.textContent.length==0)return;tr&&Ye();for(var Kn=0;Kn=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Zt(E,"paste",function(le){It(b,le)||Ts(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function re(le){if(!It(b,le)){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ce=Bs(b);ja({lineWise:!0,text:ce.text}),le.type=="cut"?b.setSelections(ce.ranges,null,we):(x.prevInput="",E.value=ce.text.join(` `),ke(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Zt(E,"cut",re),Zt(E,"copy",re),Zt(a.scroller,"paste",function(le){if(!(vi(a,le)||It(b,le))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ce=new Event("paste");ce.clipboardData=le.clipboardData,E.dispatchEvent(ce)}}),Zt(a.lineSpace,"selectstart",function(le){vi(a,le)||ut(le)}),Zt(E,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Zt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},oi.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},oi.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var E=Di(a,x.sel.primary().head,"div"),re=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-re.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-re.left))}return b},oi.prototype.showSelection=function(a){var y=this.cm,x=y.display;Ct(x.cursorDiv,a.cursors),Ct(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},oi.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&ke(this.textarea),xe&&Ce>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",xe&&Ce>=9&&(this.hasSelection=null))}},oi.prototype.getField=function(){return this.textarea},oi.prototype.supportsTouch=function(){return!1},oi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ve||at()!=this.textarea))try{this.textarea.focus()}catch(a){}},oi.prototype.blur=function(){this.textarea.blur()},oi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oi.prototype.receivedFocus=function(){this.slowPoll()},oi.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},oi.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},oi.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||yn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(xe&&Ce>=9&&this.hasSelection===E||je&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var re=E.charCodeAt(0);if(re==8203&&!b&&(b="\u200B"),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ce=Math.min(b.length,E.length);le1e3||E.indexOf(` `)>-1?x.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oi.prototype.onKeyPress=function(){xe&&Ce>=9&&(this.hasSelection=null),this.fastPoll()},oi.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var re=So(x,a),le=b.scroller.scrollTop;if(!re||fe)return;var ce=x.options.resetSelectionOnContextMenu;ce&&x.doc.sel.contains(re)==-1&&hi(x,Si)(x.doc,po(re),we);var de=E.style.cssText,ge=y.wrapper.style.cssText,Ye=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-Ye.top-5)+"px; left: "+(a.clientX-Ye.left-5)+`px; z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ft;Oe&&(ft=window.scrollY),b.input.focus(),Oe&&window.scrollTo(null,ft),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Rt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Vt(){if(E.selectionStart!=null){var In=x.somethingSelected(),Rn="\u200B"+(In?E.value:"");E.value="\u21DA",E.value=Rn,y.prevInput=In?"":"\u200B",E.selectionStart=1,E.selectionEnd=Rn.length,b.selForContextMenu=x.doc.sel}}function Rt(){if(y.contextMenuPending==Rt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ge,E.style.cssText=de,xe&&Ce<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!xe||xe&&Ce<9)&&Vt();var In=0,Rn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?hi(x,ts)(x):In++<10?b.detectingSelectAll=setTimeout(Rn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Rn,200)}}if(xe&&Ce>=9&&Vt(),xt){De(a);var fn=function(){Yt(window,"mouseup",fn),setTimeout(Rt,20)};Zt(window,"mouseup",fn)}else setTimeout(Rt,50)},oi.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},oi.prototype.setUneditable=function(){},oi.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?Ot(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=at();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ce.getValue()}var E;if(a.form&&(Zt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var re=a.form;E=re.submit;try{var le=re.submit=function(){b(),re.submit=E,re.submit(),re.submit=le}}catch(de){}}y.finishInit=function(de){de.save=b,de.getTextArea=function(){return a},de.toTextArea=function(){de.toTextArea=isNaN,b(),a.parentNode.removeChild(de.getWrapperElement()),a.style.display="",a.form&&(Yt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ce=Jr(function(de){return a.parentNode.insertBefore(de,a.nextSibling)},y);return ce}function Ju(a){a.off=Yt,a.on=Zt,a.wheelEventPixels=iu,a.Doc=Ti,a.splitLines=sn,a.countColumn=ve,a.findColumn=Kt,a.isWordChar=oe,a.Pass=yt,a.signal=an,a.Line=Rr,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=Ie,a.cmpPos=He,a.modes=vn,a.mimeModes=Jt,a.resolveMode=kn,a.getMode=jn,a.modeExtensions=Zn,a.extendMode=An,a.copyState=Xn,a.startState=ar,a.innerMode=Nn,a.commands=ha,a.keyMap=ao,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=jo,a.normalizeKeyMap=Pu,a.StringStream=qn,a.SharedTextMarker=ca,a.TextMarker=vo,a.LineWidget=ua,a.e_preventDefault=ut,a.e_stopPropagation=At,a.e_stop=De,a.addClass=pe,a.contains=rt,a.rmClass=tt,a.keyNames=yo}Wu(Jr),Uu(Jr);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var Za in Ti.prototype)Ti.prototype.hasOwnProperty(Za)&&Le(Qu,Za)<0&&(Jr.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ti.prototype[Za]));return Ae(Ti),Jr.inputStyles={textarea:oi,contenteditable:Kr},Jr.defineMode=function(a){!Jr.defaults.mode&&a!="null"&&(Jr.defaults.mode=a),On.apply(this,arguments)},Jr.defineMIME=mn,Jr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Jr.defineMIME("text/plain","null"),Jr.defineExtension=function(a,y){Jr.prototype[a]=y},Jr.defineDocExtension=function(a,y){Ti.prototype[a]=y},Jr.fromTextArea=Yu,Ju(Jr),Jr.version="5.58.2",Jr})},25419:function(tn,Wt,ie){(function(z){z(ie(89780),ie(15525),ie(98101))})(function(z){"use strict";z.defineMode("markdown",function(qe,me){var _e=z.getMode(qe,"text/html"),xe=_e.name=="null";function Ce(ve){if(z.findModeByName){var se=z.findModeByName(ve);se&&(ve=se.mime||se.mimes[0])}var Le=z.getMode(qe,ve);return Le.name=="null"?null:Le}me.highlightFormatting===void 0&&(me.highlightFormatting=!1),me.maxBlockquoteDepth===void 0&&(me.maxBlockquoteDepth=0),me.taskLists===void 0&&(me.taskLists=!1),me.strikethrough===void 0&&(me.strikethrough=!1),me.emoji===void 0&&(me.emoji=!1),me.fencedCodeBlockHighlighting===void 0&&(me.fencedCodeBlockHighlighting=!0),me.fencedCodeBlockDefaultMode===void 0&&(me.fencedCodeBlockDefaultMode="text/plain"),me.xml===void 0&&(me.xml=!0),me.tokenTypeOverrides===void 0&&(me.tokenTypeOverrides={});var Oe={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 Be in Oe)Oe.hasOwnProperty(Be)&&me.tokenTypeOverrides[Be]&&(Oe[Be]=me.tokenTypeOverrides[Be]);var Pe=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Je=/^\[(x| )\](?=\s)/i,Se=me.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Dt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,nt=/^[^#!\[\]*_\\<>` "'(~:]+/,$e=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ve=/^\s*\[[^\]]+?\]:.*$/,je=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Et=" ";function Bt(ve,se,Le){return se.f=se.inline=Le,Le(ve,se)}function zt(ve,se,Le){return se.f=se.block=Le,Le(ve,se)}function Pt(ve){return!ve||!/\S/.test(ve.string)}function xt(ve){if(ve.linkTitle=!1,ve.linkHref=!1,ve.linkText=!1,ve.em=!1,ve.strong=!1,ve.strikethrough=!1,ve.quote=0,ve.indentedCode=!1,ve.f==tt){var se=xe;if(!se){var Le=z.innerMode(_e,ve.htmlState);se=Le.mode.name=="xml"&&Le.state.tagStart===null&&!Le.state.context&&Le.state.tokenize.isInText}se&&(ve.f=bt,ve.block=St,ve.htmlState=null)}return ve.trailingSpace=0,ve.trailingSpaceNewLine=!1,ve.prevLine=ve.thisLine,ve.thisLine={stream:null},null}function St(ve,se){var Le=ve.column()===se.indentation,ht=Pt(se.prevLine.stream),yt=se.indentedCode,we=se.prevLine.hr,Ze=se.list!==!1,Ue=(se.listStack[se.listStack.length-1]||0)+3;se.indentedCode=!1;var Kt=se.indentation;if(se.indentationDiff===null&&(se.indentationDiff=se.indentation,Ze)){for(se.list=null;Kt=4&&(yt||se.prevLine.fencedCodeEnd||se.prevLine.header||ht))return ve.skipToEnd(),se.indentedCode=!0,Oe.code;if(ve.eatSpace())return null;if(Le&&se.indentation<=Ue&&(Re=ve.match(Se))&&Re[1].length<=6)return se.quote=0,se.header=Re[1].length,se.thisLine.header=!0,me.highlightFormatting&&(se.formatting="header"),se.f=se.inline,Ct(se);if(se.indentation<=Ue&&ve.eat(">"))return se.quote=Le?1:se.quote+1,me.highlightFormatting&&(se.formatting="quote"),ve.eatSpace(),Ct(se);if(!Tt&&!se.setext&&Le&&se.indentation<=Ue&&(Re=ve.match(fe))){var $t=Re[1]?"ol":"ul";return se.indentation=Kt+ve.current().length,se.list=!0,se.quote=0,se.listStack.push(se.indentation),se.em=!1,se.strong=!1,se.code=!1,se.strikethrough=!1,me.taskLists&&ve.match(Je,!1)&&(se.taskList=!0),se.f=se.inline,me.highlightFormatting&&(se.formatting=["list","list-"+$t]),Ct(se)}else{if(Le&&se.indentation<=Ue&&(Re=ve.match($e,!0)))return se.quote=0,se.fencedEndRE=new RegExp(Re[1]+"+ *$"),se.localMode=me.fencedCodeBlockHighlighting&&Ce(Re[2]||me.fencedCodeBlockDefaultMode),se.localMode&&(se.localState=z.startState(se.localMode)),se.f=se.block=Ft,me.highlightFormatting&&(se.formatting="code-block"),se.code=-1,Ct(se);if(se.setext||(!kt||!Ze)&&!se.quote&&se.list===!1&&!se.code&&!Tt&&!Ve.test(ve.string)&&(Re=ve.lookAhead(1))&&(Re=Re.match(Dt)))return se.setext?(se.header=se.setext,se.setext=0,ve.skipToEnd(),me.highlightFormatting&&(se.formatting="header")):(se.header=Re[0].charAt(0)=="="?1:2,se.setext=se.header),se.thisLine.header=!0,se.f=se.inline,Ct(se);if(Tt)return ve.skipToEnd(),se.hr=!0,se.thisLine.hr=!0,Oe.hr;if(ve.peek()==="[")return Bt(ve,se,wt)}return Bt(ve,se,se.inline)}function tt(ve,se){var Le=_e.token(ve,se.htmlState);if(!xe){var ht=z.innerMode(_e,se.htmlState);(ht.mode.name=="xml"&&ht.state.tagStart===null&&!ht.state.context&&ht.state.tokenize.isInText||se.md_inside&&ve.current().indexOf(">")>-1)&&(se.f=bt,se.block=St,se.htmlState=null)}return Le}function Ft(ve,se){var Le=se.listStack[se.listStack.length-1]||0,ht=se.indentation=ve.quote?se.push(Oe.formatting+"-"+ve.formatting[Le]+"-"+ve.quote):se.push("error"))}if(ve.taskOpen)return se.push("meta"),se.length?se.join(" "):null;if(ve.taskClosed)return se.push("property"),se.length?se.join(" "):null;if(ve.linkHref?se.push(Oe.linkHref,"url"):(ve.strong&&se.push(Oe.strong),ve.em&&se.push(Oe.em),ve.strikethrough&&se.push(Oe.strikethrough),ve.emoji&&se.push(Oe.emoji),ve.linkText&&se.push(Oe.linkText),ve.code&&se.push(Oe.code),ve.image&&se.push(Oe.image),ve.imageAltText&&se.push(Oe.imageAltText,"link"),ve.imageMarker&&se.push(Oe.imageMarker)),ve.header&&se.push(Oe.header,Oe.header+"-"+ve.header),ve.quote&&(se.push(Oe.quote),!me.maxBlockquoteDepth||me.maxBlockquoteDepth>=ve.quote?se.push(Oe.quote+"-"+ve.quote):se.push(Oe.quote+"-"+me.maxBlockquoteDepth)),ve.list!==!1){var ht=(ve.listStack.length-1)%3;ht?ht===1?se.push(Oe.list2):se.push(Oe.list3):se.push(Oe.list1)}return ve.trailingSpaceNewLine?se.push("trailing-space-new-line"):ve.trailingSpace&&se.push("trailing-space-"+(ve.trailingSpace%2?"a":"b")),se.length?se.join(" "):null}function Xe(ve,se){if(ve.match(nt,!0))return Ct(se)}function bt(ve,se){var Le=se.text(ve,se);if(typeof Le!="undefined")return Le;if(se.list)return se.list=null,Ct(se);if(se.taskList){var ht=ve.match(Je,!0)[1]===" ";return ht?se.taskOpen=!0:se.taskClosed=!0,me.highlightFormatting&&(se.formatting="task"),se.taskList=!1,Ct(se)}if(se.taskOpen=!1,se.taskClosed=!1,se.header&&ve.match(/^#+$/,!0))return me.highlightFormatting&&(se.formatting="header"),Ct(se);var yt=ve.next();if(se.linkTitle){se.linkTitle=!1;var we=yt;yt==="("&&(we=")"),we=(we+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ze="^\\s*(?:[^"+we+"\\\\]+|\\\\\\\\|\\\\.)"+we;if(ve.match(new RegExp(Ze),!0))return Oe.linkHref}if(yt==="`"){var Ue=se.formatting;me.highlightFormatting&&(se.formatting="code"),ve.eatWhile("`");var Kt=ve.current().length;if(se.code==0&&(!se.quote||Kt==1))return se.code=Kt,Ct(se);if(Kt==se.code){var kt=Ct(se);return se.code=0,kt}else return se.formatting=Ue,Ct(se)}else if(se.code)return Ct(se);if(yt==="\\"&&(ve.next(),me.highlightFormatting)){var Tt=Ct(se),Re=Oe.formatting+"-escape";return Tt?Tt+" "+Re:Re}if(yt==="!"&&ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return se.imageMarker=!0,se.image=!0,me.highlightFormatting&&(se.formatting="image"),Ct(se);if(yt==="["&&se.imageMarker&&ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return se.imageMarker=!1,se.imageAltText=!0,me.highlightFormatting&&(se.formatting="image"),Ct(se);if(yt==="]"&&se.imageAltText){me.highlightFormatting&&(se.formatting="image");var Tt=Ct(se);return se.imageAltText=!1,se.image=!1,se.inline=se.f=rt,Tt}if(yt==="["&&!se.image)return se.linkText&&ve.match(/^.*?\]/)||(se.linkText=!0,me.highlightFormatting&&(se.formatting="link")),Ct(se);if(yt==="]"&&se.linkText){me.highlightFormatting&&(se.formatting="link");var Tt=Ct(se);return se.linkText=!1,se.inline=se.f=ve.match(/\(.*?\)| ?\[.*?\]/,!1)?rt:bt,Tt}if(yt==="<"&&ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){se.f=se.inline=Ne,me.highlightFormatting&&(se.formatting="link");var Tt=Ct(se);return Tt?Tt+=" ":Tt="",Tt+Oe.linkInline}if(yt==="<"&&ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){se.f=se.inline=Ne,me.highlightFormatting&&(se.formatting="link");var Tt=Ct(se);return Tt?Tt+=" ":Tt="",Tt+Oe.linkEmail}if(me.xml&&yt==="<"&&ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var $t=ve.string.indexOf(">",ve.pos);if($t!=-1){var lt=ve.string.substring(ve.start,$t);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(lt)&&(se.md_inside=!0)}return ve.backUp(1),se.htmlState=z.startState(_e),zt(ve,se,tt)}if(me.xml&&yt==="<"&&ve.match(/^\/\w*?>/))return se.md_inside=!1,"tag";if(yt==="*"||yt==="_"){for(var ae=1,te=ve.pos==1?" ":ve.string.charAt(ve.pos-2);ae<3&&ve.eat(yt);)ae++;var ee=ve.peek()||" ",oe=!/\s/.test(ee)&&(!je.test(ee)||/\s/.test(te)||je.test(te)),ue=!/\s/.test(te)&&(!je.test(te)||/\s/.test(ee)||je.test(ee)),ne=null,he=null;if(ae%2&&(!se.em&&oe&&(yt==="*"||!ue||je.test(te))?ne=!0:se.em==yt&&ue&&(yt==="*"||!oe||je.test(ee))&&(ne=!1)),ae>1&&(!se.strong&&oe&&(yt==="*"||!ue||je.test(te))?he=!0:se.strong==yt&&ue&&(yt==="*"||!oe||je.test(ee))&&(he=!1)),he!=null||ne!=null){me.highlightFormatting&&(se.formatting=ne==null?"strong":he==null?"em":"strong em"),ne===!0&&(se.em=yt),he===!0&&(se.strong=yt);var kt=Ct(se);return ne===!1&&(se.em=!1),he===!1&&(se.strong=!1),kt}}else if(yt===" "&&(ve.eat("*")||ve.eat("_"))){if(ve.peek()===" ")return Ct(se);ve.backUp(1)}if(me.strikethrough){if(yt==="~"&&ve.eatWhile(yt)){if(se.strikethrough){me.highlightFormatting&&(se.formatting="strikethrough");var kt=Ct(se);return se.strikethrough=!1,kt}else if(ve.match(/^[^\s]/,!1))return se.strikethrough=!0,me.highlightFormatting&&(se.formatting="strikethrough"),Ct(se)}else if(yt===" "&&ve.match(/^~~/,!0)){if(ve.peek()===" ")return Ct(se);ve.backUp(2)}}if(me.emoji&&yt===":"&&ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){se.emoji=!0,me.highlightFormatting&&(se.formatting="emoji");var be=Ct(se);return se.emoji=!1,be}return yt===" "&&(ve.match(/^ +$/,!1)?se.trailingSpace++:se.trailingSpace&&(se.trailingSpaceNewLine=!0)),Ct(se)}function Ne(ve,se){var Le=ve.next();if(Le===">"){se.f=se.inline=bt,me.highlightFormatting&&(se.formatting="link");var ht=Ct(se);return ht?ht+=" ":ht="",ht+Oe.linkInline}return ve.match(/^[^>]+/,!0),Oe.linkInline}function rt(ve,se){if(ve.eatSpace())return null;var Le=ve.next();return Le==="("||Le==="["?(se.f=se.inline=pe(Le==="("?")":"]"),me.highlightFormatting&&(se.formatting="link-string"),se.linkHref=!0,Ct(se)):"error"}var at={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function pe(ve){return function(se,Le){var ht=se.next();if(ht===ve){Le.f=Le.inline=bt,me.highlightFormatting&&(Le.formatting="link-string");var yt=Ct(Le);return Le.linkHref=!1,yt}return se.match(at[ve]),Le.linkHref=!0,Ct(Le)}}function wt(ve,se){return ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(se.f=ke,ve.next(),me.highlightFormatting&&(se.formatting="link"),se.linkText=!0,Ct(se)):Bt(ve,se,bt)}function ke(ve,se){if(ve.match(/^\]:/,!0)){se.f=se.inline=Te,me.highlightFormatting&&(se.formatting="link");var Le=Ct(se);return se.linkText=!1,Le}return ve.match(/^([^\]\\]|\\.)+/,!0),Oe.linkText}function Te(ve,se){return ve.eatSpace()?null:(ve.match(/^[^\s]+/,!0),ve.peek()===void 0?se.linkTitle=!0:ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),se.f=se.inline=bt,Oe.linkHref+" url")}var Ot={startState:function(){return{f:St,prevLine:{stream:null},thisLine:{stream:null},block:St,htmlState:null,indentation:0,inline:bt,text:Xe,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(ve){return{f:ve.f,prevLine:ve.prevLine,thisLine:ve.thisLine,block:ve.block,htmlState:ve.htmlState&&z.copyState(_e,ve.htmlState),indentation:ve.indentation,localMode:ve.localMode,localState:ve.localMode?z.copyState(ve.localMode,ve.localState):null,inline:ve.inline,text:ve.text,formatting:!1,linkText:ve.linkText,linkTitle:ve.linkTitle,linkHref:ve.linkHref,code:ve.code,em:ve.em,strong:ve.strong,strikethrough:ve.strikethrough,emoji:ve.emoji,header:ve.header,setext:ve.setext,hr:ve.hr,taskList:ve.taskList,list:ve.list,listStack:ve.listStack.slice(0),quote:ve.quote,indentedCode:ve.indentedCode,trailingSpace:ve.trailingSpace,trailingSpaceNewLine:ve.trailingSpaceNewLine,md_inside:ve.md_inside,fencedEndRE:ve.fencedEndRE}},token:function(ve,se){if(se.formatting=!1,ve!=se.thisLine.stream){if(se.header=0,se.hr=!1,ve.match(/^\s*$/,!0))return xt(se),null;if(se.prevLine=se.thisLine,se.thisLine={stream:ve},se.taskList=!1,se.trailingSpace=0,se.trailingSpaceNewLine=!1,!se.localState&&(se.f=se.block,se.f!=tt)){var Le=ve.match(/^\s*/,!0)[0].replace(/\t/g,Et).length;if(se.indentation=Le,se.indentationDiff=null,Le>0)return null}}return se.f(ve,se)},innerMode:function(ve){return ve.block==tt?{state:ve.htmlState,mode:_e}:ve.localState?{state:ve.localState,mode:ve.localMode}:{state:ve,mode:Ot}},indent:function(ve,se,Le){return ve.block==tt&&_e.indent?_e.indent(ve.htmlState,se,Le):ve.localState&&ve.localMode.indent?ve.localMode.indent(ve.localState,se,Le):z.Pass},blankLine:xt,getType:Ct,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ot},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(tn,Wt,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.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 qe=0;qe-1&&_e.substring(Oe+1,_e.length);if(Be)return z.findModeByExtension(Be)},z.findModeByName=function(_e){_e=_e.toLowerCase();for(var xe=0;xe0?nt.cmdState[nt.cmdState.length-1]:null}function Ce(nt){var $e=nt.cmdState.pop();$e&&$e.closeBracket()}function Oe(nt){for(var $e=nt.cmdState,Ve=$e.length-1;Ve>=0;Ve--){var je=$e[Ve];if(je.name!="DEFAULT")return je}return{styleIdentifier:function(){return null}}}function Be(nt,$e,Ve){return function(){this.name=nt,this.bracketNo=0,this.style=$e,this.styles=Ve,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Pe={};Pe.importmodule=Be("importmodule","tag",["string","builtin"]),Pe.documentclass=Be("documentclass","tag",["","atom"]),Pe.usepackage=Be("usepackage","tag",["atom"]),Pe.begin=Be("begin","tag",["atom"]),Pe.end=Be("end","tag",["atom"]),Pe.label=Be("label","tag",["atom"]),Pe.ref=Be("ref","tag",["atom"]),Pe.eqref=Be("eqref","tag",["atom"]),Pe.cite=Be("cite","tag",["atom"]),Pe.bibitem=Be("bibitem","tag",["atom"]),Pe.Bibitem=Be("Bibitem","tag",["atom"]),Pe.RBibitem=Be("RBibitem","tag",["atom"]),Pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe(nt,$e){nt.f=$e}function Je(nt,$e){var Ve;if(nt.match(/^\\[a-zA-Z@]+/)){var je=nt.current().slice(1);return Ve=Pe.hasOwnProperty(je)?Pe[je]:Pe.DEFAULT,Ve=new Ve,_e($e,Ve),fe($e,Dt),Ve.style}if(nt.match(/^\\[$&%#{}_]/)||nt.match(/^\\[,;!\/\\]/))return"tag";if(nt.match("\\["))return fe($e,function(Bt,zt){return Se(Bt,zt,"\\]")}),"keyword";if(nt.match("\\("))return fe($e,function(Bt,zt){return Se(Bt,zt,"\\)")}),"keyword";if(nt.match("$$"))return fe($e,function(Bt,zt){return Se(Bt,zt,"$$")}),"keyword";if(nt.match("$"))return fe($e,function(Bt,zt){return Se(Bt,zt,"$")}),"keyword";var Et=nt.next();if(Et=="%")return nt.skipToEnd(),"comment";if(Et=="}"||Et=="]"){if(Ve=xe($e),Ve)Ve.closeBracket(Et),fe($e,Dt);else return"error";return"bracket"}else return Et=="{"||Et=="["?(Ve=Pe.DEFAULT,Ve=new Ve,_e($e,Ve),"bracket"):/\d/.test(Et)?(nt.eatWhile(/[\w.%]/),"atom"):(nt.eatWhile(/[\w\-_]/),Ve=Oe($e),Ve.name=="begin"&&(Ve.argument=nt.current()),Ve.styleIdentifier())}function Se(nt,$e,Ve){if(nt.eatSpace())return null;if(Ve&&nt.match(Ve))return fe($e,Je),"keyword";if(nt.match(/^\\[a-zA-Z@]+/))return"tag";if(nt.match(/^[a-zA-Z]+/))return"variable-2";if(nt.match(/^\\[$&%#{}_]/)||nt.match(/^\\[,;!\/]/)||nt.match(/^[\^_&]/))return"tag";if(nt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(nt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var je=nt.next();return je=="{"||je=="}"||je=="["||je=="]"||je=="("||je==")"?"bracket":je=="%"?(nt.skipToEnd(),"comment"):"error"}function Dt(nt,$e){var Ve=nt.peek(),je;return Ve=="{"||Ve=="["?(je=xe($e),je.openBracket(Ve),nt.eat(Ve),fe($e,Je),"bracket"):/[ \t\r]/.test(Ve)?(nt.eat(Ve),null):(fe($e,Je),Ce($e),Je(nt,$e))}return{startState:function(){var nt=me.inMathMode?function($e,Ve){return Se($e,Ve)}:Je;return{cmdState:[],f:nt}},copyState:function(nt){return{cmdState:nt.cmdState.slice(),f:nt.f}},token:function(nt,$e){return $e.f(nt,$e)},blankLine:function(nt){nt.f=Je,nt.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(tn,Wt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var qe={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},me={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(_e,xe){var Ce=_e.indentUnit,Oe={},Be=xe.htmlMode?qe:me;for(var Pe in Be)Oe[Pe]=Be[Pe];for(var Pe in xe)Oe[Pe]=xe[Pe];var fe,Je;function Se(Ne,rt){function at(ke){return rt.tokenize=ke,ke(Ne,rt)}var pe=Ne.next();if(pe=="<")return Ne.eat("!")?Ne.eat("[")?Ne.match("CDATA[")?at($e("atom","]]>")):null:Ne.match("--")?at($e("comment","-->")):Ne.match("DOCTYPE",!0,!0)?(Ne.eatWhile(/[\w\._\-]/),at(Ve(1))):null:Ne.eat("?")?(Ne.eatWhile(/[\w\._\-]/),rt.tokenize=$e("meta","?>"),"meta"):(fe=Ne.eat("/")?"closeTag":"openTag",rt.tokenize=Dt,"tag bracket");if(pe=="&"){var wt;return Ne.eat("#")?Ne.eat("x")?wt=Ne.eatWhile(/[a-fA-F\d]/)&&Ne.eat(";"):wt=Ne.eatWhile(/[\d]/)&&Ne.eat(";"):wt=Ne.eatWhile(/[\w\.\-:]/)&&Ne.eat(";"),wt?"atom":"error"}else return Ne.eatWhile(/[^&<]/),null}Se.isInText=!0;function Dt(Ne,rt){var at=Ne.next();if(at==">"||at=="/"&&Ne.eat(">"))return rt.tokenize=Se,fe=at==">"?"endTag":"selfcloseTag","tag bracket";if(at=="=")return fe="equals",null;if(at=="<"){rt.tokenize=Se,rt.state=zt,rt.tagName=rt.tagStart=null;var pe=rt.tokenize(Ne,rt);return pe?pe+" tag error":"tag error"}else return/[\'\"]/.test(at)?(rt.tokenize=nt(at),rt.stringStartCol=Ne.column(),rt.tokenize(Ne,rt)):(Ne.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function nt(Ne){var rt=function(at,pe){for(;!at.eol();)if(at.next()==Ne){pe.tokenize=Dt;break}return"string"};return rt.isInAttribute=!0,rt}function $e(Ne,rt){return function(at,pe){for(;!at.eol();){if(at.match(rt)){pe.tokenize=Se;break}at.next()}return Ne}}function Ve(Ne){return function(rt,at){for(var pe;(pe=rt.next())!=null;){if(pe=="<")return at.tokenize=Ve(Ne+1),at.tokenize(rt,at);if(pe==">")if(Ne==1){at.tokenize=Se;break}else return at.tokenize=Ve(Ne-1),at.tokenize(rt,at)}return"meta"}}function je(Ne,rt,at){this.prev=Ne.context,this.tagName=rt,this.indent=Ne.indented,this.startOfLine=at,(Oe.doNotIndent.hasOwnProperty(rt)||Ne.context&&Ne.context.noIndent)&&(this.noIndent=!0)}function Et(Ne){Ne.context&&(Ne.context=Ne.context.prev)}function Bt(Ne,rt){for(var at;;){if(!Ne.context||(at=Ne.context.tagName,!Oe.contextGrabbers.hasOwnProperty(at)||!Oe.contextGrabbers[at].hasOwnProperty(rt)))return;Et(Ne)}}function zt(Ne,rt,at){return Ne=="openTag"?(at.tagStart=rt.column(),Pt):Ne=="closeTag"?xt:zt}function Pt(Ne,rt,at){return Ne=="word"?(at.tagName=rt.current(),Je="tag",Ft):Oe.allowMissingTagName&&Ne=="endTag"?(Je="tag bracket",Ft(Ne,rt,at)):(Je="error",Pt)}function xt(Ne,rt,at){if(Ne=="word"){var pe=rt.current();return at.context&&at.context.tagName!=pe&&Oe.implicitlyClosed.hasOwnProperty(at.context.tagName)&&Et(at),at.context&&at.context.tagName==pe||Oe.matchClosing===!1?(Je="tag",St):(Je="tag error",tt)}else return Oe.allowMissingTagName&&Ne=="endTag"?(Je="tag bracket",St(Ne,rt,at)):(Je="error",tt)}function St(Ne,rt,at){return Ne!="endTag"?(Je="error",St):(Et(at),zt)}function tt(Ne,rt,at){return Je="error",St(Ne,rt,at)}function Ft(Ne,rt,at){if(Ne=="word")return Je="attribute",Ct;if(Ne=="endTag"||Ne=="selfcloseTag"){var pe=at.tagName,wt=at.tagStart;return at.tagName=at.tagStart=null,Ne=="selfcloseTag"||Oe.autoSelfClosers.hasOwnProperty(pe)?Bt(at,pe):(Bt(at,pe),at.context=new je(at,pe,wt==at.indented)),zt}return Je="error",Ft}function Ct(Ne,rt,at){return Ne=="equals"?Xe:(Oe.allowMissing||(Je="error"),Ft(Ne,rt,at))}function Xe(Ne,rt,at){return Ne=="string"?bt:Ne=="word"&&Oe.allowUnquoted?(Je="string",Ft):(Je="error",Ft(Ne,rt,at))}function bt(Ne,rt,at){return Ne=="string"?bt:Ft(Ne,rt,at)}return{startState:function(Ne){var rt={tokenize:Se,state:zt,indented:Ne||0,tagName:null,tagStart:null,context:null};return Ne!=null&&(rt.baseIndent=Ne),rt},token:function(Ne,rt){if(!rt.tagName&&Ne.sol()&&(rt.indented=Ne.indentation()),Ne.eatSpace())return null;fe=null;var at=rt.tokenize(Ne,rt);return(at||fe)&&at!="comment"&&(Je=null,rt.state=rt.state(fe||at,Ne,rt),Je&&(at=Je=="error"?at+" error":Je)),at},indent:function(Ne,rt,at){var pe=Ne.context;if(Ne.tokenize.isInAttribute)return Ne.tagStart==Ne.indented?Ne.stringStartCol+1:Ne.indented+Ce;if(pe&&pe.noIndent)return z.Pass;if(Ne.tokenize!=Dt&&Ne.tokenize!=Se)return at?at.match(/^(\s*)/)[0].length:0;if(Ne.tagName)return Oe.multilineTagIndentPastTag!==!1?Ne.tagStart+Ne.tagName.length+2:Ne.tagStart+Ce*(Oe.multilineTagIndentFactor||1);if(Oe.alignCDATA&&/$/,blockCommentStart:"",configuration:Oe.htmlMode?"html":"xml",helperType:Oe.htmlMode?"html":"xml",skipAttribute:function(Ne){Ne.state==Xe&&(Ne.state=Ft)},xmlCurrentTag:function(Ne){return Ne.tagName?{name:Ne.tagName,close:Ne.type=="closeTag"}:null},xmlCurrentContext:function(Ne){for(var rt=[],at=Ne.context;at;at=at.prev)at.tagName&&rt.push(at.tagName);return rt.reverse()}}}),z.defineMIME("text/xml","xml"),z.defineMIME("application/xml","xml"),z.mimeModes.hasOwnProperty("text/html")||z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(tn,Wt,ie){"use strict";ie.d(Wt,{hP:function(){return lt}});var z=function(ae,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var ue in oe)Object.prototype.hasOwnProperty.call(oe,ue)&&(ee[ue]=oe[ue])})(ae,te)};function qe(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function me(ae,te,ee,oe){return new(ee||(ee=Promise))(function(ue,ne){function he(Me){try{pt(oe.next(Me))}catch(Ke){ne(Ke)}}function be(Me){try{pt(oe.throw(Me))}catch(Ke){ne(Ke)}}function pt(Me){var Ke;Me.done?ue(Me.value):(Ke=Me.value,Ke instanceof ee?Ke:new ee(function(dt){dt(Ke)})).then(he,be)}pt((oe=oe.apply(ae,te||[])).next())})}function _e(ae,te){var ee,oe,ue,ne,he={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return ne={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function be(pt){return function(Me){return function(Ke){if(ee)throw new TypeError("Generator is already executing.");for(;he;)try{if(ee=1,oe&&(ue=2&Ke[0]?oe.return:Ke[0]?oe.throw||((ue=oe.return)&&ue.call(oe),0):oe.next)&&!(ue=ue.call(oe,Ke[1])).done)return ue;switch(oe=0,ue&&(Ke=[2&Ke[0],ue.value]),Ke[0]){case 0:case 1:ue=Ke;break;case 4:return he.label++,{value:Ke[1],done:!1};case 5:he.label++,oe=Ke[1],Ke=[0];continue;case 7:Ke=he.ops.pop(),he.trys.pop();continue;default:if(ue=he.trys,!((ue=ue.length>0&&ue[ue.length-1])||Ke[0]!==6&&Ke[0]!==2)){he=0;continue}if(Ke[0]===3&&(!ue||Ke[1]>ue[0]&&Ke[1]',"select"),this.addActionButton(oe,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'',"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(ne){var he=document.createElement("div");he.className=""+ee.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",ne.typeName),he.innerHTML=ne.icon,he.addEventListener("click",function(){ee.markerToolbarButtonClicked(he,ne)}),ee.buttons.push(he),ee.markerButtons.push(he)}),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 ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'',"render"),this.addActionButton(ue,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},ae.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},ae.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){ee.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),nt=function(){function ae(te,ee,oe,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Se("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 Se("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Se("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Se("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Se("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 Se("toolbox-panel-row_colors",` background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Se("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px; padding: `+ee+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Se("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Se("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Je("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Je("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,ue=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var he;ne.uiStyleSettings=ue.uiStyleSettings;var be=document.createElement("div");be.className=ue.toolboxButtonStyleClass.name+" "+((he=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:ue.toolboxButtonStyleColorsClass.name),be.innerHTML=ne.icon,be.title=ne.title,be.addEventListener("click",function(){ue.panelButtonClick(ne)}),ue.panelButtons.push(be),ue.buttonRow.appendChild(be)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var ue=te.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),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=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,he){var be,pt;ne.className=ee.toolboxButtonStyleClass.name+" "+(he===oe?""+((be=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&be!==void 0?be:ee.toolboxActiveButtonStyleColorsClass.name):""+((pt=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pt!==void 0?pt:ee.toolboxButtonStyleColorsClass.name))})},ae}(),$e=function(ae,te){this.title=ae,this.icon=te},Ve=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,ne||'')||this;return he.colors=[],he.addTransparent=!1,he.colorBoxes=[],he.colors=oe,he.currentColor=ue,he.setCurrentColor=he.setCurrentColor.bind(he),he.getColorBox=he.getColorBox.bind(he),he}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var ne=ee.getColorBox(ue);oe.appendChild(ne),ee.colorBoxes.push(ne)}),oe},te.prototype.getColorBox=function(ee){var oe=this,ue=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-ue,he=document.createElement("div");he.style.display="inline-block",he.style.boxSizing="content-box",he.style.width=ne-2+"px",he.style.height=ne-2+"px",he.style.padding="1px",he.style.marginRight="2px",he.style.marginBottom="2px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderRadius=(ne+2)/2+"px",he.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){oe.setCurrentColor(ee,he)});var be=document.createElement("div");return be.style.display="inline-block",be.style.width=ne-2+"px",be.style.height=ne-2+"px",be.style.backgroundColor=ee,be.style.borderRadius=ne/2+"px",ee==="transparent"&&(be.style.fill=this.uiStyleSettings.toolboxAccentColor,be.innerHTML=` `),he.appendChild(be),he},te.prototype.setCurrentColor=function(ee,oe){var ue=this;this.currentColor=ee,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}($e),je=function(){function ae(te,ee,oe){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ee,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(te){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(te,ee){},ae.prototype.dblClick=function(te,ee){},ae.prototype.manipulate=function(te){},ae.prototype.pointerUp=function(te){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},ae.prototype.scale=function(te,ee){},ae.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},ae.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),Et=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},ae}(),Bt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Ce.createGroup(),this.visual.appendChild(Ce.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ce.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},ae}(),zt=function(){function ae(){}return ae.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},ae.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},ae}(),Pt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(Ce.createTransform()),ne.setupControlBox(),ne}return qe(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=Ce.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(ee);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,ue=this.manipulationStartWidth,ne=this.manipulationStartTop,he=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+ee.y-this.manipulationStartY,he=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:he=this.manipulationStartHeight+ee.y-this.manipulationStartY}ue>=0?(this.left=oe,this.width=ue):(this.left=oe+ue,this.width=-ue),he>=0?(this.top=ne,this.height=he):(this.top=ne+he,this.height=-he),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),ue=Ce.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var ue=Ce.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Ce.createGroup();var ee=Ce.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Ce.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=Ce.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 Et,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,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()},te.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()},te.prototype.createGrip=function(){var ee=new Bt;return ee.visual.transform.baseVal.appendItem(Ce.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,ue=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,he=(this.height+this.CB_DISTANCE)/2-ee/2,be=this.height+this.CB_DISTANCE-ee/2,pt=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,ue),this.positionGrip(this.controlGrips.topCenter.visual,ne,ue),this.positionGrip(this.controlGrips.topRight.visual,pt,ue),this.positionGrip(this.controlGrips.centerLeft.visual,oe,he),this.positionGrip(this.controlGrips.centerRight.visual,pt,he),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,be),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,be),this.positionGrip(this.controlGrips.bottomRight.visual,pt,be),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,ue-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,ue){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,ue),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:zt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:zt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(zt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(zt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var ue=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:ue.x*ee,y:ue.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(je),xt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Ce.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)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ce.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Ce.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Ce.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Ce.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Ce.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(Pt),St=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,ne||'')||this;return he.widths=[],he.widthBoxes=[],he.widths=oe,he.currentWidth=ue,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(ue){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=ue===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentWidth(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.innerText=ue.toString(),he.style.marginRight="5px",ne.appendChild(he);var be=document.createElement("div");be.style.minHeight="20px",be.style.flexGrow="2",be.style.display="flex",be.style.alignItems="center";var pt=document.createElement("hr");pt.style.minWidth="20px",pt.style.border="0px",pt.style.borderTop=ue+"px solid "+ee.uiStyleSettings.toolboxColor,pt.style.flexGrow="2",be.appendChild(pt),ne.appendChild(be),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var ue=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}($e),tt=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,ne||'')||this;return he.styles=[],he.styleBoxes=[],he.styles=oe,he.currentStyle=ue,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(ue){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.styles.length-5+"%",ne.style.borderColor=ue===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentStyle(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var be=` `;he.innerHTML=be,ne.appendChild(he),ee.styleBoxes.push(ne)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var ue=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}($e),Ft=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Ve("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new St("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new tt("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='',te}(xt),Ct=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"},Xe=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.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(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),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(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Ce.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ee=new Bt;return ee.visual.transform.baseVal.appendItem(Ce.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,ue){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,ue),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.x1=this.x1*ee,this.y1=this.y1*oe,this.x2=this.x2*ee,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},te}(je),bt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Ve("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new St("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new tt("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.selectorLine=Ce.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ce.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)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.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()),Ce.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ce.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ce.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='',te}(Xe),Ne=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,ne||'')||this;return he.fonts=[],he.fontBoxes=[],he.fonts=oe,he.currentFont=ue,he.setCurrentFont=he.setCurrentFont.bind(he),he}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(ue){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.fonts.length-5+"%",ne.style.borderColor=ue===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentFont(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.style.display="flex",he.style.minHeight="20px",he.style.flexGrow="2",he.style.fontFamily=ue,he.style.overflow="hidden";var be=document.createElement("div");be.style.whiteSpace="nowrap",be.style.overflow="hidden",be.style.textOverflow="ellipsis",be.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(be),ne.appendChild(he),ee.fontBoxes.push(ne)}),oe},te.prototype.setCurrentFont=function(ee,oe){var ue=this;this.currentFont=ee,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}($e),rt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=ue.defaultColor,ne.fontFamily=ue.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new Ve("Color",ue.defaultColorSet,ue.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Ne("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(ue){ue===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.bgRectangle=Ce.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ce.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ce.createTransform()),this.textElement.transform.baseVal.appendItem(Ce.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=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(oe){ee.textElement.appendChild(Ce.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/ee.width,ne=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(ue,ne)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),ue=0,ne=0;return oe.width>0&&oe.height>0&&(ue=(this.width-oe.width*ee)/2,ne=this.height/2-oe.height*ee/2),{x:ue,y:ne}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),ue=this.getTextPosition(oe);ue.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ce.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ce.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=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(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var ue=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(ue)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),ne={x:ue.width*ee,y:ue.height*ee};oe.x-=ne.x/2,oe.y-=ne.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&Ce.setAttributes(this.textElement,[["fill",ee]]),this.color=ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ee)},te.prototype.setFont=function(ee){this.textElement&&Ce.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='',te}(Pt),at=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=ue.defaultColor,ne.lineWidth=ue.defaultStrokeWidth,ne.pixelRatio=ue.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new Ve("Color",ue.defaultColorSet,ue.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new St("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.drawingImage=Ce.createImage(),this.visual.appendChild(this.drawingImage);var ee=Ce.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){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(ee.x,ee.y),this.drawing=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),Ce.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ce.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.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)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=oe[0],ne=oe[1],he=oe[2],be=oe[3],pt=!1,Me=0;Me0&&(pt=!0,Mebe&&(be=Me),Ke>he&&(he=Ke));if(pt){this.left=ue/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(he-ue)/this.pixelRatio,this.height=(be-ne)/this.pixelRatio;var dt=document.createElement("canvas");dt.width=he-ue,dt.height=be-ne,dt.getContext("2d").putImageData(this.canvasContext.getImageData(ue,ne,he-ue,be-ne),0,0),this.drawingImgUrl=dt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Ce.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ce.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),ae.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='',te}(Pt),pe=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,ue||'')||this;return ne.typeBoxes=[],ne.currentType=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var ue=function(be){var pt="both";switch(be){case 0:pt="both";break;case 1:pt="start";break;case 2:pt="end";break;case 3:pt="none"}var Me=document.createElement("div");if(Me.style.display="flex",Me.style.flexGrow="2",Me.style.alignItems="center",Me.style.justifyContent="space-between",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.borderColor=pt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){ee.setCurrentType(pt,Me)}),oe.appendChild(Me),pt==="both"||pt==="start"){var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.minHeight="20px",Ke.innerHTML=` `,Ke.style.marginLeft="5px",Me.appendChild(Ke)}var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.style.flexGrow="2";var Mt=document.createElement("hr");if(Mt.style.minWidth="20px",Mt.style.border="0px",Mt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Mt.style.flexGrow="2",dt.appendChild(Mt),Me.appendChild(dt),pt==="both"||pt==="end"){var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.innerHTML=` `,mt.style.marginRight="5px",Me.appendChild(mt)}ne.typeBoxes.push(Me)},ne=this,he=0;he<4;he++)ue(he);return oe},te.prototype.setCurrentType=function(ee,oe){var ue=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}($e),wt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new pe("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var ue=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return ee-ue/2+","+(oe+ne/2)+" "+ee+","+(oe-ne/2)+" "+(ee+ue/2)+","+(oe+ne/2)},te.prototype.createTips=function(){this.arrow1=Ce.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ce.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ce.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ce.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ce.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ce.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='',te}(bt),ke=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.fillColor=ue.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ve("Color",ue.defaultColorSet,ue.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='',te}(xt),Te=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,ne||'')||this;return he.opacities=[],he.opacityBoxes=[],he.opacities=oe,he.currentOpacity=ue,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(ue){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=ue===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentOpacity(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.innerText=100*ue+"%",ne.appendChild(he),ee.opacityBoxes.push(ne)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var ue=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}($e),Ot=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=ue.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=ue.defaultHighlightOpacity,ne.fillPanel=new Ve("Color",ue.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new Te("Opacity",ue.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return qe(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Ce.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='',te}(ke),ve='',se='',Le=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=ue.defaultStrokeColor,ne.bgColor=ue.defaultFillColor,ne.fontFamily=ue.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new Ve("Text color",ue.defaultColorSet,ne.color,ve),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ve("Fill color",ue.defaultColorSet,ne.bgColor,se),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Ne("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new Bt,ne.tipGrip.visual.transform.baseVal.appendItem(Ce.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Ce.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ce.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,ee),this.setTipPoints(oe),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var oe=this.unrotatePoint(ee);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(Ce.setAttributes(this.bgRectangle,[["fill",ee]]),Ce.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.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},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),ue=this.height/5;ee&&(this.tipPosition={x:oe+ue/2,y:this.height+20});var ne=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?ne.1)){var ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='',te}(bt),we=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.strokePanel.colors=ue.defaultColorSet,ne.fillColor="transparent",ne}return qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='',te}(ht),Ze=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),Ue=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Ve("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new St("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new tt("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.selectorCurve=Ce.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ce.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)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ce.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ce.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ce.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Ce.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ce.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)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/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()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),ae.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,oe){this.curveX=this.curveX*ee,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,ee,oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='',te}(Xe),Kt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.fillColor=ue.defaultFillColor,ne.textColor=ue.defaultStrokeColor,ne.fontFamily=ue.defaultFontFamily,ne.fontSize=ue.defaultCaptionFontSize,ne.captionText=ue.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new Ve("Line color",xe(ue.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ve("Fill color",xe(ue.defaultColorSet,["transparent"]),ne.fillColor,se),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new St("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new tt("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Ne("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ve("Text color",ue.defaultColorSet,ne.textColor,ve),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ce.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ce.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=Ce.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()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ce.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')"]]),Ce.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')"]])},te.prototype.showTextEditor=function(){var ee=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(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&ee.finishTextEditing(ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.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"))},te.prototype.finishTextEditing=function(ee){this.setCaptionText(ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ee){this.captionElement&&Ce.setAttributes(this.captionElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ee){this.captionElement&&Ce.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ce.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&Ce.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Ce.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Ce.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Ce.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='',te}(Pt),kt=function(){function ae(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Tt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=ue,ne}return qe(te,ae),te}(kt),Re=function(ae){function te(ee,oe,ue){ue===void 0&&(ue=!1);var ne=ae.call(this,ee,ue)||this;return ne.marker=oe,ne}return qe(te,ae),te}(kt),$t=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(te,ee){this[te].push(ee)},ae.prototype.removeEventListener=function(te,ee){var oe=this[te].indexOf(ee);oe>-1&&this[te].splice(oe,1)},ae}(),lt=function(){function ae(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ct,this._isOpen=!1,this.undoRedoManager=new Ze,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 $t,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new fe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ft,at,wt,rt,we,ht,Ot,Le,yt,ke,bt,Ue,Kt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ft,at,wt,rt,ht,Ot,Le]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ft,at,wt,rt,Ot]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var ue=ee.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});ue!==void 0&&ee._availableMarkerTypes.push(ue)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new kt(te))})},ae.prototype.render=function(){return me(this,void 0,void 0,function(){var te;return _e(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Be).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(ue){var ne=new kt(ee,!0);ue(ne),ne.defaultPrevented&&(oe=!0)}),oe||(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(ue){return ue(new kt(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=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=te+"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 Dt(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(te),1),te.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var ne=new Re(te,te._currentMarker,!0);ue(ne),ne.defaultPrevented&&(ee=!0)}),!ee){var oe=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(ue){return ue(new Re(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var be=new Re(te,void 0,!0);he(be),be.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(he){var be=ue.markers[he];ue.setCurrentMarker(ue.markers[he]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(pt){return pt(new Re(te,be))})},ue=this,ne=this.markers.length-1;ne>=0;ne--)oe(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;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=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),ue1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(te){Oe.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new kt(te))}))},ae.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new kt(te))}))},ae.instanceCounter=0,ae}()},6551:function(tn,Wt,ie){"use strict";ie.d(Wt,{ZP:function(){return Oe}});var z=ie(72190),qe=ie(59301),me=ie(47273),_e=0,xe=(0,me.Z)();function Ce(){var Be;return xe?(Be=_e,_e+=1):Be="TEST_OR_SSR",Be}function Oe(Be){var Pe=qe.useState(),fe=(0,z.Z)(Pe,2),Je=fe[0],Se=fe[1];return qe.useEffect(function(){Se("rc_select_".concat(Ce()))},[]),Be||Je}},37463:function(tn,Wt,ie){"use strict";ie.d(Wt,{Ac:function(){return It},Xo:function(){return Ut},Wx:function(){return ut},ZP:function(){return nr},lk:function(){return zt}});var z=ie(60499),qe=ie(77654),me=ie(18642),_e=ie(85899),xe=ie(72190),Ce=ie(42244),Oe=ie(43749),Be=ie(18929),Pe=ie(48736),fe=ie(59301),Je=ie(92310),Se=ie.n(Je),Dt=ie(34280),nt=ie(49658),$e=ie(8654),Ve=function(ct){var Ee=ct.className,Fe=ct.customizeIcon,Ie=ct.customizeIconProps,He=ct.children,ye=ct.onMouseDown,Qe=ct.onClick,it=typeof Fe=="function"?Fe(Ie):Fe;return fe.createElement("span",{className:Ee,onMouseDown:function(ot){ot.preventDefault(),ye==null||ye(ot)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Qe,"aria-hidden":!0},it!==void 0?it:fe.createElement("span",{className:Se()(Ee.split(/\s+/).map(function(vt){return"".concat(vt,"-icon")}))},He))},je=Ve,Et=function(ct,Ee,Fe,Ie,He){var ye=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Qe=arguments.length>6?arguments[6]:void 0,it=arguments.length>7?arguments[7]:void 0,vt=fe.useMemo(function(){if((0,Oe.Z)(Ie)==="object")return Ie.clearIcon;if(He)return He},[Ie,He]),ot=fe.useMemo(function(){return!!(!ye&&Ie&&(Fe.length||Qe)&&!(it==="combobox"&&Qe===""))},[Ie,ye,Fe.length,Qe,it]);return{allowClear:ot,clearIcon:fe.createElement(je,{className:"".concat(ct,"-clear"),onMouseDown:Ee,customizeIcon:vt},"\xD7")}},Bt=fe.createContext(null);function zt(){return fe.useContext(Bt)}function Pt(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ct=fe.useState(!1),Ee=(0,xe.Z)(ct,2),Fe=Ee[0],Ie=Ee[1],He=fe.useRef(null),ye=function(){window.clearTimeout(He.current)};fe.useEffect(function(){return ye},[]);var Qe=function(vt,ot){ye(),He.current=window.setTimeout(function(){Ie(vt),ot&&ot()},ze)};return[Fe,Qe,ye]}function xt(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ct=fe.useRef(null),Ee=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(Ee.current)}},[]);function Fe(Ie){(Ie||ct.current===null)&&(ct.current=Ie),window.clearTimeout(Ee.current),Ee.current=window.setTimeout(function(){ct.current=null},ze)}return[function(){return ct.current},Fe]}function St(ze,ct,Ee,Fe){var Ie=fe.useRef(null);Ie.current={open:ct,triggerOpen:Ee,customizedTrigger:Fe},fe.useEffect(function(){function He(ye){var Qe;if(!((Qe=Ie.current)!==null&&Qe!==void 0&&Qe.customizedTrigger)){var it=ye.target;it.shadowRoot&&ye.composed&&(it=ye.composedPath()[0]||it),Ie.current.open&&ze().filter(function(vt){return vt}).every(function(vt){return!vt.contains(it)&&vt!==it})&&Ie.current.triggerOpen(!1)}}return window.addEventListener("mousedown",He),function(){return window.removeEventListener("mousedown",He)}},[])}var tt=ie(10228);function Ft(ze){return ze&&![tt.Z.ESC,tt.Z.SHIFT,tt.Z.BACKSPACE,tt.Z.TAB,tt.Z.WIN_KEY,tt.Z.ALT,tt.Z.META,tt.Z.WIN_KEY_RIGHT,tt.Z.CTRL,tt.Z.SEMICOLON,tt.Z.EQUALS,tt.Z.CAPS_LOCK,tt.Z.CONTEXT_MENU,tt.Z.F1,tt.Z.F2,tt.Z.F3,tt.Z.F4,tt.Z.F5,tt.Z.F6,tt.Z.F7,tt.Z.F8,tt.Z.F9,tt.Z.F10,tt.Z.F11,tt.Z.F12].includes(ze)}var Ct=ie(26112),Xe=ie(83836);function bt(ze,ct,Ee){var Fe=(0,_e.Z)((0,_e.Z)({},ze),Ee?ct:{});return Object.keys(ct).forEach(function(Ie){var He=ct[Ie];typeof He=="function"&&(Fe[Ie]=function(){for(var ye,Qe=arguments.length,it=new Array(Qe),vt=0;vtHn&&(En="".concat(Tn.slice(0,Hn),"..."))}var cr=function(Pr){Pr&&Pr.stopPropagation(),Yn(nn)};return typeof Pn=="function"?ir(dn,En,Bn,rn,cr):Mr(nn,En,Bn,rn,cr)},Jn=function(nn){if(!Ie.length)return null;var Bn=typeof xn=="function"?xn(nn):xn;return typeof Pn=="function"?ir(void 0,Bn,!1,!1,void 0,!0):Mr({title:Bn},Bn,!1)},un=fe.createElement("div",{className:"".concat(Er,"-search"),style:{width:lr},onFocus:function(){zr(!0)},onBlur:function(){zr(!1)}},fe.createElement(wt,{ref:it,open:He,prefixCls:Fe,id:Ee,inputElement:null,disabled:ot,autoFocus:st,autoComplete:en,editable:Ir,activeDescendantId:Xt,value:Br,onKeyDown:wn,onMouseDown:er,onChange:Gn,onPaste:_n,onCompositionStart:Wn,onCompositionEnd:dr,onBlur:pr,tabIndex:qt,attrs:(0,Ct.Z)(ct,!0)}),fe.createElement("span",{ref:sr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Br,"\xA0")),pn=fe.createElement(Xe.Z,{prefixCls:"".concat(Er,"-overflow"),data:Ie,renderItem:rr,renderRest:Jn,suffix:un,itemKey:we,maxCount:Ln});return fe.createElement("span",{className:"".concat(Er,"-wrap")},pn,!Ie.length&&!Br&&fe.createElement("span",{className:"".concat(Er,"-placeholder")},vt))},Kt=Ue,kt=function(ct){var Ee=ct.inputElement,Fe=ct.prefixCls,Ie=ct.id,He=ct.inputRef,ye=ct.disabled,Qe=ct.autoFocus,it=ct.autoComplete,vt=ct.activeDescendantId,ot=ct.mode,We=ct.open,Ge=ct.values,st=ct.placeholder,en=ct.tabIndex,Xt=ct.showSearch,qt=ct.searchValue,Dn=ct.activeValue,Ln=ct.maxLength,Hn=ct.onInputKeyDown,Mn=ct.onInputMouseDown,xn=ct.onInputChange,Pn=ct.onInputPaste,Fn=ct.onInputCompositionStart,Yn=ct.onInputCompositionEnd,Gn=ct.onInputBlur,_n=ct.title,wn=fe.useState(!1),er=(0,xe.Z)(wn,2),Wn=er[0],dr=er[1],pr=ot==="combobox",sr=pr||Xt,ur=Ge[0],yr=qt||"";pr&&Dn&&!Wn&&(yr=Dn),fe.useEffect(function(){pr&&dr(!1)},[pr,Dn]);var lr=ot!=="combobox"&&!We&&!Xt?!1:!!yr,fr=_n===void 0?ht(ur):_n,Qn=fe.useMemo(function(){return ur?null:fe.createElement("span",{className:"".concat(Fe,"-selection-placeholder"),style:lr?{visibility:"hidden"}:void 0},st)},[ur,lr,st,Fe]);return fe.createElement("span",{className:"".concat(Fe,"-selection-wrap")},fe.createElement("span",{className:"".concat(Fe,"-selection-search")},fe.createElement(wt,{ref:He,prefixCls:Fe,id:Ie,open:We,inputElement:Ee,disabled:ye,autoFocus:Qe,autoComplete:it,editable:sr,activeDescendantId:vt,value:yr,onKeyDown:Hn,onMouseDown:Mn,onChange:function(br){dr(!0),xn(br)},onPaste:Pn,onCompositionStart:Fn,onCompositionEnd:Yn,onBlur:Gn,tabIndex:en,attrs:(0,Ct.Z)(ct,!0),maxLength:pr?Ln:void 0})),!pr&&ur?fe.createElement("span",{className:"".concat(Fe,"-selection-item"),title:fr,style:lr?{visibility:"hidden"}:void 0},ur.label):null,Qn)},Tt=kt,Re=function(ct,Ee){var Fe=(0,fe.useRef)(null),Ie=(0,fe.useRef)(!1),He=ct.prefixCls,ye=ct.open,Qe=ct.mode,it=ct.showSearch,vt=ct.tokenWithEnter,ot=ct.disabled,We=ct.prefix,Ge=ct.autoClearSearchValue,st=ct.onSearch,en=ct.onSearchSubmit,Xt=ct.onToggleOpen,qt=ct.onInputKeyDown,Dn=ct.onInputBlur,Ln=ct.domRef;fe.useImperativeHandle(Ee,function(){return{focus:function(fr){Fe.current.focus(fr)},blur:function(){Fe.current.blur()}}});var Hn=xt(0),Mn=(0,xe.Z)(Hn,2),xn=Mn[0],Pn=Mn[1],Fn=function(fr){var Qn=fr.which,mr=Fe.current instanceof HTMLTextAreaElement;!mr&&ye&&(Qn===tt.Z.UP||Qn===tt.Z.DOWN)&&fr.preventDefault(),qt&&qt(fr),Qn===tt.Z.ENTER&&Qe==="tags"&&!Ie.current&&!ye&&(en==null||en(fr.target.value)),!(mr&&!ye&&~[tt.Z.UP,tt.Z.DOWN,tt.Z.LEFT,tt.Z.RIGHT].indexOf(Qn))&&Ft(Qn)&&Xt(!0)},Yn=function(){Pn(!0)},Gn=(0,fe.useRef)(null),_n=function(fr){st(fr,!0,Ie.current)!==!1&&Xt(!0)},wn=function(){Ie.current=!0},er=function(fr){Ie.current=!1,Qe!=="combobox"&&_n(fr.target.value)},Wn=function(fr){var Qn=fr.target.value;if(vt&&Gn.current&&/[\r\n]/.test(Gn.current)){var mr=Gn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Qn=Qn.replace(mr,Gn.current)}Gn.current=null,_n(Qn)},dr=function(fr){var Qn=fr.clipboardData,mr=Qn==null?void 0:Qn.getData("text");Gn.current=mr||""},pr=function(fr){var Qn=fr.target;if(Qn!==Fe.current){var mr=document.body.style.msTouchAction!==void 0;mr?setTimeout(function(){Fe.current.focus()}):Fe.current.focus()}},sr=function(fr){var Qn=xn();fr.target!==Fe.current&&!Qn&&!(Qe==="combobox"&&ot)&&fr.preventDefault(),(Qe!=="combobox"&&(!it||!Qn)||!ye)&&(ye&&Ge!==!1&&st("",!0,!1),Xt())},ur={inputRef:Fe,onInputKeyDown:Fn,onInputMouseDown:Yn,onInputChange:Wn,onInputPaste:dr,onInputCompositionStart:wn,onInputCompositionEnd:er,onInputBlur:Dn},yr=Qe==="multiple"||Qe==="tags"?fe.createElement(Kt,(0,z.Z)({},ct,ur)):fe.createElement(Tt,(0,z.Z)({},ct,ur));return fe.createElement("div",{ref:Ln,className:"".concat(He,"-selector"),onClick:pr,onMouseDown:sr},We&&fe.createElement("div",{className:"".concat(He,"-prefix")},We),yr)},$t=fe.forwardRef(Re),lt=$t,ae=ie(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(ct){var Ee=ct===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ee,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ee,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ee,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ee,adjustY:1},htmlRegion:"scroll"}}},oe=function(ct,Ee){var Fe=ct.prefixCls,Ie=ct.disabled,He=ct.visible,ye=ct.children,Qe=ct.popupElement,it=ct.animation,vt=ct.transitionName,ot=ct.dropdownStyle,We=ct.dropdownClassName,Ge=ct.direction,st=Ge===void 0?"ltr":Ge,en=ct.placement,Xt=ct.builtinPlacements,qt=ct.dropdownMatchSelectWidth,Dn=ct.dropdownRender,Ln=ct.dropdownAlign,Hn=ct.getPopupContainer,Mn=ct.empty,xn=ct.getTriggerDOMNode,Pn=ct.onPopupVisibleChange,Fn=ct.onPopupMouseEnter,Yn=(0,Ce.Z)(ct,te),Gn="".concat(Fe,"-dropdown"),_n=Qe;Dn&&(_n=Dn(Qe));var wn=fe.useMemo(function(){return Xt||ee(qt)},[Xt,qt]),er=it?"".concat(Gn,"-").concat(it):vt,Wn=typeof qt=="number",dr=fe.useMemo(function(){return Wn?null:qt===!1?"minWidth":"width"},[qt,Wn]),pr=ot;Wn&&(pr=(0,_e.Z)((0,_e.Z)({},pr),{},{width:qt}));var sr=fe.useRef(null);return fe.useImperativeHandle(Ee,function(){return{getPopupElement:function(){var yr;return(yr=sr.current)===null||yr===void 0?void 0:yr.popupElement}}}),fe.createElement(ae.Z,(0,z.Z)({},Yn,{showAction:Pn?["click"]:[],hideAction:Pn?["click"]:[],popupPlacement:en||(st==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:wn,prefixCls:Gn,popupTransitionName:er,popup:fe.createElement("div",{onMouseEnter:Fn},_n),ref:sr,stretch:dr,popupAlign:Ln,popupVisible:He,getPopupContainer:Hn,popupClassName:Se()(We,(0,me.Z)({},"".concat(Gn,"-empty"),Mn)),popupStyle:pr,getTriggerDOMNode:xn,onPopupVisibleChange:Pn}),ye)},ue=fe.forwardRef(oe),ne=ue,he=ie(48745);function be(ze,ct){var Ee=ze.key,Fe;return"value"in ze&&(Fe=ze.value),Ee!=null?Ee:Fe!==void 0?Fe:"rc-index-key-".concat(ct)}function pt(ze){return typeof ze!="undefined"&&!Number.isNaN(ze)}function Me(ze,ct){var Ee=ze||{},Fe=Ee.label,Ie=Ee.value,He=Ee.options,ye=Ee.groupLabel,Qe=Fe||(ct?"children":"label");return{label:Qe,value:Ie||"value",options:He||"options",groupLabel:ye||Qe}}function Ke(ze){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ee=ct.fieldNames,Fe=ct.childrenAsData,Ie=[],He=Me(Ee,!1),ye=He.label,Qe=He.value,it=He.options,vt=He.groupLabel;function ot(We,Ge){Array.isArray(We)&&We.forEach(function(st){if(Ge||!(it in st)){var en=st[Qe];Ie.push({key:be(st,Ie.length),groupOption:Ge,data:st,label:st[ye],value:en})}else{var Xt=st[vt];Xt===void 0&&Fe&&(Xt=st.label),Ie.push({key:be(st,Ie.length),group:!0,data:st,label:Xt}),ot(st[it],!0)}})}return ot(ze,!1),Ie}function dt(ze){var ct=(0,_e.Z)({},ze);return"props"in ct||Object.defineProperty(ct,"props",{get:function(){return(0,Pe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ct}}),ct}var Mt=function(ct,Ee,Fe){if(!Ee||!Ee.length)return null;var Ie=!1,He=function Qe(it,vt){var ot=(0,he.Z)(vt),We=ot[0],Ge=ot.slice(1);if(!We)return[it];var st=it.split(We);return Ie=Ie||st.length>1,st.reduce(function(en,Xt){return[].concat((0,qe.Z)(en),(0,qe.Z)(Qe(Xt,Ge)))},[]).filter(Boolean)},ye=He(ct,Ee);return Ie?typeof Fe!="undefined"?ye.slice(0,Fe):ye:null},mt=fe.createContext(null),Lt=mt;function Ht(ze){var ct=ze.visible,Ee=ze.values;if(!ct)return null;var Fe=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Ee.slice(0,Fe).map(function(Ie){var He=Ie.label,ye=Ie.value;return["number","string"].includes((0,Oe.Z)(He))?He:ye}).join(", ")),Ee.length>Fe?", ...":null)}var Zt=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ln=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Yt=function(ct){return ct==="tags"||ct==="multiple"},an=fe.forwardRef(function(ze,ct){var Ee,Fe=ze.id,Ie=ze.prefixCls,He=ze.className,ye=ze.showSearch,Qe=ze.tagRender,it=ze.direction,vt=ze.omitDomProps,ot=ze.displayValues,We=ze.onDisplayValuesChange,Ge=ze.emptyOptions,st=ze.notFoundContent,en=st===void 0?"Not Found":st,Xt=ze.onClear,qt=ze.mode,Dn=ze.disabled,Ln=ze.loading,Hn=ze.getInputElement,Mn=ze.getRawInputElement,xn=ze.open,Pn=ze.defaultOpen,Fn=ze.onDropdownVisibleChange,Yn=ze.activeValue,Gn=ze.onActiveValueChange,_n=ze.activeDescendantId,wn=ze.searchValue,er=ze.autoClearSearchValue,Wn=ze.onSearch,dr=ze.onSearchSplit,pr=ze.tokenSeparators,sr=ze.allowClear,ur=ze.prefix,yr=ze.suffixIcon,lr=ze.clearIcon,fr=ze.OptionList,Qn=ze.animation,mr=ze.transitionName,br=ze.dropdownStyle,zr=ze.dropdownClassName,Er=ze.dropdownMatchSelectWidth,Br=ze.dropdownRender,Ir=ze.dropdownAlign,Mr=ze.placement,ir=ze.builtinPlacements,rr=ze.getPopupContainer,Jn=ze.showAction,un=Jn===void 0?[]:Jn,pn=ze.onFocus,hn=ze.onBlur,nn=ze.onKeyUp,Bn=ze.onKeyDown,Vn=ze.onMouseDown,dn=(0,Ce.Z)(ze,Zt),rn=Yt(qt),En=(ye!==void 0?ye:rn)||qt==="combobox",Tn=(0,_e.Z)({},dn);ln.forEach(function(Wr){delete Tn[Wr]}),vt==null||vt.forEach(function(Wr){delete Tn[Wr]});var cr=fe.useState(!1),kr=(0,xe.Z)(cr,2),Pr=kr[0],Rr=kr[1];fe.useEffect(function(){Rr((0,nt.Z)())},[]);var Ar=fe.useRef(null),Fr=fe.useRef(null),Gr=fe.useRef(null),Hr=fe.useRef(null),_r=fe.useRef(null),ti=fe.useRef(!1),Ei=Pt(),Ni=(0,xe.Z)(Ei,3),xi=Ni[0],si=Ni[1],Ri=Ni[2];fe.useImperativeHandle(ct,function(){var Wr,Dr;return{focus:(Wr=Hr.current)===null||Wr===void 0?void 0:Wr.focus,blur:(Dr=Hr.current)===null||Dr===void 0?void 0:Dr.blur,scrollTo:function(Ci){var ii;return(ii=_r.current)===null||ii===void 0?void 0:ii.scrollTo(Ci)},nativeElement:Ar.current||Fr.current}});var jr=fe.useMemo(function(){var Wr;if(qt!=="combobox")return wn;var Dr=(Wr=ot[0])===null||Wr===void 0?void 0:Wr.value;return typeof Dr=="string"||typeof Dr=="number"?String(Dr):""},[wn,qt,ot]),Ki=qt==="combobox"&&typeof Hn=="function"&&Hn()||null,qr=typeof Mn=="function"&&Mn(),xr=(0,$e.x1)(Fr,qr==null||(Ee=qr.props)===null||Ee===void 0?void 0:Ee.ref),$r=fe.useState(!1),Vr=(0,xe.Z)($r,2),Sr=Vr[0],Nr=Vr[1];(0,Dt.Z)(function(){Nr(!0)},[]);var Tr=(0,Be.Z)(!1,{defaultValue:Pn,value:xn}),ui=(0,xe.Z)(Tr,2),Mi=ui[0],fi=ui[1],ni=Sr?Mi:!1,xo=!en&&Ge;(Dn||xo&&ni&&qt==="combobox")&&(ni=!1);var so=xo?!1:ni,gr=fe.useCallback(function(Wr){var Dr=Wr!==void 0?Wr:!ni;Dn||(fi(Dr),ni!==Dr&&(Fn==null||Fn(Dr)))},[Dn,ni,fi,Fn]),Or=fe.useMemo(function(){return(pr||[]).some(function(Wr){return[` `,`\r `].includes(Wr)})},[pr]),Cr=fe.useContext(Lt)||{},wr=Cr.maxCount,Zr=Cr.rawValues,Xr=function(Dr,yi,Ci){if(!(rn&&pt(wr)&&(Zr==null?void 0:Zr.size)>=wr)){var ii=!0,ci=Dr;Gn==null||Gn(null);var Yi=Mt(Dr,pr,pt(wr)?wr-Zr.size:void 0),Ui=Ci?null:Yi;return qt!=="combobox"&&Ui&&(ci="",dr==null||dr(Ui),gr(!1),ii=!1),Wn&&jr!==ci&&Wn(ci,{source:yi?"typing":"effect"}),ii}},_i=function(Dr){!Dr||!Dr.trim()||Wn(Dr,{source:"submit"})};fe.useEffect(function(){!ni&&!rn&&qt!=="combobox"&&Xr("",!1,!1)},[ni]),fe.useEffect(function(){Mi&&Dn&&fi(!1),Dn&&!ti.current&&si(!1)},[Dn]);var Ii=xt(),vi=(0,xe.Z)(Ii,2),ri=vi[0],Vi=vi[1],eo=fe.useRef(!1),Fi=function(Dr){var yi=ri(),Ci=Dr.key,ii=Ci==="Enter";if(ii&&(qt!=="combobox"&&Dr.preventDefault(),ni||gr(!0)),Vi(!!jr),Ci==="Backspace"&&!yi&&rn&&!jr&&ot.length){for(var ci=(0,qe.Z)(ot),Yi=null,Ui=ci.length-1;Ui>=0;Ui-=1){var oo=ci[Ui];if(!oo.disabled){ci.splice(Ui,1),Yi=oo;break}}Yi&&We(ci,{type:"remove",values:[Yi]})}for(var $i=arguments.length,zi=new Array($i>1?$i-1:0),Ji=1;Ji<$i;Ji++)zi[Ji-1]=arguments[Ji];if(ni&&(!ii||!eo.current)){var co;ii&&(eo.current=!0),(co=_r.current)===null||co===void 0||co.onKeyDown.apply(co,[Dr].concat(zi))}Bn==null||Bn.apply(void 0,[Dr].concat(zi))},to=function(Dr){for(var yi=arguments.length,Ci=new Array(yi>1?yi-1:0),ii=1;ii1?Yi-1:0),oo=1;oo=en},[Qe,en,Mn==null?void 0:Mn.size]),pr=function(un){un.preventDefault()},sr=function(un){var pn;(pn=Wn.current)===null||pn===void 0||pn.scrollTo(typeof un=="number"?{index:un}:un)},ur=fe.useCallback(function(Jn){return it==="combobox"?!1:Mn.has(Jn)},[it,(0,qe.Z)(Mn).toString(),Mn.size]),yr=function(un){for(var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,hn=er.length,nn=0;nn1&&arguments[1]!==void 0?arguments[1]:!1;mr(un);var hn={source:pn?"keyboard":"mouse"},nn=er[un];if(!nn){qt(null,-1,hn);return}qt(nn.value,un,hn)};(0,fe.useEffect)(function(){br(Dn!==!1?yr(0):-1)},[er.length,vt]);var zr=fe.useCallback(function(Jn){return it==="combobox"?String(Jn).toLowerCase()===vt.toLowerCase():Mn.has(Jn)},[it,vt,(0,qe.Z)(Mn).toString(),Mn.size]);(0,fe.useEffect)(function(){var Jn=setTimeout(function(){if(!Qe&&ye&&Mn.size===1){var pn=Array.from(Mn)[0],hn=er.findIndex(function(nn){var Bn=nn.data;return vt?String(Bn.value).startsWith(vt):Bn.value===pn});hn!==-1&&(br(hn),sr(hn))}});if(ye){var un;(un=Wn.current)===null||un===void 0||un.scrollTo(void 0)}return function(){return clearTimeout(Jn)}},[ye,vt]);var Er=function(un){un!==void 0&&Ln(un,{selected:!Mn.has(un)}),Qe||ot(!1)};if(fe.useImperativeHandle(Ee,function(){return{onKeyDown:function(un){var pn=un.which,hn=un.ctrlKey;switch(pn){case tt.Z.N:case tt.Z.P:case tt.Z.UP:case tt.Z.DOWN:{var nn=0;if(pn===tt.Z.UP?nn=-1:pn===tt.Z.DOWN?nn=1:et()&&hn&&(pn===tt.Z.N?nn=1:pn===tt.Z.P&&(nn=-1)),nn!==0){var Bn=yr(Qn+nn,nn);sr(Bn),br(Bn,!0)}break}case tt.Z.TAB:case tt.Z.ENTER:{var Vn,dn=er[Qn];dn&&!(dn!=null&&(Vn=dn.data)!==null&&Vn!==void 0&&Vn.disabled)&&!dr?Er(dn.value):Er(void 0),ye&&un.preventDefault();break}case tt.Z.ESC:ot(!1),ye&&un.stopPropagation()}},onKeyUp:function(){},scrollTo:function(un){sr(un)}}}),er.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(He,"_list"),className:"".concat(wn,"-empty"),onMouseDown:pr},We);var Br=Object.keys(xn).map(function(Jn){return xn[Jn]}),Ir=function(un){return un.label};function Mr(Jn,un){var pn=Jn.group;return{role:pn?"presentation":"option",id:"".concat(He,"_list_").concat(un)}}var ir=function(un){var pn=er[un];if(!pn)return null;var hn=pn.data||{},nn=hn.value,Bn=pn.group,Vn=(0,Ct.Z)(hn,!0),dn=Ir(pn);return pn?fe.createElement("div",(0,z.Z)({"aria-label":typeof dn=="string"&&!Bn?dn:null},Vn,{key:un},Mr(pn,un),{"aria-selected":zr(nn)}),nn):null},rr={role:"listbox",id:"".concat(He,"_list")};return fe.createElement(fe.Fragment,null,Pn&&fe.createElement("div",(0,z.Z)({},rr,{style:{height:0,width:0,overflow:"hidden"}}),ir(Qn-1),ir(Qn),ir(Qn+1)),fe.createElement(De.Z,{itemKey:"key",ref:Wn,data:er,height:Yn,itemHeight:Gn,fullHeight:!1,onMouseDown:pr,onScroll:Ge,virtual:Pn,direction:Fn,innerProps:Pn?null:rr},function(Jn,un){var pn=Jn.group,hn=Jn.groupOption,nn=Jn.data,Bn=Jn.label,Vn=Jn.value,dn=nn.key;if(pn){var rn,En=(rn=nn.title)!==null&&rn!==void 0?rn:Nt(Bn)?Bn.toString():void 0;return fe.createElement("div",{className:Se()(wn,"".concat(wn,"-group"),nn.className),title:En},Bn!==void 0?Bn:dn)}var Tn=nn.disabled,cr=nn.title,kr=nn.children,Pr=nn.style,Rr=nn.className,Ar=(0,Ce.Z)(nn,gt),Fr=(0,Gt.Z)(Ar,Br),Gr=ur(Vn),Hr=Tn||!Gr&&dr,_r="".concat(wn,"-option"),ti=Se()(wn,_r,Rr,(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)({},"".concat(_r,"-grouped"),hn),"".concat(_r,"-active"),Qn===un&&!Hr),"".concat(_r,"-disabled"),Hr),"".concat(_r,"-selected"),Gr)),Ei=Ir(Jn),Ni=!Hn||typeof Hn=="function"||Gr,xi=typeof Ei=="number"?Ei:Ei||Vn,si=Nt(xi)?xi.toString():void 0;return cr!==void 0&&(si=cr),fe.createElement("div",(0,z.Z)({},(0,Ct.Z)(Fr),Pn?{}:Mr(Jn,un),{"aria-selected":zr(Vn),className:ti,title:si,onMouseMove:function(){Qn===un||Hr||br(un)},onClick:function(){Hr||Er(Vn)},style:Pr}),fe.createElement("div",{className:"".concat(_r,"-content")},typeof _n=="function"?_n(Jn,{index:un}):xi),fe.isValidElement(Hn)||Gr,Ni&&fe.createElement(je,{className:"".concat(wn,"-option-state"),customizeIcon:Hn,customizeIconProps:{value:Vn,disabled:Hr,isSelected:Gr}},Gr?"\u2713":null))}))},cn=fe.forwardRef(_t),Sn=cn,Cn=function(ze,ct){var Ee=fe.useRef({values:new Map,options:new Map}),Fe=fe.useMemo(function(){var He=Ee.current,ye=He.values,Qe=He.options,it=ze.map(function(We){if(We.label===void 0){var Ge;return(0,_e.Z)((0,_e.Z)({},We),{},{label:(Ge=ye.get(We.value))===null||Ge===void 0?void 0:Ge.label})}return We}),vt=new Map,ot=new Map;return it.forEach(function(We){vt.set(We.value,We),ot.set(We.value,ct.get(We.value)||Qe.get(We.value))}),Ee.current.values=vt,Ee.current.options=ot,it},[ze,ct]),Ie=fe.useCallback(function(He){return ct.get(He)||Ee.current.options.get(He)},[ct]);return[Fe,Ie]};function sn(ze,ct){return ke(ze).join("").toUpperCase().includes(ct)}var yn=function(ze,ct,Ee,Fe,Ie){return fe.useMemo(function(){if(!Ee||Fe===!1)return ze;var He=ct.options,ye=ct.label,Qe=ct.value,it=[],vt=typeof Fe=="function",ot=Ee.toUpperCase(),We=vt?Fe:function(st,en){return Ie?sn(en[Ie],ot):en[He]?sn(en[ye!=="children"?ye:"label"],ot):sn(en[Qe],ot)},Ge=vt?function(st){return dt(st)}:function(st){return st};return ze.forEach(function(st){if(st[He]){var en=We(Ee,Ge(st));if(en)it.push(st);else{var Xt=st[He].filter(function(qt){return We(Ee,Ge(qt))});Xt.length&&it.push((0,_e.Z)((0,_e.Z)({},st),{},(0,me.Z)({},He,Xt)))}return}We(Ee,Ge(st))&&it.push(st)}),it},[ze,Fe,Ie,Ee,ct])},gn=ie(6551),$n=ie(11592),bn=["children","value"],vn=["children"];function Jt(ze){var ct=ze,Ee=ct.key,Fe=ct.props,Ie=Fe.children,He=Fe.value,ye=(0,Ce.Z)(Fe,bn);return(0,_e.Z)({key:Ee,value:He!==void 0?He:Ee,children:Ie},ye)}function On(ze){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,$n.Z)(ze).map(function(Ee,Fe){if(!fe.isValidElement(Ee)||!Ee.type)return null;var Ie=Ee,He=Ie.type.isSelectOptGroup,ye=Ie.key,Qe=Ie.props,it=Qe.children,vt=(0,Ce.Z)(Qe,vn);return ct||!He?Jt(Ee):(0,_e.Z)((0,_e.Z)({key:"__RC_SELECT_GRP__".concat(ye===null?Fe:ye,"__"),label:ye},vt),{},{options:On(it)})}).filter(function(Ee){return Ee})}var mn=function(ct,Ee,Fe,Ie,He){return fe.useMemo(function(){var ye=ct,Qe=!ct;Qe&&(ye=On(Ee));var it=new Map,vt=new Map,ot=function(st,en,Xt){Xt&&typeof Xt=="string"&&st.set(en[Xt],en)},We=function Ge(st){for(var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xt=0;Xt1&&arguments[1]!==void 0?arguments[1]:!1,ye=0;ye0?gr(wr.options):wr.options}):wr})},Ni=fe.useMemo(function(){return Ln?Ei(ti):ti},[ti,Ln,rr]),xi=fe.useMemo(function(){return Ke(Ni,{fieldNames:Ir,childrenAsData:Er})},[Ni,Ir,Er]),si=function(Or){var Cr=Bn(Or);if(En(Cr),fr&&(Cr.length!==Pr.length||Cr.some(function(Xr,_i){var Ii;return((Ii=Pr[_i])===null||Ii===void 0?void 0:Ii.value)!==(Xr==null?void 0:Xr.value)}))){var wr=lr?Cr:Cr.map(function(Xr){return Xr.value}),Zr=Cr.map(function(Xr){return dt(Rr(Xr.value))});fr(zr?wr:wr[0],zr?Zr:Zr[0])}},Ri=fe.useState(null),jr=(0,xe.Z)(Ri,2),Ki=jr[0],qr=jr[1],xr=fe.useState(0),$r=(0,xe.Z)(xr,2),Vr=$r[0],Sr=$r[1],Nr=Yn!==void 0?Yn:Fe!=="combobox",Tr=fe.useCallback(function(gr,Or){var Cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},wr=Cr.source,Zr=wr===void 0?"keyboard":wr;Sr(Or),ye&&Fe==="combobox"&&gr!==null&&Zr==="keyboard"&&qr(String(gr))},[ye,Fe]),ui=function(Or,Cr,wr){var Zr=function(){var io,Xi=Rr(Or);return[lr?{label:Xi==null?void 0:Xi[Ir.label],value:Or,key:(io=Xi==null?void 0:Xi.key)!==null&&io!==void 0?io:Or}:Or,dt(Xi)]};if(Cr&&st){var Xr=Zr(),_i=(0,xe.Z)(Xr,2),Ii=_i[0],vi=_i[1];st(Ii,vi)}else if(!Cr&&en&&wr!=="clear"){var ri=Zr(),Vi=(0,xe.Z)(ri,2),eo=Vi[0],Fi=Vi[1];en(eo,Fi)}},Mi=jn(function(gr,Or){var Cr,wr=zr?Or.selected:!0;wr?Cr=zr?[].concat((0,qe.Z)(Pr),[gr]):[gr]:Cr=Pr.filter(function(Zr){return Zr.value!==gr}),si(Cr),ui(gr,wr),Fe==="combobox"?qr(""):(!Yt||Ge)&&(Jn(""),qr(""))}),fi=function(Or,Cr){si(Or);var wr=Cr.type,Zr=Cr.values;(wr==="remove"||wr==="clear")&&Zr.forEach(function(Xr){ui(Xr.value,!1,wr)})},ni=function(Or,Cr){if(Jn(Or),qr(null),Cr.source==="submit"){var wr=(Or||"").trim();if(wr){var Zr=Array.from(new Set([].concat((0,qe.Z)(Fr),[wr])));si(Zr),ui(wr,!0),Jn("")}return}Cr.source!=="blur"&&(Fe==="combobox"&&si(Or),ot==null||ot(Or))},xo=function(Or){var Cr=Or;Fe!=="tags"&&(Cr=Or.map(function(Zr){var Xr=hn.get(Zr);return Xr==null?void 0:Xr.value}).filter(function(Zr){return Zr!==void 0}));var wr=Array.from(new Set([].concat((0,qe.Z)(Fr),(0,qe.Z)(Cr))));si(wr),wr.forEach(function(Zr){ui(Zr,!0)})},so=fe.useMemo(function(){var gr=_n!==!1&&qt!==!1;return(0,_e.Z)((0,_e.Z)({},un),{},{flattenOptions:xi,onActiveValue:Tr,defaultActiveFirstOption:Nr,onSelect:Mi,menuItemSelectedIcon:Gn,rawValues:Fr,fieldNames:Ir,virtual:gr,direction:wn,listHeight:Wn,listItemHeight:pr,childrenAsData:Er,maxCount:Qn,optionRender:Pn})},[Qn,un,xi,Tr,Nr,Mi,Gn,Fr,Ir,_n,qt,wn,Wn,pr,Er,Pn]);return fe.createElement(Lt.Provider,{value:so},fe.createElement(It,(0,z.Z)({},mr,{id:br,prefixCls:He,ref:ct,omitDomProps:ar,mode:Fe,displayValues:Ar,onDisplayValuesChange:fi,direction:wn,searchValue:rr,onSearch:ni,autoClearSearchValue:Ge,onSearchSplit:xo,dropdownMatchSelectWidth:qt,OptionList:Sn,emptyOptions:!xi.length,activeValue:Ki,activeDescendantId:"".concat(br,"_list_").concat(Vr)})))}),on=jt;on.Option=ut,on.OptGroup=Ut;var zn=on,nr=zn},22711:function(tn,Wt,ie){"use strict";ie.r(Wt),ie.d(Wt,{ResizableTextArea:function(){return Ne},default:function(){return wt}});var z=ie(60499),qe=ie(18642),me=ie(85899),_e=ie(77654),xe=ie(72190),Ce=ie(42244),Oe=ie(92310),Be=ie.n(Oe),Pe=ie(36901),fe=ie(66003),Je=ie(30292),Se=ie(18929),Dt=ie(59301),nt=ie(43749),$e=ie(29301),Ve=ie(34280),je=ie(16089),Et=` 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; `,Bt=["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"],zt={},Pt;function xt(ke){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ot=ke.getAttribute("id")||ke.getAttribute("data-reactid")||ke.getAttribute("name");if(Te&&zt[Ot])return zt[Ot];var ve=window.getComputedStyle(ke),se=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),Le=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),ht=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),yt=Bt.map(function(Ze){return"".concat(Ze,":").concat(ve.getPropertyValue(Ze))}).join(";"),we={sizingStyle:yt,paddingSize:Le,borderSize:ht,boxSizing:se};return Te&&Ot&&(zt[Ot]=we),we}function St(ke){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Pt||(Pt=document.createElement("textarea"),Pt.setAttribute("tab-index","-1"),Pt.setAttribute("aria-hidden","true"),Pt.setAttribute("name","hiddenTextarea"),document.body.appendChild(Pt)),ke.getAttribute("wrap")?Pt.setAttribute("wrap",ke.getAttribute("wrap")):Pt.removeAttribute("wrap");var se=xt(ke,Te),Le=se.paddingSize,ht=se.borderSize,yt=se.boxSizing,we=se.sizingStyle;Pt.setAttribute("style","".concat(we,";").concat(Et)),Pt.value=ke.value||ke.placeholder||"";var Ze=void 0,Ue=void 0,Kt,kt=Pt.scrollHeight;if(yt==="border-box"?kt+=ht:yt==="content-box"&&(kt-=Le),Ot!==null||ve!==null){Pt.value=" ";var Tt=Pt.scrollHeight-Le;Ot!==null&&(Ze=Tt*Ot,yt==="border-box"&&(Ze=Ze+Le+ht),kt=Math.max(Ze,kt)),ve!==null&&(Ue=Tt*ve,yt==="border-box"&&(Ue=Ue+Le+ht),Kt=kt>Ue?"":"hidden",kt=Math.min(Ue,kt))}var Re={height:kt,overflowY:Kt,resize:"none"};return Ze&&(Re.minHeight=Ze),Ue&&(Re.maxHeight=Ue),Re}var tt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ft=0,Ct=1,Xe=2,bt=Dt.forwardRef(function(ke,Te){var Ot=ke,ve=Ot.prefixCls,se=Ot.defaultValue,Le=Ot.value,ht=Ot.autoSize,yt=Ot.onResize,we=Ot.className,Ze=Ot.style,Ue=Ot.disabled,Kt=Ot.onChange,kt=Ot.onInternalAutoSize,Tt=(0,Ce.Z)(Ot,tt),Re=(0,Se.Z)(se,{value:Le,postState:function(ut){return ut!=null?ut:""}}),$t=(0,xe.Z)(Re,2),lt=$t[0],ae=$t[1],te=function(ut){ae(ut.target.value),Kt==null||Kt(ut)},ee=Dt.useRef();Dt.useImperativeHandle(Te,function(){return{textArea:ee.current}});var oe=Dt.useMemo(function(){return ht&&(0,nt.Z)(ht)==="object"?[ht.minRows,ht.maxRows]:[]},[ht]),ue=(0,xe.Z)(oe,2),ne=ue[0],he=ue[1],be=!!ht,pt=function(){try{if(document.activeElement===ee.current){var ut=ee.current,At=ut.selectionStart,Gt=ut.selectionEnd,De=ut.scrollTop;ee.current.setSelectionRange(At,Gt),ee.current.scrollTop=De}}catch(et){}},Me=Dt.useState(Xe),Ke=(0,xe.Z)(Me,2),dt=Ke[0],Mt=Ke[1],mt=Dt.useState(),Lt=(0,xe.Z)(mt,2),Ht=Lt[0],Zt=Lt[1],ln=function(){Mt(Ft)};(0,Ve.Z)(function(){be&&ln()},[Le,ne,he,be]),(0,Ve.Z)(function(){if(dt===Ft)Mt(Ct);else if(dt===Ct){var Ae=St(ee.current,!1,ne,he);Mt(Xe),Zt(Ae)}else pt()},[dt]);var Yt=Dt.useRef(),an=function(){je.Z.cancel(Yt.current)},It=function(ut){dt===Xe&&(yt==null||yt(ut),ht&&(an(),Yt.current=(0,je.Z)(function(){ln()})))};Dt.useEffect(function(){return an},[]);var Qt=be?Ht:null,Ut=(0,me.Z)((0,me.Z)({},Ze),Qt);return(dt===Ft||dt===Ct)&&(Ut.overflowY="hidden",Ut.overflowX="hidden"),Dt.createElement($e.Z,{onResize:It,disabled:!(ht||yt)},Dt.createElement("textarea",(0,z.Z)({},Tt,{ref:ee,style:Ut,className:Be()(ve,we,(0,qe.Z)({},"".concat(ve,"-disabled"),Ue)),disabled:Ue,value:lt,onChange:te})))}),Ne=bt,rt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],at=Dt.forwardRef(function(ke,Te){var Ot,ve=ke.defaultValue,se=ke.value,Le=ke.onFocus,ht=ke.onBlur,yt=ke.onChange,we=ke.allowClear,Ze=ke.maxLength,Ue=ke.onCompositionStart,Kt=ke.onCompositionEnd,kt=ke.suffix,Tt=ke.prefixCls,Re=Tt===void 0?"rc-textarea":Tt,$t=ke.showCount,lt=ke.count,ae=ke.className,te=ke.style,ee=ke.disabled,oe=ke.hidden,ue=ke.classNames,ne=ke.styles,he=ke.onResize,be=ke.onClear,pt=ke.onPressEnter,Me=ke.readOnly,Ke=ke.autoSize,dt=ke.onKeyDown,Mt=(0,Ce.Z)(ke,rt),mt=(0,Se.Z)(ve,{value:se,defaultValue:ve}),Lt=(0,xe.Z)(mt,2),Ht=Lt[0],Zt=Lt[1],ln=Ht==null?"":String(Ht),Yt=Dt.useState(!1),an=(0,xe.Z)(Yt,2),It=an[0],Qt=an[1],Ut=Dt.useRef(!1),Ae=Dt.useState(null),ut=(0,xe.Z)(Ae,2),At=ut[0],Gt=ut[1],De=(0,Dt.useRef)(null),et=(0,Dt.useRef)(null),gt=function(){var on;return(on=et.current)===null||on===void 0?void 0:on.textArea},Nt=function(){gt().focus()};(0,Dt.useImperativeHandle)(Te,function(){var jt;return{resizableTextArea:et.current,focus:Nt,blur:function(){gt().blur()},nativeElement:((jt=De.current)===null||jt===void 0?void 0:jt.nativeElement)||gt()}}),(0,Dt.useEffect)(function(){Qt(function(jt){return!ee&&jt})},[ee]);var _t=Dt.useState(null),cn=(0,xe.Z)(_t,2),Sn=cn[0],Cn=cn[1];Dt.useEffect(function(){if(Sn){var jt;(jt=gt()).setSelectionRange.apply(jt,(0,_e.Z)(Sn))}},[Sn]);var sn=(0,fe.Z)(lt,$t),yn=(Ot=sn.max)!==null&&Ot!==void 0?Ot:Ze,gn=Number(yn)>0,$n=sn.strategy(ln),bn=!!yn&&$n>yn,vn=function(on,zn){var nr=zn;!Ut.current&&sn.exceedFormatter&&sn.max&&sn.strategy(zn)>sn.max&&(nr=sn.exceedFormatter(zn,{max:sn.max}),zn!==nr&&Cn([gt().selectionStart||0,gt().selectionEnd||0])),Zt(nr),(0,Je.rJ)(on.currentTarget,on,yt,nr)},Jt=function(on){Ut.current=!0,Ue==null||Ue(on)},On=function(on){Ut.current=!1,vn(on,on.currentTarget.value),Kt==null||Kt(on)},mn=function(on){vn(on,on.target.value)},kn=function(on){on.key==="Enter"&&pt&&pt(on),dt==null||dt(on)},jn=function(on){Qt(!0),Le==null||Le(on)},Zn=function(on){Qt(!1),ht==null||ht(on)},An=function(on){Zt(""),Nt(),(0,Je.rJ)(gt(),on,yt)},Xn=kt,Nn;sn.show&&(sn.showFormatter?Nn=sn.showFormatter({value:ln,count:$n,maxLength:yn}):Nn="".concat($n).concat(gn?" / ".concat(yn):""),Xn=Dt.createElement(Dt.Fragment,null,Xn,Dt.createElement("span",{className:Be()("".concat(Re,"-data-count"),ue==null?void 0:ue.count),style:ne==null?void 0:ne.count},Nn)));var ar=function(on){var zn;he==null||he(on),(zn=gt())!==null&&zn!==void 0&&zn.style.height&&Gt(!0)},qn=!Ke&&!$t&&!we;return Dt.createElement(Pe.BaseInput,{ref:De,value:ln,allowClear:we,handleReset:An,suffix:Xn,prefixCls:Re,classNames:(0,me.Z)((0,me.Z)({},ue),{},{affixWrapper:Be()(ue==null?void 0:ue.affixWrapper,(0,qe.Z)((0,qe.Z)({},"".concat(Re,"-show-count"),$t),"".concat(Re,"-textarea-allow-clear"),we))}),disabled:ee,focused:It,className:Be()(ae,bn&&"".concat(Re,"-out-of-range")),style:(0,me.Z)((0,me.Z)({},te),At&&!qn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Nn=="string"?Nn:void 0}},hidden:oe,readOnly:Me,onClear:be},Dt.createElement(Ne,(0,z.Z)({},Mt,{autoSize:Ke,maxLength:Ze,onKeyDown:kn,onChange:mn,onFocus:jn,onBlur:Zn,onCompositionStart:Jt,onCompositionEnd:On,className:Be()(ue==null?void 0:ue.textarea),style:(0,me.Z)((0,me.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:Re,onResize:ar,ref:et,readOnly:Me})))}),pe=at,wt=pe},48911:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return lt}});var z=ie(60499),qe=ie(43749),me=ie(85899),_e=ie(18642),xe=ie(72190),Ce=ie(42244),Oe=ie(92310),Be=ie.n(Oe),Pe=ie(29301),fe=ie(70425),Je=ie(34280),Se=ie(59301),Dt=ie(4676),nt=Se.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,ue=ae.offsetX,ne=ae.children,he=ae.prefixCls,be=ae.onInnerResize,pt=ae.innerProps,Me=ae.rtl,Ke=ae.extra,dt={},Mt={display:"flex",flexDirection:"column"};return oe!==void 0&&(dt={height:ee,position:"relative",overflow:"hidden"},Mt=(0,me.Z)((0,me.Z)({},Mt),{},(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)({transform:"translateY(".concat(oe,"px)")},Me?"marginRight":"marginLeft",-ue),"position","absolute"),"left",0),"right",0),"top",0))),Se.createElement("div",{style:dt},Se.createElement(Pe.Z,{onResize:function(Lt){var Ht=Lt.offsetHeight;Ht&&be&&be()}},Se.createElement("div",(0,z.Z)({style:Mt,className:Be()((0,_e.Z)({},"".concat(he,"-holder-inner"),he)),ref:te},pt),ne,Ke)))});nt.displayName="Filler";var $e=nt;function Ve(ae){var te=ae.children,ee=ae.setRef,oe=Se.useCallback(function(ue){ee(ue)},[]);return Se.cloneElement(te,{ref:oe})}function je(ae,te,ee,oe,ue,ne,he,be){var pt=be.getKey;return ae.slice(te,ee+1).map(function(Me,Ke){var dt=te+Ke,Mt=he(Me,dt,{style:{width:oe},offsetX:ue}),mt=pt(Me);return Se.createElement(Ve,{key:mt,setRef:function(Ht){return ne(Me,Ht)}},Mt)})}function Et(ae,te,ee,oe){var ue=ee-ae,ne=te-ee,he=Math.min(ue,ne)*2;if(oe<=he){var be=Math.floor(oe/2);return oe%2?ee+be+1:ee-be}return ue>ne?ee-(oe-ne):ee+(oe-ue)}function Bt(ae,te,ee){var oe=ae.length,ue=te.length,ne,he;if(oe===0&&ue===0)return null;oe2&&arguments[2]!==void 0?arguments[2]:!1,dt=pt?Me<0&&be.current.left||Me>0&&be.current.right:Me<0&&be.current.top||Me>0&&be.current.bottom;return Ke&&dt?(clearTimeout(ne.current),ue.current=!1):(!dt||ue.current)&&he(),!ue.current&&dt}};function Ft(ae,te,ee,oe,ue,ne,he){var be=(0,Se.useRef)(0),pt=(0,Se.useRef)(null),Me=(0,Se.useRef)(null),Ke=(0,Se.useRef)(!1),dt=tt(te,ee,oe,ue);function Mt(Yt,an){if(Pt.Z.cancel(pt.current),!dt(!1,an)){var It=Yt;if(!It._virtualHandled)It._virtualHandled=!0;else return;be.current+=an,Me.current=an,St||It.preventDefault(),pt.current=(0,Pt.Z)(function(){var Qt=Ke.current?10:1;he(be.current*Qt,!1),be.current=0})}}function mt(Yt,an){he(an,!0),St||Yt.preventDefault()}var Lt=(0,Se.useRef)(null),Ht=(0,Se.useRef)(null);function Zt(Yt){if(ae){Pt.Z.cancel(Ht.current),Ht.current=(0,Pt.Z)(function(){Lt.current=null},2);var an=Yt.deltaX,It=Yt.deltaY,Qt=Yt.shiftKey,Ut=an,Ae=It;(Lt.current==="sx"||!Lt.current&&Qt&&It&&!an)&&(Ut=It,Ae=0,Lt.current="sx");var ut=Math.abs(Ut),At=Math.abs(Ae);Lt.current===null&&(Lt.current=ne&&ut>At?"x":"y"),Lt.current==="y"?Mt(Yt,Ae):mt(Yt,Ut)}}function ln(Yt){ae&&(Ke.current=Yt.detail===Me.current)}return[Zt,ln]}function Ct(ae,te,ee,oe){var ue=Se.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,xe.Z)(ue,2),he=ne[0],be=ne[1],pt=function(Ke){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke,Mt=he.get(Ke),mt=he.get(dt);if(Mt===void 0||mt===void 0)for(var Lt=ae.length,Ht=be.length;Ht0&&arguments[0]!==void 0?arguments[0]:!1;Ke();var Lt=function(){var ln=!1;be.current.forEach(function(Yt,an){if(Yt&&Yt.offsetParent){var It=Yt.offsetHeight,Qt=getComputedStyle(Yt),Ut=Qt.marginTop,Ae=Qt.marginBottom,ut=at(Ut),At=at(Ae),Gt=It+ut+At;pt.current.get(an)!==Gt&&(pt.current.set(an,Gt),ln=!0)}}),ln&&he(function(Yt){return Yt+1})};if(mt)Lt();else{Me.current+=1;var Ht=Me.current;Promise.resolve().then(function(){Ht===Me.current&&Lt()})}}function Mt(mt,Lt){var Ht=ae(mt),Zt=be.current.get(Ht);Lt?(be.current.set(Ht,Lt),dt()):be.current.delete(Ht),!Zt!=!Lt&&(Lt?te==null||te(mt):ee==null||ee(mt))}return(0,Se.useEffect)(function(){return Ke},[]),[Mt,dt,pt.current,ne]}var wt=14/15;function ke(ae,te,ee){var oe=(0,Se.useRef)(!1),ue=(0,Se.useRef)(0),ne=(0,Se.useRef)(0),he=(0,Se.useRef)(null),be=(0,Se.useRef)(null),pt,Me=function(mt){if(oe.current){var Lt=Math.ceil(mt.touches[0].pageX),Ht=Math.ceil(mt.touches[0].pageY),Zt=ue.current-Lt,ln=ne.current-Ht,Yt=Math.abs(Zt)>Math.abs(ln);Yt?ue.current=Lt:ne.current=Ht;var an=ee(Yt,Yt?Zt:ln,!1,mt);an&&mt.preventDefault(),clearInterval(be.current),an&&(be.current=setInterval(function(){Yt?Zt*=wt:ln*=wt;var It=Math.floor(Yt?Zt:ln);(!ee(Yt,It,!0)||Math.abs(It)<=.1)&&clearInterval(be.current)},16))}},Ke=function(){oe.current=!1,pt()},dt=function(mt){pt(),mt.touches.length===1&&!oe.current&&(oe.current=!0,ue.current=Math.ceil(mt.touches[0].pageX),ne.current=Math.ceil(mt.touches[0].pageY),he.current=mt.target,he.current.addEventListener("touchmove",Me,{passive:!1}),he.current.addEventListener("touchend",Ke,{passive:!0}))};pt=function(){he.current&&(he.current.removeEventListener("touchmove",Me),he.current.removeEventListener("touchend",Ke))},(0,Je.Z)(function(){return ae&&te.current.addEventListener("touchstart",dt,{passive:!0}),function(){var Mt;(Mt=te.current)===null||Mt===void 0||Mt.removeEventListener("touchstart",dt),pt(),clearInterval(be.current)}},[ae])}function Te(ae){return Math.floor(Math.pow(ae,.5))}function Ot(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function ve(ae,te,ee){Se.useEffect(function(){var oe=te.current;if(ae&&oe){var ue=!1,ne,he,be=function(){Pt.Z.cancel(ne)},pt=function Mt(){be(),ne=(0,Pt.Z)(function(){ee(he),Mt()})},Me=function(){ue=!1,be()},Ke=function(mt){if(!(mt.target.draggable||mt.button!==0)){var Lt=mt;Lt._virtualHandled||(Lt._virtualHandled=!0,ue=!0)}},dt=function(mt){if(ue){var Lt=Ot(mt,!1),Ht=oe.getBoundingClientRect(),Zt=Ht.top,ln=Ht.bottom;if(Lt<=Zt){var Yt=Zt-Lt;he=-Te(Yt),pt()}else if(Lt>=ln){var an=Lt-ln;he=Te(an),pt()}else be()}};return oe.addEventListener("mousedown",Ke),oe.ownerDocument.addEventListener("mouseup",Me),oe.ownerDocument.addEventListener("mousemove",dt),oe.ownerDocument.addEventListener("dragend",Me),function(){oe.removeEventListener("mousedown",Ke),oe.ownerDocument.removeEventListener("mouseup",Me),oe.ownerDocument.removeEventListener("mousemove",dt),oe.ownerDocument.removeEventListener("dragend",Me),be()}}},[ae])}var se=10;function Le(ae,te,ee,oe,ue,ne,he,be){var pt=Se.useRef(),Me=Se.useState(null),Ke=(0,xe.Z)(Me,2),dt=Ke[0],Mt=Ke[1];return(0,Je.Z)(function(){if(dt&&dt.times=0;Nt-=1){var _t=ue(te[Nt]),cn=ee.get(_t);if(cn===void 0){Yt=!0;break}if(gt-=cn,gt<=0)break}switch(Qt){case"top":It=Ae-Zt;break;case"bottom":It=ut-ln+Zt;break;default:{var Sn=ae.current.scrollTop,Cn=Sn+ln;AeCn&&(an="bottom")}}It!==null&&he(It),It!==dt.lastTop&&(Yt=!0)}Yt&&Mt((0,me.Z)((0,me.Z)({},dt),{},{times:dt.times+1,targetAlign:an,lastTop:It}))}},[dt,ae.current]),function(mt){if(mt==null){be();return}if(Pt.Z.cancel(pt.current),typeof mt=="number")he(mt);else if(mt&&(0,qe.Z)(mt)==="object"){var Lt,Ht=mt.align;"index"in mt?Lt=mt.index:Lt=te.findIndex(function(Yt){return ue(Yt)===mt.key});var Zt=mt.offset,ln=Zt===void 0?0:Zt;Mt({times:0,index:Lt,offset:ln,originAlign:Ht})}}}var ht=Se.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,ue=ae.scrollOffset,ne=ae.scrollRange,he=ae.onStartMove,be=ae.onStopMove,pt=ae.onScroll,Me=ae.horizontal,Ke=ae.spinSize,dt=ae.containerSize,Mt=ae.style,mt=ae.thumbStyle,Lt=ae.showScrollBar,Ht=Se.useState(!1),Zt=(0,xe.Z)(Ht,2),ln=Zt[0],Yt=Zt[1],an=Se.useState(null),It=(0,xe.Z)(an,2),Qt=It[0],Ut=It[1],Ae=Se.useState(null),ut=(0,xe.Z)(Ae,2),At=ut[0],Gt=ut[1],De=!oe,et=Se.useRef(),gt=Se.useRef(),Nt=Se.useState(Lt),_t=(0,xe.Z)(Nt,2),cn=_t[0],Sn=_t[1],Cn=Se.useRef(),sn=function(){Lt===!0||Lt===!1||(clearTimeout(Cn.current),Sn(!0),Cn.current=setTimeout(function(){Sn(!1)},3e3))},yn=ne-dt||0,gn=dt-Ke||0,$n=Se.useMemo(function(){if(ue===0||yn===0)return 0;var An=ue/yn;return An*gn},[ue,yn,gn]),bn=function(Xn){Xn.stopPropagation(),Xn.preventDefault()},vn=Se.useRef({top:$n,dragging:ln,pageY:Qt,startTop:At});vn.current={top:$n,dragging:ln,pageY:Qt,startTop:At};var Jt=function(Xn){Yt(!0),Ut(Ot(Xn,Me)),Gt(vn.current.top),he(),Xn.stopPropagation(),Xn.preventDefault()};Se.useEffect(function(){var An=function(qn){qn.preventDefault()},Xn=et.current,Nn=gt.current;return Xn.addEventListener("touchstart",An,{passive:!1}),Nn.addEventListener("touchstart",Jt,{passive:!1}),function(){Xn.removeEventListener("touchstart",An),Nn.removeEventListener("touchstart",Jt)}},[]);var On=Se.useRef();On.current=yn;var mn=Se.useRef();mn.current=gn,Se.useEffect(function(){if(ln){var An,Xn=function(qn){var jt=vn.current,on=jt.dragging,zn=jt.pageY,nr=jt.startTop;Pt.Z.cancel(An);var ze=et.current.getBoundingClientRect(),ct=dt/(Me?ze.width:ze.height);if(on){var Ee=(Ot(qn,Me)-zn)*ct,Fe=nr;!De&&Me?Fe-=Ee:Fe+=Ee;var Ie=On.current,He=mn.current,ye=He?Fe/He:0,Qe=Math.ceil(ye*Ie);Qe=Math.max(Qe,0),Qe=Math.min(Qe,Ie),An=(0,Pt.Z)(function(){pt(Qe,Me)})}},Nn=function(){Yt(!1),be()};return window.addEventListener("mousemove",Xn,{passive:!0}),window.addEventListener("touchmove",Xn,{passive:!0}),window.addEventListener("mouseup",Nn,{passive:!0}),window.addEventListener("touchend",Nn,{passive:!0}),function(){window.removeEventListener("mousemove",Xn),window.removeEventListener("touchmove",Xn),window.removeEventListener("mouseup",Nn),window.removeEventListener("touchend",Nn),Pt.Z.cancel(An)}}},[ln]),Se.useEffect(function(){return sn(),function(){clearTimeout(Cn.current)}},[ue]),Se.useImperativeHandle(te,function(){return{delayHidden:sn}});var kn="".concat(ee,"-scrollbar"),jn={position:"absolute",visibility:cn?null:"hidden"},Zn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Me?(Object.assign(jn,{height:8,left:0,right:0,bottom:0}),Object.assign(Zn,(0,_e.Z)({height:"100%",width:Ke},De?"left":"right",$n))):(Object.assign(jn,(0,_e.Z)({width:8,top:0,bottom:0},De?"right":"left",0)),Object.assign(Zn,{width:"100%",height:Ke,top:$n})),Se.createElement("div",{ref:et,className:Be()(kn,(0,_e.Z)((0,_e.Z)((0,_e.Z)({},"".concat(kn,"-horizontal"),Me),"".concat(kn,"-vertical"),!Me),"".concat(kn,"-visible"),cn)),style:(0,me.Z)((0,me.Z)({},jn),Mt),onMouseDown:bn,onMouseMove:sn},Se.createElement("div",{ref:gt,className:Be()("".concat(kn,"-thumb"),(0,_e.Z)({},"".concat(kn,"-thumb-moving"),ln)),style:(0,me.Z)((0,me.Z)({},Zn),mt),onMouseDown:Jt}))}),yt=ht,we=20;function Ze(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=ae/te*ae;return isNaN(ee)&&(ee=0),ee=Math.max(ee,we),Math.floor(ee)}var Ue=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Kt=[],kt={overflowY:"auto",overflowAnchor:"none"};function Tt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,ue=ae.className,ne=ae.height,he=ae.itemHeight,be=ae.fullHeight,pt=be===void 0?!0:be,Me=ae.style,Ke=ae.data,dt=ae.children,Mt=ae.itemKey,mt=ae.virtual,Lt=ae.direction,Ht=ae.scrollWidth,Zt=ae.component,ln=Zt===void 0?"div":Zt,Yt=ae.onScroll,an=ae.onVirtualScroll,It=ae.onVisibleChange,Qt=ae.innerProps,Ut=ae.extraRender,Ae=ae.styles,ut=ae.showScrollBar,At=ut===void 0?"optional":ut,Gt=(0,Ce.Z)(ae,Ue),De=Se.useCallback(function(un){return typeof Mt=="function"?Mt(un):un==null?void 0:un[Mt]},[Mt]),et=pe(De,null,null),gt=(0,xe.Z)(et,4),Nt=gt[0],_t=gt[1],cn=gt[2],Sn=gt[3],Cn=!!(mt!==!1&&ne&&he),sn=Se.useMemo(function(){return Object.values(cn.maps).reduce(function(un,pn){return un+pn},0)},[cn.id,cn.maps]),yn=Cn&&Ke&&(Math.max(he*Ke.length,sn)>ne||!!Ht),gn=Lt==="rtl",$n=Be()(oe,(0,_e.Z)({},"".concat(oe,"-rtl"),gn),ue),bn=Ke||Kt,vn=(0,Se.useRef)(),Jt=(0,Se.useRef)(),On=(0,Se.useRef)(),mn=(0,Se.useState)(0),kn=(0,xe.Z)(mn,2),jn=kn[0],Zn=kn[1],An=(0,Se.useState)(0),Xn=(0,xe.Z)(An,2),Nn=Xn[0],ar=Xn[1],qn=(0,Se.useState)(!1),jt=(0,xe.Z)(qn,2),on=jt[0],zn=jt[1],nr=function(){zn(!0)},ze=function(){zn(!1)},ct={getKey:De};function Ee(un){Zn(function(pn){var hn;typeof un=="function"?hn=un(pn):hn=un;var nn=Yn(hn);return vn.current.scrollTop=nn,nn})}var Fe=(0,Se.useRef)({start:0,end:bn.length}),Ie=(0,Se.useRef)(),He=zt(bn,De),ye=(0,xe.Z)(He,1),Qe=ye[0];Ie.current=Qe;var it=Se.useMemo(function(){if(!Cn)return{scrollHeight:void 0,start:0,end:bn.length-1,offset:void 0};if(!yn){var un;return{scrollHeight:((un=Jt.current)===null||un===void 0?void 0:un.offsetHeight)||0,start:0,end:bn.length-1,offset:void 0}}for(var pn=0,hn,nn,Bn,Vn=bn.length,dn=0;dn=jn&&hn===void 0&&(hn=dn,nn=pn),cr>jn+ne&&Bn===void 0&&(Bn=dn),pn=cr}return hn===void 0&&(hn=0,nn=0,Bn=Math.ceil(ne/he)),Bn===void 0&&(Bn=bn.length-1),Bn=Math.min(Bn+1,bn.length-1),{scrollHeight:pn,start:hn,end:Bn,offset:nn}},[yn,Cn,jn,bn,Sn,ne]),vt=it.scrollHeight,ot=it.start,We=it.end,Ge=it.offset;Fe.current.start=ot,Fe.current.end=We,Se.useLayoutEffect(function(){var un=cn.getRecord();if(un.size===1){var pn=Array.from(un.keys())[0],hn=un.get(pn),nn=bn[ot];if(nn&&hn===void 0){var Bn=De(nn);if(Bn===pn){var Vn=cn.get(pn),dn=Vn-he;Ee(function(rn){return rn+dn})}}}cn.resetRecord()},[vt]);var st=Se.useState({width:0,height:ne}),en=(0,xe.Z)(st,2),Xt=en[0],qt=en[1],Dn=function(pn){qt({width:pn.offsetWidth,height:pn.offsetHeight})},Ln=(0,Se.useRef)(),Hn=(0,Se.useRef)(),Mn=Se.useMemo(function(){return Ze(Xt.width,Ht)},[Xt.width,Ht]),xn=Se.useMemo(function(){return Ze(Xt.height,vt)},[Xt.height,vt]),Pn=vt-ne,Fn=(0,Se.useRef)(Pn);Fn.current=Pn;function Yn(un){var pn=un;return Number.isNaN(Fn.current)||(pn=Math.min(pn,Fn.current)),pn=Math.max(pn,0),pn}var Gn=jn<=0,_n=jn>=Pn,wn=Nn<=0,er=Nn>=Ht,Wn=tt(Gn,_n,wn,er),dr=function(){return{x:gn?-Nn:Nn,y:jn}},pr=(0,Se.useRef)(dr()),sr=(0,fe.zX)(function(un){if(an){var pn=(0,me.Z)((0,me.Z)({},dr()),un);(pr.current.x!==pn.x||pr.current.y!==pn.y)&&(an(pn),pr.current=pn)}});function ur(un,pn){var hn=un;pn?((0,Dt.flushSync)(function(){ar(hn)}),sr()):Ee(hn)}function yr(un){var pn=un.currentTarget.scrollTop;pn!==jn&&Ee(pn),Yt==null||Yt(un),sr()}var lr=function(pn){var hn=pn,nn=Ht?Ht-Xt.width:0;return hn=Math.max(hn,0),hn=Math.min(hn,nn),hn},fr=(0,fe.zX)(function(un,pn){pn?((0,Dt.flushSync)(function(){ar(function(hn){var nn=hn+(gn?-un:un);return lr(nn)})}),sr()):Ee(function(hn){var nn=hn+un;return nn})}),Qn=Ft(Cn,Gn,_n,wn,er,!!Ht,fr),mr=(0,xe.Z)(Qn,2),br=mr[0],zr=mr[1];ke(Cn,vn,function(un,pn,hn,nn){var Bn=nn;return Wn(un,pn,hn)?!1:!Bn||!Bn._virtualHandled?(Bn&&(Bn._virtualHandled=!0),br({preventDefault:function(){},deltaX:un?pn:0,deltaY:un?0:pn}),!0):!1}),ve(yn,vn,function(un){Ee(function(pn){return pn+un})}),(0,Je.Z)(function(){function un(hn){var nn=Gn&&hn.detail<0,Bn=_n&&hn.detail>0;Cn&&!nn&&!Bn&&hn.preventDefault()}var pn=vn.current;return pn.addEventListener("wheel",br,{passive:!1}),pn.addEventListener("DOMMouseScroll",zr,{passive:!0}),pn.addEventListener("MozMousePixelScroll",un,{passive:!1}),function(){pn.removeEventListener("wheel",br),pn.removeEventListener("DOMMouseScroll",zr),pn.removeEventListener("MozMousePixelScroll",un)}},[Cn,Gn,_n]),(0,Je.Z)(function(){if(Ht){var un=lr(Nn);ar(un),sr({x:un})}},[Xt.width,Ht]);var Er=function(){var pn,hn;(pn=Ln.current)===null||pn===void 0||pn.delayHidden(),(hn=Hn.current)===null||hn===void 0||hn.delayHidden()},Br=Le(vn,bn,cn,he,De,function(){return _t(!0)},Ee,Er);Se.useImperativeHandle(te,function(){return{nativeElement:On.current,getScrollInfo:dr,scrollTo:function(pn){function hn(nn){return nn&&(0,qe.Z)(nn)==="object"&&("left"in nn||"top"in nn)}hn(pn)?(pn.left!==void 0&&ar(lr(pn.left)),Br(pn.top)):Br(pn)}}}),(0,Je.Z)(function(){if(It){var un=bn.slice(ot,We+1);It(un,bn)}},[ot,We,bn]);var Ir=Ct(bn,De,cn,he),Mr=Ut==null?void 0:Ut({start:ot,end:We,virtual:yn,offsetX:Nn,offsetY:Ge,rtl:gn,getSize:Ir}),ir=je(bn,ot,We,Ht,Nn,Nt,dt,ct),rr=null;ne&&(rr=(0,me.Z)((0,_e.Z)({},pt?"height":"maxHeight",ne),kt),Cn&&(rr.overflowY="hidden",Ht&&(rr.overflowX="hidden"),on&&(rr.pointerEvents="none")));var Jn={};return gn&&(Jn.dir="rtl"),Se.createElement("div",(0,z.Z)({ref:On,style:(0,me.Z)((0,me.Z)({},Me),{},{position:"relative"}),className:$n},Jn,Gt),Se.createElement(Pe.Z,{onResize:Dn},Se.createElement(ln,{className:"".concat(oe,"-holder"),style:rr,ref:vn,onScroll:yr,onMouseEnter:Er},Se.createElement($e,{prefixCls:oe,height:vt,offsetX:Nn,offsetY:Ge,scrollWidth:Ht,onInnerResize:_t,ref:Jt,innerProps:Qt,rtl:gn,extra:Mr},ir))),yn&&vt>ne&&Se.createElement(yt,{ref:Ln,prefixCls:oe,scrollOffset:jn,scrollRange:vt,rtl:gn,onScroll:ur,onStartMove:nr,onStopMove:ze,spinSize:xn,containerSize:Xt.height,style:Ae==null?void 0:Ae.verticalScrollBar,thumbStyle:Ae==null?void 0:Ae.verticalScrollBarThumb,showScrollBar:At}),yn&&Ht>Xt.width&&Se.createElement(yt,{ref:Hn,prefixCls:oe,scrollOffset:Nn,scrollRange:Ht,rtl:gn,onScroll:ur,onStartMove:nr,onStopMove:ze,spinSize:Mn,containerSize:Xt.width,horizontal:!0,style:Ae==null?void 0:Ae.horizontalScrollBar,thumbStyle:Ae==null?void 0:Ae.horizontalScrollBarThumb,showScrollBar:At}))}var Re=Se.forwardRef(Tt);Re.displayName="List";var $t=Re,lt=$t},4977:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(tn,Wt,ie){"use strict";ie.d(Wt,{Z:function(){return Be}});const z=Pe=>typeof Pe=="object"&&Pe!=null&&Pe.nodeType===1,qe=(Pe,fe)=>(!fe||Pe!=="hidden")&&Pe!=="visible"&&Pe!=="clip",me=(Pe,fe)=>{if(Pe.clientHeight{const Dt=(nt=>{if(!nt.ownerDocument||!nt.ownerDocument.defaultView)return null;try{return nt.ownerDocument.defaultView.frameElement}catch($e){return null}})(Se);return!!Dt&&(Dt.clientHeightntfe||nt>Pe&&$e=fe&&Ve>=Je?nt-Pe-Se:$e>fe&&VeJe?$e-fe+Dt:0,xe=Pe=>{const fe=Pe.parentElement;return fe==null?Pe.getRootNode().host||null:fe},Ce=(Pe,fe)=>{var Je,Se,Dt,nt;if(typeof document=="undefined")return[];const{scrollMode:$e,block:Ve,inline:je,boundary:Et,skipOverflowHiddenElements:Bt}=fe,zt=typeof Et=="function"?Et:yt=>yt!==Et;if(!z(Pe))throw new TypeError("Invalid target");const Pt=document.scrollingElement||document.documentElement,xt=[];let St=Pe;for(;z(St)&&zt(St);){if(St=xe(St),St===Pt){xt.push(St);break}St!=null&&St===document.body&&me(St)&&!me(document.documentElement)||St!=null&&me(St,Bt)&&xt.push(St)}const tt=(Se=(Je=window.visualViewport)==null?void 0:Je.width)!=null?Se:innerWidth,Ft=(nt=(Dt=window.visualViewport)==null?void 0:Dt.height)!=null?nt:innerHeight,{scrollX:Ct,scrollY:Xe}=window,{height:bt,width:Ne,top:rt,right:at,bottom:pe,left:wt}=Pe.getBoundingClientRect(),{top:ke,right:Te,bottom:Ot,left:ve}=(yt=>{const we=window.getComputedStyle(yt);return{top:parseFloat(we.scrollMarginTop)||0,right:parseFloat(we.scrollMarginRight)||0,bottom:parseFloat(we.scrollMarginBottom)||0,left:parseFloat(we.scrollMarginLeft)||0}})(Pe);let se=Ve==="start"||Ve==="nearest"?rt-ke:Ve==="end"?pe+Ot:rt+bt/2-ke+Ot,Le=je==="center"?wt+Ne/2-ve+Te:je==="end"?at+Te:wt-ve;const ht=[];for(let yt=0;yt=0&&wt>=0&&pe<=Ft&&at<=tt&&(we===Pt&&!me(we)||rt>=Kt&&pe<=Tt&&wt>=Re&&at<=kt))return ht;const $t=getComputedStyle(we),lt=parseInt($t.borderLeftWidth,10),ae=parseInt($t.borderTopWidth,10),te=parseInt($t.borderRightWidth,10),ee=parseInt($t.borderBottomWidth,10);let oe=0,ue=0;const ne="offsetWidth"in we?we.offsetWidth-we.clientWidth-lt-te:0,he="offsetHeight"in we?we.offsetHeight-we.clientHeight-ae-ee:0,be="offsetWidth"in we?we.offsetWidth===0?0:Ue/we.offsetWidth:0,pt="offsetHeight"in we?we.offsetHeight===0?0:Ze/we.offsetHeight:0;if(Pt===we)oe=Ve==="start"?se:Ve==="end"?se-Ft:Ve==="nearest"?_e(Xe,Xe+Ft,Ft,ae,ee,Xe+se,Xe+se+bt,bt):se-Ft/2,ue=je==="start"?Le:je==="center"?Le-tt/2:je==="end"?Le-tt:_e(Ct,Ct+tt,tt,lt,te,Ct+Le,Ct+Le+Ne,Ne),oe=Math.max(0,oe+Xe),ue=Math.max(0,ue+Ct);else{oe=Ve==="start"?se-Kt-ae:Ve==="end"?se-Tt+ee+he:Ve==="nearest"?_e(Kt,Tt,Ze,ae,ee+he,se,se+bt,bt):se-(Kt+Ze/2)+he/2,ue=je==="start"?Le-Re-lt:je==="center"?Le-(Re+Ue/2)+ne/2:je==="end"?Le-kt+te+ne:_e(Re,kt,Ue,lt,te+ne,Le,Le+Ne,Ne);const{scrollLeft:Me,scrollTop:Ke}=we;oe=pt===0?0:Math.max(0,Math.min(Ke+oe/pt,we.scrollHeight-Ze/pt+he)),ue=be===0?0:Math.max(0,Math.min(Me+ue/be,we.scrollWidth-Ue/be+ne)),se+=Ke-oe,Le+=Me-ue}ht.push({el:we,top:oe,left:ue})}return ht},Oe=Pe=>Pe===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(Pe)?Pe:{block:"start",inline:"nearest"};function Be(Pe,fe){if(!Pe.isConnected||!(Dt=>{let nt=Dt;for(;nt&&nt.parentNode;){if(nt.parentNode===document)return!0;nt=nt.parentNode instanceof ShadowRoot?nt.parentNode.host:nt.parentNode}return!1})(Pe))return;const Je=(Dt=>{const nt=window.getComputedStyle(Dt);return{top:parseFloat(nt.scrollMarginTop)||0,right:parseFloat(nt.scrollMarginRight)||0,bottom:parseFloat(nt.scrollMarginBottom)||0,left:parseFloat(nt.scrollMarginLeft)||0}})(Pe);if((Dt=>typeof Dt=="object"&&typeof Dt.behavior=="function")(fe))return fe.behavior(Ce(Pe,fe));const Se=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:Dt,top:nt,left:$e}of Ce(Pe,Oe(fe))){const Ve=nt-Je.top+Je.bottom,je=$e-Je.left+Je.right;Dt.scroll({top:Ve,left:je,behavior:Se})}}}}]);