(self.webpackChunk=self.webpackChunk||[]).push([[6265],{40001:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});var z=ne(54476),nt=ne(59301),ve={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"},et=ve,be=ne(7657),Pe=function(fe,tt){return nt.createElement(be.Z,(0,z.Z)({},fe,{ref:tt,icon:et}))},Ne=nt.forwardRef(Pe),Je=Ne},26227:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});var z=ne(54476),nt=ne(59301),ve={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"},et=ve,be=ne(7657),Pe=function(fe,tt){return nt.createElement(be.Z,(0,z.Z)({},fe,{ref:tt,icon:et}))},Ne=nt.forwardRef(Pe),Je=Ne},49198:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});var z=ne(54476),nt=ne(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},et=ve,be=ne(7657),Pe=function(fe,tt){return nt.createElement(be.Z,(0,z.Z)({},fe,{ref:tt,icon:et}))},Ne=nt.forwardRef(Pe),Je=Ne},41464:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});var z=ne(54476),nt=ne(59301),ve={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"},et=ve,be=ne(7657),Pe=function(fe,tt){return nt.createElement(be.Z,(0,z.Z)({},fe,{ref:tt,icon:et}))},Ne=nt.forwardRef(Pe),Je=Ne},73331:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});var z=ne(54476),nt=ne(59301),ve={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"},et=ve,be=ne(7657),Pe=function(fe,tt){return nt.createElement(be.Z,(0,z.Z)({},fe,{ref:tt,icon:et}))},Ne=nt.forwardRef(Pe),Je=Ne},15277:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});var z=ne(54476),nt=ne(59301),ve={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"},et=ve,be=ne(7657),Pe=function(fe,tt){return nt.createElement(be.Z,(0,z.Z)({},fe,{ref:tt,icon:et}))},Ne=nt.forwardRef(Pe),Je=Ne},33853:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});var z=ne(54476),nt=ne(59301),ve={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"},et=ve,be=ne(7657),Pe=function(fe,tt){return nt.createElement(be.Z,(0,z.Z)({},fe,{ref:tt,icon:et}))},Ne=nt.forwardRef(Pe),Je=Ne},61485:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});var z=ne(54476),nt=ne(59301),ve={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"},et=ve,be=ne(7657),Pe=function(fe,tt){return nt.createElement(be.Z,(0,z.Z)({},fe,{ref:tt,icon:et}))},Ne=nt.forwardRef(Pe),Je=Ne},47472:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});var z=ne(54476),nt=ne(59301),ve={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"},et=ve,be=ne(7657),Pe=function(fe,tt){return nt.createElement(be.Z,(0,z.Z)({},fe,{ref:tt,icon:et}))},Ne=nt.forwardRef(Pe),Je=Ne},87395:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});var z=ne(54476),nt=ne(59301),ve={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"},et=ve,be=ne(7657),Pe=function(fe,tt){return nt.createElement(be.Z,(0,z.Z)({},fe,{ref:tt,icon:et}))},Ne=nt.forwardRef(Pe),Je=Ne},3706:function(){"use strict"},96772:function(){"use strict"},50718:function(pn,Kt){"use strict";Kt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},78681:function(pn,Kt){"use strict";Kt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},26843:function(pn,Kt){"use strict";Kt.Z={flex_box_center:"flex_box_center___QbjXY",flex_space_between:"flex_space_between___CGgf9",flex_box_vertical_center:"flex_box_vertical_center___TZqsW",flex_box_center_end:"flex_box_center_end___G6yjl",flex_box_column:"flex_box_column___X3SPm",Onerow:"Onerow___te_Su",MultiLine:"MultiLine___FQNWA",DiscussionList:"DiscussionList___AO3Id",DiscussionListItem:"DiscussionListItem___dGzLI",DiscussionListItemImg:"DiscussionListItemImg___XeC4p",imgUpLoad:"imgUpLoad___gjBfb"}},45936: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 pn={},Kt="5.0",ne={},z=null,nt=!1,ve=!1,et=null,be=!1,Pe=null,Ne=null,Je=0;Je4?parseFloat(me):5};pn.setHTML5Codebase=function(me,$e){Ne=me,Ct(me,$e)},pn.setJavaCodebase=pn.setJavaCodebaseVersion=pn.isCompiledInstalled=pn.setPreCompiledScriptPath=pn.setPreCompiledResourcePath=function(){},pn.setHTML5CodebaseVersion=function(me,$e){var qe=parseFloat(me);if(qe!==NaN&&qe<5){console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead.");return}Pe=me,de(me,$e)},pn.getHTML5CodebaseVersion=function(){return Qe},pn.getParameters=function(){return ne},pn.setFontsCSSURL=function(me){Ht=me},pn.setGiacJSURL=function(me){},pn.setJNLPFile=function(me){fe=me},pn.setJNLPBaseDir=function(me){},pn.inject=function(){function me(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $e="auto",qe=ne.id,$t,Rt=!1,Yt=0;Yt=5)return!0;var me=pn.getAppletObject();return me&&typeof me.recalculateEnvironments=="function"?(me.recalculateEnvironments(),!0):!1},pn.startAnimation=function(){var me=pn.getAppletObject();return me&&typeof me.startAnimation=="function"?(me.startAnimation(),!0):!1},pn.stopAnimation=function(){var me=pn.getAppletObject();return me&&typeof me.stopAnimation=="function"?(me.stopAnimation(),!0):!1},pn.getAppletObject=function(){var me=ne.id!==void 0?ne.id:"ggbApplet";return window[me]},pn.resize=function(){};var Lt=function(me,$e,qe){var $t=document.createElement("param");$t.setAttribute("name",$e),$t.setAttribute("value",qe),me.appendChild($t)},Le=function(me){return me&&me!=="false"},_e=function(me,$e,qe){ut(Qe)<=4.2&&(qe=!0);var $t=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Qe||ggbHTML5LoadedCodebaseIsWebSimple&&!Ke)&&($t=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Rt=document.createElement("div");Rt.classList.add("appletParameters","notranslate");var Yt=$e.width,He=$e.height;if($e.disableAutoScale=$e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$e.disableAutoScale,$e.width!==void 0)if(ut(Qe)<=4.4)Le($e.showToolBar)&&($e.height-=7),Le($e.showAlgebraInput)&&($e.height-=37),$e.width<605&&Le($e.showToolBar)&&($e.width=605,Yt=605);else{var Qt=100;(Le($e.showToolBar)||Le($e.showMenuBar))&&($e.hasOwnProperty("customToolBar")&&($e.customToolbar=$e.customToolBar),Qt=Le($e.showMenuBar)?245:155),Yt=5?($e.appletOnLoad=function(Bt){var Mt=me.querySelector(".ggb_preview");Mt&&Mt.parentNode.removeChild(Mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Bt)},ee||te.appendChild(oe)):Rt.appendChild(oe),te.appendChild(Rt),ee||me.appendChild(te),setTimeout(function(){pn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Rt),me.appendChild(se),$e.appletOnLoad=function(Bt){pn.resize(),ae(Bt)}}function re(Bt,Mt){Mt&&typeof Mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,Mt.appletOnLoad):renderGGBElement(Bt),tn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Mt)}function pe(Bt,Mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:Mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(we){re(we.article,we.params)}),html5AppletsToProcess=null)},ut(Qe)<5&&(Bt.className+=" geogebraweb")):re(Bt,Mt)}if($t){scriptLoadStarted=!0;for(var Ce=0;Ce0?(St.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):_e(St,$e,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Ot=$t,_e(me,$e,!1);if(!window.GGBT_wsf_view)for(He=0;Heme/4*3&&(St=me/4*3),ae=St/5.8,Qt.setAttribute("src",ft),Qt.setAttribute("width",St),Qt.setAttribute("height",ae);var te=(me-St)/2,ee=($e-ae)/2;Qt.style.left=te+"px",Qt.style.top=ee+"px",Rt.appendChild(Qt)}}return Rt.appendChild(He),Rt},Nt=function(me){return me=me.toLowerCase(),me==="html5"||me==="screenshot"?me:"html5"},xe=["web","webSimple","web3d","tablet","tablet3d","phone"],de=function(me,$e){if(Qe=me,$e){Ct(Qe,!0);return}var qe=!nt;if(qe){var $t=ut(Qe);!isNaN($t)&&$t<4.4&&(qe=!1)}var Rt,Yt;window.location.protocol.substr(0,4)==="http"?Rt=window.location.protocol:Rt="http:";var He=Qe.indexOf("//");He>0?Yt=Qe:He===0?Yt=Rt+Qe:Yt="https://www.geogebra.org/apps/5.2.814.0/";for(var Qt in xe)if(Qe.slice(xe[Qt].length*-1)===xe[Qt]||Qe.slice((xe[Qt].length+1)*-1)===xe[Qt]+"/"){Ct(Yt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qe&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Le(ne.showToolBar)&&!Le(ne.showMenuBar)&&!Le(ne.showAlgebraInput)&&!Le(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?Yt+="webSimple/":Yt+="web3d/",Ct(Yt,!1)},Ct=function(me,$e){if(me.requirejs){tt=me;return}me.slice(-1)!=="/"&&(me+="/"),tt=me,$e===null&&($e=me.indexOf("http")===-1),Ee=$e,ze="web.nocache.js",Ke=!1;var qe=tt.split("/");qe.length>1&&(!$e&&qe[qe.length-2]==="webSimple"?(ze="webSimple.nocache.js",Ke=!0):xe.indexOf(qe[qe.length-2])>=0&&(ze=qe[qe.length-2]+".nocache.js")),qe=me.split("/"),Qe=qe[qe.length-3],Qe.substr(0,4)==="test"?Qe=Qe.substr(4,1)+"."+Qe.substr(5,1):(Qe.substr(0,3)==="war"||Qe.substr(0,4)==="beta")&&(Qe="5.0");var $t=parseFloat(Qe);$t!==NaN&&$t<5&&me.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+$t+" is deprecated. Using version latest instead."),de("5.0",$e))},tn=function(me,$e){window.console&&window.console.log&&(!$e||typeof $e.showLogging=="undefined"||$e.showLogging&&$e.showLogging!=="false")&&console.log(me)};ne.material_id!==void 0?kt(wt):wt();function wt(){var me=Kt;Pe!==null?me=Pe:parseFloat(me)<5&&(me="5.0"),de(me,!1),Ne!==null&&Ct(Ne,Ee),be=!0}return pn},GGBAppletUtils=function(){"use strict";function pn(){return window.GGBT_wsf_edit!==void 0}function Kt(be,Pe){Pe!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+Pe+","+Pe+")",be.style.webkitTransform="scale("+Pe+","+Pe+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function ne(be,Pe,Ne,Je,Ie,fe){var tt=null;if(fe!=null&&fe!="")for(var Ee=be.parentNode;Ee!=null;)if((" "+Ee.className+" ").indexOf(" "+fe+" ")>-1){tt=Ee;break}else Ee=Ee.parentNode;var Ot=0,Qe=0,ze=0,Ke=0,ke=0,ft=0,Et=0;if(tt)Ot=tt.offsetWidth,Qe=Math.max(Je?tt.offsetWidth:0,tt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ot=Math.min(window.innerWidth,document.documentElement.clientWidth),Qe=Math.min(window.innerHeight,document.documentElement.clientHeight),ze=Ot):(Ot=window.innerWidth,Qe=window.innerHeight,ze=window.innerWidth),be){var Ht=be.getBoundingClientRect();Ht.left>0&&Ht.left<=Ot&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(ke=Ot-Ht.width-Ht.left,ft=ze<=480?10:30):(ft=Ht.left,ke=ze<=480?10:30),Ke=ft+ke)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var It=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ke=40,Et=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ke=0,Et=40)}}return be&&((Ne===void 0||!Ne)&&Pe>0&&Pe+Ke1&&(fe=!0)),Pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))Ie=z(be,Pe,fe,Ne,be.scaleContainerClass);else return Je;return fe&&(!be.hasOwnProperty("scale")||Je===1)?Ie:Math.min(Je,Ie)}function ve(be){var Pe=Math.min(window.innerWidth,document.documentElement.clientWidth),Ne=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=be.getBoundingClientRect(),Ie=(Pe-Je.width)/2,fe=(Ne-Je.height)/2;fe<0&&(fe=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?be.style.left="40px":be.style.left=Ie+"px",be.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?be.style.top="40px":be.style.top=fe+"px",be.style.left=Ie+"px")}function et(be,Pe){var Ne=be.querySelector(".appletParameters");if(Ne){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!==Ne.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(Ne.parentElement&&/fullscreen/.test(Ne.parentElement.className))return;var Je=nt(Pe,be);pn()&&Ne.setAttribute("data-param-scale",Je);for(var Ie=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(pn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(pn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(pn){var Kt=c[pn];return Kt==null?null:Kt},r=d,webModule.__errFn=e}function B(){function pn(be){var Pe=be.lastIndexOf(rb);Pe==-1&&(Pe=be.length);var Ne=be.indexOf(sb);Ne==-1&&(Ne=be.length);var Je=be.lastIndexOf(tb,Math.min(Ne,Pe));return Je>=O?be.substring(O,Je+P):W}function Kt(be){if(!be.match(/^\w+:\/\//)){var Pe=o.createElement(ub);Pe.src=be+vb,be=pn(Pe.src)}return be}function ne(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function z(){for(var be=o.getElementsByTagName(_),Pe=O;PeO?be[be.length-P].href:W}function ve(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var et=ne();return et==W&&(et=z()),et==W&&(et=nt()),et==W&&ve()&&(et=pn(o.location.href)),et=Kt(et),et}function C(pn){return pn.match(/^\//)||pn.match(/^[a-zA-Z]+:\/\//)?pn:webModule.__moduleBase+pn}function D(){var pn=[],Kt=O,ne=[],z=[];function nt(be){var Pe=z[be](),Ne=ne[be];if(Pe in Ne)return Pe;var Je=[];for(var Ie in Ne)Je[Ne[Ie]]=Ie;throw r&&r(be,Je,Pe),null}if(__gwt_isKnownPropertyValue=function(be,Pe){return Pe in ne[be]},webModule.__getPropMap=function(){var be={};for(var Pe in ne)ne.hasOwnProperty(Pe)&&(be[Pe]=nt(Pe));return be},webModule.__computePropValue=nt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ve;try{ve=Cb;var et=ve.indexOf(Db);et!=-1&&(Kt=parseInt(ve.substring(et+P),$),ve=ve.substring(O,et))}catch(be){}return webModule.__softPermutationId=Kt,C(ve+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})()},8240:function(pn,Kt,ne){"use strict";ne.d(Kt,{Ax:function(){return et},Ds:function(){return be},KI:function(){return Ne},SI:function(){return ve},f1:function(){return nt}});var z=ne(35783);function nt(Je){let Ie=!0;if(Je.length>0){for(let fe=0;fenew Promise((ze,Ke)=>{var ke=Ht=>{try{Et(Qe.next(Ht))}catch(It){Ke(It)}},ft=Ht=>{try{Et(Qe.throw(Ht))}catch(It){Ke(It)}},Et=Ht=>Ht.done?ze(Ht.value):Promise.resolve(Ht.value).then(ke,ft);Et((Qe=Qe.apply(Ee,Ot)).next())}),tt=({data:Ee,className:Ot,fullWidth:Qe,style:ze={},onClose:Ke,onOk:ke,showFullTools:ft,noAssociationId:Et})=>{const Ht=(0,z.useRef)(null),It=(0,z.useRef)(null),ut=(0,z.useRef)(null),lt=(0,z.useRef)(null),[Ge,kt]=(0,z.useState)(!1),[bt,ht]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(ut.current||(ut.current=document.createElement("style"),document.head.appendChild(ut.current)),Ee!=null&&Ee.visible?(document.body.setAttribute("data-custom","y-hidden"),ut.current.innerHTML=" html { overflow-y: hidden; }",Ee!=null&&Ee.src&&Lt()):(document.body.removeAttribute("data-custom"),ut.current&&(document.head.removeChild(ut.current),ut.current=null)),()=>{document.body.removeAttribute("data-custom"),ut.current&&(document.head.removeChild(ut.current),ut.current=null)}),[Ee==null?void 0:Ee.visible]);const Lt=()=>Ie(void 0,null,function*(){kt(!0),ht("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,Je.ZJ)(Ee==null?void 0:Ee.src);Ht.current.src="",Ht.current.src=ue,Ht.current.onload=function(){Fe()},kt(!1),ht("")}),Le=ue=>Ie(void 0,null,function*(){kt(!0),ht("\u6B63\u5728\u4FDD\u5B58\u4E2D");const mt=yield(0,Ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ee.title,file:ue.dataUrl}});mt!=null&&mt.id&&!Et?(yield(0,Ne.ZP)(`/api/attachments/${Ee.id}/add_subitem.json`,{method:"post",body:{subitem_id:mt==null?void 0:mt.id,settings:JSON.stringify(ue.state)}})).status===0&&ke():mt!=null&&mt.id&&ke(mt),kt(!1),ht("")}),_e=()=>{const ue=document.querySelector('a[href="https://markerjs.com/"]');ue&&ue.parentNode&&(ue.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(Be=>{const Ve=document.querySelector(Be.name);Ve&&Ve.setAttribute("title",Be.title)})},Fe=()=>{It.current=new Pe.hP(Ht.current),It.current.targetRoot=lt.current,It.current.addEventListener("render",Le),It.current.addEventListener("beforeclose",Ke),ft&&(It.current.availableMarkerTypes=It.current.ALL_MARKER_TYPES,It.current.uiStyleSettings.redoButtonVisible=!0,It.current.uiStyleSettings.notesButtonVisible=!0,It.current.uiStyleSettings.zoomButtonVisible=!0,It.current.uiStyleSettings.zoomOutButtonVisible=!0,It.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=It.current.uiStyleSettings,It.current.show(),Ee!=null&&Ee.snapshotData&&It.current.restoreState(Ee.snapshotData),setTimeout(()=>{window.scrollTo(0,0),_e()},300)};return z.createElement(z.Fragment,null,(Ee==null?void 0:Ee.visible)&&z.createElement(be.Z,{spinning:Ge,tip:bt,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:lt,className:et()(nt.imageDimensions,Ot,Qe?nt.fullWidth:""),style:ze},z.createElement("img",{className:nt.img,ref:Ht}))))}},9043:function(pn,Kt,ne){"use strict";var z=ne(59301),nt=ne(77019),ve=ne(5269),et=ne(31691),be=ne(7939),Pe=ne(56375),Ne=ne(50718),Je=ne(48136),Ie=ne(59301);const fe=(0,z.forwardRef)(({callback:tt,showSaveButton:Ee,value:Ot=""},Qe)=>{const ze=(0,z.useRef)(),Ke=[{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 "}]}]}],ke=[{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}`}]}]}],ft=It=>{ze.current.setValue(ze.current.getValue()+" "+It.value+" ")},Et=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ie.createElement(nt.Z,{className:Ne.Z.lists,gutter:[10,10]},Ke.map((It,ut)=>Ie.createElement(ve.Z,{flex:"110px",className:Ne.Z.item},Ie.createElement("div",null,Ie.createElement(Pe.Z,{value:`$$${It.value}$$`}),It.name),Ie.createElement("div",{className:Ne.Z.children},It.children.map((lt,Ge)=>Ie.createElement("div",{key:Ge},Ie.createElement("h1",null,lt.name),Ie.createElement(nt.Z,{gutter:[10,10]},lt.data.map((kt,bt)=>Ie.createElement(ve.Z,{key:bt,onClick:()=>ft(kt),className:Ne.Z.diamond},Ie.createElement(Pe.Z,{value:"`$$"+kt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(nt.Z,{className:Ne.Z.lists,gutter:[10,10]},ke.map((It,ut)=>Ie.createElement(ve.Z,{flex:"110px",className:Ne.Z.item},Ie.createElement("div",null,Ie.createElement(Pe.Z,{value:"`$$"+It.value+"$$`"}),It.name),Ie.createElement("div",{className:Ne.Z.children},It.children.map((lt,Ge)=>Ie.createElement("div",{key:Ge},lt.name&&Ie.createElement("h1",null,lt.name),Ie.createElement(nt.Z,{gutter:[10,10]},lt.data.map((kt,bt)=>Ie.createElement(ve.Z,{key:bt,onClick:()=>ft(kt),className:Ne.Z.diamond},Ie.createElement(Pe.Z,{value:"`$$"+kt.value+"$$`"}))))))))))}],Ht=()=>{var It=document.createElement("div");It.innerHTML=ze.current.getValue();var ut=It.innerText;return tt&&tt(ut),ut};return(0,z.useImperativeHandle)(Qe,()=>({getData:Ht})),Ie.createElement("div",{className:Ne.Z.mathWrap},Ie.createElement(et.default,{defaultActiveKey:"1",items:Et}),Ie.createElement("math-field",{locale:"zh_cn",className:Ne.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ze,style:{width:800,marginTop:30,fontSize:18}},Ot||""),Ee&&Ie.createElement("div",{className:Ne.Z.button},Ie.createElement(be.ZP,{size:"large",onClick:Ht,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Kt.Z=fe},71347:function(pn,Kt,ne){"use strict";var z=ne(59301),nt=ne(93314),ve=ne(7939),et=Object.defineProperty,be=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,fe=(Qe,ze,Ke)=>ze in Qe?et(Qe,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Qe[ze]=Ke,tt=(Qe,ze)=>{for(var Ke in ze||(ze={}))Je.call(ze,Ke)&&fe(Qe,Ke,ze[Ke]);if(Ne)for(var Ke of Ne(ze))Ie.call(ze,Ke)&&fe(Qe,Ke,ze[Ke]);return Qe},Ee=(Qe,ze)=>be(Qe,Pe(ze));const Ot=({img:Qe,buttonProps:ze={},styles:Ke={},customText:ke,ButtonText:ft,ButtonClick:Et,Buttonclass:Ht,ButtonTwo:It,imgStyles:ut,loading:lt=!1,className:Ge=""})=>z.createElement("section",{className:`tc animated fadeIn ${Ge}`,style:tt({color:"#999",margin:"100px auto",visibility:lt?"hidden":"visible"},Ke)},z.createElement("img",{src:Qe||nt,style:Ee(tt({},ut),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},ke||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ft&&z.createElement(ve.ZP,tt({className:Ht,onClick:Et},ze),ft),It&&It);Kt.Z=Ot},98893:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Ht}});var z=ne(59301),nt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ve=ne(7939),et=ne(70557),be=ne(94871),Pe=ne(25399),Ne=ne(68911),Je=ne(58870),Ie=ne(71347),fe=ne(35783),tt=ne(25341),Ee=ne(59301),Ot=Object.defineProperty,Qe=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,ke=(It,ut,lt)=>ut in It?Ot(It,ut,{enumerable:!0,configurable:!0,writable:!0,value:lt}):It[ut]=lt,ft=(It,ut)=>{for(var lt in ut||(ut={}))ze.call(ut,lt)&&ke(It,lt,ut[lt]);if(Qe)for(var lt of Qe(ut))Ke.call(ut,lt)&&ke(It,lt,ut[lt]);return It},Et=(It,ut,lt)=>new Promise((Ge,kt)=>{var bt=Le=>{try{Lt(lt.next(Le))}catch(_e){kt(_e)}},ht=Le=>{try{Lt(lt.throw(Le))}catch(_e){kt(_e)}},Lt=Le=>Le.done?Ge(Le.value):Promise.resolve(Le.value).then(bt,ht);Lt((lt=lt.apply(It,ut)).next())}),Ht=({editOffice:It="view",data:ut,issaver:lt,onSaver:Ge,theme:kt,type:bt,filename:ht,monacoEditor:Lt,className:Le,style:_e,close:Fe,onClose:ue,hasMask:mt,disabledDownload:Be,onImgDimensions:Ve,showNodata:Nt,recordInfo:xe})=>{const[de,Ct]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[tn,wt]=(0,z.useState)(""),[me,$e]=(0,z.useState)(),qe=window.ENV==="build"?"/react/build":"",$t=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,Yt=10*(1024*1024),He=(0,z.useRef)();ut!=null&&ut.startsWith("/api")&&bt!=="txt"&&(ut=fe.Z.API_SERVER+ut);const Qt=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();ht&&Lt&&(Lt.filename=ht),(0,z.useEffect)(()=>{var se,re;const pe=(re=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:re.split(";");pe==null||pe.map(Ce=>{let gt=Ce.split("=");gt[0]==="_educoder_session"&&wt(gt[1])})},[]),(0,z.useEffect)(()=>{bt==="office"&&(ut.indexOf("bigfilescdn.")>-1||ut.indexOf("bigfiles1")>-1?$e({url:ut,fileType:Qt(ut),model:ut.indexOf("model=edit")?"edit":"view"}):ut.indexOf("coze")>-1?$e({url:ut,fileType:"doc",model:"view"}):ae())},[bt,ut]);function St(se){return Et(this,null,function*(){se.data.type==="pdfdata"&&(Ge(se.data.data),window.removeEventListener("message",St,!1)),console.log("mess---:",se.data)})}const ae=()=>Et(void 0,null,function*(){console.log("data:",ut);let se=ut;ut.startsWith("http")||(se=location.origin+se);let re=new URL(se).pathname.split("/").pop();const pe=yield(0,Je.gJ)({attachment_id:re});pe.url=$t+pe.url,$e(pe)}),te=()=>{if(ut.startsWith("http")||ut.startsWith("blob:")){ee();return}(0,Ne.Sv)(ht||"educoder",ut,ht)},ee=()=>{xe&&(0,tt.fc)({id:xe==null?void 0:xe.id,watch_type:1,course_id:xe==null?void 0:xe.course_id}),(0,Ne.Nd)(ht||"educoder",decodeURIComponent(ut))};(0,z.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var re;((re=se==null?void 0:se.data)==null?void 0:re.type)==="closePop"&&ue()};return Ee.createElement("div",{style:ft({},_e||{}),className:`${mt&&nt.bgBlack} ${bt?nt.wrp:"hide"}`},!!bt&&Fe&&Ee.createElement("div",{id:"closePop",className:nt.close,ref:He},!!Ve&&Ee.createElement(Pe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>He.current},Ee.createElement("span",{onClick:()=>{ue(),Ve()}},Ee.createElement("i",{className:"icon-yulanpizhu"}))),!Be&&window.parent===window&&Ee.createElement(Pe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>He.current},Ee.createElement("span",{onClick:ee},Ee.createElement("i",{className:"icon-quxiaozhiding"}))),lt&&Ee.createElement(Pe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>He.current},Ee.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",St,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Ee.createElement("i",{className:"icon-baocun"}))),Ee.createElement(Pe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>He.current},Ee.createElement("span",{className:"",onClick:()=>{ue()}},Ee.createElement("i",{className:"icon-guanbi1"})))),Ee.createElement("div",{className:`${nt[Le]} ${Le} ${nt.monaco} ${bt==="txt"?"show":"hide"}`},bt==="txt"&&Ee.createElement(Ee.Fragment,null,Ee.createElement(be.ZP,ft({},Lt)))),bt==="audio"&&Ee.createElement("audio",{src:`${(ut==null?void 0:ut.indexOf("http://"))>-1||(ut==null?void 0:ut.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ut}`,autoPlay:!0}),bt==="video"&&Ee.createElement(Ee.Fragment,null,(ut==null?void 0:ut.indexOf("http"))>-1?Ee.createElement("video",{controls:!0,src:`${ut}`,autoPlay:!0}):Ee.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ut}`,autoPlay:!0})),bt==="office"&&me&&Ee.createElement("iframe",{src:`${qe}/office.html?key=${me.key}&url=${btoa(me.url)}&callbackUrl=${$t+(me.callbackUrl||"")}&fileType=${me.fileType}&title=${me.title||""}&model=${It}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!Be}`}),bt==="html"&&Ee.createElement("iframe",{src:ut+"&disposition=inline"}),bt==="pdf"&&Ee.createElement("iframe",{id:"pdfiframe",src:`${qe}/js/pdf/index.html?filename=${ht||"educoder.pdf"}&url=${encodeURIComponent(ut)}&disabledDownload=${!!Be}&model=${It}`}),bt==="image"&&Ee.createElement("img",{src:`${(ut==null?void 0:ut.indexOf("http://"))>-1||(ut==null?void 0:ut.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ut}`}),(bt==="other"||bt==="download")&&Ee.createElement(Ee.Fragment,null,Nt?Ee.createElement(Ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ee.createElement(ve.ZP,{icon:Ee.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Be},"\u4E0B\u8F7D")}):Ee.createElement(ve.ZP,{type:"primary",size:"middle",onClick:te,disabled:Be},Ee.createElement(et.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),bt==="flowChart"&&Ee.createElement("div",{className:"embed"},Ee.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${ut||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},8831:function(pn,Kt,ne){"use strict";ne.d(Kt,{h:function(){return ze},x:function(){return Ke}});var z=ne(32862),nt=ne(78681),ve=ne(56375),et=ne(59301),be=Object.defineProperty,Pe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,tt=(ke,ft,Et)=>ft in ke?be(ke,ft,{enumerable:!0,configurable:!0,writable:!0,value:Et}):ke[ft]=Et,Ee=(ke,ft)=>{for(var Et in ft||(ft={}))Ie.call(ft,Et)&&tt(ke,Et,ft[Et]);if(Je)for(var Et of Je(ft))fe.call(ft,Et)&&tt(ke,Et,ft[Et]);return ke},Ot=(ke,ft)=>Pe(ke,Ne(ft)),Qe=(ke,ft)=>{var Et={};for(var Ht in ke)Ie.call(ke,Ht)&&ft.indexOf(Ht)<0&&(Et[Ht]=ke[Ht]);if(ke!=null&&Je)for(var Ht of Je(ke))ft.indexOf(Ht)<0&&fe.call(ke,Ht)&&(Et[Ht]=ke[Ht]);return Et};const ze=ke=>{var ft=ke,{value:Et,onChange:Ht,scrollId:It}=ft,ut=Qe(ft,["value","onChange","scrollId"]);return et.createElement("div",{id:It||""},et.createElement(z.Z,Ot(Ee({},ut),{defaultValue:Et,onChange:(lt,Ge)=>{Ge!=null&&Ge.length?Ht(lt,Ge):Ht(lt)}})))},Ke=({value:ke,onChange:ft,placeholder:Et,height:Ht=140,isEdit:It,miniToolbar:ut,watch:lt=!0})=>It?et.createElement(z.Z,{watch:lt,isFocus:!0,height:Ht||void 0,placeholder:Et,defaultValue:ke,onChange:ft,miniToolbar:ut}):et.createElement("div",{style:{cursor:"pointer"}},ke?et.createElement(ve.Z,{className:nt.Z.inputBorder,value:ke}):et.createElement("div",{className:`${nt.Z.inputBorder} ${nt.Z.placeholder} inputBorderError`},Et))},56375:function(pn,Kt,ne){"use strict";ne.d(Kt,{z:function(){return Lt},Z:function(){return Le}});var z=ne(59301),nt=ne(64310),ve=ne(74410),et=ne(64018),be=ne(16471),Pe=ne(35783),Ne=ne(68911),Je=ne(15342),Ie=ne(44104),fe=ne(7939),tt=ne(1012),Ee=ne(98893),Ot=ne(59301),ze=({html:_e})=>{const Fe=(0,z.useRef)(null),ue=(0,z.useRef)(null),mt=`.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 Be=Fe.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=_e,Be.appendChild(ue.current);const Ve=document.createElement("style");return Ve.textContent=mt,Be.appendChild(Ve),()=>{Be.innerHTML=""}},[]),(0,z.useEffect)(()=>{ue.current&&(ue.current.innerHTML=_e)},[_e]),Ot.createElement("div",{ref:Fe})};function Ke(_e){const Fe=["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"],ue=new RegExp(`\\b(${Fe.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),mt=/]*>/gi;return _e.replace(ue,"").replace(mt,"").trim()}var ke={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ft=Object.defineProperty,Et=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,ut=(_e,Fe,ue)=>Fe in _e?ft(_e,Fe,{enumerable:!0,configurable:!0,writable:!0,value:ue}):_e[Fe]=ue,lt=(_e,Fe)=>{for(var ue in Fe||(Fe={}))Ht.call(Fe,ue)&&ut(_e,ue,Fe[ue]);if(Et)for(var ue of Et(Fe))It.call(Fe,ue)&&ut(_e,ue,Fe[ue]);return _e};const Ge="@\u2581\u2581@",kt="@\u2581@",bt=/]*>/g;function ht(_e){let Fe=document.createElement("div");return Fe.innerHTML=_e,Fe.childNodes.length===0?"":Fe.childNodes[0].nodeValue}const Lt=(_e,Fe)=>{_e=_e||"";const ue=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,mt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Be=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ve=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Fe?_e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(Nt,xe,de,Ct,tn,wt,me)=>{const $e=xe||Ct||wt,qe=de||tn||me||"?";return Pe.Z.API_SERVER+"/api/attachments/"+$e+qe+"&t="+(0,Ne.Jn)($e,Date.now())+(Nt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(_e=_e.replace(Ve,(Nt,xe,de,Ct,tn,wt,me)=>{const $e=xe||Ct||wt,qe=de||tn||me||"?";return Pe.Z.API_SERVER+"/attachments/download/"+$e+qe+"&t="+(0,Ne.Jn)($e,Date.now())+(Nt.indexOf(")")>-1?")":"&")}).replace(ue,(Nt,xe,de,Ct,tn,wt,me)=>{const $e=xe||Ct||wt,qe=de||tn||me||"?";return Pe.Z.API_SERVER+"/api/attachments/"+$e+qe+"&t="+(0,Ne.Jn)($e,Date.now())+(Nt.indexOf(")")>-1?")":"&")}).replace(mt,(Nt,xe,de,Ct,tn)=>{const wt=xe||Ct,me=de||tn||"";return'"'+Pe.Z.API_SERVER+"/api/attachments/"+wt+me+wt+me+"&t="+(0,Ne.Jn)(wt,Date.now())}).replace(Be,(Nt,xe,de,Ct,tn)=>{const wt=xe||Ct,me=de||tn||"";return"("+Pe.Z.API_SERVER+"/files/uploads/"+wt+me+wt+me+"&t="+(0,Ne.Jn)(wt,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,` `),_e)};var Le=({value:_e="",edit:Fe=!1,className:ue,showTextOnly:mt,showLines:Be,style:Ve={},stylesPrev:Nt={},highlightKeywords:xe,showProgramFill:de,isProgramFill:Ct,disabledFill:tn=!1,programFillValue:wt,openEditor:me=()=>{},onFillChange:$e=Rt=>{},onFillBlur:qe=()=>{},onFillFocus:$t=()=>{}})=>{let Rt=Ke(String(_e||""));const Yt=(0,z.useRef)(),He=(0,z.useRef)(),[Qt,St]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),se=(0,z.useRef)("a"+(0,tt.Z)()),re={},pe=Tt=>//i.test(Tt||""),Ce=(Tt,an,Gt)=>{const Ae=document.createElement(Tt===kt?"input":"textarea");Ae.style.width="100%",Ae.style.height=Tt===kt?"40px":"151px",Ae.rows=5,Ae.spellcheck=!1,Ae.name="edu-program-fill",Ae.placeholder="\u8BF7\u8F93\u5165",Ae.dataset.id=an;const st=Object.keys(re).length;return re[st]=Ae,`${Ae.outerHTML}`};function gt(Tt){return Tt=Tt.replace(/!\[.*?\]\(.*?\)/g,""),Tt=Tt.replace(/\[.*?\]\(.*?\)/g,""),Tt=Tt.replace(new RegExp("","gs"),""),Tt=Tt.replace(//g,""),Tt=Tt.replace(//g,""),Tt=Tt.replace(new RegExp(".*?<\\/video>","gs"),""),Tt=Tt.replace(new RegExp(".*?<\\/audio>","gs"),""),Tt=Tt.replace(new RegExp(".*?<\\/style>","gs"),""),Tt=Tt.replace(new RegExp(".*?<\\/script>","gs"),""),Tt}const Te=Tt=>!mt&&pe(Rt)?Tt:Tt.replace(/([\s\S]+?)<\/style>/gim,function(an,Gt){let Ae=Gt.replace(/(\n|\r)/g,"").split("}"),st=[];return Ae.map(At=>{At!=""&&st.push(`.${se.current} ${At}`)}),``}),it=(0,z.useMemo)(()=>{(0,ve.Iy)();try{const Ae=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,st=/\"\/api\/attachments\/|\"\/attachments\/download\//g,At=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,_t=/\(\/attachments\/download\//g;Rt=Rt.replace(_t,"("+Pe.Z.API_SERVER+"/attachments/download/").replace(Ae,"("+Pe.Z.API_SERVER+"/api/attachments/").replace(st,'"'+Pe.Z.API_SERVER+"/api/attachments/").replace(At,'"'+Pe.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,` `),Yt.current.style.display="none"}catch(Ae){}if(de){let Ae=-1;return Rt=Rt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(st,At,_t){var De;return++Ae,Ce(st,Ae,(De=wt==null?void 0:wt[Ae])==null?void 0:De.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Te(Rt||"")}
`}let Tt=Te(Rt);Tt=(0,ve.ZP)(Tt);const an=(0,ve.ez)();Rt.match(/\[TOC\]/)&&(Tt=Tt.replace("

[TOC]

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

${Nr||

`):Ye.replaceSelection(`${Nr||`):((Er=sr==null?void 0:sr.type)==null?void 0:Er.indexOf("video"))>-1?Ye.replaceSelection(``):(($r=sr==null?void 0:sr.type)==null?void 0:$r.indexOf("pdf"))>-1?Ye.replaceSelection(`${sr.name}`):Mn.includes(Ur)?Ye.replaceSelection(`${sr.name}`):Ye.replaceSelection(`[${sr.name}](${kr})`),Ye.focus();case Gt:const{row:Xr,col:yr,align:Zr}=yn;let Kr=` `;for(let Or=0;Or{switch(kn){case Zt:return z.createElement(tn,{callback:Lr,onCancel:Mr});case an:return z.createElement(wt.Z,{callback:Lr,onCancel:Mr});case Wt:return z.createElement(me.Z,{callback:Lr,onCancel:Mr});case en:return z.createElement(oe,{editImgId:hr.current,callback:Lr,onCancel:Mr});case Gt:return z.createElement(Te,{callback:Lr,onCancel:Mr});case"maths-latex":return z.createElement(we,{showSaveButton:!0,callback:Lr});case"inline-latex":return z.createElement(Me.Z,{showSaveButton:!0,callback:Lr});default:return null}},[kn]);function Mr(){Ln("")}(0,z.useEffect)(()=>{if(xr.current){let yn=function(Er){fr=!0,Br=Er.pageY},mn=function(){fr=!1},Tn=function(Er){if(fr){let $r=Er.pageY-Br;$r<0&&($r=0),$r>300&&($r=300);let kr=ln+$r+"px";Yn(kr)}},zn=xr.current,fr=!1,Br=0;return zn.addEventListener("mousedown",yn),document.addEventListener("mousemove",Tn),document.addEventListener("mouseup",mn),()=>{zn.removeEventListener("mousedown",yn),document.removeEventListener("mousemove",Tn),document.removeEventListener("mouseup",mn)}}},[Ye,xr]),(0,z.useEffect)(()=>{Yn(ln)},[ln]);const or=rn(Jt),rr=rn(tr),Wn={width:or,height:rr},dn=(0,z.useMemo)(()=>{if(Rn){let yn=new Date(Rn),mn=yn.getHours(),Tn=yn.getMinutes(),zn=yn.getSeconds();return mn=mn<10?"0"+mn:mn,Tn=Tn<10?"0"+Tn:Tn,zn=zn<10?"0"+zn:zn,`${mn}:${Tn}:${zn}`}return 0},[Rn]),Cn=yn=>{const mn=[];if(Pn){let Tn=-1;yn=yn.replace(/(@▁▁@|@▁@)/g,function(zn,fr,Br){mn.push({multiLine:zn!==fn})})}return mn};function Sn(){window.sessionStorage.removeItem(Qn),An(!1),_n(0)}function gn(){An(!1),_n(0),Ye.setValue(window.sessionStorage.getItem(Qn))}(0,z.useEffect)(()=>{zt[kn]&&kn!==un&&kn!==en&&setTimeout(()=>{const yn=document.getElementsByClassName("markdown-popup-form")[0],mn=window.innerWidth/2-yn.offsetWidth/2,Tn=window.innerHeight/2-yn.offsetHeight/2;Un(mn),mr(Tn)},0)},[kn]);const Hn=yn=>{yn.preventDefault();const mn=yn.clientX-Kn,Tn=yn.clientY-dr;document.body.onmousemove=zn=>{let fr=zn.clientX-mn,Br=zn.clientY-Tn;const Er=document.getElementsByClassName("markdown-popup-form")[0],$r=window.innerWidth-Er.offsetWidth,kr=window.innerHeight-Er.offsetHeight;fr=Math.max(0,Math.min(fr,$r)),Br=Math.max(0,Math.min(Br,kr)),Xn(zn.clientX,zn.clientY,mn,Tn)&&(Un(fr),mr(Br))},document.body.onmouseup=function(){document.body.onmousemove=null}},Xn=(yn,mn,Tn,zn)=>{const fr=document.body.clientHeight,Br=document.body.clientWidth;return yn<20&&Tn>yn||yn>Br-20&&Tnmn||mn>fr-20&&zn{var mn;hr.current=yn,(mn=nr.current)==null||mn.setHeight("100vh"),setTimeout(()=>{Ln("add-flowchart")},150)}})):null))),Zn?z.createElement("a",{ref:xr,className:"editor-resize"}):null,kn===un&&z.createElement(Yt,{callback:Lr,onCancel:Mr}),kn===en&&z.createElement(oe,{ref:nr,editImgId:hr.current,callback:Lr,onCancel:Mr}),z.createElement(bt.Z,null,zt[kn]&&kn!==un&&kn!==en?z.createElement($e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Kn,top:dr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:Hn},zt[kn]),open:!0,onCancel:Mr,footer:null,destroyOnClose:!0,width:kn===en?"1200px":null,height:kn===en?"80vh":null,className:"markdown-popup-form"},wr):null))}},79203:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return lt},I:function(){return kt}});var z=ne(28284),nt=ne(6767),ve=ne(37568),et=ne(44104),be=ne(4875),Pe=ne(47889),Ne=ne(7939),Je=ne(8240),Ie=ne(59301),fe=ne(59301),tt=Object.defineProperty,Ee=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,ke=(bt,ht,Lt)=>ht in bt?tt(bt,ht,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):bt[ht]=Lt,ft=(bt,ht)=>{for(var Lt in ht||(ht={}))ze.call(ht,Lt)&&ke(bt,Lt,ht[Lt]);if(Qe)for(var Lt of Qe(ht))Ke.call(ht,Lt)&&ke(bt,Lt,ht[Lt]);return bt},Et=(bt,ht)=>Ee(bt,Ot(ht));const{useForm:Ht}=z.default,It={width:280,marginRight:10},ut={labelCol:{span:5},wrapperCol:{span:19}};var lt=({callback:bt,onCancel:ht})=>{const[Lt]=Ht();let Le=(0,Ie.useRef)();function _e(mt){Le.current.width=Lt.getFieldValue("width"),Le.current.align=Lt.getFieldValue("align"),bt(mt,Le.current)}function Fe(mt,Be){if(mt.status===-1){nt.ZP.error(mt.message);return}Lt.setFieldsValue({src:`/api/attachments/${mt.id}`,type:Be.type})}function ue(mt){let Be=mt.target.files[0];Le.current=Be,kt(Be,Fe)}return fe.createElement(z.default,Et(ft({form:Lt},ut),{className:"upload-image-panel",onFinish:_e,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(ve.default,{style:It})),fe.createElement(Ge,{onFileChange:ue}))),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(ve.default,{style:{width:264}})),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},fe.createElement(et.Z,null,fe.createElement(z.default.Item,{name:"width",style:{margin:0}},fe.createElement(be.Z,{style:{width:264}})),fe.createElement("span",{className:"ml8"},"%"))),fe.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},fe.createElement(Pe.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(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Ne.ZP,{type:"default",onClick:ht},"\u53D6\u6D88"))))};function Ge({onFileChange:bt}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:bt}))}function kt(bt,ht){if(!bt)throw new String("\u6CA1\u6709\u6587\u4EF6");let Lt=new FormData;Lt.append("editormd-image-file",bt),Lt.append("file_param_name","editormd-image-file"),Lt.append("byxhr","true");var Le=new window.XMLHttpRequest;Le.withCredentials=!0,Le.addEventListener("load",function(_e){ht(JSON.parse(_e.target.responseText),bt)},!1),Le.addEventListener("error",function(_e){console.error(_e)},!1),Le.open("POST",`${Je.KI}/api/attachments.json`),Le.send(Lt)}},88969:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return ve}});var z=ne(59301),nt=ne(4676);class ve extends z.Component{constructor(be){super(be);const Pe=window.document;this.node=Pe.createElement("div"),Pe.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,nt.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},94871:function(pn,Kt,ne){"use strict";ne.d(Kt,{SV:function(){return Yt},ZP:function(){return Rt}});var z=ne(59301),nt=ne(76374);const ve={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"]},et={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"]},be={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(` `)}]},Pe={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(` `)}]},Ne={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 Je=ne(53184),Ie=ne.n(Je),fe=(He,Qt,St)=>new Promise((ae,te)=>{var ee=re=>{try{se(St.next(re))}catch(pe){te(pe)}},oe=re=>{try{se(St.throw(re))}catch(pe){te(pe)}},se=re=>re.done?ae(re.value):Promise.resolve(re.value).then(ee,oe);se((St=St.apply(He,Qt)).next())});const tt={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"]}},Ee=(He,Qt,St,ae)=>{const te=Qt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:St.lineNumber,endColumn:St.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:He.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},Ot=(He,Qt,St,ae)=>{He.languages.registerCompletionItemProvider(Qt,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},re=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Ee(He,te,ee,se),...St.map(Ce=>({label:Ce,kind:He.languages.CompletionItemKind.Keyword,documentation:Ce,insertText:Ce,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(Ce=>({label:Ce.label,kind:He.languages.CompletionItemKind.Snippet,documentation:Ce.content,insertText:re.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Qe=He=>{tt.languages.forEach(Qt=>{He.languages.registerDocumentFormattingEditProvider(Qt,{provideDocumentFormattingEdits(St){return fe(this,null,function*(){const ae=Ie()(St.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:St.getFullModelRange(),text:ae}]})}})}),Ot(He,"java",et.keywords,et.quickKey),Ot(He,"cpp",be.keywords,be.quickKey),Ot(He,"c",ve.keywords,[]),Ot(He,"python",Pe.keywords,Pe.quickKey),Ot(He,"scala",Ne.keywords,Ne.quickKey)};const ze="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ke=Object.defineProperty,ke=(He,Qt,St)=>Qt in He?Ke(He,Qt,{enumerable:!0,configurable:!0,writable:!0,value:St}):He[Qt]=St,ft=(He,Qt,St)=>ke(He,typeof Qt!="symbol"?Qt+"":Qt,St);const Et=class $s{constructor(Qt,St,ae){this.placeholder=Qt,this.editor=St,this.monaco=ae,St.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)}};ft(Et,"ID","editor.widget.placeholderHint");var It=Et,ut=ne(96236),lt=ne(6767),Ge=ne(25399),kt=ne(89392),bt=ne(99936),ht=ne(56102),Lt=Object.defineProperty,Le=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Be=(He,Qt,St)=>Qt in He?Lt(He,Qt,{enumerable:!0,configurable:!0,writable:!0,value:St}):He[Qt]=St,Ve=(He,Qt)=>{for(var St in Qt||(Qt={}))ue.call(Qt,St)&&Be(He,St,Qt[St]);if(Fe)for(var St of Fe(Qt))mt.call(Qt,St)&&Be(He,St,Qt[St]);return He},Nt=(He,Qt)=>Le(He,_e(Qt)),xe=(He,Qt)=>{var St={};for(var ae in He)ue.call(He,ae)&&Qt.indexOf(ae)<0&&(St[ae]=He[ae]);if(He!=null&&Fe)for(var ae of Fe(He))Qt.indexOf(ae)<0&&mt.call(He,ae)&&(St[ae]=He[ae]);return St},de=(He,Qt,St)=>new Promise((ae,te)=>{var ee=re=>{try{se(St.next(re))}catch(pe){te(pe)}},oe=re=>{try{se(St.throw(re))}catch(pe){te(pe)}},se=re=>re.done?ae(re.value):Promise.resolve(re.value).then(ee,oe);se((St=St.apply(He,Qt)).next())});function Ct(He){return/^\d+$/.test(He)?`${He}px`:He}function tn(){}let wt=!1;const me={"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 $e(He=[]){let Qt=He;if(Array.isArray(He)){for(let St=0;Stde(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(He){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",He)}});var Rt=He=>{var Qt=He,{width:St="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:re={},theme:pe="vs-dark",onEditBlur:Ce,isCopy:gt=!1,onSave:Te,autoHeight:it=!1,forbidCopy:vt=!1,forbidCopyTips:Bt,onChange:Mt=tn,editorDidMount:we=tn,onFocus:Me=tn,onBreakPoint:Zt=tn,breakPointValue:Wt=[],filename:en="educoder.txt",errorLine:un,errorContent:Tt="",highlightLine:an,openBreakPoint:Gt=!1,placeholder:Ae="",showMiniMap:st=!0}=Qt,At=xe(Qt,["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 _t=(0,z.useRef)(),De=(0,z.useRef)({}),Xe=(0,z.useRef)(),pt=(0,z.useRef)(),Dt=(0,z.useRef)([]),Xt=(0,z.useRef)(!1),fn=(0,z.useRef)(),Dn=(0,z.useRef)(),Mn=(0,z.useRef)(!1),[rn,bn]=(0,z.useState)(!1);function vn(){let jt;return _t.current&&(jt=new nt.Z(on=>{for(let Pn of on)(Pn.target.offsetHeight>0||Pn.target.offsetWidth>0)&&De.current.instance.layout()}),jt.observe(_t.current)),jt}function Ut(){lt.ZP.warning({content:decodeURIComponent(Bt||ze),key:"monaco-editor-tip"})}const zt=()=>{let jt=De.current.instance;if(te!=null&&jt&&rn){const on=jt.getModel();on&&te!==on.getValue()&&(wt=!0,on.setValue(te),jt.layout(),wt=!1)}};(0,z.useEffect)(()=>{const jt=bt.Z.subscribe("formatDocument",on=>{var Pn;let xn=De.current.instance;(Pn=xn==null?void 0:xn.getAction)==null||Pn.call(xn,"editor.action.formatDocument").run()});return window.updateMonacoValue=on=>{Mt(on)},jt},[]),(0,z.useEffect)(()=>{var jt;let on=De.current.instance;pt.current&&clearTimeout(pt.current),pt.current=setTimeout(()=>{zt()},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,rn,De.current]),(0,z.useEffect)(()=>{if(un&&De.current&&De.current.instance){let on=De.current.instance;on.changeViewZones(function(Pn){var xn=document.createElement("div");xn.style.padding="10px 20px",xn.style.width="calc(100% - 20px)",xn.className="my-error-line-wrp",xn.innerHTML=Tt,Pn.addZone({afterLineNumber:un||11,heightInLines:3,domNode:xn})});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})}},[un,De.current,rn]);const Ft=(jt="",on)=>{if(!jt||jt.trim()==="")return!0;const xn=De.current.instance.getModel().getLineTokens(on);let Re=!1;for(let rt=0;rt<2;rt++)xn.getStandardTokenType(rt)===1&&(Re=!0);return Re};(0,z.useEffect)(()=>{var jt;const on=(jt=De.current)==null?void 0:jt.instance;if(on&&rn&&vt){const Pn=on.onDidBlurEditorWidget(()=>{Mn.current=!1}),xn=on.onDidFocusEditorText(()=>{Mn.current=!0});return()=>{Pn.dispose(),xn.dispose()}}},[De.current,rn,vt]),(0,z.useEffect)(()=>{var jt;if((jt=De.current)!=null&&jt.instance&&rn&&Gt){let on=De.current.instance,Pn=on.getModel();if(!Pn)return;(()=>{var Ue;let Ze=[],Ye=[];const dt=Pn.getAllDecorations();for(let sn of dt)sn.options.className==="highlighted-line"&&(Ze.push((Ue=sn==null?void 0:sn.range)==null?void 0:Ue.startLineNumber),Ye.push(sn==null?void 0:sn.id));if(an===Ze[0])return;Pn.deltaDecorations(Ye,[]);const cn=Pn.getLineCount();an&&an<=cn&&(on.deltaDecorations([],[{range:new qe.Range(an,1,an,Pn.getLineMaxColumn(an)),options:{isWholeLine:!0,className:"highlighted-line"}}]),on.revealLineInCenter(an))})();const Re=(Ue=!1)=>{var Ze;let Ye=[],dt=[];const cn=Pn.getAllDecorations();for(let sn of cn)sn.options.linesDecorationsClassName==="breakpoints-select"&&(Ye.push((Ze=sn==null?void 0:sn.range)==null?void 0:Ze.startLineNumber),dt.push(sn==null?void 0:sn.id));if(Ue)return{lines:Ye,ids:dt};Zt(Ye)},rt=Ue=>de(void 0,null,function*(){let Ze={range:new qe.Range(Ue,1,Ue,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Pn.deltaDecorations([],[Ze]),Re()}),Se=Ue=>de(void 0,null,function*(){let Ze=[];const Ye=on.getLineDecorations(Ue);for(let dt of Ye)dt.options.linesDecorationsClassName==="breakpoints-select"&&Ze.push(dt.id);yield Pn.deltaDecorations(Ze,[]),Re()}),je=Ue=>{let Ze=on.getLineDecorations(Ue);for(let Ye of Ze)if(Ye.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,kt.isEqual)(Wt,Re(!0).lines)){Pn.deltaDecorations(Re(!0).ids,[]);const Ue=Wt.map(Ze=>({range:new qe.Range(Ze,1,Ze,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Pn.deltaDecorations([],Ue)}const Oe=on.onDidChangeModelContent(Ue=>{let Ze=on.getPosition();if(Ze){let Ye=Ze.lineNumber;clearTimeout(Dn.current),Dn.current=setTimeout(()=>{Ft(Pn.getLineContent(Ye),Ye)?Se(Ye):je(Ye)?(Se(Ye),rt(Ye)):Re()},100)}}),We=on.onMouseDown(Ue=>{var Ze,Ye,dt;if(Ue.target.detail&&((dt=(Ye=(Ze=Ue.target)==null?void 0:Ze.element)==null?void 0:Ye.className)!=null&&dt.includes("line-numbers"))){let cn=Ue.target.position.lineNumber;if(Ft(Pn.getLineContent(cn),cn))return;je(cn)?Se(cn):rt(cn)}}),ge=Ue=>{let Ze={range:new qe.Range(Ue,1,Ue,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Dt.current=on.deltaDecorations(Dt.current,[Ze])},ot=()=>{Dt.current=on.deltaDecorations(Dt.current,[])},ct=on.onMouseMove(Ue=>{var Ze,Ye,dt;if(ot(),Ue.target.detail&&((dt=(Ye=(Ze=Ue.target)==null?void 0:Ze.element)==null?void 0:Ye.className)!=null&&dt.includes("line-numbers"))){let cn=Ue.target.position.lineNumber;if(Ft(Pn.getLineContent(cn),cn))return;ge(cn)}}),xt=on.onMouseLeave(()=>{ot()});return()=>{Oe.dispose(),We.dispose(),ct.dispose(),xt.dispose()}}},[De.current,rn,Wt,an,Gt,ee]),(0,z.useEffect)(()=>{var jt;(jt=De.current)!=null&&jt.instance&&Gt&&De.current.instance.setPosition({lineNumber:0,column:0})},[an]);function Pt(){let jt=De.current.instance;if(jt){const on=jt.getSelection(),Pn=De.current.pastePos||{},xn=new qe.Range(Pn.startLineNumber||on.endLineNumber,Pn.startColumn||on.endColumn,Pn.endLineNumber||on.endLineNumber,Pn.endColumn||on.endColumn);setTimeout(()=>{jt.executeEdits("",[{range:xn,text:""}])},300)}}function nn(jt){(window.navigator.platform.match("Mac")?jt.metaKey:jt.ctrlKey)&&jt.keyCode==83&&(jt.preventDefault(),Te())}const Jt=()=>{if(it&&De.current.instance){const jt=De.current.instance.getContentHeight();Qn(jt{if(!Mn.current)return;const{keyCode:on,ctrlKey:Pn,metaKey:xn,target:Re,type:rt}=jt;return(rt==="paste"||(on===67||on===86)&&(xn||Pn))&&Re.nodeName==="TEXTAREA"&&(Ut(),jt.preventDefault()),!1};function On(jt,on){var Pn=window.URL||window.webkitURL||window,xn=new Blob([on]),Re=document.createElementNS("http://www.w3.org/1999/xhtml","a");Re.href=Pn.createObjectURL(xn),Re.download=jt,ln(Re)}(0,z.useEffect)(()=>{Jt()},[Jt]),(0,z.useEffect)(()=>{_t.current&&!rn&&Promise.all([ne.e(8909),ne.e(1859)]).then(ne.bind(ne,71448)).then(jt=>{try{qe=jt,De.current.instance=qe.editor.create(_t.current,{value:te,language:$e(ee),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:st||!1}},re);const on=De.current.instance;let Re=[...ut.BH._menuItems].find(Oe=>Oe[0]._debugName=="EditorContext")[1],rt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Se=(Oe,We)=>{var ge,ot;let ct=Oe._first;do We.includes((ot=(ge=ct.element)==null?void 0:ge.command)==null?void 0:ot.id)&&Oe._remove(ct);while(ct=ct.next)};if(we(on,qe),setTimeout(()=>{Jt(),De.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{On(en||"educoder.txt",on.getValue())}})},500),De.current.subscription=on.onDidChangeModelContent(Oe=>{Xt.current?clearTimeout(fn.current):(Jt(),Mt(on.getValue(),Oe)),fn.current=setTimeout(()=>{Xt.current=!1},500)}),window.Monaco||Qe(qe,$e(ee)),vt&&(Se(Re,rt),_t.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",En),window.removeEventListener("paste",En),window.addEventListener("keydown",En),window.addEventListener("paste",En)),window.Monaco=qe,Ce&&on.onDidBlurEditorWidget(()=>{Ce(on.getValue())}),Me&&on.onDidFocusEditorText(()=>{vt&&$t(),Me(on.getValue())}),vt){$t();try{on.onDidPaste(Oe=>{const We=on.getSelection(),ge=De.current.pastePos||{},ot=new qe.Range(ge.startLineNumber||We.endLineNumber,ge.startColumn||We.endColumn,ge.endLineNumber||We.endLineNumber,ge.endColumn||We.endColumn);on.executeEdits("",[{range:Oe.range,text:""}])})}catch(Oe){}}let je=vn();return Ae&&typeof Ae=="string"&&new It(Ae,on,qe),bn(!0),()=>{const Oe=De.current.instance;Oe.dispose();const We=Oe.getModel();We&&We.dispose(),De.current.subscription&&De.current.subscription.dispose(),je.unobserve(_t.current)}}catch(on){}})},[]),(0,z.useEffect)(()=>{if(De.current.instance&&rn)return document.addEventListener("keydown",nn,!1),()=>{document.removeEventListener("keydown",nn)}},[Te,rn]),(0,z.useEffect)(()=>{let jt=De.current.instance;if(jt&&rn){let on=$e(ee);qe.editor.setModelLanguage(jt.getModel(),on)}},[ee,rn]),(0,z.useEffect)(()=>{De.current.instance&&rn&&qe.editor.setTheme(pe)},[pe,rn]),(0,z.useEffect)(()=>{let jt=De.current.instance;Xe.current=se,jt&&rn&&(jt.updateOptions(Ve({},se)),setTimeout(()=>{jt.getModel().updateOptions(Ve({},se))},200))},[JSON.stringify(se),rn]),(0,z.useEffect)(()=>{let jt=De.current.instance;jt&&rn&&jt.layout()},[St,ae,rn]);const[In,Nn]=(0,z.useState)(Ct(St)),[Bn,Qn]=(0,z.useState)(Ct(ae)),Zn=Nt(Ve({},oe),{width:In,height:Bn,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:_t,style:Zn,onFocus:()=>{vt&&$t()}},gt&&z.createElement(ht.CopyToClipboard,{text:te,onCopy:()=>lt.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(Ge.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 Yt({width:He="100%",height:Qt="100%",original:St,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[se,re]=(0,z.useState)(null);function pe(it){let vt;return oe.current&&(vt=new nt.Z(Bt=>{for(let Mt of Bt)(Mt.target.offsetHeight>0||Mt.target.offsetWidth>0)&&it.layout()}),vt.observe(oe.current)),vt}(0,z.useEffect)(()=>(oe.current&&Promise.all([ne.e(8909),ne.e(9404)]).then(ne.bind(ne,2550)).then(it=>{qe=it;const vt=qe.editor.createDiffEditor(oe.current,Nt(Ve({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}));re(vt);let Bt=pe(vt);return()=>{vt.dispose();const Mt=vt.getModel();Mt&&Mt.dispose(),Bt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{se&&se.setModel({original:qe.editor.createModel(St,te),modified:qe.editor.createModel(ae,te)})},[St,ae,te,se]);const Ce=Ct(He),gt=Ct(Qt),Te={width:Ce,height:gt};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:Te})}},64194:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return tt}});var z={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},nt=ne(29787),ve=ne(25399),et=ne(89787),be=ne(92310),Pe=ne.n(be),Ne=ne(68911),Je=ne(71347),Ie=ne(59301),tt=({className:Ee,dataSource:Ot=[],col:Qe=4,right:ze,bottom:Ke=23,precision:ke=0,wrapWidth:ft=1200,trackEventItems:Et,loading:Ht,onRemove:It=()=>{},isCurrent:ut=!0,showProgress:lt=!1,showAlias:Ge=!1,category:kt,hiddenClick:bt})=>{const ht=Math.floor((ft-(Qe-1)*ze)/Qe),Lt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Ie.createElement(nt.Z,{spinning:Ht},Ie.createElement("div",{className:Pe()(z.list,Ee)},!!(Ot!=null&&Ot.length)&&(Ot==null?void 0:Ot.map((Le,_e)=>{var Fe,ue,mt,Be,Ve,Nt,xe,de,Ct,tn,wt,me,$e;const{name:qe,id:$t,identifier:Rt,featured:Yt,school_name:He,image_url:Qt,excellent:St,is_plan:ae}=Le;return Ie.createElement("div",{key:$t,className:ut&<?z.wrapisCurrent:z.wrap,style:{width:ht,marginRight:(1+_e)%Qe===0?0:ze+ke,marginBottom:Ke}},Ie.createElement("a",{className:z.li,onClick:te=>{te.preventDefault(),te.stopPropagation(),Et&&(0,Ne.L9)([Et]),(0,Ne.xg)(`/paths/${Rt}`)}},Ie.createElement("div",{className:z.img},Ie.createElement("img",{className:z.cover,src:`${Qt}`}),(Fe=Le==null?void 0:Le.subject_tags)==null?void 0:Fe.map((te,ee)=>{var oe,se;if(ee===0){const pe=(oe=Lt.find(Ce=>Ce.name==te))==null?void 0:oe.swclass;return Ie.createElement("span",{className:`sprite ${pe} ${z.sign}`,style:{left:"-4px"}})}const re=(se=Lt.find(pe=>pe.name==te))==null?void 0:se.ptclass;return Ie.createElement("span",{className:`sprite ${re} ${z.sign}`,style:{left:`${48+52*(ee-1)+2*ee}px`}})}),Ie.createElement("div",{className:z.tagsDom},Ie.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Le==null?void 0:Le.excellent)&&Ie.createElement("div",{className:z.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ue=Le==null?void 0:Le.custom_tags)==null?void 0:ue.length)>0&&Ie.createElement(ve.Z,{title:(Ve=(Be=Le==null?void 0:Le.custom_tags)==null?void 0:Be[((mt=Le==null?void 0:Le.custom_tags)==null?void 0:mt.length)-1])==null?void 0:Ve.tag_name},Ie.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},Ie.createElement("span",{className:"multi-llipsis1e text-10px"},(de=(xe=Le==null?void 0:Le.custom_tags)==null?void 0:xe[((Nt=Le==null?void 0:Le.custom_tags)==null?void 0:Nt.length)-1])==null?void 0:de.tag_name))))),kt=="hide"&&(Le==null?void 0:Le.studying)&&ut&&Ie.createElement("div",{className:`${z.movebq} user-path-items`,onClick:te=>{te.stopPropagation(),It(Le)}},Ie.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ie.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(kt)&&ut&&Ie.createElement("div",{className:`${z.hiddenbq} user-path-items`,onClick:te=>{te.stopPropagation(),bt(Le)}},Ie.createElement("i",{className:`iconfont ${kt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ie.createElement("span",null,kt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ie.createElement("div",{className:z.name},Ie.createElement(ve.Z,{title:Ge&&(Le!=null&&Le.excellent_alias_name)?Ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${qe}`,Ie.createElement("br",null),Ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Le==null?void 0:Le.excellent_alias_name}`)):qe},Ie.createElement("span",{className:z.e},Ge&&(Le==null?void 0:Le.excellent_alias_name)||qe))),ut&<&&((Ct=Le==null?void 0:Le.progress)==null?void 0:Ct.all_score)!=0&&Ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ie.createElement(et.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((tn=Le==null?void 0:Le.progress)==null?void 0:tn.my_score)/((wt=Le==null?void 0:Le.progress)==null?void 0:wt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(me=Le==null?void 0:Le.progress)==null?void 0:me.my_score,"/",($e=Le==null?void 0:Le.progress)==null?void 0:$e.all_score),(!ut||!lt)&&Ie.createElement(ve.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${He}`},Ie.createElement("div",{className:z.unit},Ie.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),He)),(!ut||!lt)&&Ie.createElement("div",{className:z.tags},Ie.createElement("div",null,Ie.createElement(ve.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ie.createElement("span",null,Le.stages_count))),Ie.createElement(ve.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ie.createElement("span",null,Le.members_count)))))))})),!Ot.length&&Ie.createElement(Je.Z,null)))}},29596:function(pn,Kt,ne){"use strict";ne.d(Kt,{jL:function(){return et},w9:function(){return de},QD:function(){return Wt},cQ:function(){return _e.Z},op:function(){return vt},O5:function(){return vn},_b:function(){return Ae},t7:function(){return ke},Gi:function(){return qe},YG:function(){return me},qp:function(){return fe},vr:function(){return Tt},qE:function(){return we},Je:function(){return Ht},wb:function(){return Le},cq:function(){return St},tp:function(){return Ot}});var z=ne(59301),nt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},et=({dataSource:Ut=[],img:zt,imgWidth:Ft=346,title:Pt,sunTitle:nn,bannerExtraContent:Jt})=>z.createElement("div",{className:nt.banner},z.createElement("div",{className:nt.content},z.createElement("aside",null,z.createElement("p",null,z.createElement("b",null,Pt),z.createElement("span",null,nn)),Ut.length>0&&z.createElement("div",{className:nt.btns},Ut.map((ln,En)=>z.createElement("div",{key:En,onClick:ln.click},ln.name,ln.sign?z.createElement("span",{className:"sprite sprite-33"}):null))),Jt),zt&&z.createElement("img",{style:{marginTop:33,marginRight:38},src:zt,width:Ft}))),be={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Pe=ne(92310),Ne=ne.n(Pe),Je=ne(89392),fe=({dataSource:Ut=[],value:zt,onChange:Ft,onTitleChange:Pt,className:nn,title:Jt,titleWidth:ln=41,style:En={},fontColor:On="#6A7283",showCount:In})=>{const[Nn,Bn]=(0,z.useState)(1),[Qn,Zn]=(0,z.useState)(!1),jt=(0,z.useRef)(null),on=(0,z.useRef)(null);return(0,z.useEffect)(()=>{var Pn;Ut.length!==0&&(((Pn=jt==null?void 0:jt.current)==null?void 0:Pn.clientHeight)>97?Bn(1):Bn(0)),Ut.length===0&&Bn(0),Zn(!1)},[Ut]),z.createElement("div",{className:Ne()(be.row,nn,"fadeIn","animated"),style:En},z.createElement("div",{onClick:(0,Je.throttle)(()=>Pt==null?void 0:Pt(),2e3),style:{width:ln,marginTop:Qn?12:4},className:`${be.title} ${Pt?"current":""}`},Jt),z.createElement("div",{className:Qn?`${be.tagsWrap} ${be.tagsBorderWrap}`:be.tagsWrap},z.createElement("div",{className:be.bar,ref:on,style:Nn>0?{height:Nn===1?97:"auto",overflow:Nn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},z.createElement("div",{className:be.tag,ref:jt},Ut==null?void 0:Ut.map(Pn=>z.createElement("span",{onClick:()=>Ft(Pn.id),key:Pn.id,style:{color:On},className:zt===Pn.id?be.active:""},z.createElement("span",{title:Pn.name,className:be.name},Pn.name),!!In&&z.createElement("span",{className:be.num},Pn.count))))),!!Nn&&z.createElement(z.Fragment,null,Nn===1?z.createElement("div",{onClick:()=>{var Pn;Bn(2),((Pn=jt==null?void 0:jt.current)==null?void 0:Pn.clientHeight)>245?Zn(!0):Zn(!1)},className:be.action},"\u5C55\u5F00",z.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):z.createElement("div",{onClick:()=>{on.current.scrollTop=0,Bn(1),Zn(!1)},className:be.action},"\u6536\u8D77",z.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},tt={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ot=({dataSource:Ut=[],value:zt,onChange:Ft,className:Pt,style:nn={}})=>z.createElement("div",{style:nn,className:Ne()(tt.tabs,Pt)},Ut.map(Jt=>z.createElement("span",{onClick:()=>Ft(Jt.id),className:zt===Jt.id?tt.active:"",key:Jt.id},Jt.name))),Qe={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ze=ne(37568),ke=({dataSource:Ut=[],value:zt="",onChange:Ft,onInputChange:Pt=()=>{},className:nn,style:Jt={},placeholder:ln,allowClear:En=!1})=>{var On;const[In,Nn]=(0,z.useState)(""),[Bn,Qn]=(0,z.useState)("");(0,z.useEffect)(()=>{var on;let Pn=zt;(on=JSON.stringify(zt))!=null&&on.includes("{")&&(Nn(zt.id),Pn=zt.value||"");try{Qn(decodeURIComponent(Pn||""))}catch(xn){Qn(decodeURIComponent(Pn||""))}},[zt]);const Zn=()=>{Ft(encodeURIComponent(Bn),In||null)},jt=on=>{on!==In&&(Nn(on),Ft(encodeURIComponent(Bn),on))};return z.createElement("div",{className:Ne()(Qe.input,nn),style:Jt},!!Ut.length&&z.createElement("div",{className:Qe.dropdown},z.createElement("div",{className:Qe.text},(On=Ut.find(on=>on.id===In))==null?void 0:On.name,z.createElement("i",{className:"iconfont icon-zhankai4"}),z.createElement("b",{className:Qe.b1}),z.createElement("b",{className:Qe.b2})),z.createElement("div",{className:Qe.menu},Ut.map((on,Pn)=>z.createElement("div",{key:Pn,onClick:()=>jt(on.id)},on.name)))),z.createElement(ze.default,{onPressEnter:Zn,value:Bn,onChange:on=>{Qn(on.target.value),Pt(encodeURIComponent(on.target.value),In||null)},placeholder:ln,variant:"borderless",allowClear:En,onClear:()=>Ft("",In||null)}),z.createElement("i",{onClick:Zn,className:"iconfont icon-sousuo9 font14 current"}))},ft={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ht=({value:Ut,onChange:zt,className:Ft,total:Pt,pageSize:nn,style:Jt={}})=>{const ln=Ut<2,En=Ut>=Math.ceil(Pt/nn);return Pt<=nn?z.createElement(z.Fragment,null):z.createElement("div",{className:Ne()(ft.quickPager,Ft),style:Jt},z.createElement("div",{onClick:()=>{ln||zt(Ut-1,"prev")},className:ln?ft.disabled:""},"\u4E0A\u4E00\u9875"),z.createElement("div",{onClick:()=>{En||zt(Ut+1,"next")},className:En?ft.disabled:""},"\u4E0B\u4E00\u9875"))},It={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},ut=ne(29787),lt=ne(25399),Ge=ne(63139),kt=ne(35783),bt=ne(68911),ht=ne(71347),Le=({className:Ut,dataSource:zt=[],col:Ft=4,right:Pt,bottom:nn=23,precision:Jt=0,wrapWidth:ln=1200,trackEventItems:En,loading:On})=>{const In=Math.floor((ln-(Ft-1)*Pt)/Ft);return z.createElement(ut.Z,{spinning:On},z.createElement("div",{className:Ne()(It.list,Ut)},!!zt.length&&zt.map((Nn,Bn)=>{const{name:Qn,id:Zn,identifier:jt,power:on,cover_image_id:Pn,pic:xn}=Nn;return z.createElement("div",{className:It.wrap,key:Zn,style:{width:In,marginRight:(1+Bn)%Ft===0?0:Pt+Jt,marginBottom:nn}},z.createElement("a",{target:"_blank",href:`/shixuns/${jt}/challenges`,className:It.li,onClick:Re=>{Re.preventDefault(),En&&(0,bt.L9)([En]),on&&(0,bt.xg)(`/shixuns/${jt}/challenges`)}},z.createElement("div",{className:It.img},z.createElement("img",{className:It.cover,src:`${xn}`}),Nn.is_jupyter&&z.createElement("span",{className:`sprite sprite-43 ${It.sign}`}),Nn.is_jupyter_lab&&z.createElement("span",{className:`sprite sprite-42 ${It.sign}`}),Nn.is_unity_3d&&z.createElement("span",{className:`sprite sprite-44 ${It.sign}`})),z.createElement("div",{className:It.name},z.createElement(lt.Z,{title:Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},z.createElement("span",{className:It.e},Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),z.createElement("div",{className:It.tags},z.createElement(lt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),z.createElement("span",null,Nn.challenges_count))),!!Nn.myshixuns_count&&z.createElement(lt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),z.createElement("span",null,Nn.myshixuns_count))),z.createElement(lt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},z.createElement("span",null,z.createElement("span",null,Nn.level))),z.createElement("div",{className:It.rate},z.createElement(Ge.Z,{allowHalf:!0,disabled:!0,defaultValue:Nn.score_info}),z.createElement("span",null,"\xA0",Nn.score_info?`${Nn.score_info}\u5206`:"5\u5206")))),!on&&z.createElement("div",{className:It.lockWrap},z.createElement("img",{src:`${kt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),z.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!zt.length&&z.createElement(ht.Z,null)))},_e=ne(64194),Fe={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ue=ne(62957),mt=ne(96599),Be="data:image/png;base64,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",Ve=ne(59301),Nt=(Ut,zt,Ft)=>new Promise((Pt,nn)=>{var Jt=On=>{try{En(Ft.next(On))}catch(In){nn(In)}},ln=On=>{try{En(Ft.throw(On))}catch(In){nn(In)}},En=On=>On.done?Pt(On.value):Promise.resolve(On.value).then(Jt,ln);En((Ft=Ft.apply(Ut,zt)).next())}),de=({className:Ut,dataSource:zt=[],col:Ft=4,right:Pt,bottom:nn=23,precision:Jt=0,wrapWidth:ln=1200,trackEventItems:En,loading:On,category:In,hiddenClick:Nn,handleVery:Bn=()=>!0,isCurrent:Qn})=>{const[Zn,jt]=ue.default.useModal(),on=Math.floor((ln-(Ft-1)*Pt)/Ft),Pn=xn=>Nt(void 0,null,function*(){Zn.confirm({title:"\u7F6E\u9876",width:500,content:Ve.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",Ve.createElement("span",{className:"c-blue"},"\u201C",xn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return Ve.createElement(ut.Z,{spinning:On},jt,Ve.createElement("div",{className:Ne()(Fe.list,Ut)},!!zt.length&&zt.map((xn,Re)=>{const{subject_identifier:rt,id:Se,identifier:je,power:Oe}=xn,We=xn.is_public!=0&&xn.is_public;return Ve.createElement("div",{className:Fe.wrap,key:Se,style:{width:on,marginRight:(1+Re)%Ft===0?0:Pt+Jt,marginBottom:nn}},xn.homepage_show&&Ve.createElement("div",{className:Fe.btnsTop},Ve.createElement(mt.default,{color:"red"},"\u7F6E\u9876")),Ve.createElement("a",{className:Fe.li,onClick:ge=>{ge.preventDefault(),Bn(xn==null?void 0:xn.first_category_url)&&(En&&(0,bt.L9)([En]),(0,bt.xg)(xn.first_category_url))}},Ve.createElement("div",{className:Fe.top},Ve.createElement(lt.Z,{title:xn.name},Ve.createElement("div",{className:Fe.name},xn.name)),Ve.createElement("img",{className:Fe.img,src:kt.Z.IMG_SERVER+"/images/"+xn.avatar_url}),Ve.createElement("div",{className:Fe.text,title:xn.creator},xn.creator),rt&&Ve.createElement("div",{className:Fe.btns},Ve.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ve.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),We&&Ve.createElement("div",{className:Fe.sign},"\u516C\u5F00"),Qn&&Ve.createElement("div",{className:Fe.hidden,onClick:ge=>{ge.stopPropagation(),Nn(xn)}},Ve.createElement("i",{className:`iconfont ${In=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),In=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Ve.createElement("div",{className:Fe.bottom},xn.visits>0&&Ve.createElement(lt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ve.createElement("span",null,Ve.createElement("i",{className:"iconfont icon-liulanyan"}),Ve.createElement("span",null,xn.visits))),xn.course_members_count>0&&Ve.createElement(lt.Z,{title:"\u6210\u5458",placement:"bottom"},Ve.createElement("span",null,Ve.createElement("i",{className:"iconfont icon-chengyuan"}),xn.course_members_count)),xn.tasks_count>0&&Ve.createElement(lt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ve.createElement("span",null,Ve.createElement("i",{className:"iconfont icon-zuoye"}),xn.tasks_count)),xn.is_end?Ve.createElement("div",{style:{color:"#6B758B"}}):Ve.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!xn.is_accessible&&Ve.createElement("div",{className:Fe.lockWrap},Ve.createElement("img",{src:`${kt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ve.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!zt.length&&Ve.createElement(ht.Z,null)))},Ct={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},tn=ne(63823),me=({dataSource:Ut=[],value:zt,onChange:Ft,className:Pt,style:nn={},tabBarExtraContent:Jt})=>z.createElement("div",{className:Ne()(Ct.tabs,Pt),style:nn},z.createElement("div",{className:Ct.tabsWrap},Ut.map((ln,En)=>!(ln!=null&&ln.hide)&&z.createElement("aside",{className:Ct.tab,onClick:()=>{Ft(ln.id),ln.link&&tn.history.push(ln.link)},key:En},z.createElement("div",{className:zt===ln.id?Ct.active:""},ln.name),(ln==null?void 0:ln.resetCount)==null&&(ln==null?void 0:ln.total)!==void 0&&z.createElement("span",null,"\uFF08",ln==null?void 0:ln.total,"\uFF09"),(ln==null?void 0:ln.resetCount)!==void 0&&(ln==null?void 0:ln.total)!==void 0&&z.createElement(lt.Z,{title:(ln==null?void 0:ln.tip)!=null?ln==null?void 0:ln.tip:""},z.createElement("span",{style:{color:"#9096A3"}},"\uFF08",z.createElement("span",{style:{color:"#000"}},ln==null?void 0:ln.resetCount),"/",z.createElement("span",null,ln==null?void 0:ln.total),"\uFF09"))))),z.createElement("div",{className:Ct.tabBar},Jt)),qe=({className:Ut,style:zt={},children:Ft})=>z.createElement("div",{className:Ne()(Ut),style:zt},Ft),$t={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Rt=ne(75727),Yt=ne(93041);const He=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var St=({sortValue:Ut,dropValue:zt,className:Ft,onSort:Pt,onDrop:nn,dataSource:Jt=He})=>{var ln;return z.createElement("div",{className:Ne()($t.orderWrap,Ft)},z.createElement(Rt.Z,{dropdownRender:()=>z.createElement(Yt.default,null,Jt.map((En,On)=>z.createElement(Yt.default.Item,{key:On,onClick:()=>nn(En.id)},En.name)))},z.createElement("span",{className:$t.orderTextWrap},(ln=Jt.find(En=>zt===En.id))==null?void 0:ln.name)),z.createElement("span",{className:$t.orderIconWrap},z.createElement("span",{className:$t.orderAsc},z.createElement("i",{className:Ut==="asc"?`iconfont icon-sanjiaoxing-up font12 ${$t.cursorPointer} ${$t.active}`:`iconfont icon-sanjiaoxing-up font12 ${$t.cursorPointer}`,onClick:()=>Pt(Ut==="asc"?"desc":"asc")})),z.createElement("span",{className:$t.orderDesc},z.createElement("i",{className:Ut==="desc"?`iconfont icon-sanjiaoxing-down font12 ${$t.cursorPointer} ${$t.active}`:`iconfont icon-sanjiaoxing-down font12 ${$t.cursorPointer}`,onClick:()=>Pt(Ut==="asc"?"desc":"asc")}))))},ae={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},te=ne(7939),ee=Object.defineProperty,oe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,pe=(Ut,zt,Ft)=>zt in Ut?ee(Ut,zt,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Ut[zt]=Ft,Ce=(Ut,zt)=>{for(var Ft in zt||(zt={}))se.call(zt,Ft)&&pe(Ut,Ft,zt[Ft]);if(oe)for(var Ft of oe(zt))re.call(zt,Ft)&&pe(Ut,Ft,zt[Ft]);return Ut},gt=(Ut,zt)=>{var Ft={};for(var Pt in Ut)se.call(Ut,Pt)&&zt.indexOf(Pt)<0&&(Ft[Pt]=Ut[Pt]);if(Ut!=null&&oe)for(var Pt of oe(Ut))zt.indexOf(Pt)<0&&re.call(Ut,Pt)&&(Ft[Pt]=Ut[Pt]);return Ft},Te=(Ut,zt,Ft)=>new Promise((Pt,nn)=>{var Jt=On=>{try{En(Ft.next(On))}catch(In){nn(In)}},ln=On=>{try{En(Ft.throw(On))}catch(In){nn(In)}},En=On=>On.done?Pt(On.value):Promise.resolve(On.value).then(Jt,ln);En((Ft=Ft.apply(Ut,zt)).next())}),vt=Ut=>{var zt=Ut,{className:Ft,style:Pt,children:nn,loading:Jt=!1,openLoading:ln,onClick:En=()=>{},size:On="middle",shape:In="round"}=zt,Nn=gt(zt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Bn,Qn]=(0,z.useState)(!1);return z.createElement(te.ZP,Ce({onClick:(0,Je.throttle)(Zn=>Te(void 0,null,function*(){ln&&Qn(!0);try{yield En(Zn)}catch(jt){console.log("error",jt)}ln&&Qn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ne()(ae.btn,ae[`${On}-${In}`],Ft),style:Pt,size:On,shape:In,loading:Bn||Jt},Nn),nn)},Bt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},we=({className:Ut,style:zt,children:Ft=null,onClick:Pt,title:nn})=>z.createElement("div",{className:Ne()(Bt.head,Ut),style:zt},z.createElement("span",{className:"primary-hover",onClick:Pt},z.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),z.createElement("b",{title:nn},nn),z.createElement("div",{className:Bt.node},Ft)),Me={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Wt=({confirmShow:Ut=!0,confirmTitle:zt,confirmClick:Ft,cancelShow:Pt=!0,cancelTitle:nn,cancelClick:Jt,className:ln,style:En,confirmLoading:On=!1})=>z.createElement("div",{className:Ne()(Me.btns,ln),style:En},Ut&&z.createElement(te.ZP,{loading:On,onClick:Ft,type:"primary",className:Me.confirm},zt),Pt&&z.createElement(te.ZP,{onClick:Jt,className:Me.cancel},nn)),en={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Tt=({className:Ut,style:zt={},LeftContent:Ft,children:Pt,RightContent:nn})=>z.createElement("div",{className:Ne()(en.fixedBottom,Ut),style:zt},z.createElement("div",{className:en.wrap},z.createElement("div",{className:en.left},Ft),z.createElement("div",{className:en.center},Pt),z.createElement("div",{className:en.right},nn))),an={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Ae=({className:Ut,style:zt={},dataSource:Ft=[]})=>z.createElement("div",{className:Ne()(an.crumbs,Ut),style:zt},Ft.map((Pt,nn)=>nntn.history.push(Pt.path)},Pt.name):z.createElement("span",null,Pt.name),z.createElement("span",null,"\xA0",">","\xA0")):z.createElement("span",{key:nn,style:{color:"#5F6368"}},Pt.name))),st=ne(11938),At=Object.defineProperty,_t=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Xt=(Ut,zt,Ft)=>zt in Ut?At(Ut,zt,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Ut[zt]=Ft,fn=(Ut,zt)=>{for(var Ft in zt||(zt={}))pt.call(zt,Ft)&&Xt(Ut,Ft,zt[Ft]);if(Xe)for(var Ft of Xe(zt))Dt.call(zt,Ft)&&Xt(Ut,Ft,zt[Ft]);return Ut},Dn=(Ut,zt)=>_t(Ut,De(zt)),Mn=(Ut,zt)=>{var Ft={};for(var Pt in Ut)pt.call(Ut,Pt)&&zt.indexOf(Pt)<0&&(Ft[Pt]=Ut[Pt]);if(Ut!=null&&Xe)for(var Pt of Xe(Ut))zt.indexOf(Pt)<0&&Dt.call(Ut,Pt)&&(Ft[Pt]=Ut[Pt]);return Ft};const{Countdown:rn}=st.default;var vn=Ut=>{var zt=Ut,{onChange:Ft}=zt,Pt=Mn(zt,["onChange"]);const[nn,Jt]=(0,z.useState)(null);(0,z.useEffect)(()=>{typeof nn=="number"&&nn>=0&&Ft(nn)},[nn]);const ln=En=>{const On=Math.floor(En/1e3);Jt(On)};return z.createElement(rn,Dn(fn({},Pt),{onChange:ln}))}},2408:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return nt}});var z=ne(59301);function nt(ve,et){const be=(0,z.useRef)();(0,z.useEffect)(()=>{be.current=ve}),(0,z.useEffect)(()=>{function Pe(){be.current()}if(et!==null){let Ne=setInterval(Pe,et);return()=>clearInterval(Ne)}},[et])}},26684:function(pn,Kt,ne){"use strict";var z=ne(59301),nt=ne(6767),ve=ne(94968),et=ne(62957),be=ne(28284),Pe=ne(37568),Ne=ne(77019),Je=ne(5269),Ie=ne(26843),fe=ne(35783),tt=ne(19248),Ee=ne(8831),Ot=ne(29596),Qe=Object.defineProperty,ze=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,ft=(ut,lt,Ge)=>lt in ut?Qe(ut,lt,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):ut[lt]=Ge,Et=(ut,lt)=>{for(var Ge in lt||(lt={}))Ke.call(lt,Ge)&&ft(ut,Ge,lt[Ge]);if(ze)for(var Ge of ze(lt))ke.call(lt,Ge)&&ft(ut,Ge,lt[Ge]);return ut},Ht=(ut,lt)=>{var Ge={};for(var kt in ut)Ke.call(ut,kt)&<.indexOf(kt)<0&&(Ge[kt]=ut[kt]);if(ut!=null&&ze)for(var kt of ze(ut))lt.indexOf(kt)<0&&ke.call(ut,kt)&&(Ge[kt]=ut[kt]);return Ge};const It=ut=>{var lt=ut,{handleFinish:Ge,form:kt,dispatch:bt}=lt,ht=Ht(lt,["handleFinish","form","dispatch"]),Lt,Le;const[_e,Fe]=(0,z.useState)([]),ue={fileList:_e,maxCount:1,accept:"image/*",withCredentials:!0,beforeUpload:Ve=>{const Nt=Ve.size/1024/1024;return Nt>2||Nt==0?(nt.ZP.error(`${Ve.name} \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002${Nt==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u56FE\u7247\u5927\u5C0F\u9650\u5236(2MB)"}`),ve.default.LIST_IGNORE):!0},onRemove:Ve=>{Fe([])},onChange:Ve=>{var Nt,xe,de;kt.setFieldsValue({cover_id:""}),["uploading","done","removed"].includes(Ve.file.status)&&(Fe(Ve.fileList),kt.setFieldsValue({cover_id:(de=(xe=(Nt=Ve.fileList)==null?void 0:Nt[0])==null?void 0:xe.response)==null?void 0:de.id}))},action:`${fe.Z.API_SERVER}/api/attachments.json`},mt={multiple:!0,maxCount:10,withCredentials:!0,beforeUpload:Ve=>{const Nt=Ve.size/1024/1024;return Nt>500||Nt==0?(nt.ZP.error(`${Ve.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${Nt==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(500MB)"}`),ve.default.LIST_IGNORE):!0},action:`${fe.Z.API_SERVER}/api/attachments.json`},Be=()=>{var Ve,Nt;return z.createElement("div",{className:Ie.Z.imgUpLoad},z.createElement("img",{src:fe.Z.API_SERVER+"/api/attachments/"+((Nt=(Ve=_e==null?void 0:_e[0])==null?void 0:Ve.response)==null?void 0:Nt.id),alt:"avatar",style:{width:"100%"}}),z.createElement("div",null,z.createElement(tt.Z,{onClick:()=>{Fe([]),kt.setFieldsValue({cover_id:""})},style:{fontSize:"16px",color:"red"}})))};return(0,z.useEffect)(()=>{ht.open&&kt.getFieldValue("cover_id")&&kt.getFieldValue("cover")&&Fe([{response:kt.getFieldValue("cover")}])},[ht.open]),z.createElement(et.default,Et({},ht),z.createElement(be.default,{form:kt,initialValues:{},layout:"vertical",onFinish:Ve=>{Ge(Ve),Fe([])}},z.createElement(be.default.Item,{htmlFor:null,name:"name",label:"\u6807\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},z.createElement(Pe.default,{placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",maxLength:60,showCount:!0})),z.createElement(be.default.Item,{htmlFor:null,name:"desc",label:"\u5185\u5BB9",rules:[{required:!0,message:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9"}]},z.createElement(Ee.h,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9",scrollId:"",watch:!0,height:192})),z.createElement(be.default.Item,{htmlFor:null,label:"\u9644\u4EF6",name:"attachment_ids",valuePropName:"fileList",getValueFromEvent:Ve=>Array.isArray(Ve)?Ve:Ve==null?void 0:Ve.fileList},z.createElement(ve.default,Et({},mt),z.createElement(Ne.Z,{wrap:!1,align:"middle"},z.createElement(Ot.op,{style:{borderRadius:"2px"},icon:z.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u6587\u4EF6\u4E0A\u4F20"),z.createElement(Je.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:Ve=>{Ve.preventDefault(),Ve.stopPropagation()}},"1\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B2\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002")))),z.createElement(be.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE\u7247"}]},z.createElement("div",{className:Ie.Z.upload},(Le=(Lt=_e==null?void 0:_e[0])==null?void 0:Lt.response)!=null&&Le.id?Be():z.createElement(ve.default,Et({},ue),z.createElement(Ne.Z,{wrap:!1,align:"middle"},z.createElement(Ot.op,{style:{borderRadius:"2px"},icon:z.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u56FE\u7247\u4E0A\u4F20"),z.createElement(Je.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:Ve=>{Ve.preventDefault(),Ve.stopPropagation()}},"\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8282*212\u50CF\u7D20")))))))};Kt.Z=It},64962:function(pn,Kt,ne){"use strict";ne.r(Kt);var z=ne(59301),nt=ne(63823),ve=ne(28284),et=ne(29787),be=ne(77019),Pe=ne(5269),Ne=ne(25399),Je=ne(31709),Ie=ne(6767),fe=ne(29596),tt=ne(71347),Ee=ne(26843),Ot=ne(35783),Qe=ne(68911),ze=ne(66649),Ke=ne.n(ze),ke=ne(26684),ft=Object.defineProperty,Et=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Ge=(_e,Fe,ue)=>Fe in _e?ft(_e,Fe,{enumerable:!0,configurable:!0,writable:!0,value:ue}):_e[Fe]=ue,kt=(_e,Fe)=>{for(var ue in Fe||(Fe={}))ut.call(Fe,ue)&&Ge(_e,ue,Fe[ue]);if(It)for(var ue of It(Fe))lt.call(Fe,ue)&&Ge(_e,ue,Fe[ue]);return _e},bt=(_e,Fe)=>Et(_e,Ht(Fe)),ht=(_e,Fe)=>{var ue={};for(var mt in _e)ut.call(_e,mt)&&Fe.indexOf(mt)<0&&(ue[mt]=_e[mt]);if(_e!=null&&It)for(var mt of It(_e))Fe.indexOf(mt)<0&<.call(_e,mt)&&(ue[mt]=_e[mt]);return ue},Lt=(_e,Fe,ue)=>new Promise((mt,Be)=>{var Ve=de=>{try{xe(ue.next(de))}catch(Ct){Be(Ct)}},Nt=de=>{try{xe(ue.throw(de))}catch(Ct){Be(Ct)}},xe=de=>de.done?mt(de.value):Promise.resolve(de.value).then(Ve,Nt);xe((ue=ue.apply(_e,Fe)).next())});const Le=_e=>{var Fe=_e,{classroomList:ue,globalSetting:mt,virtualSpaces:Be,loading:Ve,user:Nt,dispatch:xe}=Fe,de=ht(Fe,["classroomList","globalSetting","virtualSpaces","loading","user","dispatch"]),Ct,tn,wt,me,$e,qe,$t;const{DiscussionList:Rt,menus:Yt}=Be,[He]=ve.default.useForm(),{virtual_spacesId:Qt}=(0,nt.useParams)(),[St,ae]=(0,z.useState)(!1),[te,ee]=(0,z.useState)({page:1,limit:15}),oe=((Ct=Yt==null?void 0:Yt.find(re=>re.id==window.localStorage.getItem("vtrsModuleId")))==null?void 0:Ct.name)||"",se=()=>{window.scrollTo(0,0),xe({type:"virtualSpaces/getDiscussionList",payload:bt(kt({},te),{virtual_spacesId:Qt,virtual_module_id:window.localStorage.getItem("vtrsModuleId")})})};return(0,z.useEffect)(()=>{se()},[te,window.localStorage.getItem("vtrsModuleId")]),z.createElement(et.Z,{spinning:Ve["virtualSpaces/getDiscussionList"]},z.createElement("div",{className:"ml40 mr40"},z.createElement(fe.YG,{value:"all",onChange:()=>{},tabBarExtraContent:z.createElement(fe.op,{onClick:()=>{ae(!0),He.resetFields()}},"\u65B0\u5EFA"),dataSource:[{id:"all",name:oe}]}),((tn=Rt==null?void 0:Rt.data)==null?void 0:tn.count)==0?z.createElement(tt.Z,null):z.createElement("div",{className:Ee.Z.DiscussionList},(me=(wt=Rt==null?void 0:Rt.data)==null?void 0:wt.list)==null?void 0:me.map((re,pe)=>{var Ce;return z.createElement(be.Z,{style:{flexDirection:"column"},key:pe,className:Ee.Z.DiscussionListItem,onClick:()=>{nt.history.push(`/${Qe.AS}/${Qt}/discussion/${re.id}/detail?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}},z.createElement(Pe.Z,{style:{width:283,height:177,overflow:"hidden"}},z.createElement("img",{className:Ee.Z.DiscussionListItemImg,src:`${Ot.Z.API_SERVER}${(Ce=re==null?void 0:re.cover)==null?void 0:Ce.url}`})),z.createElement(be.Z,{justify:"space-between",style:{padding:"26px 12px",flexDirection:"column",flex:1,width:283}},z.createElement(Pe.Z,null,z.createElement(Ne.Z,{placement:"topLeft",title:re.name},z.createElement("div",{className:`font16 ${Ee.Z.Onerow}`,style:{color:"#333",fontWeight:600}},re.name)),z.createElement("div",{className:`mt10 ${Ee.Z.MultiLine}`,style:{color:"#666"}},re.desc)),z.createElement(be.Z,{style:{marginTop:"22px"},align:"middle",justify:"space-between",wrap:!1},z.createElement(Pe.Z,null,z.createElement("i",{className:"iconfont icon-shijian1 font12 mr5"}),Ke()(re==null?void 0:re.created_at).format("YYYY-MM-DD")),z.createElement(Ne.Z,{placement:"topLeft",title:re.real_name},z.createElement(Pe.Z,{className:Ee.Z.Onerow,style:{maxWidth:150,lineHeight:"18px"}},z.createElement("img",{className:"mr5",width:18,height:18,src:`${Ot.Z.IMG_SERVER}/images/${re==null?void 0:re.user_image_url}`}),re==null?void 0:re.real_name)))))})),(($e=Rt==null?void 0:Rt.data)==null?void 0:$e.count)!=0&&z.createElement(be.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"space-between"},z.createElement(Pe.Z,null,"\u5171\xA0",z.createElement("span",{style:{color:"#165DFF"}},((qe=Rt==null?void 0:Rt.data)==null?void 0:qe.count)||0),"\xA0\u6761\u6570\u636E"),z.createElement(Pe.Z,null,z.createElement(Je.Z,{showSizeChanger:!1,showQuickJumper:!0,current:te.page,pageSize:te.limit,onChange:(re,pe)=>ee(bt(kt({},te),{page:re,limit:pe})),total:(($t=Rt==null?void 0:Rt.data)==null?void 0:$t.count)||0}))),z.createElement(ke.Z,{form:He,title:"\u65B0\u5EFA\u4EA4\u6D41\u7814\u8BA8",width:1200,open:St,destroyOnClose:!0,dispatch:xe,onCancel:()=>{ae(!1),He.resetFields()},confirmLoading:Ve["virtualSpaces/postDiscussionList"],onOk:()=>He.submit(),handleFinish:re=>Lt(void 0,null,function*(){var pe;re.attachment_ids=((pe=re==null?void 0:re.attachment_ids)==null?void 0:pe.map(gt=>{var Te;return(Te=gt==null?void 0:gt.response)==null?void 0:Te.id}))||[];const Ce=yield xe({type:"virtualSpaces/postDiscussionList",payload:bt(kt({virtual_spacesId:Qt},re),{virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});console.log(re),(Ce==null?void 0:Ce.status)==0&&(Ie.ZP.success("\u65B0\u5EFA\u6210\u529F"),He.resetFields(),ae(!1),se())})})))};Kt.default=(0,nt.connect)(({classroomList:_e,loading:Fe,globalSetting:ue,virtualSpaces:mt,user:Be})=>({classroomList:_e,globalSetting:ue,loading:Fe.effects,virtualSpaces:mt,user:Be}))(Le)},74410:function(pn,Kt,ne){"use strict";ne.d(Kt,{AL:function(){return It},Iy:function(){return tt},Qv:function(){return Qe},ez:function(){return Ht},jb:function(){return Ee}});var z=ne(32834),nt=ne.n(z),ve=ne(11690),et=ne.n(ve);let be=1;function Pe(bt,ht){const Lt=bt.match(/^(\s+)(?:```)/);if(Lt===null)return ht;const Le=Lt[1];return ht.split(` `).map(_e=>{const Fe=_e.match(/^\s+/);if(Fe===null)return _e;const[ue]=Fe;return ue.length>=Le.length?_e.slice(Le.length):_e}).join(` `)}let Ne=[],Je=["
    "];const Ie=new(nt()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function tt(){Ne.length=0,Je=["
      "]}const Ee={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ot(bt,ht,Lt,Le){if(ht>=bt.length||bt[ht].level<=Lt)return ht;var _e=bt[ht];Le.push("
    • "+_e.text+""),ht++;var Fe=[];return ht=Ot(bt,ht,_e.level,Fe),Fe.length>0&&(Le.push("
        "),Fe.forEach(function(ue){Le.push(ue)}),Le.push("
      ")),Le.push("
    • "),ht=Ot(bt,ht,Lt,Le),ht}function Qe(){return Ot(Ne,0,0,Je),Je.push("
    "),Je.join("")}const ze={heading(bt){const ht=fe.exec(bt);if(be+=1,ht)return{type:"heading",raw:ht[0],depth:ht[1].length,text:ht[2]}},fences(bt){const ht=this.rules.block.fences.exec(bt);if(ht){const Lt=ht[0];let Le=Pe(Lt,ht[3]||"");const _e=ht[2]?ht[2].trim():ht[2];if(["latex","katex","math"].indexOf(_e)>=0){const Fe=ft(),ue=Le;Le=Fe,Et[Fe]={type:"block",expression:ue}}return{type:"code",raw:Lt,lang:_e,text:Le}}}},Ke=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ke=0;const ft=()=>`__special_katext_id_${ke++}__`;let Et={};function Ht(){return Et}function It(){ke=0,Et={}}function ut(bt){return bt=bt.replace(Ke,(ht,Lt)=>{const Le=ft();return Et[Le]={type:"inline",expression:Lt},Le}),bt}const lt=Ie.listitem;Ie.listitem=function(bt){return lt(ut(bt))};const Ge=Ie.paragraph;Ie.paragraph=function(bt){return Ge(ut(bt))};const kt=Ie.tablecell;Ie.tablecell=function(bt,ht){return kt(ut(bt),ht)},Ie.code=function(bt,ht,Lt){const Le=(ht||"").match(/\S*/)[0];return Le?["latex","katex","math"].indexOf(Le)>=0?`

    ${bt}

    `:`
    ${Lt?bt:(0,ve.escape)(bt,!0)}
    `:'
    '+(Lt?bt:(0,ve.escape)(bt,!0))+"
    "},Ie.heading=function(bt,ht,Lt){let Le=this.options.headerPrefix+Lt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ne.push({anchor:Le,level:ht,text:bt}),"'+bt+""},nt().setOptions({silent:!0,gfm:!0,pedantic:!1}),nt().use({tokenizer:ze,renderer:Ie}),Kt.ZP=nt()},86013:function(pn,Kt,ne){"use strict";var z=ne(59301),nt=ne(19248);const ve=et=>{let be;return typeof et=="object"&&(et!=null&&et.clearIcon)?be=et:et&&(be={clearIcon:z.createElement(nt.Z,null)}),be};Kt.Z=ve},38406:function(pn,Kt,ne){"use strict";var z=ne(59301),nt=ne(48755),ve=ne(584);const et=be=>{const{componentName:Pe}=be,{getPrefixCls:Ne}=(0,z.useContext)(nt.E_),Je=Ne("empty");switch(Pe){case"Table":case"List":return z.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE,className:`${Je}-small`});case"Table.filter":return null;default:return z.createElement(ve.Z,null)}};Kt.Z=et},36207:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return gt}});var z=ne(59301),nt=ne(92310),ve=ne.n(nt),et=ne(33885),be=ne(42978),Pe=ne(43403),Ne=ne(34280),Je=z.createContext(null),Ie=z.createContext({}),fe=Je,tt=ne(20068),Ee=ne(54476),Ot=ne(77900),Qe=ne(10228),ze=ne(26112),Ke=ne(75931),ke=ne(8654),ft=["prefixCls","className","containerRef"],Et=function(it){var vt=it.prefixCls,Bt=it.className,Mt=it.containerRef,we=(0,Ke.Z)(it,ft),Me=z.useContext(Ie),Zt=Me.panel,Wt=(0,ke.x1)(Zt,Mt);return z.createElement("div",(0,Ee.Z)({className:ve()("".concat(vt,"-content"),Bt),role:"dialog",ref:Wt},(0,ze.Z)(it,{aria:!0}),{"aria-modal":"true"},we))},Ht=Et,It=ne(48736);function ut(Te){return typeof Te=="string"&&String(Number(Te))===Te?((0,It.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Te)):Te}function lt(Te){warning(!("wrapperClassName"in Te),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Te.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ge={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function kt(Te,it){var vt,Bt,Mt,we=Te.prefixCls,Me=Te.open,Zt=Te.placement,Wt=Te.inline,en=Te.push,un=Te.forceRender,Tt=Te.autoFocus,an=Te.keyboard,Gt=Te.classNames,Ae=Te.rootClassName,st=Te.rootStyle,At=Te.zIndex,_t=Te.className,De=Te.id,Xe=Te.style,pt=Te.motion,Dt=Te.width,Xt=Te.height,fn=Te.children,Dn=Te.mask,Mn=Te.maskClosable,rn=Te.maskMotion,bn=Te.maskClassName,vn=Te.maskStyle,Ut=Te.afterOpenChange,zt=Te.onClose,Ft=Te.onMouseEnter,Pt=Te.onMouseOver,nn=Te.onMouseLeave,Jt=Te.onClick,ln=Te.onKeyDown,En=Te.onKeyUp,On=Te.styles,In=Te.drawerRender,Nn=z.useRef(),Bn=z.useRef(),Qn=z.useRef();z.useImperativeHandle(it,function(){return Nn.current});var Zn=function(Ze){var Ye=Ze.keyCode,dt=Ze.shiftKey;switch(Ye){case Qe.Z.TAB:{if(Ye===Qe.Z.TAB){if(!dt&&document.activeElement===Qn.current){var cn;(cn=Bn.current)===null||cn===void 0||cn.focus({preventScroll:!0})}else if(dt&&document.activeElement===Bn.current){var sn;(sn=Qn.current)===null||sn===void 0||sn.focus({preventScroll:!0})}}break}case Qe.Z.ESC:{zt&&an&&(Ze.stopPropagation(),zt(Ze));break}}};z.useEffect(function(){if(Me&&Tt){var Ue;(Ue=Nn.current)===null||Ue===void 0||Ue.focus({preventScroll:!0})}},[Me]);var jt=z.useState(!1),on=(0,be.Z)(jt,2),Pn=on[0],xn=on[1],Re=z.useContext(fe),rt;typeof en=="boolean"?rt=en?{}:{distance:0}:rt=en||{};var Se=(vt=(Bt=(Mt=rt)===null||Mt===void 0?void 0:Mt.distance)!==null&&Bt!==void 0?Bt:Re==null?void 0:Re.pushDistance)!==null&&vt!==void 0?vt:180,je=z.useMemo(function(){return{pushDistance:Se,push:function(){xn(!0)},pull:function(){xn(!1)}}},[Se]);z.useEffect(function(){if(Me){var Ue;Re==null||(Ue=Re.push)===null||Ue===void 0||Ue.call(Re)}else{var Ze;Re==null||(Ze=Re.pull)===null||Ze===void 0||Ze.call(Re)}},[Me]),z.useEffect(function(){return function(){var Ue;Re==null||(Ue=Re.pull)===null||Ue===void 0||Ue.call(Re)}},[]);var Oe=Dn&&z.createElement(Ot.default,(0,Ee.Z)({key:"mask"},rn,{visible:Me}),function(Ue,Ze){var Ye=Ue.className,dt=Ue.style;return z.createElement("div",{className:ve()("".concat(we,"-mask"),Ye,Gt==null?void 0:Gt.mask,bn),style:(0,et.Z)((0,et.Z)((0,et.Z)({},dt),vn),On==null?void 0:On.mask),onClick:Mn&&Me?zt:void 0,ref:Ze})}),We=typeof pt=="function"?pt(Zt):pt,ge={};if(Pn&&Se)switch(Zt){case"top":ge.transform="translateY(".concat(Se,"px)");break;case"bottom":ge.transform="translateY(".concat(-Se,"px)");break;case"left":ge.transform="translateX(".concat(Se,"px)");break;default:ge.transform="translateX(".concat(-Se,"px)");break}Zt==="left"||Zt==="right"?ge.width=ut(Dt):ge.height=ut(Xt);var ot={onMouseEnter:Ft,onMouseOver:Pt,onMouseLeave:nn,onClick:Jt,onKeyDown:ln,onKeyUp:En},ct=z.createElement(Ot.default,(0,Ee.Z)({key:"panel"},We,{visible:Me,forceRender:un,onVisibleChanged:function(Ze){Ut==null||Ut(Ze)},removeOnLeave:!1,leavedClassName:"".concat(we,"-content-wrapper-hidden")}),function(Ue,Ze){var Ye=Ue.className,dt=Ue.style,cn=z.createElement(Ht,(0,Ee.Z)({id:De,containerRef:Ze,prefixCls:we,className:ve()(_t,Gt==null?void 0:Gt.content),style:(0,et.Z)((0,et.Z)({},Xe),On==null?void 0:On.content)},(0,ze.Z)(Te,{aria:!0}),ot),fn);return z.createElement("div",(0,Ee.Z)({className:ve()("".concat(we,"-content-wrapper"),Gt==null?void 0:Gt.wrapper,Ye),style:(0,et.Z)((0,et.Z)((0,et.Z)({},ge),dt),On==null?void 0:On.wrapper)},(0,ze.Z)(Te,{data:!0})),In?In(cn):cn)}),xt=(0,et.Z)({},st);return At&&(xt.zIndex=At),z.createElement(fe.Provider,{value:je},z.createElement("div",{className:ve()(we,"".concat(we,"-").concat(Zt),Ae,(0,tt.Z)((0,tt.Z)({},"".concat(we,"-open"),Me),"".concat(we,"-inline"),Wt)),style:xt,tabIndex:-1,ref:Nn,onKeyDown:Zn},Oe,z.createElement("div",{tabIndex:0,ref:Bn,style:Ge,"aria-hidden":"true","data-sentinel":"start"}),ct,z.createElement("div",{tabIndex:0,ref:Qn,style:Ge,"aria-hidden":"true","data-sentinel":"end"})))}var bt=z.forwardRef(kt),ht=bt,Lt=function(it){var vt=it.open,Bt=vt===void 0?!1:vt,Mt=it.prefixCls,we=Mt===void 0?"rc-drawer":Mt,Me=it.placement,Zt=Me===void 0?"right":Me,Wt=it.autoFocus,en=Wt===void 0?!0:Wt,un=it.keyboard,Tt=un===void 0?!0:un,an=it.width,Gt=an===void 0?378:an,Ae=it.mask,st=Ae===void 0?!0:Ae,At=it.maskClosable,_t=At===void 0?!0:At,De=it.getContainer,Xe=it.forceRender,pt=it.afterOpenChange,Dt=it.destroyOnClose,Xt=it.onMouseEnter,fn=it.onMouseOver,Dn=it.onMouseLeave,Mn=it.onClick,rn=it.onKeyDown,bn=it.onKeyUp,vn=it.panelRef,Ut=z.useState(!1),zt=(0,be.Z)(Ut,2),Ft=zt[0],Pt=zt[1],nn=z.useState(!1),Jt=(0,be.Z)(nn,2),ln=Jt[0],En=Jt[1];(0,Ne.Z)(function(){En(!0)},[]);var On=ln?Bt:!1,In=z.useRef(),Nn=z.useRef();(0,Ne.Z)(function(){On&&(Nn.current=document.activeElement)},[On]);var Bn=function(Pn){var xn;if(Pt(Pn),pt==null||pt(Pn),!Pn&&Nn.current&&!((xn=In.current)!==null&&xn!==void 0&&xn.contains(Nn.current))){var Re;(Re=Nn.current)===null||Re===void 0||Re.focus({preventScroll:!0})}},Qn=z.useMemo(function(){return{panel:vn}},[vn]);if(!Xe&&!Ft&&!On&&Dt)return null;var Zn={onMouseEnter:Xt,onMouseOver:fn,onMouseLeave:Dn,onClick:Mn,onKeyDown:rn,onKeyUp:bn},jt=(0,et.Z)((0,et.Z)({},it),{},{open:On,prefixCls:we,placement:Zt,autoFocus:en,keyboard:Tt,width:Gt,mask:st,maskClosable:_t,inline:De===!1,afterOpenChange:Bn,ref:In},Zn);return z.createElement(Ie.Provider,{value:Qn},z.createElement(Pe.Z,{open:On||Xe||Ft,autoDestroy:!1,getContainer:De,autoLock:st&&(On||Ft)},z.createElement(ht,jt)))},Le=Lt,_e=Le,Fe=ne(62487),ue=ne(75030),mt=ne(86641),Be=ne(55743),Ve=ne(48755),Nt=ne(91190),xe=ne(78776),de=ne(458),tn=Te=>{var it,vt;const{prefixCls:Bt,title:Mt,footer:we,extra:Me,loading:Zt,onClose:Wt,headerStyle:en,bodyStyle:un,footerStyle:Tt,children:an,classNames:Gt,styles:Ae}=Te,st=(0,Ve.dj)("drawer"),At=z.useCallback(Dt=>z.createElement("button",{type:"button",onClick:Wt,"aria-label":"Close",className:`${Bt}-close`},Dt),[Wt]),[_t,De]=(0,xe.Z)((0,xe.w)(Te),(0,xe.w)(st),{closable:!0,closeIconRender:At}),Xe=z.useMemo(()=>{var Dt,Xt;return!Mt&&!_t?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Dt=st.styles)===null||Dt===void 0?void 0:Dt.header),en),Ae==null?void 0:Ae.header),className:ve()(`${Bt}-header`,{[`${Bt}-header-close-only`]:_t&&!Mt&&!Me},(Xt=st.classNames)===null||Xt===void 0?void 0:Xt.header,Gt==null?void 0:Gt.header)},z.createElement("div",{className:`${Bt}-header-title`},De,Mt&&z.createElement("div",{className:`${Bt}-title`},Mt)),Me&&z.createElement("div",{className:`${Bt}-extra`},Me))},[_t,De,Me,en,Bt,Mt]),pt=z.useMemo(()=>{var Dt,Xt;if(!we)return null;const fn=`${Bt}-footer`;return z.createElement("div",{className:ve()(fn,(Dt=st.classNames)===null||Dt===void 0?void 0:Dt.footer,Gt==null?void 0:Gt.footer),style:Object.assign(Object.assign(Object.assign({},(Xt=st.styles)===null||Xt===void 0?void 0:Xt.footer),Tt),Ae==null?void 0:Ae.footer)},we)},[we,Tt,Bt]);return z.createElement(z.Fragment,null,Xe,z.createElement("div",{className:ve()(`${Bt}-body`,Gt==null?void 0:Gt.body,(it=st.classNames)===null||it===void 0?void 0:it.body),style:Object.assign(Object.assign(Object.assign({},(vt=st.styles)===null||vt===void 0?void 0:vt.body),un),Ae==null?void 0:Ae.body)},Zt?z.createElement(de.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Bt}-body-skeleton`}):an),pt)},wt=ne(36237),me=ne(63356),$e=ne(16931),qe=ne(51636);const $t=Te=>{const it="100%";return{left:`translateX(-${it})`,right:`translateX(${it})`,top:`translateY(-${it})`,bottom:`translateY(${it})`}[Te]},Rt=(Te,it)=>({"&-enter, &-appear":Object.assign(Object.assign({},Te),{"&-active":it}),"&-leave":Object.assign(Object.assign({},it),{"&-active":Te})}),Yt=(Te,it)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${it}`}}},Rt({opacity:Te},{opacity:1})),He=(Te,it)=>[Yt(.7,it),Rt({transform:$t(Te)},{transform:"none"})];var St=Te=>{const{componentCls:it,motionDurationSlow:vt}=Te;return{[it]:{[`${it}-mask-motion`]:Yt(0,vt),[`${it}-panel-motion`]:["left","right","top","bottom"].reduce((Bt,Mt)=>Object.assign(Object.assign({},Bt),{[`&-${Mt}`]:He(Mt,vt)}),{})}}};const ae=Te=>{const{borderRadiusSM:it,componentCls:vt,zIndexPopup:Bt,colorBgMask:Mt,colorBgElevated:we,motionDurationSlow:Me,motionDurationMid:Zt,paddingXS:Wt,padding:en,paddingLG:un,fontSizeLG:Tt,lineHeightLG:an,lineWidth:Gt,lineType:Ae,colorSplit:st,marginXS:At,colorIcon:_t,colorIconHover:De,colorBgTextHover:Xe,colorBgTextActive:pt,colorText:Dt,fontWeightStrong:Xt,footerPaddingBlock:fn,footerPaddingInline:Dn,calc:Mn}=Te,rn=`${vt}-content-wrapper`;return{[vt]:{position:"fixed",inset:0,zIndex:Bt,pointerEvents:"none",color:Dt,"&-pure":{position:"relative",background:we,display:"flex",flexDirection:"column",[`&${vt}-left`]:{boxShadow:Te.boxShadowDrawerLeft},[`&${vt}-right`]:{boxShadow:Te.boxShadowDrawerRight},[`&${vt}-top`]:{boxShadow:Te.boxShadowDrawerUp},[`&${vt}-bottom`]:{boxShadow:Te.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${vt}-mask`]:{position:"absolute",inset:0,zIndex:Bt,background:Mt,pointerEvents:"auto"},[rn]:{position:"absolute",zIndex:Bt,maxWidth:"100vw",transition:`all ${Me}`,"&-hidden":{display:"none"}},[`&-left > ${rn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Te.boxShadowDrawerLeft},[`&-right > ${rn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Te.boxShadowDrawerRight},[`&-top > ${rn}`]:{top:0,insetInline:0,boxShadow:Te.boxShadowDrawerUp},[`&-bottom > ${rn}`]:{bottom:0,insetInline:0,boxShadow:Te.boxShadowDrawerDown},[`${vt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:we,pointerEvents:"auto"},[`${vt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,wt.unit)(en)} ${(0,wt.unit)(un)}`,fontSize:Tt,lineHeight:an,borderBottom:`${(0,wt.unit)(Gt)} ${Ae} ${st}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${vt}-extra`]:{flex:"none"},[`${vt}-close`]:Object.assign({display:"inline-flex",width:Mn(Tt).add(Wt).equal(),height:Mn(Tt).add(Wt).equal(),borderRadius:it,justifyContent:"center",alignItems:"center",marginInlineEnd:At,color:_t,fontWeight:Xt,fontSize:Tt,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:Xe,textDecoration:"none"},"&:active":{backgroundColor:pt}},(0,me.Qy)(Te)),[`${vt}-title`]:{flex:1,margin:0,fontWeight:Te.fontWeightStrong,fontSize:Tt,lineHeight:an},[`${vt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:un,overflow:"auto",[`${vt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${vt}-footer`]:{flexShrink:0,padding:`${(0,wt.unit)(fn)} ${(0,wt.unit)(Dn)}`,borderTop:`${(0,wt.unit)(Gt)} ${Ae} ${st}`},"&-rtl":{direction:"rtl"}}}},te=Te=>({zIndexPopup:Te.zIndexPopupBase,footerPaddingBlock:Te.paddingXS,footerPaddingInline:Te.padding});var ee=(0,$e.I$)("Drawer",Te=>{const it=(0,qe.mergeToken)(Te,{});return[ae(it),St(it)]},te),oe=function(Te,it){var vt={};for(var Bt in Te)Object.prototype.hasOwnProperty.call(Te,Bt)&&it.indexOf(Bt)<0&&(vt[Bt]=Te[Bt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Bt=Object.getOwnPropertySymbols(Te);Mt{var it;const{rootClassName:vt,width:Bt,height:Mt,size:we="default",mask:Me=!0,push:Zt=re,open:Wt,afterOpenChange:en,onClose:un,prefixCls:Tt,getContainer:an,style:Gt,className:Ae,visible:st,afterVisibleChange:At,maskStyle:_t,drawerStyle:De,contentWrapperStyle:Xe}=Te,pt=oe(Te,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Dt,getPrefixCls:Xt,direction:fn,className:Dn,style:Mn,classNames:rn,styles:bn}=(0,Ve.dj)("drawer"),vn=Xt("drawer",Tt),[Ut,zt,Ft]=ee(vn),Pt=an===void 0&&Dt?()=>Dt(document.body):an,nn=ve()({"no-mask":!Me,[`${vn}-rtl`]:fn==="rtl"},vt,zt,Ft),Jt=z.useMemo(()=>Bt!=null?Bt:we==="large"?736:378,[Bt,we]),ln=z.useMemo(()=>Mt!=null?Mt:we==="large"?736:378,[Mt,we]),En={motionName:(0,mt.m)(vn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},On=jt=>({motionName:(0,mt.m)(vn,`panel-motion-${jt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),In=(0,Nt.H)(),[Nn,Bn]=(0,ue.Cn)("Drawer",pt.zIndex),{classNames:Qn={},styles:Zn={}}=pt;return Ut(z.createElement(Fe.Z,{form:!0,space:!0},z.createElement(Be.Z.Provider,{value:Bn},z.createElement(_e,Object.assign({prefixCls:vn,onClose:un,maskMotion:En,motion:On},pt,{classNames:{mask:ve()(Qn.mask,rn.mask),content:ve()(Qn.content,rn.content),wrapper:ve()(Qn.wrapper,rn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Zn.mask),_t),bn.mask),content:Object.assign(Object.assign(Object.assign({},Zn.content),De),bn.content),wrapper:Object.assign(Object.assign(Object.assign({},Zn.wrapper),Xe),bn.wrapper)},open:Wt!=null?Wt:st,mask:Me,push:Zt,width:Jt,height:ln,style:Object.assign(Object.assign({},Mn),Gt),className:ve()(Dn,Ae),rootClassName:nn,getContainer:Pt,afterOpenChange:en!=null?en:At,panelRef:In,zIndex:Nn}),z.createElement(tn,Object.assign({prefixCls:vn},pt,{onClose:un}))))))},Ce=Te=>{const{prefixCls:it,style:vt,className:Bt,placement:Mt="right"}=Te,we=oe(Te,["prefixCls","style","className","placement"]),{getPrefixCls:Me}=z.useContext(Ve.E_),Zt=Me("drawer",it),[Wt,en,un]=ee(Zt),Tt=ve()(Zt,`${Zt}-pure`,`${Zt}-${Mt}`,en,un,Bt);return Wt(z.createElement("div",{className:Tt,style:vt},z.createElement(tn,Object.assign({prefixCls:Zt},we))))};pe._InternalPanelDoNotUseOrYouWillBeFired=Ce;var gt=pe},19563:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return wt}});var z=ne(59301),nt=ne(33853),ve=ne(38819),et=ne(92310),be=ne.n(et),Pe=ne(96478),Ne=ne(6089),Je=ne(18929),Ie=ne(2738),fe=ne(75030),Ee=me=>typeof me!="object"&&typeof me!="function"||me===null,Ot=ne(52838),Qe=ne(45915),ze=ne(22703),Ke=ne(32383),ke=ne(55743),ft=ne(48755),Et=ne(83397),Ht=ne(93041),It=ne(78857),ut=ne(57700),lt=ne(36237),Ge=ne(63356),kt=ne(46e3),bt=ne(93873),ht=ne(34925),Lt=ne(37645),Le=ne(36305),_e=ne(16931),Fe=ne(51636),mt=me=>{const{componentCls:$e,menuCls:qe,colorError:$t,colorTextLightSolid:Rt}=me,Yt=`${qe}-item`;return{[`${$e}, ${$e}-menu-submenu`]:{[`${qe} ${Yt}`]:{[`&${Yt}-danger:not(${Yt}-disabled)`]:{color:$t,"&:hover":{color:Rt,backgroundColor:$t}}}}}};const Be=me=>{const{componentCls:$e,menuCls:qe,zIndexPopup:$t,dropdownArrowDistance:Rt,sizePopupArrow:Yt,antCls:He,iconCls:Qt,motionDurationMid:St,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:re,colorBgElevated:pe}=me;return[{[$e]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:$t,display:"block","&::before":{position:"absolute",insetBlock:me.calc(Yt).div(2).sub(Rt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${He}-btn`]:{[`& > ${Qt}-down, & > ${He}-btn-icon > ${Qt}-down`]:{fontSize:se}},[`${$e}-wrap`]:{position:"relative",[`${He}-btn > ${Qt}-down`]:{fontSize:se},[`${Qt}-down::before`]:{transition:`transform ${St}`}},[`${$e}-wrap-open`]:{[`${Qt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${He}-slide-down-enter${He}-slide-down-enter-active${$e}-placement-bottomLeft, &${He}-slide-down-appear${He}-slide-down-appear-active${$e}-placement-bottomLeft, &${He}-slide-down-enter${He}-slide-down-enter-active${$e}-placement-bottom, &${He}-slide-down-appear${He}-slide-down-appear-active${$e}-placement-bottom, &${He}-slide-down-enter${He}-slide-down-enter-active${$e}-placement-bottomRight, &${He}-slide-down-appear${He}-slide-down-appear-active${$e}-placement-bottomRight`]:{animationName:kt.fJ},[`&${He}-slide-up-enter${He}-slide-up-enter-active${$e}-placement-topLeft, &${He}-slide-up-appear${He}-slide-up-appear-active${$e}-placement-topLeft, &${He}-slide-up-enter${He}-slide-up-enter-active${$e}-placement-top, &${He}-slide-up-appear${He}-slide-up-appear-active${$e}-placement-top, &${He}-slide-up-enter${He}-slide-up-enter-active${$e}-placement-topRight, &${He}-slide-up-appear${He}-slide-up-appear-active${$e}-placement-topRight`]:{animationName:kt.Qt},[`&${He}-slide-down-leave${He}-slide-down-leave-active${$e}-placement-bottomLeft, &${He}-slide-down-leave${He}-slide-down-leave-active${$e}-placement-bottom, &${He}-slide-down-leave${He}-slide-down-leave-active${$e}-placement-bottomRight`]:{animationName:kt.Uw},[`&${He}-slide-up-leave${He}-slide-up-leave-active${$e}-placement-topLeft, &${He}-slide-up-leave${He}-slide-up-leave-active${$e}-placement-top, &${He}-slide-up-leave${He}-slide-up-leave-active${$e}-placement-topRight`]:{animationName:kt.ly}}},(0,Lt.ZP)(me,pe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${$e} ${qe}`]:{position:"relative",margin:0},[`${qe}-submenu-popup`]:{position:"absolute",zIndex:$t,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${$e}, ${$e}-menu-submenu`]:Object.assign(Object.assign({},(0,Ge.Wf)(me)),{[qe]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,Ge.Qy)(me)),{"&:empty":{padding:0,boxShadow:"none"},[`${qe}-item-group-title`]:{padding:`${(0,lt.unit)(ae)} ${(0,lt.unit)(re)}`,color:me.colorTextDescription,transition:`all ${St}`},[`${qe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${qe}-item-icon`]:{minWidth:te,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${qe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${St}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${qe}-item-extra`]:{paddingInlineStart:me.padding,marginInlineStart:"auto",fontSize:me.fontSizeSM,color:me.colorTextDescription}},[`${qe}-item, ${qe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,lt.unit)(ae)} ${(0,lt.unit)(re)}`,color:me.colorText,fontWeight:"normal",fontSize:te,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${St}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,Ge.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,lt.unit)(me.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${$e}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${$e}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${qe}-item-group-list`]:{margin:`0 ${(0,lt.unit)(me.marginXS)}`,padding:0,listStyle:"none"},[`${qe}-submenu-title`]:{paddingInlineEnd:me.calc(re).add(me.fontSizeSM).equal()},[`${qe}-submenu-vertical`]:{position:"relative"},[`${qe}-submenu${qe}-submenu-disabled ${$e}-menu-submenu-title`]:{[`&, ${$e}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:pe,cursor:"not-allowed"}},[`${qe}-submenu-selected ${$e}-menu-submenu-title`]:{color:me.colorPrimary}})})},[(0,kt.oN)(me,"slide-up"),(0,kt.oN)(me,"slide-down"),(0,bt.Fm)(me,"move-up"),(0,bt.Fm)(me,"move-down"),(0,ht._y)(me,"zoom-big")]]},Ve=me=>Object.assign(Object.assign({zIndexPopup:me.zIndexPopupBase+50,paddingBlock:(me.controlHeight-me.fontSize*me.lineHeight)/2},(0,Lt.wZ)({contentRadius:me.borderRadiusLG,limitVerticalRadius:!0})),(0,Le.w)(me));var Nt=(0,_e.I$)("Dropdown",me=>{const{marginXXS:$e,sizePopupArrow:qe,paddingXXS:$t,componentCls:Rt}=me,Yt=(0,Fe.mergeToken)(me,{menuCls:`${Rt}-menu`,dropdownArrowDistance:me.calc(qe).div(2).add($e).equal(),dropdownEdgeChildPadding:$t});return[Be(Yt),mt(Yt)]},Ve,{resetStyle:!1});const xe=null,de=me=>{var $e;const{menu:qe,arrow:$t,prefixCls:Rt,children:Yt,trigger:He,disabled:Qt,dropdownRender:St,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:re,visible:pe,onVisibleChange:Ce,mouseEnterDelay:gt=.15,mouseLeaveDelay:Te=.1,autoAdjustOverflow:it=!0,placement:vt="",overlay:Bt,transitionName:Mt}=me,{getPopupContainer:we,getPrefixCls:Me,direction:Zt,dropdown:Wt}=z.useContext(ft.E_),en=(0,Ke.ln)("Dropdown"),un=z.useMemo(()=>{const Pt=Me();return Mt!==void 0?Mt:vt.includes("top")?`${Pt}-slide-down`:`${Pt}-slide-up`},[Me,vt,Mt]),Tt=z.useMemo(()=>vt?vt.includes("Center")?vt.slice(0,vt.indexOf("Center")):vt:Zt==="rtl"?"bottomRight":"bottomLeft",[vt,Zt]),an=Me("dropdown",Rt),Gt=(0,Et.Z)(an),[Ae,st,At]=Nt(an,Gt),[,_t]=(0,ut.ZP)(),De=z.Children.only(Ee(Yt)?z.createElement("span",null,Yt):Yt),Xe=(0,ze.Tm)(De,{className:be()(`${an}-trigger`,{[`${an}-rtl`]:Zt==="rtl"},De.props.className),disabled:($e=De.props.disabled)!==null&&$e!==void 0?$e:Qt}),pt=Qt?[]:He,Dt=!!(pt!=null&&pt.includes("contextMenu")),[Xt,fn]=(0,Je.Z)(!1,{value:se!=null?se:pe}),Dn=(0,Ne.Z)(Pt=>{re==null||re(Pt,{source:"trigger"}),Ce==null||Ce(Pt),fn(Pt)}),Mn=be()(te,ee,st,At,Gt,Wt==null?void 0:Wt.className,{[`${an}-rtl`]:Zt==="rtl"}),rn=(0,Ot.Z)({arrowPointAtCenter:typeof $t=="object"&&$t.pointAtCenter,autoAdjustOverflow:it,offset:_t.marginXXS,arrowWidth:$t?_t.sizePopupArrow:0,borderRadius:_t.borderRadius}),bn=z.useCallback(()=>{qe!=null&&qe.selectable&&(qe!=null&&qe.multiple)||(re==null||re(!1,{source:"menu"}),fn(!1))},[qe==null?void 0:qe.selectable,qe==null?void 0:qe.multiple]),vn=()=>{let Pt;return qe!=null&&qe.items?Pt=z.createElement(Ht.default,Object.assign({},qe)):typeof Bt=="function"?Pt=Bt():Pt=Bt,St&&(Pt=St(Pt)),Pt=z.Children.only(typeof Pt=="string"?z.createElement("span",null,Pt):Pt),z.createElement(It.J,{prefixCls:`${an}-menu`,rootClassName:be()(At,Gt),expandIcon:z.createElement("span",{className:`${an}-menu-submenu-arrow`},Zt==="rtl"?z.createElement(nt.Z,{className:`${an}-menu-submenu-arrow-icon`}):z.createElement(ve.Z,{className:`${an}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bn,validator:nn=>{let{mode:Jt}=nn}},Pt)},[Ut,zt]=(0,fe.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let Ft=z.createElement(Pe.Z,Object.assign({alignPoint:Dt},(0,Ie.Z)(me,["rootClassName"]),{mouseEnterDelay:gt,mouseLeaveDelay:Te,visible:Xt,builtinPlacements:rn,arrow:!!$t,overlayClassName:Mn,prefixCls:an,getPopupContainer:ae||we,transitionName:un,trigger:pt,overlay:vn,placement:Tt,onVisibleChange:Dn,overlayStyle:Object.assign(Object.assign(Object.assign({},Wt==null?void 0:Wt.style),oe),{zIndex:Ut})}),Xe);return Ut&&(Ft=z.createElement(ke.Z.Provider,{value:zt},Ft)),Ae(Ft)},Ct=(0,Qe.Z)(de,"align",void 0,"dropdown",me=>me),tn=me=>z.createElement(Ct,Object.assign({},me),z.createElement("span",null));de._InternalPanelDoNotUseOrYouWillBeFired=tn;var wt=de},75727:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Qe}});var z=ne(19563),nt=ne(59301),ve=ne(18785),et=ne(92310),be=ne.n(et),Pe=ne(7939),Ne=ne(48755),Je=ne(44104),Ie=ne(70045),fe=function(ze,Ke){var ke={};for(var ft in ze)Object.prototype.hasOwnProperty.call(ze,ft)&&Ke.indexOf(ft)<0&&(ke[ft]=ze[ft]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,ft=Object.getOwnPropertySymbols(ze);Et{const{getPopupContainer:Ke,getPrefixCls:ke,direction:ft}=nt.useContext(Ne.E_),{prefixCls:Et,type:Ht="default",danger:It,disabled:ut,loading:lt,onClick:Ge,htmlType:kt,children:bt,className:ht,menu:Lt,arrow:Le,autoFocus:_e,overlay:Fe,trigger:ue,align:mt,open:Be,onOpenChange:Ve,placement:Nt,getPopupContainer:xe,href:de,icon:Ct=nt.createElement(ve.Z,null),title:tn,buttonsRender:wt=gt=>gt,mouseEnterDelay:me,mouseLeaveDelay:$e,overlayClassName:qe,overlayStyle:$t,destroyPopupOnHide:Rt,dropdownRender:Yt}=ze,He=fe(ze,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Qt=ke("dropdown",Et),St=`${Qt}-button`,ae={menu:Lt,arrow:Le,autoFocus:_e,align:mt,disabled:ut,trigger:ut?[]:ue,onOpenChange:Ve,getPopupContainer:xe||Ke,mouseEnterDelay:me,mouseLeaveDelay:$e,overlayClassName:qe,overlayStyle:$t,destroyPopupOnHide:Rt,dropdownRender:Yt},{compactSize:te,compactItemClassnames:ee}=(0,Ie.ri)(Qt,ft),oe=be()(St,ee,ht);"overlay"in ze&&(ae.overlay=Fe),"open"in ze&&(ae.open=Be),"placement"in ze?ae.placement=Nt:ae.placement=ft==="rtl"?"bottomLeft":"bottomRight";const se=nt.createElement(Pe.ZP,{type:Ht,danger:It,disabled:ut,loading:lt,onClick:Ge,htmlType:kt,href:de,title:tn},bt),re=nt.createElement(Pe.ZP,{type:Ht,danger:It,icon:Ct}),[pe,Ce]=wt([se,re]);return nt.createElement(Je.Z.Compact,Object.assign({className:oe,size:te,block:!0},He),pe,nt.createElement(z.Z,Object.assign({},ae),Ce))};tt.__ANT_BUTTON=!0;var Ee=tt;const Ot=z.Z;Ot.Button=Ee;var Qe=Ot},584:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Ht}});var z=ne(59301),nt=ne(92310),ve=ne.n(nt),et=ne(9017),be=ne(17835),Pe=ne(57700),Je=()=>{const[,It]=(0,Pe.ZP)(),[ut]=(0,et.Z)("Empty"),Ge=new be.FastColor(It.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:Ge,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(ut==null?void 0:ut.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[,It]=(0,Pe.ZP)(),[ut]=(0,et.Z)("Empty"),{colorFill:lt,colorFillTertiary:Ge,colorFillQuaternary:kt,colorBgContainer:bt}=It,{borderColor:ht,shadowColor:Lt,contentColor:Le}=(0,z.useMemo)(()=>({borderColor:new be.FastColor(lt).onBackground(bt).toHexString(),shadowColor:new be.FastColor(Ge).onBackground(bt).toHexString(),contentColor:new be.FastColor(kt).onBackground(bt).toHexString()}),[lt,Ge,kt,bt]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(ut==null?void 0:ut.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:Lt,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:ht},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:Le}))))},tt=ne(16931),Ee=ne(51636);const Ot=It=>{const{componentCls:ut,margin:lt,marginXS:Ge,marginXL:kt,fontSize:bt,lineHeight:ht}=It;return{[ut]:{marginInline:Ge,fontSize:bt,lineHeight:ht,textAlign:"center",[`${ut}-image`]:{height:It.emptyImgHeight,marginBottom:Ge,opacity:It.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ut}-description`]:{color:It.colorTextDescription},[`${ut}-footer`]:{marginTop:lt},"&-normal":{marginBlock:kt,color:It.colorTextDescription,[`${ut}-description`]:{color:It.colorTextDescription},[`${ut}-image`]:{height:It.emptyImgHeightMD}},"&-small":{marginBlock:Ge,color:It.colorTextDescription,[`${ut}-image`]:{height:It.emptyImgHeightSM}}}}};var Qe=(0,tt.I$)("Empty",It=>{const{componentCls:ut,controlHeightLG:lt,calc:Ge}=It,kt=(0,Ee.mergeToken)(It,{emptyImgCls:`${ut}-img`,emptyImgHeight:Ge(lt).mul(2.5).equal(),emptyImgHeightMD:lt,emptyImgHeightSM:Ge(lt).mul(.875).equal()});return[Ot(kt)]}),ze=ne(48755),Ke=function(It,ut){var lt={};for(var Ge in It)Object.prototype.hasOwnProperty.call(It,Ge)&&ut.indexOf(Ge)<0&&(lt[Ge]=It[Ge]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Ge=Object.getOwnPropertySymbols(It);kt{const{className:ut,rootClassName:lt,prefixCls:Ge,image:kt=ke,description:bt,children:ht,imageStyle:Lt,style:Le,classNames:_e,styles:Fe}=It,ue=Ke(It,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:mt,direction:Be,className:Ve,style:Nt,classNames:xe,styles:de}=(0,ze.dj)("empty"),Ct=mt("empty",Ge),[tn,wt,me]=Qe(Ct),[$e]=(0,et.Z)("Empty"),qe=typeof bt!="undefined"?bt:$e==null?void 0:$e.description,$t=typeof qe=="string"?qe:"empty";let Rt=null;return typeof kt=="string"?Rt=z.createElement("img",{alt:$t,src:kt}):Rt=kt,tn(z.createElement("div",Object.assign({className:ve()(wt,me,Ct,Ve,{[`${Ct}-normal`]:kt===ft,[`${Ct}-rtl`]:Be==="rtl"},ut,lt,xe.root,_e==null?void 0:_e.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},de.root),Nt),Fe==null?void 0:Fe.root),Le)},ue),z.createElement("div",{className:ve()(`${Ct}-image`,xe.image,_e==null?void 0:_e.image),style:Object.assign(Object.assign(Object.assign({},Lt),de.image),Fe==null?void 0:Fe.image)},Rt),qe&&z.createElement("div",{className:ve()(`${Ct}-description`,xe.description,_e==null?void 0:_e.description),style:Object.assign(Object.assign({},de.description),Fe==null?void 0:Fe.description)},qe),ht&&z.createElement("div",{className:ve()(`${Ct}-footer`,xe.footer,_e==null?void 0:_e.footer),style:Object.assign(Object.assign({},de.footer),Fe==null?void 0:Fe.footer)},ht)))};Et.PRESENTED_IMAGE_DEFAULT=ke,Et.PRESENTED_IMAGE_SIMPLE=ft;var Ht=Et},28284:function(pn,Kt,ne){"use strict";ne.d(Kt,{default:function(){return rt}});var z=ne(56553),nt=ne(94480),ve=ne(59301),et=ne(92310),be=ne.n(et),Pe=ne(77900),Ne=ne(86641),Je=ne(83397);function Ie(Se){const[je,Oe]=ve.useState(Se);return ve.useEffect(()=>{const We=setTimeout(()=>{Oe(Se)},Se.length?0:10);return()=>{clearTimeout(We)}},[Se]),je}var fe=ne(36237),tt=ne(63356),Ee=ne(34925),Ot=ne(34961),Qe=ne(51636),ze=ne(16931),ke=Se=>{const{componentCls:je}=Se,Oe=`${je}-show-help`,We=`${je}-show-help-item`;return{[Oe]:{transition:`opacity ${Se.motionDurationFast} ${Se.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[We]:{overflow:"hidden",transition:`height ${Se.motionDurationFast} ${Se.motionEaseInOut}, opacity ${Se.motionDurationFast} ${Se.motionEaseInOut}, transform ${Se.motionDurationFast} ${Se.motionEaseInOut} !important`,[`&${We}-appear, &${We}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${We}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ft=Se=>({legend:{display:"block",width:"100%",marginBottom:Se.marginLG,padding:0,color:Se.colorTextDescription,fontSize:Se.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(Se.lineWidth)} ${Se.lineType} ${Se.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)(Se.controlOutlineWidth)} ${Se.controlOutline}`},output:{display:"block",paddingTop:15,color:Se.colorText,fontSize:Se.fontSize,lineHeight:Se.lineHeight}}),Et=(Se,je)=>{const{formItemCls:Oe}=Se;return{[Oe]:{[`${Oe}-label > label`]:{height:je},[`${Oe}-control-input`]:{minHeight:je}}}},Ht=Se=>{const{componentCls:je}=Se;return{[Se.componentCls]:Object.assign(Object.assign(Object.assign({},(0,tt.Wf)(Se)),ft(Se)),{[`${je}-text`]:{display:"inline-block",paddingInlineEnd:Se.paddingSM},"&-small":Object.assign({},Et(Se,Se.controlHeightSM)),"&-large":Object.assign({},Et(Se,Se.controlHeightLG))})}},It=Se=>{const{formItemCls:je,iconCls:Oe,rootPrefixCls:We,antCls:ge,labelRequiredMarkColor:ot,labelColor:ct,labelFontSize:xt,labelHeight:Ue,labelColonMarginInlineStart:Ze,labelColonMarginInlineEnd:Ye,itemMarginBottom:dt}=Se;return{[je]:Object.assign(Object.assign({},(0,tt.Wf)(Se)),{marginBottom:dt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${ge}-row`]:{display:"none"},"&-has-warning":{[`${je}-split`]:{color:Se.colorError}},"&-has-error":{[`${je}-split`]:{color:Se.colorWarning}},[`${je}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Se.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ue,color:ct,fontSize:xt,[`> ${Oe}`]:{fontSize:Se.fontSize,verticalAlign:"top"},[`&${je}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Se.marginXXS,color:ot,fontSize:Se.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${je}-required-mark-hidden, &${je}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${je}-optional`]:{display:"inline-block",marginInlineStart:Se.marginXXS,color:Se.colorTextDescription,[`&${je}-required-mark-hidden`]:{display:"none"}},[`${je}-tooltip`]:{color:Se.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Se.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ze,marginInlineEnd:Ye},[`&${je}-no-colon::after`]:{content:'"\\a0"'}}},[`${je}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${We}-col-'"]):not([class*="' ${We}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Se.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[je]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Se.colorTextDescription,fontSize:Se.fontSize,lineHeight:Se.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Se.controlHeightSM,transition:`color ${Se.motionDurationMid} ${Se.motionEaseOut}`},"&-explain":{"&-error":{color:Se.colorError},"&-warning":{color:Se.colorWarning}}},[`&-with-help ${je}-explain`]:{height:"auto",opacity:1},[`${je}-feedback-icon`]:{fontSize:Se.fontSize,textAlign:"center",visibility:"visible",animationName:Ee.kr,animationDuration:Se.motionDurationMid,animationTimingFunction:Se.motionEaseOutBack,pointerEvents:"none","&-success":{color:Se.colorSuccess},"&-error":{color:Se.colorError},"&-warning":{color:Se.colorWarning},"&-validating":{color:Se.colorPrimary}}})}},ut=(Se,je)=>{const{formItemCls:Oe}=Se;return{[`${je}-horizontal`]:{[`${Oe}-label`]:{flexGrow:0},[`${Oe}-control`]:{flex:"1 1 0",minWidth:0},[`${Oe}-label[class$='-24'], ${Oe}-label[class*='-24 ']`]:{[`& + ${Oe}-control`]:{minWidth:"unset"}}}}},lt=Se=>{const{componentCls:je,formItemCls:Oe,inlineItemMarginBottom:We}=Se;return{[`${je}-inline`]:{display:"flex",flexWrap:"wrap",[Oe]:{flex:"none",marginInlineEnd:Se.margin,marginBottom:We,"&-row":{flexWrap:"nowrap"},[`> ${Oe}-label, > ${Oe}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Oe}-label`]:{flex:"none"},[`${je}-text`]:{display:"inline-block"},[`${Oe}-has-feedback`]:{display:"inline-block"}}}}},Ge=Se=>({padding:Se.verticalLabelPadding,margin:Se.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),kt=Se=>{const{componentCls:je,formItemCls:Oe,rootPrefixCls:We}=Se;return{[`${Oe} ${Oe}-label`]:Ge(Se),[`${je}:not(${je}-inline)`]:{[Oe]:{flexWrap:"wrap",[`${Oe}-label, ${Oe}-control`]:{[`&:not([class*=" ${We}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},bt=Se=>{const{componentCls:je,formItemCls:Oe,antCls:We}=Se;return{[`${je}-vertical`]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${Oe}-row`]:{flexDirection:"column"},[`${Oe}-label > label`]:{height:"auto"},[`${Oe}-control`]:{width:"100%"},[`${Oe}-label, ${We}-col-24${Oe}-label, ${We}-col-xl-24${Oe}-label`]:Ge(Se)}},[`@media (max-width: ${(0,fe.unit)(Se.screenXSMax)})`]:[kt(Se),{[je]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${We}-col-xs-24${Oe}-label`]:Ge(Se)}}}],[`@media (max-width: ${(0,fe.unit)(Se.screenSMMax)})`]:{[je]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${We}-col-sm-24${Oe}-label`]:Ge(Se)}}},[`@media (max-width: ${(0,fe.unit)(Se.screenMDMax)})`]:{[je]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${We}-col-md-24${Oe}-label`]:Ge(Se)}}},[`@media (max-width: ${(0,fe.unit)(Se.screenLGMax)})`]:{[je]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${We}-col-lg-24${Oe}-label`]:Ge(Se)}}}}},ht=Se=>{const{formItemCls:je,antCls:Oe}=Se;return{[`${je}-vertical`]:{[`${je}-row`]:{flexDirection:"column"},[`${je}-label > label`]:{height:"auto"},[`${je}-control`]:{width:"100%"}},[`${je}-vertical ${je}-label, ${Oe}-col-24${je}-label, ${Oe}-col-xl-24${je}-label`]:Ge(Se),[`@media (max-width: ${(0,fe.unit)(Se.screenXSMax)})`]:[kt(Se),{[je]:{[`${Oe}-col-xs-24${je}-label`]:Ge(Se)}}],[`@media (max-width: ${(0,fe.unit)(Se.screenSMMax)})`]:{[je]:{[`${Oe}-col-sm-24${je}-label`]:Ge(Se)}},[`@media (max-width: ${(0,fe.unit)(Se.screenMDMax)})`]:{[je]:{[`${Oe}-col-md-24${je}-label`]:Ge(Se)}},[`@media (max-width: ${(0,fe.unit)(Se.screenLGMax)})`]:{[je]:{[`${Oe}-col-lg-24${je}-label`]:Ge(Se)}}}},Lt=Se=>({labelRequiredMarkColor:Se.colorError,labelColor:Se.colorTextHeading,labelFontSize:Se.fontSize,labelHeight:Se.controlHeight,labelColonMarginInlineStart:Se.marginXXS/2,labelColonMarginInlineEnd:Se.marginXS,itemMarginBottom:Se.marginLG,verticalLabelPadding:`0 0 ${Se.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Le=(Se,je)=>(0,Qe.mergeToken)(Se,{formItemCls:`${Se.componentCls}-item`,rootPrefixCls:je});var _e=(0,ze.I$)("Form",(Se,je)=>{let{rootPrefixCls:Oe}=je;const We=Le(Se,Oe);return[Ht(We),It(We),ke(We),ut(We,We.componentCls),ut(We,We.formItemCls),lt(We),bt(We),ht(We),(0,Ot.Z)(We),Ee.kr]},Lt,{order:-1e3});const Fe=[];function ue(Se,je,Oe){let We=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Se=="string"?Se:`${je}-${We}`,error:Se,errorStatus:Oe}}var Be=Se=>{let{help:je,helpStatus:Oe,errors:We=Fe,warnings:ge=Fe,className:ot,fieldId:ct,onVisibleChanged:xt}=Se;const{prefixCls:Ue}=ve.useContext(z.Rk),Ze=`${Ue}-item-explain`,Ye=(0,Je.Z)(Ue),[dt,cn,sn]=_e(Ue,Ye),hn=ve.useMemo(()=>(0,Ne.Z)(Ue),[Ue]),$n=Ie(We),jn=Ie(ge),Gn=ve.useMemo(()=>je!=null?[ue(je,"help",Oe)]:[].concat((0,nt.Z)($n.map((Rn,_n)=>ue(Rn,"error","error",_n))),(0,nt.Z)(jn.map((Rn,_n)=>ue(Rn,"warning","warning",_n)))),[je,Oe,$n,jn]),kn=ve.useMemo(()=>{const Rn={};return Gn.forEach(_n=>{let{key:tr}=_n;Rn[tr]=(Rn[tr]||0)+1}),Gn.map((_n,tr)=>Object.assign(Object.assign({},_n),{key:Rn[_n.key]>1?`${_n.key}-fallback-${tr}`:_n.key}))},[Gn]),Ln={};return ct&&(Ln.id=`${ct}_help`),dt(ve.createElement(Pe.default,{motionDeadline:hn.motionDeadline,motionName:`${Ue}-show-help`,visible:!!kn.length,onVisibleChanged:xt},Rn=>{const{className:_n,style:tr}=Rn;return ve.createElement("div",Object.assign({},Ln,{className:be()(Ze,_n,sn,Ye,ot,cn),style:tr}),ve.createElement(Pe.CSSMotionList,Object.assign({keys:kn},(0,Ne.Z)(Ue),{motionName:`${Ue}-show-help-item`,component:!1}),Yn=>{const{key:Jn,error:An,errorStatus:Kn,className:Un,style:dr}=Yn;return ve.createElement("div",{key:Jn,className:be()(Un,{[`${Ze}-${Kn}`]:Kn}),style:dr},An)}))}))},Ve=ne(22001),Nt=ne(48755),xe=ne(2171),de=ne(31756),Ct=ne(23069),tn=ne(76846),wt=ne(16722);const me=["parentNode"],$e="form_item";function qe(Se){return Se===void 0||Se===!1?[]:Array.isArray(Se)?Se:[Se]}function $t(Se,je){if(!Se.length)return;const Oe=Se.join("_");return je?`${je}_${Oe}`:me.includes(Oe)?`${$e}_${Oe}`:Oe}function Rt(Se,je,Oe,We,ge,ot){let ct=We;return ot!==void 0?ct=ot:Oe.validating?ct="validating":Se.length?ct="error":je.length?ct="warning":(Oe.touched||ge&&Oe.validated)&&(ct="success"),ct}var Yt=function(Se,je){var Oe={};for(var We in Se)Object.prototype.hasOwnProperty.call(Se,We)&&je.indexOf(We)<0&&(Oe[We]=Se[We]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,We=Object.getOwnPropertySymbols(Se);geSe!=null?Se:Object.assign(Object.assign({},je),{__INTERNAL__:{itemRef:ge=>ot=>{const ct=He(ge);ot?Oe.current[ct]=ot:delete Oe.current[ct]}},scrollToField:function(ge){let ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:ct}=ot,xt=Yt(ot,["focus"]),Ue=Qt(ge,We);Ue&&((0,wt.Z)(Ue,Object.assign({scrollMode:"if-needed",block:"nearest"},xt)),ct&&We.focusField(ge))},focusField:ge=>{var ot,ct;const xt=We.getFieldInstance(ge);typeof(xt==null?void 0:xt.focus)=="function"?xt.focus():(ct=(ot=Qt(ge,We))===null||ot===void 0?void 0:ot.focus)===null||ct===void 0||ct.call(ot)},getFieldInstance:ge=>{const ot=He(ge);return Oe.current[ot]}}),[Se,je]);return[We]}var ae=ne(98350),te=function(Se,je){var Oe={};for(var We in Se)Object.prototype.hasOwnProperty.call(Se,We)&&je.indexOf(We)<0&&(Oe[We]=Se[We]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,We=Object.getOwnPropertySymbols(Se);ge{const Oe=ve.useContext(xe.Z),{getPrefixCls:We,direction:ge,requiredMark:ot,colon:ct,scrollToFirstError:xt,className:Ue,style:Ze}=(0,Nt.dj)("form"),{prefixCls:Ye,className:dt,rootClassName:cn,size:sn,disabled:hn=Oe,form:$n,colon:jn,labelAlign:Gn,labelWrap:kn,labelCol:Ln,wrapperCol:Rn,hideRequiredMark:_n,layout:tr="horizontal",scrollToFirstError:Yn,requiredMark:Jn,onFinishFailed:An,name:Kn,style:Un,feedbackIcons:dr,variant:mr}=Se,ur=te(Se,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),cr=(0,de.Z)(sn),xr=ve.useContext(ae.Z),ar=ve.useMemo(()=>Jn!==void 0?Jn:_n?!1:ot!==void 0?ot:!0,[_n,Jn,ot]),hr=jn!=null?jn:ct,nr=We("form",Ye),vr=(0,Je.Z)(nr),[Cr,Hr,Pr]=_e(nr,vr),Lr=be()(nr,`${nr}-${tr}`,{[`${nr}-hide-required-mark`]:ar===!1,[`${nr}-rtl`]:ge==="rtl",[`${nr}-${cr}`]:cr},Pr,vr,Hr,Ue,dt,cn),[wr]=St($n),{__INTERNAL__:Mr}=wr;Mr.name=Kn;const or=ve.useMemo(()=>({name:Kn,labelAlign:Gn,labelCol:Ln,labelWrap:kn,wrapperCol:Rn,vertical:tr==="vertical",colon:hr,requiredMark:ar,itemRef:Mr.itemRef,form:wr,feedbackIcons:dr}),[Kn,Gn,Ln,Rn,tr,hr,ar,wr,dr]),rr=ve.useRef(null);ve.useImperativeHandle(je,()=>{var Cn;return Object.assign(Object.assign({},wr),{nativeElement:(Cn=rr.current)===null||Cn===void 0?void 0:Cn.nativeElement})});const Wn=(Cn,Sn)=>{if(Cn){let gn={block:"nearest"};typeof Cn=="object"&&(gn=Object.assign(Object.assign({},gn),Cn)),wr.scrollToField(Sn,gn)}},dn=Cn=>{if(An==null||An(Cn),Cn.errorFields.length){const Sn=Cn.errorFields[0].name;if(Yn!==void 0){Wn(Yn,Sn);return}xt!==void 0&&Wn(xt,Sn)}};return Cr(ve.createElement(z.pg.Provider,{value:mr},ve.createElement(xe.n,{disabled:hn},ve.createElement(Ct.Z.Provider,{value:cr},ve.createElement(z.RV,{validateMessages:xr},ve.createElement(z.q3.Provider,{value:or},ve.createElement(Ve.default,Object.assign({id:Kn},ur,{name:Kn,onFinishFailed:dn,form:wr,ref:rr,style:Object.assign(Object.assign({},Ze),Un),className:Lr}))))))))};var se=ve.forwardRef(ee),re=ne(41799),pe=ne(8654),Ce=ne(22703),gt=ne(32383),Te=ne(11592);function it(Se){if(typeof Se=="function")return Se;const je=(0,Te.Z)(Se);return je.length<=1?je[0]:je}const vt=()=>{const{status:Se,errors:je=[],warnings:Oe=[]}=ve.useContext(z.aM);return{status:Se,errors:je,warnings:Oe}};vt.Context=z.aM;var Bt=vt,Mt=ne(16089);function we(Se){const[je,Oe]=ve.useState(Se),We=ve.useRef(null),ge=ve.useRef([]),ot=ve.useRef(!1);ve.useEffect(()=>(ot.current=!1,()=>{ot.current=!0,Mt.Z.cancel(We.current),We.current=null}),[]);function ct(xt){ot.current||(We.current===null&&(ge.current=[],We.current=(0,Mt.Z)(()=>{We.current=null,Oe(Ue=>{let Ze=Ue;return ge.current.forEach(Ye=>{Ze=Ye(Ze)}),Ze})})),ge.current.push(xt))}return[je,ct]}function Me(){const{itemRef:Se}=ve.useContext(z.q3),je=ve.useRef({});function Oe(We,ge){const ot=ge&&typeof ge=="object"&&(0,pe.C4)(ge),ct=We.join("_");return(je.current.name!==ct||je.current.originRef!==ot)&&(je.current.name=ct,je.current.originRef=ot,je.current.ref=(0,pe.sQ)(Se(We),ot)),je.current.ref}return Oe}var Zt=ne(29194),Wt=ne(34280),en=ne(2738),un=ne(65970),Tt=ne(70425),an=ne(5472);const Gt=Se=>{const{formItemCls:je}=Se;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${je}-control`]:{display:"flex"}}}};var Ae=(0,ze.bk)(["Form","item-item"],(Se,je)=>{let{rootPrefixCls:Oe}=je;const We=Le(Se,Oe);return[Gt(We)]}),st=function(Se,je){var Oe={};for(var We in Se)Object.prototype.hasOwnProperty.call(Se,We)&&je.indexOf(We)<0&&(Oe[We]=Se[We]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,We=Object.getOwnPropertySymbols(Se);ge{const{prefixCls:je,status:Oe,labelCol:We,wrapperCol:ge,children:ot,errors:ct,warnings:xt,_internalItemRender:Ue,extra:Ze,help:Ye,fieldId:dt,marginBottom:cn,onErrorVisibleChanged:sn,label:hn}=Se,$n=`${je}-item`,jn=ve.useContext(z.q3),Gn=ve.useMemo(()=>{let ur=Object.assign({},ge||jn.wrapperCol||{});return hn===null&&!We&&!ge&&jn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(xr=>{const ar=xr?[xr]:[],hr=(0,Tt.U2)(jn.labelCol,ar),nr=typeof hr=="object"?hr:{},vr=(0,Tt.U2)(ur,ar),Cr=typeof vr=="object"?vr:{};"span"in nr&&!("offset"in Cr)&&nr.span{const{labelCol:ur,wrapperCol:cr}=jn;return st(jn,["labelCol","wrapperCol"])},[jn]),Rn=ve.useRef(null),[_n,tr]=ve.useState(0);(0,Wt.Z)(()=>{Ze&&Rn.current?tr(Rn.current.clientHeight):tr(0)},[Ze]);const Yn=ve.createElement("div",{className:`${$n}-control-input`},ve.createElement("div",{className:`${$n}-control-input-content`},ot)),Jn=ve.useMemo(()=>({prefixCls:je,status:Oe}),[je,Oe]),An=cn!==null||ct.length||xt.length?ve.createElement(z.Rk.Provider,{value:Jn},ve.createElement(Be,{fieldId:dt,errors:ct,warnings:xt,help:Ye,helpStatus:Oe,className:`${$n}-explain-connected`,onVisibleChanged:sn})):null,Kn={};dt&&(Kn.id=`${dt}_extra`);const Un=Ze?ve.createElement("div",Object.assign({},Kn,{className:`${$n}-extra`,ref:Rn}),Ze):null,dr=An||Un?ve.createElement("div",{className:`${$n}-additional`,style:cn?{minHeight:cn+_n}:{}},An,Un):null,mr=Ue&&Ue.mark==="pro_table_render"&&Ue.render?Ue.render(Se,{input:Yn,errorList:An,extra:Un}):ve.createElement(ve.Fragment,null,Yn,dr);return ve.createElement(z.q3.Provider,{value:Ln},ve.createElement(an.Z,Object.assign({},Gn,{className:kn}),mr),ve.createElement(Ae,{prefixCls:je}))},Xe=ne(61485),pt=ne(9017),Dt=ne(85981),Xt=ne(25399),fn=function(Se,je){var Oe={};for(var We in Se)Object.prototype.hasOwnProperty.call(Se,We)&&je.indexOf(We)<0&&(Oe[We]=Se[We]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,We=Object.getOwnPropertySymbols(Se);ge{let{prefixCls:je,label:Oe,htmlFor:We,labelCol:ge,labelAlign:ot,colon:ct,required:xt,requiredMark:Ue,tooltip:Ze,vertical:Ye}=Se;var dt;const[cn]=(0,pt.Z)("Form"),{labelAlign:sn,labelCol:hn,labelWrap:$n,colon:jn}=ve.useContext(z.q3);if(!Oe)return null;const Gn=ge||hn||{},kn=ot||sn,Ln=`${je}-item-label`,Rn=be()(Ln,kn==="left"&&`${Ln}-left`,Gn.className,{[`${Ln}-wrap`]:!!$n});let _n=Oe;const tr=ct===!0||jn!==!1&&ct!==!1;tr&&!Ye&&typeof Oe=="string"&&Oe.trim()&&(_n=Oe.replace(/[:|:]\s*$/,""));const Jn=Dn(Ze);if(Jn){const{icon:ur=ve.createElement(Xe.Z,null)}=Jn,cr=fn(Jn,["icon"]),xr=ve.createElement(Xt.Z,Object.assign({},cr),ve.cloneElement(ur,{className:`${je}-item-tooltip`,title:"",onClick:ar=>{ar.preventDefault()},tabIndex:null}));_n=ve.createElement(ve.Fragment,null,_n,xr)}const An=Ue==="optional",Kn=typeof Ue=="function",Un=Ue===!1;Kn?_n=Ue(_n,{required:!!xt}):An&&!xt&&(_n=ve.createElement(ve.Fragment,null,_n,ve.createElement("span",{className:`${je}-item-optional`,title:""},(cn==null?void 0:cn.optional)||((dt=Dt.Z.Form)===null||dt===void 0?void 0:dt.optional))));let dr;Un?dr="hidden":(An||Kn)&&(dr="optional");const mr=be()({[`${je}-item-required`]:xt,[`${je}-item-required-mark-${dr}`]:dr,[`${je}-item-no-colon`]:!tr});return ve.createElement(an.Z,Object.assign({},Gn,{className:Rn}),ve.createElement("label",{htmlFor:We,className:mr,title:typeof Oe=="string"?Oe:""},_n))},bn=ne(29679),vn=ne(19248),Ut=ne(96512),zt=ne(58617);const Ft={success:bn.Z,warning:Ut.Z,error:vn.Z,validating:zt.Z};function Pt(Se){let{children:je,errors:Oe,warnings:We,hasFeedback:ge,validateStatus:ot,prefixCls:ct,meta:xt,noStyle:Ue}=Se;const Ze=`${ct}-item`,{feedbackIcons:Ye}=ve.useContext(z.q3),dt=Rt(Oe,We,xt,null,!!ge,ot),{isFormItemInput:cn,status:sn,hasFeedback:hn,feedbackIcon:$n}=ve.useContext(z.aM),jn=ve.useMemo(()=>{var Gn;let kn;if(ge){const Rn=ge!==!0&&ge.icons||Ye,_n=dt&&((Gn=Rn==null?void 0:Rn({status:dt,errors:Oe,warnings:We}))===null||Gn===void 0?void 0:Gn[dt]),tr=dt&&Ft[dt];kn=_n!==!1&&tr?ve.createElement("span",{className:be()(`${Ze}-feedback-icon`,`${Ze}-feedback-icon-${dt}`)},_n||ve.createElement(tr,null)):null}const Ln={status:dt||"",errors:Oe,warnings:We,hasFeedback:!!ge,feedbackIcon:kn,isFormItemInput:!0};return Ue&&(Ln.status=(dt!=null?dt:sn)||"",Ln.isFormItemInput=cn,Ln.hasFeedback=!!(ge!=null?ge:hn),Ln.feedbackIcon=ge!==void 0?Ln.feedbackIcon:$n),Ln},[dt,ge,Ue,cn,sn]);return ve.createElement(z.aM.Provider,{value:jn},je)}var nn=function(Se,je){var Oe={};for(var We in Se)Object.prototype.hasOwnProperty.call(Se,We)&&je.indexOf(We)<0&&(Oe[We]=Se[We]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,We=Object.getOwnPropertySymbols(Se);ge{if(Un&&Yn.current){const nr=getComputedStyle(Yn.current);ur(parseInt(nr.marginBottom,10))}},[Un,dr]);const cr=nr=>{nr||ur(null)},ar=function(){let nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const vr=nr?Jn:Ze.errors,Cr=nr?An:Ze.warnings;return Rt(vr,Cr,Ze,"",!!Ye,Ue)}(),hr=be()(Ln,Oe,We,{[`${Ln}-with-help`]:Kn||Jn.length||An.length,[`${Ln}-has-feedback`]:ar&&Ye,[`${Ln}-has-success`]:ar==="success",[`${Ln}-has-warning`]:ar==="warning",[`${Ln}-has-error`]:ar==="error",[`${Ln}-is-validating`]:ar==="validating",[`${Ln}-hidden`]:dt,[`${Ln}-${Gn}`]:Gn});return ve.createElement("div",{className:hr,style:ge,ref:Yn},ve.createElement(un.Z,Object.assign({className:`${Ln}-row`},(0,en.Z)(kn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ve.createElement(rn,Object.assign({htmlFor:sn},Se,{requiredMark:Rn,required:hn!=null?hn:$n,prefixCls:je,vertical:tr})),ve.createElement(De,Object.assign({},Se,Ze,{errors:Jn,warnings:An,prefixCls:je,status:ar,help:ot,marginBottom:mr,onErrorVisibleChanged:cr}),ve.createElement(z.qI.Provider,{value:jn},ve.createElement(Pt,{prefixCls:je,meta:Ze,errors:Ze.errors,warnings:Ze.warnings,hasFeedback:Ye,validateStatus:ar},cn)))),!!mr&&ve.createElement("div",{className:`${Ln}-margin-offset`,style:{marginBottom:-mr}}))}const ln="__SPLIT__",En=null;function On(Se,je){const Oe=Object.keys(Se),We=Object.keys(je);return Oe.length===We.length&&Oe.every(ge=>{const ot=Se[ge],ct=je[ge];return ot===ct||typeof ot=="function"||typeof ct=="function"})}const In=ve.memo(Se=>{let{children:je}=Se;return je},(Se,je)=>On(Se.control,je.control)&&Se.update===je.update&&Se.childProps.length===je.childProps.length&&Se.childProps.every((Oe,We)=>Oe===je.childProps[We]));function Nn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Bn(Se){const{name:je,noStyle:Oe,className:We,dependencies:ge,prefixCls:ot,shouldUpdate:ct,rules:xt,children:Ue,required:Ze,label:Ye,messageVariables:dt,trigger:cn="onChange",validateTrigger:sn,hidden:hn,help:$n,layout:jn}=Se,{getPrefixCls:Gn}=ve.useContext(Nt.E_),{name:kn}=ve.useContext(z.q3),Ln=it(Ue),Rn=typeof Ln=="function",_n=ve.useContext(z.qI),{validateTrigger:tr}=ve.useContext(Ve.FieldContext),Yn=sn!==void 0?sn:tr,Jn=je!=null,An=Gn("form",ot),Kn=(0,Je.Z)(An),[Un,dr,mr]=_e(An,Kn),ur=(0,gt.ln)("Form.Item"),cr=ve.useContext(Ve.ListContext),xr=ve.useRef(null),[ar,hr]=we({}),[nr,vr]=(0,re.Z)(()=>Nn()),Cr=rr=>{const Wn=cr==null?void 0:cr.getKey(rr.name);if(vr(rr.destroy?Nn():rr,!0),Oe&&$n!==!1&&_n){let dn=rr.name;if(rr.destroy)dn=xr.current||dn;else if(Wn!==void 0){const[Cn,Sn]=Wn;dn=[Cn].concat((0,nt.Z)(Sn)),xr.current=dn}_n(rr,dn)}},Hr=(rr,Wn)=>{hr(dn=>{const Cn=Object.assign({},dn),gn=[].concat((0,nt.Z)(rr.name.slice(0,-1)),(0,nt.Z)(Wn)).join(ln);return rr.destroy?delete Cn[gn]:Cn[gn]=rr,Cn})},[Pr,Lr]=ve.useMemo(()=>{const rr=(0,nt.Z)(nr.errors),Wn=(0,nt.Z)(nr.warnings);return Object.values(ar).forEach(dn=>{rr.push.apply(rr,(0,nt.Z)(dn.errors||[])),Wn.push.apply(Wn,(0,nt.Z)(dn.warnings||[]))}),[rr,Wn]},[ar,nr.errors,nr.warnings]),wr=Me();function Mr(rr,Wn,dn){return Oe&&!hn?ve.createElement(Pt,{prefixCls:An,hasFeedback:Se.hasFeedback,validateStatus:Se.validateStatus,meta:nr,errors:Pr,warnings:Lr,noStyle:!0},rr):ve.createElement(Jt,Object.assign({key:"row"},Se,{className:be()(We,mr,Kn,dr),prefixCls:An,fieldId:Wn,isRequired:dn,errors:Pr,warnings:Lr,meta:nr,onSubItemMetaChange:Hr,layout:jn}),rr)}if(!Jn&&!Rn&&!ge)return Un(Mr(Ln));let or={};return typeof Ye=="string"?or.label=Ye:je&&(or.label=String(je)),dt&&(or=Object.assign(Object.assign({},or),dt)),Un(ve.createElement(Ve.Field,Object.assign({},Se,{messageVariables:or,trigger:cn,validateTrigger:Yn,onMetaChange:Cr}),(rr,Wn,dn)=>{const Cn=qe(je).length&&Wn?Wn.name:[],Sn=$t(Cn,kn),gn=Ze!==void 0?Ze:!!(xt!=null&&xt.some(yn=>{if(yn&&typeof yn=="object"&&yn.required&&!yn.warningOnly)return!0;if(typeof yn=="function"){const mn=yn(dn);return(mn==null?void 0:mn.required)&&!(mn!=null&&mn.warningOnly)}return!1})),Hn=Object.assign({},rr);let Xn=null;if(Array.isArray(Ln)&&Jn)Xn=Ln;else if(!(Rn&&(!(ct||ge)||Jn))){if(!(ge&&!Rn&&!Jn))if(ve.isValidElement(Ln)){const yn=Object.assign(Object.assign({},Ln.props),Hn);if(yn.id||(yn.id=Sn),$n||Pr.length>0||Lr.length>0||Se.extra){const zn=[];($n||Pr.length>0)&&zn.push(`${Sn}_help`),Se.extra&&zn.push(`${Sn}_extra`),yn["aria-describedby"]=zn.join(" ")}Pr.length>0&&(yn["aria-invalid"]="true"),gn&&(yn["aria-required"]="true"),(0,pe.Yr)(Ln)&&(yn.ref=wr(Cn,Ln)),new Set([].concat((0,nt.Z)(qe(cn)),(0,nt.Z)(qe(Yn)))).forEach(zn=>{yn[zn]=function(){for(var fr,Br,Er,$r,kr,Nr=arguments.length,Wr=new Array(Nr),zr=0;zr{var{prefixCls:je,children:Oe}=Se,We=jt(Se,["prefixCls","children"]);const{getPrefixCls:ge}=ve.useContext(Nt.E_),ot=ge("form",je),ct=ve.useMemo(()=>({prefixCls:ot,status:"error"}),[ot]);return ve.createElement(Ve.List,Object.assign({},We),(xt,Ue,Ze)=>ve.createElement(z.Rk.Provider,{value:ct},Oe(xt.map(Ye=>Object.assign(Object.assign({},Ye),{fieldKey:Ye.key})),Ue,{errors:Ze.errors,warnings:Ze.warnings})))};function xn(){const{form:Se}=ve.useContext(z.q3);return Se}const Re=se;Re.Item=Zn,Re.List=Pn,Re.ErrorList=Be,Re.useForm=St,Re.useFormInstance=xn,Re.useWatch=Ve.useWatch,Re.Provider=z.RV,Re.create=()=>{};var rt=Re},4875:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return _t}});var z=ne(59301),nt=ne(84105),ve=ne(87395),et=ne(92310),be=ne.n(et),Pe=ne(54476),Ne=ne(20068),Je=ne(76190),Ie=ne(42978),fe=ne(75931),tt=ne(67732),Ee=ne(83652);function Ot(){return typeof BigInt=="function"}function Qe(De){return!De&&De!==0&&!Number.isNaN(De)||!String(De).trim()}function ze(De){var Xe=De.trim(),pt=Xe.startsWith("-");pt&&(Xe=Xe.slice(1)),Xe=Xe.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Xe.startsWith(".")&&(Xe="0".concat(Xe));var Dt=Xe||"0",Xt=Dt.split("."),fn=Xt[0]||"0",Dn=Xt[1]||"0";fn==="0"&&Dn==="0"&&(pt=!1);var Mn=pt?"-":"";return{negative:pt,negativeStr:Mn,trimStr:Dt,integerStr:fn,decimalStr:Dn,fullStr:"".concat(Mn).concat(Dt)}}function Ke(De){var Xe=String(De);return!Number.isNaN(Number(Xe))&&Xe.includes("e")}function ke(De){var Xe=String(De);if(Ke(De)){var pt=Number(Xe.slice(Xe.indexOf("e-")+2)),Dt=Xe.match(/\.(\d+)/);return Dt!=null&&Dt[1]&&(pt+=Dt[1].length),pt}return Xe.includes(".")&&Et(Xe)?Xe.length-Xe.indexOf(".")-1:0}function ft(De){var Xe=String(De);if(Ke(De)){if(De>Number.MAX_SAFE_INTEGER)return String(Ot()?BigInt(De).toString():Number.MAX_SAFE_INTEGER);if(De0&&arguments[0]!==void 0?arguments[0]:!0;return pt?this.isInvalidate()?"":ze("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),De}(),It=function(){function De(Xe){if((0,tt.Z)(this,De),(0,Ne.Z)(this,"origin",""),(0,Ne.Z)(this,"number",void 0),(0,Ne.Z)(this,"empty",void 0),Qe(Xe)){this.empty=!0;return}this.origin=String(Xe),this.number=Number(Xe)}return(0,Ee.Z)(De,[{key:"negate",value:function(){return new De(-this.toNumber())}},{key:"add",value:function(pt){if(this.isInvalidate())return new De(pt);var Dt=Number(pt);if(Number.isNaN(Dt))return this;var Xt=this.number+Dt;if(Xt>Number.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(XtNumber.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(Xt0&&arguments[0]!==void 0?arguments[0]:!0;return pt?this.isInvalidate()?"":ft(this.number):this.origin}}]),De}();function ut(De){return Ot()?new Ht(De):new It(De)}function lt(De,Xe,pt){var Dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(De==="")return"";var Xt=ze(De),fn=Xt.negativeStr,Dn=Xt.integerStr,Mn=Xt.decimalStr,rn="".concat(Xe).concat(Mn),bn="".concat(fn).concat(Dn);if(pt>=0){var vn=Number(Mn[pt]);if(vn>=5&&!Dt){var Ut=ut(De).add("".concat(fn,"0.").concat("0".repeat(pt)).concat(10-vn));return lt(Ut.toString(),Xe,pt,Dt)}return pt===0?bn:"".concat(bn).concat(Xe).concat(Mn.padEnd(pt,"0").slice(0,pt))}return rn===".0"?bn:"".concat(bn).concat(rn)}var Ge=ut,kt=ne(36901),bt=ne(34280);function ht(De,Xe){return typeof Proxy!="undefined"&&De?new Proxy(De,{get:function(Dt,Xt){if(Xe[Xt])return Xe[Xt];var fn=Dt[Xt];return typeof fn=="function"?fn.bind(Dt):fn}}):De}var Lt=ne(8654),Le=ne(48736);function _e(De,Xe){var pt=(0,z.useRef)(null);function Dt(){try{var fn=De.selectionStart,Dn=De.selectionEnd,Mn=De.value,rn=Mn.substring(0,fn),bn=Mn.substring(Dn);pt.current={start:fn,end:Dn,value:Mn,beforeTxt:rn,afterTxt:bn}}catch(vn){}}function Xt(){if(De&&pt.current&&Xe)try{var fn=De.value,Dn=pt.current,Mn=Dn.beforeTxt,rn=Dn.afterTxt,bn=Dn.start,vn=fn.length;if(fn.startsWith(Mn))vn=Mn.length;else if(fn.endsWith(rn))vn=fn.length-pt.current.afterTxt.length;else{var Ut=Mn[bn-1],zt=fn.indexOf(Ut,bn-1);zt!==-1&&(vn=zt+1)}De.setSelectionRange(vn,vn)}catch(Ft){(0,Le.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Ft.message))}}return[Dt,Xt]}var Fe=ne(49658),ue=function(){var Xe=(0,z.useState)(!1),pt=(0,Ie.Z)(Xe,2),Dt=pt[0],Xt=pt[1];return(0,bt.Z)(function(){Xt((0,Fe.Z)())},[]),Dt},mt=ue,Be=ne(16089),Ve=200,Nt=600;function xe(De){var Xe=De.prefixCls,pt=De.upNode,Dt=De.downNode,Xt=De.upDisabled,fn=De.downDisabled,Dn=De.onStep,Mn=z.useRef(),rn=z.useRef([]),bn=z.useRef();bn.current=Dn;var vn=function(){clearTimeout(Mn.current)},Ut=function(On,In){On.preventDefault(),vn(),bn.current(In);function Nn(){bn.current(In),Mn.current=setTimeout(Nn,Ve)}Mn.current=setTimeout(Nn,Nt)};z.useEffect(function(){return function(){vn(),rn.current.forEach(function(En){return Be.Z.cancel(En)})}},[]);var zt=mt();if(zt)return null;var Ft="".concat(Xe,"-handler"),Pt=be()(Ft,"".concat(Ft,"-up"),(0,Ne.Z)({},"".concat(Ft,"-up-disabled"),Xt)),nn=be()(Ft,"".concat(Ft,"-down"),(0,Ne.Z)({},"".concat(Ft,"-down-disabled"),fn)),Jt=function(){return rn.current.push((0,Be.Z)(vn))},ln={unselectable:"on",role:"button",onMouseUp:Jt,onMouseLeave:Jt};return z.createElement("div",{className:"".concat(Ft,"-wrap")},z.createElement("span",(0,Pe.Z)({},ln,{onMouseDown:function(On){Ut(On,!0)},"aria-label":"Increase Value","aria-disabled":Xt,className:Pt}),pt||z.createElement("span",{unselectable:"on",className:"".concat(Xe,"-handler-up-inner")})),z.createElement("span",(0,Pe.Z)({},ln,{onMouseDown:function(On){Ut(On,!1)},"aria-label":"Decrease Value","aria-disabled":fn,className:nn}),Dt||z.createElement("span",{unselectable:"on",className:"".concat(Xe,"-handler-down-inner")})))}function de(De){var Xe=typeof De=="number"?ft(De):ze(De).fullStr,pt=Xe.includes(".");return pt?ze(Xe.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:De+"0"}var Ct=ne(30292),tn=function(){var De=(0,z.useRef)(0),Xe=function(){Be.Z.cancel(De.current)};return(0,z.useEffect)(function(){return Xe},[]),function(pt){Xe(),De.current=(0,Be.Z)(function(){pt()})}},wt=["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"],me=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],$e=function(Xe,pt){return Xe||pt.isEmpty()?pt.toString():pt.toNumber()},qe=function(Xe){var pt=Ge(Xe);return pt.isInvalidate()?null:pt},$t=z.forwardRef(function(De,Xe){var pt=De.prefixCls,Dt=De.className,Xt=De.style,fn=De.min,Dn=De.max,Mn=De.step,rn=Mn===void 0?1:Mn,bn=De.defaultValue,vn=De.value,Ut=De.disabled,zt=De.readOnly,Ft=De.upHandler,Pt=De.downHandler,nn=De.keyboard,Jt=De.changeOnWheel,ln=Jt===void 0?!1:Jt,En=De.controls,On=En===void 0?!0:En,In=De.classNames,Nn=De.stringMode,Bn=De.parser,Qn=De.formatter,Zn=De.precision,jt=De.decimalSeparator,on=De.onChange,Pn=De.onInput,xn=De.onPressEnter,Re=De.onStep,rt=De.changeOnBlur,Se=rt===void 0?!0:rt,je=De.domRef,Oe=(0,fe.Z)(De,wt),We="".concat(pt,"-input"),ge=z.useRef(null),ot=z.useState(!1),ct=(0,Ie.Z)(ot,2),xt=ct[0],Ue=ct[1],Ze=z.useRef(!1),Ye=z.useRef(!1),dt=z.useRef(!1),cn=z.useState(function(){return Ge(vn!=null?vn:bn)}),sn=(0,Ie.Z)(cn,2),hn=sn[0],$n=sn[1];function jn(Sn){vn===void 0&&$n(Sn)}var Gn=z.useCallback(function(Sn,gn){if(!gn)return Zn>=0?Zn:Math.max(ke(Sn),ke(rn))},[Zn,rn]),kn=z.useCallback(function(Sn){var gn=String(Sn);if(Bn)return Bn(gn);var Hn=gn;return jt&&(Hn=Hn.replace(jt,".")),Hn.replace(/[^\w.-]+/g,"")},[Bn,jt]),Ln=z.useRef(""),Rn=z.useCallback(function(Sn,gn){if(Qn)return Qn(Sn,{userTyping:gn,input:String(Ln.current)});var Hn=typeof Sn=="number"?ft(Sn):Sn;if(!gn){var Xn=Gn(Hn,gn);if(Et(Hn)&&(jt||Xn>=0)){var yn=jt||".";Hn=lt(Hn,yn,Xn)}}return Hn},[Qn,Gn,jt]),_n=z.useState(function(){var Sn=bn!=null?bn:vn;return hn.isInvalidate()&&["string","number"].includes((0,Je.Z)(Sn))?Number.isNaN(Sn)?"":Sn:Rn(hn.toString(),!1)}),tr=(0,Ie.Z)(_n,2),Yn=tr[0],Jn=tr[1];Ln.current=Yn;function An(Sn,gn){Jn(Rn(Sn.isInvalidate()?Sn.toString(!1):Sn.toString(!gn),gn))}var Kn=z.useMemo(function(){return qe(Dn)},[Dn,Zn]),Un=z.useMemo(function(){return qe(fn)},[fn,Zn]),dr=z.useMemo(function(){return!Kn||!hn||hn.isInvalidate()?!1:Kn.lessEquals(hn)},[Kn,hn]),mr=z.useMemo(function(){return!Un||!hn||hn.isInvalidate()?!1:hn.lessEquals(Un)},[Un,hn]),ur=_e(ge.current,xt),cr=(0,Ie.Z)(ur,2),xr=cr[0],ar=cr[1],hr=function(gn){return Kn&&!gn.lessEquals(Kn)?Kn:Un&&!Un.lessEquals(gn)?Un:null},nr=function(gn){return!hr(gn)},vr=function(gn,Hn){var Xn=gn,yn=nr(Xn)||Xn.isEmpty();if(!Xn.isEmpty()&&!Hn&&(Xn=hr(Xn)||Xn,yn=!0),!zt&&!Ut&&yn){var mn=Xn.toString(),Tn=Gn(mn,Hn);return Tn>=0&&(Xn=Ge(lt(mn,".",Tn)),nr(Xn)||(Xn=Ge(lt(mn,".",Tn,!0)))),Xn.equals(hn)||(jn(Xn),on==null||on(Xn.isEmpty()?null:$e(Nn,Xn)),vn===void 0&&An(Xn,Hn)),Xn}return hn},Cr=tn(),Hr=function Sn(gn){if(xr(),Ln.current=gn,Jn(gn),!Ye.current){var Hn=kn(gn),Xn=Ge(Hn);Xn.isNaN()||vr(Xn,!0)}Pn==null||Pn(gn),Cr(function(){var yn=gn;Bn||(yn=gn.replace(/。/g,".")),yn!==gn&&Sn(yn)})},Pr=function(){Ye.current=!0},Lr=function(){Ye.current=!1,Hr(ge.current.value)},wr=function(gn){Hr(gn.target.value)},Mr=function(gn){var Hn;if(!(gn&&dr||!gn&&mr)){Ze.current=!1;var Xn=Ge(dt.current?de(rn):rn);gn||(Xn=Xn.negate());var yn=(hn||Ge(0)).add(Xn.toString()),mn=vr(yn,!1);Re==null||Re($e(Nn,mn),{offset:dt.current?de(rn):rn,type:gn?"up":"down"}),(Hn=ge.current)===null||Hn===void 0||Hn.focus()}},or=function(gn){var Hn=Ge(kn(Yn)),Xn;Hn.isNaN()?Xn=vr(hn,gn):Xn=vr(Hn,gn),vn!==void 0?An(hn,!1):Xn.isNaN()||An(Xn,!1)},rr=function(){Ze.current=!0},Wn=function(gn){var Hn=gn.key,Xn=gn.shiftKey;Ze.current=!0,dt.current=Xn,Hn==="Enter"&&(Ye.current||(Ze.current=!1),or(!1),xn==null||xn(gn)),nn!==!1&&!Ye.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Hn)&&(Mr(Hn==="Up"||Hn==="ArrowUp"),gn.preventDefault())},dn=function(){Ze.current=!1,dt.current=!1};z.useEffect(function(){if(ln&&xt){var Sn=function(Xn){Mr(Xn.deltaY<0),Xn.preventDefault()},gn=ge.current;if(gn)return gn.addEventListener("wheel",Sn,{passive:!1}),function(){return gn.removeEventListener("wheel",Sn)}}});var Cn=function(){Se&&or(!1),Ue(!1),Ze.current=!1};return(0,bt.o)(function(){hn.isInvalidate()||An(hn,!1)},[Zn,Qn]),(0,bt.o)(function(){var Sn=Ge(vn);$n(Sn);var gn=Ge(kn(Yn));(!Sn.equals(gn)||!Ze.current||Qn)&&An(Sn,Ze.current)},[vn]),(0,bt.o)(function(){Qn&&ar()},[Yn]),z.createElement("div",{ref:je,className:be()(pt,Dt,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},"".concat(pt,"-focused"),xt),"".concat(pt,"-disabled"),Ut),"".concat(pt,"-readonly"),zt),"".concat(pt,"-not-a-number"),hn.isNaN()),"".concat(pt,"-out-of-range"),!hn.isInvalidate()&&!nr(hn))),style:Xt,onFocus:function(){Ue(!0)},onBlur:Cn,onKeyDown:Wn,onKeyUp:dn,onCompositionStart:Pr,onCompositionEnd:Lr,onBeforeInput:rr},On&&z.createElement(xe,{prefixCls:pt,upNode:Ft,downNode:Pt,upDisabled:dr,downDisabled:mr,onStep:Mr}),z.createElement("div",{className:"".concat(We,"-wrap")},z.createElement("input",(0,Pe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":fn,"aria-valuemax":Dn,"aria-valuenow":hn.isInvalidate()?null:hn.toString(),step:rn},Oe,{ref:(0,Lt.sQ)(ge,Xe),className:We,value:Yn,onChange:wr,disabled:Ut,readOnly:zt}))))}),Rt=z.forwardRef(function(De,Xe){var pt=De.disabled,Dt=De.style,Xt=De.prefixCls,fn=Xt===void 0?"rc-input-number":Xt,Dn=De.value,Mn=De.prefix,rn=De.suffix,bn=De.addonBefore,vn=De.addonAfter,Ut=De.className,zt=De.classNames,Ft=(0,fe.Z)(De,me),Pt=z.useRef(null),nn=z.useRef(null),Jt=z.useRef(null),ln=function(On){Jt.current&&(0,Ct.nH)(Jt.current,On)};return z.useImperativeHandle(Xe,function(){return ht(Jt.current,{focus:ln,nativeElement:Pt.current.nativeElement||nn.current})}),z.createElement(kt.BaseInput,{className:Ut,triggerFocus:ln,prefixCls:fn,value:Dn,disabled:pt,style:Dt,prefix:Mn,suffix:rn,addonAfter:vn,addonBefore:bn,classNames:zt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Pt},z.createElement($t,(0,Pe.Z)({prefixCls:fn,disabled:pt,ref:Jt,domRef:nn,className:zt==null?void 0:zt.input},Ft)))}),Yt=Rt,He=Yt,Qt=ne(62487),St=ne(82855),ae=ne(48755),te=ne(60840),ee=ne(2171),oe=ne(83397),se=ne(31756),re=ne(56553),pe=ne(24971),Ce=ne(70045),gt=ne(36237),Te=ne(53075),it=ne(64910),vt=ne(39082),Bt=ne(63356),Mt=ne(56119),we=ne(16931),Me=ne(51636),Zt=ne(17835);const Wt=De=>{var Xe;const pt=(Xe=De.handleVisible)!==null&&Xe!==void 0?Xe:"auto",Dt=De.controlHeightSM-De.lineWidth*2;return Object.assign(Object.assign({},(0,it.T)(De)),{controlWidth:90,handleWidth:Dt,handleFontSize:De.fontSize/2,handleVisible:pt,handleActiveBg:De.colorFillAlter,handleBg:De.colorBgContainer,filledHandleBg:new Zt.FastColor(De.colorFillSecondary).onBackground(De.colorBgContainer).toHexString(),handleHoverColor:De.colorPrimary,handleBorderColor:De.colorBorder,handleOpacity:pt===!0?1:0,handleVisibleWidth:pt===!0?Dt:0})},en=(De,Xe)=>{let{componentCls:pt,borderRadiusSM:Dt,borderRadiusLG:Xt}=De;const fn=Xe==="lg"?Xt:Dt;return{[`&-${Xe}`]:{[`${pt}-handler-wrap`]:{borderStartEndRadius:fn,borderEndEndRadius:fn},[`${pt}-handler-up`]:{borderStartEndRadius:fn},[`${pt}-handler-down`]:{borderEndEndRadius:fn}}}},un=De=>{const{componentCls:Xe,lineWidth:pt,lineType:Dt,borderRadius:Xt,inputFontSizeSM:fn,inputFontSizeLG:Dn,controlHeightLG:Mn,controlHeightSM:rn,colorError:bn,paddingInlineSM:vn,paddingBlockSM:Ut,paddingBlockLG:zt,paddingInlineLG:Ft,colorTextDescription:Pt,motionDurationMid:nn,handleHoverColor:Jt,handleOpacity:ln,paddingInline:En,paddingBlock:On,handleBg:In,handleActiveBg:Nn,colorTextDisabled:Bn,borderRadiusSM:Qn,borderRadiusLG:Zn,controlWidth:jt,handleBorderColor:on,filledHandleBg:Pn,lineHeightLG:xn,calc:Re}=De;return[{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(De)),(0,Te.ik)(De)),{display:"inline-block",width:jt,margin:0,padding:0,borderRadius:Xt}),(0,vt.qG)(De,{[`${Xe}-handler-wrap`]:{background:In,[`${Xe}-handler-down`]:{borderBlockStart:`${(0,gt.unit)(pt)} ${Dt} ${on}`}}})),(0,vt.H8)(De,{[`${Xe}-handler-wrap`]:{background:Pn,[`${Xe}-handler-down`]:{borderBlockStart:`${(0,gt.unit)(pt)} ${Dt} ${on}`}},"&:focus-within":{[`${Xe}-handler-wrap`]:{background:In}}})),(0,vt.vc)(De,{[`${Xe}-handler-wrap`]:{background:In,[`${Xe}-handler-down`]:{borderBlockStart:`${(0,gt.unit)(pt)} ${Dt} ${on}`}}})),(0,vt.Mu)(De)),{"&-rtl":{direction:"rtl",[`${Xe}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Dn,lineHeight:xn,borderRadius:Zn,[`input${Xe}-input`]:{height:Re(Mn).sub(Re(pt).mul(2)).equal(),padding:`${(0,gt.unit)(zt)} ${(0,gt.unit)(Ft)}`}},"&-sm":{padding:0,fontSize:fn,borderRadius:Qn,[`input${Xe}-input`]:{height:Re(rn).sub(Re(pt).mul(2)).equal(),padding:`${(0,gt.unit)(Ut)} ${(0,gt.unit)(vn)}`}},"&-out-of-range":{[`${Xe}-input-wrap`]:{input:{color:bn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(De)),(0,Te.s7)(De)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Xe}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Xe}-group-addon`]:{borderRadius:Zn,fontSize:De.fontSizeLG}},"&-sm":{[`${Xe}-group-addon`]:{borderRadius:Qn}}},(0,vt.ir)(De)),(0,vt.S5)(De)),{[`&:not(${Xe}-compact-first-item):not(${Xe}-compact-last-item)${Xe}-compact-item`]:{[`${Xe}, ${Xe}-group-addon`]:{borderRadius:0}},[`&:not(${Xe}-compact-last-item)${Xe}-compact-first-item`]:{[`${Xe}, ${Xe}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Xe}-compact-first-item)${Xe}-compact-last-item`]:{[`${Xe}, ${Xe}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Xe}-input`]:{cursor:"not-allowed"},[Xe]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(De)),{width:"100%",padding:`${(0,gt.unit)(On)} ${(0,gt.unit)(En)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Xt,outline:0,transition:`all ${nn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Te.nz)(De.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Xe}-handler-wrap, &-focused ${Xe}-handler-wrap`]:{width:De.handleWidth,opacity:1}})},{[Xe]:Object.assign(Object.assign(Object.assign({[`${Xe}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:De.handleVisibleWidth,opacity:ln,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Xt,borderEndEndRadius:Xt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${nn}`,overflow:"hidden",[`${Xe}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${Xe}-handler-up-inner, ${Xe}-handler-down-inner `]:{marginInlineEnd:0,fontSize:De.handleFontSize}}},[`${Xe}-handler`]:{height:"50%",overflow:"hidden",color:Pt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,gt.unit)(pt)} ${Dt} ${on}`,transition:`all ${nn} linear`,"&:active":{background:Nn},"&:hover":{height:"60%",[` ${Xe}-handler-up-inner, ${Xe}-handler-down-inner `]:{color:Jt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Bt.Ro)()),{color:Pt,transition:`all ${nn} linear`,userSelect:"none"})},[`${Xe}-handler-up`]:{borderStartEndRadius:Xt},[`${Xe}-handler-down`]:{borderEndEndRadius:Xt}},en(De,"lg")),en(De,"sm")),{"&-disabled, &-readonly":{[`${Xe}-handler-wrap`]:{display:"none"},[`${Xe}-input`]:{color:"inherit"}},[` ${Xe}-handler-up-disabled, ${Xe}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${Xe}-handler-up-disabled:hover &-handler-up-inner, ${Xe}-handler-down-disabled:hover &-handler-down-inner `]:{color:Bn}})}]},Tt=De=>{const{componentCls:Xe,paddingBlock:pt,paddingInline:Dt,inputAffixPadding:Xt,controlWidth:fn,borderRadiusLG:Dn,borderRadiusSM:Mn,paddingInlineLG:rn,paddingInlineSM:bn,paddingBlockLG:vn,paddingBlockSM:Ut,motionDurationMid:zt}=De;return{[`${Xe}-affix-wrapper`]:Object.assign(Object.assign({[`input${Xe}-input`]:{padding:`${(0,gt.unit)(pt)} 0`}},(0,Te.ik)(De)),{position:"relative",display:"inline-flex",alignItems:"center",width:fn,padding:0,paddingInlineStart:Dt,"&-lg":{borderRadius:Dn,paddingInlineStart:rn,[`input${Xe}-input`]:{padding:`${(0,gt.unit)(vn)} 0`}},"&-sm":{borderRadius:Mn,paddingInlineStart:bn,[`input${Xe}-input`]:{padding:`${(0,gt.unit)(Ut)} 0`}},[`&:not(${Xe}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Xe}-disabled`]:{background:"transparent"},[`> div${Xe}`]:{width:"100%",border:"none",outline:"none",[`&${Xe}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Xe}-handler-wrap`]:{zIndex:2},[Xe]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Xt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Dt,marginInlineStart:Xt,transition:`margin ${zt}`}},[`&:hover ${Xe}-handler-wrap, &-focused ${Xe}-handler-wrap`]:{width:De.handleWidth,opacity:1},[`&:not(${Xe}-affix-wrapper-without-controls):hover ${Xe}-suffix`]:{marginInlineEnd:De.calc(De.handleWidth).add(Dt).equal()}})}};var an=(0,we.I$)("InputNumber",De=>{const Xe=(0,Me.mergeToken)(De,(0,it.e)(De));return[un(Xe),Tt(Xe),(0,Mt.c)(Xe)]},Wt,{unitless:{handleOpacity:!0}}),Gt=function(De,Xe){var pt={};for(var Dt in De)Object.prototype.hasOwnProperty.call(De,Dt)&&Xe.indexOf(Dt)<0&&(pt[Dt]=De[Dt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Dt=Object.getOwnPropertySymbols(De);Xt{const{getPrefixCls:pt,direction:Dt}=z.useContext(ae.E_),Xt=z.useRef(null);z.useImperativeHandle(Xe,()=>Xt.current);const{className:fn,rootClassName:Dn,size:Mn,disabled:rn,prefixCls:bn,addonBefore:vn,addonAfter:Ut,prefix:zt,suffix:Ft,bordered:Pt,readOnly:nn,status:Jt,controls:ln,variant:En}=De,On=Gt(De,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),In=pt("input-number",bn),Nn=(0,oe.Z)(In),[Bn,Qn,Zn]=an(In,Nn),{compactSize:jt,compactItemClassnames:on}=(0,Ce.ri)(In,Dt);let Pn=z.createElement(ve.Z,{className:`${In}-handler-up-inner`}),xn=z.createElement(nt.Z,{className:`${In}-handler-down-inner`});const Re=typeof ln=="boolean"?ln:void 0;typeof ln=="object"&&(Pn=typeof ln.upIcon=="undefined"?Pn:z.createElement("span",{className:`${In}-handler-up-inner`},ln.upIcon),xn=typeof ln.downIcon=="undefined"?xn:z.createElement("span",{className:`${In}-handler-down-inner`},ln.downIcon));const{hasFeedback:rt,status:Se,isFormItemInput:je,feedbackIcon:Oe}=z.useContext(re.aM),We=(0,St.F)(Se,Jt),ge=(0,se.Z)(sn=>{var hn;return(hn=Mn!=null?Mn:jt)!==null&&hn!==void 0?hn:sn}),ot=z.useContext(ee.Z),ct=rn!=null?rn:ot,[xt,Ue]=(0,pe.Z)("inputNumber",En,Pt),Ze=rt&&z.createElement(z.Fragment,null,Oe),Ye=be()({[`${In}-lg`]:ge==="large",[`${In}-sm`]:ge==="small",[`${In}-rtl`]:Dt==="rtl",[`${In}-in-form-item`]:je},Qn),dt=`${In}-group`,cn=z.createElement(He,Object.assign({ref:Xt,disabled:ct,className:be()(Zn,Nn,fn,Dn,on),upHandler:Pn,downHandler:xn,prefixCls:In,readOnly:nn,controls:Re,prefix:zt,suffix:Ze||Ft,addonBefore:vn&&z.createElement(Qt.Z,{form:!0,space:!0},vn),addonAfter:Ut&&z.createElement(Qt.Z,{form:!0,space:!0},Ut),classNames:{input:Ye,variant:be()({[`${In}-${xt}`]:Ue},(0,St.Z)(In,We,rt)),affixWrapper:be()({[`${In}-affix-wrapper-sm`]:ge==="small",[`${In}-affix-wrapper-lg`]:ge==="large",[`${In}-affix-wrapper-rtl`]:Dt==="rtl",[`${In}-affix-wrapper-without-controls`]:ln===!1||ct},Qn),wrapper:be()({[`${dt}-rtl`]:Dt==="rtl"},Qn),groupWrapper:be()({[`${In}-group-wrapper-sm`]:ge==="small",[`${In}-group-wrapper-lg`]:ge==="large",[`${In}-group-wrapper-rtl`]:Dt==="rtl",[`${In}-group-wrapper-${xt}`]:Ue},(0,St.Z)(`${In}-group-wrapper`,We,rt),Qn)}},On));return Bn(cn)}),st=Ae,At=De=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(Ae,Object.assign({},De)));st._InternalPanelDoNotUseOrYouWillBeFired=At;var _t=st},49397:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return It}});var z=ne(59301),nt=ne(92310),ve=ne.n(nt),et=ne(36901),be=ne(8654),Pe=ne(62487),Ne=ne(86013),Je=ne(82855),Ie=ne(48755),fe=ne(2171),tt=ne(83397),Ee=ne(31756),Ot=ne(56553),Qe=ne(24971),ze=ne(70045),Ke=ne(23826),ke=ne(53075);function ft(ut){return!!(ut.prefix||ut.suffix||ut.allowClear||ut.showCount)}var Et=function(ut,lt){var Ge={};for(var kt in ut)Object.prototype.hasOwnProperty.call(ut,kt)&<.indexOf(kt)<0&&(Ge[kt]=ut[kt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,kt=Object.getOwnPropertySymbols(ut);bt{const{prefixCls:Ge,bordered:kt=!0,status:bt,size:ht,disabled:Lt,onBlur:Le,onFocus:_e,suffix:Fe,allowClear:ue,addonAfter:mt,addonBefore:Be,className:Ve,style:Nt,styles:xe,rootClassName:de,onChange:Ct,classNames:tn,variant:wt}=ut,me=Et(ut,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:$e,direction:qe,allowClear:$t,autoComplete:Rt,className:Yt,style:He,classNames:Qt,styles:St}=(0,Ie.dj)("input"),ae=$e("input",Ge),te=(0,z.useRef)(null),ee=(0,tt.Z)(ae),[oe,se,re]=(0,ke.TI)(ae,de),[pe]=(0,ke.ZP)(ae,ee),{compactSize:Ce,compactItemClassnames:gt}=(0,ze.ri)(ae,qe),Te=(0,Ee.Z)(_t=>{var De;return(De=ht!=null?ht:Ce)!==null&&De!==void 0?De:_t}),it=z.useContext(fe.Z),vt=Lt!=null?Lt:it,{status:Bt,hasFeedback:Mt,feedbackIcon:we}=(0,z.useContext)(Ot.aM),Me=(0,Je.F)(Bt,bt),Zt=ft(ut)||!!Mt,Wt=(0,z.useRef)(Zt),en=(0,Ke.Z)(te,!0),un=_t=>{en(),Le==null||Le(_t)},Tt=_t=>{en(),_e==null||_e(_t)},an=_t=>{en(),Ct==null||Ct(_t)},Gt=(Mt||Fe)&&z.createElement(z.Fragment,null,Fe,Mt&&we),Ae=(0,Ne.Z)(ue!=null?ue:$t),[st,At]=(0,Qe.Z)("input",wt,kt);return oe(pe(z.createElement(et.default,Object.assign({ref:(0,be.sQ)(lt,te),prefixCls:ae,autoComplete:Rt},me,{disabled:vt,onBlur:un,onFocus:Tt,style:Object.assign(Object.assign({},He),Nt),styles:Object.assign(Object.assign({},St),xe),suffix:Gt,allowClear:Ae,className:ve()(Ve,de,re,ee,gt,Yt),onChange:an,addonBefore:Be&&z.createElement(Pe.Z,{form:!0,space:!0},Be),addonAfter:mt&&z.createElement(Pe.Z,{form:!0,space:!0},mt),classNames:Object.assign(Object.assign(Object.assign({},tn),Qt),{input:ve()({[`${ae}-sm`]:Te==="small",[`${ae}-lg`]:Te==="large",[`${ae}-rtl`]:qe==="rtl"},tn==null?void 0:tn.input,Qt.input,se),variant:ve()({[`${ae}-${st}`]:At},(0,Je.Z)(ae,Me)),affixWrapper:ve()({[`${ae}-affix-wrapper-sm`]:Te==="small",[`${ae}-affix-wrapper-lg`]:Te==="large",[`${ae}-affix-wrapper-rtl`]:qe==="rtl"},se),wrapper:ve()({[`${ae}-group-rtl`]:qe==="rtl"},se),groupWrapper:ve()({[`${ae}-group-wrapper-sm`]:Te==="small",[`${ae}-group-wrapper-lg`]:Te==="large",[`${ae}-group-wrapper-rtl`]:qe==="rtl",[`${ae}-group-wrapper-${st}`]:At},(0,Je.Z)(`${ae}-group-wrapper`,Me,Mt),se)})}))))})},79809:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return lt}});var z=ne(59301),nt=ne(92310),ve=ne.n(nt),et=ne(22711),be=ne(86013),Pe=ne(82855),Ne=ne(48755),Je=ne(2171),Ie=ne(83397),fe=ne(31756),tt=ne(56553),Ee=ne(24971),Ot=ne(70045),Qe=ne(30292),ze=ne(53075),Ke=ne(16931),ke=ne(51636),ft=ne(64910);const Et=Ge=>{const{componentCls:kt,paddingLG:bt}=Ge,ht=`${kt}-textarea`;return{[`textarea${kt}`]:{maxWidth:"100%",height:"auto",minHeight:Ge.controlHeight,lineHeight:Ge.lineHeight,verticalAlign:"bottom",transition:`all ${Ge.motionDurationSlow}`,resize:"vertical",[`&${kt}-mouse-active`]:{transition:`all ${Ge.motionDurationSlow}, height 0s, width 0s`}},[`${kt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ht]:{position:"relative","&-show-count":{[`> ${kt}`]:{height:"100%"},[`${kt}-data-count`]:{position:"absolute",bottom:Ge.calc(Ge.fontSize).mul(Ge.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ge.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${kt}, &-affix-wrapper${ht}-has-feedback ${kt} `]:{paddingInlineEnd:bt},[`&-affix-wrapper${kt}-affix-wrapper`]:{padding:0,[`> textarea${kt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ge.calc(Ge.controlHeight).sub(Ge.calc(Ge.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${kt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${kt}-clear-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingInline,insetBlockStart:Ge.paddingXS},[`${ht}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ge.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${kt}-affix-wrapper-sm`]:{[`${kt}-suffix`]:{[`${kt}-clear-icon`]:{insetInlineEnd:Ge.paddingInlineSM}}}}}};var Ht=(0,Ke.I$)(["Input","TextArea"],Ge=>{const kt=(0,ke.mergeToken)(Ge,(0,ft.e)(Ge));return[Et(kt)]},ft.T,{resetFont:!1}),It=function(Ge,kt){var bt={};for(var ht in Ge)Object.prototype.hasOwnProperty.call(Ge,ht)&&kt.indexOf(ht)<0&&(bt[ht]=Ge[ht]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,ht=Object.getOwnPropertySymbols(Ge);Lt{var bt;const{prefixCls:ht,bordered:Lt=!0,size:Le,disabled:_e,status:Fe,allowClear:ue,classNames:mt,rootClassName:Be,className:Ve,style:Nt,styles:xe,variant:de,showCount:Ct,onMouseDown:tn,onResize:wt}=Ge,me=It(Ge,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:$e,direction:qe,allowClear:$t,autoComplete:Rt,className:Yt,style:He,classNames:Qt,styles:St}=(0,Ne.dj)("textArea"),ae=z.useContext(Je.Z),te=_e!=null?_e:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=z.useContext(tt.aM),re=(0,Pe.F)(ee,Fe),pe=z.useRef(null);z.useImperativeHandle(kt,()=>{var At;return{resizableTextArea:(At=pe.current)===null||At===void 0?void 0:At.resizableTextArea,focus:_t=>{var De,Xe;(0,Qe.nH)((Xe=(De=pe.current)===null||De===void 0?void 0:De.resizableTextArea)===null||Xe===void 0?void 0:Xe.textArea,_t)},blur:()=>{var _t;return(_t=pe.current)===null||_t===void 0?void 0:_t.blur()}}});const Ce=$e("input",ht),gt=(0,Ie.Z)(Ce),[Te,it,vt]=(0,ze.TI)(Ce,Be),[Bt]=Ht(Ce,gt),{compactSize:Mt,compactItemClassnames:we}=(0,Ot.ri)(Ce,qe),Me=(0,fe.Z)(At=>{var _t;return(_t=Le!=null?Le:Mt)!==null&&_t!==void 0?_t:At}),[Zt,Wt]=(0,Ee.Z)("textArea",de,Lt),en=(0,be.Z)(ue!=null?ue:$t),[un,Tt]=z.useState(!1),[an,Gt]=z.useState(!1),Ae=At=>{Tt(!0),tn==null||tn(At);const _t=()=>{Tt(!1),document.removeEventListener("mouseup",_t)};document.addEventListener("mouseup",_t)},st=At=>{var _t,De;if(wt==null||wt(At),un&&typeof getComputedStyle=="function"){const Xe=(De=(_t=pe.current)===null||_t===void 0?void 0:_t.nativeElement)===null||De===void 0?void 0:De.querySelector("textarea");Xe&&getComputedStyle(Xe).resize==="both"&&Gt(!0)}};return Te(Bt(z.createElement(et.default,Object.assign({autoComplete:Rt},me,{style:Object.assign(Object.assign({},He),Nt),styles:Object.assign(Object.assign({},St),xe),disabled:te,allowClear:en,className:ve()(vt,gt,Ve,Be,we,Yt,an&&`${Ce}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},mt),Qt),{textarea:ve()({[`${Ce}-sm`]:Me==="small",[`${Ce}-lg`]:Me==="large"},it,mt==null?void 0:mt.textarea,Qt.textarea,un&&`${Ce}-mouse-active`),variant:ve()({[`${Ce}-${Zt}`]:Wt},(0,Pe.Z)(Ce,re)),affixWrapper:ve()(`${Ce}-textarea-affix-wrapper`,{[`${Ce}-affix-wrapper-rtl`]:qe==="rtl",[`${Ce}-affix-wrapper-sm`]:Me==="small",[`${Ce}-affix-wrapper-lg`]:Me==="large",[`${Ce}-textarea-show-count`]:Ct||((bt=Ge.count)===null||bt===void 0?void 0:bt.show)},it)}),prefixCls:Ce,suffix:oe&&z.createElement("span",{className:`${Ce}-textarea-suffix`},se),showCount:Ct,ref:pe,onResize:st,onMouseDown:Ae}))))})},23826:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return nt}});var z=ne(59301);function nt(ve,et){const be=(0,z.useRef)([]),Pe=()=>{be.current.push(setTimeout(()=>{var Ne,Je,Ie,fe;!((Ne=ve.current)===null||Ne===void 0)&&Ne.input&&((Je=ve.current)===null||Je===void 0?void 0:Je.input.getAttribute("type"))==="password"&&(!((Ie=ve.current)===null||Ie===void 0)&&Ie.input.hasAttribute("value"))&&((fe=ve.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(et&&Pe(),()=>be.current.forEach(Ne=>{Ne&&clearTimeout(Ne)})),[]),Pe}},37568:function(pn,Kt,ne){"use strict";ne.d(Kt,{default:function(){return Qt}});var z=ne(59301),nt=ne(92310),ve=ne.n(nt),et=ne(48755),be=ne(56553),Pe=ne(53075),Je=St=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(et.E_),{prefixCls:ee,className:oe}=St,se=ae("input-group",ee),re=ae("input"),[pe,Ce,gt]=(0,Pe.ZP)(re),Te=ve()(se,gt,{[`${se}-lg`]:St.size==="large",[`${se}-sm`]:St.size==="small",[`${se}-compact`]:St.compact,[`${se}-rtl`]:te==="rtl"},Ce,oe),it=(0,z.useContext)(be.aM),vt=(0,z.useMemo)(()=>Object.assign(Object.assign({},it),{isFormItemInput:!1}),[it]);return pe(z.createElement("span",{className:Te,style:St.style,onMouseEnter:St.onMouseEnter,onMouseLeave:St.onMouseLeave,onFocus:St.onFocus,onBlur:St.onBlur},z.createElement(be.aM.Provider,{value:vt},St.children)))},Ie=ne(49397),fe=ne(94480),tt=ne(6089),Ee=ne(26112),Ot=ne(82855),Qe=ne(31756),ze=ne(16931),Ke=ne(51636),ke=ne(64910);const ft=St=>{const{componentCls:ae,paddingXS:te}=St;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:St.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:St.calc(St.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:St.paddingXS}}}};var Et=(0,ze.I$)(["Input","OTP"],St=>{const ae=(0,Ke.mergeToken)(St,(0,ke.e)(St));return[ft(ae)]},ke.T),Ht=ne(16089),It=function(St,ae){var te={};for(var ee in St)Object.prototype.hasOwnProperty.call(St,ee)&&ae.indexOf(ee)<0&&(te[ee]=St[ee]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(St);oe{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:re}=St,pe=It(St,["value","onChange","onActiveChange","index","mask"]),Ce=te&&typeof re=="string"?re:te,gt=Mt=>{ee(se,Mt.target.value)},Te=z.useRef(null);z.useImperativeHandle(ae,()=>Te.current);const it=()=>{(0,Ht.Z)(()=>{var Mt;const we=(Mt=Te.current)===null||Mt===void 0?void 0:Mt.input;document.activeElement===we&&we&&we.select()})},vt=Mt=>{const{key:we,ctrlKey:Me,metaKey:Zt}=Mt;we==="ArrowLeft"?oe(se-1):we==="ArrowRight"?oe(se+1):we==="z"&&(Me||Zt)&&Mt.preventDefault(),it()},Bt=Mt=>{Mt.key==="Backspace"&&!te&&oe(se-1),it()};return z.createElement(Ie.Z,Object.assign({type:re===!0?"password":"text"},pe,{ref:Te,value:Ce,onInput:gt,onFocus:it,onKeyDown:vt,onKeyUp:Bt,onMouseDown:it,onMouseUp:it}))}),Ge=function(St,ae){var te={};for(var ee in St)Object.prototype.hasOwnProperty.call(St,ee)&&ae.indexOf(ee)<0&&(te[ee]=St[ee]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(St);oe{const{index:ae,prefixCls:te,separator:ee}=St,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var Lt=z.forwardRef((St,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:re,onChange:pe,formatter:Ce,separator:gt,variant:Te,disabled:it,status:vt,autoFocus:Bt,mask:Mt,type:we,onInput:Me,inputMode:Zt}=St,Wt=Ge(St,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:en,direction:un}=z.useContext(et.E_),Tt=en("otp",te),an=(0,Ee.Z)(Wt,{aria:!0,data:!0,attr:!0}),[Gt,Ae,st]=Et(Tt),At=(0,Qe.Z)(zt=>oe!=null?oe:zt),_t=z.useContext(be.aM),De=(0,Ot.F)(_t.status,vt),Xe=z.useMemo(()=>Object.assign(Object.assign({},_t),{status:De,hasFeedback:!1,feedbackIcon:null}),[_t,De]),pt=z.useRef(null),Dt=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var zt;(zt=Dt.current[0])===null||zt===void 0||zt.focus()},blur:()=>{var zt;for(let Ft=0;FtCe?Ce(zt):zt,[fn,Dn]=z.useState(()=>kt(Xt(se||"")));z.useEffect(()=>{re!==void 0&&Dn(kt(re))},[re]);const Mn=(0,tt.Z)(zt=>{Dn(zt),Me&&Me(zt),pe&&zt.length===ee&&zt.every(Ft=>Ft)&&zt.some((Ft,Pt)=>fn[Pt]!==Ft)&&pe(zt.join(""))}),rn=(0,tt.Z)((zt,Ft)=>{let Pt=(0,fe.Z)(fn);for(let Jt=0;Jt=0&&!Pt[Jt];Jt-=1)Pt.pop();const nn=Xt(Pt.map(Jt=>Jt||" ").join(""));return Pt=kt(nn).map((Jt,ln)=>Jt===" "&&!Pt[ln]?Pt[ln]:Jt),Pt}),bn=(zt,Ft)=>{var Pt;const nn=rn(zt,Ft),Jt=Math.min(zt+Ft.length,ee-1);Jt!==zt&&nn[zt]!==void 0&&((Pt=Dt.current[Jt])===null||Pt===void 0||Pt.focus()),Mn(nn)},vn=zt=>{var Ft;(Ft=Dt.current[zt])===null||Ft===void 0||Ft.focus()},Ut={variant:Te,disabled:it,status:De,mask:Mt,type:we,inputMode:Zt};return Gt(z.createElement("div",Object.assign({},an,{ref:pt,className:ve()(Tt,{[`${Tt}-sm`]:At==="small",[`${Tt}-lg`]:At==="large",[`${Tt}-rtl`]:un==="rtl"},st,Ae)}),z.createElement(be.aM.Provider,{value:Xe},Array.from({length:ee}).map((zt,Ft)=>{const Pt=`otp-${Ft}`,nn=fn[Ft]||"";return z.createElement(z.Fragment,{key:Pt},z.createElement(lt,Object.assign({ref:Jt=>{Dt.current[Ft]=Jt},index:Ft,size:At,htmlSize:1,className:`${Tt}-input`,onChange:bn,value:nn,onActiveChange:vn,autoFocus:Ft===0&&Bt},Ut)),FtSt?z.createElement(_e.Z,null):z.createElement(Le.Z,null),xe={click:"onClick",hover:"onMouseOver"};var Ct=z.forwardRef((St,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=Nt}=St,re=z.useContext(mt.Z),pe=te!=null?te:re,Ce=typeof oe=="object"&&oe.visible!==void 0,[gt,Te]=(0,z.useState)(()=>Ce?oe.visible:!1),it=(0,z.useRef)(null);z.useEffect(()=>{Ce&&Te(oe.visible)},[Ce,oe]);const vt=(0,Be.Z)(it),Bt=()=>{var At;if(pe)return;gt&&vt();const _t=!gt;Te(_t),typeof oe=="object"&&((At=oe.onVisibleChange)===null||At===void 0||At.call(oe,_t))},Mt=At=>{const _t=xe[ee]||"",De=se(gt),Xe={[_t]:Bt,className:`${At}-icon`,key:"passwordIcon",onMouseDown:pt=>{pt.preventDefault()},onMouseUp:pt=>{pt.preventDefault()}};return z.cloneElement(z.isValidElement(De)?De:z.createElement("span",null,De),Xe)},{className:we,prefixCls:Me,inputPrefixCls:Zt,size:Wt}=St,en=Ve(St,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:un}=z.useContext(et.E_),Tt=un("input",Zt),an=un("input-password",Me),Gt=oe&&Mt(an),Ae=ve()(an,we,{[`${an}-${Wt}`]:!!Wt}),st=Object.assign(Object.assign({},(0,Fe.Z)(en,["suffix","iconRender","visibilityToggle"])),{type:gt?"text":"password",className:Ae,prefixCls:Tt,suffix:Gt});return Wt&&(st.size=Wt),z.createElement(Ie.Z,Object.assign({ref:(0,ue.sQ)(ae,it)},st))}),tn=ne(47472),wt=ne(22703),me=ne(7939),$e=ne(70045),qe=function(St,ae){var te={};for(var ee in St)Object.prototype.hasOwnProperty.call(St,ee)&&ae.indexOf(ee)<0&&(te[ee]=St[ee]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(St);oe{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:re,enterButton:pe=!1,addonAfter:Ce,loading:gt,disabled:Te,onSearch:it,onChange:vt,onCompositionStart:Bt,onCompositionEnd:Mt}=St,we=qe(St,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Me,direction:Zt}=z.useContext(et.E_),Wt=z.useRef(!1),en=Me("input-search",te),un=Me("input",ee),{compactSize:Tt}=(0,$e.ri)(en,Zt),an=(0,Qe.Z)(bn=>{var vn;return(vn=se!=null?se:Tt)!==null&&vn!==void 0?vn:bn}),Gt=z.useRef(null),Ae=bn=>{bn!=null&&bn.target&&bn.type==="click"&&it&&it(bn.target.value,bn,{source:"clear"}),vt==null||vt(bn)},st=bn=>{var vn;document.activeElement===((vn=Gt.current)===null||vn===void 0?void 0:vn.input)&&bn.preventDefault()},At=bn=>{var vn,Ut;it&&it((Ut=(vn=Gt.current)===null||vn===void 0?void 0:vn.input)===null||Ut===void 0?void 0:Ut.value,bn,{source:"input"})},_t=bn=>{Wt.current||gt||At(bn)},De=typeof pe=="boolean"?z.createElement(tn.Z,null):null,Xe=`${en}-button`;let pt;const Dt=pe||{},Xt=Dt.type&&Dt.type.__ANT_BUTTON===!0;Xt||Dt.type==="button"?pt=(0,wt.Tm)(Dt,Object.assign({onMouseDown:st,onClick:bn=>{var vn,Ut;(Ut=(vn=Dt==null?void 0:Dt.props)===null||vn===void 0?void 0:vn.onClick)===null||Ut===void 0||Ut.call(vn,bn),At(bn)},key:"enterButton"},Xt?{className:Xe,size:an}:{})):pt=z.createElement(me.ZP,{className:Xe,type:pe?"primary":void 0,size:an,disabled:Te,key:"enterButton",onMouseDown:st,onClick:At,loading:gt,icon:De},pe),Ce&&(pt=[pt,(0,wt.Tm)(Ce,{key:"addonAfter"})]);const fn=ve()(en,{[`${en}-rtl`]:Zt==="rtl",[`${en}-${an}`]:!!an,[`${en}-with-button`]:!!pe},oe),Dn=Object.assign(Object.assign({},we),{className:fn,prefixCls:un,type:"search"}),Mn=bn=>{Wt.current=!0,Bt==null||Bt(bn)},rn=bn=>{Wt.current=!1,Mt==null||Mt(bn)};return z.createElement(Ie.Z,Object.assign({ref:(0,ue.sQ)(Gt,ae),onPressEnter:_t},Dn,{size:an,onCompositionStart:Mn,onCompositionEnd:rn,addonAfter:pt,suffix:re,onChange:Ae,disabled:Te}))}),Yt=ne(79809);const He=Ie.Z;He.Group=Je,He.Search=Rt,He.TextArea=Yt.Z,He.Password=Ct,He.OTP=Lt;var Qt=He},24303:function(pn,Kt,ne){"use strict";ne.d(Kt,{D:function(){return Ge},Z:function(){return ht}});var z=ne(59301),nt=ne(54476),ve={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"},et=ve,be=ne(7657),Pe=function(Le,_e){return z.createElement(be.Z,(0,nt.Z)({},Le,{ref:_e,icon:et}))},Ne=z.forwardRef(Pe),Je=Ne,Ie=ne(33853),fe=ne(38819),tt=ne(92310),Ee=ne.n(tt),Ot=ne(2738),Qe=ne(48755),ze=ne(6989),Ke=ne(36237),ke=ne(48923),ft=ne(16931);const Et=Lt=>{const{componentCls:Le,siderBg:_e,motionDurationMid:Fe,motionDurationSlow:ue,antCls:mt,triggerHeight:Be,triggerColor:Ve,triggerBg:Nt,headerHeight:xe,zeroTriggerWidth:de,zeroTriggerHeight:Ct,borderRadiusLG:tn,lightSiderBg:wt,lightTriggerColor:me,lightTriggerBg:$e,bodyBg:qe}=Lt;return{[Le]:{position:"relative",minWidth:0,background:_e,transition:`all ${Fe}, background 0s`,"&-has-trigger":{paddingBottom:Be},"&-right":{order:1},[`${Le}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${mt}-menu${mt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Le}-children`]:{overflow:"hidden"},[`${Le}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Be,color:Ve,lineHeight:(0,Ke.unit)(Be),textAlign:"center",background:Nt,cursor:"pointer",transition:`all ${Fe}`},[`${Le}-zero-width-trigger`]:{position:"absolute",top:xe,insetInlineEnd:Lt.calc(de).mul(-1).equal(),zIndex:1,width:de,height:Ct,color:Ve,fontSize:Lt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:_e,borderRadius:`0 ${(0,Ke.unit)(tn)} ${(0,Ke.unit)(tn)} 0`,cursor:"pointer",transition:`background ${ue} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ue}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Lt.calc(de).mul(-1).equal(),borderRadius:`${(0,Ke.unit)(tn)} 0 0 ${(0,Ke.unit)(tn)}`}},"&-light":{background:wt,[`${Le}-trigger`]:{color:me,background:$e},[`${Le}-zero-width-trigger`]:{color:me,background:$e,border:`1px solid ${qe}`,borderInlineStart:0}}}}};var Ht=(0,ft.I$)(["Layout","Sider"],Lt=>[Et(Lt)],ke.eh,{deprecatedTokens:ke.jn}),It=function(Lt,Le){var _e={};for(var Fe in Lt)Object.prototype.hasOwnProperty.call(Lt,Fe)&&Le.indexOf(Fe)<0&&(_e[Fe]=Lt[Fe]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Fe=Object.getOwnPropertySymbols(Lt);ue!Number.isNaN(Number.parseFloat(Lt))&&isFinite(Lt),Ge=z.createContext({}),kt=(()=>{let Lt=0;return function(){let Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Lt+=1,`${Le}${Lt}`}})();var ht=z.forwardRef((Lt,Le)=>{const{prefixCls:_e,className:Fe,trigger:ue,children:mt,defaultCollapsed:Be=!1,theme:Ve="dark",style:Nt={},collapsible:xe=!1,reverseArrow:de=!1,width:Ct=200,collapsedWidth:tn=80,zeroWidthTriggerStyle:wt,breakpoint:me,onCollapse:$e,onBreakpoint:qe}=Lt,$t=It(Lt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Rt}=(0,z.useContext)(ze.V),[Yt,He]=(0,z.useState)("collapsed"in Lt?Lt.collapsed:Be),[Qt,St]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in Lt&&He(Lt.collapsed)},[Lt.collapsed]);const ae=(an,Gt)=>{"collapsed"in Lt||He(an),$e==null||$e(an,Gt)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(Qe.E_),oe=te("layout-sider",_e),[se,re,pe]=Ht(oe),Ce=(0,z.useRef)(null);Ce.current=an=>{St(an.matches),qe==null||qe(an.matches),Yt!==an.matches&&ae(an.matches,"responsive")},(0,z.useEffect)(()=>{function an(Ae){return Ce.current(Ae)}let Gt;if(typeof window!="undefined"){const{matchMedia:Ae}=window;if(Ae&&me&&me in ut){Gt=Ae(`screen and (max-width: ${ut[me]})`);try{Gt.addEventListener("change",an)}catch(st){Gt.addListener(an)}an(Gt)}}return()=>{try{Gt==null||Gt.removeEventListener("change",an)}catch(Ae){Gt==null||Gt.removeListener(an)}}},[me]),(0,z.useEffect)(()=>{const an=kt("ant-sider-");return Rt.addSider(an),()=>Rt.removeSider(an)},[]);const gt=()=>{ae(!Yt,"clickTrigger")},Te=(0,Ot.Z)($t,["collapsed"]),it=Yt?tn:Ct,vt=lt(it)?`${it}px`:String(it),Bt=parseFloat(String(tn||0))===0?z.createElement("span",{onClick:gt,className:Ee()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${de?"right":"left"}`),style:wt},ue||z.createElement(Je,null)):null,Mt=ee==="rtl"==!de,Zt={expanded:Mt?z.createElement(fe.Z,null):z.createElement(Ie.Z,null),collapsed:Mt?z.createElement(Ie.Z,null):z.createElement(fe.Z,null)}[Yt?"collapsed":"expanded"],Wt=ue!==null?Bt||z.createElement("div",{className:`${oe}-trigger`,onClick:gt,style:{width:vt}},ue||Zt):null,en=Object.assign(Object.assign({},Nt),{flex:`0 0 ${vt}`,maxWidth:vt,minWidth:vt,width:vt}),un=Ee()(oe,`${oe}-${Ve}`,{[`${oe}-collapsed`]:!!Yt,[`${oe}-has-trigger`]:xe&&ue!==null&&!Bt,[`${oe}-below`]:!!Qt,[`${oe}-zero-width`]:parseFloat(vt)===0},Fe,re,pe),Tt=z.useMemo(()=>({siderCollapsed:Yt}),[Yt]);return se(z.createElement(Ge.Provider,{value:Tt},z.createElement("aside",Object.assign({className:un},Te,{style:en,ref:Le}),z.createElement("div",{className:`${oe}-children`},mt),xe||Qt&&Bt?Wt:null)))})},6989:function(pn,Kt,ne){"use strict";ne.d(Kt,{V:function(){return nt}});var z=ne(59301);const nt=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(pn,Kt,ne){"use strict";ne.d(Kt,{eh:function(){return et},jn:function(){return be}});var z=ne(36237),nt=ne(16931);const ve=Pe=>{const{antCls:Ne,componentCls:Je,colorText:Ie,footerBg:fe,headerHeight:tt,headerPadding:Ee,headerColor:Ot,footerPadding:Qe,fontSize:ze,bodyBg:Ke,headerBg:ke}=Pe;return{[Je]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ke,"&, *":{boxSizing:"border-box"},[`&${Je}-has-sider`]:{flexDirection:"row",[`> ${Je}, > ${Je}-content`]:{width:0}},[`${Je}-header, &${Je}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Je}-header`]:{height:tt,padding:Ee,color:Ot,lineHeight:(0,z.unit)(tt),background:ke,[`${Ne}-menu`]:{lineHeight:"inherit"}},[`${Je}-footer`]:{padding:Qe,color:Ie,fontSize:ze,background:fe},[`${Je}-content`]:{flex:"auto",color:Ie,minHeight:0}}},et=Pe=>{const{colorBgLayout:Ne,controlHeight:Je,controlHeightLG:Ie,colorText:fe,controlHeightSM:tt,marginXXS:Ee,colorTextLightSolid:Ot,colorBgContainer:Qe}=Pe,ze=Ie*1.25;return{colorBgHeader:"#001529",colorBgBody:Ne,colorBgTrigger:"#002140",bodyBg:Ne,headerBg:"#001529",headerHeight:Je*2,headerPadding:`0 ${ze}px`,headerColor:fe,footerPadding:`${tt}px ${ze}px`,footerBg:Ne,siderBg:"#001529",triggerHeight:Ie+Ee*2,triggerBg:"#002140",triggerColor:Ot,zeroTriggerWidth:Ie,zeroTriggerHeight:Ie,lightSiderBg:Qe,lightTriggerBg:Qe,lightTriggerColor:fe}},be=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Kt.ZP=(0,nt.I$)("Layout",Pe=>[ve(Pe)],et,{deprecatedTokens:be})},78857:function(pn,Kt,ne){"use strict";ne.d(Kt,{J:function(){return Pe}});var z=ne(59301),nt=ne(8654),ve=ne(62487),et=function(Ne,Je){var Ie={};for(var fe in Ne)Object.prototype.hasOwnProperty.call(Ne,fe)&&Je.indexOf(fe)<0&&(Ie[fe]=Ne[fe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,fe=Object.getOwnPropertySymbols(Ne);tt{const{children:Ie}=Ne,fe=et(Ne,["children"]),tt=z.useContext(be),Ee=z.useMemo(()=>Object.assign(Object.assign({},tt),fe),[tt,fe.prefixCls,fe.mode,fe.selectable,fe.rootClassName]),Ot=(0,nt.t4)(Ie),Qe=(0,nt.x1)(Je,Ot?(0,nt.C4)(Ie):null);return z.createElement(be.Provider,{value:Ee},z.createElement(ve.Z,{space:!0},Ot?z.cloneElement(Ie,{ref:Qe}):Ie))});Kt.Z=be},93041:function(pn,Kt,ne){"use strict";ne.d(Kt,{default:function(){return se}});var z=ne(59301),nt=ne(28321),ve=ne(24303),et=ne(18785),be=ne(92310),Pe=ne.n(be),Ne=ne(6089),Je=ne(2738),Ie=ne(86641),fe=ne(22703),tt=ne(48755),Ee=ne(83397),Qe=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ze=function(re,pe){var Ce={};for(var gt in re)Object.prototype.hasOwnProperty.call(re,gt)&&pe.indexOf(gt)<0&&(Ce[gt]=re[gt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,gt=Object.getOwnPropertySymbols(re);Te{const{prefixCls:pe,className:Ce,dashed:gt}=re,Te=ze(re,["prefixCls","className","dashed"]),{getPrefixCls:it}=z.useContext(tt.E_),vt=it("menu",pe),Bt=Pe()({[`${vt}-item-divider-dashed`]:!!gt},Ce);return z.createElement(nt.iz,Object.assign({className:Bt},Te))},ft=ne(11592),Et=ne(25399),It=re=>{var pe;const{className:Ce,children:gt,icon:Te,title:it,danger:vt,extra:Bt}=re,{prefixCls:Mt,firstLevel:we,direction:Me,disableMenuItemTitleTooltip:Zt,inlineCollapsed:Wt}=z.useContext(Qe),en=st=>{const At=gt==null?void 0:gt[0],_t=z.createElement("span",{className:Pe()(`${Mt}-title-content`,{[`${Mt}-title-content-with-extra`]:!!Bt||Bt===0})},gt);return(!Te||z.isValidElement(gt)&>.type==="span")&>&&st&&we&&typeof At=="string"?z.createElement("div",{className:`${Mt}-inline-collapsed-noicon`},At.charAt(0)):_t},{siderCollapsed:un}=z.useContext(ve.D);let Tt=it;typeof it=="undefined"?Tt=we?gt:"":it===!1&&(Tt="");const an={title:Tt};!un&&!Wt&&(an.title=null,an.open=!1);const Gt=(0,ft.Z)(gt).length;let Ae=z.createElement(nt.ck,Object.assign({},(0,Je.Z)(re,["title","icon","danger"]),{className:Pe()({[`${Mt}-item-danger`]:vt,[`${Mt}-item-only-child`]:(Te?Gt+1:Gt)===1},Ce),title:typeof it=="string"?it:void 0}),(0,fe.Tm)(Te,{className:Pe()(z.isValidElement(Te)?(pe=Te.props)===null||pe===void 0?void 0:pe.className:"",`${Mt}-item-icon`)}),en(Wt));return Zt||(Ae=z.createElement(Et.Z,Object.assign({},an,{placement:Me==="rtl"?"left":"right",classNames:{root:`${Mt}-inline-collapsed-tooltip`}}),Ae)),Ae},ut=ne(78857),lt=ne(36237),Ge=ne(17835),kt=ne(63356),bt=ne(34961),ht=ne(46e3),Lt=ne(34925),Le=ne(16931),_e=ne(51636),ue=re=>{const{componentCls:pe,motionDurationSlow:Ce,horizontalLineHeight:gt,colorSplit:Te,lineWidth:it,lineType:vt,itemPaddingInline:Bt}=re;return{[`${pe}-horizontal`]:{lineHeight:gt,border:0,borderBottom:`${(0,lt.unit)(it)} ${vt} ${Te}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Bt},[`> ${pe}-item:hover, > ${pe}-item-active, > ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${Ce}`,`background ${Ce}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},Be=re=>{let{componentCls:pe,menuArrowOffset:Ce,calc:gt}=re;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical, ${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,lt.unit)(gt(Ce).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,lt.unit)(Ce)})`}}}}};const Ve=re=>Object.assign({},(0,kt.oN)(re));var xe=(re,pe)=>{const{componentCls:Ce,itemColor:gt,itemSelectedColor:Te,subMenuItemSelectedColor:it,groupTitleColor:vt,itemBg:Bt,subMenuItemBg:Mt,itemSelectedBg:we,activeBarHeight:Me,activeBarWidth:Zt,activeBarBorderWidth:Wt,motionDurationSlow:en,motionEaseInOut:un,motionEaseOut:Tt,itemPaddingInline:an,motionDurationMid:Gt,itemHoverColor:Ae,lineType:st,colorSplit:At,itemDisabledColor:_t,dangerItemColor:De,dangerItemHoverColor:Xe,dangerItemSelectedColor:pt,dangerItemActiveBg:Dt,dangerItemSelectedBg:Xt,popupBg:fn,itemHoverBg:Dn,itemActiveBg:Mn,menuSubMenuBg:rn,horizontalItemSelectedColor:bn,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:Ut,horizontalItemHoverBg:zt}=re;return{[`${Ce}-${pe}, ${Ce}-${pe} > ${Ce}`]:{color:gt,background:Bt,[`&${Ce}-root:focus-visible`]:Object.assign({},Ve(re)),[`${Ce}-item`]:{"&-group-title, &-extra":{color:vt}},[`${Ce}-submenu-selected > ${Ce}-submenu-title`]:{color:it},[`${Ce}-item, ${Ce}-submenu-title`]:{color:gt,[`&:not(${Ce}-item-disabled):focus-visible`]:Object.assign({},Ve(re))},[`${Ce}-item-disabled, ${Ce}-submenu-disabled`]:{color:`${_t} !important`},[`${Ce}-item:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{[`&:hover, > ${Ce}-submenu-title:hover`]:{color:Ae}},[`&:not(${Ce}-horizontal)`]:{[`${Ce}-item:not(${Ce}-item-selected)`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:Mn}},[`${Ce}-submenu-title`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:Mn}}},[`${Ce}-item-danger`]:{color:De,[`&${Ce}-item:hover`]:{[`&:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{color:Xe}},[`&${Ce}-item:active`]:{background:Dt}},[`${Ce}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ce}-item-selected`]:{color:Te,[`&${Ce}-item-danger`]:{color:pt},"a, a:hover":{color:"inherit"}},[`& ${Ce}-item-selected`]:{backgroundColor:we,[`&${Ce}-item-danger`]:{backgroundColor:Xt}},[`&${Ce}-submenu > ${Ce}`]:{backgroundColor:rn},[`&${Ce}-popup > ${Ce}`]:{backgroundColor:fn},[`&${Ce}-submenu-popup > ${Ce}`]:{backgroundColor:fn},[`&${Ce}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${Ce}-item, > ${Ce}-submenu`]:{top:Wt,marginTop:re.calc(Wt).mul(-1).equal(),marginBottom:0,borderRadius:Ut,"&::after":{position:"absolute",insetInline:an,bottom:0,borderBottom:`${(0,lt.unit)(Me)} solid transparent`,transition:`border-color ${en} ${un}`,content:'""'},"&:hover, &-active, &-open":{background:zt,"&::after":{borderBottomWidth:Me,borderBottomColor:bn}},"&-selected":{color:bn,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:Me,borderBottomColor:bn}}}}),[`&${Ce}-root`]:{[`&${Ce}-inline, &${Ce}-vertical`]:{borderInlineEnd:`${(0,lt.unit)(Wt)} ${st} ${At}`}},[`&${Ce}-inline`]:{[`${Ce}-sub${Ce}-inline`]:{background:Mt},[`${Ce}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,lt.unit)(Zt)} solid ${Te}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Gt} ${Tt}`,`opacity ${Gt} ${Tt}`].join(","),content:'""'},[`&${Ce}-item-danger`]:{"&::after":{borderInlineEndColor:pt}}},[`${Ce}-selected, ${Ce}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Gt} ${un}`,`opacity ${Gt} ${un}`].join(",")}}}}}};const de=re=>{const{componentCls:pe,itemHeight:Ce,itemMarginInline:gt,padding:Te,menuArrowSize:it,marginXS:vt,itemMarginBlock:Bt,itemWidth:Mt,itemPaddingInline:we}=re,Me=re.calc(it).add(Te).add(vt).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:Ce,lineHeight:(0,lt.unit)(Ce),paddingInline:we,overflow:"hidden",textOverflow:"ellipsis",marginInline:gt,marginBlock:Bt,width:Mt},[`> ${pe}-item, > ${pe}-submenu > ${pe}-submenu-title`]:{height:Ce,lineHeight:(0,lt.unit)(Ce)},[`${pe}-item-group-list ${pe}-submenu-title, ${pe}-submenu-title`]:{paddingInlineEnd:Me}}};var tn=re=>{const{componentCls:pe,iconCls:Ce,itemHeight:gt,colorTextLightSolid:Te,dropdownWidth:it,controlHeightLG:vt,motionEaseOut:Bt,paddingXL:Mt,itemMarginInline:we,fontSizeLG:Me,motionDurationFast:Zt,motionDurationSlow:Wt,paddingXS:en,boxShadowSecondary:un,collapsedWidth:Tt,collapsedIconSize:an}=re,Gt={height:gt,lineHeight:(0,lt.unit)(gt),listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},de(re))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},de(re)),{boxShadow:un})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:it,maxHeight:`calc(100vh - ${(0,lt.unit)(re.calc(vt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Wt}`,`background ${Wt}`,`padding ${Zt} ${Bt}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:Gt,[`& ${pe}-item-group-title`]:{paddingInlineStart:Mt}},[`${pe}-item`]:Gt}},{[`${pe}-inline-collapsed`]:{width:Tt,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Me,textAlign:"center"}}},[`> ${pe}-item, > ${pe}-item-group > ${pe}-item-group-list > ${pe}-item, > ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title, > ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,lt.unit)(re.calc(an).div(2).equal())} - ${(0,lt.unit)(we)})`,textOverflow:"clip",[` ${pe}-submenu-arrow, ${pe}-submenu-expand-icon `]:{opacity:0},[`${pe}-item-icon, ${Ce}`]:{margin:0,fontSize:an,lineHeight:(0,lt.unit)(gt),"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${Ce}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${Ce}`]:{display:"none"},"a, a:hover":{color:Te}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},kt.vS),{paddingInline:en})}}]};const wt=re=>{const{componentCls:pe,motionDurationSlow:Ce,motionDurationMid:gt,motionEaseInOut:Te,motionEaseOut:it,iconCls:vt,iconSize:Bt,iconMarginInlineEnd:Mt}=re;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ce}`,`background ${Ce}`,`padding calc(${Ce} + 0.1s) ${Te}`].join(","),[`${pe}-item-icon, ${vt}`]:{minWidth:Bt,fontSize:Bt,transition:[`font-size ${gt} ${it}`,`margin ${Ce} ${Te}`,`color ${Ce}`].join(","),"+ span":{marginInlineStart:Mt,opacity:1,transition:[`opacity ${Ce} ${Te}`,`margin ${Ce}`,`color ${Ce}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,kt.Ro)()),[`&${pe}-item-only-child`]:{[`> ${vt}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},me=re=>{const{componentCls:pe,motionDurationSlow:Ce,motionEaseInOut:gt,borderRadius:Te,menuArrowSize:it,menuArrowOffset:vt}=re;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:it,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ce} ${gt}, opacity ${Ce}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(it).mul(.6).equal(),height:re.calc(it).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Te,transition:[`background ${Ce} ${gt}`,`transform ${Ce} ${gt}`,`top ${Ce} ${gt}`,`color ${Ce} ${gt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,lt.unit)(re.calc(vt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,lt.unit)(vt)})`}}}}},$e=re=>{const{antCls:pe,componentCls:Ce,fontSize:gt,motionDurationSlow:Te,motionDurationMid:it,motionEaseInOut:vt,paddingXS:Bt,padding:Mt,colorSplit:we,lineWidth:Me,zIndexPopup:Zt,borderRadiusLG:Wt,subMenuItemBorderRadius:en,menuArrowSize:un,menuArrowOffset:Tt,lineType:an,groupTitleLineHeight:Gt,groupTitleFontSize:Ae}=re;return[{"":{[Ce]:Object.assign(Object.assign({},(0,kt.dF)()),{"&-hidden":{display:"none"}})},[`${Ce}-submenu-hidden`]:{display:"none"}},{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(re)),(0,kt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:gt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Te} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ce}-item`]:{flex:"none"}},[`${Ce}-item, ${Ce}-submenu, ${Ce}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${Ce}-item-group-title`]:{padding:`${(0,lt.unit)(Bt)} ${(0,lt.unit)(Mt)}`,fontSize:Ae,lineHeight:Gt,transition:`all ${Te}`},[`&-horizontal ${Ce}-submenu`]:{transition:[`border-color ${Te} ${vt}`,`background ${Te} ${vt}`].join(",")},[`${Ce}-submenu, ${Ce}-submenu-inline`]:{transition:[`border-color ${Te} ${vt}`,`background ${Te} ${vt}`,`padding ${it} ${vt}`].join(",")},[`${Ce}-submenu ${Ce}-sub`]:{cursor:"initial",transition:[`background ${Te} ${vt}`,`padding ${Te} ${vt}`].join(",")},[`${Ce}-title-content`]:{transition:`color ${Te}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${pe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Ce}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${Ce}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ce}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:an,borderWidth:0,borderTopWidth:Me,marginBlock:Me,padding:0,"&-dashed":{borderStyle:"dashed"}}}),wt(re)),{[`${Ce}-item-group`]:{[`${Ce}-item-group-list`]:{margin:0,padding:0,[`${Ce}-item, ${Ce}-submenu-title`]:{paddingInline:`${(0,lt.unit)(re.calc(gt).mul(2).equal())} ${(0,lt.unit)(Mt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Zt,borderRadius:Wt,boxShadow:"none",transformOrigin:"0 0",[`&${Ce}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Ce}`]:Object.assign(Object.assign(Object.assign({borderRadius:Wt},wt(re)),me(re)),{[`${Ce}-item, ${Ce}-submenu > ${Ce}-submenu-title`]:{borderRadius:en},[`${Ce}-submenu-title::after`]:{transition:`transform ${Te} ${vt}`}})},"\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:re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:re.paddingXS}}}),me(re)),{[`&-inline-collapsed ${Ce}-submenu-arrow, &-inline ${Ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,lt.unit)(Tt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,lt.unit)(re.calc(Tt).mul(-1).equal())})`}},[`${Ce}-submenu-open${Ce}-submenu-inline > ${Ce}-submenu-title > ${Ce}-submenu-arrow`]:{transform:`translateY(${(0,lt.unit)(re.calc(un).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,lt.unit)(re.calc(Tt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,lt.unit)(Tt)})`}}})},{[`${pe}-layout-header`]:{[Ce]:{lineHeight:"inherit"}}}]},qe=re=>{var pe,Ce,gt;const{colorPrimary:Te,colorError:it,colorTextDisabled:vt,colorErrorBg:Bt,colorText:Mt,colorTextDescription:we,colorBgContainer:Me,colorFillAlter:Zt,colorFillContent:Wt,lineWidth:en,lineWidthBold:un,controlItemBgActive:Tt,colorBgTextHover:an,controlHeightLG:Gt,lineHeight:Ae,colorBgElevated:st,marginXXS:At,padding:_t,fontSize:De,controlHeightSM:Xe,fontSizeLG:pt,colorTextLightSolid:Dt,colorErrorHover:Xt}=re,fn=(pe=re.activeBarWidth)!==null&&pe!==void 0?pe:0,Dn=(Ce=re.activeBarBorderWidth)!==null&&Ce!==void 0?Ce:en,Mn=(gt=re.itemMarginInline)!==null&>!==void 0?gt:re.marginXXS,rn=new Ge.FastColor(Dt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:Mt,itemColor:Mt,colorItemTextHover:Mt,itemHoverColor:Mt,colorItemTextHoverHorizontal:Te,horizontalItemHoverColor:Te,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:Te,itemSelectedColor:Te,subMenuItemSelectedColor:Te,colorItemTextSelectedHorizontal:Te,horizontalItemSelectedColor:Te,colorItemBg:Me,itemBg:Me,colorItemBgHover:an,itemHoverBg:an,colorItemBgActive:Wt,itemActiveBg:Tt,colorSubItemBg:Zt,subMenuItemBg:Zt,colorItemBgSelected:Tt,itemSelectedBg:Tt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:fn,colorActiveBarHeight:un,activeBarHeight:un,colorActiveBarBorderSize:en,activeBarBorderWidth:Dn,colorItemTextDisabled:vt,itemDisabledColor:vt,colorDangerItemText:it,dangerItemColor:it,colorDangerItemTextHover:it,dangerItemHoverColor:it,colorDangerItemTextSelected:it,dangerItemSelectedColor:it,colorDangerItemBgActive:Bt,dangerItemActiveBg:Bt,colorDangerItemBgSelected:Bt,dangerItemSelectedBg:Bt,itemMarginInline:Mn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Gt,groupTitleLineHeight:Ae,collapsedWidth:Gt*2,popupBg:st,itemMarginBlock:At,itemPaddingInline:_t,horizontalLineHeight:`${Gt*1.15}px`,iconSize:De,iconMarginInlineEnd:Xe-De,collapsedIconSize:pt,groupTitleFontSize:De,darkItemDisabledColor:new Ge.FastColor(Dt).setA(.25).toRgbString(),darkItemColor:rn,darkDangerItemColor:it,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Dt,darkItemSelectedBg:Te,darkDangerItemSelectedBg:it,darkItemHoverBg:"transparent",darkGroupTitleColor:rn,darkItemHoverColor:Dt,darkDangerItemHoverColor:Xt,darkDangerItemSelectedColor:Dt,darkDangerItemActiveBg:it,itemWidth:fn?`calc(100% + ${Dn}px)`:`calc(100% - ${Mn*2}px)`}};var $t=function(re){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Le.I$)("Menu",Te=>{const{colorBgElevated:it,controlHeightLG:vt,fontSize:Bt,darkItemColor:Mt,darkDangerItemColor:we,darkItemBg:Me,darkSubMenuItemBg:Zt,darkItemSelectedColor:Wt,darkItemSelectedBg:en,darkDangerItemSelectedBg:un,darkItemHoverBg:Tt,darkGroupTitleColor:an,darkItemHoverColor:Gt,darkItemDisabledColor:Ae,darkDangerItemHoverColor:st,darkDangerItemSelectedColor:At,darkDangerItemActiveBg:_t,popupBg:De,darkPopupBg:Xe}=Te,pt=Te.calc(Bt).div(7).mul(5).equal(),Dt=(0,_e.mergeToken)(Te,{menuArrowSize:pt,menuHorizontalHeight:Te.calc(vt).mul(1.15).equal(),menuArrowOffset:Te.calc(pt).mul(.25).equal(),menuSubMenuBg:it,calc:Te.calc,popupBg:De}),Xt=(0,_e.mergeToken)(Dt,{itemColor:Mt,itemHoverColor:Gt,groupTitleColor:an,itemSelectedColor:Wt,subMenuItemSelectedColor:Wt,itemBg:Me,popupBg:Xe,subMenuItemBg:Zt,itemActiveBg:"transparent",itemSelectedBg:en,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Tt,itemDisabledColor:Ae,dangerItemColor:we,dangerItemHoverColor:st,dangerItemSelectedColor:At,dangerItemActiveBg:_t,dangerItemSelectedBg:un,menuSubMenuBg:Zt,horizontalItemSelectedColor:Wt,horizontalItemSelectedBg:en});return[$e(Dt),ue(Dt),tn(Dt),xe(Dt,"light"),xe(Xt,"dark"),Be(Dt),(0,bt.Z)(Dt),(0,ht.oN)(Dt,"slide-up"),(0,ht.oN)(Dt,"slide-down"),(0,Lt._y)(Dt,"zoom-big")]},qe,{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:Ce,unitless:{groupTitleLineHeight:!0}})(re,pe)},Rt=ne(75030),He=re=>{var pe;const{popupClassName:Ce,icon:gt,title:Te,theme:it}=re,vt=z.useContext(Qe),{prefixCls:Bt,inlineCollapsed:Mt,theme:we}=vt,Me=(0,nt.Xl)();let Zt;if(!gt)Zt=Mt&&!Me.length&&Te&&typeof Te=="string"?z.createElement("div",{className:`${Bt}-inline-collapsed-noicon`},Te.charAt(0)):z.createElement("span",{className:`${Bt}-title-content`},Te);else{const un=z.isValidElement(Te)&&Te.type==="span";Zt=z.createElement(z.Fragment,null,(0,fe.Tm)(gt,{className:Pe()(z.isValidElement(gt)?(pe=gt.props)===null||pe===void 0?void 0:pe.className:"",`${Bt}-item-icon`)}),un?Te:z.createElement("span",{className:`${Bt}-title-content`},Te))}const Wt=z.useMemo(()=>Object.assign(Object.assign({},vt),{firstLevel:!1}),[vt]),[en]=(0,Rt.Cn)("Menu");return z.createElement(Qe.Provider,{value:Wt},z.createElement(nt.Wd,Object.assign({},(0,Je.Z)(re,["icon"]),{title:Zt,popupClassName:Pe()(Bt,Ce,`${Bt}-${it||we}`),popupStyle:Object.assign({zIndex:en},re.popupStyle)})))},Qt=function(re,pe){var Ce={};for(var gt in re)Object.prototype.hasOwnProperty.call(re,gt)&&pe.indexOf(gt)<0&&(Ce[gt]=re[gt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,gt=Object.getOwnPropertySymbols(re);Te{var Ce;const gt=z.useContext(ut.Z),Te=gt||{},{getPrefixCls:it,getPopupContainer:vt,direction:Bt,menu:Mt}=z.useContext(tt.E_),we=it(),{prefixCls:Me,className:Zt,style:Wt,theme:en="light",expandIcon:un,_internalDisableMenuItemTitleTooltip:Tt,inlineCollapsed:an,siderCollapsed:Gt,rootClassName:Ae,mode:st,selectable:At,onClick:_t,overflowedIndicatorPopupClassName:De}=re,Xe=Qt(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),pt=(0,Je.Z)(Xe,["collapsedWidth"]);(Ce=Te.validator)===null||Ce===void 0||Ce.call(Te,{mode:st});const Dt=(0,Ne.Z)(function(){var Jt;_t==null||_t.apply(void 0,arguments),(Jt=Te.onClick)===null||Jt===void 0||Jt.call(Te)}),Xt=Te.mode||st,fn=At!=null?At:Te.selectable,Dn=an!=null?an:Gt,Mn={horizontal:{motionName:`${we}-slide-up`},inline:(0,Ie.Z)(we),other:{motionName:`${we}-zoom-big`}},rn=it("menu",Me||Te.prefixCls),bn=(0,Ee.Z)(rn),[vn,Ut,zt]=$t(rn,bn,!gt),Ft=Pe()(`${rn}-${en}`,Mt==null?void 0:Mt.className,Zt),Pt=z.useMemo(()=>{var Jt,ln;if(typeof un=="function"||St(un))return un||null;if(typeof Te.expandIcon=="function"||St(Te.expandIcon))return Te.expandIcon||null;if(typeof(Mt==null?void 0:Mt.expandIcon)=="function"||St(Mt==null?void 0:Mt.expandIcon))return(Mt==null?void 0:Mt.expandIcon)||null;const En=(Jt=un!=null?un:Te==null?void 0:Te.expandIcon)!==null&&Jt!==void 0?Jt:Mt==null?void 0:Mt.expandIcon;return(0,fe.Tm)(En,{className:Pe()(`${rn}-submenu-expand-icon`,z.isValidElement(En)?(ln=En.props)===null||ln===void 0?void 0:ln.className:void 0)})},[un,Te==null?void 0:Te.expandIcon,Mt==null?void 0:Mt.expandIcon,rn]),nn=z.useMemo(()=>({prefixCls:rn,inlineCollapsed:Dn||!1,direction:Bt,firstLevel:!0,theme:en,mode:Xt,disableMenuItemTitleTooltip:Tt}),[rn,Dn,Bt,Tt,en]);return vn(z.createElement(ut.Z.Provider,{value:null},z.createElement(Qe.Provider,{value:nn},z.createElement(nt.ZP,Object.assign({getPopupContainer:vt,overflowedIndicator:z.createElement(et.Z,null),overflowedIndicatorPopupClassName:Pe()(rn,`${rn}-${en}`,De),mode:Xt,selectable:fn,onClick:Dt},pt,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},Mt==null?void 0:Mt.style),Wt),className:Ft,prefixCls:rn,direction:Bt,defaultMotions:Mn,expandIcon:Pt,ref:pe,rootClassName:Pe()(Ae,Ut,Te.rootClassName,zt,bn),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((re,pe)=>{const Ce=(0,z.useRef)(null),gt=z.useContext(ve.D);return(0,z.useImperativeHandle)(pe,()=>({menu:Ce.current,focus:Te=>{var it;(it=Ce.current)===null||it===void 0||it.focus(Te)}})),z.createElement(ee,Object.assign({ref:Ce},re,gt))});oe.Item=It,oe.SubMenu=He,oe.Divider=ke,oe.ItemGroup=nt.BW;var se=oe},31709:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Mt}});var z=ne(59301),nt=ne(54476),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},et=ve,be=ne(7657),Pe=function(Me,Zt){return z.createElement(be.Z,(0,nt.Z)({},Me,{ref:Zt,icon:et}))},Ne=z.forwardRef(Pe),Je=Ne,Ie=ne(49198),fe=ne(33853),tt=ne(38819),Ee=ne(92310),Ot=ne.n(Ee),Qe=ne(20068),ze=ne(76190),Ke=ne(33885),ke=ne(42978),ft=ne(18929),Et=ne(10228),Ht=ne(26112),It=ne(48736),ut=ne(17119),lt=[10,20,50,100],Ge=function(Me){var Zt=Me.pageSizeOptions,Wt=Zt===void 0?lt:Zt,en=Me.locale,un=Me.changeSize,Tt=Me.pageSize,an=Me.goButton,Gt=Me.quickGo,Ae=Me.rootPrefixCls,st=Me.disabled,At=Me.buildOptionText,_t=Me.showSizeChanger,De=Me.sizeChangerRender,Xe=z.useState(""),pt=(0,ke.Z)(Xe,2),Dt=pt[0],Xt=pt[1],fn=function(){return!Dt||Number.isNaN(Dt)?void 0:Number(Dt)},Dn=typeof At=="function"?At:function(nn){return"".concat(nn," ").concat(en.items_per_page)},Mn=function(Jt){Xt(Jt.target.value)},rn=function(Jt){an||Dt===""||(Xt(""),!(Jt.relatedTarget&&(Jt.relatedTarget.className.indexOf("".concat(Ae,"-item-link"))>=0||Jt.relatedTarget.className.indexOf("".concat(Ae,"-item"))>=0))&&(Gt==null||Gt(fn())))},bn=function(Jt){Dt!==""&&(Jt.keyCode===Et.Z.ENTER||Jt.type==="click")&&(Xt(""),Gt==null||Gt(fn()))},vn=function(){return Wt.some(function(Jt){return Jt.toString()===Tt.toString()})?Wt:Wt.concat([Tt]).sort(function(Jt,ln){var En=Number.isNaN(Number(Jt))?0:Number(Jt),On=Number.isNaN(Number(ln))?0:Number(ln);return En-On})},Ut="".concat(Ae,"-options");if(!_t&&!Gt)return null;var zt=null,Ft=null,Pt=null;return _t&&De&&(zt=De({disabled:st,size:Tt,onSizeChange:function(Jt){un==null||un(Number(Jt))},"aria-label":en.page_size,className:"".concat(Ut,"-size-changer"),options:vn().map(function(nn){return{label:Dn(nn),value:nn}})})),Gt&&(an&&(Pt=typeof an=="boolean"?z.createElement("button",{type:"button",onClick:bn,onKeyUp:bn,disabled:st,className:"".concat(Ut,"-quick-jumper-button")},en.jump_to_confirm):z.createElement("span",{onClick:bn,onKeyUp:bn},an)),Ft=z.createElement("div",{className:"".concat(Ut,"-quick-jumper")},en.jump_to,z.createElement("input",{disabled:st,type:"text",value:Dt,onChange:Mn,onKeyUp:bn,onBlur:rn,"aria-label":en.page}),en.page,Pt)),z.createElement("li",{className:Ut},zt,Ft)},kt=Ge,bt=function(Me){var Zt=Me.rootPrefixCls,Wt=Me.page,en=Me.active,un=Me.className,Tt=Me.showTitle,an=Me.onClick,Gt=Me.onKeyPress,Ae=Me.itemRender,st="".concat(Zt,"-item"),At=Ot()(st,"".concat(st,"-").concat(Wt),(0,Qe.Z)((0,Qe.Z)({},"".concat(st,"-active"),en),"".concat(st,"-disabled"),!Wt),un),_t=function(){an(Wt)},De=function(Dt){Gt(Dt,an,Wt)},Xe=Ae(Wt,"page",z.createElement("a",{rel:"nofollow"},Wt));return Xe?z.createElement("li",{title:Tt?String(Wt):null,className:At,onClick:_t,onKeyDown:De,tabIndex:0},Xe):null},ht=bt,Lt=function(Me,Zt,Wt){return Wt};function Le(){}function _e(we){var Me=Number(we);return typeof Me=="number"&&!Number.isNaN(Me)&&isFinite(Me)&&Math.floor(Me)===Me}function Fe(we,Me,Zt){var Wt=typeof we=="undefined"?Me:we;return Math.floor((Zt-1)/Wt)+1}var ue=function(Me){var Zt=Me.prefixCls,Wt=Zt===void 0?"rc-pagination":Zt,en=Me.selectPrefixCls,un=en===void 0?"rc-select":en,Tt=Me.className,an=Me.current,Gt=Me.defaultCurrent,Ae=Gt===void 0?1:Gt,st=Me.total,At=st===void 0?0:st,_t=Me.pageSize,De=Me.defaultPageSize,Xe=De===void 0?10:De,pt=Me.onChange,Dt=pt===void 0?Le:pt,Xt=Me.hideOnSinglePage,fn=Me.align,Dn=Me.showPrevNextJumpers,Mn=Dn===void 0?!0:Dn,rn=Me.showQuickJumper,bn=Me.showLessItems,vn=Me.showTitle,Ut=vn===void 0?!0:vn,zt=Me.onShowSizeChange,Ft=zt===void 0?Le:zt,Pt=Me.locale,nn=Pt===void 0?ut.Z:Pt,Jt=Me.style,ln=Me.totalBoundaryShowSizeChanger,En=ln===void 0?50:ln,On=Me.disabled,In=Me.simple,Nn=Me.showTotal,Bn=Me.showSizeChanger,Qn=Bn===void 0?At>En:Bn,Zn=Me.sizeChangerRender,jt=Me.pageSizeOptions,on=Me.itemRender,Pn=on===void 0?Lt:on,xn=Me.jumpPrevIcon,Re=Me.jumpNextIcon,rt=Me.prevIcon,Se=Me.nextIcon,je=z.useRef(null),Oe=(0,ft.Z)(10,{value:_t,defaultValue:Xe}),We=(0,ke.Z)(Oe,2),ge=We[0],ot=We[1],ct=(0,ft.Z)(1,{value:an,defaultValue:Ae,postState:function(sr){return Math.max(1,Math.min(sr,Fe(void 0,ge,At)))}}),xt=(0,ke.Z)(ct,2),Ue=xt[0],Ze=xt[1],Ye=z.useState(Ue),dt=(0,ke.Z)(Ye,2),cn=dt[0],sn=dt[1];(0,z.useEffect)(function(){sn(Ue)},[Ue]);var hn=Dt!==Le,$n="current"in Me,jn=Math.max(1,Ue-(bn?3:5)),Gn=Math.min(Fe(void 0,ge,At),Ue+(bn?3:5));function kn(pr,sr){var Ur=pr||z.createElement("button",{type:"button","aria-label":sr,className:"".concat(Wt,"-item-link")});return typeof pr=="function"&&(Ur=z.createElement(pr,(0,Ke.Z)({},Me))),Ur}function Ln(pr){var sr=pr.target.value,Ur=Fe(void 0,ge,At),Xr;return sr===""?Xr=sr:Number.isNaN(Number(sr))?Xr=cn:sr>=Ur?Xr=Ur:Xr=Number(sr),Xr}function Rn(pr){return _e(pr)&&pr!==Ue&&_e(At)&&At>0}var _n=At>ge?rn:!1;function tr(pr){(pr.keyCode===Et.Z.UP||pr.keyCode===Et.Z.DOWN)&&pr.preventDefault()}function Yn(pr){var sr=Ln(pr);switch(sr!==cn&&sn(sr),pr.keyCode){case Et.Z.ENTER:Kn(sr);break;case Et.Z.UP:Kn(sr-1);break;case Et.Z.DOWN:Kn(sr+1);break;default:break}}function Jn(pr){Kn(Ln(pr))}function An(pr){var sr=Fe(pr,ge,At),Ur=Ue>sr&&sr!==0?sr:Ue;ot(pr),sn(Ur),Ft==null||Ft(Ue,pr),Ze(Ur),Dt==null||Dt(Ur,pr)}function Kn(pr){if(Rn(pr)&&!On){var sr=Fe(void 0,ge,At),Ur=pr;return pr>sr?Ur=sr:pr<1&&(Ur=1),Ur!==cn&&sn(Ur),Ze(Ur),Dt==null||Dt(Ur,ge),Ur}return Ue}var Un=Ue>1,dr=Ue2?Ur-2:0),yr=2;yrAt?At:Ue*ge])),rr=null,Wn=Fe(void 0,ge,At);if(Xt&&At<=ge)return null;var dn=[],Cn={rootPrefixCls:Wt,onClick:Kn,onKeyPress:ar,showTitle:Ut,itemRender:Pn,page:-1},Sn=Ue-1>0?Ue-1:0,gn=Ue+1=Tn*2&&Ue!==3&&(dn[0]=z.cloneElement(dn[0],{className:Ot()("".concat(Wt,"-item-after-jump-prev"),dn[0].props.className)}),dn.unshift(wr)),Wn-Ue>=Tn*2&&Ue!==Wn-2){var zr=dn[dn.length-1];dn[dn.length-1]=z.cloneElement(zr,{className:Ot()("".concat(Wt,"-item-before-jump-next"),zr.props.className)}),dn.push(rr)}kr!==1&&dn.unshift(z.createElement(ht,(0,nt.Z)({},Cn,{key:1,page:1}))),Nr!==Wn&&dn.push(z.createElement(ht,(0,nt.Z)({},Cn,{key:Wn,page:Wn})))}var Vr=Hr(Sn);if(Vr){var ei=!Un||!Wn;Vr=z.createElement("li",{title:Ut?nn.prev_page:null,onClick:mr,tabIndex:ei?null:0,onKeyDown:hr,className:Ot()("".concat(Wt,"-prev"),(0,Qe.Z)({},"".concat(Wt,"-disabled"),ei)),"aria-disabled":ei},Vr)}var ui=Pr(gn);if(ui){var hi,ci;In?(hi=!dr,ci=Un?0:null):(hi=!dr||!Wn,ci=hi?null:0),ui=z.createElement("li",{title:Ut?nn.next_page:null,onClick:ur,tabIndex:ci,onKeyDown:nr,className:Ot()("".concat(Wt,"-next"),(0,Qe.Z)({},"".concat(Wt,"-disabled"),hi)),"aria-disabled":hi},ui)}var ii=Ot()(Wt,Tt,(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},"".concat(Wt,"-start"),fn==="start"),"".concat(Wt,"-center"),fn==="center"),"".concat(Wt,"-end"),fn==="end"),"".concat(Wt,"-simple"),In),"".concat(Wt,"-disabled"),On));return z.createElement("ul",(0,nt.Z)({className:ii,style:Jt,ref:je},Mr),or,Vr,In?mn:dn,ui,z.createElement(kt,{locale:nn,rootPrefixCls:Wt,disabled:On,selectPrefixCls:un,changeSize:An,pageSize:ge,pageSizeOptions:jt,quickGo:_n?Kn:null,goButton:yn,showSizeChanger:Qn,sizeChangerRender:Zn}))},mt=ue,Be=ne(61852),Ve=ne(48755),Nt=ne(31756),xe=ne(13783),de=ne(9017),Ct=ne(82326),tn=ne(57700),wt=ne(36237),me=ne(53075),$e=ne(64910),qe=ne(39082),$t=ne(63356),Rt=ne(51636),Yt=ne(16931);const He=we=>{const{componentCls:Me}=we;return{[`${Me}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Me}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Me}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}}},[`&${Me}-disabled`]:{cursor:"not-allowed",[`${Me}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:we.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:we.colorBorder,backgroundColor:we.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:we.itemActiveBgDisabled},a:{color:we.itemActiveColorDisabled}}},[`${Me}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Me}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Me}-simple-pager`]:{color:we.colorTextDisabled},[`${Me}-jump-prev, ${Me}-jump-next`]:{[`${Me}-item-link-icon`]:{opacity:0},[`${Me}-item-ellipsis`]:{opacity:1}}},[`&${Me}-simple`]:{[`${Me}-prev, ${Me}-next`]:{[`&${Me}-disabled ${Me}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Qt=we=>{const{componentCls:Me}=we;return{[`&${Me}-mini ${Me}-total-text, &${Me}-mini ${Me}-simple-pager`]:{height:we.itemSizeSM,lineHeight:(0,wt.unit)(we.itemSizeSM)},[`&${Me}-mini ${Me}-item`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:(0,wt.unit)(we.calc(we.itemSizeSM).sub(2).equal())},[`&${Me}-mini ${Me}-prev, &${Me}-mini ${Me}-next`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:(0,wt.unit)(we.itemSizeSM)},[`&${Me}-mini:not(${Me}-disabled)`]:{[`${Me}-prev, ${Me}-next`]:{[`&:hover ${Me}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${Me}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${Me}-disabled:hover ${Me}-item-link`]:{backgroundColor:"transparent"}}},[` &${Me}-mini ${Me}-prev ${Me}-item-link, &${Me}-mini ${Me}-next ${Me}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:we.itemSizeSM,lineHeight:(0,wt.unit)(we.itemSizeSM)}},[`&${Me}-mini ${Me}-jump-prev, &${Me}-mini ${Me}-jump-next`]:{height:we.itemSizeSM,marginInlineEnd:0,lineHeight:(0,wt.unit)(we.itemSizeSM)},[`&${Me}-mini ${Me}-options`]:{marginInlineStart:we.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:we.miniOptionsSizeChangerTop},"&-quick-jumper":{height:we.itemSizeSM,lineHeight:(0,wt.unit)(we.itemSizeSM),input:Object.assign(Object.assign({},(0,me.x0)(we)),{width:we.paginationMiniQuickJumperInputWidth,height:we.controlHeightSM})}}}},St=we=>{const{componentCls:Me}=we;return{[` &${Me}-simple ${Me}-prev, &${Me}-simple ${Me}-next `]:{height:we.itemSizeSM,lineHeight:(0,wt.unit)(we.itemSizeSM),verticalAlign:"top",[`${Me}-item-link`]:{height:we.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:we.colorBgTextHover},"&:active":{backgroundColor:we.colorBgTextActive},"&::after":{height:we.itemSizeSM,lineHeight:(0,wt.unit)(we.itemSizeSM)}}},[`&${Me}-simple ${Me}-simple-pager`]:{display:"inline-block",height:we.itemSizeSM,marginInlineEnd:we.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,wt.unit)(we.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:we.itemInputBg,border:`${(0,wt.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadius,outline:"none",transition:`border-color ${we.motionDurationMid}`,color:"inherit","&:hover":{borderColor:we.colorPrimary},"&:focus":{borderColor:we.colorPrimaryHover,boxShadow:`${(0,wt.unit)(we.inputOutlineOffset)} 0 ${(0,wt.unit)(we.controlOutlineWidth)} ${we.controlOutline}`},"&[disabled]":{color:we.colorTextDisabled,backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,cursor:"not-allowed"}}}}},ae=we=>{const{componentCls:Me}=we;return{[`${Me}-jump-prev, ${Me}-jump-next`]:{outline:0,[`${Me}-item-container`]:{position:"relative",[`${Me}-item-link-icon`]:{color:we.colorPrimary,fontSize:we.fontSizeSM,opacity:0,transition:`all ${we.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Me}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:we.colorTextDisabled,letterSpacing:we.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:we.paginationEllipsisTextIndent,opacity:1,transition:`all ${we.motionDurationMid}`}},"&:hover":{[`${Me}-item-link-icon`]:{opacity:1},[`${Me}-item-ellipsis`]:{opacity:0}}},[` ${Me}-prev, ${Me}-jump-prev, ${Me}-jump-next `]:{marginInlineEnd:we.marginXS},[` ${Me}-prev, ${Me}-next, ${Me}-jump-prev, ${Me}-jump-next `]:{display:"inline-block",minWidth:we.itemSize,height:we.itemSize,color:we.colorText,fontFamily:we.fontFamily,lineHeight:(0,wt.unit)(we.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:we.borderRadius,cursor:"pointer",transition:`all ${we.motionDurationMid}`},[`${Me}-prev, ${Me}-next`]:{outline:0,button:{color:we.colorText,cursor:"pointer",userSelect:"none"},[`${Me}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:we.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,wt.unit)(we.lineWidth)} ${we.lineType} transparent`,borderRadius:we.borderRadius,outline:"none",transition:`all ${we.motionDurationMid}`},[`&:hover ${Me}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${Me}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${Me}-disabled:hover`]:{[`${Me}-item-link`]:{backgroundColor:"transparent"}}},[`${Me}-slash`]:{marginInlineEnd:we.paginationSlashMarginInlineEnd,marginInlineStart:we.paginationSlashMarginInlineStart},[`${Me}-options`]:{display:"inline-block",marginInlineStart:we.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:we.controlHeight,marginInlineStart:we.marginXS,lineHeight:(0,wt.unit)(we.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,me.ik)(we)),(0,qe.$U)(we,{borderColor:we.colorBorder,hoverBorderColor:we.colorPrimaryHover,activeBorderColor:we.colorPrimary,activeShadow:we.activeShadow})),{"&[disabled]":Object.assign({},(0,qe.Xy)(we)),width:we.calc(we.controlHeightLG).mul(1.25).equal(),height:we.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:we.marginXS,marginInlineEnd:we.marginXS})}}}},te=we=>{const{componentCls:Me}=we;return{[`${Me}-item`]:{display:"inline-block",minWidth:we.itemSize,height:we.itemSize,marginInlineEnd:we.marginXS,fontFamily:we.fontFamily,lineHeight:(0,wt.unit)(we.calc(we.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:we.itemBg,border:`${(0,wt.unit)(we.lineWidth)} ${we.lineType} transparent`,borderRadius:we.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,wt.unit)(we.paginationItemPaddingInline)}`,color:we.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Me}-item-active)`]:{"&:hover":{transition:`all ${we.motionDurationMid}`,backgroundColor:we.colorBgTextHover},"&:active":{backgroundColor:we.colorBgTextActive}},"&-active":{fontWeight:we.fontWeightStrong,backgroundColor:we.itemActiveBg,borderColor:we.colorPrimary,a:{color:we.colorPrimary},"&:hover":{borderColor:we.colorPrimaryHover},"&:hover a":{color:we.colorPrimaryHover}}}}},ee=we=>{const{componentCls:Me}=we;return{[Me]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.Wf)(we)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Me}-total-text`]:{display:"inline-block",height:we.itemSize,marginInlineEnd:we.marginXS,lineHeight:(0,wt.unit)(we.calc(we.itemSize).sub(2).equal()),verticalAlign:"middle"}}),te(we)),ae(we)),St(we)),Qt(we)),He(we)),{[`@media only screen and (max-width: ${we.screenLG}px)`]:{[`${Me}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${we.screenSM}px)`]:{[`${Me}-options`]:{display:"none"}}}),[`&${we.componentCls}-rtl`]:{direction:"rtl"}}},oe=we=>{const{componentCls:Me}=we;return{[`${Me}:not(${Me}-disabled)`]:{[`${Me}-item`]:Object.assign({},(0,$t.Qy)(we)),[`${Me}-jump-prev, ${Me}-jump-next`]:{"&:focus-visible":Object.assign({[`${Me}-item-link-icon`]:{opacity:1},[`${Me}-item-ellipsis`]:{opacity:0}},(0,$t.oN)(we))},[`${Me}-prev, ${Me}-next`]:{[`&:focus-visible ${Me}-item-link`]:Object.assign({},(0,$t.oN)(we))}}}},se=we=>Object.assign({itemBg:we.colorBgContainer,itemSize:we.controlHeight,itemSizeSM:we.controlHeightSM,itemActiveBg:we.colorBgContainer,itemLinkBg:we.colorBgContainer,itemActiveColorDisabled:we.colorTextDisabled,itemActiveBgDisabled:we.controlItemBgActiveDisabled,itemInputBg:we.colorBgContainer,miniOptionsSizeChangerTop:0},(0,$e.T)(we)),re=we=>(0,Rt.mergeToken)(we,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:we.calc(we.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:we.calc(we.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:we.calc(we.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:we.calc(we.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:we.marginSM,paginationSlashMarginInlineEnd:we.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,$e.e)(we));var pe=(0,Yt.I$)("Pagination",we=>{const Me=re(we);return[ee(Me),oe(Me)]},se);const Ce=we=>{const{componentCls:Me}=we;return{[`${Me}${Me}-bordered${Me}-disabled:not(${Me}-mini)`]:{"&, &:hover":{[`${Me}-item-link`]:{borderColor:we.colorBorder}},"&:focus-visible":{[`${Me}-item-link`]:{borderColor:we.colorBorder}},[`${Me}-item, ${Me}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,[`&:hover:not(${Me}-item-active)`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,a:{color:we.colorTextDisabled}},[`&${Me}-item-active`]:{backgroundColor:we.itemActiveBgDisabled}},[`${Me}-prev, ${Me}-next`]:{"&:hover button":{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,color:we.colorTextDisabled},[`${Me}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder}}},[`${Me}${Me}-bordered:not(${Me}-mini)`]:{[`${Me}-prev, ${Me}-next`]:{"&:hover button":{borderColor:we.colorPrimaryHover,backgroundColor:we.itemBg},[`${Me}-item-link`]:{backgroundColor:we.itemLinkBg,borderColor:we.colorBorder},[`&:hover ${Me}-item-link`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,color:we.colorPrimary},[`&${Me}-disabled`]:{[`${Me}-item-link`]:{borderColor:we.colorBorder,color:we.colorTextDisabled}}},[`${Me}-item`]:{backgroundColor:we.itemBg,border:`${(0,wt.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,[`&:hover:not(${Me}-item-active)`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,a:{color:we.colorPrimary}},"&-active":{borderColor:we.colorPrimary}}}}};var gt=(0,Yt.bk)(["Pagination","bordered"],we=>{const Me=re(we);return[Ce(Me)]},se);function Te(we){return(0,z.useMemo)(()=>typeof we=="boolean"?[we,{}]:we&&typeof we=="object"?[!0,we]:[void 0,void 0],[we])}var it=function(we,Me){var Zt={};for(var Wt in we)Object.prototype.hasOwnProperty.call(we,Wt)&&Me.indexOf(Wt)<0&&(Zt[Wt]=we[Wt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,Wt=Object.getOwnPropertySymbols(we);en{const{align:Me,prefixCls:Zt,selectPrefixCls:Wt,className:en,rootClassName:un,style:Tt,size:an,locale:Gt,responsive:Ae,showSizeChanger:st,selectComponentClass:At,pageSizeOptions:_t}=we,De=it(we,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Xe}=(0,xe.Z)(Ae),[,pt]=(0,tn.ZP)(),{getPrefixCls:Dt,direction:Xt,showSizeChanger:fn,className:Dn,style:Mn}=(0,Ve.dj)("pagination"),rn=Dt("pagination",Zt),[bn,vn,Ut]=pe(rn),zt=(0,Nt.Z)(an),Ft=zt==="small"||!!(Xe&&!zt&&Ae),[Pt]=(0,de.Z)("Pagination",Be.Z),nn=Object.assign(Object.assign({},Pt),Gt),[Jt,ln]=Te(st),[En,On]=Te(fn),In=Jt!=null?Jt:En,Nn=ln!=null?ln:On,Bn=At||Ct.default,Qn=z.useMemo(()=>_t?_t.map(Re=>Number(Re)):void 0,[_t]),Zn=Re=>{var rt;const{disabled:Se,size:je,onSizeChange:Oe,"aria-label":We,className:ge,options:ot}=Re,{className:ct,onChange:xt}=Nn||{},Ue=(rt=ot.find(Ze=>String(Ze.value)===String(je)))===null||rt===void 0?void 0:rt.value;return z.createElement(Bn,Object.assign({disabled:Se,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Ze=>Ze.parentNode,"aria-label":We,options:ot},Nn,{value:Ue,onChange:(Ze,Ye)=>{Oe==null||Oe(Ze),xt==null||xt(Ze,Ye)},size:Ft?"small":"middle",className:Ot()(ge,ct)}))},jt=z.useMemo(()=>{const Re=z.createElement("span",{className:`${rn}-item-ellipsis`},"\u2022\u2022\u2022"),rt=z.createElement("button",{className:`${rn}-item-link`,type:"button",tabIndex:-1},Xt==="rtl"?z.createElement(tt.Z,null):z.createElement(fe.Z,null)),Se=z.createElement("button",{className:`${rn}-item-link`,type:"button",tabIndex:-1},Xt==="rtl"?z.createElement(fe.Z,null):z.createElement(tt.Z,null)),je=z.createElement("a",{className:`${rn}-item-link`},z.createElement("div",{className:`${rn}-item-container`},Xt==="rtl"?z.createElement(Ie.Z,{className:`${rn}-item-link-icon`}):z.createElement(Je,{className:`${rn}-item-link-icon`}),Re)),Oe=z.createElement("a",{className:`${rn}-item-link`},z.createElement("div",{className:`${rn}-item-container`},Xt==="rtl"?z.createElement(Je,{className:`${rn}-item-link-icon`}):z.createElement(Ie.Z,{className:`${rn}-item-link-icon`}),Re));return{prevIcon:rt,nextIcon:Se,jumpPrevIcon:je,jumpNextIcon:Oe}},[Xt,rn]),on=Dt("select",Wt),Pn=Ot()({[`${rn}-${Me}`]:!!Me,[`${rn}-mini`]:Ft,[`${rn}-rtl`]:Xt==="rtl",[`${rn}-bordered`]:pt.wireframe},Dn,en,un,vn,Ut),xn=Object.assign(Object.assign({},Mn),Tt);return bn(z.createElement(z.Fragment,null,pt.wireframe&&z.createElement(gt,{prefixCls:rn}),z.createElement(mt,Object.assign({},jt,De,{style:xn,prefixCls:rn,selectPrefixCls:on,className:Pn,locale:nn,pageSizeOptions:Qn,showSizeChanger:In,sizeChangerRender:Zn}))))},Mt=Bt},89787:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Gt}});var z=ne(59301),nt=ne(17835),ve=ne(29679),et=ne(40001),be=ne(19248),Pe=ne(99267),Ne=ne(92310),Je=ne.n(Ne),Ie=ne(2738),fe=ne(48755),tt=ne(54476),Ee=ne(33885),Ot=ne(75931),Qe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ze=function(){var st=(0,z.useRef)([]),At=(0,z.useRef)(null);return(0,z.useEffect)(function(){var _t=Date.now(),De=!1;st.current.forEach(function(Xe){if(Xe){De=!0;var pt=Xe.style;pt.transitionDuration=".3s, .3s, .3s, .06s",At.current&&_t-At.current<100&&(pt.transitionDuration="0s, 0s")}}),De&&(At.current=Date.now())}),st.current},Ke=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ke=function(st){var At=(0,Ee.Z)((0,Ee.Z)({},Qe),st),_t=At.className,De=At.percent,Xe=At.prefixCls,pt=At.strokeColor,Dt=At.strokeLinecap,Xt=At.strokeWidth,fn=At.style,Dn=At.trailColor,Mn=At.trailWidth,rn=At.transition,bn=(0,Ot.Z)(At,Ke);delete bn.gapPosition;var vn=Array.isArray(De)?De:[De],Ut=Array.isArray(pt)?pt:[pt],zt=ze(),Ft=Xt/2,Pt=100-Xt/2,nn="M ".concat(Dt==="round"?Ft:0,",").concat(Ft,` L `).concat(Dt==="round"?Pt:100,",").concat(Ft),Jt="0 0 100 ".concat(Xt),ln=0;return z.createElement("svg",(0,tt.Z)({className:Je()("".concat(Xe,"-line"),_t),viewBox:Jt,preserveAspectRatio:"none",style:fn},bn),z.createElement("path",{className:"".concat(Xe,"-line-trail"),d:nn,strokeLinecap:Dt,stroke:Dn,strokeWidth:Mn||Xt,fillOpacity:"0"}),vn.map(function(En,On){var In=1;switch(Dt){case"round":In=1-Xt/100;break;case"square":In=1-Xt/2/100;break;default:In=1;break}var Nn={strokeDasharray:"".concat(En*In,"px, 100px"),strokeDashoffset:"-".concat(ln,"px"),transition:rn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Bn=Ut[On]||Ut[Ut.length-1];return ln+=En,z.createElement("path",{key:On,className:"".concat(Xe,"-line-path"),d:nn,strokeLinecap:Dt,stroke:Bn,strokeWidth:Xt,fillOpacity:"0",ref:function(Zn){zt[On]=Zn},style:Nn})}))},ft=ke,Et=ne(76190),Ht=ne(42978),It=ne(47273),ut=0,lt=(0,It.Z)();function Ge(){var Ae;return lt?(Ae=ut,ut+=1):Ae="TEST_OR_SSR",Ae}var kt=function(Ae){var st=z.useState(),At=(0,Ht.Z)(st,2),_t=At[0],De=At[1];return z.useEffect(function(){De("rc_progress_".concat(Ge()))},[]),Ae||_t},bt=function(st){var At=st.bg,_t=st.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:At}},_t)};function ht(Ae,st){return Object.keys(Ae).map(function(At){var _t=parseFloat(At),De="".concat(Math.floor(_t*st),"%");return"".concat(Ae[At]," ").concat(De)})}var Lt=z.forwardRef(function(Ae,st){var At=Ae.prefixCls,_t=Ae.color,De=Ae.gradientId,Xe=Ae.radius,pt=Ae.style,Dt=Ae.ptg,Xt=Ae.strokeLinecap,fn=Ae.strokeWidth,Dn=Ae.size,Mn=Ae.gapDegree,rn=_t&&(0,Et.Z)(_t)==="object",bn=rn?"#FFF":void 0,vn=Dn/2,Ut=z.createElement("circle",{className:"".concat(At,"-circle-path"),r:Xe,cx:vn,cy:vn,stroke:bn,strokeLinecap:Xt,strokeWidth:fn,opacity:Dt===0?0:1,style:pt,ref:st});if(!rn)return Ut;var zt="".concat(De,"-conic"),Ft=Mn?"".concat(180+Mn/2,"deg"):"0deg",Pt=ht(_t,(360-Mn)/360),nn=ht(_t,1),Jt="conic-gradient(from ".concat(Ft,", ").concat(Pt.join(", "),")"),ln="linear-gradient(to ".concat(Mn?"bottom":"top",", ").concat(nn.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:zt},Ut),z.createElement("foreignObject",{x:0,y:0,width:Dn,height:Dn,mask:"url(#".concat(zt,")")},z.createElement(bt,{bg:ln},z.createElement(bt,{bg:Jt}))))}),Le=Lt,_e=100,Fe=function(st,At,_t,De,Xe,pt,Dt,Xt,fn,Dn){var Mn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rn=_t/100*360*((360-pt)/360),bn=pt===0?0:{bottom:0,top:180,left:90,right:-90}[Dt],vn=(100-De)/100*At;fn==="round"&&De!==100&&(vn+=Dn/2,vn>=At&&(vn=At-.01));var Ut=_e/2;return{stroke:typeof Xt=="string"?Xt:void 0,strokeDasharray:"".concat(At,"px ").concat(st),strokeDashoffset:vn+Mn,transform:"rotate(".concat(Xe+rn+bn,"deg)"),transformOrigin:"".concat(Ut,"px ").concat(Ut,"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}},ue=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function mt(Ae){var st=Ae!=null?Ae:[];return Array.isArray(st)?st:[st]}var Be=function(st){var At=(0,Ee.Z)((0,Ee.Z)({},Qe),st),_t=At.id,De=At.prefixCls,Xe=At.steps,pt=At.strokeWidth,Dt=At.trailWidth,Xt=At.gapDegree,fn=Xt===void 0?0:Xt,Dn=At.gapPosition,Mn=At.trailColor,rn=At.strokeLinecap,bn=At.style,vn=At.className,Ut=At.strokeColor,zt=At.percent,Ft=(0,Ot.Z)(At,ue),Pt=_e/2,nn=kt(_t),Jt="".concat(nn,"-gradient"),ln=Pt-pt/2,En=Math.PI*2*ln,On=fn>0?90+fn/2:-90,In=En*((360-fn)/360),Nn=(0,Et.Z)(Xe)==="object"?Xe:{count:Xe,gap:2},Bn=Nn.count,Qn=Nn.gap,Zn=mt(zt),jt=mt(Ut),on=jt.find(function(Oe){return Oe&&(0,Et.Z)(Oe)==="object"}),Pn=on&&(0,Et.Z)(on)==="object",xn=Pn?"butt":rn,Re=Fe(En,In,0,100,On,fn,Dn,Mn,xn,pt),rt=ze(),Se=function(){var We=0;return Zn.map(function(ge,ot){var ct=jt[ot]||jt[jt.length-1],xt=Fe(En,In,We,ge,On,fn,Dn,ct,xn,pt);return We+=ge,z.createElement(Le,{key:ot,color:ct,ptg:ge,radius:ln,prefixCls:De,gradientId:Jt,style:xt,strokeLinecap:xn,strokeWidth:pt,gapDegree:fn,ref:function(Ze){rt[ot]=Ze},size:_e})}).reverse()},je=function(){var We=Math.round(Bn*(Zn[0]/100)),ge=100/Bn,ot=0;return new Array(Bn).fill(null).map(function(ct,xt){var Ue=xt<=We-1?jt[0]:Mn,Ze=Ue&&(0,Et.Z)(Ue)==="object"?"url(#".concat(Jt,")"):void 0,Ye=Fe(En,In,ot,ge,On,fn,Dn,Ue,"butt",pt,Qn);return ot+=(In-Ye.strokeDashoffset+Qn)*100/In,z.createElement("circle",{key:xt,className:"".concat(De,"-circle-path"),r:ln,cx:Pt,cy:Pt,stroke:Ze,strokeWidth:pt,opacity:1,style:Ye,ref:function(cn){rt[xt]=cn}})})};return z.createElement("svg",(0,tt.Z)({className:Je()("".concat(De,"-circle"),vn),viewBox:"0 0 ".concat(_e," ").concat(_e),style:bn,id:_t,role:"presentation"},Ft),!Bn&&z.createElement("circle",{className:"".concat(De,"-circle-trail"),r:ln,cx:Pt,cy:Pt,stroke:Mn,strokeLinecap:xn,strokeWidth:Dt||pt,style:Re}),Bn?je():Se())},Ve=Be,Nt={Line:ft,Circle:Ve},xe=ne(25399),de=ne(68361);function Ct(Ae){return!Ae||Ae<0?0:Ae>100?100:Ae}function tn(Ae){let{success:st,successPercent:At}=Ae,_t=At;return st&&"progress"in st&&(_t=st.progress),st&&"percent"in st&&(_t=st.percent),_t}const wt=Ae=>{let{percent:st,success:At,successPercent:_t}=Ae;const De=Ct(tn({success:At,successPercent:_t}));return[De,Ct(Ct(st)-De)]},me=Ae=>{let{success:st={},strokeColor:At}=Ae;const{strokeColor:_t}=st;return[_t||de.presetPrimaryColors.green,At||null]},$e=(Ae,st,At)=>{var _t,De,Xe,pt;let Dt=-1,Xt=-1;if(st==="step"){const fn=At.steps,Dn=At.strokeWidth;typeof Ae=="string"||typeof Ae=="undefined"?(Dt=Ae==="small"?2:14,Xt=Dn!=null?Dn:8):typeof Ae=="number"?[Dt,Xt]=[Ae,Ae]:[Dt=14,Xt=8]=Array.isArray(Ae)?Ae:[Ae.width,Ae.height],Dt*=fn}else if(st==="line"){const fn=At==null?void 0:At.strokeWidth;typeof Ae=="string"||typeof Ae=="undefined"?Xt=fn||(Ae==="small"?6:8):typeof Ae=="number"?[Dt,Xt]=[Ae,Ae]:[Dt=-1,Xt=8]=Array.isArray(Ae)?Ae:[Ae.width,Ae.height]}else(st==="circle"||st==="dashboard")&&(typeof Ae=="string"||typeof Ae=="undefined"?[Dt,Xt]=Ae==="small"?[60,60]:[120,120]:typeof Ae=="number"?[Dt,Xt]=[Ae,Ae]:Array.isArray(Ae)&&(Dt=(De=(_t=Ae[0])!==null&&_t!==void 0?_t:Ae[1])!==null&&De!==void 0?De:120,Xt=(pt=(Xe=Ae[0])!==null&&Xe!==void 0?Xe:Ae[1])!==null&&pt!==void 0?pt:120));return[Dt,Xt]},qe=3,$t=Ae=>qe/Ae*100;var Yt=Ae=>{const{prefixCls:st,trailColor:At=null,strokeLinecap:_t="round",gapPosition:De,gapDegree:Xe,width:pt=120,type:Dt,children:Xt,success:fn,size:Dn=pt,steps:Mn}=Ae,[rn,bn]=$e(Dn,"circle");let{strokeWidth:vn}=Ae;vn===void 0&&(vn=Math.max($t(rn),6));const Ut={width:rn,height:bn,fontSize:rn*.15+6},zt=z.useMemo(()=>{if(Xe||Xe===0)return Xe;if(Dt==="dashboard")return 75},[Xe,Dt]),Ft=wt(Ae),Pt=De||Dt==="dashboard"&&"bottom"||void 0,nn=Object.prototype.toString.call(Ae.strokeColor)==="[object Object]",Jt=me({success:fn,strokeColor:Ae.strokeColor}),ln=Je()(`${st}-inner`,{[`${st}-circle-gradient`]:nn}),En=z.createElement(Ve,{steps:Mn,percent:Mn?Ft[1]:Ft,strokeWidth:vn,trailWidth:vn,strokeColor:Mn?Jt[1]:Jt,strokeLinecap:_t,trailColor:At,prefixCls:st,gapDegree:zt,gapPosition:Pt}),On=rn<=20,In=z.createElement("div",{className:ln,style:Ut},En,!On&&Xt);return On?z.createElement(xe.Z,{title:Xt},In):In},He=ne(36237),Qt=ne(63356),St=ne(16931),ae=ne(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=Ae=>{const st=Ae?"100%":"-100%";return new He.Keyframes(`antProgress${Ae?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${st}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${st}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Ae=>{const{componentCls:st,iconCls:At}=Ae;return{[st]:Object.assign(Object.assign({},(0,Qt.Wf)(Ae)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ae.fontSize},[`${st}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${st}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ae.remainingColor,borderRadius:Ae.lineBorderRadius},[`${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:Ae.defaultColor}},[`${st}-success-bg, ${st}-bg`]:{position:"relative",background:Ae.defaultColor,borderRadius:Ae.lineBorderRadius,transition:`all ${Ae.motionDurationSlow} ${Ae.motionEaseInOutCirc}`},[`${st}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${st}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ae.marginXXS}},[`${st}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${st}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${st}-text-inner`]:{color:Ae.colorWhite,[`&${st}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${st}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ae.colorSuccess},[`${st}-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},[`&${st}-text-outer`]:{width:"max-content"},[`&${st}-text-outer${st}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ae.marginXS}},[`${st}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,He.unit)(Ae.paddingXXS)}`,[`&${st}-text-start`]:{justifyContent:"start"},[`&${st}-text-end`]:{justifyContent:"end"}},[`&${st}-status-active`]:{[`${st}-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:'""'}},[`&${st}-rtl${st}-status-active`]:{[`${st}-bg::before`]:{animationName:oe(!0)}},[`&${st}-status-exception`]:{[`${st}-bg`]:{backgroundColor:Ae.colorError},[`${st}-text`]:{color:Ae.colorError}},[`&${st}-status-exception ${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:Ae.colorError}},[`&${st}-status-success`]:{[`${st}-bg`]:{backgroundColor:Ae.colorSuccess},[`${st}-text`]:{color:Ae.colorSuccess}},[`&${st}-status-success ${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:Ae.colorSuccess}}})}},re=Ae=>{const{componentCls:st,iconCls:At}=Ae;return{[st]:{[`${st}-circle-trail`]:{stroke:Ae.remainingColor},[`&${st}-circle ${st}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${st}-circle ${st}-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}},[`${st}-circle&-status-exception`]:{[`${st}-text`]:{color:Ae.colorError}},[`${st}-circle&-status-success`]:{[`${st}-text`]:{color:Ae.colorSuccess}}},[`${st}-inline-circle`]:{lineHeight:1,[`${st}-inner`]:{verticalAlign:"bottom"}}}},pe=Ae=>{const{componentCls:st}=Ae;return{[st]:{[`${st}-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}}}}}},Ce=Ae=>{const{componentCls:st,iconCls:At}=Ae;return{[st]:{[`${st}-small&-line, ${st}-small&-line ${st}-text ${At}`]:{fontSize:Ae.fontSizeSM}}}},gt=Ae=>({circleTextColor:Ae.colorText,defaultColor:Ae.colorInfo,remainingColor:Ae.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ae.fontSize/Ae.fontSizeSM}em`});var Te=(0,St.I$)("Progress",Ae=>{const st=Ae.calc(Ae.marginXXS).div(2).equal(),At=(0,ae.mergeToken)(Ae,{progressStepMarginInlineEnd:st,progressStepMinWidth:st,progressActiveMotionDuration:"2.4s"});return[se(At),re(At),pe(At),Ce(At)]},gt),it=function(Ae,st){var At={};for(var _t in Ae)Object.prototype.hasOwnProperty.call(Ae,_t)&&st.indexOf(_t)<0&&(At[_t]=Ae[_t]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,_t=Object.getOwnPropertySymbols(Ae);De<_t.length;De++)st.indexOf(_t[De])<0&&Object.prototype.propertyIsEnumerable.call(Ae,_t[De])&&(At[_t[De]]=Ae[_t[De]]);return At};const vt=Ae=>{let st=[];return Object.keys(Ae).forEach(At=>{const _t=parseFloat(At.replace(/%/g,""));Number.isNaN(_t)||st.push({key:_t,value:Ae[At]})}),st=st.sort((At,_t)=>At.key-_t.key),st.map(At=>{let{key:_t,value:De}=At;return`${De} ${_t}%`}).join(", ")},Bt=(Ae,st)=>{const{from:At=de.presetPrimaryColors.blue,to:_t=de.presetPrimaryColors.blue,direction:De=st==="rtl"?"to left":"to right"}=Ae,Xe=it(Ae,["from","to","direction"]);if(Object.keys(Xe).length!==0){const Dt=vt(Xe),Xt=`linear-gradient(${De}, ${Dt})`;return{background:Xt,[te]:Xt}}const pt=`linear-gradient(${De}, ${At}, ${_t})`;return{background:pt,[te]:pt}};var we=Ae=>{const{prefixCls:st,direction:At,percent:_t,size:De,strokeWidth:Xe,strokeColor:pt,strokeLinecap:Dt="round",children:Xt,trailColor:fn=null,percentPosition:Dn,success:Mn}=Ae,{align:rn,type:bn}=Dn,vn=pt&&typeof pt!="string"?Bt(pt,At):{[te]:pt,background:pt},Ut=Dt==="square"||Dt==="butt"?0:void 0,zt=De!=null?De:[-1,Xe||(De==="small"?6:8)],[Ft,Pt]=$e(zt,"line",{strokeWidth:Xe}),nn={backgroundColor:fn||void 0,borderRadius:Ut},Jt=Object.assign(Object.assign({width:`${Ct(_t)}%`,height:Pt,borderRadius:Ut},vn),{[ee]:Ct(_t)/100}),ln=tn(Ae),En={width:`${Ct(ln)}%`,height:Pt,borderRadius:Ut,backgroundColor:Mn==null?void 0:Mn.strokeColor},On={width:Ft<0?"100%":Ft},In=z.createElement("div",{className:`${st}-inner`,style:nn},z.createElement("div",{className:Je()(`${st}-bg`,`${st}-bg-${bn}`),style:Jt},bn==="inner"&&Xt),ln!==void 0&&z.createElement("div",{className:`${st}-success-bg`,style:En})),Nn=bn==="outer"&&rn==="start",Bn=bn==="outer"&&rn==="end";return bn==="outer"&&rn==="center"?z.createElement("div",{className:`${st}-layout-bottom`},In,Xt):z.createElement("div",{className:`${st}-outer`,style:On},Nn&&Xt,In,Bn&&Xt)},Zt=Ae=>{const{size:st,steps:At,rounding:_t=Math.round,percent:De=0,strokeWidth:Xe=8,strokeColor:pt,trailColor:Dt=null,prefixCls:Xt,children:fn}=Ae,Dn=_t(At*(De/100)),Mn=st==="small"?2:14,rn=st!=null?st:[Mn,Xe],[bn,vn]=$e(rn,"step",{steps:At,strokeWidth:Xe}),Ut=bn/At,zt=Array.from({length:At});for(let Ft=0;Ft{const{prefixCls:At,className:_t,rootClassName:De,steps:Xe,strokeColor:pt,percent:Dt=0,size:Xt="default",showInfo:fn=!0,type:Dn="line",status:Mn,format:rn,style:bn,percentPosition:vn={}}=Ae,Ut=Wt(Ae,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:zt="end",type:Ft="outer"}=vn,Pt=Array.isArray(pt)?pt[0]:pt,nn=typeof pt=="string"||Array.isArray(pt)?pt:void 0,Jt=z.useMemo(()=>{if(Pt){const Se=typeof Pt=="string"?Pt:Object.values(Pt)[0];return new nt.FastColor(Se).isLight()}return!1},[pt]),ln=z.useMemo(()=>{var Se,je;const Oe=tn(Ae);return parseInt(Oe!==void 0?(Se=Oe!=null?Oe:0)===null||Se===void 0?void 0:Se.toString():(je=Dt!=null?Dt:0)===null||je===void 0?void 0:je.toString(),10)},[Dt,Ae.success,Ae.successPercent]),En=z.useMemo(()=>!un.includes(Mn)&&ln>=100?"success":Mn||"normal",[Mn,ln]),{getPrefixCls:On,direction:In,progress:Nn}=z.useContext(fe.E_),Bn=On("progress",At),[Qn,Zn,jt]=Te(Bn),on=Dn==="line",Pn=on&&!Xe,xn=z.useMemo(()=>{if(!fn)return null;const Se=tn(Ae);let je;const Oe=rn||(ge=>`${ge}%`),We=on&&Jt&&Ft==="inner";return Ft==="inner"||rn||En!=="exception"&&En!=="success"?je=Oe(Ct(Dt),Ct(Se)):En==="exception"?je=on?z.createElement(be.Z,null):z.createElement(Pe.Z,null):En==="success"&&(je=on?z.createElement(ve.Z,null):z.createElement(et.Z,null)),z.createElement("span",{className:Je()(`${Bn}-text`,{[`${Bn}-text-bright`]:We,[`${Bn}-text-${zt}`]:Pn,[`${Bn}-text-${Ft}`]:Pn}),title:typeof je=="string"?je:void 0},je)},[fn,Dt,ln,En,Dn,Bn,rn]);let Re;Dn==="line"?Re=Xe?z.createElement(Zt,Object.assign({},Ae,{strokeColor:nn,prefixCls:Bn,steps:typeof Xe=="object"?Xe.count:Xe}),xn):z.createElement(we,Object.assign({},Ae,{strokeColor:Pt,prefixCls:Bn,direction:In,percentPosition:{align:zt,type:Ft}}),xn):(Dn==="circle"||Dn==="dashboard")&&(Re=z.createElement(Yt,Object.assign({},Ae,{strokeColor:Pt,prefixCls:Bn,progressStatus:En}),xn));const rt=Je()(Bn,`${Bn}-status-${En}`,{[`${Bn}-${Dn==="dashboard"&&"circle"||Dn}`]:Dn!=="line",[`${Bn}-inline-circle`]:Dn==="circle"&&$e(Xt,"circle")[0]<=20,[`${Bn}-line`]:Pn,[`${Bn}-line-align-${zt}`]:Pn,[`${Bn}-line-position-${Ft}`]:Pn,[`${Bn}-steps`]:Xe,[`${Bn}-show-info`]:fn,[`${Bn}-${Xt}`]:typeof Xt=="string",[`${Bn}-rtl`]:In==="rtl"},Nn==null?void 0:Nn.className,_t,De,Zn,jt);return Qn(z.createElement("div",Object.assign({ref:st,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),bn),className:rt,role:"progressbar","aria-valuenow":ln,"aria-valuemin":0,"aria-valuemax":100},(0,Ie.Z)(Ut,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Re))}),Gt=an},63139:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return wt}});var z=ne(59301),nt=ne(54476),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},et=ve,be=ne(7657),Pe=function($e,qe){return z.createElement(be.Z,(0,nt.Z)({},$e,{ref:qe,icon:et}))},Ne=z.forwardRef(Pe),Je=Ne,Ie=ne(92310),fe=ne.n(Ie),tt=ne(20068),Ee=ne(42978),Ot=ne(75931),Qe=ne(18929),ze=ne(10228),Ke=ne(26112);function ke(me,$e){var qe=me.disabled,$t=me.prefixCls,Rt=me.character,Yt=me.characterRender,He=me.index,Qt=me.count,St=me.value,ae=me.allowHalf,te=me.focused,ee=me.onHover,oe=me.onClick,se=function(Bt){ee(Bt,He)},re=function(Bt){oe(Bt,He)},pe=function(Bt){Bt.keyCode===ze.Z.ENTER&&oe(Bt,He)},Ce=He+1,gt=new Set([$t]);St===0&&He===0&&te?gt.add("".concat($t,"-focused")):ae&&St+.5>=Ce&&StHe?"true":"false","aria-posinset":He+1,"aria-setsize":Qt,tabIndex:qe?-1:0},z.createElement("div",{className:"".concat($t,"-first")},Te),z.createElement("div",{className:"".concat($t,"-second")},Te)));return Yt&&(it=Yt(it,me)),it}var ft=z.forwardRef(ke);function Et(){var me=z.useRef({});function $e($t){return me.current[$t]}function qe($t){return function(Rt){me.current[$t]=Rt}}return[$e,qe]}function Ht(me){var $e=me.pageXOffset,qe="scrollLeft";if(typeof $e!="number"){var $t=me.document;$e=$t.documentElement[qe],typeof $e!="number"&&($e=$t.body[qe])}return $e}function It(me){var $e,qe,$t=me.ownerDocument,Rt=$t.body,Yt=$t&&$t.documentElement,He=me.getBoundingClientRect();return $e=He.left,qe=He.top,$e-=Yt.clientLeft||Rt.clientLeft||0,qe-=Yt.clientTop||Rt.clientTop||0,{left:$e,top:qe}}function ut(me){var $e=It(me),qe=me.ownerDocument,$t=qe.defaultView||qe.parentWindow;return $e.left+=Ht($t),$e.left}var lt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ge(me,$e){var qe=me.prefixCls,$t=qe===void 0?"rc-rate":qe,Rt=me.className,Yt=me.defaultValue,He=me.value,Qt=me.count,St=Qt===void 0?5:Qt,ae=me.allowHalf,te=ae===void 0?!1:ae,ee=me.allowClear,oe=ee===void 0?!0:ee,se=me.keyboard,re=se===void 0?!0:se,pe=me.character,Ce=pe===void 0?"\u2605":pe,gt=me.characterRender,Te=me.disabled,it=me.direction,vt=it===void 0?"ltr":it,Bt=me.tabIndex,Mt=Bt===void 0?0:Bt,we=me.autoFocus,Me=me.onHoverChange,Zt=me.onChange,Wt=me.onFocus,en=me.onBlur,un=me.onKeyDown,Tt=me.onMouseLeave,an=(0,Ot.Z)(me,lt),Gt=Et(),Ae=(0,Ee.Z)(Gt,2),st=Ae[0],At=Ae[1],_t=z.useRef(null),De=function(){if(!Te){var xn;(xn=_t.current)===null||xn===void 0||xn.focus()}};z.useImperativeHandle($e,function(){return{focus:De,blur:function(){if(!Te){var xn;(xn=_t.current)===null||xn===void 0||xn.blur()}}}});var Xe=(0,Qe.Z)(Yt||0,{value:He}),pt=(0,Ee.Z)(Xe,2),Dt=pt[0],Xt=pt[1],fn=(0,Qe.Z)(null),Dn=(0,Ee.Z)(fn,2),Mn=Dn[0],rn=Dn[1],bn=function(xn,Re){var rt=vt==="rtl",Se=xn+1;if(te){var je=st(xn),Oe=ut(je),We=je.clientWidth;(rt&&Re-Oe>We/2||!rt&&Re-Oe0&&!rt||Re===ze.Z.RIGHT&&Dt>0&&rt?(vn(Dt-Se),xn.preventDefault()):Re===ze.Z.LEFT&&Dt{const{componentCls:$e}=me;return{[`${$e}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:me.marginXS},"> div":{transition:`all ${me.motionDurationMid}, outline 0s`,"&:hover":{transform:me.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Le.unit)(me.lineWidth)} dashed ${me.starColor}`,transform:me.starHoverScale}},"&-first, &-second":{color:me.starBg,transition:`all ${me.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${$e}-star-first, &-half ${$e}-star-second`]:{opacity:1},[`&-half ${$e}-star-first, &-full ${$e}-star-second`]:{color:"inherit"}}}},Be=me=>({[`&-rtl${me.componentCls}`]:{direction:"rtl"}}),Ve=me=>{const{componentCls:$e}=me;return{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(me)),{display:"inline-block",margin:0,padding:0,color:me.starColor,fontSize:me.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${$e} ${$e}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),mt(me)),Be(me))}},Nt=me=>({starColor:me.yellow6,starSize:me.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:me.colorFillContent});var xe=(0,Fe.I$)("Rate",me=>{const $e=(0,ue.mergeToken)(me,{});return[Ve($e)]},Nt),de=ne(2171),Ct=function(me,$e){var qe={};for(var $t in me)Object.prototype.hasOwnProperty.call(me,$t)&&$e.indexOf($t)<0&&(qe[$t]=me[$t]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,$t=Object.getOwnPropertySymbols(me);Rt<$t.length;Rt++)$e.indexOf($t[Rt])<0&&Object.prototype.propertyIsEnumerable.call(me,$t[Rt])&&(qe[$t[Rt]]=me[$t[Rt]]);return qe},wt=z.forwardRef((me,$e)=>{const{prefixCls:qe,className:$t,rootClassName:Rt,style:Yt,tooltips:He,character:Qt=z.createElement(Je,null),disabled:St}=me,ae=Ct(me,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(Bt,Mt)=>{let{index:we}=Mt;return He?z.createElement(Lt.Z,{title:He[we]},Bt):Bt},{getPrefixCls:ee,direction:oe,rate:se}=z.useContext(ht.E_),re=ee("rate",qe),[pe,Ce,gt]=xe(re),Te=Object.assign(Object.assign({},se==null?void 0:se.style),Yt),it=z.useContext(de.Z),vt=St!=null?St:it;return pe(z.createElement(bt,Object.assign({ref:$e,character:Qt,characterRender:te,disabled:vt},ae,{className:fe()($t,Rt,Ce,gt,se==null?void 0:se.className),style:Te,prefixCls:re,direction:oe})))})},82326:function(pn,Kt,ne){"use strict";var z=ne(59301),nt=ne(92310),ve=ne.n(nt),et=ne(37463),be=ne(2738),Pe=ne(75030),Ne=ne(86641),Je=ne(45915),Ie=ne(82855),fe=ne(48755),tt=ne(38406),Ee=ne(2171),Ot=ne(83397),Qe=ne(31756),ze=ne(56553),Ke=ne(24971),ke=ne(70045),ft=ne(57700),Et=ne(1722),Ht=ne(90376),It=ne(68525),ut=ne(90005),lt=function(Lt,Le){var _e={};for(var Fe in Lt)Object.prototype.hasOwnProperty.call(Lt,Fe)&&Le.indexOf(Fe)<0&&(_e[Fe]=Lt[Fe]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Fe=Object.getOwnPropertySymbols(Lt);ue{var _e;const{prefixCls:Fe,bordered:ue,className:mt,rootClassName:Be,getPopupContainer:Ve,popupClassName:Nt,dropdownClassName:xe,listHeight:de=256,placement:Ct,listItemHeight:tn,size:wt,disabled:me,notFoundContent:$e,status:qe,builtinPlacements:$t,dropdownMatchSelectWidth:Rt,popupMatchSelectWidth:Yt,direction:He,style:Qt,allowClear:St,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:re}=Lt,pe=lt(Lt,["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:Ce,getPrefixCls:gt,renderEmpty:Te,direction:it,virtual:vt,popupMatchSelectWidth:Bt,popupOverflow:Mt}=z.useContext(fe.E_),we=(0,fe.dj)("select"),[,Me]=(0,ft.ZP)(),Zt=tn!=null?tn:Me==null?void 0:Me.controlHeight,Wt=gt("select",Fe),en=gt(),un=He!=null?He:it,{compactSize:Tt,compactItemClassnames:an}=(0,ke.ri)(Wt,un),[Gt,Ae]=(0,Ke.Z)("select",ae,ue),st=(0,Ot.Z)(Wt),[At,_t,De]=(0,Ht.Z)(Wt,st),Xe=z.useMemo(()=>{const{mode:Zn}=Lt;if(Zn!=="combobox")return Zn===Ge?"combobox":Zn},[Lt.mode]),pt=Xe==="multiple"||Xe==="tags",Dt=(0,ut.Z)(Lt.suffixIcon,Lt.showArrow),Xt=(_e=Yt!=null?Yt:Rt)!==null&&_e!==void 0?_e:Bt,{status:fn,hasFeedback:Dn,isFormItemInput:Mn,feedbackIcon:rn}=z.useContext(ze.aM),bn=(0,Ie.F)(fn,qe);let vn;$e!==void 0?vn=$e:Xe==="combobox"?vn=null:vn=(Te==null?void 0:Te("Select"))||z.createElement(tt.Z,{componentName:"Select"});const{suffixIcon:Ut,itemIcon:zt,removeIcon:Ft,clearIcon:Pt}=(0,It.Z)(Object.assign(Object.assign({},pe),{multiple:pt,hasFeedback:Dn,feedbackIcon:rn,showSuffixIcon:Dt,prefixCls:Wt,componentName:"Select"})),nn=St===!0?{clearIcon:Pt}:St,Jt=(0,be.Z)(pe,["suffixIcon","itemIcon"]),ln=ve()(Nt||xe,{[`${Wt}-dropdown-${un}`]:un==="rtl"},Be,De,st,_t),En=(0,Qe.Z)(Zn=>{var jt;return(jt=wt!=null?wt:Tt)!==null&&jt!==void 0?jt:Zn}),On=z.useContext(Ee.Z),In=me!=null?me:On,Nn=ve()({[`${Wt}-lg`]:En==="large",[`${Wt}-sm`]:En==="small",[`${Wt}-rtl`]:un==="rtl",[`${Wt}-${Gt}`]:Ae,[`${Wt}-in-form-item`]:Mn},(0,Ie.Z)(Wt,bn,Dn),an,we.className,mt,Be,De,st,_t),Bn=z.useMemo(()=>Ct!==void 0?Ct:un==="rtl"?"bottomRight":"bottomLeft",[Ct,un]),[Qn]=(0,Pe.Cn)("SelectLike",te==null?void 0:te.zIndex);return At(z.createElement(et.ZP,Object.assign({ref:Le,virtual:vt,showSearch:we.showSearch},Jt,{style:Object.assign(Object.assign({},we.style),Qt),dropdownMatchSelectWidth:Xt,transitionName:(0,Ne.m)(en,"slide-up",ee),builtinPlacements:(0,Et.Z)($t,Mt),listHeight:de,listItemHeight:Zt,mode:Xe,prefixCls:Wt,placement:Bn,direction:un,prefix:re,suffixIcon:Ut,menuItemSelectedIcon:zt,removeIcon:Ft,allowClear:nn,notFoundContent:vn,className:Nn,getPopupContainer:Ve||Ce,dropdownClassName:ln,disabled:In,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Qn}),maxCount:pt?se:void 0,tagRender:pt?oe:void 0})))},bt=z.forwardRef(kt),ht=(0,Je.Z)(bt,"dropdownAlign");bt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ge,bt.Option=et.Wx,bt.OptGroup=et.Xo,bt._InternalPanelDoNotUseOrYouWillBeFired=ht,Kt.default=bt},1722:function(pn,Kt){"use strict";const ne=nt=>{const et={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:nt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},et),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},et),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},et),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},et),{points:["br","tr"],offset:[0,-4]})}};function z(nt,ve){return nt||ne(ve)}Kt.Z=z},90376:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Fe}});var z=ne(63356),nt=ne(56119),ve=ne(16931),et=ne(51636),be=ne(46e3),Pe=ne(93873);const Ne=ue=>{const{optionHeight:mt,optionFontSize:Be,optionLineHeight:Ve,optionPadding:Nt}=ue;return{position:"relative",display:"block",minHeight:mt,padding:Nt,color:ue.colorText,fontWeight:"normal",fontSize:Be,lineHeight:Ve,boxSizing:"border-box"}};var Ie=ue=>{const{antCls:mt,componentCls:Be}=ue,Ve=`${Be}-item`,Nt=`&${mt}-slide-up-enter${mt}-slide-up-enter-active`,xe=`&${mt}-slide-up-appear${mt}-slide-up-appear-active`,de=`&${mt}-slide-up-leave${mt}-slide-up-leave-active`,Ct=`${Be}-dropdown-placement-`,tn=`${Ve}-option-selected`;return[{[`${Be}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"absolute",top:-9999,zIndex:ue.zIndexPopup,boxSizing:"border-box",padding:ue.paddingXXS,overflow:"hidden",fontSize:ue.fontSize,fontVariant:"initial",backgroundColor:ue.colorBgElevated,borderRadius:ue.borderRadiusLG,outline:"none",boxShadow:ue.boxShadowSecondary,[` ${Nt}${Ct}bottomLeft, ${xe}${Ct}bottomLeft `]:{animationName:be.fJ},[` ${Nt}${Ct}topLeft, ${xe}${Ct}topLeft, ${Nt}${Ct}topRight, ${xe}${Ct}topRight `]:{animationName:be.Qt},[`${de}${Ct}bottomLeft`]:{animationName:be.Uw},[` ${de}${Ct}topLeft, ${de}${Ct}topRight `]:{animationName:be.ly},"&-hidden":{display:"none"},[Ve]:Object.assign(Object.assign({},Ne(ue)),{cursor:"pointer",transition:`background ${ue.motionDurationSlow} ease`,borderRadius:ue.borderRadiusSM,"&-group":{color:ue.colorTextDescription,fontSize:ue.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ve}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${Ve}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${Ve}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${Ve}-option-selected`]:{backgroundColor:ue.colorBgContainerDisabled},color:ue.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ue.calc(ue.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ne(ue)),{color:ue.colorTextDisabled})}),[`${tn}:has(+ ${tn})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${tn}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,be.oN)(ue,"slide-up"),(0,be.oN)(ue,"slide-down"),(0,Pe.Fm)(ue,"move-up"),(0,Pe.Fm)(ue,"move-down")]},fe=ne(26743),tt=ne(36237);function Ee(ue,mt){const{componentCls:Be,inputPaddingHorizontalBase:Ve,borderRadius:Nt}=ue,xe=ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),de=mt?`${Be}-${mt}`:"";return{[`${Be}-single${de}`]:{fontSize:ue.fontSize,height:ue.controlHeight,[`${Be}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(ue,!0)),{display:"flex",borderRadius:Nt,flex:"1 1 auto",[`${Be}-selection-wrap:after`]:{lineHeight:(0,tt.unit)(xe)},[`${Be}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${Be}-selection-item, ${Be}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,tt.unit)(xe),transition:`all ${ue.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Be}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Be}-selection-item:empty:after`,`${Be}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Be}-show-arrow ${Be}-selection-item, &${Be}-show-arrow ${Be}-selection-search, &${Be}-show-arrow ${Be}-selection-placeholder `]:{paddingInlineEnd:ue.showArrowPaddingInlineEnd},[`&${Be}-open ${Be}-selection-item`]:{color:ue.colorTextPlaceholder},[`&:not(${Be}-customize-input)`]:{[`${Be}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,tt.unit)(Ve)}`,[`${Be}-selection-search-input`]:{height:xe,fontSize:ue.fontSize},"&:after":{lineHeight:(0,tt.unit)(xe)}}},[`&${Be}-customize-input`]:{[`${Be}-selector`]:{"&:after":{display:"none"},[`${Be}-selection-search`]:{position:"static",width:"100%"},[`${Be}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,tt.unit)(Ve)}`,"&:after":{display:"none"}}}}}}}function Ot(ue){const{componentCls:mt}=ue,Be=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[Ee(ue),Ee((0,et.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${mt}-single${mt}-sm`]:{[`&:not(${mt}-customize-input)`]:{[`${mt}-selector`]:{padding:`0 ${(0,tt.unit)(Be)}`},[`&${mt}-show-arrow ${mt}-selection-search`]:{insetInlineEnd:ue.calc(Be).add(ue.calc(ue.fontSize).mul(1.5)).equal()},[` &${mt}-show-arrow ${mt}-selection-item, &${mt}-show-arrow ${mt}-selection-placeholder `]:{paddingInlineEnd:ue.calc(ue.fontSize).mul(1.5).equal()}}}},Ee((0,et.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const Qe=ue=>{const{fontSize:mt,lineHeight:Be,lineWidth:Ve,controlHeight:Nt,controlHeightSM:xe,controlHeightLG:de,paddingXXS:Ct,controlPaddingHorizontal:tn,zIndexPopupBase:wt,colorText:me,fontWeightStrong:$e,controlItemBgActive:qe,controlItemBgHover:$t,colorBgContainer:Rt,colorFillSecondary:Yt,colorBgContainerDisabled:He,colorTextDisabled:Qt,colorPrimaryHover:St,colorPrimary:ae,controlOutline:te}=ue,ee=Ct*2,oe=Ve*2,se=Math.min(Nt-ee,Nt-oe),re=Math.min(xe-ee,xe-oe),pe=Math.min(de-ee,de-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ct/2),zIndexPopup:wt+50,optionSelectedColor:me,optionSelectedFontWeight:$e,optionSelectedBg:qe,optionActiveBg:$t,optionPadding:`${(Nt-mt*Be)/2}px ${tn}px`,optionFontSize:mt,optionLineHeight:Be,optionHeight:Nt,selectorBg:Rt,clearBg:Rt,singleItemHeightLG:de,multipleItemBg:Yt,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:re,multipleItemHeightLG:pe,multipleSelectorBgDisabled:He,multipleItemColorDisabled:Qt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ue.fontSize*1.25),hoverBorderColor:St,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:Ct}},ze=(ue,mt)=>{const{componentCls:Be,antCls:Ve,controlOutlineWidth:Nt}=ue;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${mt.borderColor}`,background:ue.selectorBg},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${Ve}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{borderColor:mt.hoverBorderHover},[`${Be}-focused& ${Be}-selector`]:{borderColor:mt.activeBorderColor,boxShadow:`0 0 0 ${(0,tt.unit)(Nt)} ${mt.activeOutlineColor}`,outline:0},[`${Be}-prefix`]:{color:mt.color}}}},Ke=(ue,mt)=>({[`&${ue.componentCls}-status-${mt.status}`]:Object.assign({},ze(ue,mt))}),ke=ue=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ze(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Ke(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Ke(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),ft=(ue,mt)=>{const{componentCls:Be,antCls:Ve}=ue;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{background:mt.bg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:mt.color},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${Ve}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{background:mt.hoverBg},[`${Be}-focused& ${Be}-selector`]:{background:ue.selectorBg,borderColor:mt.activeBorderColor,outline:0}}}},Et=(ue,mt)=>({[`&${ue.componentCls}-status-${mt.status}`]:Object.assign({},ft(ue,mt))}),Ht=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ft(ue,{bg:ue.colorFillTertiary,hoverBg:ue.colorFillSecondary,activeBorderColor:ue.activeBorderColor,color:ue.colorText})),Et(ue,{status:"error",bg:ue.colorErrorBg,hoverBg:ue.colorErrorBgHover,activeBorderColor:ue.colorError,color:ue.colorError})),Et(ue,{status:"warning",bg:ue.colorWarningBg,hoverBg:ue.colorWarningBgHover,activeBorderColor:ue.colorWarning,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{borderColor:ue.colorBorder,background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.colorBgContainer,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),It=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} transparent`},[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`},[`&${ue.componentCls}-status-error`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorError}},[`&${ue.componentCls}-status-warning`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorWarning}}}}),ut=(ue,mt)=>{const{componentCls:Be,antCls:Ve}=ue;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{borderWidth:`0 0 ${(0,tt.unit)(ue.lineWidth)} 0`,borderStyle:`none none ${ue.lineType} none`,borderColor:mt.borderColor,background:ue.selectorBg,borderRadius:0},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${Ve}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{borderColor:mt.hoverBorderHover},[`${Be}-focused& ${Be}-selector`]:{borderColor:mt.activeBorderColor,outline:0},[`${Be}-prefix`]:{color:mt.color}}}},lt=(ue,mt)=>({[`&${ue.componentCls}-status-${mt.status}`]:Object.assign({},ut(ue,mt))}),Ge=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},ut(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),lt(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),lt(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var bt=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ke(ue)),Ht(ue)),It(ue)),Ge(ue))});const ht=ue=>{const{componentCls:mt}=ue;return{position:"relative",transition:`all ${ue.motionDurationMid} ${ue.motionEaseInOut}`,input:{cursor:"pointer"},[`${mt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${mt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Lt=ue=>{const{componentCls:mt}=ue;return{[`${mt}-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"}}}},Le=ue=>{const{antCls:mt,componentCls:Be,inputPaddingHorizontalBase:Ve,iconCls:Nt}=ue;return{[Be]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Be}-customize-input) ${Be}-selector`]:Object.assign(Object.assign({},ht(ue)),Lt(ue)),[`${Be}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${mt}-typography`]:{display:"inline"}}),[`${Be}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:ue.colorTextPlaceholder,pointerEvents:"none"}),[`${Be}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ve,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ue.motionDurationSlow} ease`,[Nt]:{verticalAlign:"top",transition:`transform ${ue.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Be}-suffix)`]:{pointerEvents:"auto"}},[`${Be}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Be}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Be}-prefix`]:{flex:"none",marginInlineEnd:ue.selectAffixPadding},[`${Be}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ve,zIndex:1,display:"inline-block",width:ue.fontSizeIcon,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ue.motionDurationMid} ease, opacity ${ue.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ue.colorTextTertiary}},[`&:hover ${Be}-clear`]:{opacity:1,background:ue.colorBgBase,borderRadius:"50%"}}),[`${Be}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Be}-has-feedback`]:{[`${Be}-clear`]:{insetInlineEnd:ue.calc(Ve).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},_e=ue=>{const{componentCls:mt}=ue;return[{[mt]:{[`&${mt}-in-form-item`]:{width:"100%"}}},Le(ue),Ot(ue),(0,fe.ZP)(ue),Ie(ue),{[`${mt}-rtl`]:{direction:"rtl"}},(0,nt.c)(ue,{borderElCls:`${mt}-selector`,focusElCls:`${mt}-focused`})]};var Fe=(0,ve.I$)("Select",(ue,mt)=>{let{rootPrefixCls:Be}=mt;const Ve=(0,et.mergeToken)(ue,{rootPrefixCls:Be,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[_e(Ve),bt(Ve)]},Qe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(pn,Kt,ne){"use strict";ne.d(Kt,{_z:function(){return Pe},gp:function(){return et}});var z=ne(36237),nt=ne(63356),ve=ne(51636);const et=fe=>{const{multipleSelectItemHeight:tt,paddingXXS:Ee,lineWidth:Ot,INTERNAL_FIXED_ITEM_MARGIN:Qe}=fe,ze=fe.max(fe.calc(Ee).sub(Ot).equal(),0),Ke=fe.max(fe.calc(ze).sub(Qe).equal(),0);return{basePadding:ze,containerPadding:Ke,itemHeight:(0,z.unit)(tt),itemLineHeight:(0,z.unit)(fe.calc(tt).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},be=fe=>{const{multipleSelectItemHeight:tt,selectHeight:Ee,lineWidth:Ot}=fe;return fe.calc(Ee).sub(tt).div(2).sub(Ot).equal()},Pe=fe=>{const{componentCls:tt,iconCls:Ee,borderRadiusSM:Ot,motionDurationSlow:Qe,paddingXS:ze,multipleItemColorDisabled:Ke,multipleItemBorderColorDisabled:ke,colorIcon:ft,colorIconHover:Et,INTERNAL_FIXED_ITEM_MARGIN:Ht}=fe;return{[`${tt}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${tt}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Ht,borderRadius:Ot,cursor:"default",transition:`font-size ${Qe}, line-height ${Qe}, height ${Qe}`,marginInlineEnd:fe.calc(Ht).mul(2).equal(),paddingInlineStart:ze,paddingInlineEnd:fe.calc(ze).div(2).equal(),[`${tt}-disabled&`]:{color:Ke,borderColor:ke,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc(ze).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,nt.Ro)()),{display:"inline-flex",alignItems:"center",color:ft,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ee}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Et}})}}}},Ne=(fe,tt)=>{const{componentCls:Ee,INTERNAL_FIXED_ITEM_MARGIN:Ot}=fe,Qe=`${Ee}-selection-overflow`,ze=fe.multipleSelectItemHeight,Ke=be(fe),ke=tt?`${Ee}-${tt}`:"",ft=et(fe);return{[`${Ee}-multiple${ke}`]:Object.assign(Object.assign({},Pe(fe)),{[`${Ee}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ft.basePadding,paddingBlock:ft.containerPadding,borderRadius:fe.borderRadius,[`${Ee}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(Ot)} 0`,lineHeight:(0,z.unit)(ze),visibility:"hidden",content:'"\\a0"'}},[`${Ee}-selection-item`]:{height:ft.itemHeight,lineHeight:(0,z.unit)(ft.itemLineHeight)},[`${Ee}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(ze),marginBlock:Ot}},[`${Ee}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(ft.basePadding).equal()},[`${Qe}-item + ${Qe}-item, ${Ee}-prefix + ${Ee}-selection-wrap `]:{[`${Ee}-selection-search`]:{marginInlineStart:0},[`${Ee}-selection-placeholder`]:{insetInlineStart:0}},[`${Qe}-item-suffix`]:{minHeight:ft.itemHeight,marginBlock:Ot},[`${Ee}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Ke).equal(),"\n &-input,\n &-mirror\n ":{height:ze,fontFamily:fe.fontFamily,lineHeight:(0,z.unit)(ze),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"}},[`${Ee}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(ft.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function Je(fe,tt){const{componentCls:Ee}=fe,Ot=tt?`${Ee}-${tt}`:"",Qe={[`${Ee}-multiple${Ot}`]:{fontSize:fe.fontSize,[`${Ee}-selector`]:{[`${Ee}-show-search&`]:{cursor:"text"}},[` &${Ee}-show-arrow ${Ee}-selector, &${Ee}-allow-clear ${Ee}-selector `]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Ne(fe,tt),Qe]}const Ie=fe=>{const{componentCls:tt}=fe,Ee=(0,ve.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),Ot=(0,ve.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[Je(fe),Je(Ee,"sm"),{[`${tt}-multiple${tt}-sm`]:{[`${tt}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${tt}-selection-search`]:{marginInlineStart:2}}},Je(Ot,"lg")]};Kt.ZP=Ie},68525:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});var z=ne(59301),nt=ne(40001),ve=ne(19248),et=ne(99267),be=ne(84105),Pe=ne(58617),Ne=ne(47472);function Je(Ie){let{suffixIcon:fe,clearIcon:tt,menuItemSelectedIcon:Ee,removeIcon:Ot,loading:Qe,multiple:ze,hasFeedback:Ke,prefixCls:ke,showSuffixIcon:ft,feedbackIcon:Et,showArrow:Ht,componentName:It}=Ie;const ut=tt!=null?tt:z.createElement(ve.Z,null),lt=ht=>fe===null&&!Ke&&!Ht?null:z.createElement(z.Fragment,null,ft!==!1&&ht,Ke&&Et);let Ge=null;if(fe!==void 0)Ge=lt(fe);else if(Qe)Ge=lt(z.createElement(Pe.Z,{spin:!0}));else{const ht=`${ke}-suffix`;Ge=Lt=>{let{open:Le,showSearch:_e}=Lt;return lt(Le&&_e?z.createElement(Ne.Z,{className:ht}):z.createElement(be.Z,{className:ht}))}}let kt=null;Ee!==void 0?kt=Ee:ze?kt=z.createElement(nt.Z,null):kt=null;let bt=null;return Ot!==void 0?bt=Ot:bt=z.createElement(et.Z,null),{clearIcon:ut,suffixIcon:Ge,itemIcon:kt,removeIcon:bt}}},90005:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return z}});function z(nt,ve){return ve!==void 0?ve:nt!==null}},11938:function(pn,Kt,ne){"use strict";ne.d(Kt,{default:function(){return Lt}});var z=ne(59301),nt=ne(40192),ve=ne(22703),et=ne(92310),be=ne.n(et),Pe=ne(26112),Ne=ne(48755),Je=ne(458),fe=Le=>{const{value:_e,formatter:Fe,precision:ue,decimalSeparator:mt,groupSeparator:Be="",prefixCls:Ve}=Le;let Nt;if(typeof Fe=="function")Nt=Fe(_e);else{const xe=String(_e),de=xe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!de||xe==="-")Nt=xe;else{const Ct=de[1];let tn=de[2]||"0",wt=de[4]||"";tn=tn.replace(/\B(?=(\d{3})+(?!\d))/g,Be),typeof ue=="number"&&(wt=wt.padEnd(ue,"0").slice(0,ue>0?ue:0)),wt&&(wt=`${mt}${wt}`),Nt=[z.createElement("span",{key:"int",className:`${Ve}-content-value-int`},Ct,tn),wt&&z.createElement("span",{key:"decimal",className:`${Ve}-content-value-decimal`},wt)]}}return z.createElement("span",{className:`${Ve}-content-value`},Nt)},tt=ne(63356),Ee=ne(16931),Ot=ne(51636);const Qe=Le=>{const{componentCls:_e,marginXXS:Fe,padding:ue,colorTextDescription:mt,titleFontSize:Be,colorTextHeading:Ve,contentFontSize:Nt,fontFamily:xe}=Le;return{[_e]:Object.assign(Object.assign({},(0,tt.Wf)(Le)),{[`${_e}-title`]:{marginBottom:Fe,color:mt,fontSize:Be},[`${_e}-skeleton`]:{paddingTop:ue},[`${_e}-content`]:{color:Ve,fontSize:Nt,fontFamily:xe,[`${_e}-content-value`]:{display:"inline-block",direction:"ltr"},[`${_e}-content-prefix, ${_e}-content-suffix`]:{display:"inline-block"},[`${_e}-content-prefix`]:{marginInlineEnd:Fe},[`${_e}-content-suffix`]:{marginInlineStart:Fe}}})}},ze=Le=>{const{fontSizeHeading3:_e,fontSize:Fe}=Le;return{titleFontSize:Fe,contentFontSize:_e}};var Ke=(0,Ee.I$)("Statistic",Le=>{const _e=(0,Ot.mergeToken)(Le,{});return[Qe(_e)]},ze),ke=function(Le,_e){var Fe={};for(var ue in Le)Object.prototype.hasOwnProperty.call(Le,ue)&&_e.indexOf(ue)<0&&(Fe[ue]=Le[ue]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ue=Object.getOwnPropertySymbols(Le);mt{const{prefixCls:_e,className:Fe,rootClassName:ue,style:mt,valueStyle:Be,value:Ve=0,title:Nt,valueRender:xe,prefix:de,suffix:Ct,loading:tn=!1,formatter:wt,precision:me,decimalSeparator:$e=".",groupSeparator:qe=",",onMouseEnter:$t,onMouseLeave:Rt}=Le,Yt=ke(Le,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:He,direction:Qt,className:St,style:ae}=(0,Ne.dj)("statistic"),te=He("statistic",_e),[ee,oe,se]=Ke(te),re=z.createElement(fe,{decimalSeparator:$e,groupSeparator:qe,prefixCls:te,formatter:wt,precision:me,value:Ve}),pe=be()(te,{[`${te}-rtl`]:Qt==="rtl"},St,Fe,ue,oe,se),Ce=(0,Pe.Z)(Yt,{aria:!0,data:!0});return ee(z.createElement("div",Object.assign({},Ce,{className:pe,style:Object.assign(Object.assign({},ae),mt),onMouseEnter:$t,onMouseLeave:Rt}),Nt&&z.createElement("div",{className:`${te}-title`},Nt),z.createElement(Je.Z,{paragraph:!1,loading:tn,className:`${te}-skeleton`},z.createElement("div",{style:Be,className:`${te}-content`},de&&z.createElement("span",{className:`${te}-content-prefix`},de),xe?xe(re):re,Ct&&z.createElement("span",{className:`${te}-content-suffix`},Ct)))))};const Ht=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function It(Le,_e){let Fe=Le;const ue=/\[[^\]]*]/g,mt=(_e.match(ue)||[]).map(xe=>xe.slice(1,-1)),Be=_e.replace(ue,"[]"),Ve=Ht.reduce((xe,de)=>{let[Ct,tn]=de;if(xe.includes(Ct)){const wt=Math.floor(Fe/tn);return Fe-=wt*tn,xe.replace(new RegExp(`${Ct}+`,"g"),me=>{const $e=me.length;return wt.toString().padStart($e,"0")})}return xe},Be);let Nt=0;return Ve.replace(ue,()=>{const xe=mt[Nt];return Nt+=1,xe})}function ut(Le,_e){const{format:Fe=""}=_e,ue=new Date(Le).getTime(),mt=Date.now(),Be=Math.max(ue-mt,0);return It(Be,Fe)}var lt=function(Le,_e){var Fe={};for(var ue in Le)Object.prototype.hasOwnProperty.call(Le,ue)&&_e.indexOf(ue)<0&&(Fe[ue]=Le[ue]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ue=Object.getOwnPropertySymbols(Le);mt{const{value:_e,format:Fe="HH:mm:ss",onChange:ue,onFinish:mt}=Le,Be=lt(Le,["value","format","onChange","onFinish"]),Ve=(0,nt.Z)(),Nt=z.useRef(null),xe=()=>{mt==null||mt(),Nt.current&&(clearInterval(Nt.current),Nt.current=null)},de=()=>{const wt=kt(_e);wt>=Date.now()&&(Nt.current=setInterval(()=>{Ve(),ue==null||ue(wt-Date.now()),wt(de(),()=>{Nt.current&&(clearInterval(Nt.current),Nt.current=null)}),[_e]);const Ct=(wt,me)=>ut(wt,Object.assign(Object.assign({},me),{format:Fe})),tn=wt=>(0,ve.Tm)(wt,{title:void 0});return z.createElement(Et,Object.assign({},Be,{value:_e,valueRender:tn,formatter:Ct}))};var ht=z.memo(bt);Et.Countdown=ht;var Lt=Et},58755:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return mt}});var z=ne(59301),nt=ne(58617),ve=ne(92310),et=ne.n(ve),be=ne(54476),Pe=ne(20068),Ne=ne(42978),Je=ne(75931),Ie=ne(18929),fe=ne(10228),tt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ee=z.forwardRef(function(Be,Ve){var Nt,xe=Be.prefixCls,de=xe===void 0?"rc-switch":xe,Ct=Be.className,tn=Be.checked,wt=Be.defaultChecked,me=Be.disabled,$e=Be.loadingIcon,qe=Be.checkedChildren,$t=Be.unCheckedChildren,Rt=Be.onClick,Yt=Be.onChange,He=Be.onKeyDown,Qt=(0,Je.Z)(Be,tt),St=(0,Ie.Z)(!1,{value:tn,defaultValue:wt}),ae=(0,Ne.Z)(St,2),te=ae[0],ee=ae[1];function oe(Ce,gt){var Te=te;return me||(Te=Ce,ee(Te),Yt==null||Yt(Te,gt)),Te}function se(Ce){Ce.which===fe.Z.LEFT?oe(!1,Ce):Ce.which===fe.Z.RIGHT&&oe(!0,Ce),He==null||He(Ce)}function re(Ce){var gt=oe(!te,Ce);Rt==null||Rt(gt,Ce)}var pe=et()(de,Ct,(Nt={},(0,Pe.Z)(Nt,"".concat(de,"-checked"),te),(0,Pe.Z)(Nt,"".concat(de,"-disabled"),me),Nt));return z.createElement("button",(0,be.Z)({},Qt,{type:"button",role:"switch","aria-checked":te,disabled:me,className:pe,ref:Ve,onKeyDown:se,onClick:re}),$e,z.createElement("span",{className:"".concat(de,"-inner")},z.createElement("span",{className:"".concat(de,"-inner-checked")},qe),z.createElement("span",{className:"".concat(de,"-inner-unchecked")},$t)))});Ee.displayName="Switch";var Ot=Ee,Qe=ne(12919),ze=ne(48755),Ke=ne(2171),ke=ne(31756),ft=ne(36237),Et=ne(17835),Ht=ne(63356),It=ne(16931),ut=ne(51636);const lt=Be=>{const{componentCls:Ve,trackHeightSM:Nt,trackPadding:xe,trackMinWidthSM:de,innerMinMarginSM:Ct,innerMaxMarginSM:tn,handleSizeSM:wt,calc:me}=Be,$e=`${Ve}-inner`,qe=(0,ft.unit)(me(wt).add(me(xe).mul(2)).equal()),$t=(0,ft.unit)(me(tn).mul(2).equal());return{[Ve]:{[`&${Ve}-small`]:{minWidth:de,height:Nt,lineHeight:(0,ft.unit)(Nt),[`${Ve}-inner`]:{paddingInlineStart:tn,paddingInlineEnd:Ct,[`${$e}-checked, ${$e}-unchecked`]:{minHeight:Nt},[`${$e}-checked`]:{marginInlineStart:`calc(-100% + ${qe} - ${$t})`,marginInlineEnd:`calc(100% - ${qe} + ${$t})`},[`${$e}-unchecked`]:{marginTop:me(Nt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Ve}-handle`]:{width:wt,height:wt},[`${Ve}-loading-icon`]:{top:me(me(wt).sub(Be.switchLoadingIconSize)).div(2).equal(),fontSize:Be.switchLoadingIconSize},[`&${Ve}-checked`]:{[`${Ve}-inner`]:{paddingInlineStart:Ct,paddingInlineEnd:tn,[`${$e}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${$e}-unchecked`]:{marginInlineStart:`calc(100% - ${qe} + ${$t})`,marginInlineEnd:`calc(-100% + ${qe} - ${$t})`}},[`${Ve}-handle`]:{insetInlineStart:`calc(100% - ${(0,ft.unit)(me(wt).add(xe).equal())})`}},[`&:not(${Ve}-disabled):active`]:{[`&:not(${Ve}-checked) ${$e}`]:{[`${$e}-unchecked`]:{marginInlineStart:me(Be.marginXXS).div(2).equal(),marginInlineEnd:me(Be.marginXXS).mul(-1).div(2).equal()}},[`&${Ve}-checked ${$e}`]:{[`${$e}-checked`]:{marginInlineStart:me(Be.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:me(Be.marginXXS).div(2).equal()}}}}}}},Ge=Be=>{const{componentCls:Ve,handleSize:Nt,calc:xe}=Be;return{[Ve]:{[`${Ve}-loading-icon${Be.iconCls}`]:{position:"relative",top:xe(xe(Nt).sub(Be.fontSize)).div(2).equal(),color:Be.switchLoadingIconColor,verticalAlign:"top"},[`&${Ve}-checked ${Ve}-loading-icon`]:{color:Be.switchColor}}}},kt=Be=>{const{componentCls:Ve,trackPadding:Nt,handleBg:xe,handleShadow:de,handleSize:Ct,calc:tn}=Be,wt=`${Ve}-handle`;return{[Ve]:{[wt]:{position:"absolute",top:Nt,insetInlineStart:Nt,width:Ct,height:Ct,transition:`all ${Be.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:xe,borderRadius:tn(Ct).div(2).equal(),boxShadow:de,transition:`all ${Be.switchDuration} ease-in-out`,content:'""'}},[`&${Ve}-checked ${wt}`]:{insetInlineStart:`calc(100% - ${(0,ft.unit)(tn(Ct).add(Nt).equal())})`},[`&:not(${Ve}-disabled):active`]:{[`${wt}::before`]:{insetInlineEnd:Be.switchHandleActiveInset,insetInlineStart:0},[`&${Ve}-checked ${wt}::before`]:{insetInlineEnd:0,insetInlineStart:Be.switchHandleActiveInset}}}}},bt=Be=>{const{componentCls:Ve,trackHeight:Nt,trackPadding:xe,innerMinMargin:de,innerMaxMargin:Ct,handleSize:tn,calc:wt}=Be,me=`${Ve}-inner`,$e=(0,ft.unit)(wt(tn).add(wt(xe).mul(2)).equal()),qe=(0,ft.unit)(wt(Ct).mul(2).equal());return{[Ve]:{[me]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ct,paddingInlineEnd:de,transition:`padding-inline-start ${Be.switchDuration} ease-in-out, padding-inline-end ${Be.switchDuration} ease-in-out`,[`${me}-checked, ${me}-unchecked`]:{display:"block",color:Be.colorTextLightSolid,fontSize:Be.fontSizeSM,transition:`margin-inline-start ${Be.switchDuration} ease-in-out, margin-inline-end ${Be.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Nt},[`${me}-checked`]:{marginInlineStart:`calc(-100% + ${$e} - ${qe})`,marginInlineEnd:`calc(100% - ${$e} + ${qe})`},[`${me}-unchecked`]:{marginTop:wt(Nt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Ve}-checked ${me}`]:{paddingInlineStart:de,paddingInlineEnd:Ct,[`${me}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${me}-unchecked`]:{marginInlineStart:`calc(100% - ${$e} + ${qe})`,marginInlineEnd:`calc(-100% + ${$e} - ${qe})`}},[`&:not(${Ve}-disabled):active`]:{[`&:not(${Ve}-checked) ${me}`]:{[`${me}-unchecked`]:{marginInlineStart:wt(xe).mul(2).equal(),marginInlineEnd:wt(xe).mul(-1).mul(2).equal()}},[`&${Ve}-checked ${me}`]:{[`${me}-checked`]:{marginInlineStart:wt(xe).mul(-1).mul(2).equal(),marginInlineEnd:wt(xe).mul(2).equal()}}}}}},ht=Be=>{const{componentCls:Ve,trackHeight:Nt,trackMinWidth:xe}=Be;return{[Ve]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ht.Wf)(Be)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:xe,height:Nt,lineHeight:(0,ft.unit)(Nt),verticalAlign:"middle",background:Be.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Be.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ve}-disabled)`]:{background:Be.colorTextTertiary}}),(0,Ht.Qy)(Be)),{[`&${Ve}-checked`]:{background:Be.switchColor,[`&:hover:not(${Ve}-disabled)`]:{background:Be.colorPrimaryHover}},[`&${Ve}-loading, &${Ve}-disabled`]:{cursor:"not-allowed",opacity:Be.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ve}-rtl`]:{direction:"rtl"}})}},Lt=Be=>{const{fontSize:Ve,lineHeight:Nt,controlHeight:xe,colorWhite:de}=Be,Ct=Ve*Nt,tn=xe/2,wt=2,me=Ct-wt*2,$e=tn-wt*2;return{trackHeight:Ct,trackHeightSM:tn,trackMinWidth:me*2+wt*4,trackMinWidthSM:$e*2+wt*2,trackPadding:wt,handleBg:de,handleSize:me,handleSizeSM:$e,handleShadow:`0 2px 4px 0 ${new Et.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:me/2,innerMaxMargin:me+wt+wt*2,innerMinMarginSM:$e/2,innerMaxMarginSM:$e+wt+wt*2}};var Le=(0,It.I$)("Switch",Be=>{const Ve=(0,ut.mergeToken)(Be,{switchDuration:Be.motionDurationMid,switchColor:Be.colorPrimary,switchDisabledOpacity:Be.opacityLoading,switchLoadingIconSize:Be.calc(Be.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Be.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ht(Ve),bt(Ve),kt(Ve),Ge(Ve),lt(Ve)]},Lt),_e=function(Be,Ve){var Nt={};for(var xe in Be)Object.prototype.hasOwnProperty.call(Be,xe)&&Ve.indexOf(xe)<0&&(Nt[xe]=Be[xe]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,xe=Object.getOwnPropertySymbols(Be);de{const{prefixCls:Nt,size:xe,disabled:de,loading:Ct,className:tn,rootClassName:wt,style:me,checked:$e,value:qe,defaultChecked:$t,defaultValue:Rt,onChange:Yt}=Be,He=_e(Be,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Qt,St]=(0,Ie.Z)(!1,{value:$e!=null?$e:qe,defaultValue:$t!=null?$t:Rt}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(ze.E_),oe=z.useContext(Ke.Z),se=(de!=null?de:oe)||Ct,re=ae("switch",Nt),pe=z.createElement("div",{className:`${re}-handle`},Ct&&z.createElement(nt.Z,{className:`${re}-loading-icon`})),[Ce,gt,Te]=Le(re),it=(0,ke.Z)(xe),vt=et()(ee==null?void 0:ee.className,{[`${re}-small`]:it==="small",[`${re}-loading`]:Ct,[`${re}-rtl`]:te==="rtl"},tn,wt,gt,Te),Bt=Object.assign(Object.assign({},ee==null?void 0:ee.style),me),Mt=function(){St(arguments.length<=0?void 0:arguments[0]),Yt==null||Yt.apply(void 0,arguments)};return Ce(z.createElement(Qe.Z,{component:"Switch"},z.createElement(Ot,Object.assign({},He,{checked:Qt,onChange:Mt,prefixCls:re,className:vt,style:Bt,disabled:se,ref:Ve,loadingIcon:pe}))))});ue.__ANT_SWITCH=!0;var mt=ue},96599:function(pn,Kt,ne){"use strict";ne.d(Kt,{default:function(){return Fe}});var z=ne(59301),nt=ne(92310),ve=ne.n(nt),et=ne(2738),be=ne(29509),Pe=ne(78776),Ne=ne(22703),Je=ne(12919),Ie=ne(48755),fe=ne(36237),tt=ne(17835),Ee=ne(63356),Ot=ne(51636),Qe=ne(16931);const ze=ue=>{const{paddingXXS:mt,lineWidth:Be,tagPaddingHorizontal:Ve,componentCls:Nt,calc:xe}=ue,de=xe(Ve).sub(Be).equal(),Ct=xe(mt).sub(Be).equal();return{[Nt]:Object.assign(Object.assign({},(0,Ee.Wf)(ue)),{display:"inline-block",height:"auto",marginInlineEnd:ue.marginXS,paddingInline:de,fontSize:ue.tagFontSize,lineHeight:ue.tagLineHeight,whiteSpace:"nowrap",background:ue.defaultBg,border:`${(0,fe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusSM,opacity:1,transition:`all ${ue.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Nt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ue.defaultColor},[`${Nt}-close-icon`]:{marginInlineStart:Ct,fontSize:ue.tagIconSize,color:ue.colorTextDescription,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,"&:hover":{color:ue.colorTextHeading}},[`&${Nt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ue.iconCls}-close, ${ue.iconCls}-close:hover`]:{color:ue.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Nt}-checkable-checked):hover`]:{color:ue.colorPrimary,backgroundColor:ue.colorFillSecondary},"&:active, &-checked":{color:ue.colorTextLightSolid},"&-checked":{backgroundColor:ue.colorPrimary,"&:hover":{backgroundColor:ue.colorPrimaryHover}},"&:active":{backgroundColor:ue.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ue.iconCls} + span, > span + ${ue.iconCls}`]:{marginInlineStart:de}}),[`${Nt}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},Ke=ue=>{const{lineWidth:mt,fontSizeIcon:Be,calc:Ve}=ue,Nt=ue.fontSizeSM;return(0,Ot.mergeToken)(ue,{tagFontSize:Nt,tagLineHeight:(0,fe.unit)(Ve(ue.lineHeightSM).mul(Nt).equal()),tagIconSize:Ve(Be).sub(Ve(mt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},ke=ue=>({defaultBg:new tt.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var ft=(0,Qe.I$)("Tag",ue=>{const mt=Ke(ue);return ze(mt)},ke),Et=function(ue,mt){var Be={};for(var Ve in ue)Object.prototype.hasOwnProperty.call(ue,Ve)&&mt.indexOf(Ve)<0&&(Be[Ve]=ue[Ve]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Ve=Object.getOwnPropertySymbols(ue);Nt{const{prefixCls:Be,style:Ve,className:Nt,checked:xe,onChange:de,onClick:Ct}=ue,tn=Et(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:wt,tag:me}=z.useContext(Ie.E_),$e=Qt=>{de==null||de(!xe),Ct==null||Ct(Qt)},qe=wt("tag",Be),[$t,Rt,Yt]=ft(qe),He=ve()(qe,`${qe}-checkable`,{[`${qe}-checkable-checked`]:xe},me==null?void 0:me.className,Nt,Rt,Yt);return $t(z.createElement("span",Object.assign({},tn,{ref:mt,style:Object.assign(Object.assign({},Ve),me==null?void 0:me.style),className:He,onClick:$e})))}),ut=ne(93427);const lt=ue=>(0,ut.Z)(ue,(mt,Be)=>{let{textColor:Ve,lightBorderColor:Nt,lightColor:xe,darkColor:de}=Be;return{[`${ue.componentCls}${ue.componentCls}-${mt}`]:{color:Ve,background:xe,borderColor:Nt,"&-inverse":{color:ue.colorTextLightSolid,background:de,borderColor:de},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ge=(0,Qe.bk)(["Tag","preset"],ue=>{const mt=Ke(ue);return lt(mt)},ke);function kt(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const bt=(ue,mt,Be)=>{const Ve=kt(Be);return{[`${ue.componentCls}${ue.componentCls}-${mt}`]:{color:ue[`color${Be}`],background:ue[`color${Ve}Bg`],borderColor:ue[`color${Ve}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ht=(0,Qe.bk)(["Tag","status"],ue=>{const mt=Ke(ue);return[bt(mt,"success","Success"),bt(mt,"processing","Info"),bt(mt,"error","Error"),bt(mt,"warning","Warning")]},ke),Lt=function(ue,mt){var Be={};for(var Ve in ue)Object.prototype.hasOwnProperty.call(ue,Ve)&&mt.indexOf(Ve)<0&&(Be[Ve]=ue[Ve]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Ve=Object.getOwnPropertySymbols(ue);Nt{const{prefixCls:Be,className:Ve,rootClassName:Nt,style:xe,children:de,icon:Ct,color:tn,onClose:wt,bordered:me=!0,visible:$e}=ue,qe=Lt(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:$t,direction:Rt,tag:Yt}=z.useContext(Ie.E_),[He,Qt]=z.useState(!0),St=(0,et.Z)(qe,["closeIcon","closable"]);z.useEffect(()=>{$e!==void 0&&Qt($e)},[$e]);const ae=(0,be.o2)(tn),te=(0,be.yT)(tn),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:tn&&!ee?tn:void 0},Yt==null?void 0:Yt.style),xe),se=$t("tag",Be),[re,pe,Ce]=ft(se),gt=ve()(se,Yt==null?void 0:Yt.className,{[`${se}-${tn}`]:ee,[`${se}-has-color`]:tn&&!ee,[`${se}-hidden`]:!He,[`${se}-rtl`]:Rt==="rtl",[`${se}-borderless`]:!me},Ve,Nt,pe,Ce),Te=Me=>{Me.stopPropagation(),wt==null||wt(Me),!Me.defaultPrevented&&Qt(!1)},[,it]=(0,Pe.Z)((0,Pe.w)(ue),(0,Pe.w)(Yt),{closable:!1,closeIconRender:Me=>{const Zt=z.createElement("span",{className:`${se}-close-icon`,onClick:Te},Me);return(0,Ne.wm)(Me,Zt,Wt=>({onClick:en=>{var un;(un=Wt==null?void 0:Wt.onClick)===null||un===void 0||un.call(Wt,en),Te(en)},className:ve()(Wt==null?void 0:Wt.className,`${se}-close-icon`)}))}}),vt=typeof qe.onClick=="function"||de&&de.type==="a",Bt=Ct||null,Mt=Bt?z.createElement(z.Fragment,null,Bt,de&&z.createElement("span",null,de)):de,we=z.createElement("span",Object.assign({},St,{ref:mt,className:gt,style:oe}),Mt,it,ae&&z.createElement(Ge,{key:"preset",prefixCls:se}),te&&z.createElement(ht,{key:"status",prefixCls:se}));return re(vt?z.createElement(Je.Z,{component:"Tag"},we):we)});_e.CheckableTag=It;var Fe=_e},94968:function(pn,Kt,ne){"use strict";ne.d(Kt,{default:function(){return We}});var z=ne(59301),nt=ne(94480),ve=ne(4676),et=ne(92310),be=ne.n(et),Pe=ne(54476),Ne=ne(67732),Je=ne(83652),Ie=ne(31226),fe=ne(42403),tt=ne(158),Ee=ne(20068),Ot=ne(33885),Qe=ne(75931),ze=ne(76190),Ke=ne(75044),ke=ne(3202),ft=ne(26112),Et=ne(48736),Ht=function(ge,ot){if(ge&&ot){var ct=Array.isArray(ot)?ot:ot.split(","),xt=ge.name||"",Ue=ge.type||"",Ze=Ue.replace(/\/.*$/,"");return ct.some(function(Ye){var dt=Ye.trim();if(/^\*(\/\*)?$/.test(Ye))return!0;if(dt.charAt(0)==="."){var cn=xt.toLowerCase(),sn=dt.toLowerCase(),hn=[sn];return(sn===".jpg"||sn===".jpeg")&&(hn=[".jpg",".jpeg"]),hn.some(function($n){return cn.endsWith($n)})}return/\/\*$/.test(dt)?Ze===dt.replace(/\/.*$/,""):Ue===dt?!0:/^\w+$/.test(dt)?((0,Et.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(dt,"'.Skip for check.")),!0):!1})}return!0};function It(ge,ot){var ct="cannot ".concat(ge.method," ").concat(ge.action," ").concat(ot.status,"'"),xt=new Error(ct);return xt.status=ot.status,xt.method=ge.method,xt.url=ge.action,xt}function ut(ge){var ot=ge.responseText||ge.response;if(!ot)return ot;try{return JSON.parse(ot)}catch(ct){return ot}}function lt(ge){var ot=new XMLHttpRequest;ge.onProgress&&ot.upload&&(ot.upload.onprogress=function(Ze){Ze.total>0&&(Ze.percent=Ze.loaded/Ze.total*100),ge.onProgress(Ze)});var ct=new FormData;ge.data&&Object.keys(ge.data).forEach(function(Ue){var Ze=ge.data[Ue];if(Array.isArray(Ze)){Ze.forEach(function(Ye){ct.append("".concat(Ue,"[]"),Ye)});return}ct.append(Ue,Ze)}),ge.file instanceof Blob?ct.append(ge.filename,ge.file,ge.file.name):ct.append(ge.filename,ge.file),ot.onerror=function(Ze){ge.onError(Ze)},ot.onload=function(){return ot.status<200||ot.status>=300?ge.onError(It(ge,ot),ut(ot)):ge.onSuccess(ut(ot),ot)},ot.open(ge.method,ge.action,!0),ge.withCredentials&&"withCredentials"in ot&&(ot.withCredentials=!0);var xt=ge.headers||{};return xt["X-Requested-With"]!==null&&ot.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(xt).forEach(function(Ue){xt[Ue]!==null&&ot.setRequestHeader(Ue,xt[Ue])}),ot.send(ct),{abort:function(){ot.abort()}}}var Ge=function(){var ge=(0,ke.Z)((0,Ke.Z)().mark(function ot(ct,xt){var Ue,Ze,Ye,dt,cn,sn,hn,$n;return(0,Ke.Z)().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:sn=function(){return sn=(0,ke.Z)((0,Ke.Z)().mark(function Ln(Rn){return(0,Ke.Z)().wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return tr.abrupt("return",new Promise(function(Yn){Rn.file(function(Jn){xt(Jn)?(Rn.fullPath&&!Jn.webkitRelativePath&&(Object.defineProperties(Jn,{webkitRelativePath:{writable:!0}}),Jn.webkitRelativePath=Rn.fullPath.replace(/^\//,""),Object.defineProperties(Jn,{webkitRelativePath:{writable:!1}})),Yn(Jn)):Yn(null)})}));case 1:case"end":return tr.stop()}},Ln)})),sn.apply(this,arguments)},cn=function(Ln){return sn.apply(this,arguments)},dt=function(){return dt=(0,ke.Z)((0,Ke.Z)().mark(function Ln(Rn){var _n,tr,Yn,Jn,An;return(0,Ke.Z)().wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:_n=Rn.createReader(),tr=[];case 2:return Un.next=5,new Promise(function(dr){_n.readEntries(dr,function(){return dr([])})});case 5:if(Yn=Un.sent,Jn=Yn.length,Jn){Un.next=9;break}return Un.abrupt("break",12);case 9:for(An=0;An{const{componentCls:ot,iconCls:ct}=ge;return{[`${ot}-wrapper`]:{[`${ot}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ge.colorFillAlter,border:`${(0,$t.unit)(ge.lineWidth)} dashed ${ge.colorBorder}`,borderRadius:ge.borderRadiusLG,cursor:"pointer",transition:`border-color ${ge.motionDurationSlow}`,[ot]:{padding:ge.padding},[`${ot}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:ge.borderRadiusLG,"&:focus-visible":{outline:`${(0,$t.unit)(ge.lineWidthFocus)} solid ${ge.colorPrimaryBorder}`}},[`${ot}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${ot}-disabled):hover, &-hover:not(${ot}-disabled) `]:{borderColor:ge.colorPrimaryHover},[`p${ot}-drag-icon`]:{marginBottom:ge.margin,[ct]:{color:ge.colorPrimary,fontSize:ge.uploadThumbnailSize}},[`p${ot}-text`]:{margin:`0 0 ${(0,$t.unit)(ge.marginXXS)}`,color:ge.colorTextHeading,fontSize:ge.fontSizeLG},[`p${ot}-hint`]:{color:ge.colorTextDescription,fontSize:ge.fontSize},[`&${ot}-disabled`]:{[`p${ot}-drag-icon ${ct}, p${ot}-text, p${ot}-hint `]:{color:ge.colorTextDisabled}}}}}},Qt=ge=>{const{componentCls:ot,iconCls:ct,fontSize:xt,lineHeight:Ue,calc:Ze}=ge,Ye=`${ot}-list-item`,dt=`${Ye}-actions`,cn=`${Ye}-action`;return{[`${ot}-wrapper`]:{[`${ot}-list`]:Object.assign(Object.assign({},(0,wt.dF)()),{lineHeight:ge.lineHeight,[Ye]:{position:"relative",height:Ze(ge.lineHeight).mul(xt).equal(),marginTop:ge.marginXS,fontSize:xt,display:"flex",alignItems:"center",transition:`background-color ${ge.motionDurationSlow}`,borderRadius:ge.borderRadiusSM,"&:hover":{backgroundColor:ge.controlItemBgHover},[`${Ye}-name`]:Object.assign(Object.assign({},wt.vS),{padding:`0 ${(0,$t.unit)(ge.paddingXS)}`,lineHeight:Ue,flex:"auto",transition:`all ${ge.motionDurationSlow}`}),[dt]:{whiteSpace:"nowrap",[cn]:{opacity:0},[ct]:{color:ge.actionsColor,transition:`all ${ge.motionDurationSlow}`},[` ${cn}:focus-visible, &.picture ${cn} `]:{opacity:1}},[`${ot}-icon ${ct}`]:{color:ge.colorTextDescription,fontSize:xt},[`${Ye}-progress`]:{position:"absolute",bottom:ge.calc(ge.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Ze(xt).add(ge.paddingXS).equal(),fontSize:xt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ye}:hover ${cn}`]:{opacity:1},[`${Ye}-error`]:{color:ge.colorError,[`${Ye}-name, ${ot}-icon ${ct}`]:{color:ge.colorError},[dt]:{[`${ct}, ${ct}:hover`]:{color:ge.colorError},[cn]:{opacity:1}}},[`${ot}-list-item-container`]:{transition:`opacity ${ge.motionDurationSlow}, height ${ge.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},St=ne(99495),te=ge=>{const{componentCls:ot}=ge,ct=new $t.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:ge.calc(ge.marginXS).div(-2).equal()}}),xt=new $t.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:ge.calc(ge.marginXS).div(-2).equal()}}),Ue=`${ot}-animate-inline`;return[{[`${ot}-wrapper`]:{[`${Ue}-appear, ${Ue}-enter, ${Ue}-leave`]:{animationDuration:ge.motionDurationSlow,animationTimingFunction:ge.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ue}-appear, ${Ue}-enter`]:{animationName:ct},[`${Ue}-leave`]:{animationName:xt}}},{[`${ot}-wrapper`]:(0,St.J$)(ge)},ct,xt]},ee=ne(68361);const oe=ge=>{const{componentCls:ot,iconCls:ct,uploadThumbnailSize:xt,uploadProgressOffset:Ue,calc:Ze}=ge,Ye=`${ot}-list`,dt=`${Ye}-item`;return{[`${ot}-wrapper`]:{[` ${Ye}${Ye}-picture, ${Ye}${Ye}-picture-card, ${Ye}${Ye}-picture-circle `]:{[dt]:{position:"relative",height:Ze(xt).add(Ze(ge.lineWidth).mul(2)).add(Ze(ge.paddingXS).mul(2)).equal(),padding:ge.paddingXS,border:`${(0,$t.unit)(ge.lineWidth)} ${ge.lineType} ${ge.colorBorder}`,borderRadius:ge.borderRadiusLG,"&:hover":{background:"transparent"},[`${dt}-thumbnail`]:Object.assign(Object.assign({},wt.vS),{width:xt,height:xt,lineHeight:(0,$t.unit)(Ze(xt).add(ge.paddingSM).equal()),textAlign:"center",flex:"none",[ct]:{fontSize:ge.fontSizeHeading2,color:ge.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${dt}-progress`]:{bottom:Ue,width:`calc(100% - ${(0,$t.unit)(Ze(ge.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Ze(xt).add(ge.paddingXS).equal()}},[`${dt}-error`]:{borderColor:ge.colorError,[`${dt}-thumbnail ${ct}`]:{[`svg path[fill='${ee.blue[0]}']`]:{fill:ge.colorErrorBg},[`svg path[fill='${ee.blue.primary}']`]:{fill:ge.colorError}}},[`${dt}-uploading`]:{borderStyle:"dashed",[`${dt}-name`]:{marginBottom:Ue}}},[`${Ye}${Ye}-picture-circle ${dt}`]:{[`&, &::before, ${dt}-thumbnail`]:{borderRadius:"50%"}}}}},se=ge=>{const{componentCls:ot,iconCls:ct,fontSizeLG:xt,colorTextLightSolid:Ue,calc:Ze}=ge,Ye=`${ot}-list`,dt=`${Ye}-item`,cn=ge.uploadPicCardSize;return{[` ${ot}-wrapper${ot}-picture-card-wrapper, ${ot}-wrapper${ot}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,wt.dF)()),{display:"block",[`${ot}${ot}-select`]:{width:cn,height:cn,textAlign:"center",verticalAlign:"top",backgroundColor:ge.colorFillAlter,border:`${(0,$t.unit)(ge.lineWidth)} dashed ${ge.colorBorder}`,borderRadius:ge.borderRadiusLG,cursor:"pointer",transition:`border-color ${ge.motionDurationSlow}`,[`> ${ot}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ot}-disabled):hover`]:{borderColor:ge.colorPrimary}},[`${Ye}${Ye}-picture-card, ${Ye}${Ye}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:ge.marginXS,marginInlineEnd:ge.marginXS}},"@supports (gap: 1px)":{gap:ge.marginXS},[`${Ye}-item-container`]:{display:"inline-block",width:cn,height:cn,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[dt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,$t.unit)(Ze(ge.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,$t.unit)(Ze(ge.paddingXS).mul(2).equal())})`,backgroundColor:ge.colorBgMask,opacity:0,transition:`all ${ge.motionDurationSlow}`,content:'" "'}},[`${dt}:hover`]:{[`&::before, ${dt}-actions`]:{opacity:1}},[`${dt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ge.motionDurationSlow}`,[` ${ct}-eye, ${ct}-download, ${ct}-delete `]:{zIndex:10,width:xt,margin:`0 ${(0,$t.unit)(ge.marginXXS)}`,fontSize:xt,cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,color:Ue,"&:hover":{color:Ue},svg:{verticalAlign:"baseline"}}},[`${dt}-thumbnail, ${dt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${dt}-name`]:{display:"none",textAlign:"center"},[`${dt}-file + ${dt}-name`]:{position:"absolute",bottom:ge.margin,display:"block",width:`calc(100% - ${(0,$t.unit)(Ze(ge.paddingXS).mul(2).equal())})`},[`${dt}-uploading`]:{[`&${dt}`]:{backgroundColor:ge.colorFillAlter},[`&::before, ${ct}-eye, ${ct}-download, ${ct}-delete`]:{display:"none"}},[`${dt}-progress`]:{bottom:ge.marginXL,width:`calc(100% - ${(0,$t.unit)(Ze(ge.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${ot}-wrapper${ot}-picture-circle-wrapper`]:{[`${ot}${ot}-select`]:{borderRadius:"50%"}}}};var pe=ge=>{const{componentCls:ot}=ge;return{[`${ot}-rtl`]:{direction:"rtl"}}};const Ce=ge=>{const{componentCls:ot,colorTextDisabled:ct}=ge;return{[`${ot}-wrapper`]:Object.assign(Object.assign({},(0,wt.Wf)(ge)),{[ot]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ot}-select`]:{display:"inline-block"},[`${ot}-hidden`]:{display:"none"},[`${ot}-disabled`]:{color:ct,cursor:"not-allowed"}})}},gt=ge=>({actionsColor:ge.colorTextDescription});var Te=(0,$e.I$)("Upload",ge=>{const{fontSizeHeading3:ot,fontHeight:ct,lineWidth:xt,controlHeightLG:Ue,calc:Ze}=ge,Ye=(0,qe.mergeToken)(ge,{uploadThumbnailSize:Ze(ot).mul(2).equal(),uploadProgressOffset:Ze(Ze(ct).div(2)).add(xt).equal(),uploadPicCardSize:Ze(Ue).mul(2.55).equal()});return[Ce(Ye),Yt(Ye),oe(Ye),se(Ye),Qt(Ye),te(Ye),pe(Ye),(0,me.Z)(Ye)]},gt),it={icon:function(ot,ct){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ct}},{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:ot}}]}},name:"file",theme:"twotone"},vt=it,Bt=ne(7657),Mt=function(ot,ct){return z.createElement(Bt.Z,(0,Pe.Z)({},ot,{ref:ct,icon:vt}))},we=z.forwardRef(Mt),Me=we,Zt=ne(58617),Wt={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"},en=Wt,un=function(ot,ct){return z.createElement(Bt.Z,(0,Pe.Z)({},ot,{ref:ct,icon:en}))},Tt=z.forwardRef(un),an=Tt,Gt={icon:function(ot,ct){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:ot}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ct}},{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:ct}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ct}},{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:ot}}]}},name:"picture",theme:"twotone"},Ae=Gt,st=function(ot,ct){return z.createElement(Bt.Z,(0,Pe.Z)({},ot,{ref:ct,icon:Ae}))},At=z.forwardRef(st),_t=At,De=ne(77900),Xe=ne(2738),pt=ne(40192),Dt=ne(86641),Xt=ne(22703),fn=ne(7939);function Dn(ge){return Object.assign(Object.assign({},ge),{lastModified:ge.lastModified,lastModifiedDate:ge.lastModifiedDate,name:ge.name,size:ge.size,type:ge.type,uid:ge.uid,percent:0,originFileObj:ge})}function Mn(ge,ot){const ct=(0,nt.Z)(ot),xt=ct.findIndex(Ue=>{let{uid:Ze}=Ue;return Ze===ge.uid});return xt===-1?ct.push(ge):ct[xt]=ge,ct}function rn(ge,ot){const ct=ge.uid!==void 0?"uid":"name";return ot.filter(xt=>xt[ct]===ge[ct])[0]}function bn(ge,ot){const ct=ge.uid!==void 0?"uid":"name",xt=ot.filter(Ue=>Ue[ct]!==ge[ct]);return xt.length===ot.length?null:xt}const vn=function(){const ot=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),xt=ot[ot.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(xt)||[""])[0]},Ut=ge=>ge.indexOf("image/")===0,zt=ge=>{if(ge.type&&!ge.thumbUrl)return Ut(ge.type);const ot=ge.thumbUrl||ge.url||"",ct=vn(ot);return/^data:image\//.test(ot)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ct)?!0:!(/^data:/.test(ot)||ct)},Ft=200;function Pt(ge){return new Promise(ot=>{if(!ge.type||!Ut(ge.type)){ot("");return}const ct=document.createElement("canvas");ct.width=Ft,ct.height=Ft,ct.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ft}px; height: ${Ft}px; z-index: 9999; display: none;`,document.body.appendChild(ct);const xt=ct.getContext("2d"),Ue=new Image;if(Ue.onload=()=>{const{width:Ze,height:Ye}=Ue;let dt=Ft,cn=Ft,sn=0,hn=0;Ze>Ye?(cn=Ye*(Ft/Ze),hn=-(cn-dt)/2):(dt=Ze*(Ft/Ye),sn=-(dt-cn)/2),xt.drawImage(Ue,sn,hn,dt,cn);const $n=ct.toDataURL();document.body.removeChild(ct),window.URL.revokeObjectURL(Ue.src),ot($n)},Ue.crossOrigin="anonymous",ge.type.startsWith("image/svg+xml")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&typeof Ze.result=="string"&&(Ue.src=Ze.result)},Ze.readAsDataURL(ge)}else if(ge.type.startsWith("image/gif")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&ot(Ze.result)},Ze.readAsDataURL(ge)}else Ue.src=window.URL.createObjectURL(ge)})}var nn=ne(26227),Jt=ne(41464),ln=ne(15277),En=ne(89787),On=ne(25399),Nn=z.forwardRef((ge,ot)=>{let{prefixCls:ct,className:xt,style:Ue,locale:Ze,listType:Ye,file:dt,items:cn,progress:sn,iconRender:hn,actionIconRender:$n,itemRender:jn,isImgUrl:Gn,showPreviewIcon:kn,showRemoveIcon:Ln,showDownloadIcon:Rn,previewIcon:_n,removeIcon:tr,downloadIcon:Yn,extra:Jn,onPreview:An,onDownload:Kn,onClose:Un}=ge;var dr,mr;const{status:ur}=dt,[cr,xr]=z.useState(ur);z.useEffect(()=>{ur!=="removed"&&xr(ur)},[ur]);const[ar,hr]=z.useState(!1);z.useEffect(()=>{const mn=setTimeout(()=>{hr(!0)},300);return()=>{clearTimeout(mn)}},[]);const nr=hn(dt);let vr=z.createElement("div",{className:`${ct}-icon`},nr);if(Ye==="picture"||Ye==="picture-card"||Ye==="picture-circle")if(cr==="uploading"||!dt.thumbUrl&&!dt.url){const mn=be()(`${ct}-list-item-thumbnail`,{[`${ct}-list-item-file`]:cr!=="uploading"});vr=z.createElement("div",{className:mn},nr)}else{const mn=Gn!=null&&Gn(dt)?z.createElement("img",{src:dt.thumbUrl||dt.url,alt:dt.name,className:`${ct}-list-item-image`,crossOrigin:dt.crossOrigin}):nr,Tn=be()(`${ct}-list-item-thumbnail`,{[`${ct}-list-item-file`]:Gn&&!Gn(dt)});vr=z.createElement("a",{className:Tn,onClick:zn=>An(dt,zn),href:dt.url||dt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},mn)}const Cr=be()(`${ct}-list-item`,`${ct}-list-item-${cr}`),Hr=typeof dt.linkProps=="string"?JSON.parse(dt.linkProps):dt.linkProps,Pr=(typeof Ln=="function"?Ln(dt):Ln)?$n((typeof tr=="function"?tr(dt):tr)||z.createElement(nn.Z,null),()=>Un(dt),ct,Ze.removeFile,!0):null,Lr=(typeof Rn=="function"?Rn(dt):Rn)&&cr==="done"?$n((typeof Yn=="function"?Yn(dt):Yn)||z.createElement(Jt.Z,null),()=>Kn(dt),ct,Ze.downloadFile):null,wr=Ye!=="picture-card"&&Ye!=="picture-circle"&&z.createElement("span",{key:"download-delete",className:be()(`${ct}-list-item-actions`,{picture:Ye==="picture"})},Lr,Pr),Mr=typeof Jn=="function"?Jn(dt):Jn,or=Mr&&z.createElement("span",{className:`${ct}-list-item-extra`},Mr),rr=be()(`${ct}-list-item-name`),Wn=dt.url?z.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:rr,title:dt.name},Hr,{href:dt.url,onClick:mn=>An(dt,mn)}),dt.name,or):z.createElement("span",{key:"view",className:rr,onClick:mn=>An(dt,mn),title:dt.name},dt.name,or),dn=(typeof kn=="function"?kn(dt):kn)&&(dt.url||dt.thumbUrl)?z.createElement("a",{href:dt.url||dt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:mn=>An(dt,mn),title:Ze.previewFile},typeof _n=="function"?_n(dt):_n||z.createElement(ln.Z,null)):null,Cn=(Ye==="picture-card"||Ye==="picture-circle")&&cr!=="uploading"&&z.createElement("span",{className:`${ct}-list-item-actions`},dn,cr==="done"&&Lr,Pr),{getPrefixCls:Sn}=z.useContext(xe.E_),gn=Sn(),Hn=z.createElement("div",{className:Cr},vr,Wn,wr,Cn,ar&&z.createElement(De.default,{motionName:`${gn}-fade`,visible:cr==="uploading",motionDeadline:2e3},mn=>{let{className:Tn}=mn;const zn="percent"in dt?z.createElement(En.Z,Object.assign({},sn,{type:"line",percent:dt.percent,"aria-label":dt["aria-label"],"aria-labelledby":dt["aria-labelledby"]})):null;return z.createElement("div",{className:be()(`${ct}-list-item-progress`,Tn)},zn)})),Xn=dt.response&&typeof dt.response=="string"?dt.response:((dr=dt.error)===null||dr===void 0?void 0:dr.statusText)||((mr=dt.error)===null||mr===void 0?void 0:mr.message)||Ze.uploadError,yn=cr==="error"?z.createElement(On.Z,{title:Xn,getPopupContainer:mn=>mn.parentNode},Hn):Hn;return z.createElement("div",{className:be()(`${ct}-list-item-container`,xt),style:Ue,ref:ot},jn?jn(yn,dt,cn,{download:Kn.bind(null,dt),preview:An.bind(null,dt),remove:Un.bind(null,dt)}):yn)});const Bn=(ge,ot)=>{const{listType:ct="text",previewFile:xt=Pt,onPreview:Ue,onDownload:Ze,onRemove:Ye,locale:dt,iconRender:cn,isImageUrl:sn=zt,prefixCls:hn,items:$n=[],showPreviewIcon:jn=!0,showRemoveIcon:Gn=!0,showDownloadIcon:kn=!1,removeIcon:Ln,previewIcon:Rn,downloadIcon:_n,extra:tr,progress:Yn={size:[-1,2],showInfo:!1},appendAction:Jn,appendActionVisible:An=!0,itemRender:Kn,disabled:Un}=ge,dr=(0,pt.Z)(),[mr,ur]=z.useState(!1),cr=["picture-card","picture-circle"].includes(ct);z.useEffect(()=>{ct.startsWith("picture")&&($n||[]).forEach(or=>{!(or.originFileObj instanceof File||or.originFileObj instanceof Blob)||or.thumbUrl!==void 0||(or.thumbUrl="",xt==null||xt(or.originFileObj).then(rr=>{or.thumbUrl=rr||"",dr()}))})},[ct,$n,xt]),z.useEffect(()=>{ur(!0)},[]);const xr=(or,rr)=>{if(Ue)return rr==null||rr.preventDefault(),Ue(or)},ar=or=>{typeof Ze=="function"?Ze(or):or.url&&window.open(or.url)},hr=or=>{Ye==null||Ye(or)},nr=or=>{if(cn)return cn(or,ct);const rr=or.status==="uploading";if(ct.startsWith("picture")){const Wn=ct==="picture"?z.createElement(Zt.Z,null):dt.uploading,dn=sn!=null&&sn(or)?z.createElement(_t,null):z.createElement(Me,null);return rr?Wn:dn}return rr?z.createElement(Zt.Z,null):z.createElement(an,null)},vr=(or,rr,Wn,dn,Cn)=>{const Sn={type:"text",size:"small",title:dn,onClick:gn=>{var Hn,Xn;rr(),z.isValidElement(or)&&((Xn=(Hn=or.props).onClick)===null||Xn===void 0||Xn.call(Hn,gn))},className:`${Wn}-list-item-action`};return Cn&&(Sn.disabled=Un),z.isValidElement(or)?z.createElement(fn.ZP,Object.assign({},Sn,{icon:(0,Xt.Tm)(or,Object.assign(Object.assign({},or.props),{onClick:()=>{}}))})):z.createElement(fn.ZP,Object.assign({},Sn),z.createElement("span",null,or))};z.useImperativeHandle(ot,()=>({handlePreview:xr,handleDownload:ar}));const{getPrefixCls:Cr}=z.useContext(xe.E_),Hr=Cr("upload",hn),Pr=Cr(),Lr=be()(`${Hr}-list`,`${Hr}-list-${ct}`),wr=z.useMemo(()=>(0,Xe.Z)((0,Dt.Z)(Pr),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Pr]),Mr=Object.assign(Object.assign({},cr?{}:wr),{motionDeadline:2e3,motionName:`${Hr}-${cr?"animate-inline":"animate"}`,keys:(0,nt.Z)($n.map(or=>({key:or.uid,file:or}))),motionAppear:mr});return z.createElement("div",{className:Lr},z.createElement(De.CSSMotionList,Object.assign({},Mr,{component:!1}),or=>{let{key:rr,file:Wn,className:dn,style:Cn}=or;return z.createElement(Nn,{key:rr,locale:dt,prefixCls:Hr,className:dn,style:Cn,file:Wn,items:$n,progress:Yn,listType:ct,isImgUrl:sn,showPreviewIcon:jn,showRemoveIcon:Gn,showDownloadIcon:kn,removeIcon:Ln,previewIcon:Rn,downloadIcon:_n,extra:tr,iconRender:nr,actionIconRender:vr,itemRender:Kn,onPreview:xr,onDownload:ar,onClose:hr})}),Jn&&z.createElement(De.default,Object.assign({},Mr,{visible:An,forceRender:!0}),or=>{let{className:rr,style:Wn}=or;return(0,Xt.Tm)(Jn,dn=>({className:be()(dn.className,rr),style:Object.assign(Object.assign(Object.assign({},Wn),{pointerEvents:rr?"none":void 0}),dn.style)}))}))};var Zn=z.forwardRef(Bn),jt=function(ge,ot,ct,xt){function Ue(Ze){return Ze instanceof ct?Ze:new ct(function(Ye){Ye(Ze)})}return new(ct||(ct=Promise))(function(Ze,Ye){function dt(hn){try{sn(xt.next(hn))}catch($n){Ye($n)}}function cn(hn){try{sn(xt.throw(hn))}catch($n){Ye($n)}}function sn(hn){hn.done?Ze(hn.value):Ue(hn.value).then(dt,cn)}sn((xt=xt.apply(ge,ot||[])).next())})};const on=`__LIST_IGNORE_${Date.now()}__`,Pn=(ge,ot)=>{const{fileList:ct,defaultFileList:xt,onRemove:Ue,showUploadList:Ze=!0,listType:Ye="text",onPreview:dt,onDownload:cn,onChange:sn,onDrop:hn,previewFile:$n,disabled:jn,locale:Gn,iconRender:kn,isImageUrl:Ln,progress:Rn,prefixCls:_n,className:tr,type:Yn="select",children:Jn,style:An,itemRender:Kn,maxCount:Un,data:dr={},multiple:mr=!1,hasControlInside:ur=!0,action:cr="",accept:xr="",supportServerRender:ar=!0,rootClassName:hr}=ge,nr=z.useContext(de.Z),vr=jn!=null?jn:nr,[Cr,Hr]=(0,Nt.Z)(xt||[],{value:ct,postState:yr=>yr!=null?yr:[]}),[Pr,Lr]=z.useState("drop"),wr=z.useRef(null),Mr=z.useRef(null);z.useMemo(()=>{const yr=Date.now();(ct||[]).forEach((Zr,Kr)=>{!Zr.uid&&!Object.isFrozen(Zr)&&(Zr.uid=`__AUTO__${yr}_${Kr}__`)})},[ct]);const or=(yr,Zr,Kr)=>{let Or=(0,nt.Z)(Zr),jr=!1;Un===1?Or=Or.slice(-1):Un&&(jr=Or.length>Un,Or=Or.slice(0,Un)),(0,ve.flushSync)(()=>{Hr(Or)});const Rr={file:yr,fileList:Or};Kr&&(Rr.event=Kr),(!jr||yr.status==="removed"||Or.some(pi=>pi.uid===yr.uid))&&(0,ve.flushSync)(()=>{sn==null||sn(Rr)})},rr=(yr,Zr)=>jt(void 0,void 0,void 0,function*(){const{beforeUpload:Kr,transformFile:Or}=ge;let jr=yr;if(Kr){const Rr=yield Kr(yr,Zr);if(Rr===!1)return!1;if(delete yr[on],Rr===on)return Object.defineProperty(yr,on,{value:!0,configurable:!0}),!1;typeof Rr=="object"&&Rr&&(jr=Rr)}return Or&&(jr=yield Or(jr)),jr}),Wn=yr=>{const Zr=yr.filter(jr=>!jr.file[on]);if(!Zr.length)return;const Kr=Zr.map(jr=>Dn(jr.file));let Or=(0,nt.Z)(Cr);Kr.forEach(jr=>{Or=Mn(jr,Or)}),Kr.forEach((jr,Rr)=>{let pi=jr;if(Zr[Rr].parsedFile)jr.status="uploading";else{const{originFileObj:Li}=jr;let vi;try{vi=new File([Li],Li.name,{type:Li.type})}catch(oi){vi=new Blob([Li],{type:Li.type}),vi.name=Li.name,vi.lastModifiedDate=new Date,vi.lastModified=new Date().getTime()}vi.uid=jr.uid,pi=vi}or(pi,Or)})},dn=(yr,Zr,Kr)=>{try{typeof yr=="string"&&(yr=JSON.parse(yr))}catch(Rr){}if(!rn(Zr,Cr))return;const Or=Dn(Zr);Or.status="done",Or.percent=100,Or.response=yr,Or.xhr=Kr;const jr=Mn(Or,Cr);or(Or,jr)},Cn=(yr,Zr)=>{if(!rn(Zr,Cr))return;const Kr=Dn(Zr);Kr.status="uploading",Kr.percent=yr.percent;const Or=Mn(Kr,Cr);or(Kr,Or,yr)},Sn=(yr,Zr,Kr)=>{if(!rn(Kr,Cr))return;const Or=Dn(Kr);Or.error=yr,Or.response=Zr,Or.status="error";const jr=Mn(Or,Cr);or(Or,jr)},gn=yr=>{let Zr;Promise.resolve(typeof Ue=="function"?Ue(yr):Ue).then(Kr=>{var Or;if(Kr===!1)return;const jr=bn(yr,Cr);jr&&(Zr=Object.assign(Object.assign({},yr),{status:"removed"}),Cr==null||Cr.forEach(Rr=>{const pi=Zr.uid!==void 0?"uid":"name";Rr[pi]===Zr[pi]&&!Object.isFrozen(Rr)&&(Rr.status="removed")}),(Or=wr.current)===null||Or===void 0||Or.abort(Zr),or(Zr,jr))})},Hn=yr=>{Lr(yr.type),yr.type==="drop"&&(hn==null||hn(yr))};z.useImperativeHandle(ot,()=>({onBatchStart:Wn,onSuccess:dn,onProgress:Cn,onError:Sn,fileList:Cr,upload:wr.current,nativeElement:Mr.current}));const{getPrefixCls:Xn,direction:yn,upload:mn}=z.useContext(xe.E_),Tn=Xn("upload",_n),zn=Object.assign(Object.assign({onBatchStart:Wn,onError:Sn,onProgress:Cn,onSuccess:dn},ge),{data:dr,multiple:mr,action:cr,accept:xr,supportServerRender:ar,prefixCls:Tn,disabled:vr,beforeUpload:rr,onChange:void 0,hasControlInside:ur});delete zn.className,delete zn.style,(!Jn||vr)&&delete zn.id;const fr=`${Tn}-wrapper`,[Br,Er,$r]=Te(Tn,fr),[kr]=(0,Ct.Z)("Upload",tn.Z.Upload),{showRemoveIcon:Nr,showPreviewIcon:Wr,showDownloadIcon:zr,removeIcon:Vr,previewIcon:ei,downloadIcon:ui,extra:hi}=typeof Ze=="boolean"?{}:Ze,ci=typeof Nr=="undefined"?!vr:Nr,ii=(yr,Zr)=>Ze?z.createElement(Zn,{prefixCls:Tn,listType:Ye,items:Cr,previewFile:$n,onPreview:dt,onDownload:cn,onRemove:gn,showRemoveIcon:ci,showPreviewIcon:Wr,showDownloadIcon:zr,removeIcon:Vr,previewIcon:ei,downloadIcon:ui,iconRender:kn,extra:hi,locale:Object.assign(Object.assign({},kr),Gn),isImageUrl:Ln,progress:Rn,appendAction:yr,appendActionVisible:Zr,itemRender:Kn,disabled:vr}):yr,pr=be()(fr,tr,hr,Er,$r,mn==null?void 0:mn.className,{[`${Tn}-rtl`]:yn==="rtl",[`${Tn}-picture-card-wrapper`]:Ye==="picture-card",[`${Tn}-picture-circle-wrapper`]:Ye==="picture-circle"}),sr=Object.assign(Object.assign({},mn==null?void 0:mn.style),An);if(Yn==="drag"){const yr=be()(Er,Tn,`${Tn}-drag`,{[`${Tn}-drag-uploading`]:Cr.some(Zr=>Zr.status==="uploading"),[`${Tn}-drag-hover`]:Pr==="dragover",[`${Tn}-disabled`]:vr,[`${Tn}-rtl`]:yn==="rtl"});return Br(z.createElement("span",{className:pr,ref:Mr},z.createElement("div",{className:yr,style:sr,onDrop:Hn,onDragOver:Hn,onDragLeave:Hn},z.createElement(Ve,Object.assign({},zn,{ref:wr,className:`${Tn}-btn`}),z.createElement("div",{className:`${Tn}-drag-container`},Jn))),ii()))}const Ur=be()(Tn,`${Tn}-select`,{[`${Tn}-disabled`]:vr,[`${Tn}-hidden`]:!Jn}),Xr=z.createElement("div",{className:Ur},z.createElement(Ve,Object.assign({},zn,{ref:wr})));return Br(Ye==="picture-card"||Ye==="picture-circle"?z.createElement("span",{className:pr,ref:Mr},ii(Xr,!!Jn)):z.createElement("span",{className:pr,ref:Mr},Xr,ii()))};var Re=z.forwardRef(Pn),rt=function(ge,ot){var ct={};for(var xt in ge)Object.prototype.hasOwnProperty.call(ge,xt)&&ot.indexOf(xt)<0&&(ct[xt]=ge[xt]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,xt=Object.getOwnPropertySymbols(ge);Ue{var{style:ct,height:xt,hasControlInside:Ue=!1}=ge,Ze=rt(ge,["style","height","hasControlInside"]);return z.createElement(Re,Object.assign({ref:ot,hasControlInside:Ue},Ze,{type:"drag",style:Object.assign(Object.assign({},ct),{height:xt})}))});const Oe=Re;Oe.Dragger=je,Oe.LIST_IGNORE=on;var We=Oe},99498:function(pn,Kt,ne){(function(z){z(ne(89780))})(function(z){z.defineOption("placeholder","",function(Je,Ie,fe){var tt=fe&&fe!=z.Init;if(Ie&&!tt)Je.on("blur",be),Je.on("change",Pe),Je.on("swapDoc",Pe),z.on(Je.getInputField(),"compositionupdate",Je.state.placeholderCompose=function(){et(Je)}),Pe(Je);else if(!Ie&&tt){Je.off("blur",be),Je.off("change",Pe),Je.off("swapDoc",Pe),z.off(Je.getInputField(),"compositionupdate",Je.state.placeholderCompose),nt(Je);var Ee=Je.getWrapperElement();Ee.className=Ee.className.replace(" CodeMirror-empty","")}Ie&&!Je.hasFocus()&&be(Je)});function nt(Je){Je.state.placeholder&&(Je.state.placeholder.parentNode.removeChild(Je.state.placeholder),Je.state.placeholder=null)}function ve(Je){nt(Je);var Ie=Je.state.placeholder=document.createElement("pre");Ie.style.cssText="height: 0; overflow: visible",Ie.style.direction=Je.getOption("direction"),Ie.className="CodeMirror-placeholder CodeMirror-line-like";var fe=Je.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),Ie.appendChild(fe),Je.display.lineSpace.insertBefore(Ie,Je.display.lineSpace.firstChild)}function et(Je){setTimeout(function(){var Ie=!1,fe=Je.getInputField();fe.nodeName=="TEXTAREA"?Ie=!fe.value:Je.lineCount()==1&&(Ie=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),Ie?ve(Je):nt(Je)},20)}function be(Je){Ne(Je)&&ve(Je)}function Pe(Je){var Ie=Je.getWrapperElement(),fe=Ne(Je);Ie.className=Ie.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?ve(Je):nt(Je)}function Ne(Je){return Je.lineCount()===1&&Je.getLine(0)===""}})},25717:function(pn,Kt,ne){(function(z){z(ne(89780))})(function(z){var nt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ve=z.Pos;z.defineOption("autoCloseBrackets",!1,function(ze,Ke,ke){ke&&ke!=z.Init&&(ze.removeKeyMap(be),ze.state.closeBrackets=null),Ke&&(Pe(et(Ke,"pairs")),ze.state.closeBrackets=Ke,ze.addKeyMap(be))});function et(ze,Ke){return Ke=="pairs"&&typeof ze=="string"?ze:typeof ze=="object"&&ze[Ke]!=null?ze[Ke]:nt[Ke]}var be={Backspace:Ie,Enter:fe};function Pe(ze){for(var Ke=0;Ke=0;Et--){var It=ft[Et].head;ze.replaceRange("",ve(It.line,It.ch-1),ve(It.line,It.ch+1),"+delete")}}function fe(ze){var Ke=Je(ze),ke=Ke&&et(Ke,"explode");if(!ke||ze.getOption("disableInput"))return z.Pass;for(var ft=ze.listSelections(),Et=0;Et0;return{anchor:new ve(ze.anchor.line,ze.anchor.ch+(Ke?-1:1)),head:new ve(ze.head.line,ze.head.ch+(Ke?1:-1))}}function Ee(ze,Ke){var ke=Je(ze);if(!ke||ze.getOption("disableInput"))return z.Pass;var ft=et(ke,"pairs"),Et=ft.indexOf(Ke);if(Et==-1)return z.Pass;for(var Ht=et(ke,"closeBefore"),It=et(ke,"triples"),ut=ft.charAt(Et+1)==Ke,lt=ze.listSelections(),Ge=Et%2==0,kt,bt=0;bt=0&&ze.getRange(Lt,ve(Lt.line,Lt.ch+3))==Ke+Ke+Ke?Le="skipThree":Le="skip";else if(ut&&Lt.ch>1&&It.indexOf(Ke)>=0&&ze.getRange(ve(Lt.line,Lt.ch-2),Lt)==Ke+Ke){if(Lt.ch>2&&/\bstring/.test(ze.getTokenTypeAt(ve(Lt.line,Lt.ch-2))))return z.Pass;Le="addFour"}else if(ut){var Fe=Lt.ch==0?" ":ze.getRange(ve(Lt.line,Lt.ch-1),Lt);if(!z.isWordChar(_e)&&Fe!=Ke&&!z.isWordChar(Fe))Le="both";else return z.Pass}else if(Ge&&(_e.length===0||/\s/.test(_e)||Ht.indexOf(_e)>-1))Le="both";else return z.Pass;if(!kt)kt=Le;else if(kt!=Le)return z.Pass}var ue=Et%2?ft.charAt(Et-1):Ke,mt=Et%2?Ke:ft.charAt(Et+1);ze.operation(function(){if(kt=="skip")ze.execCommand("goCharRight");else if(kt=="skipThree")for(var Be=0;Be<3;Be++)ze.execCommand("goCharRight");else if(kt=="surround"){for(var Ve=ze.getSelections(),Be=0;Be'"]=function(Ot){return et(Ot)}),Ie.addKeyMap(Ee)}});var nt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ve=["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 et(Ie){if(Ie.getOption("disableInput"))return z.Pass;for(var fe=Ie.listSelections(),tt=[],Ee=Ie.getOption("autoCloseTags"),Ot=0;OtQe.ch&&(Et=Et.slice(0,Et.length-ze.end+Qe.ch));var lt=Et.toLowerCase();if(!Et||ze.type=="string"&&(ze.end!=Qe.ch||!/[\"\']/.test(ze.string.charAt(ze.string.length-1))||ze.string.length==1)||ze.type=="tag"&&ft.close||ze.string.indexOf("/")==Qe.ch-ze.start-1||It&&Ne(It,lt)>-1||Je(Ie,Ke.mode.xmlCurrentContext&&Ke.mode.xmlCurrentContext(ke)||[],Et,Qe,!0))return z.Pass;var Ge=typeof Ee=="object"&&Ee.emptyTags;if(Ge&&Ne(Ge,Et)>-1){tt[Ot]={text:"/>",newPos:z.Pos(Qe.line,Qe.ch+2)};continue}var kt=ut&&Ne(ut,lt)>-1;tt[Ot]={indent:kt,text:">"+(kt?` `:"")+"",newPos:kt?z.Pos(Qe.line+1,0):z.Pos(Qe.line,Qe.ch+1)}}for(var bt=typeof Ee=="object"&&Ee.dontIndentOnAutoClose,Ot=fe.length-1;Ot>=0;Ot--){var ht=tt[Ot];Ie.replaceRange(ht.text,fe[Ot].head,fe[Ot].anchor,"+insert");var Lt=Ie.listSelections().slice(0);Lt[Ot]={head:ht.newPos,anchor:ht.newPos},Ie.setSelections(Lt),!bt&&ht.indent&&(Ie.indentLine(ht.newPos.line,null,!0),Ie.indentLine(ht.newPos.line+1,null,!0))}}function be(Ie,fe){for(var tt=Ie.listSelections(),Ee=[],Ot=fe?"/":""&&(It+=">"),Ee[Ke]=It}if(Ie.replaceSelections(Ee),tt=Ie.listSelections(),!ze)for(var Ke=0;Ke=0&&fe[ke]==tt;ke--)++Ke;Ee=ze.to;for(var ke=1;ke=ke.max))return ke.ch=0,ke.text=ke.cm.getLine(++ke.line),!0}function fe(ke){if(!(ke.line<=ke.min))return ke.text=ke.cm.getLine(--ke.line),ke.ch=ke.text.length,!0}function tt(ke){for(;;){var ft=ke.text.indexOf(">",ke.ch);if(ft==-1){if(Ie(ke))continue;return}if(!Je(ke,ft+1)){ke.ch=ft+1;continue}var Et=ke.text.lastIndexOf("/",ft),Ht=Et>-1&&!/\S/.test(ke.text.slice(Et+1,ft));return ke.ch=ft+1,Ht?"selfClose":"regular"}}function Ee(ke){for(;;){var ft=ke.ch?ke.text.lastIndexOf("<",ke.ch-1):-1;if(ft==-1){if(fe(ke))continue;return}if(!Je(ke,ft+1)){ke.ch=ft;continue}Pe.lastIndex=ft,ke.ch=ft;var Et=Pe.exec(ke.text);if(Et&&Et.index==ft)return Et}}function Ot(ke){for(;;){Pe.lastIndex=ke.ch;var ft=Pe.exec(ke.text);if(!ft){if(Ie(ke))continue;return}if(!Je(ke,ft.index+1)){ke.ch=ft.index+1;continue}return ke.ch=ft.index+ft[0].length,ft}}function Qe(ke){for(;;){var ft=ke.ch?ke.text.lastIndexOf(">",ke.ch-1):-1;if(ft==-1){if(fe(ke))continue;return}if(!Je(ke,ft+1)){ke.ch=ft;continue}var Et=ke.text.lastIndexOf("/",ft),Ht=Et>-1&&!/\S/.test(ke.text.slice(Et+1,ft));return ke.ch=ft+1,Ht?"selfClose":"regular"}}function ze(ke,ft){for(var Et=[];;){var Ht=Ot(ke),It,ut=ke.line,lt=ke.ch-(Ht?Ht[0].length:0);if(!Ht||!(It=tt(ke)))return;if(It!="selfClose")if(Ht[1]){for(var Ge=Et.length-1;Ge>=0;--Ge)if(Et[Ge]==Ht[2]){Et.length=Ge;break}if(Ge<0&&(!ft||ft==Ht[2]))return{tag:Ht[2],from:nt(ut,lt),to:nt(ke.line,ke.ch)}}else Et.push(Ht[2])}}function Ke(ke,ft){for(var Et=[];;){var Ht=Qe(ke);if(!Ht)return;if(Ht=="selfClose"){Ee(ke);continue}var It=ke.line,ut=ke.ch,lt=Ee(ke);if(!lt)return;if(lt[1])Et.push(lt[2]);else{for(var Ge=Et.length-1;Ge>=0;--Ge)if(Et[Ge]==lt[2]){Et.length=Ge;break}if(Ge<0&&(!ft||ft==lt[2]))return{tag:lt[2],from:nt(ke.line,ke.ch),to:nt(It,ut)}}}}z.registerHelper("fold","xml",function(ke,ft){for(var Et=new Ne(ke,ft.line,0);;){var Ht=Ot(Et);if(!Ht||Et.line!=ft.line)return;var It=tt(Et);if(!It)return;if(!Ht[1]&&It!="selfClose"){var ut=nt(Et.line,Et.ch),lt=ze(Et,Ht[2]);return lt&&ve(lt.from,ut)>0?{from:ut,to:lt.from}:null}}}),z.findMatchingTag=function(ke,ft,Et){var Ht=new Ne(ke,ft.line,ft.ch,Et);if(!(Ht.text.indexOf(">")==-1&&Ht.text.indexOf("<")==-1)){var It=tt(Ht),ut=It&&nt(Ht.line,Ht.ch),lt=It&&Ee(Ht);if(!(!It||!lt||ve(Ht,ft)>0)){var Ge={from:nt(Ht.line,Ht.ch),to:ut,tag:lt[2]};return It=="selfClose"?{open:Ge,close:null,at:"open"}:lt[1]?{open:Ke(Ht,lt[2]),close:Ge,at:"close"}:(Ht=new Ne(ke,ut.line,ut.ch,Et),{open:Ge,close:ze(Ht,lt[2]),at:"open"})}}},z.findEnclosingTag=function(ke,ft,Et,Ht){for(var It=new Ne(ke,ft.line,ft.ch,Et);;){var ut=Ke(It,Ht);if(!ut)break;var lt=new Ne(ke,ft.line,ft.ch,Et),Ge=ze(lt,ut.tag);if(Ge)return{open:ut,close:Ge}}},z.scanForClosingTag=function(ke,ft,Et,Ht){var It=new Ne(ke,ft.line,ft.ch,Ht?{from:0,to:Ht}:null);return ze(It,Et)}})},89780:function(pn){(function(Kt,ne){pn.exports=ne()})(this,function(){"use strict";var Kt=navigator.userAgent,ne=navigator.platform,z=/gecko\/\d/i.test(Kt),nt=/MSIE \d/.test(Kt),ve=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kt),et=/Edge\/(\d+)/.exec(Kt),be=nt||ve||et,Pe=be&&(nt?document.documentMode||6:+(et||ve)[1]),Ne=!et&&/WebKit\//.test(Kt),Je=Ne&&/Qt\/\d+\.\d+/.test(Kt),Ie=!et&&/Chrome\//.test(Kt),fe=/Opera\//.test(Kt),tt=/Apple Computer/.test(navigator.vendor),Ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Kt),Ot=/PhantomJS/.test(Kt),Qe=!et&&/AppleWebKit/.test(Kt)&&/Mobile\/\w+/.test(Kt),ze=/Android/.test(Kt),Ke=Qe||ze||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Kt),ke=Qe||/Mac/.test(ne),ft=/\bCrOS\b/.test(Kt),Et=/win/i.test(ne),Ht=fe&&Kt.match(/Version\/(\d*\.\d*)/);Ht&&(Ht=Number(Ht[1])),Ht&&Ht>=15&&(fe=!1,Ne=!0);var It=ke&&(Je||fe&&(Ht==null||Ht<12.11)),ut=z||be&&Pe>=9;function lt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ge=function(a,y){var x=a.className,b=lt(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 kt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function bt(a,y){return kt(a).appendChild(y)}function ht(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 ie=0;ie=y)return le+(y-ie);le+=ce-ie,le+=x-le%x,ie=ce+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=Ve(this.onTimeout,this)};de.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},de.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+=ie-b,E+=x-E%x,b=ie+1,E>=y)return b}}var Rt=[""];function Yt(a){for(;Rt.length<=a;)Rt.push(He(Rt)+" ");return Rt[a]}function He(a){return a[a.length-1]}function Qt(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function se(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function re(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var pe=/[\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 Ce(a){return a.charCodeAt(0)>=768&&pe.test(a)}function gt(a,y,x){for(;(x<0?y>0:yx?-1:1;;){if(y==x)return y;var E=(y+x)/2,ie=b<0?Math.ceil(E):Math.floor(E);if(ie==y)return a(ie)?y:x;a(ie)?x=ie:y=ie+b}}function it(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,ie=0;iey||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",ie),E=!0)}E||b(y,x,"ltr")}var vt=null;function Bt(a,y,x){var b;vt=null;for(var E=0;Ey)return E;ie.to==y&&(ie.from!=ie.to&&x=="before"?b=E:vt=E),ie.from==y&&(ie.from!=ie.to&&x!="before"?b=E:vt=E)}return b!=null?b:vt}var Mt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(ye){return ye<=247?a.charAt(ye):1424<=ye&&ye<=1524?"R":1536<=ye&&ye<=1785?y.charAt(ye-1536):1774<=ye&&ye<=2220?"r":8192<=ye&&ye<=8203?"w":ye==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,ie=/[LRr]/,le=/[Lb1n]/,ce=/[1n]/;function he(ye,at,yt){this.level=ye,this.from=at,this.to=yt}return function(ye,at){var yt=at=="ltr"?"L":"R";if(ye.length==0||at=="ltr"&&!b.test(ye))return!1;for(var qt=ye.length,Vt=[],wn=0;wn-1&&(b[y]=E.slice(0,ie).concat(E.slice(ie+1)))}}}function un(a,y){var x=Wt(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){en(this,y,x)}}function st(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function At(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function _t(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function De(a){st(a),At(a)}function Xe(a){return a.target||a.srcElement}function pt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),ke&&a.ctrlKey&&y==1&&(y=3),y}var Dt=function(){if(be&&Pe<9)return!1;var a=ht("div");return"draggable"in a||"dragDrop"in a}(),Xt;function fn(a){if(Xt==null){var y=ht("span","\u200B");bt(a,ht("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Xt=y.offsetWidth<=1&&y.offsetHeight>2&&!(be&&Pe<8))}var x=Xt?ht("span","\u200B"):ht("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Dn;function Mn(a){if(Dn!=null)return Dn;var y=bt(a,document.createTextNode("A\u062EA")),x=Le(y,0,1).getBoundingClientRect(),b=Le(y,1,2).getBoundingClientRect();return kt(a),!x||x.left==x.right?!1:Dn=b.right-x.right<3}var rn=` 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 ie=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=ie.indexOf("\r");le!=-1?(x.push(ie.slice(0,le)),y+=le+1):(x.push(ie),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},bn=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},vn=function(){var a=ht("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Ut=null;function zt(a){if(Ut!=null)return Ut;var y=bt(a,ht("span","x")),x=y.getBoundingClientRect(),b=Le(y,0,1).getBoundingClientRect();return Ut=Math.abs(x.left-b.left)>1}var Ft={},Pt={};function nn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Ft[a]=y}function Jt(a,y){Pt[a]=y}function ln(a){if(typeof a=="string"&&Pt.hasOwnProperty(a))a=Pt[a];else if(a&&typeof a.name=="string"&&Pt.hasOwnProperty(a.name)){var y=Pt[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 ln("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return ln("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function En(a,y){y=ln(y);var x=Ft[y.name];if(!x)return En(a,"text/plain");var b=x(a,y);if(On.hasOwnProperty(y.name)){var E=On[y.name];for(var ie in E)E.hasOwnProperty(ie)&&(b.hasOwnProperty(ie)&&(b["_"+ie]=b[ie]),b[ie]=E[ie])}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 On={};function In(a,y){var x=On.hasOwnProperty(a)?On[a]:On[a]={};Nt(y,x)}function Nn(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 Bn(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 Qn(a,y,x){return a.startState?a.startState(y,x):!0}var Zn=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};Zn.prototype.eol=function(){return this.pos>=this.string.length},Zn.prototype.sol=function(){return this.pos==this.lineStart},Zn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Zn.prototype.next=function(){if(this.posy},Zn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Zn.prototype.skipToEnd=function(){this.pos=this.string.length},Zn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},Zn.prototype.backUp=function(a){this.pos-=a},Zn.prototype.column=function(){return this.lastColumnPos0?null:(ie&&y!==!1&&(this.pos+=ie[0].length),ie)}},Zn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Zn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},Zn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},Zn.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],ie=E.chunkSize();if(y=a.first&&yx?Oe(x,jt(a,x).text.length):Ye(y,jt(a,y.line).text.length)}function Ye(a,y){var x=a.ch;return x==null||x>y?Oe(a.line,y):x<0?Oe(a.line,0):a}function dt(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},sn.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}},sn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},sn.fromSaved=function(a,y,x){return y instanceof cn?new sn(a,Nn(a.mode,y.state),x,y.lookAhead):new sn(a,Nn(a.mode,y),x)},sn.prototype.save=function(a){var y=a!==!1?Nn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new cn(y,this.maxLookAhead):y};function hn(a,y,x,b){var E=[a.state.modeGen],ie={};Yn(a,y.text,a.doc.mode,x,function(ye,at){return E.push(ye,at)},ie,b);for(var le=x.state,ce=function(ye){x.baseTokens=E;var at=a.state.overlays[ye],yt=1,qt=0;x.state=!0,Yn(a,y.text,at.mode,x,function(Vt,wn){for(var Fn=yt;qtVt&&E.splice(yt,1,Vt,E[yt+1],Vn),yt+=2,qt=Math.min(Vt,Vn)}if(wn)if(at.opaque)E.splice(Fn,yt-Fn,Vt,"overlay "+wn),yt=Fn+2;else for(;Fna.options.maxHighlightLength&&Nn(a.doc.mode,b.state),ie=hn(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=ie.styles,ie.classes?y.styleClasses=ie.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 jn(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new sn(b,!0,y);var ie=Jn(a,y,x),le=ie>b.first&&jt(b,ie-1).stateAfter,ce=le?sn.fromSaved(b,le,ie):new sn(b,Qn(b.mode),ie);return b.iter(ie,y,function(he){Gn(a,he.text,ce);var ye=ce.line;he.stateAfter=ye==y-1||ye%5==0||ye>=E.viewFrom&&yey.start)return ie}throw new Error("Mode "+a.name+" failed to advance stream.")}var Rn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function _n(a,y,x,b){var E=a.doc,ie=E.mode,le;y=Ze(E,y);var ce=jt(E,y.line),he=jn(a,y.line,x),ye=new Zn(ce.text,a.options.tabSize,he),at;for(b&&(at=[]);(b||ye.posa.options.maxHighlightLength?(ce=!1,le&&Gn(a,y,b,at.pos),at.pos=y.length,yt=null):yt=tr(Ln(x,at,b.state,qt),ie),qt){var Vt=qt[0].name;Vt&&(yt="m-"+(yt?Vt+" "+yt:Vt))}if(!ce||ye!=yt){for(;hele;--ce){if(ce<=ie.first)return ie.first;var he=jt(ie,ce-1),ye=he.stateAfter;if(ye&&(!x||ce+(ye instanceof cn?ye.lookAhead:0)<=ie.modeFrontier))return ce;var at=xe(he.text,null,a.options.tabSize);(E==null||b>at)&&(E=ce-1,b=at)}return E}function An(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var E=jt(a,b).stateAfter;if(E&&(!(E instanceof cn)||b+E.lookAhead=y:ie.to>y);(b||(b=[])).push(new ur(le,ie.from,he?null:ie.to))}}return b}function nr(a,y,x){var b;if(a)for(var E=0;E=y:ie.to>y);if(ce||ie.from==y&&le.type=="bookmark"&&(!x||ie.marker.insertLeft)){var he=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from0&&ce)for(var lr=0;lr0)){var at=[he,1],yt=We(ye.from,ce.from),qt=We(ye.to,ce.to);(yt<0||!le.inclusiveLeft&&!yt)&&at.push({from:ye.from,to:ce.from}),(qt>0||!le.inclusiveRight&&!qt)&&at.push({from:ce.to,to:ye.to}),E.splice.apply(E,at),he+=at.length-3}}return E}function Pr(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||or(b,ie.marker)<0)&&(b=ie.marker)}return b}function Sn(a,y,x,b,E){var ie=jt(a,y),le=Un&&ie.markedSpans;if(le)for(var ce=0;ce=0&&yt<=0||at<=0&&yt>=0)&&(at<=0&&(he.marker.inclusiveRight&&E.inclusiveLeft?We(ye.to,x)>=0:We(ye.to,x)>0)||at>=0&&(he.marker.inclusiveRight&&E.inclusiveLeft?We(ye.from,b)<=0:We(ye.from,b)<0)))return!0}}}function gn(a){for(var y;y=Wn(a);)a=y.find(-1,!0).line;return a}function Hn(a){for(var y;y=dn(a);)a=y.find(1,!0).line;return a}function Xn(a){for(var y,x;y=dn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function yn(a,y){var x=jt(a,y),b=gn(x);return x==b?y:Re(b)}function mn(a,y){if(y>a.lastLine())return y;var x=jt(a,y),b;if(!Tn(a,x))return y;for(;b=dn(x);)x=b.find(1,!0).line;return Re(x)+1}function Tn(a,y){var x=Un&&y.markedSpans;if(x){for(var b=void 0,E=0;Ey.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var $r=function(a,y,x){this.text=a,Lr(this,y),this.height=x?x(this):1};$r.prototype.lineNo=function(){return Re(this)},Ae($r);function kr(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Pr(a),Lr(a,x);var E=b?b(a):1;E!=a.height&&xn(a,E)}function Nr(a){a.parent=null,Pr(a)}var Wr={},zr={};function Vr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?zr:Wr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ei(a,y){var x=Lt("span",null,null,Ne?"padding-right: .1px":null),b={pre:Lt("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 ie=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=hi,Mn(a.display.measure)&&(le=we(ie,a.doc.direction))&&(b.addToken=ii(b.addToken,le)),b.map=[];var ce=y!=a.display.externalMeasured&&Re(ie);sr(ie,b,$n(a,ie,ce)),ie.styleClasses&&(ie.styleClasses.bgClass&&(b.bgClass=mt(ie.styleClasses.bgClass,b.bgClass||"")),ie.styleClasses.textClass&&(b.textClass=mt(ie.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(fn(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(Ne){var he=b.content.lastChild;(/\bcm-tab\b/.test(he.className)||he.querySelector&&he.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return un(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=mt(b.pre.className,b.textClass||"")),b}function ui(a){var y=ht("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function hi(a,y,x,b,E,ie,le){if(y){var ce=a.splitSpaces?ci(y,a.trailingSpace):y,he=a.cm.state.specialChars,ye=!1,at;if(!he.test(y))a.col+=y.length,at=document.createTextNode(ce),a.map.push(a.pos,a.pos+y.length,at),be&&Pe<9&&(ye=!0),a.pos+=y.length;else{at=document.createDocumentFragment();for(var yt=0;;){he.lastIndex=yt;var qt=he.exec(y),Vt=qt?qt.index-yt:y.length-yt;if(Vt){var wn=document.createTextNode(ce.slice(yt,yt+Vt));be&&Pe<9?at.appendChild(ht("span",[wn])):at.appendChild(wn),a.map.push(a.pos,a.pos+Vt,wn),a.col+=Vt,a.pos+=Vt}if(!qt)break;yt+=Vt+1;var Fn=void 0;if(qt[0]==" "){var Vn=a.cm.options.tabSize,qn=Vn-a.col%Vn;Fn=at.appendChild(ht("span",Yt(qn),"cm-tab")),Fn.setAttribute("role","presentation"),Fn.setAttribute("cm-text"," "),a.col+=qn}else qt[0]=="\r"||qt[0]==` `?(Fn=at.appendChild(ht("span",qt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Fn.setAttribute("cm-text",qt[0]),a.col+=1):(Fn=a.cm.options.specialCharPlaceholder(qt[0]),Fn.setAttribute("cm-text",qt[0]),be&&Pe<9?at.appendChild(ht("span",[Fn])):at.appendChild(Fn),a.col+=1);a.map.push(a.pos,a.pos+1,Fn),a.pos++}}if(a.trailingSpace=ce.charCodeAt(y.length-1)==32,x||b||E||ye||ie||le){var ir=x||"";b&&(ir+=b),E&&(ir+=E);var er=ht("span",[at],ir,ie);if(le)for(var lr in le)le.hasOwnProperty(lr)&&lr!="style"&&lr!="class"&&er.setAttribute(lr,le[lr]);return a.content.appendChild(er)}a.content.appendChild(at)}}function ci(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;Eye&&yt.from<=ye));qt++);if(yt.to>=at)return a(x,b,E,ie,le,ce,he);a(x,b.slice(0,yt.to-ye),E,ie,null,ce,he),ie=null,b=b.slice(yt.to-ye),ye=yt.to}}}function pr(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 sr(a,y,x){var b=a.markedSpans,E=a.text,ie=0;if(!b){for(var le=1;lehe||Fr.collapsed&&gr.to==he&&gr.from==he)){if(gr.to!=null&&gr.to!=he&&Vt>gr.to&&(Vt=gr.to,Fn=""),Fr.className&&(wn+=" "+Fr.className),Fr.css&&(qt=(qt?qt+";":"")+Fr.css),Fr.startStyle&&gr.from==he&&(Vn+=" "+Fr.startStyle),Fr.endStyle&&gr.to==Vt&&(lr||(lr=[])).push(Fr.endStyle,gr.to),Fr.title&&((ir||(ir={})).title=Fr.title),Fr.attributes)for(var qr in Fr.attributes)(ir||(ir={}))[qr]=Fr.attributes[qr];Fr.collapsed&&(!qn||or(qn.marker,Fr)<0)&&(qn=gr)}else gr.from>he&&Vt>gr.from&&(Vt=gr.from)}if(lr)for(var xi=0;xi=ce)break;for(var Wi=Math.min(ce,Vt);;){if(at){var Ni=he+at.length;if(!qn){var di=Ni>Wi?at.slice(0,Wi-he):at;y.addToken(y,di,yt?yt+wn:wn,Vn,he+di.length==Vt?Fn:"",qt,ir)}if(Ni>=Wi){at=at.slice(Wi-he),he=Wi;break}he=Ni,Vn=""}at=E.slice(ie,ie=x[ye++]),yt=Vr(x[ye++],y.cm.options)}}}function Ur(a,y,x){this.line=y,this.rest=Xn(y),this.size=this.rest?Re(He(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Tn(a,y)}function Xr(a,y,x){for(var b=[],E,ie=y;ie2&&ie.push((he.bottom+ye.top)/2-x.top)}}ie.push(x.bottom-x.top)}}function To(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 _a(a,y){y=gn(y);var x=Re(y),b=a.display.externalMeasured=new Ur(a.doc,y,x);b.lineN=x;var E=b.built=ei(a,b);return b.text=E.pre,bt(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)&&(ie=he-ce,E=ie-1,y>=he&&(le="right")),E!=null){if(b=a[ye+2],ce==he&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;ye&&a[ye-2]==a[ye-3]&&a[ye-1].insertLeft;)b=a[(ye-=3)+2],le="left";if(x=="right"&&E==he-ce)for(;ye=0&&(x=a[E]).left==x.right;E--);return x}function Ca(a,y,x,b){var E=xa(y.map,x,b),ie=E.node,le=E.start,ce=E.end,he=E.collapse,ye;if(ie.nodeType==3){for(var at=0;at<4;at++){for(;le&&Ce(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ce0&&(he=b="right");var yt;a.options.lineWrapping&&(yt=ie.getClientRects()).length>1?ye=yt[b=="right"?yt.length-1:0]:ye=ie.getBoundingClientRect()}if(be&&Pe<9&&!le&&(!ye||!ye.left&&!ye.right)){var qt=ie.parentNode.getClientRects()[0];qt?ye={left:qt.left,right:qt.left+Qi(a.display),top:qt.top,bottom:qt.bottom}:ye=ba}for(var Vt=ye.top-y.rect.top,wn=ye.bottom-y.rect.top,Fn=(Vt+wn)/2,Vn=y.view.measure.heights,qn=0;qn=b.text.length?(he=b.text.length,ye="before"):he<=0&&(he=0,ye="after"),!ce)return le(ye=="before"?he-1:he,ye=="before");function at(wn,Fn,Vn){var qn=ce[Fn],ir=qn.level==1;return le(Vn?wn-1:wn,ir!=Vn)}var yt=Bt(ce,he,ye),qt=vt,Vt=at(he,yt,ye=="before");return qt!=null&&(Vt.other=at(he,qt,ye!="before")),Vt}function _r(a,y){var x=0;y=Ze(a.doc,y),a.options.lineWrapping||(x=Qi(a.display)*y.ch);var b=jt(a.doc,y.line),E=fr(b)+ai(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Ar(a,y,x,b,E){var ie=Oe(a,y,x);return ie.xRel=E,b&&(ie.outside=b),ie}function wi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Ar(b.first,0,null,-1,-1);var E=rt(b,x),ie=b.first+b.size-1;if(E>ie)return Ar(b.first+b.size-1,jt(b,ie).text.length,null,1,1);y<0&&(y=0);for(var le=jt(b,E);;){var ce=Yi(a,le,E,y,x),he=Cn(le,ce.ch+(ce.xRel>0||ce.outside>0?1:0));if(!he)return ce;var ye=he.find(1);if(ye.line==E)return ye;le=jt(b,E=ye.line)}}function Ii(a,y,x,b){b-=Yo(y);var E=y.text.length,ie=Te(function(le){return Gi(a,x,le-1).bottom<=b},E,0);return E=Te(function(le){return Gi(a,x,le).top>b},ie,E),{begin:ie,end:E}}function li(a,y,x,b){x||(x=uo(a,y));var E=Lo(a,y,Gi(a,x,b),"line").top;return Ii(a,y,x,E)}function mi(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-=fr(y);var ie=uo(a,y),le=Yo(y),ce=0,he=y.text.length,ye=!0,at=we(y,a.doc.direction);if(at){var yt=(a.options.lineWrapping?oo:Ui)(a,y,x,ie,at,b,E);ye=yt.level!=1,ce=ye?yt.from:yt.to-1,he=ye?yt.to:yt.from-1}var qt=null,Vt=null,wn=Te(function(Sr){var gr=Gi(a,ie,Sr);return gr.top+=le,gr.bottom+=le,mi(gr,b,E,!1)?(gr.top<=E&&gr.left<=b&&(qt=Sr,Vt=gr),!0):!1},ce,he),Fn,Vn,qn=!1;if(Vt){var ir=b-Vt.left=lr.bottom?1:0}return wn=gt(y.text,wn,1),Ar(x,wn,Vn,qn,b-Fn)}function Ui(a,y,x,b,E,ie,le){var ce=Te(function(yt){var qt=E[yt],Vt=qt.level!=1;return mi(Bi(a,Oe(x,Vt?qt.to:qt.from,Vt?"before":"after"),"line",y,b),ie,le,!0)},0,E.length-1),he=E[ce];if(ce>0){var ye=he.level!=1,at=Bi(a,Oe(x,ye?he.from:he.to,ye?"after":"before"),"line",y,b);mi(at,ie,le,!0)&&at.top>le&&(he=E[ce-1])}return he}function oo(a,y,x,b,E,ie,le){var ce=Ii(a,y,b,le),he=ce.begin,ye=ce.end;/\s/.test(y.text.charAt(ye-1))&&ye--;for(var at=null,yt=null,qt=0;qt=ye||Vt.to<=he)){var wn=Vt.level!=1,Fn=Gi(a,b,wn?Math.min(ye,Vt.to)-1:Math.max(he,Vt.from)).right,Vn=FnVn)&&(at=Vt,yt=Vn)}}return at||(at=E[E.length-1]),at.fromye&&(at={from:at.from,to:ye,level:at.level}),at}var zi;function Hi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(zi==null){zi=ht("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)zi.appendChild(document.createTextNode("x")),zi.appendChild(ht("br"));zi.appendChild(document.createTextNode("x"))}bt(a.measure,zi);var x=zi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),kt(a.measure),x||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=ht("span","xxxxxxxxxx"),x=ht("pre",[y],"CodeMirror-line-like");bt(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,ie=y.gutters.firstChild,le=0;ie;ie=ie.nextSibling,++le){var ce=a.display.gutterSpecs[le].className;x[ce]=ie.offsetLeft+ie.clientLeft+E,b[ce]=ie.clientWidth}return{fixedPos:Ua(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ua(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=Hi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(E){if(Tn(a.doc,E))return 0;var ie=0;if(E.widgets)for(var le=0;le0&&(ye=jt(a.doc,he.line).text).length==he.ch){var at=xe(ye,ye.length,a.options.tabSize)-ye.length;he=Oe(he.line,Math.max(0,Math.round((ie-eo(a.display).left)/Qi(a.display))-at))}return he}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)Un&&yn(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 ie=Ea(a,x,x+b,1);ie?(E.view=E.view.slice(ie.index),E.viewFrom=ie.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),he=Ea(a,x,x+b,1);ce&&he?(E.view=E.view.slice(0,ce.index).concat(Xr(a,ce.lineN,he.lineN)).concat(E.view.slice(he.index)),E.viewTo+=b):ho(a)}var ye=E.externalMeasured;ye&&(x=E.lineN&&y=b.viewTo)){var ie=b.view[wo(a,y)];if(ie.node!=null){var le=ie.changes||(ie.changes=[]);Ct(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),ie,le=a.display.view;if(!Un||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ce=a.display.viewFrom,he=0;he0){if(E==le.length-1)return null;ie=ce+le[E].size-y,E++}else ie=ce-y;y+=ie,x+=ie}for(;yn(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=Xr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=Xr(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()||Ao(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,Ao(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(un(a,"focus",a,y),a.state.focused=!0,ue(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ne&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Ao(a,y){a.state.delayingBlurEvent||(a.state.focused&&(un(a,"blur",a,y),a.state.focused=!1,Ge(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||at<-.005)&&(xn(E.line,le),Ol(E.line),E.rest))for(var yt=0;yta.display.sizerWidth){var qt=Math.ceil(ce/Qi(a.display));qt>a.display.maxLineLength&&(a.display.maxLineLength=qt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Ol(a){if(a.widgets)for(var y=0;y=le&&(ie=rt(y,fr(jt(y,he))-a.wrapper.clientHeight),le=he)}return{from:ie,to:Math.max(le,ie+1)}}function js(a,y){if(!Tt(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&&!Ot){var ie=ht("div","\u200B",null,`position: absolute; top: `+(y.top-x.viewOffset-ai(a.display))+`px; height: `+(y.bottom-y.top+$i(a)+x.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ie),ie.scrollIntoView(E),a.display.lineSpace.removeChild(ie)}}}function Ws(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Oe(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Oe(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var le=!1,ce=Bi(a,y),he=!x||x==y?ce:Bi(a,x);E={left:Math.min(ce.left,he.left),top:Math.min(ce.top,he.top)-b,right:Math.max(ce.left,he.left),bottom:Math.max(ce.bottom,he.bottom)+b};var ye=Qa(a,E),at=a.doc.scrollTop,yt=a.doc.scrollLeft;if(ye.scrollTop!=null&&(qo(a,ye.scrollTop),Math.abs(a.doc.scrollTop-at)>1&&(le=!0)),ye.scrollLeft!=null&&(Eo(a,ye.scrollLeft),Math.abs(a.doc.scrollLeft-yt)>1&&(le=!0)),!le)break}return E}function Zs(a,y){var x=Qa(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Qa(a,y){var x=a.display,b=Hi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ie=io(a),le={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var ce=a.doc.height+Vi(x),he=y.topce-b;if(y.topE+ie){var at=Math.min(y.top,(ye?ce:y.bottom)-ie);at!=E&&(le.scrollTop=at)}var yt=a.options.fixedGutter?0:x.gutters.offsetWidth,qt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-yt,Vt=to(a)-x.gutters.offsetWidth,wn=y.right-y.left>Vt;return wn&&(y.right=y.left+Vt),y.left<10?le.scrollLeft=0:y.leftVt+qt-3&&(le.scrollLeft=y.right+(wn?0:10)-Vt),le}function Ja(a,y){y!=null&&(Da(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function ko(a){Da(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Jo(a,y,x){(y!=null||x!=null)&&Da(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function _s(a,y){Da(a),a.curOp.scrollToPos=y}function Da(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=_r(a,y.from),b=_r(a,y.to);Dl(a,x,b,y.margin)}}function Dl(a,y,x,b){var E=Qa(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});Jo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),Ml(a,y,!0),z&&el(a),na(a,100))}function Ml(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,kl(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+$i(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=ht("div",[ht("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=ht("div",[ht("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,be&&Pe<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 ie=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ie)+"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=ke&&!Ee?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new de,this.disableVert=new de},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),ie=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);ie!=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;Tl(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),Tl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Tl(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 Ll={native:Io,null:ta};function Bl(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ge(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Ll[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&&ue(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=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:++Vs},Zr(a.curOp)}function Oo(a){var y=a.curOp;y&&Or(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Ma(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ks(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+$i(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=jn(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ie){if(b.line>=a.display.viewFrom){var le=ie.styles,ce=ie.text.length>a.options.maxHighlightLength?Nn(y.mode,b.state):null,he=hn(a,ie,b,!0);ce&&(b.state=ce),ie.styles=he.styles;var ye=ie.styleClasses,at=he.classes;at?ie.styleClasses=at:ye&&(ie.styleClasses=null);for(var yt=!le||le.length!=ie.styles.length||ye!=at&&(!ye||!at||ye.bgClass!=at.bgClass||ye.textClass!=at.textClass),qt=0;!yt&&qtx)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&ji(a,function(){for(var ie=0;ie=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,ie=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)),Un&&(ie=yn(a.doc,ie),le=mn(a.doc,le));var ce=ie!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,ie,le),x.viewOffset=fr(jt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var he=Sl(a);if(!ce&&he==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var ye=eu(a);return he>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),he>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(ye),kt(x.cursorDiv),kt(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 Al(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);Qo(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 Ma(a,y);if(qa(a,x)){Pa(a),Al(a,x);var b=ea(a);Qo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,ie=b.lineDiv,le=ie.firstChild;function ce(wn){var Fn=wn.nextSibling;return Ne&&ke&&a.display.currentWheelTarget==wn?wn.style.display="none":wn.parentNode.removeChild(wn),Fn}for(var he=b.view,ye=b.viewFrom,at=0;at-1&&(Vt=!1),Li(a,yt,ye,x)),Vt&&(kt(yt.lineNumber),yt.lineNumber.appendChild(document.createTextNode(je(a.options,ye)))),le=yt.node.nextSibling}ye+=yt.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+$i(a)+"px"}function kl(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ua(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,ie=b+"px",le=0;lele.clientWidth,he=le.scrollHeight>le.clientHeight;if(b&&ce||E&&he){if(E&&ke&&Ne){e:for(var ye=y.target,at=ie.view;ye!=le;ye=ye.parentNode)for(var yt=0;yt=0&&We(a,b.to())<=0)return x}return-1};var Yr=function(a,y){this.anchor=a,this.head=y};Yr.prototype.from=function(){return xt(this.anchor,this.head)},Yr.prototype.to=function(){return ct(this.anchor,this.head)},Yr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ji(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(qt,Vt){return We(qt.from(),Vt.from())}),x=Ct(y,E);for(var ie=1;ie0:he>=0){var ye=xt(ce.from(),le.from()),at=ct(ce.to(),le.to()),yt=ce.empty()?le.from()==le.head:ce.from()==ce.head;ie<=x&&--x,y.splice(--ie,2,new Yr(yt?at:ye,yt?ye:at))}}return new _i(y,x)}function po(a,y){return new _i([new Yr(a,y||a)],0)}function mo(a){return a.text?Oe(a.from.line+a.text.length-1,He(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function zl(a,y){if(We(a,y.from)<0)return a;if(We(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),Oe(x,b)}function il(a,y){for(var x=[],b=0;b1&&a.remove(ce.line+1,wn-1),a.insert(ce.line+1,qn)}Rr(a,"change",a,y)}function go(a,y,x){function b(E,ie,le){if(E.linked)for(var ce=0;ce1&&!a.done[a.done.length-2].ranges)return a.done.pop(),He(a.done)}function Vl(a,y,x,b){var E=a.history;E.undone.length=0;var ie=+new Date,le,ce;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ce=He(le.changes),We(y.from,y.to)==0&&We(y.from,ce.to)==0?ce.to=mo(y):le.changes.push(ll(a,y));else{var he=He(E.done);for((!he||!he.ranges)&&Ba(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=ie,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ce||un(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,ie=b&&b.origin;x==E.lastSelOp||ie&&E.lastSelOrigin==ie&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==ie||su(a,ie,He(E.done),y))?E.done[E.done.length-1]=y:Ba(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=ie,E.lastSelOp=x,b&&b.clearRedo!==!1&&_l(E.undone)}function Ba(a,y){var x=He(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Gl(a,y,x,b){var E=y["spans_"+a.id],ie=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]={}))[ie]=le.markedSpans),++ie})}function cu(a){if(!a)return null;for(var y,x=0;x-1&&(He(ce)[yt]=ye[yt],delete ye[yt])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var ie=We(y,E)<0;ie!=We(x,E)<0?(E=y,y=x):ie!=We(y,x)<0&&(y=x)}return new Yr(E,y)}else return new Yr(x||y,y)}function Aa(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),Pi(a,new _i([sl(a.sel.primary(),y,x,E)],0),b)}function Kl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie=y.ch:ce.to>y.ch))){if(E&&(un(he,"beforeCursorEnter"),he.explicitlyCleared))if(ie.markedSpans){--le;continue}else break;if(!he.atomic)continue;if(x){var yt=he.find(b<0?1:-1),qt=void 0;if((b<0?at:ye)&&(yt=es(a,yt,-b,yt&&yt.line==y.line?ie:null)),yt&&yt.line==y.line&&(qt=We(yt,x))&&(b<0?qt<0:qt>0))return Fo(a,yt,y,b,E)}var Vt=he.find(b<0?-1:1);return(b<0?ye:at)&&(Vt=es(a,Vt,b,Vt.line==y.line?ie:null)),Vt?Fo(a,Vt,y,b,E):null}}return y}function Na(a,y,x,b,E){var ie=b||1,le=Fo(a,y,x,ie,E)||!E&&Fo(a,y,x,ie,!0)||Fo(a,y,x,-ie,E)||!E&&Fo(a,y,x,-ie,!0);return le||(a.cantEdit=!0,Oe(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Ze(a,Oe(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]==""&&We(y.from,y.to)==0)){var x=il(a,y);Vl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,vr(a,y));var b=[];go(a,function(E,ie){!ie&&Ct(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,vr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,ie,le=a.sel,ce=y=="undo"?E.done:E.undone,he=y=="undo"?E.undone:E.done,ye=0;ye=0;--Vt){var wn=qt(Vt);if(wn)return wn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new _i(Qt(a.sel.ranges,function(E){return new Yr(Oe(E.anchor.line+y,E.anchor.ch),Oe(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Ai(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;ba.lastLine())){if(y.from.lineie&&(y={from:y.from,to:Oe(ie,jt(a,ie).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),ka(a,x,me),a.cantEdit&&Na(a,Oe(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,ie=y.from,le=y.to,ce=!1,he=ie.line;a.options.lineWrapping||(he=Re(gn(jt(b,ie.line))),b.iter(he,le.line+1,function(Vt){if(Vt==E.maxLine)return ce=!0,!0})),b.sel.contains(y.from,y.to)>-1&&an(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(he,ie.line+y.text.length,function(Vt){var wn=Br(Vt);wn>E.maxLineLength&&(E.maxLine=Vt,E.maxLineLength=wn,E.maxLineChanged=!0,ce=!1)}),ce&&(a.curOp.updateMaxLine=!0)),An(b,ie.line),na(a,400);var ye=y.text.length-(le.line-ie.line)-1;y.full?Ai(a):ie.line==le.line&&y.text.length==1&&!jl(a.doc,y)?fo(a,ie.line,"text"):Ai(a,ie.line,le.line+1,ye);var at=Gt(a,"changes"),yt=Gt(a,"change");if(yt||at){var qt={from:ie,to:le,text:y.text,removed:y.removed,origin:y.origin};yt&&Rr(a,"change",a,qt),at&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(qt)}a.display.selForContextMenu=null}function zo(a,y,x,b,E){var ie;b||(b=x),We(b,x)<0&&(ie=[b,x],x=ie[0],b=ie[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=ye,a.display.maxLineLength=at,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Ai(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Jl(a.doc)),a&&Rr(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&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=Lt("span",[ie.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(Sn(a,y.line,y,x,ie)||y.line!=x.line&&Sn(a,x.line,y,x,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");mr()}ie.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ce=y.line,he=a.cm,ye;if(a.iter(ce,x.line+1,function(yt){he&&ie.collapsed&&!he.options.lineWrapping&&gn(yt)==he.display.maxLine&&(ye=!0),ie.collapsed&&ce!=y.line&&xn(yt,0),ar(yt,new ur(ie,ce==y.line?y.ch:null,ce==x.line?x.ch:null)),++ce}),ie.collapsed&&a.iter(y.line,x.line+1,function(yt){Tn(a,yt)&&xn(yt,0)}),ie.clearOnEnter&&Zt(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(dr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++us,ie.atomic=!0),he){if(ye&&(he.curOp.updateMaxLine=!0),ie.collapsed)Ai(he,y.line,x.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var at=y.line;at<=x.line;at++)fo(he,at,"text");ie.atomic&&Jl(he.doc),Rr(he,"markerAdded",he,ie)}return ie}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;he--)$o(this,b[he]);ce?Yl(this,ce):this.cm&&ko(this.cm)}),undo:bi(function(){Ra(this,"undo")}),redo:bi(function(){Ra(this,"redo")}),undoSelection:bi(function(){Ra(this,"undo",!0)}),redoSelection:bi(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=Ze(this,a),y=Ze(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(ie){var le=ie.markedSpans;if(le)for(var ce=0;ce=he.to||he.from==null&&E!=a.line||he.from!=null&&E==y.line&&he.from>=y.ch)&&(!x||x(he.marker))&&b.push(he.marker.parent||he.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-=ie,++x}),Ze(this,Oe(x,y))},indexFromPos:function(a){a=Ze(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 at=a.dataTransfer.getData("Text");if(at){var yt;if(y.state.draggingText&&!y.state.draggingText.copy&&(yt=y.listSelections()),ka(y.doc,po(x,x)),yt)for(var qt=0;qt=0;ce--)zo(a.doc,"",b[ce].from,b[ce].to,"+delete");ko(a)})}function cl(a,y,x){var b=gt(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 Oe(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var ie=we(x,y.doc.direction);if(ie){var le=E<0?He(ie):ie[0],ce=E<0==(le.level==1),he=ce?"after":"before",ye;if(le.level>0||y.doc.direction=="rtl"){var at=uo(y,x);ye=E<0?x.text.length-1:0;var yt=Gi(y,at,ye).top;ye=Te(function(qt){return Gi(y,at,qt).top==yt},E<0==(le.level==1)?le.from:le.to-1,ye),he=="before"&&(ye=cl(x,ye,1))}else ye=E<0?le.to:le.from;return new Oe(b,ye,he)}}return new Oe(b,E<0?x.text.length:0,E<0?"before":"after")}function Ou(a,y,x,b){var E=we(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 ie=Bt(E,x.ch,x.sticky),le=E[ie];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from=le.from&&qt>=at.begin)){var Vt=yt?"before":"after";return new Oe(x.line,qt,Vt)}}var wn=function(qn,ir,er){for(var lr=function(qr,xi){return xi?new Oe(x.line,ce(qr,1),"before"):new Oe(x.line,qr,"after")};qn>=0&&qn0==(Sr.level!=1),Fr=gr?er.begin:ce(er.end,-1);if(Sr.from<=Fr&&Fr0?at.end:ce(at.begin,-1);return Vn!=null&&!(b>0&&Vn==y.text.length)&&(Fn=wn(b>0?0:E.length-1,b,ye(Vn)),Fn)?Fn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),me)},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 Oe(E.line,E.ch+1),a.replaceRange(ie.charAt(E.ch-1)+ie.charAt(E.ch-2),Oe(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 Oe(E.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Oe(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Yr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return ji(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&&We(y,this.pos)==0&&x==this.button};var ma,ga;function ku(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(!(Tt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,Si(x,a)){Ne||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),E=pt(a),ie=b?ku(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,ie,a))&&(E==1?b?Fu(y,b,ie,a):Xe(a)==x.scroller&&st(a):E==2?(b&&Aa(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(ut?y.display.input.onContextMenu(a):Pl(y)))}}}function Nu(a,y,x,b,E){var ie="Click";return b=="double"?ie="Double"+ie:b=="triple"&&(ie="Triple"+ie),ie=(y==1?"Left":y==2?"Middle":"Right")+ie,pa(a,gs(ie,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)!=wt}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 ie=ft?x.shiftKey&&x.metaKey:x.altKey;E.unit=ie?"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=ke?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(ke?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){be?setTimeout(Ve(Il,a),0):a.curOp.focus=Fe();var E=Ru(a,x,b),ie=a.doc.sel,le;a.options.dragDrop&&Dt&&!a.isReadOnly()&&x=="single"&&(le=ie.contains(y))>-1&&(We((le=ie.ranges[le]).from(),y)<0||y.xRel>0)&&(We(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,ie=!1,le=yi(a,function(ye){Ne&&(E.scroller.draggable=!1),a.state.draggingText=!1,en(E.wrapper.ownerDocument,"mouseup",le),en(E.wrapper.ownerDocument,"mousemove",ce),en(E.scroller,"dragstart",he),en(E.scroller,"drop",le),ie||(st(ye),b.addNew||Aa(a.doc,x,null,null,b.extend),Ne&&!tt||be&&Pe==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ce=function(ye){ie=ie||Math.abs(y.clientX-ye.clientX)+Math.abs(y.clientY-ye.clientY)>=10},he=function(){return ie=!0};Ne&&(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",he),Zt(E.scroller,"drop",le),Pl(a),setTimeout(function(){return E.input.focus()},20)}function Ps(a,y,x){if(x=="char")return new Yr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Yr(Oe(y.line,0),Ze(a.doc,Oe(y.line+1,0)));var b=x(a,y);return new Yr(b.from,b.to)}function zu(a,y,x,b){var E=a.display,ie=a.doc;st(y);var le,ce,he=ie.sel,ye=he.ranges;if(b.addNew&&!b.extend?(ce=ie.sel.contains(x),ce>-1?le=ye[ce]:le=new Yr(x,x)):(le=ie.sel.primary(),ce=ie.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Yr(x,x)),x=So(a,y,!0,!0),ce=-1;else{var at=Ps(a,x,b.unit);b.extend?le=sl(le,at.anchor,at.head,b.extend):le=at}b.addNew?ce==-1?(ce=ye.length,Pi(ie,Ji(a,ye.concat([le]),ce),{scroll:!1,origin:"*mouse"})):ye.length>1&&ye[ce].empty()&&b.unit=="char"&&!b.extend?(Pi(ie,Ji(a,ye.slice(0,ce).concat(ye.slice(ce+1)),0),{scroll:!1,origin:"*mouse"}),he=ie.sel):ul(ie,ce,le,$e):(ce=0,Pi(ie,new _i([le],0),$e),he=ie.sel);var yt=x;function qt(er){if(We(yt,er)!=0)if(yt=er,b.unit=="rectangle"){for(var lr=[],Sr=a.options.tabSize,gr=xe(jt(ie,x.line).text,x.ch,Sr),Fr=xe(jt(ie,er.line).text,er.ch,Sr),qr=Math.min(gr,Fr),xi=Math.max(gr,Fr),ni=Math.min(x.line,er.line),Wi=Math.min(a.lastLine(),Math.max(x.line,er.line));ni<=Wi;ni++){var Ni=jt(ie,ni).text,di=$t(Ni,qr,Sr);qr==xi?lr.push(new Yr(Oe(ni,di),Oe(ni,di))):Ni.length>di&&lr.push(new Yr(Oe(ni,di),Oe(ni,$t(Ni,xi,Sr))))}lr.length||lr.push(new Yr(x,x)),Pi(ie,Ji(a,he.ranges.slice(0,ce).concat(lr),ce),{origin:"*mouse",scroll:!1}),a.scrollIntoView(er)}else{var Ri=le,Ei=Ps(a,er,b.unit),gi=Ri.anchor,fi;We(Ei.anchor,gi)>0?(fi=Ei.head,gi=xt(Ri.from(),Ei.anchor)):(fi=Ei.anchor,gi=ct(Ri.to(),Ei.head));var ri=he.ranges.slice(0);ri[ce]=Hu(a,new Yr(Ze(ie,gi),fi)),Pi(ie,Ji(a,ri,ce),$e)}}var Vt=E.wrapper.getBoundingClientRect(),wn=0;function Fn(er){var lr=++wn,Sr=So(a,er,!0,b.unit=="rectangle");if(Sr)if(We(Sr,yt)!=0){a.curOp.focus=Fe(),qt(Sr);var gr=Oa(E,ie);(Sr.line>=gr.to||Sr.lineVt.bottom?20:0;Fr&&setTimeout(yi(a,function(){wn==lr&&(E.scroller.scrollTop+=Fr,Fn(er))}),50)}}function Vn(er){a.state.selectingText=!1,wn=1/0,er&&(st(er),E.input.focus()),en(E.wrapper.ownerDocument,"mousemove",qn),en(E.wrapper.ownerDocument,"mouseup",ir),ie.history.lastSelOrigin=null}var qn=yi(a,function(er){er.buttons===0||!pt(er)?Vn(er):Fn(er)}),ir=yi(a,Vn);a.state.selectingText=ir,Zt(E.wrapper.ownerDocument,"mousemove",qn),Zt(E.wrapper.ownerDocument,"mouseup",ir)}function Hu(a,y){var x=y.anchor,b=y.head,E=jt(a.doc,x.line);if(We(x,b)==0&&x.sticky==b.sticky)return y;var ie=we(E);if(!ie)return y;var le=Bt(ie,x.ch,x.sticky),ce=ie[le];if(ce.from!=x.ch&&ce.to!=x.ch)return y;var he=le+(ce.from==x.ch==(ce.level!=1)?0:1);if(he==0||he==ie.length)return y;var ye;if(b.line!=x.line)ye=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var at=Bt(ie,b.ch,b.sticky),yt=at-le||(b.ch-x.ch)*(ce.level==1?-1:1);at==he-1||at==he?ye=yt<0:ye=yt>0}var qt=ie[he+(ye?-1:0)],Vt=ye==(qt.level==1),wn=Vt?qt.from:qt.to,Fn=Vt?"after":"before";return x.ch==wn&&x.sticky==Fn?y:new Yr(new Oe(x.line,wn,Fn),b)}function Os(a,y,x,b){var E,ie;if(y.touches)E=y.touches[0].clientX,ie=y.touches[0].clientY;else try{E=y.clientX,ie=y.clientY}catch(qt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&st(y);var le=a.display,ce=le.lineDiv.getBoundingClientRect();if(ie>ce.bottom||!Gt(a,x))return _t(y);ie-=ce.top-le.viewOffset;for(var he=0;he=E){var at=rt(a.doc,ie),yt=a.display.gutterSpecs[he];return un(a,x,a,at,yt.className,y),_t(y)}}}function ml(a,y){return Os(a,y,"gutterClick",!0)}function Ds(a,y){Si(a.display,y)||ju(a,y)||Tt(a,y,"contextmenu")||ut||a.display.input.onContextMenu(y)}function ju(a,y){return Gt(a,"gutterContextMenu")?Os(a,y,"gutterContextMenu",!1):!1}function Ms(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"}},Ts={},Ha={};function Wu(a){var y=a.optionHandlers;function x(b,E,ie,le){a.defaults[b]=E,ie&&(y[b]=le?function(ce,he,ye){ye!=Zo&&ie(ce,he,ye)}:ie)}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),Ai(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var ie=[],le=b.doc.first;b.doc.iter(function(he){for(var ye=0;;){var at=he.text.indexOf(E,ye);if(at==-1)break;ye=at+E.length,ie.push(Oe(le,at))}le++});for(var ce=ie.length-1;ce>=0;ce--)zo(b.doc,E,ie[ce],Oe(ie[ce].line,ie[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,ie){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),ie!=Zo&&b.refresh()}),x("specialCharPlaceholder",ui,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ke?"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",!Et),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ms(b),ra(b)},!0),x("keyMap","default",function(b,E,ie){var le=$a(E),ce=ie!=Zo&&$a(ie);ce&&ce.detach&&ce.detach(b,le),le.attach&&le.attach(b,ce||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,_u,!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?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Bl(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,Qo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Ao(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,Qo,!0),x("singleCursorHeightPerLine",!0,Qo,!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,ie=y?Zt:en;ie(a.display.scroller,"dragstart",E.start),ie(a.display.scroller,"dragenter",E.enter),ie(a.display.scroller,"dragover",E.over),ie(a.display.scroller,"dragleave",E.leave),ie(a.display.scroller,"drop",E.drop)}}function _u(a){a.options.lineWrapping?(ue(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ge(a.display.wrapper,"CodeMirror-wrap"),Er(a)),Ka(a),Ai(a),Co(a),setTimeout(function(){return No(a)},100)}function ti(a,y){var x=this;if(!(this instanceof ti))return new ti(a,y);this.options=y=y?Nt(y):{},Nt(Ts,y,!1);var b=y.value;typeof b=="string"?b=new ki(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new ti.inputStyles[y.inputStyle](this),ie=this.display=new ru(a,b,E,y);ie.wrapper.CodeMirror=this,Ms(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bl(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 de,keySeq:null,specialChars:null},y.autofocus&&!Ke&&ie.input.focus(),be&&Pe<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),Po(this),this.curOp.forceUpdate=!0,Wl(this,b),y.autofocus&&!Ke||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Ao(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(he){if(!Tt(a,he)&&!ie(he)&&!ml(a,he)){y.input.ensurePolled(),clearTimeout(x);var ye=+new Date;y.activeTouch={start:ye,moved:!1,prev:ye-b.end<=300?b:null},he.touches.length==1&&(y.activeTouch.left=he.touches[0].pageX,y.activeTouch.top=he.touches[0].pageY)}}),Zt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Zt(y.scroller,"touchend",function(he){var ye=y.activeTouch;if(ye&&!Si(y,he)&&ye.left!=null&&!ye.moved&&new Date-ye.start<300){var at=a.coordsChar(y.activeTouch,"page"),yt;!ye.prev||le(ye,ye.prev)?yt=new Yr(at,at):!ye.prev.prev||le(ye,ye.prev.prev)?yt=a.findWordAt(at):yt=new Yr(Oe(at.line,0),Ze(a.doc,Oe(at.line+1,0))),a.setSelection(yt.anchor,yt.head),a.focus(),st(he)}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),un(a,"scroll",a))}),Zt(y.scroller,"mousewheel",function(he){return $l(a,he)}),Zt(y.scroller,"DOMMouseScroll",function(he){return $l(a,he)}),Zt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(he){Tt(a,he)||De(he)},over:function(he){Tt(a,he)||(Cu(a,he),De(he))},start:function(he){return xu(a,he)},drop:yi(a,bu),leave:function(he){Tt(a,he)||fs(a)}};var ce=y.input.getField();Zt(ce,"keyup",function(he){return ws.call(a,he)}),Zt(ce,"keydown",yi(a,Ss)),Zt(ce,"keypress",yi(a,Es)),Zt(ce,"focus",function(he){return Ya(a,he)}),Zt(ce,"blur",function(he){return Ao(a,he)})}var gl=[];ti.defineInitHook=function(a){return gl.push(a)};function va(a,y,x,b){var E=a.doc,ie;x==null&&(x="add"),x=="smart"&&(E.mode.indent?ie=jn(a,y).state:x="prev");var le=a.options.tabSize,ce=jt(E,y),he=xe(ce.text,null,le);ce.stateAfter&&(ce.stateAfter=null);var ye=ce.text.match(/^\s*/)[0],at;if(!b&&!/\S/.test(ce.text))at=0,x="not";else if(x=="smart"&&(at=E.mode.indent(ie,ce.text.slice(ye.length),ce.text),at==wt||at>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?at=xe(jt(E,y-1).text,null,le):at=0:x=="add"?at=he+a.options.indentUnit:x=="subtract"?at=he-a.options.indentUnit:typeof x=="number"&&(at=he+x),at=Math.max(0,at);var yt="",qt=0;if(a.options.indentWithTabs)for(var Vt=Math.floor(at/le);Vt;--Vt)qt+=le,yt+=" ";if(qtle,he=rn(y),ye=null;if(ce&&b.ranges.length>1)if(qi&&qi.text.join(` `)==y){if(b.ranges.length%qi.text.length==0){ye=[];for(var at=0;at=0;qt--){var Vt=b.ranges[qt],wn=Vt.from(),Fn=Vt.to();Vt.empty()&&(x&&x>0?wn=Oe(wn.line,wn.ch-x):a.state.overwrite&&!ce?Fn=Oe(Fn.line,Math.min(jt(ie,Fn.line).text.length,Fn.ch+He(he).length)):ce&&qi&&qi.lineWise&&qi.text.join(` `)==he.join(` `)&&(wn=Fn=Oe(wn.line,0)));var Vn={from:wn,to:Fn,text:ye?ye[qt%ye.length]:he,origin:E||(ce?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,Vn),Rr(a,"inputRead",a,Vn)}y&&!ce&&Bs(a,y),ko(a),a.curOp.updateInput<2&&(a.curOp.updateInput=yt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ls(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&ji(y,function(){return vl(y,x,0,null,"paste")}),!0}function Bs(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 ie=a.getModeAt(E.head),le=!1;if(ie.electricChars){for(var ce=0;ce-1){le=va(a,E.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(jt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=va(a,E.head.line,"smart"));le&&Rr(a,"electricInput",a,E.head.line)}}}function As(a){for(var y=[],x=[],b=0;bie&&(va(this,ce.head.line,b,!0),ie=ce.head.line,le==this.doc.sel.primIndex&&ko(this));else{var he=ce.from(),ye=ce.to(),at=Math.max(ie,he.line);ie=Math.min(this.lastLine(),ye.line-(ye.ch?0:1))+1;for(var yt=at;yt0&&ul(this.doc,le,new Yr(he,qt[le].to()),me)}}}),getTokenAt:function(b,E){return _n(this,b,E)},getLineTokens:function(b,E){return _n(this,Oe(b),E,!0)},getTokenTypeAt:function(b){b=Ze(this.doc,b);var E=$n(this,jt(this.doc,b.line)),ie=0,le=(E.length-1)/2,ce=b.ch,he;if(ce==0)he=E[2];else for(;;){var ye=ie+le>>1;if((ye?E[ye*2-1]:0)>=ce)le=ye;else if(E[ye*2+1]he&&(b=he,le=!0),ce=jt(this.doc,b)}else ce=b;return Lo(this,ce,{top:0,left:0},E||"page",ie||le).top+(le?this.doc.height-fr(ce):0)},defaultTextHeight:function(){return Hi(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,ie,le,ce){var he=this.display;b=Bi(this,Ze(this.doc,b));var ye=b.bottom,at=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),he.sizer.appendChild(E),le=="over")ye=b.top;else if(le=="above"||le=="near"){var yt=Math.max(he.wrapper.clientHeight,this.doc.height),qt=Math.max(he.sizer.clientWidth,he.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>yt)&&b.top>E.offsetHeight?ye=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=yt&&(ye=b.bottom),at+E.offsetWidth>qt&&(at=qt-E.offsetWidth)}E.style.top=ye+"px",E.style.left=E.style.right="",ce=="right"?(at=he.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ce=="left"?at=0:ce=="middle"&&(at=(he.sizer.clientWidth-E.offsetWidth)/2),E.style.left=at+"px"),ie&&Zs(this,{left:at,top:ye,right:at+E.offsetWidth,bottom:ye+E.offsetHeight})},triggerOnKeyDown:Mi(Ss),triggerOnKeyPress:Mi(Es),triggerOnKeyUp:ws,triggerOnMouseDown:Mi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Mi(function(b){Bs(this,b)}),findPosH:function(b,E,ie,le){var ce=1;E<0&&(ce=-1,E=-E);for(var he=Ze(this.doc,b),ye=0;ye0&&at(ie.charAt(le-1));)--le;for(;ce.5||this.options.lineWrapping)&&Ka(this),un(this,"refresh",this)}),swapDoc:Mi(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(),Jo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Rr(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,ie){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=ie},a.registerGlobalHelper=function(b,E,ie,le){a.registerHelper(b,E,le),x[b]._global.push({pred:ie,val:le})}}function yl(a,y,x,b,E){var ie=y,le=x,ce=jt(a,y.line),he=E&&a.direction=="rtl"?-x:x;function ye(){var ir=y.line+he;return ir=a.first+a.size?!1:(y=new Oe(ir,y.ch,y.sticky),ce=jt(a,ir))}function at(ir){var er;if(b=="codepoint"){var lr=ce.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(lr)?er=null:er=new Oe(y.line,Math.max(0,Math.min(ce.text.length,y.ch+x*(lr>=55296&&lr<56320?2:1))),-x)}else E?er=Ou(a.cm,ce,y,x):er=dl(ce,y,x);if(er==null)if(!ir&&ye())y=fl(E,a.cm,ce,y.line,he);else return!1;else y=er;return!0}if(b=="char"||b=="codepoint")at();else if(b=="column")at(!0);else if(b=="word"||b=="group")for(var yt=null,qt=b=="group",Vt=a.cm&&a.cm.getHelper(y,"wordChars"),wn=!0;!(x<0&&!at(!wn));wn=!1){var Fn=ce.text.charAt(y.ch)||` `,Vn=se(Fn,Vt)?"w":qt&&Fn==` `?"n":!qt||/\s/.test(Fn)?null:"p";if(qt&&!wn&&!Vn&&(Vn="s"),yt&&yt!=Vn){x<0&&(x=1,at(),y.sticky="after");break}if(Vn&&(yt=Vn),x>0&&!at(!wn))break}var qn=Na(a,y,ie,le,!0);return ge(ie,qn)&&(qn.hitSide=!0),qn}function Rs(a,y,x,b){var E=a.doc,ie=y.left,le;if(b=="page"){var ce=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),he=Math.max(ce-.5*Hi(a.display),3);le=(x>0?y.bottom:y.top)+x*he}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var ye;ye=wi(a,ie,le),!!ye.outside;){if(x<0?le<=0:le>=E.height){ye.hitSide=!0;break}le+=x*5}return ye}var Qr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new de,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Qr.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;ks(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ie(ce){for(var he=ce.target;he;he=he.parentNode){if(he==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(he.className))break}return!1}Zt(E,"paste",function(ce){!ie(ce)||Tt(b,ce)||Ls(ce,b)||Pe<=11&&setTimeout(yi(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(!(!ie(ce)||Tt(b,ce))){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()}),ce.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var he=As(b);ja({lineWise:!0,text:he.text}),ce.type=="cut"&&b.operation(function(){b.setSelections(he.ranges,0,me),b.replaceSelection("",null,"cut")})}else return;if(ce.clipboardData){ce.clipboardData.clearData();var ye=qi.text.join(` `);if(ce.clipboardData.setData("Text",ye),ce.clipboardData.getData("Text")==ye){ce.preventDefault();return}}var at=Ns(),yt=at.firstChild;b.display.lineSpace.insertBefore(at,b.display.lineSpace.firstChild),yt.value=qi.text.join(` `);var qt=document.activeElement;Be(yt),setTimeout(function(){b.display.lineSpace.removeChild(at),qt.focus(),qt==E&&x.showPrimarySelection()},50)}}Zt(E,"copy",le),Zt(E,"cut",le)},Qr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Qr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Qr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Qr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qr.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},ye=E.linea.firstLine()&&(b=Oe(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 ie,le,ce;b.line==y.viewFrom||(ie=wo(a,b.line))==0?(le=Re(y.view[0].line),ce=y.view[0].node):(le=Re(y.view[ie].line),ce=y.view[ie-1].node.nextSibling);var he=wo(a,E.line),ye,at;if(he==y.view.length-1?(ye=y.viewTo-1,at=y.lineDiv.lastChild):(ye=Re(y.view[he+1].line)-1,at=y.view[he+1].node.previousSibling),!ce)return!1;for(var yt=a.doc.splitLines(Ku(a,ce,at,le,ye)),qt=on(a.doc,Oe(le,0),Oe(ye,jt(a.doc,ye).text.length));yt.length>1&&qt.length>1;)if(He(yt)==He(qt))yt.pop(),qt.pop(),ye--;else if(yt[0]==qt[0])yt.shift(),qt.shift(),le++;else break;for(var Vt=0,wn=0,Fn=yt[0],Vn=qt[0],qn=Math.min(Fn.length,Vn.length);Vtb.ch&&ir.charCodeAt(ir.length-wn-1)==er.charCodeAt(er.length-wn-1);)Vt--,wn++;yt[yt.length-1]=ir.slice(0,ir.length-wn).replace(/^\u200b+/,""),yt[0]=yt[0].slice(Vt).replace(/\u200b+$/,"");var Sr=Oe(le,Vt),gr=Oe(ye,qt.length?He(qt).length-wn:0);if(yt.length>1||yt[0]||We(Sr,gr))return zo(a.doc,yt,Sr,gr,"+input"),!0},Qr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qr.prototype.reset=function(){this.forceCompositionEnd()},Qr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qr.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))},Qr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&ji(this.cm,function(){return Ai(a.cm)})},Qr.prototype.setUneditable=function(a){a.contentEditable="false"},Qr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||yi(this.cm,vl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Qr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Qr.prototype.onContextMenu=function(){},Qr.prototype.resetPosition=function(){},Qr.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=To(x,b,y.line),ie=we(b,a.doc.direction),le="left";if(ie){var ce=Bt(ie,y.ch);le=ce%2?"right":"left"}var he=xa(E.map,y.ch,le);return he.offset=he.collapse=="right"?he.end:he.start,he}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function _o(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,E){var ie="",le=!1,ce=a.doc.lineSeparator(),he=!1;function ye(Vt){return function(wn){return wn.id==Vt}}function at(){le&&(ie+=ce,he&&(ie+=ce),le=he=!1)}function yt(Vt){Vt&&(at(),ie+=Vt)}function qt(Vt){if(Vt.nodeType==1){var wn=Vt.getAttribute("cm-text");if(wn){yt(wn);return}var Fn=Vt.getAttribute("cm-marker"),Vn;if(Fn){var qn=a.findMarks(Oe(b,0),Oe(E+1,0),ye(+Fn));qn.length&&(Vn=qn[0].find(0))&&yt(on(a.doc,Vn.from,Vn.to).join(ce));return}if(Vt.getAttribute("contenteditable")=="false")return;var ir=/^(pre|div|p|li|table|br)$/i.test(Vt.nodeName);if(!/^br$/i.test(Vt.nodeName)&&Vt.textContent.length==0)return;ir&&at();for(var er=0;er=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Zt(E,"paste",function(le){Tt(b,le)||Ls(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ie(le){if(!Tt(b,le)){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ce=As(b);ja({lineWise:!0,text:ce.text}),le.type=="cut"?b.setSelections(ce.ranges,null,me):(x.prevInput="",E.value=ce.text.join(` `),Be(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Zt(E,"cut",ie),Zt(E,"copy",ie),Zt(a.scroller,"paste",function(le){if(!(Si(a,le)||Tt(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){Si(a,le)||st(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)})},si.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},si.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},si.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var E=Bi(a,x.sel.primary().head,"div"),ie=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-ie.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-ie.left))}return b},si.prototype.showSelection=function(a){var y=this.cm,x=y.display;bt(x.cursorDiv,a.cursors),bt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},si.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&&Be(this.textarea),be&&Pe>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",be&&Pe>=9&&(this.hasSelection=null))}},si.prototype.getField=function(){return this.textarea},si.prototype.supportsTouch=function(){return!1},si.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ke||Fe()!=this.textarea))try{this.textarea.focus()}catch(a){}},si.prototype.blur=function(){this.textarea.blur()},si.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},si.prototype.receivedFocus=function(){this.slowPoll()},si.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},si.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)},si.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||bn(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(be&&Pe>=9&&this.hasSelection===E||ke&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=E.charCodeAt(0);if(ie==8203&&!b&&(b="\u200B"),ie==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},si.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},si.prototype.onKeyPress=function(){be&&Pe>=9&&(this.hasSelection=null),this.fastPoll()},si.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ie=So(x,a),le=b.scroller.scrollTop;if(!ie||fe)return;var ce=x.options.resetSelectionOnContextMenu;ce&&x.doc.sel.contains(ie)==-1&&yi(x,Pi)(x.doc,po(ie),me);var he=E.style.cssText,ye=y.wrapper.style.cssText,at=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-at.top-5)+"px; left: "+(a.clientX-at.left-5)+`px; z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var yt;Ne&&(yt=window.scrollY),b.input.focus(),Ne&&window.scrollTo(null,yt),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Vt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function qt(){if(E.selectionStart!=null){var Fn=x.somethingSelected(),Vn="\u200B"+(Fn?E.value:"");E.value="\u21DA",E.value=Vn,y.prevInput=Fn?"":"\u200B",E.selectionStart=1,E.selectionEnd=Vn.length,b.selForContextMenu=x.doc.sel}}function Vt(){if(y.contextMenuPending==Vt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ye,E.style.cssText=he,be&&Pe<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!be||be&&Pe<9)&&qt();var Fn=0,Vn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?yi(x,ts)(x):Fn++<10?b.detectingSelectAll=setTimeout(Vn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Vn,200)}}if(be&&Pe>=9&&qt(),ut){De(a);var wn=function(){en(window,"mouseup",wn),setTimeout(Vt,20)};Zt(window,"mouseup",wn)}else setTimeout(Vt,50)},si.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},si.prototype.setUneditable=function(){},si.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?Nt(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=Fe();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 ie=a.form;E=ie.submit;try{var le=ie.submit=function(){b(),ie.submit=E,ie.submit(),ie.submit=le}}catch(he){}}y.finishInit=function(he){he.save=b,he.getTextArea=function(){return a},he.toTextArea=function(){he.toTextArea=isNaN,b(),a.parentNode.removeChild(he.getWrapperElement()),a.style.display="",a.form&&(en(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ce=ti(function(he){return a.parentNode.insertBefore(he,a.nextSibling)},y);return ce}function Qu(a){a.off=en,a.on=Zt,a.wheelEventPixels=iu,a.Doc=ki,a.splitLines=rn,a.countColumn=xe,a.findColumn=$t,a.isWordChar=oe,a.Pass=wt,a.signal=un,a.Line=$r,a.changeEnd=mo,a.scrollbarModel=Ll,a.Pos=Oe,a.cmpPos=We,a.modes=Ft,a.mimeModes=Pt,a.resolveMode=ln,a.getMode=En,a.modeExtensions=On,a.extendMode=In,a.copyState=Nn,a.startState=Qn,a.innerMode=Bn,a.commands=ha,a.keyMap=ao,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=jo,a.normalizeKeyMap=Pu,a.StringStream=Zn,a.SharedTextMarker=ca,a.TextMarker=vo,a.LineWidget=ua,a.e_preventDefault=st,a.e_stopPropagation=At,a.e_stop=De,a.addClass=ue,a.contains=_e,a.rmClass=Ge,a.keyNames=yo}Wu(ti),Gu(ti);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var Za in ki.prototype)ki.prototype.hasOwnProperty(Za)&&Ct(Ju,Za)<0&&(ti.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(ki.prototype[Za]));return Ae(ki),ti.inputStyles={textarea:si,contenteditable:Qr},ti.defineMode=function(a){!ti.defaults.mode&&a!="null"&&(ti.defaults.mode=a),nn.apply(this,arguments)},ti.defineMIME=Jt,ti.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),ti.defineMIME("text/plain","null"),ti.defineExtension=function(a,y){ti.prototype[a]=y},ti.defineDocExtension=function(a,y){ki.prototype[a]=y},ti.fromTextArea=Yu,Qu(ti),ti.version="5.58.2",ti})},25419:function(pn,Kt,ne){(function(z){z(ne(89780),ne(15525),ne(98101))})(function(z){"use strict";z.defineMode("markdown",function(nt,ve){var et=z.getMode(nt,"text/html"),be=et.name=="null";function Pe(xe){if(z.findModeByName){var de=z.findModeByName(xe);de&&(xe=de.mime||de.mimes[0])}var Ct=z.getMode(nt,xe);return Ct.name=="null"?null:Ct}ve.highlightFormatting===void 0&&(ve.highlightFormatting=!1),ve.maxBlockquoteDepth===void 0&&(ve.maxBlockquoteDepth=0),ve.taskLists===void 0&&(ve.taskLists=!1),ve.strikethrough===void 0&&(ve.strikethrough=!1),ve.emoji===void 0&&(ve.emoji=!1),ve.fencedCodeBlockHighlighting===void 0&&(ve.fencedCodeBlockHighlighting=!0),ve.fencedCodeBlockDefaultMode===void 0&&(ve.fencedCodeBlockDefaultMode="text/plain"),ve.xml===void 0&&(ve.xml=!0),ve.tokenTypeOverrides===void 0&&(ve.tokenTypeOverrides={});var Ne={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 Je in Ne)Ne.hasOwnProperty(Je)&&ve.tokenTypeOverrides[Je]&&(Ne[Je]=ve.tokenTypeOverrides[Je]);var Ie=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,tt=/^\[(x| )\](?=\s)/i,Ee=ve.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ot=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Qe=/^[^#!\[\]*_\\<>` "'(~:]+/,ze=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ke=/^\s*\[[^\]]+?\]:.*$/,ke=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ft=" ";function Et(xe,de,Ct){return de.f=de.inline=Ct,Ct(xe,de)}function Ht(xe,de,Ct){return de.f=de.block=Ct,Ct(xe,de)}function It(xe){return!xe||!/\S/.test(xe.string)}function ut(xe){if(xe.linkTitle=!1,xe.linkHref=!1,xe.linkText=!1,xe.em=!1,xe.strong=!1,xe.strikethrough=!1,xe.quote=0,xe.indentedCode=!1,xe.f==Ge){var de=be;if(!de){var Ct=z.innerMode(et,xe.htmlState);de=Ct.mode.name=="xml"&&Ct.state.tagStart===null&&!Ct.state.context&&Ct.state.tokenize.isInText}de&&(xe.f=Lt,xe.block=lt,xe.htmlState=null)}return xe.trailingSpace=0,xe.trailingSpaceNewLine=!1,xe.prevLine=xe.thisLine,xe.thisLine={stream:null},null}function lt(xe,de){var Ct=xe.column()===de.indentation,tn=It(de.prevLine.stream),wt=de.indentedCode,me=de.prevLine.hr,$e=de.list!==!1,qe=(de.listStack[de.listStack.length-1]||0)+3;de.indentedCode=!1;var $t=de.indentation;if(de.indentationDiff===null&&(de.indentationDiff=de.indentation,$e)){for(de.list=null;$t=4&&(wt||de.prevLine.fencedCodeEnd||de.prevLine.header||tn))return xe.skipToEnd(),de.indentedCode=!0,Ne.code;if(xe.eatSpace())return null;if(Ct&&de.indentation<=qe&&(He=xe.match(Ee))&&He[1].length<=6)return de.quote=0,de.header=He[1].length,de.thisLine.header=!0,ve.highlightFormatting&&(de.formatting="header"),de.f=de.inline,bt(de);if(de.indentation<=qe&&xe.eat(">"))return de.quote=Ct?1:de.quote+1,ve.highlightFormatting&&(de.formatting="quote"),xe.eatSpace(),bt(de);if(!Yt&&!de.setext&&Ct&&de.indentation<=qe&&(He=xe.match(fe))){var Qt=He[1]?"ol":"ul";return de.indentation=$t+xe.current().length,de.list=!0,de.quote=0,de.listStack.push(de.indentation),de.em=!1,de.strong=!1,de.code=!1,de.strikethrough=!1,ve.taskLists&&xe.match(tt,!1)&&(de.taskList=!0),de.f=de.inline,ve.highlightFormatting&&(de.formatting=["list","list-"+Qt]),bt(de)}else{if(Ct&&de.indentation<=qe&&(He=xe.match(ze,!0)))return de.quote=0,de.fencedEndRE=new RegExp(He[1]+"+ *$"),de.localMode=ve.fencedCodeBlockHighlighting&&Pe(He[2]||ve.fencedCodeBlockDefaultMode),de.localMode&&(de.localState=z.startState(de.localMode)),de.f=de.block=kt,ve.highlightFormatting&&(de.formatting="code-block"),de.code=-1,bt(de);if(de.setext||(!Rt||!$e)&&!de.quote&&de.list===!1&&!de.code&&!Yt&&!Ke.test(xe.string)&&(He=xe.lookAhead(1))&&(He=He.match(Ot)))return de.setext?(de.header=de.setext,de.setext=0,xe.skipToEnd(),ve.highlightFormatting&&(de.formatting="header")):(de.header=He[0].charAt(0)=="="?1:2,de.setext=de.header),de.thisLine.header=!0,de.f=de.inline,bt(de);if(Yt)return xe.skipToEnd(),de.hr=!0,de.thisLine.hr=!0,Ne.hr;if(xe.peek()==="[")return Et(xe,de,mt)}return Et(xe,de,de.inline)}function Ge(xe,de){var Ct=et.token(xe,de.htmlState);if(!be){var tn=z.innerMode(et,de.htmlState);(tn.mode.name=="xml"&&tn.state.tagStart===null&&!tn.state.context&&tn.state.tokenize.isInText||de.md_inside&&xe.current().indexOf(">")>-1)&&(de.f=Lt,de.block=lt,de.htmlState=null)}return Ct}function kt(xe,de){var Ct=de.listStack[de.listStack.length-1]||0,tn=de.indentation=xe.quote?de.push(Ne.formatting+"-"+xe.formatting[Ct]+"-"+xe.quote):de.push("error"))}if(xe.taskOpen)return de.push("meta"),de.length?de.join(" "):null;if(xe.taskClosed)return de.push("property"),de.length?de.join(" "):null;if(xe.linkHref?de.push(Ne.linkHref,"url"):(xe.strong&&de.push(Ne.strong),xe.em&&de.push(Ne.em),xe.strikethrough&&de.push(Ne.strikethrough),xe.emoji&&de.push(Ne.emoji),xe.linkText&&de.push(Ne.linkText),xe.code&&de.push(Ne.code),xe.image&&de.push(Ne.image),xe.imageAltText&&de.push(Ne.imageAltText,"link"),xe.imageMarker&&de.push(Ne.imageMarker)),xe.header&&de.push(Ne.header,Ne.header+"-"+xe.header),xe.quote&&(de.push(Ne.quote),!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=xe.quote?de.push(Ne.quote+"-"+xe.quote):de.push(Ne.quote+"-"+ve.maxBlockquoteDepth)),xe.list!==!1){var tn=(xe.listStack.length-1)%3;tn?tn===1?de.push(Ne.list2):de.push(Ne.list3):de.push(Ne.list1)}return xe.trailingSpaceNewLine?de.push("trailing-space-new-line"):xe.trailingSpace&&de.push("trailing-space-"+(xe.trailingSpace%2?"a":"b")),de.length?de.join(" "):null}function ht(xe,de){if(xe.match(Qe,!0))return bt(de)}function Lt(xe,de){var Ct=de.text(xe,de);if(typeof Ct!="undefined")return Ct;if(de.list)return de.list=null,bt(de);if(de.taskList){var tn=xe.match(tt,!0)[1]===" ";return tn?de.taskOpen=!0:de.taskClosed=!0,ve.highlightFormatting&&(de.formatting="task"),de.taskList=!1,bt(de)}if(de.taskOpen=!1,de.taskClosed=!1,de.header&&xe.match(/^#+$/,!0))return ve.highlightFormatting&&(de.formatting="header"),bt(de);var wt=xe.next();if(de.linkTitle){de.linkTitle=!1;var me=wt;wt==="("&&(me=")"),me=(me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $e="^\\s*(?:[^"+me+"\\\\]+|\\\\\\\\|\\\\.)"+me;if(xe.match(new RegExp($e),!0))return Ne.linkHref}if(wt==="`"){var qe=de.formatting;ve.highlightFormatting&&(de.formatting="code"),xe.eatWhile("`");var $t=xe.current().length;if(de.code==0&&(!de.quote||$t==1))return de.code=$t,bt(de);if($t==de.code){var Rt=bt(de);return de.code=0,Rt}else return de.formatting=qe,bt(de)}else if(de.code)return bt(de);if(wt==="\\"&&(xe.next(),ve.highlightFormatting)){var Yt=bt(de),He=Ne.formatting+"-escape";return Yt?Yt+" "+He:He}if(wt==="!"&&xe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return de.imageMarker=!0,de.image=!0,ve.highlightFormatting&&(de.formatting="image"),bt(de);if(wt==="["&&de.imageMarker&&xe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return de.imageMarker=!1,de.imageAltText=!0,ve.highlightFormatting&&(de.formatting="image"),bt(de);if(wt==="]"&&de.imageAltText){ve.highlightFormatting&&(de.formatting="image");var Yt=bt(de);return de.imageAltText=!1,de.image=!1,de.inline=de.f=_e,Yt}if(wt==="["&&!de.image)return de.linkText&&xe.match(/^.*?\]/)||(de.linkText=!0,ve.highlightFormatting&&(de.formatting="link")),bt(de);if(wt==="]"&&de.linkText){ve.highlightFormatting&&(de.formatting="link");var Yt=bt(de);return de.linkText=!1,de.inline=de.f=xe.match(/\(.*?\)| ?\[.*?\]/,!1)?_e:Lt,Yt}if(wt==="<"&&xe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Le,ve.highlightFormatting&&(de.formatting="link");var Yt=bt(de);return Yt?Yt+=" ":Yt="",Yt+Ne.linkInline}if(wt==="<"&&xe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Le,ve.highlightFormatting&&(de.formatting="link");var Yt=bt(de);return Yt?Yt+=" ":Yt="",Yt+Ne.linkEmail}if(ve.xml&&wt==="<"&&xe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Qt=xe.string.indexOf(">",xe.pos);if(Qt!=-1){var St=xe.string.substring(xe.start,Qt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(St)&&(de.md_inside=!0)}return xe.backUp(1),de.htmlState=z.startState(et),Ht(xe,de,Ge)}if(ve.xml&&wt==="<"&&xe.match(/^\/\w*?>/))return de.md_inside=!1,"tag";if(wt==="*"||wt==="_"){for(var ae=1,te=xe.pos==1?" ":xe.string.charAt(xe.pos-2);ae<3&&xe.eat(wt);)ae++;var ee=xe.peek()||" ",oe=!/\s/.test(ee)&&(!ke.test(ee)||/\s/.test(te)||ke.test(te)),se=!/\s/.test(te)&&(!ke.test(te)||/\s/.test(ee)||ke.test(ee)),re=null,pe=null;if(ae%2&&(!de.em&&oe&&(wt==="*"||!se||ke.test(te))?re=!0:de.em==wt&&se&&(wt==="*"||!oe||ke.test(ee))&&(re=!1)),ae>1&&(!de.strong&&oe&&(wt==="*"||!se||ke.test(te))?pe=!0:de.strong==wt&&se&&(wt==="*"||!oe||ke.test(ee))&&(pe=!1)),pe!=null||re!=null){ve.highlightFormatting&&(de.formatting=re==null?"strong":pe==null?"em":"strong em"),re===!0&&(de.em=wt),pe===!0&&(de.strong=wt);var Rt=bt(de);return re===!1&&(de.em=!1),pe===!1&&(de.strong=!1),Rt}}else if(wt===" "&&(xe.eat("*")||xe.eat("_"))){if(xe.peek()===" ")return bt(de);xe.backUp(1)}if(ve.strikethrough){if(wt==="~"&&xe.eatWhile(wt)){if(de.strikethrough){ve.highlightFormatting&&(de.formatting="strikethrough");var Rt=bt(de);return de.strikethrough=!1,Rt}else if(xe.match(/^[^\s]/,!1))return de.strikethrough=!0,ve.highlightFormatting&&(de.formatting="strikethrough"),bt(de)}else if(wt===" "&&xe.match(/^~~/,!0)){if(xe.peek()===" ")return bt(de);xe.backUp(2)}}if(ve.emoji&&wt===":"&&xe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){de.emoji=!0,ve.highlightFormatting&&(de.formatting="emoji");var Ce=bt(de);return de.emoji=!1,Ce}return wt===" "&&(xe.match(/^ +$/,!1)?de.trailingSpace++:de.trailingSpace&&(de.trailingSpaceNewLine=!0)),bt(de)}function Le(xe,de){var Ct=xe.next();if(Ct===">"){de.f=de.inline=Lt,ve.highlightFormatting&&(de.formatting="link");var tn=bt(de);return tn?tn+=" ":tn="",tn+Ne.linkInline}return xe.match(/^[^>]+/,!0),Ne.linkInline}function _e(xe,de){if(xe.eatSpace())return null;var Ct=xe.next();return Ct==="("||Ct==="["?(de.f=de.inline=ue(Ct==="("?")":"]"),ve.highlightFormatting&&(de.formatting="link-string"),de.linkHref=!0,bt(de)):"error"}var Fe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(xe){return function(de,Ct){var tn=de.next();if(tn===xe){Ct.f=Ct.inline=Lt,ve.highlightFormatting&&(Ct.formatting="link-string");var wt=bt(Ct);return Ct.linkHref=!1,wt}return de.match(Fe[xe]),Ct.linkHref=!0,bt(Ct)}}function mt(xe,de){return xe.match(/^([^\]\\]|\\.)*\]:/,!1)?(de.f=Be,xe.next(),ve.highlightFormatting&&(de.formatting="link"),de.linkText=!0,bt(de)):Et(xe,de,Lt)}function Be(xe,de){if(xe.match(/^\]:/,!0)){de.f=de.inline=Ve,ve.highlightFormatting&&(de.formatting="link");var Ct=bt(de);return de.linkText=!1,Ct}return xe.match(/^([^\]\\]|\\.)+/,!0),Ne.linkText}function Ve(xe,de){return xe.eatSpace()?null:(xe.match(/^[^\s]+/,!0),xe.peek()===void 0?de.linkTitle=!0:xe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),de.f=de.inline=Lt,Ne.linkHref+" url")}var Nt={startState:function(){return{f:lt,prevLine:{stream:null},thisLine:{stream:null},block:lt,htmlState:null,indentation:0,inline:Lt,text:ht,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(xe){return{f:xe.f,prevLine:xe.prevLine,thisLine:xe.thisLine,block:xe.block,htmlState:xe.htmlState&&z.copyState(et,xe.htmlState),indentation:xe.indentation,localMode:xe.localMode,localState:xe.localMode?z.copyState(xe.localMode,xe.localState):null,inline:xe.inline,text:xe.text,formatting:!1,linkText:xe.linkText,linkTitle:xe.linkTitle,linkHref:xe.linkHref,code:xe.code,em:xe.em,strong:xe.strong,strikethrough:xe.strikethrough,emoji:xe.emoji,header:xe.header,setext:xe.setext,hr:xe.hr,taskList:xe.taskList,list:xe.list,listStack:xe.listStack.slice(0),quote:xe.quote,indentedCode:xe.indentedCode,trailingSpace:xe.trailingSpace,trailingSpaceNewLine:xe.trailingSpaceNewLine,md_inside:xe.md_inside,fencedEndRE:xe.fencedEndRE}},token:function(xe,de){if(de.formatting=!1,xe!=de.thisLine.stream){if(de.header=0,de.hr=!1,xe.match(/^\s*$/,!0))return ut(de),null;if(de.prevLine=de.thisLine,de.thisLine={stream:xe},de.taskList=!1,de.trailingSpace=0,de.trailingSpaceNewLine=!1,!de.localState&&(de.f=de.block,de.f!=Ge)){var Ct=xe.match(/^\s*/,!0)[0].replace(/\t/g,ft).length;if(de.indentation=Ct,de.indentationDiff=null,Ct>0)return null}}return de.f(xe,de)},innerMode:function(xe){return xe.block==Ge?{state:xe.htmlState,mode:et}:xe.localState?{state:xe.localState,mode:xe.localMode}:{state:xe,mode:Nt}},indent:function(xe,de,Ct){return xe.block==Ge&&et.indent?et.indent(xe.htmlState,de,Ct):xe.localState&&xe.localMode.indent?xe.localMode.indent(xe.localState,de,Ct):z.Pass},blankLine:ut,getType:bt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Nt},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(pn,Kt,ne){(function(z){z(ne(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 nt=0;nt-1&&et.substring(Ne+1,et.length);if(Je)return z.findModeByExtension(Je)},z.findModeByName=function(et){et=et.toLowerCase();for(var be=0;be0?Qe.cmdState[Qe.cmdState.length-1]:null}function Pe(Qe){var ze=Qe.cmdState.pop();ze&&ze.closeBracket()}function Ne(Qe){for(var ze=Qe.cmdState,Ke=ze.length-1;Ke>=0;Ke--){var ke=ze[Ke];if(ke.name!="DEFAULT")return ke}return{styleIdentifier:function(){return null}}}function Je(Qe,ze,Ke){return function(){this.name=Qe,this.bracketNo=0,this.style=ze,this.styles=Ke,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ie={};Ie.importmodule=Je("importmodule","tag",["string","builtin"]),Ie.documentclass=Je("documentclass","tag",["","atom"]),Ie.usepackage=Je("usepackage","tag",["atom"]),Ie.begin=Je("begin","tag",["atom"]),Ie.end=Je("end","tag",["atom"]),Ie.label=Je("label","tag",["atom"]),Ie.ref=Je("ref","tag",["atom"]),Ie.eqref=Je("eqref","tag",["atom"]),Ie.cite=Je("cite","tag",["atom"]),Ie.bibitem=Je("bibitem","tag",["atom"]),Ie.Bibitem=Je("Bibitem","tag",["atom"]),Ie.RBibitem=Je("RBibitem","tag",["atom"]),Ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe(Qe,ze){Qe.f=ze}function tt(Qe,ze){var Ke;if(Qe.match(/^\\[a-zA-Z@]+/)){var ke=Qe.current().slice(1);return Ke=Ie.hasOwnProperty(ke)?Ie[ke]:Ie.DEFAULT,Ke=new Ke,et(ze,Ke),fe(ze,Ot),Ke.style}if(Qe.match(/^\\[$&%#{}_]/)||Qe.match(/^\\[,;!\/\\]/))return"tag";if(Qe.match("\\["))return fe(ze,function(Et,Ht){return Ee(Et,Ht,"\\]")}),"keyword";if(Qe.match("\\("))return fe(ze,function(Et,Ht){return Ee(Et,Ht,"\\)")}),"keyword";if(Qe.match("$$"))return fe(ze,function(Et,Ht){return Ee(Et,Ht,"$$")}),"keyword";if(Qe.match("$"))return fe(ze,function(Et,Ht){return Ee(Et,Ht,"$")}),"keyword";var ft=Qe.next();if(ft=="%")return Qe.skipToEnd(),"comment";if(ft=="}"||ft=="]"){if(Ke=be(ze),Ke)Ke.closeBracket(ft),fe(ze,Ot);else return"error";return"bracket"}else return ft=="{"||ft=="["?(Ke=Ie.DEFAULT,Ke=new Ke,et(ze,Ke),"bracket"):/\d/.test(ft)?(Qe.eatWhile(/[\w.%]/),"atom"):(Qe.eatWhile(/[\w\-_]/),Ke=Ne(ze),Ke.name=="begin"&&(Ke.argument=Qe.current()),Ke.styleIdentifier())}function Ee(Qe,ze,Ke){if(Qe.eatSpace())return null;if(Ke&&Qe.match(Ke))return fe(ze,tt),"keyword";if(Qe.match(/^\\[a-zA-Z@]+/))return"tag";if(Qe.match(/^[a-zA-Z]+/))return"variable-2";if(Qe.match(/^\\[$&%#{}_]/)||Qe.match(/^\\[,;!\/]/)||Qe.match(/^[\^_&]/))return"tag";if(Qe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Qe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ke=Qe.next();return ke=="{"||ke=="}"||ke=="["||ke=="]"||ke=="("||ke==")"?"bracket":ke=="%"?(Qe.skipToEnd(),"comment"):"error"}function Ot(Qe,ze){var Ke=Qe.peek(),ke;return Ke=="{"||Ke=="["?(ke=be(ze),ke.openBracket(Ke),Qe.eat(Ke),fe(ze,tt),"bracket"):/[ \t\r]/.test(Ke)?(Qe.eat(Ke),null):(fe(ze,tt),Pe(ze),tt(Qe,ze))}return{startState:function(){var Qe=ve.inMathMode?function(ze,Ke){return Ee(ze,Ke)}:tt;return{cmdState:[],f:Qe}},copyState:function(Qe){return{cmdState:Qe.cmdState.slice(),f:Qe.f}},token:function(Qe,ze){return ze.f(Qe,ze)},blankLine:function(Qe){Qe.f=tt,Qe.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(pn,Kt,ne){(function(z){z(ne(89780))})(function(z){"use strict";var nt={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},ve={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(et,be){var Pe=et.indentUnit,Ne={},Je=be.htmlMode?nt:ve;for(var Ie in Je)Ne[Ie]=Je[Ie];for(var Ie in be)Ne[Ie]=be[Ie];var fe,tt;function Ee(Le,_e){function Fe(Be){return _e.tokenize=Be,Be(Le,_e)}var ue=Le.next();if(ue=="<")return Le.eat("!")?Le.eat("[")?Le.match("CDATA[")?Fe(ze("atom","]]>")):null:Le.match("--")?Fe(ze("comment","-->")):Le.match("DOCTYPE",!0,!0)?(Le.eatWhile(/[\w\._\-]/),Fe(Ke(1))):null:Le.eat("?")?(Le.eatWhile(/[\w\._\-]/),_e.tokenize=ze("meta","?>"),"meta"):(fe=Le.eat("/")?"closeTag":"openTag",_e.tokenize=Ot,"tag bracket");if(ue=="&"){var mt;return Le.eat("#")?Le.eat("x")?mt=Le.eatWhile(/[a-fA-F\d]/)&&Le.eat(";"):mt=Le.eatWhile(/[\d]/)&&Le.eat(";"):mt=Le.eatWhile(/[\w\.\-:]/)&&Le.eat(";"),mt?"atom":"error"}else return Le.eatWhile(/[^&<]/),null}Ee.isInText=!0;function Ot(Le,_e){var Fe=Le.next();if(Fe==">"||Fe=="/"&&Le.eat(">"))return _e.tokenize=Ee,fe=Fe==">"?"endTag":"selfcloseTag","tag bracket";if(Fe=="=")return fe="equals",null;if(Fe=="<"){_e.tokenize=Ee,_e.state=Ht,_e.tagName=_e.tagStart=null;var ue=_e.tokenize(Le,_e);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(Fe)?(_e.tokenize=Qe(Fe),_e.stringStartCol=Le.column(),_e.tokenize(Le,_e)):(Le.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Qe(Le){var _e=function(Fe,ue){for(;!Fe.eol();)if(Fe.next()==Le){ue.tokenize=Ot;break}return"string"};return _e.isInAttribute=!0,_e}function ze(Le,_e){return function(Fe,ue){for(;!Fe.eol();){if(Fe.match(_e)){ue.tokenize=Ee;break}Fe.next()}return Le}}function Ke(Le){return function(_e,Fe){for(var ue;(ue=_e.next())!=null;){if(ue=="<")return Fe.tokenize=Ke(Le+1),Fe.tokenize(_e,Fe);if(ue==">")if(Le==1){Fe.tokenize=Ee;break}else return Fe.tokenize=Ke(Le-1),Fe.tokenize(_e,Fe)}return"meta"}}function ke(Le,_e,Fe){this.prev=Le.context,this.tagName=_e,this.indent=Le.indented,this.startOfLine=Fe,(Ne.doNotIndent.hasOwnProperty(_e)||Le.context&&Le.context.noIndent)&&(this.noIndent=!0)}function ft(Le){Le.context&&(Le.context=Le.context.prev)}function Et(Le,_e){for(var Fe;;){if(!Le.context||(Fe=Le.context.tagName,!Ne.contextGrabbers.hasOwnProperty(Fe)||!Ne.contextGrabbers[Fe].hasOwnProperty(_e)))return;ft(Le)}}function Ht(Le,_e,Fe){return Le=="openTag"?(Fe.tagStart=_e.column(),It):Le=="closeTag"?ut:Ht}function It(Le,_e,Fe){return Le=="word"?(Fe.tagName=_e.current(),tt="tag",kt):Ne.allowMissingTagName&&Le=="endTag"?(tt="tag bracket",kt(Le,_e,Fe)):(tt="error",It)}function ut(Le,_e,Fe){if(Le=="word"){var ue=_e.current();return Fe.context&&Fe.context.tagName!=ue&&Ne.implicitlyClosed.hasOwnProperty(Fe.context.tagName)&&ft(Fe),Fe.context&&Fe.context.tagName==ue||Ne.matchClosing===!1?(tt="tag",lt):(tt="tag error",Ge)}else return Ne.allowMissingTagName&&Le=="endTag"?(tt="tag bracket",lt(Le,_e,Fe)):(tt="error",Ge)}function lt(Le,_e,Fe){return Le!="endTag"?(tt="error",lt):(ft(Fe),Ht)}function Ge(Le,_e,Fe){return tt="error",lt(Le,_e,Fe)}function kt(Le,_e,Fe){if(Le=="word")return tt="attribute",bt;if(Le=="endTag"||Le=="selfcloseTag"){var ue=Fe.tagName,mt=Fe.tagStart;return Fe.tagName=Fe.tagStart=null,Le=="selfcloseTag"||Ne.autoSelfClosers.hasOwnProperty(ue)?Et(Fe,ue):(Et(Fe,ue),Fe.context=new ke(Fe,ue,mt==Fe.indented)),Ht}return tt="error",kt}function bt(Le,_e,Fe){return Le=="equals"?ht:(Ne.allowMissing||(tt="error"),kt(Le,_e,Fe))}function ht(Le,_e,Fe){return Le=="string"?Lt:Le=="word"&&Ne.allowUnquoted?(tt="string",kt):(tt="error",kt(Le,_e,Fe))}function Lt(Le,_e,Fe){return Le=="string"?Lt:kt(Le,_e,Fe)}return{startState:function(Le){var _e={tokenize:Ee,state:Ht,indented:Le||0,tagName:null,tagStart:null,context:null};return Le!=null&&(_e.baseIndent=Le),_e},token:function(Le,_e){if(!_e.tagName&&Le.sol()&&(_e.indented=Le.indentation()),Le.eatSpace())return null;fe=null;var Fe=_e.tokenize(Le,_e);return(Fe||fe)&&Fe!="comment"&&(tt=null,_e.state=_e.state(fe||Fe,Le,_e),tt&&(Fe=tt=="error"?Fe+" error":tt)),Fe},indent:function(Le,_e,Fe){var ue=Le.context;if(Le.tokenize.isInAttribute)return Le.tagStart==Le.indented?Le.stringStartCol+1:Le.indented+Pe;if(ue&&ue.noIndent)return z.Pass;if(Le.tokenize!=Ot&&Le.tokenize!=Ee)return Fe?Fe.match(/^(\s*)/)[0].length:0;if(Le.tagName)return Ne.multilineTagIndentPastTag!==!1?Le.tagStart+Le.tagName.length+2:Le.tagStart+Pe*(Ne.multilineTagIndentFactor||1);if(Ne.alignCDATA&&/$/,blockCommentStart:"",configuration:Ne.htmlMode?"html":"xml",helperType:Ne.htmlMode?"html":"xml",skipAttribute:function(Le){Le.state==ht&&(Le.state=kt)},xmlCurrentTag:function(Le){return Le.tagName?{name:Le.tagName,close:Le.type=="closeTag"}:null},xmlCurrentContext:function(Le){for(var _e=[],Fe=Le.context;Fe;Fe=Fe.prev)Fe.tagName&&_e.push(Fe.tagName);return _e.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(pn,Kt,ne){"use strict";ne.d(Kt,{hP:function(){return St}});var z=function(ae,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(ee[se]=oe[se])})(ae,te)};function nt(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ve(ae,te,ee,oe){return new(ee||(ee=Promise))(function(se,re){function pe(Te){try{gt(oe.next(Te))}catch(it){re(it)}}function Ce(Te){try{gt(oe.throw(Te))}catch(it){re(it)}}function gt(Te){var it;Te.done?se(Te.value):(it=Te.value,it instanceof ee?it:new ee(function(vt){vt(it)})).then(pe,Ce)}gt((oe=oe.apply(ae,te||[])).next())})}function et(ae,te){var ee,oe,se,re,pe={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return re={next:Ce(0),throw:Ce(1),return:Ce(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function Ce(gt){return function(Te){return function(it){if(ee)throw new TypeError("Generator is already executing.");for(;pe;)try{if(ee=1,oe&&(se=2&it[0]?oe.return:it[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,it[1])).done)return se;switch(oe=0,se&&(it=[2&it[0],se.value]),it[0]){case 0:case 1:se=it;break;case 4:return pe.label++,{value:it[1],done:!1};case 5:pe.label++,oe=it[1],it=[0];continue;case 7:it=pe.ops.pop(),pe.trys.pop();continue;default:if(se=pe.trys,!((se=se.length>0&&se[se.length-1])||it[0]!==6&&it[0]!==2)){pe=0;continue}if(it[0]===3&&(!se||it[1]>se[0]&&it[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(re){var pe=document.createElement("div");pe.className=""+ee.toolbarButtonStyleClass.name,pe.setAttribute("data-type-name",re.typeName),pe.innerHTML=re.icon,pe.addEventListener("click",function(){ee.markerToolbarButtonClicked(pe,re)}),ee.buttons.push(pe),ee.markerButtons.push(pe)}),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 se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'',"render"),this.addActionButton(se,'',"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}(),Qe=function(){function ae(te,ee,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ee("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ee("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox-panel-row_colors",` background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new tt("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new tt("."+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,se=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(re){var pe;re.uiStyleSettings=se.uiStyleSettings;var Ce=document.createElement("div");Ce.className=se.toolboxButtonStyleClass.name+" "+((pe=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pe!==void 0?pe:se.toolboxButtonStyleColorsClass.name),Ce.innerHTML=re.icon,Ce.title=re.title,Ce.addEventListener("click",function(){se.panelButtonClick(re)}),se.panelButtons.push(Ce),se.buttonRow.appendChild(Ce)}),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 se=te.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),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(re,pe){var Ce,gt;re.className=ee.toolboxButtonStyleClass.name+" "+(pe===oe?""+((Ce=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ce!==void 0?Ce:ee.toolboxActiveButtonStyleColorsClass.name):""+((gt=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&>!==void 0?gt:ee.toolboxButtonStyleColorsClass.name))})},ae}(),ze=function(ae,te){this.title=ae,this.icon=te},Ke=function(ae){function te(ee,oe,se,re){var pe=ae.call(this,ee,re||'')||this;return pe.colors=[],pe.addTransparent=!1,pe.colorBoxes=[],pe.colors=oe,pe.currentColor=se,pe.setCurrentColor=pe.setCurrentColor.bind(pe),pe.getColorBox=pe.getColorBox.bind(pe),pe}return nt(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(se){var re=ee.getColorBox(se);oe.appendChild(re),ee.colorBoxes.push(re)}),oe},te.prototype.getColorBox=function(ee){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-se,pe=document.createElement("div");pe.style.display="inline-block",pe.style.boxSizing="content-box",pe.style.width=re-2+"px",pe.style.height=re-2+"px",pe.style.padding="1px",pe.style.marginRight="2px",pe.style.marginBottom="2px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.borderRadius=(re+2)/2+"px",pe.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){oe.setCurrentColor(ee,pe)});var Ce=document.createElement("div");return Ce.style.display="inline-block",Ce.style.width=re-2+"px",Ce.style.height=re-2+"px",Ce.style.backgroundColor=ee,Ce.style.borderRadius=re/2+"px",ee==="transparent"&&(Ce.style.fill=this.uiStyleSettings.toolboxAccentColor,Ce.innerHTML=` `),pe.appendChild(Ce),pe},te.prototype.setCurrentColor=function(ee,oe){var se=this;this.currentColor=ee,this.colorBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(ze),ke=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}(),ft=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}(),Et=function(){function ae(){this.GRIP_SIZE=10,this.visual=Pe.createGroup(),this.visual.appendChild(Pe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Pe.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}(),Ht=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}(),It=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.left=0,re.top=0,re.width=0,re.height=0,re.defaultSize={x:50,y:20},re.offsetX=0,re.offsetY=0,re.rotationAngle=0,re.CB_DISTANCE=10,re._suppressMarkerCreateEvent=!1,re.container.transform.baseVal.appendItem(Pe.createTransform()),re.setupControlBox(),re}return nt(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=Pe.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 se=this.unrotatePoint(ee);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.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 re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var pe=this.container.transform.baseVal.getItem(0);pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pe,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,se=this.manipulationStartWidth,re=this.manipulationStartTop,pe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+ee.y-this.manipulationStartY,pe=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:pe=this.manipulationStartHeight+ee.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),pe>=0?(this.top=re,this.height=pe):(this.top=re+pe,this.height=-pe),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(),se=Pe.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var se=Pe.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.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=Pe.createGroup();var ee=Pe.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Pe.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=Pe.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 ft,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 Et;return ee.visual.transform.baseVal.appendItem(Pe.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,se=oe,re=(this.width+this.CB_DISTANCE)/2-ee/2,pe=(this.height+this.CB_DISTANCE)/2-ee/2,Ce=this.height+this.CB_DISTANCE-ee/2,gt=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,re,se),this.positionGrip(this.controlGrips.topRight.visual,gt,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,pe),this.positionGrip(this.controlGrips.centerRight.visual,gt,pe),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Ce),this.positionGrip(this.controlGrips.bottomCenter.visual,re,Ce),this.positionGrip(this.controlGrips.bottomRight.visual,gt,Ce),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,se-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,se){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,se),ee.transform.baseVal.replaceItem(re,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:Ht.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ht.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(Ht.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ht.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var se=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:se.x*ee,y:se.y*oe});this.left=re.x,this.top=re.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(ke),ut=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re}return nt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Pe.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),Pe.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&&Pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Pe.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}(It),lt=function(ae){function te(ee,oe,se,re){var pe=ae.call(this,ee,re||'')||this;return pe.widths=[],pe.widthBoxes=[],pe.widths=oe,pe.currentWidth=se,pe.setCurrentWidth=pe.setCurrentWidth.bind(pe),pe}return nt(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(se){var re=document.createElement("div");re.style.display="flex",re.style.flexGrow="2",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=se===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentWidth(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.innerText=se.toString(),pe.style.marginRight="5px",re.appendChild(pe);var Ce=document.createElement("div");Ce.style.minHeight="20px",Ce.style.flexGrow="2",Ce.style.display="flex",Ce.style.alignItems="center";var gt=document.createElement("hr");gt.style.minWidth="20px",gt.style.border="0px",gt.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,gt.style.flexGrow="2",Ce.appendChild(gt),re.appendChild(Ce),ee.widthBoxes.push(re)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var se=this;this.currentWidth=ee,this.widthBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(ze),Ge=function(ae){function te(ee,oe,se,re){var pe=ae.call(this,ee,re||'')||this;return pe.styles=[],pe.styleBoxes=[],pe.styles=oe,pe.currentStyle=se,pe.setCurrentStyle=pe.setCurrentStyle.bind(pe),pe}return nt(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(se){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.styles.length-5+"%",re.style.borderColor=se===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentStyle(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.overflow="hidden";var Ce=` `;pe.innerHTML=Ce,re.appendChild(pe),ee.styleBoxes.push(re)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var se=this;this.currentStyle=ee,this.styleBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(ze),kt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Ke("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ge("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return nt(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}(ut),bt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},ht=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.x1=0,re.y1=0,re.x2=0,re.y2=0,re.defaultLength=50,re.manipulationStartX=0,re.manipulationStartY=0,re.manipulationStartX1=0,re.manipulationStartY1=0,re.manipulationStartX2=0,re.manipulationStartY2=0,re.setupControlBox(),re}return nt(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=Pe.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 Et;return ee.visual.transform.baseVal.appendItem(Pe.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,se){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,se),ee.transform.baseVal.replaceItem(re,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}(ke),Lt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Ke("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ge("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return nt(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=Pe.createGroup(),this.selectorLine=Pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Pe.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()),Pe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Pe.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}(ht),Le=function(ae){function te(ee,oe,se,re){var pe=ae.call(this,ee,re||'')||this;return pe.fonts=[],pe.fontBoxes=[],pe.fonts=oe,pe.currentFont=se,pe.setCurrentFont=pe.setCurrentFont.bind(pe),pe}return nt(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(se){var re=document.createElement("div");re.style.display="inline-block",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.fonts.length-5+"%",re.style.borderColor=se===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentFont(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.style.display="flex",pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.fontFamily=se,pe.style.overflow="hidden";var Ce=document.createElement("div");Ce.style.whiteSpace="nowrap",Ce.style.overflow="hidden",Ce.style.textOverflow="ellipsis",Ce.innerHTML="The quick brown fox jumps over the lazy dog",pe.appendChild(Ce),re.appendChild(pe),ee.fontBoxes.push(re)}),oe},te.prototype.setCurrentFont=function(ee,oe){var se=this;this.currentFont=ee,this.fontBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(ze),_e=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.color="transparent",re.padding=5,re.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",re.text=re.DEFAULT_TEXT,re.isMoved=!1,re.color=se.defaultColor,re.fontFamily=se.defaultFontFamily,re.defaultSize={x:100,y:30},re.setColor=re.setColor.bind(re),re.setFont=re.setFont.bind(re),re.renderText=re.renderText.bind(re),re.sizeText=re.sizeText.bind(re),re.textEditDivClicked=re.textEditDivClicked.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.setSize=re.setSize.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.colorPanel=new Ke("Color",se.defaultColorSet,se.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new Le("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return nt(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(se){se===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.bgRectangle=Pe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Pe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Pe.createTransform()),this.textElement.transform.baseVal.appendItem(Pe.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(Pe.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 se=(1*this.width-this.width*this.padding*2/100)/ee.width,re=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(se,re)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),se=0,re=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*ee)/2,re=this.height/2-oe.height*ee/2),{x:se,y:re}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.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&&(Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.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 se=oe.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(se)),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}),se=this.textElement.getBBox(),re={x:se.width*ee,y:se.height*ee};oe.x-=re.x/2,oe.y-=re.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&&Pe.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&&Pe.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}(It),Fe=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=se.defaultColor,re.lineWidth=se.defaultStrokeWidth,re.pixelRatio=se.freehandPixelRatio,re.setColor=re.setColor.bind(re),re.addCanvas=re.addCanvas.bind(re),re.finishCreation=re.finishCreation.bind(re),re.setLineWidth=re.setLineWidth.bind(re),re.colorPanel=new Ke("Color",se.defaultColorSet,se.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return nt(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=Pe.createGroup(),this.drawingImage=Pe.createImage(),this.visual.appendChild(this.drawingImage);var ee=Pe.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),Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.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],se=oe[0],re=oe[1],pe=oe[2],Ce=oe[3],gt=!1,Te=0;Te0&&(gt=!0,TeCe&&(Ce=Te),it>pe&&(pe=it));if(gt){this.left=se/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(pe-se)/this.pixelRatio,this.height=(Ce-re)/this.pixelRatio;var vt=document.createElement("canvas");vt.width=pe-se,vt.height=Ce-re,vt.getContext("2d").putImageData(this.canvasContext.getImageData(se,re,pe-se,Ce-re),0,0),this.drawingImgUrl=vt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.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}(It),ue=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,se||'')||this;return re.typeBoxes=[],re.currentType=oe,re.setCurrentType=re.setCurrentType.bind(re),re}return nt(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 se=function(Ce){var gt="both";switch(Ce){case 0:gt="both";break;case 1:gt="start";break;case 2:gt="end";break;case 3:gt="none"}var Te=document.createElement("div");if(Te.style.display="flex",Te.style.flexGrow="2",Te.style.alignItems="center",Te.style.justifyContent="space-between",Te.style.padding="5px",Te.style.borderWidth="2px",Te.style.borderStyle="solid",Te.style.borderColor=gt===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Te.addEventListener("click",function(){ee.setCurrentType(gt,Te)}),oe.appendChild(Te),gt==="both"||gt==="start"){var it=document.createElement("div");it.style.display="flex",it.style.alignItems="center",it.style.minHeight="20px",it.innerHTML=` `,it.style.marginLeft="5px",Te.appendChild(it)}var vt=document.createElement("div");vt.style.display="flex",vt.style.alignItems="center",vt.style.minHeight="20px",vt.style.flexGrow="2";var Bt=document.createElement("hr");if(Bt.style.minWidth="20px",Bt.style.border="0px",Bt.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),Bt.style.flexGrow="2",vt.appendChild(Bt),Te.appendChild(vt),gt==="both"||gt==="end"){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.alignItems="center",Mt.style.minHeight="20px",Mt.innerHTML=` `,Mt.style.marginRight="5px",Te.appendChild(Mt)}re.typeBoxes.push(Te)},re=this,pe=0;pe<4;pe++)se(pe);return oe},te.prototype.setCurrentType=function(ee,oe){var se=this;this.currentType=ee,this.typeBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(ze),mt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.arrowType="end",re.arrowBaseHeight=10,re.arrowBaseWidth=10,re.getArrowPoints=re.getArrowPoints.bind(re),re.setArrowType=re.setArrowType.bind(re),re.arrowTypePanel=new ue("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return nt(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 se=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return ee-se/2+","+(oe+re/2)+" "+ee+","+(oe-re/2)+" "+(ee+se/2)+","+(oe+re/2)},te.prototype.createTips=function(){this.arrow1=Pe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Pe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Pe.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",Pe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Pe.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 se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,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}(Lt),Be=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.fillColor=se.defaultFillColor,re.strokeWidth=0,re.fillPanel=new Ke("Color",se.defaultColorSet,se.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return nt(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}(ut),Ve=function(ae){function te(ee,oe,se,re){var pe=ae.call(this,ee,re||'')||this;return pe.opacities=[],pe.opacityBoxes=[],pe.opacities=oe,pe.currentOpacity=se,pe.setCurrentOpacity=pe.setCurrentOpacity.bind(pe),pe}return nt(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(se){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="center",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=se===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentOpacity(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.innerText=100*se+"%",re.appendChild(pe),ee.opacityBoxes.push(re)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var se=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(ze),Nt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=se.defaultHighlightColor,re.strokeWidth=0,re.opacity=se.defaultHighlightOpacity,re.fillPanel=new Ke("Color",se.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new Ve("Opacity",se.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return nt(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Pe.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}(Be),xe='',de='',Ct=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.bgColor="transparent",re.tipPosition={x:0,y:0},re.tipBase1Position={x:0,y:0},re.tipBase2Position={x:0,y:0},re.tipMoving=!1,re.color=se.defaultStrokeColor,re.bgColor=se.defaultFillColor,re.fontFamily=se.defaultFontFamily,re.defaultSize={x:100,y:30},re.setBgColor=re.setBgColor.bind(re),re.getTipPoints=re.getTipPoints.bind(re),re.positionTip=re.positionTip.bind(re),re.setTipPoints=re.setTipPoints.bind(re),re.colorPanel=new Ke("Text color",se.defaultColorSet,re.color,xe),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Ke("Fill color",se.defaultColorSet,re.bgColor,de),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new Le("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new Et,re.tipGrip.visual.transform.baseVal.appendItem(Pe.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return nt(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(){Pe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Pe.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&&(Pe.setAttributes(this.bgRectangle,[["fill",ee]]),Pe.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),se=this.height/5;ee&&(this.tipPosition={x:oe+se/2,y:this.height+20});var re=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?re.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 se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,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}(Lt),me=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokePanel.colors=se.defaultColorSet,re.fillColor="transparent",re}return nt(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}(tn),$e=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}(),qe=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.curveX=0,re.curveY=0,re.manipulationStartCurveX=0,re.manipulationStartCurveY=0,re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.positionGrips=re.positionGrips.bind(re),re.addControlGrips=re.addControlGrips.bind(re),re.adjustVisual=re.adjustVisual.bind(re),re.setupControlBox=re.setupControlBox.bind(re),re.resize=re.resize.bind(re),re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Ke("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ge("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return nt(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=Pe.createGroup(),this.selectorCurve=Pe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Pe.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()),Pe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Pe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Pe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Pe.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}(ht),$t=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.textColor="transparent",re.fontSize="1rem",re.isMoved=!1,re.captionText="Caption",re.PADDING=5,re.captionBoxWidth=0,re.captionBoxHeight=0,re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.fillColor=se.defaultFillColor,re.textColor=se.defaultStrokeColor,re.fontFamily=se.defaultFontFamily,re.fontSize=se.defaultCaptionFontSize,re.captionText=se.defaultCaptionText,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re.sizeCaption=re.sizeCaption.bind(re),re.setCaptionText=re.setCaptionText.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.finishTextEditing=re.finishTextEditing.bind(re),re.setFont=re.setFont.bind(re),re.setTextColor=re.setTextColor.bind(re),re.strokePanel=new Ke("Line color",be(se.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Ke("Fill color",be(se.defaultColorSet,["transparent"]),re.fillColor,de),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ge("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new Le("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Ke("Text color",se.defaultColorSet,re.textColor,xe),re.textColorPanel.onColorChanged=re.setTextColor,re}return nt(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=Pe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Pe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Pe.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=Pe.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),Pe.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')"]]),Pe.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&&Pe.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&&Pe.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),Pe.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&&Pe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Pe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Pe.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}(It),Rt=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}(),Yt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,!1)||this;return re.dataUrl=oe,re.state=se,re}return nt(te,ae),te}(Rt),He=function(ae){function te(ee,oe,se){se===void 0&&(se=!1);var re=ae.call(this,ee,se)||this;return re.marker=oe,re}return nt(te,ae),te}(Rt),Qt=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}(),St=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 bt,this._isOpen=!1,this.undoRedoManager=new $e,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 Qt,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[kt,Fe,mt,_e,me,tn,Nt,Ct,wt,Be,Lt,qe,$t]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[kt,Fe,mt,_e,tn,Nt,Ct]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[kt,Fe,mt,_e,Nt]},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 se=ee.ALL_MARKER_TYPES.find(function(re){return re.typeName===oe});se!==void 0&&ee._availableMarkerTypes.push(se)}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(),Ne.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Rt(te))})},ae.prototype.render=function(){return ve(this,void 0,void 0,function(){var te;return et(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Je).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(se){var re=new Rt(ee,!0);se(re),re.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(se){return se(new Rt(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 Ot(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(se){var re=new He(te,te._currentMarker,!0);se(re),re.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(se){return se(new He(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pe){var Ce=new He(te,void 0,!0);pe(Ce),Ce.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(pe){var Ce=se.markers[pe];se.setCurrentMarker(se.markers[pe]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(gt){return gt(new He(te,Ce))})},se=this,re=this.markers.length-1;re>=0;re--)oe(re);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 se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),se1&&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){Ne.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 Rt(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 Rt(te))}))},ae.instanceCounter=0,ae}()},6551:function(pn,Kt,ne){"use strict";ne.d(Kt,{ZP:function(){return Ne}});var z=ne(42978),nt=ne(59301),ve=ne(47273),et=0,be=(0,ve.Z)();function Pe(){var Je;return be?(Je=et,et+=1):Je="TEST_OR_SSR",Je}function Ne(Je){var Ie=nt.useState(),fe=(0,z.Z)(Ie,2),tt=fe[0],Ee=fe[1];return nt.useEffect(function(){Ee("rc_select_".concat(Pe()))},[]),Je||tt}},37463:function(pn,Kt,ne){"use strict";ne.d(Kt,{Ac:function(){return Tt},Xo:function(){return Gt},Wx:function(){return st},ZP:function(){return xn},lk:function(){return Ht}});var z=ne(54476),nt=ne(94480),ve=ne(20068),et=ne(33885),be=ne(42978),Pe=ne(75931),Ne=ne(76190),Je=ne(18929),Ie=ne(48736),fe=ne(59301),tt=ne(92310),Ee=ne.n(tt),Ot=ne(34280),Qe=ne(49658),ze=ne(8654),Ke=function(rt){var Se=rt.className,je=rt.customizeIcon,Oe=rt.customizeIconProps,We=rt.children,ge=rt.onMouseDown,ot=rt.onClick,ct=typeof je=="function"?je(Oe):je;return fe.createElement("span",{className:Se,onMouseDown:function(Ue){Ue.preventDefault(),ge==null||ge(Ue)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ot,"aria-hidden":!0},ct!==void 0?ct:fe.createElement("span",{className:Ee()(Se.split(/\s+/).map(function(xt){return"".concat(xt,"-icon")}))},We))},ke=Ke,ft=function(rt,Se,je,Oe,We){var ge=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ot=arguments.length>6?arguments[6]:void 0,ct=arguments.length>7?arguments[7]:void 0,xt=fe.useMemo(function(){if((0,Ne.Z)(Oe)==="object")return Oe.clearIcon;if(We)return We},[Oe,We]),Ue=fe.useMemo(function(){return!!(!ge&&Oe&&(je.length||ot)&&!(ct==="combobox"&&ot===""))},[Oe,ge,je.length,ot,ct]);return{allowClear:Ue,clearIcon:fe.createElement(ke,{className:"".concat(rt,"-clear"),onMouseDown:Se,customizeIcon:xt},"\xD7")}},Et=fe.createContext(null);function Ht(){return fe.useContext(Et)}function It(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,rt=fe.useState(!1),Se=(0,be.Z)(rt,2),je=Se[0],Oe=Se[1],We=fe.useRef(null),ge=function(){window.clearTimeout(We.current)};fe.useEffect(function(){return ge},[]);var ot=function(xt,Ue){ge(),We.current=window.setTimeout(function(){Oe(xt),Ue&&Ue()},Re)};return[je,ot,ge]}function ut(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,rt=fe.useRef(null),Se=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(Se.current)}},[]);function je(Oe){(Oe||rt.current===null)&&(rt.current=Oe),window.clearTimeout(Se.current),Se.current=window.setTimeout(function(){rt.current=null},Re)}return[function(){return rt.current},je]}function lt(Re,rt,Se,je){var Oe=fe.useRef(null);Oe.current={open:rt,triggerOpen:Se,customizedTrigger:je},fe.useEffect(function(){function We(ge){var ot;if(!((ot=Oe.current)!==null&&ot!==void 0&&ot.customizedTrigger)){var ct=ge.target;ct.shadowRoot&&ge.composed&&(ct=ge.composedPath()[0]||ct),Oe.current.open&&Re().filter(function(xt){return xt}).every(function(xt){return!xt.contains(ct)&&xt!==ct})&&Oe.current.triggerOpen(!1)}}return window.addEventListener("mousedown",We),function(){return window.removeEventListener("mousedown",We)}},[])}var Ge=ne(10228);function kt(Re){return Re&&![Ge.Z.ESC,Ge.Z.SHIFT,Ge.Z.BACKSPACE,Ge.Z.TAB,Ge.Z.WIN_KEY,Ge.Z.ALT,Ge.Z.META,Ge.Z.WIN_KEY_RIGHT,Ge.Z.CTRL,Ge.Z.SEMICOLON,Ge.Z.EQUALS,Ge.Z.CAPS_LOCK,Ge.Z.CONTEXT_MENU,Ge.Z.F1,Ge.Z.F2,Ge.Z.F3,Ge.Z.F4,Ge.Z.F5,Ge.Z.F6,Ge.Z.F7,Ge.Z.F8,Ge.Z.F9,Ge.Z.F10,Ge.Z.F11,Ge.Z.F12].includes(Re)}var bt=ne(26112),ht=ne(83836);function Lt(Re,rt,Se){var je=(0,et.Z)((0,et.Z)({},Re),Se?rt:{});return Object.keys(rt).forEach(function(Oe){var We=rt[Oe];typeof We=="function"&&(je[Oe]=function(){for(var ge,ot=arguments.length,ct=new Array(ot),xt=0;xtGn&&(Tn="".concat(zn.slice(0,Gn),"..."))}var fr=function(Er){Er&&Er.stopPropagation(),tr(gn)};return typeof Rn=="function"?or(yn,Tn,Hn,mn,fr):Mr(gn,Tn,Hn,mn,fr)},Wn=function(gn){if(!Oe.length)return null;var Hn=typeof Ln=="function"?Ln(gn):Ln;return typeof Rn=="function"?or(void 0,Hn,!1,!1,void 0,!0):Mr({title:Hn},Hn,!1)},dn=fe.createElement("div",{className:"".concat(Pr,"-search"),style:{width:ar},onFocus:function(){Hr(!0)},onBlur:function(){Hr(!1)}},fe.createElement(mt,{ref:ct,open:We,prefixCls:je,id:Se,inputElement:null,disabled:Ue,autoFocus:dt,autoComplete:cn,editable:wr,activeDescendantId:sn,value:Lr,onKeyDown:An,onMouseDown:Kn,onChange:Yn,onPaste:Jn,onCompositionStart:Un,onCompositionEnd:dr,onBlur:mr,tabIndex:hn,attrs:(0,bt.Z)(rt,!0)}),fe.createElement("span",{ref:ur,className:"".concat(Pr,"-search-mirror"),"aria-hidden":!0},Lr,"\xA0")),Cn=fe.createElement(ht.Z,{prefixCls:"".concat(Pr,"-overflow"),data:Oe,renderItem:rr,renderRest:Wn,suffix:dn,itemKey:me,maxCount:jn});return fe.createElement("span",{className:"".concat(Pr,"-wrap")},Cn,!Oe.length&&!Lr&&fe.createElement("span",{className:"".concat(Pr,"-placeholder")},xt))},$t=qe,Rt=function(rt){var Se=rt.inputElement,je=rt.prefixCls,Oe=rt.id,We=rt.inputRef,ge=rt.disabled,ot=rt.autoFocus,ct=rt.autoComplete,xt=rt.activeDescendantId,Ue=rt.mode,Ze=rt.open,Ye=rt.values,dt=rt.placeholder,cn=rt.tabIndex,sn=rt.showSearch,hn=rt.searchValue,$n=rt.activeValue,jn=rt.maxLength,Gn=rt.onInputKeyDown,kn=rt.onInputMouseDown,Ln=rt.onInputChange,Rn=rt.onInputPaste,_n=rt.onInputCompositionStart,tr=rt.onInputCompositionEnd,Yn=rt.onInputBlur,Jn=rt.title,An=fe.useState(!1),Kn=(0,be.Z)(An,2),Un=Kn[0],dr=Kn[1],mr=Ue==="combobox",ur=mr||sn,cr=Ye[0],xr=hn||"";mr&&$n&&!Un&&(xr=$n),fe.useEffect(function(){mr&&dr(!1)},[mr,$n]);var ar=Ue!=="combobox"&&!Ze&&!sn?!1:!!xr,hr=Jn===void 0?tn(cr):Jn,nr=fe.useMemo(function(){return cr?null:fe.createElement("span",{className:"".concat(je,"-selection-placeholder"),style:ar?{visibility:"hidden"}:void 0},dt)},[cr,ar,dt,je]);return fe.createElement("span",{className:"".concat(je,"-selection-wrap")},fe.createElement("span",{className:"".concat(je,"-selection-search")},fe.createElement(mt,{ref:We,prefixCls:je,id:Oe,open:Ze,inputElement:Se,disabled:ge,autoFocus:ot,autoComplete:ct,editable:ur,activeDescendantId:xt,value:xr,onKeyDown:Gn,onMouseDown:kn,onChange:function(Cr){dr(!0),Ln(Cr)},onPaste:Rn,onCompositionStart:_n,onCompositionEnd:tr,onBlur:Yn,tabIndex:cn,attrs:(0,bt.Z)(rt,!0),maxLength:mr?jn:void 0})),!mr&&cr?fe.createElement("span",{className:"".concat(je,"-selection-item"),title:hr,style:ar?{visibility:"hidden"}:void 0},cr.label):null,nr)},Yt=Rt,He=function(rt,Se){var je=(0,fe.useRef)(null),Oe=(0,fe.useRef)(!1),We=rt.prefixCls,ge=rt.open,ot=rt.mode,ct=rt.showSearch,xt=rt.tokenWithEnter,Ue=rt.disabled,Ze=rt.prefix,Ye=rt.autoClearSearchValue,dt=rt.onSearch,cn=rt.onSearchSubmit,sn=rt.onToggleOpen,hn=rt.onInputKeyDown,$n=rt.onInputBlur,jn=rt.domRef;fe.useImperativeHandle(Se,function(){return{focus:function(hr){je.current.focus(hr)},blur:function(){je.current.blur()}}});var Gn=ut(0),kn=(0,be.Z)(Gn,2),Ln=kn[0],Rn=kn[1],_n=function(hr){var nr=hr.which,vr=je.current instanceof HTMLTextAreaElement;!vr&&ge&&(nr===Ge.Z.UP||nr===Ge.Z.DOWN)&&hr.preventDefault(),hn&&hn(hr),nr===Ge.Z.ENTER&&ot==="tags"&&!Oe.current&&!ge&&(cn==null||cn(hr.target.value)),!(vr&&!ge&&~[Ge.Z.UP,Ge.Z.DOWN,Ge.Z.LEFT,Ge.Z.RIGHT].indexOf(nr))&&kt(nr)&&sn(!0)},tr=function(){Rn(!0)},Yn=(0,fe.useRef)(null),Jn=function(hr){dt(hr,!0,Oe.current)!==!1&&sn(!0)},An=function(){Oe.current=!0},Kn=function(hr){Oe.current=!1,ot!=="combobox"&&Jn(hr.target.value)},Un=function(hr){var nr=hr.target.value;if(xt&&Yn.current&&/[\r\n]/.test(Yn.current)){var vr=Yn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");nr=nr.replace(vr,Yn.current)}Yn.current=null,Jn(nr)},dr=function(hr){var nr=hr.clipboardData,vr=nr==null?void 0:nr.getData("text");Yn.current=vr||""},mr=function(hr){var nr=hr.target;if(nr!==je.current){var vr=document.body.style.msTouchAction!==void 0;vr?setTimeout(function(){je.current.focus()}):je.current.focus()}},ur=function(hr){var nr=Ln();hr.target!==je.current&&!nr&&!(ot==="combobox"&&Ue)&&hr.preventDefault(),(ot!=="combobox"&&(!ct||!nr)||!ge)&&(ge&&Ye!==!1&&dt("",!0,!1),sn())},cr={inputRef:je,onInputKeyDown:_n,onInputMouseDown:tr,onInputChange:Un,onInputPaste:dr,onInputCompositionStart:An,onInputCompositionEnd:Kn,onInputBlur:$n},xr=ot==="multiple"||ot==="tags"?fe.createElement($t,(0,z.Z)({},rt,cr)):fe.createElement(Yt,(0,z.Z)({},rt,cr));return fe.createElement("div",{ref:jn,className:"".concat(We,"-selector"),onClick:mr,onMouseDown:ur},Ze&&fe.createElement("div",{className:"".concat(We,"-prefix")},Ze),xr)},Qt=fe.forwardRef(He),St=Qt,ae=ne(65030),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(rt){var Se=rt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"}}},oe=function(rt,Se){var je=rt.prefixCls,Oe=rt.disabled,We=rt.visible,ge=rt.children,ot=rt.popupElement,ct=rt.animation,xt=rt.transitionName,Ue=rt.dropdownStyle,Ze=rt.dropdownClassName,Ye=rt.direction,dt=Ye===void 0?"ltr":Ye,cn=rt.placement,sn=rt.builtinPlacements,hn=rt.dropdownMatchSelectWidth,$n=rt.dropdownRender,jn=rt.dropdownAlign,Gn=rt.getPopupContainer,kn=rt.empty,Ln=rt.getTriggerDOMNode,Rn=rt.onPopupVisibleChange,_n=rt.onPopupMouseEnter,tr=(0,Pe.Z)(rt,te),Yn="".concat(je,"-dropdown"),Jn=ot;$n&&(Jn=$n(ot));var An=fe.useMemo(function(){return sn||ee(hn)},[sn,hn]),Kn=ct?"".concat(Yn,"-").concat(ct):xt,Un=typeof hn=="number",dr=fe.useMemo(function(){return Un?null:hn===!1?"minWidth":"width"},[hn,Un]),mr=Ue;Un&&(mr=(0,et.Z)((0,et.Z)({},mr),{},{width:hn}));var ur=fe.useRef(null);return fe.useImperativeHandle(Se,function(){return{getPopupElement:function(){var xr;return(xr=ur.current)===null||xr===void 0?void 0:xr.popupElement}}}),fe.createElement(ae.Z,(0,z.Z)({},tr,{showAction:Rn?["click"]:[],hideAction:Rn?["click"]:[],popupPlacement:cn||(dt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:An,prefixCls:Yn,popupTransitionName:Kn,popup:fe.createElement("div",{onMouseEnter:_n},Jn),ref:ur,stretch:dr,popupAlign:jn,popupVisible:We,getPopupContainer:Gn,popupClassName:Ee()(Ze,(0,ve.Z)({},"".concat(Yn,"-empty"),kn)),popupStyle:mr,getTriggerDOMNode:Ln,onPopupVisibleChange:Rn}),ge)},se=fe.forwardRef(oe),re=se,pe=ne(66712);function Ce(Re,rt){var Se=Re.key,je;return"value"in Re&&(je=Re.value),Se!=null?Se:je!==void 0?je:"rc-index-key-".concat(rt)}function gt(Re){return typeof Re!="undefined"&&!Number.isNaN(Re)}function Te(Re,rt){var Se=Re||{},je=Se.label,Oe=Se.value,We=Se.options,ge=Se.groupLabel,ot=je||(rt?"children":"label");return{label:ot,value:Oe||"value",options:We||"options",groupLabel:ge||ot}}function it(Re){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=rt.fieldNames,je=rt.childrenAsData,Oe=[],We=Te(Se,!1),ge=We.label,ot=We.value,ct=We.options,xt=We.groupLabel;function Ue(Ze,Ye){Array.isArray(Ze)&&Ze.forEach(function(dt){if(Ye||!(ct in dt)){var cn=dt[ot];Oe.push({key:Ce(dt,Oe.length),groupOption:Ye,data:dt,label:dt[ge],value:cn})}else{var sn=dt[xt];sn===void 0&&je&&(sn=dt.label),Oe.push({key:Ce(dt,Oe.length),group:!0,data:dt,label:sn}),Ue(dt[ct],!0)}})}return Ue(Re,!1),Oe}function vt(Re){var rt=(0,et.Z)({},Re);return"props"in rt||Object.defineProperty(rt,"props",{get:function(){return(0,Ie.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),rt}}),rt}var Bt=function(rt,Se,je){if(!Se||!Se.length)return null;var Oe=!1,We=function ot(ct,xt){var Ue=(0,pe.Z)(xt),Ze=Ue[0],Ye=Ue.slice(1);if(!Ze)return[ct];var dt=ct.split(Ze);return Oe=Oe||dt.length>1,dt.reduce(function(cn,sn){return[].concat((0,nt.Z)(cn),(0,nt.Z)(ot(sn,Ye)))},[]).filter(Boolean)},ge=We(rt,Se);return Oe?typeof je!="undefined"?ge.slice(0,je):ge:null},Mt=fe.createContext(null),we=Mt;function Me(Re){var rt=Re.visible,Se=Re.values;if(!rt)return null;var je=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Se.slice(0,je).map(function(Oe){var We=Oe.label,ge=Oe.value;return["number","string"].includes((0,Ne.Z)(We))?We:ge}).join(", ")),Se.length>je?", ...":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"],Wt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],en=function(rt){return rt==="tags"||rt==="multiple"},un=fe.forwardRef(function(Re,rt){var Se,je=Re.id,Oe=Re.prefixCls,We=Re.className,ge=Re.showSearch,ot=Re.tagRender,ct=Re.direction,xt=Re.omitDomProps,Ue=Re.displayValues,Ze=Re.onDisplayValuesChange,Ye=Re.emptyOptions,dt=Re.notFoundContent,cn=dt===void 0?"Not Found":dt,sn=Re.onClear,hn=Re.mode,$n=Re.disabled,jn=Re.loading,Gn=Re.getInputElement,kn=Re.getRawInputElement,Ln=Re.open,Rn=Re.defaultOpen,_n=Re.onDropdownVisibleChange,tr=Re.activeValue,Yn=Re.onActiveValueChange,Jn=Re.activeDescendantId,An=Re.searchValue,Kn=Re.autoClearSearchValue,Un=Re.onSearch,dr=Re.onSearchSplit,mr=Re.tokenSeparators,ur=Re.allowClear,cr=Re.prefix,xr=Re.suffixIcon,ar=Re.clearIcon,hr=Re.OptionList,nr=Re.animation,vr=Re.transitionName,Cr=Re.dropdownStyle,Hr=Re.dropdownClassName,Pr=Re.dropdownMatchSelectWidth,Lr=Re.dropdownRender,wr=Re.dropdownAlign,Mr=Re.placement,or=Re.builtinPlacements,rr=Re.getPopupContainer,Wn=Re.showAction,dn=Wn===void 0?[]:Wn,Cn=Re.onFocus,Sn=Re.onBlur,gn=Re.onKeyUp,Hn=Re.onKeyDown,Xn=Re.onMouseDown,yn=(0,Pe.Z)(Re,Zt),mn=en(hn),Tn=(ge!==void 0?ge:mn)||hn==="combobox",zn=(0,et.Z)({},yn);Wt.forEach(function(_r){delete zn[_r]}),xt==null||xt.forEach(function(_r){delete zn[_r]});var fr=fe.useState(!1),Br=(0,be.Z)(fr,2),Er=Br[0],$r=Br[1];fe.useEffect(function(){$r((0,Qe.Z)())},[]);var kr=fe.useRef(null),Nr=fe.useRef(null),Wr=fe.useRef(null),zr=fe.useRef(null),Vr=fe.useRef(null),ei=fe.useRef(!1),ui=It(),hi=(0,be.Z)(ui,3),ci=hi[0],ii=hi[1],pr=hi[2];fe.useImperativeHandle(rt,function(){var _r,Ar;return{focus:(_r=zr.current)===null||_r===void 0?void 0:_r.focus,blur:(Ar=zr.current)===null||Ar===void 0?void 0:Ar.blur,scrollTo:function(Ii){var li;return(li=Vr.current)===null||li===void 0?void 0:li.scrollTo(Ii)},nativeElement:kr.current||Nr.current}});var sr=fe.useMemo(function(){var _r;if(hn!=="combobox")return An;var Ar=(_r=Ue[0])===null||_r===void 0?void 0:_r.value;return typeof Ar=="string"||typeof Ar=="number"?String(Ar):""},[An,hn,Ue]),Ur=hn==="combobox"&&typeof Gn=="function"&&Gn()||null,Xr=typeof kn=="function"&&kn(),yr=(0,ze.x1)(Nr,Xr==null||(Se=Xr.props)===null||Se===void 0?void 0:Se.ref),Zr=fe.useState(!1),Kr=(0,be.Z)(Zr,2),Or=Kr[0],jr=Kr[1];(0,Ot.Z)(function(){jr(!0)},[]);var Rr=(0,Je.Z)(!1,{defaultValue:Rn,value:Ln}),pi=(0,be.Z)(Rr,2),Li=pi[0],vi=pi[1],oi=Or?Li:!1,xo=!cn&&Ye;($n||xo&&oi&&hn==="combobox")&&(oi=!1);var so=xo?!1:oi,br=fe.useCallback(function(_r){var Ar=_r!==void 0?_r:!oi;$n||(vi(Ar),oi!==Ar&&(_n==null||_n(Ar)))},[$n,oi,vi,_n]),Tr=fe.useMemo(function(){return(mr||[]).some(function(_r){return[` `,`\r `].includes(_r)})},[mr]),Ir=fe.useContext(we)||{},Dr=Ir.maxCount,Gr=Ir.rawValues,Jr=function(Ar,wi,Ii){if(!(mn&>(Dr)&&(Gr==null?void 0:Gr.size)>=Dr)){var li=!0,mi=Ar;Yn==null||Yn(null);var Yi=Bt(Ar,mr,gt(Dr)?Dr-Gr.size:void 0),Ui=Ii?null:Yi;return hn!=="combobox"&&Ui&&(mi="",dr==null||dr(Ui),br(!1),li=!1),Un&&sr!==mi&&Un(mi,{source:wi?"typing":"effect"}),li}},Ki=function(Ar){!Ar||!Ar.trim()||Un(Ar,{source:"submit"})};fe.useEffect(function(){!oi&&!mn&&hn!=="combobox"&&Jr("",!1,!1)},[oi]),fe.useEffect(function(){Li&&$n&&vi(!1),$n&&!ei.current&&ii(!1)},[$n]);var Di=ut(),Si=(0,be.Z)(Di,2),ai=Si[0],Vi=Si[1],eo=fe.useRef(!1),$i=function(Ar){var wi=ai(),Ii=Ar.key,li=Ii==="Enter";if(li&&(hn!=="combobox"&&Ar.preventDefault(),oi||br(!0)),Vi(!!sr),Ii==="Backspace"&&!wi&&mn&&!sr&&Ue.length){for(var mi=(0,nt.Z)(Ue),Yi=null,Ui=mi.length-1;Ui>=0;Ui-=1){var oo=mi[Ui];if(!oo.disabled){mi.splice(Ui,1),Yi=oo;break}}Yi&&Ze(mi,{type:"remove",values:[Yi]})}for(var zi=arguments.length,Hi=new Array(zi>1?zi-1:0),Qi=1;Qi1?wi-1:0),li=1;li1?Yi-1:0),oo=1;oo=cn},[ot,cn,kn==null?void 0:kn.size]),mr=function(dn){dn.preventDefault()},ur=function(dn){var Cn;(Cn=Un.current)===null||Cn===void 0||Cn.scrollTo(typeof dn=="number"?{index:dn}:dn)},cr=fe.useCallback(function(Wn){return ct==="combobox"?!1:kn.has(Wn)},[ct,(0,nt.Z)(kn).toString(),kn.size]),xr=function(dn){for(var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Sn=Kn.length,gn=0;gn1&&arguments[1]!==void 0?arguments[1]:!1;vr(dn);var Sn={source:Cn?"keyboard":"mouse"},gn=Kn[dn];if(!gn){hn(null,-1,Sn);return}hn(gn.value,dn,Sn)};(0,fe.useEffect)(function(){Cr($n!==!1?xr(0):-1)},[Kn.length,xt]);var Hr=fe.useCallback(function(Wn){return ct==="combobox"?String(Wn).toLowerCase()===xt.toLowerCase():kn.has(Wn)},[ct,xt,(0,nt.Z)(kn).toString(),kn.size]);(0,fe.useEffect)(function(){var Wn=setTimeout(function(){if(!ot&&ge&&kn.size===1){var Cn=Array.from(kn)[0],Sn=Kn.findIndex(function(gn){var Hn=gn.data;return xt?String(Hn.value).startsWith(xt):Hn.value===Cn});Sn!==-1&&(Cr(Sn),ur(Sn))}});if(ge){var dn;(dn=Un.current)===null||dn===void 0||dn.scrollTo(void 0)}return function(){return clearTimeout(Wn)}},[ge,xt]);var Pr=function(dn){dn!==void 0&&jn(dn,{selected:!kn.has(dn)}),ot||Ue(!1)};if(fe.useImperativeHandle(Se,function(){return{onKeyDown:function(dn){var Cn=dn.which,Sn=dn.ctrlKey;switch(Cn){case Ge.Z.N:case Ge.Z.P:case Ge.Z.UP:case Ge.Z.DOWN:{var gn=0;if(Cn===Ge.Z.UP?gn=-1:Cn===Ge.Z.DOWN?gn=1:Xe()&&Sn&&(Cn===Ge.Z.N?gn=1:Cn===Ge.Z.P&&(gn=-1)),gn!==0){var Hn=xr(nr+gn,gn);ur(Hn),Cr(Hn,!0)}break}case Ge.Z.TAB:case Ge.Z.ENTER:{var Xn,yn=Kn[nr];yn&&!(yn!=null&&(Xn=yn.data)!==null&&Xn!==void 0&&Xn.disabled)&&!dr?Pr(yn.value):Pr(void 0),ge&&dn.preventDefault();break}case Ge.Z.ESC:Ue(!1),ge&&dn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(dn){ur(dn)}}}),Kn.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(We,"_list"),className:"".concat(An,"-empty"),onMouseDown:mr},Ze);var Lr=Object.keys(Ln).map(function(Wn){return Ln[Wn]}),wr=function(dn){return dn.label};function Mr(Wn,dn){var Cn=Wn.group;return{role:Cn?"presentation":"option",id:"".concat(We,"_list_").concat(dn)}}var or=function(dn){var Cn=Kn[dn];if(!Cn)return null;var Sn=Cn.data||{},gn=Sn.value,Hn=Cn.group,Xn=(0,bt.Z)(Sn,!0),yn=wr(Cn);return Cn?fe.createElement("div",(0,z.Z)({"aria-label":typeof yn=="string"&&!Hn?yn:null},Xn,{key:dn},Mr(Cn,dn),{"aria-selected":Hr(gn)}),gn):null},rr={role:"listbox",id:"".concat(We,"_list")};return fe.createElement(fe.Fragment,null,Rn&&fe.createElement("div",(0,z.Z)({},rr,{style:{height:0,width:0,overflow:"hidden"}}),or(nr-1),or(nr),or(nr+1)),fe.createElement(De.Z,{itemKey:"key",ref:Un,data:Kn,height:tr,itemHeight:Yn,fullHeight:!1,onMouseDown:mr,onScroll:Ye,virtual:Rn,direction:_n,innerProps:Rn?null:rr},function(Wn,dn){var Cn=Wn.group,Sn=Wn.groupOption,gn=Wn.data,Hn=Wn.label,Xn=Wn.value,yn=gn.key;if(Cn){var mn,Tn=(mn=gn.title)!==null&&mn!==void 0?mn:Dt(Hn)?Hn.toString():void 0;return fe.createElement("div",{className:Ee()(An,"".concat(An,"-group"),gn.className),title:Tn},Hn!==void 0?Hn:yn)}var zn=gn.disabled,fr=gn.title,Br=gn.children,Er=gn.style,$r=gn.className,kr=(0,Pe.Z)(gn,pt),Nr=(0,_t.Z)(kr,Lr),Wr=cr(Xn),zr=zn||!Wr&&dr,Vr="".concat(An,"-option"),ei=Ee()(An,Vr,$r,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(Vr,"-grouped"),Sn),"".concat(Vr,"-active"),nr===dn&&!zr),"".concat(Vr,"-disabled"),zr),"".concat(Vr,"-selected"),Wr)),ui=wr(Wn),hi=!Gn||typeof Gn=="function"||Wr,ci=typeof ui=="number"?ui:ui||Xn,ii=Dt(ci)?ci.toString():void 0;return fr!==void 0&&(ii=fr),fe.createElement("div",(0,z.Z)({},(0,bt.Z)(Nr),Rn?{}:Mr(Wn,dn),{"aria-selected":Hr(Xn),className:ei,title:ii,onMouseMove:function(){nr===dn||zr||Cr(dn)},onClick:function(){zr||Pr(Xn)},style:Er}),fe.createElement("div",{className:"".concat(Vr,"-content")},typeof Jn=="function"?Jn(Wn,{index:dn}):ci),fe.isValidElement(Gn)||Wr,hi&&fe.createElement(ke,{className:"".concat(An,"-option-state"),customizeIcon:Gn,customizeIconProps:{value:Xn,disabled:zr,isSelected:Wr}},Wr?"\u2713":null))}))},fn=fe.forwardRef(Xt),Dn=fn,Mn=function(Re,rt){var Se=fe.useRef({values:new Map,options:new Map}),je=fe.useMemo(function(){var We=Se.current,ge=We.values,ot=We.options,ct=Re.map(function(Ze){if(Ze.label===void 0){var Ye;return(0,et.Z)((0,et.Z)({},Ze),{},{label:(Ye=ge.get(Ze.value))===null||Ye===void 0?void 0:Ye.label})}return Ze}),xt=new Map,Ue=new Map;return ct.forEach(function(Ze){xt.set(Ze.value,Ze),Ue.set(Ze.value,rt.get(Ze.value)||ot.get(Ze.value))}),Se.current.values=xt,Se.current.options=Ue,ct},[Re,rt]),Oe=fe.useCallback(function(We){return rt.get(We)||Se.current.options.get(We)},[rt]);return[je,Oe]};function rn(Re,rt){return Be(Re).join("").toUpperCase().includes(rt)}var bn=function(Re,rt,Se,je,Oe){return fe.useMemo(function(){if(!Se||je===!1)return Re;var We=rt.options,ge=rt.label,ot=rt.value,ct=[],xt=typeof je=="function",Ue=Se.toUpperCase(),Ze=xt?je:function(dt,cn){return Oe?rn(cn[Oe],Ue):cn[We]?rn(cn[ge!=="children"?ge:"label"],Ue):rn(cn[ot],Ue)},Ye=xt?function(dt){return vt(dt)}:function(dt){return dt};return Re.forEach(function(dt){if(dt[We]){var cn=Ze(Se,Ye(dt));if(cn)ct.push(dt);else{var sn=dt[We].filter(function(hn){return Ze(Se,Ye(hn))});sn.length&&ct.push((0,et.Z)((0,et.Z)({},dt),{},(0,ve.Z)({},We,sn)))}return}Ze(Se,Ye(dt))&&ct.push(dt)}),ct},[Re,je,Oe,Se,rt])},vn=ne(6551),Ut=ne(11592),zt=["children","value"],Ft=["children"];function Pt(Re){var rt=Re,Se=rt.key,je=rt.props,Oe=je.children,We=je.value,ge=(0,Pe.Z)(je,zt);return(0,et.Z)({key:Se,value:We!==void 0?We:Se,children:Oe},ge)}function nn(Re){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ut.Z)(Re).map(function(Se,je){if(!fe.isValidElement(Se)||!Se.type)return null;var Oe=Se,We=Oe.type.isSelectOptGroup,ge=Oe.key,ot=Oe.props,ct=ot.children,xt=(0,Pe.Z)(ot,Ft);return rt||!We?Pt(Se):(0,et.Z)((0,et.Z)({key:"__RC_SELECT_GRP__".concat(ge===null?je:ge,"__"),label:ge},xt),{},{options:nn(ct)})}).filter(function(Se){return Se})}var Jt=function(rt,Se,je,Oe,We){return fe.useMemo(function(){var ge=rt,ot=!rt;ot&&(ge=nn(Se));var ct=new Map,xt=new Map,Ue=function(dt,cn,sn){sn&&typeof sn=="string"&&dt.set(cn[sn],cn)},Ze=function Ye(dt){for(var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=0;sn1&&arguments[1]!==void 0?arguments[1]:!1,ge=0;ge0?br(Dr.options):Dr.options}):Dr})},hi=fe.useMemo(function(){return jn?ui(ei):ei},[ei,jn,rr]),ci=fe.useMemo(function(){return it(hi,{fieldNames:wr,childrenAsData:Pr})},[hi,wr,Pr]),ii=function(Tr){var Ir=Hn(Tr);if(Tn(Ir),hr&&(Ir.length!==Er.length||Ir.some(function(Jr,Ki){var Di;return((Di=Er[Ki])===null||Di===void 0?void 0:Di.value)!==(Jr==null?void 0:Jr.value)}))){var Dr=ar?Ir:Ir.map(function(Jr){return Jr.value}),Gr=Ir.map(function(Jr){return vt($r(Jr.value))});hr(Hr?Dr:Dr[0],Hr?Gr:Gr[0])}},pr=fe.useState(null),sr=(0,be.Z)(pr,2),Ur=sr[0],Xr=sr[1],yr=fe.useState(0),Zr=(0,be.Z)(yr,2),Kr=Zr[0],Or=Zr[1],jr=tr!==void 0?tr:je!=="combobox",Rr=fe.useCallback(function(br,Tr){var Ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Dr=Ir.source,Gr=Dr===void 0?"keyboard":Dr;Or(Tr),ge&&je==="combobox"&&br!==null&&Gr==="keyboard"&&Xr(String(br))},[ge,je]),pi=function(Tr,Ir,Dr){var Gr=function(){var io,Xi=$r(Tr);return[ar?{label:Xi==null?void 0:Xi[wr.label],value:Tr,key:(io=Xi==null?void 0:Xi.key)!==null&&io!==void 0?io:Tr}:Tr,vt(Xi)]};if(Ir&&dt){var Jr=Gr(),Ki=(0,be.Z)(Jr,2),Di=Ki[0],Si=Ki[1];dt(Di,Si)}else if(!Ir&&cn&&Dr!=="clear"){var ai=Gr(),Vi=(0,be.Z)(ai,2),eo=Vi[0],$i=Vi[1];cn(eo,$i)}},Li=En(function(br,Tr){var Ir,Dr=Hr?Tr.selected:!0;Dr?Ir=Hr?[].concat((0,nt.Z)(Er),[br]):[br]:Ir=Er.filter(function(Gr){return Gr.value!==br}),ii(Ir),pi(br,Dr),je==="combobox"?Xr(""):(!en||Ye)&&(Wn(""),Xr(""))}),vi=function(Tr,Ir){ii(Tr);var Dr=Ir.type,Gr=Ir.values;(Dr==="remove"||Dr==="clear")&&Gr.forEach(function(Jr){pi(Jr.value,!1,Dr)})},oi=function(Tr,Ir){if(Wn(Tr),Xr(null),Ir.source==="submit"){var Dr=(Tr||"").trim();if(Dr){var Gr=Array.from(new Set([].concat((0,nt.Z)(Nr),[Dr])));ii(Gr),pi(Dr,!0),Wn("")}return}Ir.source!=="blur"&&(je==="combobox"&&ii(Tr),Ue==null||Ue(Tr))},xo=function(Tr){var Ir=Tr;je!=="tags"&&(Ir=Tr.map(function(Gr){var Jr=Sn.get(Gr);return Jr==null?void 0:Jr.value}).filter(function(Gr){return Gr!==void 0}));var Dr=Array.from(new Set([].concat((0,nt.Z)(Nr),(0,nt.Z)(Ir))));ii(Dr),Dr.forEach(function(Gr){pi(Gr,!0)})},so=fe.useMemo(function(){var br=Jn!==!1&&hn!==!1;return(0,et.Z)((0,et.Z)({},dn),{},{flattenOptions:ci,onActiveValue:Rr,defaultActiveFirstOption:jr,onSelect:Li,menuItemSelectedIcon:Yn,rawValues:Nr,fieldNames:wr,virtual:br,direction:An,listHeight:Un,listItemHeight:mr,childrenAsData:Pr,maxCount:nr,optionRender:Rn})},[nr,dn,ci,Rr,jr,Li,Yn,Nr,wr,Jn,hn,An,Un,mr,Pr,Rn]);return fe.createElement(we.Provider,{value:so},fe.createElement(Tt,(0,z.Z)({},vr,{id:Cr,prefixCls:We,ref:rt,omitDomProps:Qn,mode:je,displayValues:kr,onDisplayValuesChange:vi,direction:An,searchValue:rr,onSearch:oi,autoClearSearchValue:Ye,onSearchSplit:xo,dropdownMatchSelectWidth:hn,OptionList:Dn,emptyOptions:!ci.length,activeValue:Ur,activeDescendantId:"".concat(Cr,"_list_").concat(Kr)})))}),on=jt;on.Option=st,on.OptGroup=Gt;var Pn=on,xn=Pn},22711:function(pn,Kt,ne){"use strict";ne.r(Kt),ne.d(Kt,{ResizableTextArea:function(){return Le},default:function(){return mt}});var z=ne(54476),nt=ne(20068),ve=ne(33885),et=ne(94480),be=ne(42978),Pe=ne(75931),Ne=ne(92310),Je=ne.n(Ne),Ie=ne(36901),fe=ne(66003),tt=ne(30292),Ee=ne(18929),Ot=ne(59301),Qe=ne(76190),ze=ne(29301),Ke=ne(34280),ke=ne(16089),ft=` 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; `,Et=["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"],Ht={},It;function ut(Be){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nt=Be.getAttribute("id")||Be.getAttribute("data-reactid")||Be.getAttribute("name");if(Ve&&Ht[Nt])return Ht[Nt];var xe=window.getComputedStyle(Be),de=xe.getPropertyValue("box-sizing")||xe.getPropertyValue("-moz-box-sizing")||xe.getPropertyValue("-webkit-box-sizing"),Ct=parseFloat(xe.getPropertyValue("padding-bottom"))+parseFloat(xe.getPropertyValue("padding-top")),tn=parseFloat(xe.getPropertyValue("border-bottom-width"))+parseFloat(xe.getPropertyValue("border-top-width")),wt=Et.map(function($e){return"".concat($e,":").concat(xe.getPropertyValue($e))}).join(";"),me={sizingStyle:wt,paddingSize:Ct,borderSize:tn,boxSizing:de};return Ve&&Nt&&(Ht[Nt]=me),me}function lt(Be){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;It||(It=document.createElement("textarea"),It.setAttribute("tab-index","-1"),It.setAttribute("aria-hidden","true"),It.setAttribute("name","hiddenTextarea"),document.body.appendChild(It)),Be.getAttribute("wrap")?It.setAttribute("wrap",Be.getAttribute("wrap")):It.removeAttribute("wrap");var de=ut(Be,Ve),Ct=de.paddingSize,tn=de.borderSize,wt=de.boxSizing,me=de.sizingStyle;It.setAttribute("style","".concat(me,";").concat(ft)),It.value=Be.value||Be.placeholder||"";var $e=void 0,qe=void 0,$t,Rt=It.scrollHeight;if(wt==="border-box"?Rt+=tn:wt==="content-box"&&(Rt-=Ct),Nt!==null||xe!==null){It.value=" ";var Yt=It.scrollHeight-Ct;Nt!==null&&($e=Yt*Nt,wt==="border-box"&&($e=$e+Ct+tn),Rt=Math.max($e,Rt)),xe!==null&&(qe=Yt*xe,wt==="border-box"&&(qe=qe+Ct+tn),$t=Rt>qe?"":"hidden",Rt=Math.min(qe,Rt))}var He={height:Rt,overflowY:$t,resize:"none"};return $e&&(He.minHeight=$e),qe&&(He.maxHeight=qe),He}var Ge=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kt=0,bt=1,ht=2,Lt=Ot.forwardRef(function(Be,Ve){var Nt=Be,xe=Nt.prefixCls,de=Nt.defaultValue,Ct=Nt.value,tn=Nt.autoSize,wt=Nt.onResize,me=Nt.className,$e=Nt.style,qe=Nt.disabled,$t=Nt.onChange,Rt=Nt.onInternalAutoSize,Yt=(0,Pe.Z)(Nt,Ge),He=(0,Ee.Z)(de,{value:Ct,postState:function(st){return st!=null?st:""}}),Qt=(0,be.Z)(He,2),St=Qt[0],ae=Qt[1],te=function(st){ae(st.target.value),$t==null||$t(st)},ee=Ot.useRef();Ot.useImperativeHandle(Ve,function(){return{textArea:ee.current}});var oe=Ot.useMemo(function(){return tn&&(0,Qe.Z)(tn)==="object"?[tn.minRows,tn.maxRows]:[]},[tn]),se=(0,be.Z)(oe,2),re=se[0],pe=se[1],Ce=!!tn,gt=function(){try{if(document.activeElement===ee.current){var st=ee.current,At=st.selectionStart,_t=st.selectionEnd,De=st.scrollTop;ee.current.setSelectionRange(At,_t),ee.current.scrollTop=De}}catch(Xe){}},Te=Ot.useState(ht),it=(0,be.Z)(Te,2),vt=it[0],Bt=it[1],Mt=Ot.useState(),we=(0,be.Z)(Mt,2),Me=we[0],Zt=we[1],Wt=function(){Bt(kt)};(0,Ke.Z)(function(){Ce&&Wt()},[Ct,re,pe,Ce]),(0,Ke.Z)(function(){if(vt===kt)Bt(bt);else if(vt===bt){var Ae=lt(ee.current,!1,re,pe);Bt(ht),Zt(Ae)}else gt()},[vt]);var en=Ot.useRef(),un=function(){ke.Z.cancel(en.current)},Tt=function(st){vt===ht&&(wt==null||wt(st),tn&&(un(),en.current=(0,ke.Z)(function(){Wt()})))};Ot.useEffect(function(){return un},[]);var an=Ce?Me:null,Gt=(0,ve.Z)((0,ve.Z)({},$e),an);return(vt===kt||vt===bt)&&(Gt.overflowY="hidden",Gt.overflowX="hidden"),Ot.createElement(ze.Z,{onResize:Tt,disabled:!(tn||wt)},Ot.createElement("textarea",(0,z.Z)({},Yt,{ref:ee,style:Gt,className:Je()(xe,me,(0,nt.Z)({},"".concat(xe,"-disabled"),qe)),disabled:qe,value:St,onChange:te})))}),Le=Lt,_e=["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"],Fe=Ot.forwardRef(function(Be,Ve){var Nt,xe=Be.defaultValue,de=Be.value,Ct=Be.onFocus,tn=Be.onBlur,wt=Be.onChange,me=Be.allowClear,$e=Be.maxLength,qe=Be.onCompositionStart,$t=Be.onCompositionEnd,Rt=Be.suffix,Yt=Be.prefixCls,He=Yt===void 0?"rc-textarea":Yt,Qt=Be.showCount,St=Be.count,ae=Be.className,te=Be.style,ee=Be.disabled,oe=Be.hidden,se=Be.classNames,re=Be.styles,pe=Be.onResize,Ce=Be.onClear,gt=Be.onPressEnter,Te=Be.readOnly,it=Be.autoSize,vt=Be.onKeyDown,Bt=(0,Pe.Z)(Be,_e),Mt=(0,Ee.Z)(xe,{value:de,defaultValue:xe}),we=(0,be.Z)(Mt,2),Me=we[0],Zt=we[1],Wt=Me==null?"":String(Me),en=Ot.useState(!1),un=(0,be.Z)(en,2),Tt=un[0],an=un[1],Gt=Ot.useRef(!1),Ae=Ot.useState(null),st=(0,be.Z)(Ae,2),At=st[0],_t=st[1],De=(0,Ot.useRef)(null),Xe=(0,Ot.useRef)(null),pt=function(){var on;return(on=Xe.current)===null||on===void 0?void 0:on.textArea},Dt=function(){pt().focus()};(0,Ot.useImperativeHandle)(Ve,function(){var jt;return{resizableTextArea:Xe.current,focus:Dt,blur:function(){pt().blur()},nativeElement:((jt=De.current)===null||jt===void 0?void 0:jt.nativeElement)||pt()}}),(0,Ot.useEffect)(function(){an(function(jt){return!ee&&jt})},[ee]);var Xt=Ot.useState(null),fn=(0,be.Z)(Xt,2),Dn=fn[0],Mn=fn[1];Ot.useEffect(function(){if(Dn){var jt;(jt=pt()).setSelectionRange.apply(jt,(0,et.Z)(Dn))}},[Dn]);var rn=(0,fe.Z)(St,Qt),bn=(Nt=rn.max)!==null&&Nt!==void 0?Nt:$e,vn=Number(bn)>0,Ut=rn.strategy(Wt),zt=!!bn&&Ut>bn,Ft=function(on,Pn){var xn=Pn;!Gt.current&&rn.exceedFormatter&&rn.max&&rn.strategy(Pn)>rn.max&&(xn=rn.exceedFormatter(Pn,{max:rn.max}),Pn!==xn&&Mn([pt().selectionStart||0,pt().selectionEnd||0])),Zt(xn),(0,tt.rJ)(on.currentTarget,on,wt,xn)},Pt=function(on){Gt.current=!0,qe==null||qe(on)},nn=function(on){Gt.current=!1,Ft(on,on.currentTarget.value),$t==null||$t(on)},Jt=function(on){Ft(on,on.target.value)},ln=function(on){on.key==="Enter"&>&>(on),vt==null||vt(on)},En=function(on){an(!0),Ct==null||Ct(on)},On=function(on){an(!1),tn==null||tn(on)},In=function(on){Zt(""),Dt(),(0,tt.rJ)(pt(),on,wt)},Nn=Rt,Bn;rn.show&&(rn.showFormatter?Bn=rn.showFormatter({value:Wt,count:Ut,maxLength:bn}):Bn="".concat(Ut).concat(vn?" / ".concat(bn):""),Nn=Ot.createElement(Ot.Fragment,null,Nn,Ot.createElement("span",{className:Je()("".concat(He,"-data-count"),se==null?void 0:se.count),style:re==null?void 0:re.count},Bn)));var Qn=function(on){var Pn;pe==null||pe(on),(Pn=pt())!==null&&Pn!==void 0&&Pn.style.height&&_t(!0)},Zn=!it&&!Qt&&!me;return Ot.createElement(Ie.BaseInput,{ref:De,value:Wt,allowClear:me,handleReset:In,suffix:Nn,prefixCls:He,classNames:(0,ve.Z)((0,ve.Z)({},se),{},{affixWrapper:Je()(se==null?void 0:se.affixWrapper,(0,nt.Z)((0,nt.Z)({},"".concat(He,"-show-count"),Qt),"".concat(He,"-textarea-allow-clear"),me))}),disabled:ee,focused:Tt,className:Je()(ae,zt&&"".concat(He,"-out-of-range")),style:(0,ve.Z)((0,ve.Z)({},te),At&&!Zn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Bn=="string"?Bn:void 0}},hidden:oe,readOnly:Te,onClear:Ce},Ot.createElement(Le,(0,z.Z)({},Bt,{autoSize:it,maxLength:$e,onKeyDown:ln,onChange:Jt,onFocus:En,onBlur:On,onCompositionStart:Pt,onCompositionEnd:nn,className:Je()(se==null?void 0:se.textarea),style:(0,ve.Z)((0,ve.Z)({},re==null?void 0:re.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:He,onResize:Qn,ref:Xe,readOnly:Te})))}),ue=Fe,mt=ue},48911:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return St}});var z=ne(54476),nt=ne(76190),ve=ne(33885),et=ne(20068),be=ne(42978),Pe=ne(75931),Ne=ne(92310),Je=ne.n(Ne),Ie=ne(29301),fe=ne(70425),tt=ne(34280),Ee=ne(59301),Ot=ne(4676),Qe=Ee.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,re=ae.children,pe=ae.prefixCls,Ce=ae.onInnerResize,gt=ae.innerProps,Te=ae.rtl,it=ae.extra,vt={},Bt={display:"flex",flexDirection:"column"};return oe!==void 0&&(vt={height:ee,position:"relative",overflow:"hidden"},Bt=(0,ve.Z)((0,ve.Z)({},Bt),{},(0,et.Z)((0,et.Z)((0,et.Z)((0,et.Z)((0,et.Z)({transform:"translateY(".concat(oe,"px)")},Te?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),Ee.createElement("div",{style:vt},Ee.createElement(Ie.Z,{onResize:function(we){var Me=we.offsetHeight;Me&&Ce&&Ce()}},Ee.createElement("div",(0,z.Z)({style:Bt,className:Je()((0,et.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:te},gt),re,it)))});Qe.displayName="Filler";var ze=Qe;function Ke(ae){var te=ae.children,ee=ae.setRef,oe=Ee.useCallback(function(se){ee(se)},[]);return Ee.cloneElement(te,{ref:oe})}function ke(ae,te,ee,oe,se,re,pe,Ce){var gt=Ce.getKey;return ae.slice(te,ee+1).map(function(Te,it){var vt=te+it,Bt=pe(Te,vt,{style:{width:oe},offsetX:se}),Mt=gt(Te);return Ee.createElement(Ke,{key:Mt,setRef:function(Me){return re(Te,Me)}},Bt)})}function ft(ae,te,ee,oe){var se=ee-ae,re=te-ee,pe=Math.min(se,re)*2;if(oe<=pe){var Ce=Math.floor(oe/2);return oe%2?ee+Ce+1:ee-Ce}return se>re?ee-(oe-re):ee+(oe-se)}function Et(ae,te,ee){var oe=ae.length,se=te.length,re,pe;if(oe===0&&se===0)return null;oe2&&arguments[2]!==void 0?arguments[2]:!1,vt=gt?Te<0&&Ce.current.left||Te>0&&Ce.current.right:Te<0&&Ce.current.top||Te>0&&Ce.current.bottom;return it&&vt?(clearTimeout(re.current),se.current=!1):(!vt||se.current)&&pe(),!se.current&&vt}};function kt(ae,te,ee,oe,se,re,pe){var Ce=(0,Ee.useRef)(0),gt=(0,Ee.useRef)(null),Te=(0,Ee.useRef)(null),it=(0,Ee.useRef)(!1),vt=Ge(te,ee,oe,se);function Bt(en,un){if(It.Z.cancel(gt.current),!vt(!1,un)){var Tt=en;if(!Tt._virtualHandled)Tt._virtualHandled=!0;else return;Ce.current+=un,Te.current=un,lt||Tt.preventDefault(),gt.current=(0,It.Z)(function(){var an=it.current?10:1;pe(Ce.current*an,!1),Ce.current=0})}}function Mt(en,un){pe(un,!0),lt||en.preventDefault()}var we=(0,Ee.useRef)(null),Me=(0,Ee.useRef)(null);function Zt(en){if(ae){It.Z.cancel(Me.current),Me.current=(0,It.Z)(function(){we.current=null},2);var un=en.deltaX,Tt=en.deltaY,an=en.shiftKey,Gt=un,Ae=Tt;(we.current==="sx"||!we.current&&an&&Tt&&!un)&&(Gt=Tt,Ae=0,we.current="sx");var st=Math.abs(Gt),At=Math.abs(Ae);we.current===null&&(we.current=re&&st>At?"x":"y"),we.current==="y"?Bt(en,Ae):Mt(en,Gt)}}function Wt(en){ae&&(it.current=en.detail===Te.current)}return[Zt,Wt]}function bt(ae,te,ee,oe){var se=Ee.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),re=(0,be.Z)(se,2),pe=re[0],Ce=re[1],gt=function(it){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:it,Bt=pe.get(it),Mt=pe.get(vt);if(Bt===void 0||Mt===void 0)for(var we=ae.length,Me=Ce.length;Me0&&arguments[0]!==void 0?arguments[0]:!1;it();var we=function(){var Wt=!1;Ce.current.forEach(function(en,un){if(en&&en.offsetParent){var Tt=en.offsetHeight,an=getComputedStyle(en),Gt=an.marginTop,Ae=an.marginBottom,st=Fe(Gt),At=Fe(Ae),_t=Tt+st+At;gt.current.get(un)!==_t&&(gt.current.set(un,_t),Wt=!0)}}),Wt&&pe(function(en){return en+1})};if(Mt)we();else{Te.current+=1;var Me=Te.current;Promise.resolve().then(function(){Me===Te.current&&we()})}}function Bt(Mt,we){var Me=ae(Mt),Zt=Ce.current.get(Me);we?(Ce.current.set(Me,we),vt()):Ce.current.delete(Me),!Zt!=!we&&(we?te==null||te(Mt):ee==null||ee(Mt))}return(0,Ee.useEffect)(function(){return it},[]),[Bt,vt,gt.current,re]}var mt=14/15;function Be(ae,te,ee){var oe=(0,Ee.useRef)(!1),se=(0,Ee.useRef)(0),re=(0,Ee.useRef)(0),pe=(0,Ee.useRef)(null),Ce=(0,Ee.useRef)(null),gt,Te=function(Mt){if(oe.current){var we=Math.ceil(Mt.touches[0].pageX),Me=Math.ceil(Mt.touches[0].pageY),Zt=se.current-we,Wt=re.current-Me,en=Math.abs(Zt)>Math.abs(Wt);en?se.current=we:re.current=Me;var un=ee(en,en?Zt:Wt,!1,Mt);un&&Mt.preventDefault(),clearInterval(Ce.current),un&&(Ce.current=setInterval(function(){en?Zt*=mt:Wt*=mt;var Tt=Math.floor(en?Zt:Wt);(!ee(en,Tt,!0)||Math.abs(Tt)<=.1)&&clearInterval(Ce.current)},16))}},it=function(){oe.current=!1,gt()},vt=function(Mt){gt(),Mt.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(Mt.touches[0].pageX),re.current=Math.ceil(Mt.touches[0].pageY),pe.current=Mt.target,pe.current.addEventListener("touchmove",Te,{passive:!1}),pe.current.addEventListener("touchend",it,{passive:!0}))};gt=function(){pe.current&&(pe.current.removeEventListener("touchmove",Te),pe.current.removeEventListener("touchend",it))},(0,tt.Z)(function(){return ae&&te.current.addEventListener("touchstart",vt,{passive:!0}),function(){var Bt;(Bt=te.current)===null||Bt===void 0||Bt.removeEventListener("touchstart",vt),gt(),clearInterval(Ce.current)}},[ae])}function Ve(ae){return Math.floor(Math.pow(ae,.5))}function Nt(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function xe(ae,te,ee){Ee.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,re,pe,Ce=function(){It.Z.cancel(re)},gt=function Bt(){Ce(),re=(0,It.Z)(function(){ee(pe),Bt()})},Te=function(){se=!1,Ce()},it=function(Mt){if(!(Mt.target.draggable||Mt.button!==0)){var we=Mt;we._virtualHandled||(we._virtualHandled=!0,se=!0)}},vt=function(Mt){if(se){var we=Nt(Mt,!1),Me=oe.getBoundingClientRect(),Zt=Me.top,Wt=Me.bottom;if(we<=Zt){var en=Zt-we;pe=-Ve(en),gt()}else if(we>=Wt){var un=we-Wt;pe=Ve(un),gt()}else Ce()}};return oe.addEventListener("mousedown",it),oe.ownerDocument.addEventListener("mouseup",Te),oe.ownerDocument.addEventListener("mousemove",vt),oe.ownerDocument.addEventListener("dragend",Te),function(){oe.removeEventListener("mousedown",it),oe.ownerDocument.removeEventListener("mouseup",Te),oe.ownerDocument.removeEventListener("mousemove",vt),oe.ownerDocument.removeEventListener("dragend",Te),Ce()}}},[ae])}var de=10;function Ct(ae,te,ee,oe,se,re,pe,Ce){var gt=Ee.useRef(),Te=Ee.useState(null),it=(0,be.Z)(Te,2),vt=it[0],Bt=it[1];return(0,tt.Z)(function(){if(vt&&vt.times=0;Dt-=1){var Xt=se(te[Dt]),fn=ee.get(Xt);if(fn===void 0){en=!0;break}if(pt-=fn,pt<=0)break}switch(an){case"top":Tt=Ae-Zt;break;case"bottom":Tt=st-Wt+Zt;break;default:{var Dn=ae.current.scrollTop,Mn=Dn+Wt;AeMn&&(un="bottom")}}Tt!==null&&pe(Tt),Tt!==vt.lastTop&&(en=!0)}en&&Bt((0,ve.Z)((0,ve.Z)({},vt),{},{times:vt.times+1,targetAlign:un,lastTop:Tt}))}},[vt,ae.current]),function(Mt){if(Mt==null){Ce();return}if(It.Z.cancel(gt.current),typeof Mt=="number")pe(Mt);else if(Mt&&(0,nt.Z)(Mt)==="object"){var we,Me=Mt.align;"index"in Mt?we=Mt.index:we=te.findIndex(function(en){return se(en)===Mt.key});var Zt=Mt.offset,Wt=Zt===void 0?0:Zt;Bt({times:0,index:we,offset:Wt,originAlign:Me})}}}var tn=Ee.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,re=ae.scrollRange,pe=ae.onStartMove,Ce=ae.onStopMove,gt=ae.onScroll,Te=ae.horizontal,it=ae.spinSize,vt=ae.containerSize,Bt=ae.style,Mt=ae.thumbStyle,we=ae.showScrollBar,Me=Ee.useState(!1),Zt=(0,be.Z)(Me,2),Wt=Zt[0],en=Zt[1],un=Ee.useState(null),Tt=(0,be.Z)(un,2),an=Tt[0],Gt=Tt[1],Ae=Ee.useState(null),st=(0,be.Z)(Ae,2),At=st[0],_t=st[1],De=!oe,Xe=Ee.useRef(),pt=Ee.useRef(),Dt=Ee.useState(we),Xt=(0,be.Z)(Dt,2),fn=Xt[0],Dn=Xt[1],Mn=Ee.useRef(),rn=function(){we===!0||we===!1||(clearTimeout(Mn.current),Dn(!0),Mn.current=setTimeout(function(){Dn(!1)},3e3))},bn=re-vt||0,vn=vt-it||0,Ut=Ee.useMemo(function(){if(se===0||bn===0)return 0;var In=se/bn;return In*vn},[se,bn,vn]),zt=function(Nn){Nn.stopPropagation(),Nn.preventDefault()},Ft=Ee.useRef({top:Ut,dragging:Wt,pageY:an,startTop:At});Ft.current={top:Ut,dragging:Wt,pageY:an,startTop:At};var Pt=function(Nn){en(!0),Gt(Nt(Nn,Te)),_t(Ft.current.top),pe(),Nn.stopPropagation(),Nn.preventDefault()};Ee.useEffect(function(){var In=function(Zn){Zn.preventDefault()},Nn=Xe.current,Bn=pt.current;return Nn.addEventListener("touchstart",In,{passive:!1}),Bn.addEventListener("touchstart",Pt,{passive:!1}),function(){Nn.removeEventListener("touchstart",In),Bn.removeEventListener("touchstart",Pt)}},[]);var nn=Ee.useRef();nn.current=bn;var Jt=Ee.useRef();Jt.current=vn,Ee.useEffect(function(){if(Wt){var In,Nn=function(Zn){var jt=Ft.current,on=jt.dragging,Pn=jt.pageY,xn=jt.startTop;It.Z.cancel(In);var Re=Xe.current.getBoundingClientRect(),rt=vt/(Te?Re.width:Re.height);if(on){var Se=(Nt(Zn,Te)-Pn)*rt,je=xn;!De&&Te?je-=Se:je+=Se;var Oe=nn.current,We=Jt.current,ge=We?je/We:0,ot=Math.ceil(ge*Oe);ot=Math.max(ot,0),ot=Math.min(ot,Oe),In=(0,It.Z)(function(){gt(ot,Te)})}},Bn=function(){en(!1),Ce()};return window.addEventListener("mousemove",Nn,{passive:!0}),window.addEventListener("touchmove",Nn,{passive:!0}),window.addEventListener("mouseup",Bn,{passive:!0}),window.addEventListener("touchend",Bn,{passive:!0}),function(){window.removeEventListener("mousemove",Nn),window.removeEventListener("touchmove",Nn),window.removeEventListener("mouseup",Bn),window.removeEventListener("touchend",Bn),It.Z.cancel(In)}}},[Wt]),Ee.useEffect(function(){return rn(),function(){clearTimeout(Mn.current)}},[se]),Ee.useImperativeHandle(te,function(){return{delayHidden:rn}});var ln="".concat(ee,"-scrollbar"),En={position:"absolute",visibility:fn?null:"hidden"},On={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Te?(Object.assign(En,{height:8,left:0,right:0,bottom:0}),Object.assign(On,(0,et.Z)({height:"100%",width:it},De?"left":"right",Ut))):(Object.assign(En,(0,et.Z)({width:8,top:0,bottom:0},De?"right":"left",0)),Object.assign(On,{width:"100%",height:it,top:Ut})),Ee.createElement("div",{ref:Xe,className:Je()(ln,(0,et.Z)((0,et.Z)((0,et.Z)({},"".concat(ln,"-horizontal"),Te),"".concat(ln,"-vertical"),!Te),"".concat(ln,"-visible"),fn)),style:(0,ve.Z)((0,ve.Z)({},En),Bt),onMouseDown:zt,onMouseMove:rn},Ee.createElement("div",{ref:pt,className:Je()("".concat(ln,"-thumb"),(0,et.Z)({},"".concat(ln,"-thumb-moving"),Wt)),style:(0,ve.Z)((0,ve.Z)({},On),Mt),onMouseDown:Pt}))}),wt=tn,me=20;function $e(){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,me),Math.floor(ee)}var qe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],$t=[],Rt={overflowY:"auto",overflowAnchor:"none"};function Yt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,re=ae.height,pe=ae.itemHeight,Ce=ae.fullHeight,gt=Ce===void 0?!0:Ce,Te=ae.style,it=ae.data,vt=ae.children,Bt=ae.itemKey,Mt=ae.virtual,we=ae.direction,Me=ae.scrollWidth,Zt=ae.component,Wt=Zt===void 0?"div":Zt,en=ae.onScroll,un=ae.onVirtualScroll,Tt=ae.onVisibleChange,an=ae.innerProps,Gt=ae.extraRender,Ae=ae.styles,st=ae.showScrollBar,At=st===void 0?"optional":st,_t=(0,Pe.Z)(ae,qe),De=Ee.useCallback(function(dn){return typeof Bt=="function"?Bt(dn):dn==null?void 0:dn[Bt]},[Bt]),Xe=ue(De,null,null),pt=(0,be.Z)(Xe,4),Dt=pt[0],Xt=pt[1],fn=pt[2],Dn=pt[3],Mn=!!(Mt!==!1&&re&&pe),rn=Ee.useMemo(function(){return Object.values(fn.maps).reduce(function(dn,Cn){return dn+Cn},0)},[fn.id,fn.maps]),bn=Mn&&it&&(Math.max(pe*it.length,rn)>re||!!Me),vn=we==="rtl",Ut=Je()(oe,(0,et.Z)({},"".concat(oe,"-rtl"),vn),se),zt=it||$t,Ft=(0,Ee.useRef)(),Pt=(0,Ee.useRef)(),nn=(0,Ee.useRef)(),Jt=(0,Ee.useState)(0),ln=(0,be.Z)(Jt,2),En=ln[0],On=ln[1],In=(0,Ee.useState)(0),Nn=(0,be.Z)(In,2),Bn=Nn[0],Qn=Nn[1],Zn=(0,Ee.useState)(!1),jt=(0,be.Z)(Zn,2),on=jt[0],Pn=jt[1],xn=function(){Pn(!0)},Re=function(){Pn(!1)},rt={getKey:De};function Se(dn){On(function(Cn){var Sn;typeof dn=="function"?Sn=dn(Cn):Sn=dn;var gn=tr(Sn);return Ft.current.scrollTop=gn,gn})}var je=(0,Ee.useRef)({start:0,end:zt.length}),Oe=(0,Ee.useRef)(),We=Ht(zt,De),ge=(0,be.Z)(We,1),ot=ge[0];Oe.current=ot;var ct=Ee.useMemo(function(){if(!Mn)return{scrollHeight:void 0,start:0,end:zt.length-1,offset:void 0};if(!bn){var dn;return{scrollHeight:((dn=Pt.current)===null||dn===void 0?void 0:dn.offsetHeight)||0,start:0,end:zt.length-1,offset:void 0}}for(var Cn=0,Sn,gn,Hn,Xn=zt.length,yn=0;yn=En&&Sn===void 0&&(Sn=yn,gn=Cn),fr>En+re&&Hn===void 0&&(Hn=yn),Cn=fr}return Sn===void 0&&(Sn=0,gn=0,Hn=Math.ceil(re/pe)),Hn===void 0&&(Hn=zt.length-1),Hn=Math.min(Hn+1,zt.length-1),{scrollHeight:Cn,start:Sn,end:Hn,offset:gn}},[bn,Mn,En,zt,Dn,re]),xt=ct.scrollHeight,Ue=ct.start,Ze=ct.end,Ye=ct.offset;je.current.start=Ue,je.current.end=Ze,Ee.useLayoutEffect(function(){var dn=fn.getRecord();if(dn.size===1){var Cn=Array.from(dn.keys())[0],Sn=dn.get(Cn),gn=zt[Ue];if(gn&&Sn===void 0){var Hn=De(gn);if(Hn===Cn){var Xn=fn.get(Cn),yn=Xn-pe;Se(function(mn){return mn+yn})}}}fn.resetRecord()},[xt]);var dt=Ee.useState({width:0,height:re}),cn=(0,be.Z)(dt,2),sn=cn[0],hn=cn[1],$n=function(Cn){hn({width:Cn.offsetWidth,height:Cn.offsetHeight})},jn=(0,Ee.useRef)(),Gn=(0,Ee.useRef)(),kn=Ee.useMemo(function(){return $e(sn.width,Me)},[sn.width,Me]),Ln=Ee.useMemo(function(){return $e(sn.height,xt)},[sn.height,xt]),Rn=xt-re,_n=(0,Ee.useRef)(Rn);_n.current=Rn;function tr(dn){var Cn=dn;return Number.isNaN(_n.current)||(Cn=Math.min(Cn,_n.current)),Cn=Math.max(Cn,0),Cn}var Yn=En<=0,Jn=En>=Rn,An=Bn<=0,Kn=Bn>=Me,Un=Ge(Yn,Jn,An,Kn),dr=function(){return{x:vn?-Bn:Bn,y:En}},mr=(0,Ee.useRef)(dr()),ur=(0,fe.zX)(function(dn){if(un){var Cn=(0,ve.Z)((0,ve.Z)({},dr()),dn);(mr.current.x!==Cn.x||mr.current.y!==Cn.y)&&(un(Cn),mr.current=Cn)}});function cr(dn,Cn){var Sn=dn;Cn?((0,Ot.flushSync)(function(){Qn(Sn)}),ur()):Se(Sn)}function xr(dn){var Cn=dn.currentTarget.scrollTop;Cn!==En&&Se(Cn),en==null||en(dn),ur()}var ar=function(Cn){var Sn=Cn,gn=Me?Me-sn.width:0;return Sn=Math.max(Sn,0),Sn=Math.min(Sn,gn),Sn},hr=(0,fe.zX)(function(dn,Cn){Cn?((0,Ot.flushSync)(function(){Qn(function(Sn){var gn=Sn+(vn?-dn:dn);return ar(gn)})}),ur()):Se(function(Sn){var gn=Sn+dn;return gn})}),nr=kt(Mn,Yn,Jn,An,Kn,!!Me,hr),vr=(0,be.Z)(nr,2),Cr=vr[0],Hr=vr[1];Be(Mn,Ft,function(dn,Cn,Sn,gn){var Hn=gn;return Un(dn,Cn,Sn)?!1:!Hn||!Hn._virtualHandled?(Hn&&(Hn._virtualHandled=!0),Cr({preventDefault:function(){},deltaX:dn?Cn:0,deltaY:dn?0:Cn}),!0):!1}),xe(bn,Ft,function(dn){Se(function(Cn){return Cn+dn})}),(0,tt.Z)(function(){function dn(Sn){var gn=Yn&&Sn.detail<0,Hn=Jn&&Sn.detail>0;Mn&&!gn&&!Hn&&Sn.preventDefault()}var Cn=Ft.current;return Cn.addEventListener("wheel",Cr,{passive:!1}),Cn.addEventListener("DOMMouseScroll",Hr,{passive:!0}),Cn.addEventListener("MozMousePixelScroll",dn,{passive:!1}),function(){Cn.removeEventListener("wheel",Cr),Cn.removeEventListener("DOMMouseScroll",Hr),Cn.removeEventListener("MozMousePixelScroll",dn)}},[Mn,Yn,Jn]),(0,tt.Z)(function(){if(Me){var dn=ar(Bn);Qn(dn),ur({x:dn})}},[sn.width,Me]);var Pr=function(){var Cn,Sn;(Cn=jn.current)===null||Cn===void 0||Cn.delayHidden(),(Sn=Gn.current)===null||Sn===void 0||Sn.delayHidden()},Lr=Ct(Ft,zt,fn,pe,De,function(){return Xt(!0)},Se,Pr);Ee.useImperativeHandle(te,function(){return{nativeElement:nn.current,getScrollInfo:dr,scrollTo:function(Cn){function Sn(gn){return gn&&(0,nt.Z)(gn)==="object"&&("left"in gn||"top"in gn)}Sn(Cn)?(Cn.left!==void 0&&Qn(ar(Cn.left)),Lr(Cn.top)):Lr(Cn)}}}),(0,tt.Z)(function(){if(Tt){var dn=zt.slice(Ue,Ze+1);Tt(dn,zt)}},[Ue,Ze,zt]);var wr=bt(zt,De,fn,pe),Mr=Gt==null?void 0:Gt({start:Ue,end:Ze,virtual:bn,offsetX:Bn,offsetY:Ye,rtl:vn,getSize:wr}),or=ke(zt,Ue,Ze,Me,Bn,Dt,vt,rt),rr=null;re&&(rr=(0,ve.Z)((0,et.Z)({},gt?"height":"maxHeight",re),Rt),Mn&&(rr.overflowY="hidden",Me&&(rr.overflowX="hidden"),on&&(rr.pointerEvents="none")));var Wn={};return vn&&(Wn.dir="rtl"),Ee.createElement("div",(0,z.Z)({ref:nn,style:(0,ve.Z)((0,ve.Z)({},Te),{},{position:"relative"}),className:Ut},Wn,_t),Ee.createElement(Ie.Z,{onResize:$n},Ee.createElement(Wt,{className:"".concat(oe,"-holder"),style:rr,ref:Ft,onScroll:xr,onMouseEnter:Pr},Ee.createElement(ze,{prefixCls:oe,height:xt,offsetX:Bn,offsetY:Ye,scrollWidth:Me,onInnerResize:Xt,ref:Pt,innerProps:an,rtl:vn,extra:Mr},or))),bn&&xt>re&&Ee.createElement(wt,{ref:jn,prefixCls:oe,scrollOffset:En,scrollRange:xt,rtl:vn,onScroll:cr,onStartMove:xn,onStopMove:Re,spinSize:Ln,containerSize:sn.height,style:Ae==null?void 0:Ae.verticalScrollBar,thumbStyle:Ae==null?void 0:Ae.verticalScrollBarThumb,showScrollBar:At}),bn&&Me>sn.width&&Ee.createElement(wt,{ref:Gn,prefixCls:oe,scrollOffset:Bn,scrollRange:Me,rtl:vn,onScroll:cr,onStartMove:xn,onStopMove:Re,spinSize:kn,containerSize:sn.width,horizontal:!0,style:Ae==null?void 0:Ae.horizontalScrollBar,thumbStyle:Ae==null?void 0:Ae.horizontalScrollBarThumb,showScrollBar:At}))}var He=Ee.forwardRef(Yt);He.displayName="List";var Qt=He,St=Qt},93314:function(pn){"use strict";pn.exports="data:image/png;base64,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"},16722:function(pn,Kt,ne){"use strict";ne.d(Kt,{Z:function(){return Je}});const z=Ie=>typeof Ie=="object"&&Ie!=null&&Ie.nodeType===1,nt=(Ie,fe)=>(!fe||Ie!=="hidden")&&Ie!=="visible"&&Ie!=="clip",ve=(Ie,fe)=>{if(Ie.clientHeight{const Ot=(Qe=>{if(!Qe.ownerDocument||!Qe.ownerDocument.defaultView)return null;try{return Qe.ownerDocument.defaultView.frameElement}catch(ze){return null}})(Ee);return!!Ot&&(Ot.clientHeightQefe||Qe>Ie&&ze=fe&&Ke>=tt?Qe-Ie-Ee:ze>fe&&Kett?ze-fe+Ot:0,be=Ie=>{const fe=Ie.parentElement;return fe==null?Ie.getRootNode().host||null:fe},Pe=(Ie,fe)=>{var tt,Ee,Ot,Qe;if(typeof document=="undefined")return[];const{scrollMode:ze,block:Ke,inline:ke,boundary:ft,skipOverflowHiddenElements:Et}=fe,Ht=typeof ft=="function"?ft:wt=>wt!==ft;if(!z(Ie))throw new TypeError("Invalid target");const It=document.scrollingElement||document.documentElement,ut=[];let lt=Ie;for(;z(lt)&&Ht(lt);){if(lt=be(lt),lt===It){ut.push(lt);break}lt!=null&<===document.body&&ve(lt)&&!ve(document.documentElement)||lt!=null&&ve(lt,Et)&&ut.push(lt)}const Ge=(Ee=(tt=window.visualViewport)==null?void 0:tt.width)!=null?Ee:innerWidth,kt=(Qe=(Ot=window.visualViewport)==null?void 0:Ot.height)!=null?Qe:innerHeight,{scrollX:bt,scrollY:ht}=window,{height:Lt,width:Le,top:_e,right:Fe,bottom:ue,left:mt}=Ie.getBoundingClientRect(),{top:Be,right:Ve,bottom:Nt,left:xe}=(wt=>{const me=window.getComputedStyle(wt);return{top:parseFloat(me.scrollMarginTop)||0,right:parseFloat(me.scrollMarginRight)||0,bottom:parseFloat(me.scrollMarginBottom)||0,left:parseFloat(me.scrollMarginLeft)||0}})(Ie);let de=Ke==="start"||Ke==="nearest"?_e-Be:Ke==="end"?ue+Nt:_e+Lt/2-Be+Nt,Ct=ke==="center"?mt+Le/2-xe+Ve:ke==="end"?Fe+Ve:mt-xe;const tn=[];for(let wt=0;wt=0&&mt>=0&&ue<=kt&&Fe<=Ge&&(me===It&&!ve(me)||_e>=$t&&ue<=Yt&&mt>=He&&Fe<=Rt))return tn;const Qt=getComputedStyle(me),St=parseInt(Qt.borderLeftWidth,10),ae=parseInt(Qt.borderTopWidth,10),te=parseInt(Qt.borderRightWidth,10),ee=parseInt(Qt.borderBottomWidth,10);let oe=0,se=0;const re="offsetWidth"in me?me.offsetWidth-me.clientWidth-St-te:0,pe="offsetHeight"in me?me.offsetHeight-me.clientHeight-ae-ee:0,Ce="offsetWidth"in me?me.offsetWidth===0?0:qe/me.offsetWidth:0,gt="offsetHeight"in me?me.offsetHeight===0?0:$e/me.offsetHeight:0;if(It===me)oe=Ke==="start"?de:Ke==="end"?de-kt:Ke==="nearest"?et(ht,ht+kt,kt,ae,ee,ht+de,ht+de+Lt,Lt):de-kt/2,se=ke==="start"?Ct:ke==="center"?Ct-Ge/2:ke==="end"?Ct-Ge:et(bt,bt+Ge,Ge,St,te,bt+Ct,bt+Ct+Le,Le),oe=Math.max(0,oe+ht),se=Math.max(0,se+bt);else{oe=Ke==="start"?de-$t-ae:Ke==="end"?de-Yt+ee+pe:Ke==="nearest"?et($t,Yt,$e,ae,ee+pe,de,de+Lt,Lt):de-($t+$e/2)+pe/2,se=ke==="start"?Ct-He-St:ke==="center"?Ct-(He+qe/2)+re/2:ke==="end"?Ct-Rt+te+re:et(He,Rt,qe,St,te+re,Ct,Ct+Le,Le);const{scrollLeft:Te,scrollTop:it}=me;oe=gt===0?0:Math.max(0,Math.min(it+oe/gt,me.scrollHeight-$e/gt+pe)),se=Ce===0?0:Math.max(0,Math.min(Te+se/Ce,me.scrollWidth-qe/Ce+re)),de+=it-oe,Ct+=Te-se}tn.push({el:me,top:oe,left:se})}return tn},Ne=Ie=>Ie===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(Ie)?Ie:{block:"start",inline:"nearest"};function Je(Ie,fe){if(!Ie.isConnected||!(Ot=>{let Qe=Ot;for(;Qe&&Qe.parentNode;){if(Qe.parentNode===document)return!0;Qe=Qe.parentNode instanceof ShadowRoot?Qe.parentNode.host:Qe.parentNode}return!1})(Ie))return;const tt=(Ot=>{const Qe=window.getComputedStyle(Ot);return{top:parseFloat(Qe.scrollMarginTop)||0,right:parseFloat(Qe.scrollMarginRight)||0,bottom:parseFloat(Qe.scrollMarginBottom)||0,left:parseFloat(Qe.scrollMarginLeft)||0}})(Ie);if((Ot=>typeof Ot=="object"&&typeof Ot.behavior=="function")(fe))return fe.behavior(Pe(Ie,fe));const Ee=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:Ot,top:Qe,left:ze}of Pe(Ie,Ne(fe))){const Ke=Qe-tt.top+tt.bottom,ke=ze-tt.left+tt.right;Ot.scroll({top:Ke,left:ke,behavior:Ee})}}}}]);